本页由脚本自动生成,请勿手动编辑。如需补充说明,请使用
::: tip块。
ts
function useHostState(host): object;Defined in: hooks/use-host-state.d.ts:2
Parameters
| Parameter | Type |
|---|---|
host | EditorHost |
Returns
object
hostState
ts
hostState: object;hostState.zoom
ts
zoom: number;hostState.currentTool
ts
currentTool: string;hostState.snapToGrid
ts
snapToGrid: boolean;hostState.showGrid
ts
showGrid: boolean;hostState.width
ts
width: number;hostState.height
ts
height: number;hostState.wmm
ts
wmm: number;hostState.hmm
ts
hmm: number;hostState.dpm
ts
dpm: number;