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