Class SVGLoader

Hierarchy

  • Loader
    • SVGLoader

Constructors

  • Parameters

    • Optionalmanager: LoadingManager

    Returns SVGLoader

Properties

crossOrigin: string
'anonymous'
defaultDPI: number
defaultUnit: string
manager: LoadingManager
path: string
''
requestHeader: {
    [header: string]: string;
}
{}
resourcePath: string
''
withCredentials: boolean
false
DEFAULT_MATERIAL_NAME: string

Methods

  • Parameters

    • url: string
    • onLoad: ((data: SVGResult) => void)
        • (data): void
        • Parameters

          • data: SVGResult

          Returns void

    • OptionalonProgress: ((event: ProgressEvent<EventTarget>) => void)
        • (event): void
        • Parameters

          • event: ProgressEvent<EventTarget>

          Returns void

    • OptionalonError: ((event: ErrorEvent) => void)
        • (event): void
        • Parameters

          • event: ErrorEvent

          Returns void

    Returns void

  • Parameters

    • url: string
    • OptionalonProgress: ((event: ProgressEvent<EventTarget>) => void)
        • (event): void
        • Parameters

          • event: ProgressEvent<EventTarget>

          Returns void

    Returns Promise<SVGResult>

  • Parameters

    • text: string

    Returns SVGResult

  • Parameters

    • crossOrigin: string

    Returns this

  • Parameters

    • path: string

    Returns this

  • Parameters

    • requestHeader: {
          [header: string]: string;
      }
      • [header: string]: string

    Returns this

  • Parameters

    • resourcePath: string

    Returns this

  • Parameters

    • value: boolean

    Returns this

  • Parameters

    • shapePath: ShapePath

    Returns Shape[]

  • Parameters

    • Optionalwidth: number
    • Optionalcolor: string
    • OptionallineJoin: string
    • OptionallineCap: string
    • OptionalmiterLimit: number

    Returns StrokeStyle

  • Parameters

    • points: Vector2[]
    • style: StrokeStyle
    • OptionalarcDivisions: number
    • OptionalminDistance: number

    Returns BufferGeometry<NormalBufferAttributes>

  • Parameters

    • points: Vector2[]
    • style: StrokeStyle
    • OptionalarcDivisions: number
    • OptionalminDistance: number
    • Optionalvertices: number[]
    • Optionalnormals: number[]
    • Optionaluvs: number[]
    • OptionalvertexOffset: number

    Returns number