Home > DMT_EditorControl > zoomToAllPrimitives
DMT_EditorControl.zoomToAllPrimitives() 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
zoomToAllPrimitives(tabId?: string): Promise<{
left: number;
right: number;
top: number;
bottom: number;
} | false>;
1
2
3
4
5
6
2
3
4
5
6
Parameters
Parameter | Type | Description |
---|---|---|
tabId | string | (Optional) 标签页 ID,如若未传入,则为最后输入焦点的画布 |
Returns
Promise<{ left: number; right: number; top: number; bottom: number; } | false>
缩放到的区域数据,false
表示画布不支持该缩放操作或 tabId
不存在
Remarks
在返回数据中,原理图、符号画布坐标单位跨度为 0.01inch,PCB、封装画布坐标单位跨度为 mil