动作参考 插件可以响应以下动作。如果您想了解如何监听动作,请查看 动作 API 指南。 动作列表 AddBorder AddExportFormat AddFill AddFlow AddFlowBack AddFlowHome AddInnerShadow AddShadow AlignBottom AlignCenter AlignJustified AlignLayersBottom AlignLayersCenter AlignLayersLeft AlignLayersMiddle AlignLayersRight AlignLayersTop AlignLeft AlignMiddle AlignRight AlignTop AlignmentActions ApplyData ApplyHorizontalFlip ApplyVerticalFlip AssignColorSpace 助手 AssistantActivate AssistantCheckDocument AssistantCheckDocumentAutomatically AssistantConfigure AssistantInstallFromDisk AssistantInstallFromURL AssistantInstallMissing AssistantShowIgnored AutoExpandGroups BackToInstance BadgeMenu BaseAlignLayers BaseStyle BooleanActionGroup BooleanMenu CenterLayersInCanvas CenterSelectionInVisibleArea ChangeFlowAnimationFromBottomAnimation ChangeFlowAnimationFromLeftAnimation ChangeFlowAnimationFromRightAnimation ChangeFlowAnimationFromTopAnimation ChangeFlowAnimationNoAnimation ChangeFont ChangeInferredLayout ClearDataRecord ClippingMask ClippingMaskMode ClosePath 云 CollapseAllGroups ColorInspectorCircularGradientTab ColorInspectorColorTab ColorInspectorImageTab ColorInspectorLinearGradientTab ColorInspectorModeBorderTouchBarGroup ColorInspectorModeFillTouchBarGroup ColorInspectorModePicker ColorInspectorRadialGradientTab ConstraintFixHeight ConstraintFixWidth ConstraintPinBottom ConstraintPinLeft ConstraintPinRight ConstraintPinTop ConstraintReset ContextMenuData ConvertColorSpace ConvertFlowToHotspot ConvertSymbolOrDetachInstances ConvertSymbolOrDetachInstancesRecursively ConvertToOutlines 复制 CopyCSSAttributes CopyCloudDocumentLink CopyOverride CopySVGCode CopyStyle CreateSharedColor CreateSharedStyle CreateSymbol CurveModeAsymmetric CurveModeDisconnected CurveModeMirrored CurveModeStraight CurveModeTouchGroup 剪切 DataMenu DefaultStyle 删除 DetachSharedColor DetachSharedStyle Difference DistributeActions DistributeHorizontally DistributeVertically 复制 编辑 EditColorSpace 导出 ExportPDFBook ExportSelectionWithExportFormats 查找 扁平化 FlattenSelection FlipHorizontal FlipVertical FollowFlow ForceResyncLibrary GridSettings 组合 GroupActionGroup HandleURL 当 Sketch 使用以下 URL 方案打开时触发:`sketch://plugin/my.plugin.identifier/my.command.identifier`。 HandlerGotFocus HandlerLostFocus HideAllGridsAndLayouts HideLayer IgnoreClippingMask ImageOriginalSize IncompatiblePluginsDisabled InsertArrow InsertArtboard InsertHotspot InsertImage InsertLine InsertMenu InsertSharedText InsertSlice InsertSymbol InsertTextLayer InsertVector Intersect Join LayerFocusActions LayerHeightFocus LayerWidthFocus LayerXFocus LayerYFocus LayoutSettings LegacyInsertMenu LicenseExpired ListTypeActionBullet ListTypeActionNone ListTypeActionNumbered LockLayer 放大镜 MainMenuData MakeGrid MakeLowercase MakeUppercase ManageCloudDocumentShareSettings MaskWithShape 镜像 MoveActionGroup MoveBackward MoveForward MoveToBack MoveToFront MoveToTop MoveUpHierarchy NavigateToOverrideMaster NewPage NextPage OffsetPath OpenPreview OpenStyleInLibrary OpenSwatchInLibrary OpenSymbolInLibrary OpenTypeFeatures OrganizeImportedSymbols OvalShape 粘贴 PasteHere PasteOverSelection PasteStyle PasteWithStyle 铅笔 PolygonShape PreviewAtActualSize PreviousPage 打印 RectangleShape 重做 ReduceFileSize ReduceImageSize RefreshData RemoveAllOverrides RemoveFlow RemoveSelectedOverrides RemoveTextTransform RemoveUnusedStyles RenameLayer ReplaceColor ReplaceFonts ReplaceImage ReplaceOverride ReplaceOverrideStyle ReplaceOverrideSymbol ReplaceWithSymbol ReplaceWithSymbolRoot ResetOrigin ResetSharedColor ResetSharedStyle ResetSymbolSize ResizeArtboardToFit RevealInLayerList ReversePath 旋转 RotateClockwise RotateCounterclockwise RoundToPixel RoundedRectangleShape RunPluginCommand SaveAsTemplate 缩放 剪刀 搜索 全选 SelectAllArtboards SendToSymbolsPage 形状 ShowBorderOptions ShowColors ShowComponentsPane ShowDocumentFonts ShowFillOptions ShowFonts ShowLayerList ShowReplaceColorSheet Sketch.MSAddComponent Sketch.MSChangeComponentKindActionGroup Sketch.MSChangeLayerStyleComponentKind Sketch.MSChangeSwatchComponentKind Sketch.MSChangeSymbolComponentKind Sketch.MSChangeTextStyleComponentKind Sketch.MSComponentsPicker Sketch.MSContentMode Sketch.MSCopyComponent Sketch.MSDeleteComponent Sketch.MSDuplicateComponent Sketch.MSEditSymbolMasterComponent Sketch.MSFilterComponentList Sketch.MSGroupComponents Sketch.MSInsertComponentInstance Sketch.MSMaintainScrollPosition Sketch.MSRenameComponent Sketch.MSRenameSharedStyle Sketch.MSRevealComponent Sketch.MSRevealComponentsPanel Sketch.MSTidy Sketch.MSUngroupComponents Sketch.MSVisitSymbolComponent Sketch.ToggleLibraryListInComponentsPanel SmartRotate StarShape Subtract SyncLibrary SyncLocalColor SyncLocalStyle TextAlignTouchBarGroup TextOnPath TextStyleTouchBar ToggleAlignmentGuides ToggleArtboardShadow ToggleFixToViewport ToggleFlowInteraction ToggleGrid ToggleInspectorVisibility ToggleInterface ToggleLayerHighlight ToggleLayout TogglePixelGrid TogglePixelLines ToggleRulerDragLocking ToggleRulers ToggleSelection ToggleSidebarVisibility ToggleSliceInteraction ToggleToolbarVisibility ToolsMenu 变换 TriangleShape 下划线 撤销 取消组合 Union UnlinkAndSyncFromLibrary UnlinkFromLibrary UpdatePlugins ViewDocumentInDocumentsWindow ViewMenu ViewOnSketchCloudWeb 缩放 ZoomActions ZoomIn ZoomOut ZoomToActualSize ZoomToArtboard ZoomToSelection AddAsLibrary 当文档保存为库时触发 ApplyLandscapeOrientation 当画板的朝向发生变化时触发 ApplyPortraitOrientation 当画板的朝向发生变化时触发 ApplySharedLayerStyle 当将共享图层样式应用于图层时触发 ApplySharedTextStyle 当将共享文本样式应用于文本图层时触发 ArtboardChanged 当当前画板发生变化时触发 CloseDocument 当文档关闭时触发 DocumentSaved 当文档保存时触发 ExportSlices 当用户导出一些画板、图层或切片时触发 LayersMoved 当用户移动一些图层时触发 LayersResized 当用户调整一些图层的大小尺寸时触发 OpenDocument 当文档打开时触发 SelectionChanged 当用户在文档中更改选定图层时触发 Shutdown 当插件卸载时触发 启动 当插件加载时触发 TextChanged 当文本图层的内容发生更改时触发 ToggleBorder 当选中形状的边框被切换时触发 ToggleFill 当选中形状的填充被切换时触发