Skip to content

Type Editor


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

Function: zoomOut()

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

Defined in: zoom.ts:23

Command to zoom out the editor view by 10%, down to a minimum of 10%.

Parameters

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

Returns

boolean

true if the zoom was applied successfully.