Draw curves command

绘制曲线命令

实现

构造函数

属性

访问器

方法

构造函数

属性

lineColor: any

Line color

线段颜色

lineWidth: number

(Optional) Line width

(可选)线段宽度

points: number[]

Collection of points for the curve segments, format: [controlX, controlY, anchorX, anchorY...]

线段的点集合,格式:[controlX, controlY, anchorX, anchorY...]

x: number

X-axis position to start drawing

开始绘制的 X 轴位置

y: number

Y-axis position to start drawing

开始绘制的 Y 轴位置

ID: string = className

Identifier for the DrawCurvesCmd

绘制曲线命令的标识符

访问器

方法

  • 参数

    • x: number

      X-axis position to start drawing

    • y: number

      Y-axis position to start drawing

    • points: any[]

      Collection of points for the curve segments

    • lineColor: any

      Line color

    • lineWidth: number

      Line width

    返回 DrawCurvesCmd

    A DrawCurvesCmd instance

    Create a DrawCurvesCmd instance

    创建一个DrawCurvesCmd实例