Home > SCH_PrimitiveCircle > modify
SCH_PrimitiveCircle.modify() method
此 API 当前处于 BETA 预览状态,希望得到开发者的反馈。它的任何功能都可能在接下来的开发进程中被修改,请不要将它用于任何正式环境。
修改圆
签名
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
参数名
参数 | 类型 | 描述 |
---|---|---|
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; } | 修改参数 |
返回值
Promise<ISCH_PrimitiveCircle | undefined>
圆图元对象