Draw bend line command

绘制单条曲线命令

实现

构造函数

属性

fromX: number

X-axis start position

X轴起始位置

fromY: number

Y-axis start position

Y轴起始位置

lineColor: string

Line color

线条颜色

lineWidth: number = 0

(Optional) Line width

(可选)线条宽度

percent: boolean

Whether the position is a percentage

位置是否是百分比

toX: number

X-axis end position

X轴结束位置

toY: number

Y-axis end position

Y轴结束位置

ID: string = className

Identifier for the DrawLineCmd

绘制单条曲线命令的标识符

访问器

方法

  • 参数

    • fromX: number

      X-axis start position

    • fromY: number

      Y-axis start position

    • toX: number

      X-axis end position

    • toY: number

      Y-axis end position

    • lineColor: string

      Line color

    • lineWidth: number

      Line width

    • 可选percent: boolean

    返回 DrawLineCmd

    A DrawLineCmd instance

    Create a DrawLineCmd instance

    创建一个绘制单条曲线命令实例