Skip to content

Type Editor


Type Editor / @type-editor/commands / zoom / zoomReset

Function: zoomReset()

ts
function zoomReset(_state, _dispatch, view): boolean;

Defined in: zoom.ts:34

Command to reset the editor view zoom to 100%.

Parameters

ParameterTypeDescription
_statePmEditorStateThe current editor state (unused).
_dispatchDispatchFunctionThe dispatch function (unused).
viewPmEditorViewThe editor view to reset zoom.

Returns

boolean

true if the zoom was reset successfully.