Home > SCH_PrimitiveCircle > modify
SCH_PrimitiveCircle.modify() 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
modify(primitiveId: string | ISCH_PrimitiveCircle, centerX?: number, centerY?: number, radius?: number, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?: number | null): Promise<ISCH_PrimitiveCircle | undefined>;
1
Parameters
Parameter | Type | Description |
---|---|---|
primitiveId | string | ISCH_PrimitiveCircle | 图元 ID |
centerX | number | (Optional) 圆心 X |
centerY | number | (Optional) 圆心 Y |
radius | number | (Optional) 半径 |
color | string | null | (Optional) 颜色, |
fillColor | string | null | (Optional) 填充颜色, |
lineWidth | number | null | (Optional) 线宽,范围 |
lineType | number | null | (Optional) 线型, |
Returns
Promise<ISCH_PrimitiveCircle | undefined>
圆图元对象