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

    類別 Stroke

    Set stroke style for vector features. Note that the defaults given are the Canvas defaults, which will be used if option is not defined. The get functions return whatever was entered in the options; they will not return the default.

    Options.

    索引

    方法

    • Get the stroke color.

      回傳 string | Color

      Color.

    • Get the line cap type for the stroke.

      回傳 string

      Line cap.

    • Get the line dash style for the stroke.

      回傳 number[]

      Line dash.

    • Get the line join type for the stroke.

      回傳 string

      Line join.

    • Get the miter limit for the stroke.

      回傳 number

      Miter limit.

    • Get the stroke width.

      回傳 number

      Width.

    • Set the color.

      參數

      • color: string | Color

        Color.

      回傳 void

    • Set the line cap.

      參數

      • lineCap: string

        Line cap.

      回傳 void

    • Set the line dash.

      Please note that Internet Explorer 10 and lower do not support the setLineDash method on the CanvasRenderingContext2D and therefore this property will have no visual effect in these browsers.

      參數

      • lineDash: number[]

        Line dash.

      回傳 void

    • Set the line join.

      參數

      • lineJoin: string

        Line join.

      回傳 void

    • Set the miter limit.

      參數

      • miterLimit: number

        Miter limit.

      回傳 void

    • Set the width.

      參數

      • width: number

        Width.

      回傳 void

    構造函數

    • 參數

      回傳 Stroke

      Set stroke style for vector features. Note that the defaults given are the Canvas defaults, which will be used if option is not defined. The get functions return whatever was entered in the options; they will not return the default.