"command:activateTool": [void]
command:addAnimationKeyframe
"command:addAnimationKeyframe": [void]
command:addSubNode
"command:addSubNode": [void]
command:addTextElement
"command:addTextElement": [Element2D]
command:align
"command:align": [void]
command:alignBottom
"command:alignBottom": [void]
command:alignHorizontalCenter
"command:alignHorizontalCenter": [void]
command:alignLeft
"command:alignLeft": [void]
command:alignRight
"command:alignRight": [void]
command:alignTop
"command:alignTop": [void]
command:alignVerticalCenter
"command:alignVerticalCenter": [void]
command:applyAnimationPreset
"command:applyAnimationPreset": [void]
"command:applyFormatPaint": [void]
command:bindVariable
"command:bindVariable": [void]
command:bringForward
"command:bringForward": [void]
command:bringToFront
"command:bringToFront": [void]
command:cancel
"command:cancel": [void]
command:clearDoc
"command:clearDoc": [void]
command:clearRulerLines
"command:clearRulerLines": [void]
command:copy
"command:copy": [Promise<void>]
command:copyAs
"command:copyAs": [Promise<void>]
command:createComponent
"command:createComponent": [string | undefined]
command:createInstance
"command:createInstance": [string | undefined]
command:createVariable
"command:createVariable": [string]
command:createVariableCollection
"command:createVariableCollection": [string]
command:createVariableMode
"command:createVariableMode": [string]
command:cut
"command:cut": [Promise<void>]
command:delete
"command:delete": [void]
command:detachInstance
"command:detachInstance": [void]
command:disableFlexLayout
"command:disableFlexLayout": [void]
command:distributeHorizontalSpacing
"command:distributeHorizontalSpacing": [void]
command:distributeSpacing
"command:distributeSpacing": [void]
command:distributeVerticalSpacing
"command:distributeVerticalSpacing": [void]
command:duplicate
"command:duplicate": [void]
command:eachTextSelection
"command:eachTextSelection": [void]
command:editElement
"command:editElement": [void]
command:enableFlexLayout
"command:enableFlexLayout": [void]
"command:exitFormatPaint": [void]
command:exportLottie
"command:exportLottie": [object]
command:exportSlice
"command:exportSlice": [Promise<HTMLCanvasElement | undefined>]
command:flip
"command:flip": [void]
command:flipHorizontal
"command:flipHorizontal": [void]
command:flipVertical
"command:flipVertical": [void]
"command:formatPaint": [void]
command:frameSelection
"command:frameSelection": [void]
command:getComponents
"command:getComponents": [ComponentDef[]]
command:getEasings
"command:getEasings": [Record<string, string>]
command:getElementInteractions
command:getElementKeyframes
"command:getElementKeyframes": [Keyframe[]]
command:getFlexStyle
"command:getFlexStyle": [any]
command:getState
"command:getState": [State] command:getTextFill
"command:getTextFill": [NormalizedFill | undefined]
command:getTextStyle
"command:getTextStyle": [any]
command:getVariablesState
"command:getVariablesState": [VariablesState]
command:groupSelection
"command:groupSelection": [void]
command:hidePanel
"command:hidePanel": [void]
command:hideUi
"command:hideUi": [void]
command:importFile
"command:importFile": [Promise<Element2D[]>]
command:insertImage
"command:insertImage": [Promise<Element2D>]
command:isFlexLayout
"command:isFlexLayout": [boolean]
command:isPanelVisible
"command:isPanelVisible": [boolean]
command:isUiVisible
"command:isUiVisible": [boolean]
"command:layerScrollIntoView": [boolean]
command:loadComponentPresets
"command:loadComponentPresets": [void]
command:loadDoc
"command:loadDoc": [Promise<Doc>]
command:marqueeSelect
"command:marqueeSelect": [void]
command:move
"command:move": [void]
command:moveBottom
"command:moveBottom": [void]
command:moveLeft
"command:moveLeft": [void]
command:moveRight
"command:moveRight": [void]
command:moveTop
"command:moveTop": [void]
command:nestIntoFrame
"command:nestIntoFrame": [void]
command:newDoc
"command:newDoc": [void]
command:openContextMenu
"command:openContextMenu": [boolean]
command:openDoc
"command:openDoc": [Promise<void>]
command:paste
"command:paste": [Promise<void>]
command:pause
"command:pause": [void]
command:pauseElementAnimation
"command:pauseElementAnimation": [void]
command:play
"command:play": [void]
command:playElementAnimation
"command:playElementAnimation": [void]
command:pointerDown
"command:pointerDown": [void]
command:redo
"command:redo": [void]
command:registerEasing
"command:registerEasing": [void]
command:removeAnimationKeyframe
"command:removeAnimationKeyframe": [void]
command:removeComponent
"command:removeComponent": [void]
command:resolveVariables
"command:resolveVariables": [void]
command:rotate
"command:rotate": [void]
command:rotate90
"command:rotate90": [void]
command:runInteraction
"command:runInteraction": [void]
command:save
"command:save": [void]
command:saveAs
"command:saveAs": [Promise<void>]
"command:scrollTo": [Promise<void>]
"command:scrollToSelection": [void]
command:seekEnd
"command:seekEnd": [void]
command:seekStart
"command:seekStart": [void]
command:select
"command:select": [void]
command:selectAll
"command:selectAll": [void]
command:selectChildren
"command:selectChildren": [void]
command:selectInverse
"command:selectInverse": [void]
command:selectNextSibling
"command:selectNextSibling": [void]
command:selectNone
"command:selectNone": [void]
command:selectParent
"command:selectParent": [void]
command:selectPreviousSibling
"command:selectPreviousSibling": [void]
command:sendBackward
"command:sendBackward": [void]
command:sendToBack
"command:sendToBack": [void]
command:setActiveVariableMode
"command:setActiveVariableMode": [void]
command:setAnimationKeyframeEasing
"command:setAnimationKeyframeEasing": [void]
command:setAnimationTiming
"command:setAnimationTiming": [void]
command:setComponent
"command:setComponent": [void]
command:setDoc
"command:setDoc": [Doc]
command:setElementInteractions
"command:setElementInteractions": [void]
command:setFlexStyle
"command:setFlexStyle": [void]
command:setInstanceOverride
"command:setInstanceOverride": [void]
command:setPanelVisible
"command:setPanelVisible": [void]
command:setSmartSelectionCurrentElement
"command:setSmartSelectionCurrentElement": [void]
command:setState
"command:setState": [void]
command:setTextContentByEachFragment
"command:setTextContentByEachFragment": [void]
command:setTextFill
"command:setTextFill": [void]
command:setTextStyle
"command:setTextStyle": [void]
"command:setTransform": [void]
command:setUiVisible
"command:setUiVisible": [void]
command:setVariableValue
"command:setVariableValue": [void]
command:showPanel
"command:showPanel": [void]
command:showUi
"command:showUi": [void]
"command:startTransform": [boolean]
command:startTyping
"command:startTyping": [Promise<boolean>]
command:stepBackward
"command:stepBackward": [void]
command:stepForward
"command:stepForward": [void]
command:stopElementAnimation
"command:stopElementAnimation": [void]
command:syncInstancesOf
"command:syncInstancesOf": [void]
"command:testPerformance": [void]
command:textFontSizeToFit
"command:textFontSizeToFit": [void]
command:textToFit
"command:textToFit": [void]
command:tidyUp
"command:tidyUp": [void]
command:toggleElementAnimation
"command:toggleElementAnimation": [void]
command:toggleFlexLayout
"command:toggleFlexLayout": [void]
command:togglePanel
"command:togglePanel": [void]
command:togglePlay
"command:togglePlay": [void]
command:togglePreview
"command:togglePreview": [void]
command:toggleSelectionLock
"command:toggleSelectionLock": [void]
command:toggleSelectionVisible
"command:toggleSelectionVisible": [void]
command:toggleUi
"command:toggleUi": [void]
command:unbindVariable
"command:unbindVariable": [void]
command:undo
"command:undo": [void]
command:ungroupSelection
"command:ungroupSelection": [void]
command:zoomIn
"command:zoomIn": [void]
command:zoomOut
"command:zoomOut": [void]
command:zoomTo
"command:zoomTo": [Promise<void>]
command:zoomTo100
"command:zoomTo100": [void]
command:zoomToFit
"command:zoomToFit": [void]
command:zoomToNextFrame
"command:zoomToNextFrame": [void]
command:zoomToPreviousFrame
"command:zoomToPreviousFrame": [void]
command:zoomToSelection
"command:zoomToSelection": [void]
command:zOrder
"command:zOrder": [void]
docLoaded
docLoaded: [source: any, root: Error | Doc]
docLoadStart
docLoadStart: [source: any]
docSet
docSet: [doc: Doc, oldDoc: Doc]
docUpdated
docUpdated: [update: Uint8Array<ArrayBufferLike>, origin: any]
fontLoaded
fontLoaded: [font: FontLoadedResult]
historyChanged
historyChanged: [arg0: UndoManager]
hotkey:alignBottom
"hotkey:alignBottom": [event: KeyboardEvent]
hotkey:alignHorizontalCenter
"hotkey:alignHorizontalCenter": [event: KeyboardEvent]
hotkey:alignLeft
"hotkey:alignLeft": [event: KeyboardEvent]
hotkey:alignRight
"hotkey:alignRight": [event: KeyboardEvent]
hotkey:alignTop
"hotkey:alignTop": [event: KeyboardEvent]
hotkey:alignVerticalCenter
"hotkey:alignVerticalCenter": [event: KeyboardEvent]
hotkey:bringForward
"hotkey:bringForward": [event: KeyboardEvent]
hotkey:bringToFront
"hotkey:bringToFront": [event: KeyboardEvent]
hotkey:cancel
"hotkey:cancel": [event: KeyboardEvent]
hotkey:copy
"hotkey:copy": [event: KeyboardEvent]
hotkey:cut
"hotkey:cut": [event: KeyboardEvent]
hotkey:delete
"hotkey:delete": [event: KeyboardEvent]
hotkey:distributeHorizontalSpacing
"hotkey:distributeHorizontalSpacing": [event: KeyboardEvent]
hotkey:distributeVerticalSpacing
"hotkey:distributeVerticalSpacing": [event: KeyboardEvent]
hotkey:duplicate
"hotkey:duplicate": [event: KeyboardEvent]
hotkey:editElement
"hotkey:editElement": [event: KeyboardEvent]
hotkey:flipHorizontal
"hotkey:flipHorizontal": [event: KeyboardEvent]
hotkey:flipVertical
"hotkey:flipVertical": [event: KeyboardEvent]
hotkey:frameSelection
"hotkey:frameSelection": [event: KeyboardEvent]
hotkey:groupSelection
"hotkey:groupSelection": [event: KeyboardEvent]
hotkey:importFile
"hotkey:importFile": [event: KeyboardEvent]
hotkey:moveBottom
"hotkey:moveBottom": [event: KeyboardEvent]
hotkey:moveLeft
"hotkey:moveLeft": [event: KeyboardEvent]
hotkey:moveRight
"hotkey:moveRight": [event: KeyboardEvent]
hotkey:moveTop
"hotkey:moveTop": [event: KeyboardEvent]
hotkey:newDoc
"hotkey:newDoc": [event: KeyboardEvent]
hotkey:openDoc
"hotkey:openDoc": [event: KeyboardEvent]
hotkey:paste
"hotkey:paste": [event: KeyboardEvent]
hotkey:redo
"hotkey:redo": [event: KeyboardEvent]
hotkey:save
"hotkey:save": [event: KeyboardEvent]
hotkey:seekEnd
"hotkey:seekEnd": [event: KeyboardEvent]
hotkey:seekStart
"hotkey:seekStart": [event: KeyboardEvent]
hotkey:selectAll
"hotkey:selectAll": [event: KeyboardEvent]
hotkey:selectChildren
"hotkey:selectChildren": [event: KeyboardEvent]
hotkey:selectInverse
"hotkey:selectInverse": [event: KeyboardEvent]
hotkey:selectNextSibling
"hotkey:selectNextSibling": [event: KeyboardEvent]
hotkey:selectNone
"hotkey:selectNone": [event: KeyboardEvent]
hotkey:selectParent
"hotkey:selectParent": [event: KeyboardEvent]
hotkey:selectPreviousSibling
"hotkey:selectPreviousSibling": [event: KeyboardEvent]
hotkey:sendBackward
"hotkey:sendBackward": [event: KeyboardEvent]
hotkey:sendToBack
"hotkey:sendToBack": [event: KeyboardEvent]
hotkey:stepBackward
"hotkey:stepBackward": [event: KeyboardEvent]
hotkey:stepForward
"hotkey:stepForward": [event: KeyboardEvent]
hotkey:tidyUp
"hotkey:tidyUp": [event: KeyboardEvent]
hotkey:togglePlay
"hotkey:togglePlay": [event: KeyboardEvent]
hotkey:toggleSelectionLock
"hotkey:toggleSelectionLock": [event: KeyboardEvent]
hotkey:toggleSelectionVisible
"hotkey:toggleSelectionVisible": [event: KeyboardEvent]
hotkey:undo
"hotkey:undo": [event: KeyboardEvent]
hotkey:ungroupSelection
"hotkey:ungroupSelection": [event: KeyboardEvent]
hotkey:zoomIn
"hotkey:zoomIn": [event: KeyboardEvent]
hotkey:zoomOut
"hotkey:zoomOut": [event: KeyboardEvent]
hotkey:zoomTo100
"hotkey:zoomTo100": [event: KeyboardEvent]
hotkey:zoomToFit
"hotkey:zoomToFit": [event: KeyboardEvent]
hotkey:zoomToSelection
"hotkey:zoomToSelection": [event: KeyboardEvent]
保存请求;外部通过 editor.on('save', ({ reason, getData }) => ...) 处理持久化