器件图元
declare class ISCH_PrimitiveComponent implements ISCH_Primitive Implements: ISCH_Primitive
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
boolean |
异步 | |
|
|
string |
(Optional) Component 属性:位号 | |
|
|
boolean |
是否镜像 | |
|
|
string |
(Optional) Component 属性:名称 | |
|
|
{ [key: string]: string | number | boolean; } |
(Optional) 其它参数 | |
|
|
string |
(Optional) 图元 ID | |
|
|
number |
旋转角度 | |
|
|
number |
坐标 X | |
|
|
number |
坐标 Y |
|
Method |
Modifiers |
Description |
|---|---|---|
|
(BETA) 将对图元的更改应用到画布 | ||
|
获取属性状态:是否加入 BOM | ||
|
获取属性状态:是否转到 PCB | ||
|
获取属性状态:关联库器件 | ||
|
获取属性状态:器件类型 | ||
|
获取属性状态:位号 | ||
|
获取属性状态:关联库封装 | ||
|
获取属性状态:制造商 | ||
|
获取属性状态:制造商编号 | ||
|
获取属性状态:是否镜像 | ||
|
获取属性状态:名称 | ||
|
获取属性状态:网络名称 | ||
|
获取属性状态:其它参数 | ||
|
获取属性状态:图元 ID | ||
|
获取属性状态:图元类型 | ||
|
获取属性状态:旋转角度 | ||
|
获取属性状态:子部件名称 | ||
|
获取属性状态:供应商 | ||
|
获取属性状态:供应商编号 | ||
|
获取属性状态:关联库符号 | ||
|
获取属性状态:唯一 ID | ||
|
获取属性状态:坐标 X | ||
|
获取属性状态:坐标 Y | ||
|
查询图元是否为异步图元 | ||
|
(BETA) 将异步图元重置为当前画布状态 | ||
|
(BETA) 设置属性状态:是否加入 BOM | ||
|
(BETA) 设置属性状态:是否转到 PCB | ||
|
(BETA) 设置属性状态:位号 | ||
|
(BETA) 设置属性状态:制造商 | ||
|
(BETA) 设置属性状态:制造商编号 | ||
|
(BETA) 设置属性状态:是否镜像 | ||
|
(BETA) 设置属性状态:名称 | ||
|
(BETA) 设置属性状态:网络名称 | ||
|
(BETA) 设置属性状态:其它参数 | ||
|
(BETA) 设置属性状态:旋转角度 | ||
|
(BETA) 设置属性状态:供应商 | ||
|
(BETA) 设置属性状态:供应商编号 | ||
|
(BETA) 设置属性状态:唯一 ID | ||
|
(BETA) 设置属性状态:坐标 X | ||
|
(BETA) 设置属性状态:坐标 Y | ||
|
将图元转换为异步图元 | ||
|
将图元转换为同步图元 |
异步
protected async: boolean;Component 属性:位号
protected designator?: string;是否镜像
protected mirror: boolean;Component 属性:名称
protected name?: string;其它参数
protected otherProperty?: {
[key: string]: string | number | boolean;
};图元 ID
protected primitiveId?: string;旋转角度
protected rotation: number;坐标 X
protected x: number;坐标 Y
protected y: 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.
将对图元的更改应用到画布
done(): Promise<ISCH_PrimitiveComponent>;Promise<ISCH_PrimitiveComponent>
器件图元对象
获取属性状态:是否加入 BOM
getState_AddIntoBom(): boolean | undefined;boolean | undefined
是否加入 BOM
获取属性状态:是否转到 PCB
getState_AddIntoPcb(): boolean | undefined;boolean | undefined
是否转到 PCB
获取属性状态:关联库器件
getState_Component(): {
libraryUuid: string;
uuid: string;
name?: string;
} | undefined;{ libraryUuid: string; uuid: string; name?: string; } | undefined
关联库器件
获取属性状态:器件类型
getState_ComponentType(): ESCH_PrimitiveComponentType;ESCH_PrimitiveComponentType
器件类型
获取属性状态:位号
getState_Designator(): string | undefined;string | undefined
位号
获取属性状态:关联库封装
getState_Footprint(): {
libraryUuid: string;
uuid: string;
name?: string;
} | undefined;{ libraryUuid: string; uuid: string; name?: string; } | undefined
关联库封装
获取属性状态:制造商
getState_Manufacturer(): string | undefined;string | undefined
制造商
获取属性状态:制造商编号
getState_ManufacturerId(): string | undefined;string | undefined
制造商编号
获取属性状态:是否镜像
getState_Mirror(): boolean;boolean
是否镜像
获取属性状态:名称
getState_Name(): string | undefined;string | undefined
名称
获取属性状态:网络名称
getState_Net(): string | undefined;string | undefined
网络名称
获取属性状态:其它参数
getState_OtherProperty(): {
[key: string]: string | number | boolean;
} | undefined;{ [key: string]: string | number | boolean; } | undefined
其它参数
获取属性状态:图元 ID
getState_PrimitiveId(): string;string
图元 ID
获取属性状态:图元类型
getState_PrimitiveType(): ESCH_PrimitiveType;图元类型
获取属性状态:旋转角度
getState_Rotation(): number;number
旋转角度
获取属性状态:子部件名称
getState_SubPartName(): string | undefined;string | undefined
子部件名称
获取属性状态:供应商
getState_Supplier(): string | undefined;string | undefined
供应商
获取属性状态:供应商编号
getState_SupplierId(): string | undefined;string | undefined
供应商编号
获取属性状态:关联库符号
getState_Symbol(): {
libraryUuid: string;
uuid: string;
name?: string;
} | undefined;{ libraryUuid: string; uuid: string; name?: 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<ISCH_PrimitiveComponent>;Promise<ISCH_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 | undefined): ISCH_PrimitiveComponent;|
Parameter |
Type |
Description |
|---|---|---|
|
addIntoBom |
boolean | undefined |
是否加入 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.
设置属性状态:是否转到 PCB
setState_AddIntoPcb(addIntoPcb: boolean | undefined): ISCH_PrimitiveComponent;|
Parameter |
Type |
Description |
|---|---|---|
|
addIntoPcb |
boolean | undefined |
是否转到 PCB |
器件图元对象
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): ISCH_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_Manufacturer(manufacturer: string | undefined): ISCH_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): ISCH_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_Mirror(mirror: boolean): ISCH_PrimitiveComponent;|
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_Name(name: string | undefined): ISCH_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_Net(net: string | undefined): ISCH_PrimitiveComponent;|
Parameter |
Type |
Description |
|---|---|---|
|
net |
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;
}): ISCH_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_Rotation(rotation: number): ISCH_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): ISCH_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): ISCH_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): ISCH_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): ISCH_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): ISCH_PrimitiveComponent;|
Parameter |
Type |
Description |
|---|---|---|
|
y |
number |
坐标 Y |
器件图元对象
将图元转换为异步图元
toAsync(): ISCH_PrimitiveComponent;圆弧线图元对象
将图元转换为同步图元
toSync(): ISCH_PrimitiveComponent;圆弧线图元对象