PilotGaea 2D O'view
    正在準備搜尋索引...

    類別 Text

    Set text style for vector features.

    Options.

    索引

    方法

    • Get the font name.

      回傳 string

      Font.

    • Get the x-offset for the text.

      回傳 number

      Horizontal text offset.

    • Get the y-offset for the text.

      回傳 number

      Vertical text offset.

    • Get the fill style for the text.

      回傳 Fill

      Fill style.

    • Determine whether the text rotates with the map.

      回傳 boolean

      Rotate with map.

    • Get the text rotation.

      回傳 number

      Rotation.

    • Get the text scale.

      回傳 number

      Scale.

    • Get the stroke style for the text.

      回傳 Stroke

      Stroke style.

    • Get the text to be rendered.

      回傳 string

      Text.

    • Get the text alignment.

      回傳 string

      Text align.

    • Get the text baseline.

      回傳 string

      Text baseline.

    • Set the font.

      參數

      • font: string

        Font.

      回傳 void

    • Set the x offset.

      參數

      • offsetX: number

        Horizontal text offset.

      回傳 void

    • Set the y offset.

      參數

      • offsetY: number

        Vertical text offset.

      回傳 void

    • Set the fill.

      參數

      • fill: Fill

        Fill style.

      回傳 void

    • Set the rotation.

      參數

      • rotation: number

        Rotation.

      回傳 void

    • Set the scale.

      參數

      • scale: number

        Scale.

      回傳 void

    • Set the stroke.

      參數

      回傳 void

    • Set the text.

      參數

      • text: string

        Text.

      回傳 void

    • Set the text alignment.

      參數

      • textAlign: string

        Text align.

      回傳 void

    • Set the text baseline.

      參數

      • textBaseline: string

        Text baseline.

      回傳 void

    構造函數

    • 參數

      回傳 Text

      Set text style for vector features.