Hierarchy (View Summary)

Constructors

Properties

_canvas: HTMLCanvasElement
_context: CanvasRenderingContext2D
_id: number
_largestMIPScale: number
_maxTextureScale: number
_renderer: RenderWebGL
_rotationCenter: V3
_scaledMIPs: WebGLTexture[]
_silhouette: Silhouette
_size: [number, number]
_svgImage: HTMLImageElement
_svgImageLoaded: boolean
_texture: null | WebGLTexture
_uniforms: { u_skin: null | WebGLTexture; u_skinSize: [number, number] }

Accessors

Methods

  • Asynchronously update the content of the skin. May take a couple frames for changes to appear.

    Parameters

    • svgData: string

      SVG source code

    • OptionalrotationCenter: [number, number]

      Defaults to the center of the image.

    Returns void