Home > SCH_PrimitiveBus > modify
SCH_PrimitiveBus.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 | ISCH_PrimitiveBus, property: {
busName?: string;
line?: Array<number> | Array<Array<number>>;
color?: string | null;
lineWidth?: number | null;
lineType?: ESCH_PrimitiveLineType | null;
}): Promise<ISCH_PrimitiveBus | undefined>;
1
2
3
4
5
6
7
2
3
4
5
6
7
Parameters
Parameter | Type | Description |
---|---|---|
primitiveId | string | ISCH_PrimitiveBus | 总线的图元 ID 或总线图元对象 |
property | { busName?: string; line?: Array<number> | Array<Array<number>>; color?: string | null; lineWidth?: number | null; lineType?: ESCH_PrimitiveLineType | null; } | 修改参数 |
Returns
Promise<ISCH_PrimitiveBus | undefined>
总线图元对象