二进制内嵌对象图元
declare class IPCB_PrimitiveObject implements IPCB_Primitive Implements: IPCB_Primitive
|
Method |
Modifiers |
Description |
|---|---|---|
|
(BETA) 将对图元的更改应用到画布 | ||
|
获取属性状态:二进制数据 | ||
|
获取属性状态:文件名 | ||
|
获取属性状态:高 | ||
|
获取属性状态:层 | ||
|
获取属性状态:是否水平镜像 | ||
|
获取属性状态:图元 ID | ||
|
获取属性状态:是否锁定 | ||
|
获取属性状态:图元类型 | ||
|
获取属性状态:旋转角度 | ||
|
获取属性状态:左上点 X | ||
|
获取属性状态:左上点 Y | ||
|
获取属性状态:宽 | ||
|
查询图元是否为异步图元 | ||
|
(BETA) 将异步图元重置为当前画布状态 | ||
|
设置属性状态:二进制数据 | ||
|
设置属性状态:文件名 | ||
|
设置属性状态:高 | ||
|
(BETA) 设置属性状态:层 | ||
|
设置属性状态:是否水平镜像 | ||
|
(BETA) 设置属性状态:是否锁定 | ||
|
设置属性状态:旋转角度 | ||
|
设置属性状态:左上点 X | ||
|
设置属性状态:左上点 Y | ||
|
设置属性状态:宽 | ||
|
将图元转换为异步图元 | ||
|
将图元转换为同步图元 |
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.
将对图元的更改应用到画布
done(): Promise<IPCB_PrimitiveObject>;Promise<IPCB_PrimitiveObject>
二进制内嵌对象图元对象
获取属性状态:二进制数据
getState_BinaryData(): string;string
二进制数据
获取属性状态:文件名
getState_FileName(): string;string
文件名
获取属性状态:高
getState_Height(): number;number
高
获取属性状态:层
getState_Layer(): TPCB_LayersOfObject | undefined;TPCB_LayersOfObject | undefined
层
获取属性状态:是否水平镜像
getState_Mirror(): boolean;boolean
是否水平镜像
获取属性状态:图元 ID
getState_PrimitiveId(): string;string
图元 ID
获取属性状态:是否锁定
getState_PrimitiveLock(): boolean;boolean
是否锁定
获取属性状态:图元类型
getState_PrimitiveType(): EPCB_PrimitiveType;图元类型
获取属性状态:旋转角度
getState_Rotation(): number;number
旋转角度
获取属性状态:左上点 X
getState_TopLeftX(): number | undefined;number | undefined
左上点 X
获取属性状态:左上点 Y
getState_TopLeftY(): number | undefined;number | undefined
左上点 Y
获取属性状态:宽
getState_Width(): number;number
宽
查询图元是否为异步图元
isAsync(): boolean;boolean
是否为异步图元
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.
将异步图元重置为当前画布状态
reset(): Promise<IPCB_PrimitiveObject>;Promise<IPCB_PrimitiveObject>
二进制内嵌对象图元对象
设置属性状态:二进制数据
setState_BinaryData(binaryData: string): IPCB_PrimitiveObject;|
Parameter |
Type |
Description |
|---|---|---|
|
binaryData |
string |
二进制数据 |
二进制内嵌对象图元对象
设置属性状态:文件名
setState_FileName(fileName: string): IPCB_PrimitiveObject;|
Parameter |
Type |
Description |
|---|---|---|
|
fileName |
string |
文件名 |
二进制内嵌对象图元对象
设置属性状态:高
setState_Height(height: number): IPCB_PrimitiveObject;|
Parameter |
Type |
Description |
|---|---|---|
|
height |
number |
高 |
二进制内嵌对象图元对象
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.
设置属性状态:层
setState_Layer(layer: TPCB_LayersOfObject): IPCB_PrimitiveObject;|
Parameter |
Type |
Description |
|---|---|---|
|
layer |
层 |
二进制内嵌对象图元对象
设置属性状态:是否水平镜像
setState_Mirror(mirror: boolean): IPCB_PrimitiveObject;|
Parameter |
Type |
Description |
|---|---|---|
|
mirror |
boolean |
是否水平镜像 |
二进制内嵌对象图元对象
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.
设置属性状态:是否锁定
setState_PrimitiveLock(primitiveLock: boolean): IPCB_PrimitiveObject;|
Parameter |
Type |
Description |
|---|---|---|
|
primitiveLock |
boolean |
是否锁定 |
二进制内嵌对象图元对象
设置属性状态:旋转角度
setState_Rotation(rotation: number): IPCB_PrimitiveObject;|
Parameter |
Type |
Description |
|---|---|---|
|
rotation |
number |
旋转角度 |
二进制内嵌对象图元对象
设置属性状态:左上点 X
setState_TopLeftX(topLeftX: number): IPCB_PrimitiveObject;|
Parameter |
Type |
Description |
|---|---|---|
|
topLeftX |
number |
左上点 X |
二进制内嵌对象图元对象
设置属性状态:左上点 Y
setState_TopLeftY(topLeftY: number): IPCB_PrimitiveObject;|
Parameter |
Type |
Description |
|---|---|---|
|
topLeftY |
number |
左上点 Y |
二进制内嵌对象图元对象
设置属性状态:宽
setState_Width(width: number): IPCB_PrimitiveObject;|
Parameter |
Type |
Description |
|---|---|---|
|
width |
number |
宽 |
二进制内嵌对象图元对象
将图元转换为异步图元
toAsync(): IPCB_PrimitiveObject;二进制内嵌对象图元对象
将图元转换为同步图元
toSync(): IPCB_PrimitiveObject;二进制内嵌对象图元对象