@turbowarp/types-tw
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _bubbleType: TextBubbleType
    _canvas: HTMLCanvasElement
    _id: number
    _lines: string[]
    _pointsLeft: boolean
    _renderedScale: number
    _renderer: RenderWebGL
    _rotationCenter: V3
    _silhouette: Silhouette
    _size: [number, number]
    _style: Readonly<TextBubbleStyle>
    _text: string
    _textAreaSize: { height: number; width: number }
    _textDirty: boolean
    _texture: WebGLTexture | null
    _textureDirty: boolean
    _uniforms: { u_skin: WebGLTexture | null; u_skinSize: [number, number] }
    measurementProvider: CanvasMeasurementProvider
    private: boolean
    textWrapper: TextWrapper

    Accessors

    Methods

    • Parameters

      • Optionalscale: [number, number]

      Returns { u_skin: WebGLTexture | null; u_skinSize: [number, number] }

    • Change style used for rendering the bubble. Properties not specified will be unchanged. Given argument will be copied internally, so you can freely change it later without affecting the skin.

      Parameters

      Returns void

    • Parameters

      • type: TextBubbleType

        Type of bubble.

      • text: string

        Text to display.

      • pointsLeft: boolean

        True if this bubble points left, false if this bubble points right.

      Returns void