Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SPen

画笔

author

庞利祥(sybotan@126.com)

Hierarchy

  • SPen

Index

Constructors

constructor

  • 构造函数

    Returns SPen

  • 构造函数

    Parameters

    Returns SPen

  • 构造函数

    Parameters

    • color: SColor

      颜色

    • Optional lineWidth: undefined | number

      线宽

    Returns SPen

Properties

color

color: SColor = SColor.Black

画笔颜色

dashOffset

dashOffset: number = 0

虚线样式的起始偏移量

lineCapStyle

lineCapStyle: SLineCapStyle = SLineCapStyle.Butt

线段端点样式

lineDash

lineDash: number[] | null = null

虚线样式

lineJoinStyle

lineJoinStyle: SLineJoinStyle = SLineJoinStyle.Miter

线段与线段间接合处的样式

lineWidth

lineWidth: number = 1

线宽

miterLimit

miterLimit: number = 10

限制当两条线相交时交接处最大长度 (默认值是10.0)