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, property: {
line?: Array<number>;
color?: string | null;
fillColor?: string | null;
lineWidth?: number | null;
lineType?: ESCH_PrimitiveLineType | null;
}): Promise<ISCH_PrimitivePolygon | undefined>;
1
2
3
4
5
6
7
2
3
4
5
6
7
Parameters
Parameter | Type | Description |
---|---|---|
primitiveId | string | ISCH_PrimitivePolygon | 图元 ID |
property | { line?: Array<number>; color?: string | null; fillColor?: string | null; lineWidth?: number | null; lineType?: ESCH_PrimitiveLineType | null; } | 修改参数 |
Returns
Promise<ISCH_PrimitivePolygon | undefined>
多边形图元对象