Home > SCH_PrimitiveCircle > create
SCH_PrimitiveCircle.create() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
创建圆
Signature
typescript
create(centerX: number, centerY: number, radius: number, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?: number | null): Promise<ISCH_PrimitiveCircle>;
1
Parameters
Parameter | Type | Description |
---|---|---|
centerX | number | 圆心 X |
centerY | number | 圆心 Y |
radius | number | 半径 |
color | string | null | (Optional) 颜色, |
fillColor | string | null | (Optional) 填充颜色, |
lineWidth | number | null | (Optional) 线宽,范围 |
lineType | number | null | (Optional) 线型, |
Returns
Promise<ISCH_PrimitiveCircle>
圆图元对象