Home > SCH_PrimitiveCircle > modify
SCH_PrimitiveCircle.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_PrimitiveCircle, property: {
centerX?: number;
centerY?: number;
radius?: number;
color?: string | null;
fillColor?: string | null;
lineWidth?: number | null;
lineType?: ESCH_PrimitiveLineType | null;
fillStyle?: ESCH_PrimitiveFillStyle | null;
}): Promise<ISCH_PrimitiveCircle | undefined>;
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
Parameters
Parameter | Type | Description |
---|---|---|
primitiveId | string | ISCH_PrimitiveCircle | 图元 ID |
property | { centerX?: number; centerY?: number; radius?: number; color?: string | null; fillColor?: string | null; lineWidth?: number | null; lineType?: ESCH_PrimitiveLineType | null; fillStyle?: ESCH_PrimitiveFillStyle | null; } | 修改参数 |
Returns
Promise<ISCH_PrimitiveCircle | undefined>
圆图元对象