Home > SCH_PrimitivePolygon > modify
SCH_PrimitivePolygon.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_PrimitivePolygon, line?: Array<number>, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?: number | null): Promise<ISCH_PrimitivePolygon | undefined>;
1
Parameters
Parameter | Type | Description |
---|---|---|
primitiveId | string | ISCH_PrimitivePolygon | 图元 ID |
line | Array<number> | (Optional) 坐标组,连续的一组 |
color | string | null | (Optional) 颜色, |
fillColor | string | null | (Optional) 填充颜色, |
lineWidth | number | null | (Optional) 线宽,范围 |
lineType | number | null | (Optional) 线型, |
Returns
Promise<ISCH_PrimitivePolygon | undefined>
多边形图元对象