Home > PCB_PrimitiveImage > modify
PCB_PrimitiveImage.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 | IPCB_PrimitiveImage, property: {
x?: number;
y?: number;
layer?: TPCB_LayersOfImage;
width?: number;
height?: number;
rotation?: number;
horizonMirror?: boolean;
primitiveLock?: boolean;
}): Promise<IPCB_PrimitiveImage | 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 | IPCB_PrimitiveImage | 图元 ID |
property | { x?: number; y?: number; layer?: TPCB_LayersOfImage; width?: number; height?: number; rotation?: number; horizonMirror?: boolean; primitiveLock?: boolean; } | 修改参数 |
Returns
Promise<IPCB_PrimitiveImage | undefined>
图像图元对象