Home > SCH_Document > autoLayout
SCH_Document.autoLayout() 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
public autoLayout(props?: { uuids?: undefined | string[]; netlist?: undefined | { component: Record<string, { pinInfoMap: Record<string, { name: string; number: string; net: string; props: { 'Pin Number': string } }> }> }; designatorDeviceTypeMap?: undefined | Record<string, 'resistor' | 'capacitor' | 'inductive' | 'diode' | 'triode' | 'oscillator' | 'chip' | 'otherDevice'> }): Promise<any>;1
Parameters
Parameter | Type | Description |
|---|---|---|
props | { uuids?: undefined | string[]; netlist?: undefined | { component: Record<string, { pinInfoMap: Record<string, { name: string; number: string; net: string; props: { 'Pin Number': string } }> }> }; designatorDeviceTypeMap?: undefined | Record<string, 'resistor' | 'capacitor' | 'inductive' | 'diode' | 'triode' | 'oscillator' | 'chip' | 'otherDevice'> } | (Optional) 自动布局参数 |
Returns
Promise<any>
自动布局结果
Remarks
如不传入任何参数,将对所有器件进行自动布局