Home > PCB_PrimitiveObject > create
PCB_PrimitiveObject.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(layer: TPCB_LayersOfObject, topLeftX: number, topLeftY: number, binaryData: string, width: number, height: number, rotation?: number, mirror?: boolean, fileName?: string, primitiveLock?: boolean): Promise<IPCB_PrimitiveObject | undefined>;
1
Parameters
Parameter | Type | Description |
---|---|---|
layer | 层 | |
topLeftX | number | 左上点 X |
topLeftY | number | 左上点 Y |
binaryData | string | 二进制数据 |
width | number | 宽 |
height | number | 高 |
rotation | number | (Optional) 旋转角度 |
mirror | boolean | (Optional) 是否水平镜像 |
fileName | string | (Optional) 文件名 |
primitiveLock | boolean | (Optional) 是否锁定 |
Returns
Promise<IPCB_PrimitiveObject | undefined>
- 二进制内嵌对象图元对象