Skip to content

Type Editor


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

Function: zoomIn()

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

Defined in: zoom.ts:12

Command to zoom in the editor view by 10%, up to a maximum of 200%.

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.