Draw circle command

绘制圆形命令

实现

构造函数

属性

fillColor: any

Fill color

填充颜色

lineColor: any

(Optional) Border color

(可选)边框颜色

lineWidth: number = 0

(Optional) Border width

(可选)边框宽度

percent: boolean

Whether the position and size are percentages

位置和大小是否是百分比

radius: number

Radius of the circle

圆的半径

x: number

X-axis position of the circle center

圆心X轴位置

y: number

Y-axis position of the circle center

圆心Y轴位置

ID: string = className

Identifier for the DrawCircleCmd

绘制圆形命令的标识符

访问器

方法

  • 参数

    • x: number

      X-axis position of the circle center

    • y: number

      Y-axis position of the circle center

    • radius: number

      Radius of the circle

    • fillColor: any

      Fill color

    • lineColor: any

      Border color

    • lineWidth: number

      Border width

    • 可选percent: boolean

      位置和大小是否是百分比值

    返回 DrawCircleCmd

    A DrawCircleCmd instance

    Create a DrawCircleCmd instance

    创建绘制圆形的DrawCircleCmd实例