Home > SCH_PrimitiveArc > modify
SCH_PrimitiveArc.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_PrimitiveArc, startX?: number, startY?: number, referenceX?: number, referenceY?: number, endX?: number, endY?: number, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?: number | null): Promise<ISCH_PrimitiveArc | undefined>;
1
Parameters
Parameter | Type | Description |
---|---|---|
primitiveId | string | ISCH_PrimitiveArc | 图元 ID |
startX | number | (Optional) 起始点 X |
startY | number | (Optional) 起始点 Y |
referenceX | number | (Optional) 参考点 X |
referenceY | number | (Optional) 参考点 Y |
endX | number | (Optional) 终止点 X |
endY | number | (Optional) 终止点 Y |
color | string | null | (Optional) 颜色, |
fillColor | string | null | (Optional) 填充颜色, |
lineWidth | number | null | (Optional) 线宽,范围 |
lineType | number | null | (Optional) 线型, |
Returns
Promise<ISCH_PrimitiveArc | undefined>
圆弧图元对象