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