器件图元
declare class IPCB_PrimitiveComponent implements IPCB_Primitive Implements: IPCB_Primitive
|
Method |
Modifiers |
Description |
|---|---|---|
|
(BETA) 将对图元的更改应用到画布 | ||
|
(BETA) 获取器件关联的所有焊盘 | ||
|
获取属性状态:是否加入 BOM | ||
|
获取属性状态:关联库器件 | ||
|
获取属性状态:位号 | ||
|
获取属性状态:关联库封装 | ||
|
获取属性状态:层 | ||
|
获取属性状态:制造商 | ||
|
获取属性状态:制造商编号 | ||
|
获取属性状态:关联库 3D 模型 | ||
|
获取属性状态:名称 | ||
|
获取属性状态:其它参数 | ||
|
获取属性状态:焊盘 | ||
|
获取属性状态:图元 ID | ||
|
获取属性状态:是否锁定 | ||
|
获取属性状态:图元类型 | ||
|
获取属性状态:旋转角度 | ||
|
获取属性状态:供应商 | ||
|
获取属性状态:供应商编号 | ||
|
获取属性状态:唯一 ID | ||
|
获取属性状态:坐标 X | ||
|
获取属性状态:坐标 Y | ||
|
查询图元是否为异步图元 | ||
|
(BETA) 将异步图元重置为当前画布状态 | ||
|
(BETA) 设置属性状态:是否加入 BOM | ||
|
(BETA) 设置属性状态:位号 | ||
|
(BETA) 设置属性状态:层 | ||
|
(BETA) 设置属性状态:制造商 | ||
|
(BETA) 设置属性状态:制造商编号 | ||
|
(BETA) 设置属性状态:名称 | ||
|
(BETA) 设置属性状态:其它参数 | ||
|
(BETA) 设置属性状态:是否锁定 | ||
|
(BETA) 设置属性状态:旋转角度 | ||
|
(BETA) 设置属性状态:供应商 | ||
|
(BETA) 设置属性状态:供应商编号 | ||
|
(BETA) 设置属性状态:唯一 ID | ||
|
(BETA) 设置属性状态:坐标 X | ||
|
(BETA) 设置属性状态:坐标 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_PrimitiveComponent>;Promise<IPCB_PrimitiveComponent>
器件图元对象
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.
获取器件关联的所有焊盘
getAllPins(): Promise<Array<IPCB_PrimitiveComponentPad>>;Promise<Array<IPCB_PrimitiveComponentPad>>
器件焊盘图元数组
获取属性状态:是否加入 BOM
getState_AddIntoBom(): boolean;boolean
是否加入 BOM
获取属性状态:关联库器件
getState_Component(): {
libraryUuid: string;
uuid: string;
name?: string;
} | undefined;{ libraryUuid: string; uuid: string; name?: string; } | undefined
关联库器件
获取属性状态:位号
getState_Designator(): string | undefined;string | undefined
位号
获取属性状态:关联库封装
getState_Footprint(): {
libraryUuid: string;
uuid: string;
name?: string;
} | undefined;{ libraryUuid: string; uuid: string; name?: string; } | undefined
关联库封装
获取属性状态:层
getState_Layer(): TPCB_LayersOfComponent;层
获取属性状态:制造商
getState_Manufacturer(): string | undefined;string | undefined
制造商
获取属性状态:制造商编号
getState_ManufacturerId(): string | undefined;string | undefined
制造商编号
获取属性状态:关联库 3D 模型
getState_Model3D(): {
libraryUuid: string;
uuid: string;
name?: string;
} | undefined;{ libraryUuid: string; uuid: string; name?: string; } | undefined
关联库 3D 模型
获取属性状态:名称
getState_Name(): string | undefined;string | undefined
名称
获取属性状态:其它参数
getState_OtherProperty(): {
[key: string]: string | number | boolean;
} | undefined;{ [key: string]: string | number | boolean; } | undefined
其它参数
获取属性状态:焊盘
getState_Pads(): Array<{
primitiveId: string;
net: string;
padNumber: string;
}> | undefined;Array<{ primitiveId: string; net: string; padNumber: string; }> | undefined
焊盘
获取属性状态:图元 ID
getState_PrimitiveId(): string;string
图元 ID
获取属性状态:是否锁定
getState_PrimitiveLock(): boolean;boolean
是否锁定
获取属性状态:图元类型
getState_PrimitiveType(): EPCB_PrimitiveType;图元类型
获取属性状态:旋转角度
getState_Rotation(): number;number
旋转角度
获取属性状态:供应商
getState_Supplier(): string | undefined;string | undefined
供应商
获取属性状态:供应商编号
getState_SupplierId(): string | undefined;string | undefined
供应商编号
获取属性状态:唯一 ID
getState_UniqueId(): string | undefined;string | undefined
唯一 ID
获取属性状态:坐标 X
getState_X(): number;number
坐标 X
获取属性状态:坐标 Y
getState_Y(): number;number
坐标 Y
查询图元是否为异步图元
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_PrimitiveComponent>;Promise<IPCB_PrimitiveComponent>
器件图元对象
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.
设置属性状态:是否加入 BOM
setState_AddIntoBom(addIntoBom: boolean): IPCB_PrimitiveComponent;|
Parameter |
Type |
Description |
|---|---|---|
|
addIntoBom |
boolean |
是否加入 BOM |
器件图元对象
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_Designator(designator: string | undefined): IPCB_PrimitiveComponent;|
Parameter |
Type |
Description |
|---|---|---|
|
designator |
string | undefined |
位号 |
器件图元对象
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_LayersOfComponent): IPCB_PrimitiveComponent;|
Parameter |
Type |
Description |
|---|---|---|
|
layer |
层 |
器件图元对象
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_Manufacturer(manufacturer: string | undefined): IPCB_PrimitiveComponent;|
Parameter |
Type |
Description |
|---|---|---|
|
manufacturer |
string | undefined |
制造商 |
器件图元对象
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_ManufacturerId(manufacturerId: string | undefined): IPCB_PrimitiveComponent;|
Parameter |
Type |
Description |
|---|---|---|
|
manufacturerId |
string | undefined |
制造商编号 |
器件图元对象
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_Name(name: string | undefined): IPCB_PrimitiveComponent;|
Parameter |
Type |
Description |
|---|---|---|
|
name |
string | undefined |
名称 |
器件图元对象
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_OtherProperty(otherProperty: {
[key: string]: string | number | boolean;
}): IPCB_PrimitiveComponent;|
Parameter |
Type |
Description |
|---|---|---|
|
otherProperty |
{ [key: string]: string | number | 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_PrimitiveComponent;|
Parameter |
Type |
Description |
|---|---|---|
|
primitiveLock |
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_Rotation(rotation: number): IPCB_PrimitiveComponent;|
Parameter |
Type |
Description |
|---|---|---|
|
rotation |
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_Supplier(supplier: string | undefined): IPCB_PrimitiveComponent;|
Parameter |
Type |
Description |
|---|---|---|
|
supplier |
string | undefined |
供应商 |
器件图元对象
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_SupplierId(supplierId: string | undefined): IPCB_PrimitiveComponent;|
Parameter |
Type |
Description |
|---|---|---|
|
supplierId |
string | undefined |
供应商编号 |
器件图元对象
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.
设置属性状态:唯一 ID
setState_UniqueId(uniqueId: string | undefined): IPCB_PrimitiveComponent;|
Parameter |
Type |
Description |
|---|---|---|
|
uniqueId |
string | undefined |
唯一 ID |
器件图元对象
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.
设置属性状态:坐标 X
setState_X(x: number): IPCB_PrimitiveComponent;|
Parameter |
Type |
Description |
|---|---|---|
|
x |
number |
坐标 X |
器件图元对象
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.
设置属性状态:坐标 Y
setState_Y(y: number): IPCB_PrimitiveComponent;|
Parameter |
Type |
Description |
|---|---|---|
|
y |
number |
坐标 Y |
器件图元对象
将图元转换为异步图元
toAsync(): IPCB_PrimitiveComponent;器件图元对象
将图元转换为同步图元
toSync(): IPCB_PrimitiveComponent;器件图元对象