Skip to content

Latest commit

 

History

History
924 lines (911 loc) · 24.2 KB

README.md

File metadata and controls

924 lines (911 loc) · 24.2 KB

sketch-app-types

TypeScript declaration files for Sketch v60.

preview

Getting Started

$ npm install sketch-app-types

Known issues

  • no types for function arguments and return types (help wanted)

Rebuild Types

# build plugin
npm run build

# Run plugin
npm run generate

Sketch class inheritance diagram

NSResponder ``` MSAction MSAddRemoteLibraryAction MSDocumentAction MSActionGroup MSAlignmentActions MSBooleanActionGroup MSColorInspectorModeBorderTouchBarGroupAction MSColorInspectorModeFillTouchBarGroupAction MSCurveModeTouchGroupAction MSDistributeActions MSGroupActionGroup MSLayerFocusActions MSMoveActionGroup MSTextAlignTouchBarGroupAction MSZoomActions MSAddAsLibraryAction MSAddExportFormatAction MSApplyOrientationAction MSApplyLandscapeOrientationAction MSApplyPortraitOrientationAction MSApplySharedStyleAction MSApplySharedLayerStyleAction MSApplySharedTextStyleAction MSAutoExpandGroupsAction MSBackToInstanceAction MSBadgeMenuAction MSBaseAlignAction MSAlignCenterAction MSAlignJustifiedAction MSAlignLeftAction MSAlignRightAction MSBaseAlignLayersAction MSAlignLayersBottomAction MSAlignLayersCenterAction MSAlignLayersLeftAction MSAlignLayersMiddleAction MSAlignLayersRightAction MSAlignLayersTopAction MSBaseBooleanAction MSDifferenceAction MSIntersectAction MSSubtractAction MSUnionAction MSBaseConvertSymbolOrDetachInstancesAction MSConvertSymbolOrDetachInstancesAction MSConvertSymbolOrDetachInstancesRecursivelyAction MSBaseFlipAction MSApplyHorizontalFlipAction MSApplyVerticalFlipAction MSFlipHorizontalAction MSFlipVerticalAction MSBaseInsertAction MSBaseShapeAction MSOvalShapeAction MSPolygonShapeAction MSRectangleShapeAction MSRoundedRectangleShapeAction MSStarShapeAction MSTriangleShapeAction MSInsertArtboardAction MSInsertImageAction MSInsertLineAction MSInsertArrowAction MSInsertTextLayerAction MSBaseMoveAction MSBaseMoveBackwardAction MSMoveBackwardAction MSMoveToBackAction MSBaseMoveForwardAction MSMoveForwardAction MSMoveToFrontAction MSBaseSharedObjectAction MSCreateSharedStyleAction MSDetachSharedStyleAction MSManageShareableObjectsAction MSResetSharedStyleAction MSUnlinkAndOrSyncAction MSSyncLocalStyleAction MSUnlinkAndSyncFromLibraryAction MSUnlinkFromLibraryAction MSBaseStyleAction MSAddBorderAction MSAddFillAction MSAddInnerShadowAction MSAddShadowAction MSRemoveUnusedStylesAction MSShowBorderOptionsAction MSShowFillOptionsAction MSBooleanMenuAction MSCenterLayersInCanvasAction MSCenterSelectionInVisibleAreaAction MSChangeColorSpaceAction MSAssignColorSpaceAction MSConvertColorSpaceAction MSChangeFlowAnimationAction MSChangeFlowAnimationFromBottomAnimationAction MSChangeFlowAnimationFromLeftAnimationAction MSChangeFlowAnimationFromRightAnimationAction MSChangeFlowAnimationFromTopAnimationAction MSChangeFlowAnimationNoAnimationAction MSChangeFontAction MSChangeInferredLayoutAction MSChangePageAction MSNextPageAction MSPreviousPageAction MSClippingMaskAction MSClippingMaskModeAction MSClosePathAction MSCollapseAllGroupsAction MSColorInspectorModePickerAction MSColorInspectorCircularGradientTabAction MSColorInspectorColorTabAction MSColorInspectorImageTabAction MSColorInspectorLinearGradientTabAction MSColorInspectorRadialGradientTabAction MSConstraintAction MSConstraintFixHeightAction MSConstraintFixWidthAction MSConstraintPinBottomAction MSConstraintPinLeftAction MSConstraintPinRightAction MSConstraintPinTopAction MSConstraintResetAction MSConvertToOutlinesAction MSCopyAction MSCopyCSSAttributesAction MSCopySVGCodeAction MSCopyStyleAction MSCreateSymbolAction MSCurveModeAdjustAction MSCurveModeAsymmetricAction MSCurveModeDisconnectedAction MSCurveModeMirroredAction MSCurveModeStraightAction MSCutAction MSDataAction MSDataMenuAction MSDefaultStyleAction MSDeleteAction MSDistributeAction MSDistributeHorizontallyAction MSDistributeVerticallyAction MSDuplicateAction MSEditAction MSEditColorSpaceAction MSEventHandlerAction MSRotateAction MSRotateClockwiseAction MSRotateCounterclockwiseAction MSScissorsAction MSTransformAction MSExportAction MSExportPDFBookAction MSExportSelectionWithExportFormatsAction MSFindLayerAction MSFlattenAction MSFlattenSelectionAction MSFlowBaseAction MSAddFlowAction MSAddFlowBackAction MSAddFlowHomeAction MSConvertFlowToHotspotAction MSFollowFlowAction MSRemoveFlowAction MSGridSettingsAction MSGroupAction MSHideAllGridsAndLayoutsAction MSHideLayerAction MSIgnoreClippingMaskAction MSImageOriginalSizeAction MSIncompatiblePluginsDisabledAction MSInsertHotspotAction MSInsertMenuAction MSInsertSliceAction MSInsertVectorAction MSJoinAction MSLayerHeightFocusAction MSLayerWidthFocusAction MSLayerXFocusAction MSLayerYFocusAction MSLayoutSettingsAction MSLicenseExpiredAction MSLicenseSheetAction MSListTypeAction MSListTypeActionBullet MSListTypeActionNone MSListTypeActionNumbered MSLockLayerAction MSMagnifierAction MSMakeGridAction MSMaskWithShapeAction MSMirrorAction MSMoveToTopAction MSMoveUpHierarchyAction MSNewPageAction MSOffsetPathAction MSOpenInLibraryAction MSOpenStyleInLibraryAction MSOpenSymbolInLibraryAction MSOpenPreviewAction MSPasteAction MSPasteHereAction MSPasteOverSelectionAction MSPasteStyleAction MSPasteWithStyleAction MSPencilAction MSPopoverAction MSCloudAction MSPreviewAtActualSizeAction MSPrintAction MSReduceFileSizeAction MSReduceImageSizeAction MSRemoveAllOverridesAction MSRenameLayerAction MSReplaceColorAction MSReplaceFontsAction MSReplaceImageAction MSResetOriginAction MSResetSymbolSizeAction MSResizeArtboardToFitAction MSRevealInLayerListAction MSReversePathAction MSRoundToPixelAction MSSaveAsTemplateAction MSScaleAction MSSelectAllAction MSSelectAllArtboardsAction MSSendToSymbolsPageAction MSShapeAction MSSharedObjectAction MSInsertSharedTextAction MSSharedSymbolAction MSInsertSymbolAction MSReplaceWithSymbolAction MSShowColorsAction MSShowFontsAction MSShowReplaceColorSheetAction MSSmartRotateAction MSSyncLibraryAction MSTextOnPathAction MSTextStyleTouchBarAction MSTextTransformAction MSMakeLowercaseAction MSMakeUppercaseAction MSRemoveTextTransformAction MSTextVerticalAlignmentAction MSAlignBottomAction MSAlignMiddleAction MSAlignTopAction MSToggleBaseAction MSToggleGridAction MSToggleLayoutAction MSToggleFixToViewportAction MSToggleInterfaceAction MSTogglePixelGridAction MSToggleRulerDragLockingAction MSToggleStylePartAction MSToggleBorderAction MSToggleFillAction MSToggleViewPreferenceAction MSToggleAlignmentGuidesAction MSToggleArtboardShadowAction MSToggleFlowInteractionAction MSToggleLayerHighlightAction MSTogglePixelLinesAction MSToggleSelectionAction MSToggleSliceInteractionAction MSToggleVisibilityAction MSToggleInspectorVisibilityAction MSToggleLayerListVisibilityAction MSToggleRulersAction MSToggleToolbarVisibilityAction MSToolsMenuAction MSUnderlineAction MSUndoBaseAction MSRedoAction MSUndoAction MSUngroupAction MSUpdatePluginsAction MSViewMenuAction MSZoomAction MSZoomInAction MSZoomOutAction MSZoomToActualSizeAction MSZoomToArtboardAction MSZoomToSelectionAction MSFeedbackAction MSLibraryUpdatesAvailableBadgeAction MSLogAction MSOpenCloudPreferencesAction MSOpenPluginPreferencesAction MSOpenPreferencesAction MSRevealPluginsAction MSRunCustomScriptAction MSRunLastScriptAction MSRunPluginAction MSShowOnlineHelpAction MSShowReleaseNotesWindowAction MSShowSupportPageAction MSSilentCheckForUpdatesAction MSCheckForUpdatesAction MSQuietCheckForUpdatesAction MSToggleHUDAction MSVisitDocumentationAction MSWelcomeToSketchAction MSActionController MSEventHandler MSBitmapEditEventHandler MSDragRectEventHandler MSInsertLayerEventHandler MSInsertArtboardEventHandler MSInsertHotspotEventHandler MSInsertSliceEventHandler MSFlowEventHandler MSInsertLineEventHandler MSInsertArrowEventHandler MSInsertSymbolEventHandler MSInsertTextEventHandler MSNormalBaseEventHandler MSNormalEventHandler MSNormalResizeEventHandler MSNormalResizeLineEventHandler MSRotateEventHandler MSPencilEventHandler MSPointsEventHandler MSGradientEventHandler MSAngularGradientEventHandler MSRadialGradientEventHandler MSTransformEventHandler MSImageTransformEventHandler MSZoomBlurEventHandler MSScissorsEventHandler MSShapeEventHandler MSSmartRotateEventHandler MSTextLayerEventHandler MSUpDownController MSInlineUpDownController ```
NSObject ``` BCReadWriteLock MSAlignmentEngine MSAlignmentEngineConstraint MSAlignmentEngineResult MSAlignmentEngineResultGuide MSApplicationMetadata MSArc MSArcVertexBuffer MSArchiveHeader MSArchivedColor MSArtboardOrderSorting MSArtboardPreset MSArtboardPresetStore MSArtboardPresetsCategory MSArtboardPresetsSection MSArtboardSystemCategories MSArtboardTitleItem MSArtboardTitleRenderer MSAssetCollectionViewDataSource MSAssetLibrary MSRemoteAssetLibrary MSUserAssetLibrary MSAssetLibraryController MSAssetLibraryUpdater MSAssetLibraryUpdatingInfo MSAssetMigrationSources MSAssetPickerScrubberController MSAssetPreferenceItem MSAssetSyncSheetHeader MSAssetSyncSheetObject MSAttributeConverter MSAttributedString MSAttributedStringAttribute MSAvailableOverride MSSymbolOverride MSBackgroundBlurRendererCG MSBadgeController MSBaseArchiver MSJSONArchiver MSJSONDataArchiver MSJSONZippedArchiver MSKeyedArchiver MSBaseUnarchiver MSJSONUnarchiver MSJSONDataUnarchiver MSJSONDictionaryUnarchiver MSJSONZippedUnarchiver MSKeyedUnarchiver MSBeepSuppressor MSBezierBuilder MSBezierContour MSBezierFillet MSSmoothBezierFillet MSBezierInterpreter MSBezierIntersection MSBezierJoin MSBezierLineCurveJoin MSBezierCurveCurveJoin MSBezierLineLineJoin MSBezierSegment MSBitmapBackedRendering MSBitmapEditor MSBitmapMagicWandEditor MSBitmapRectangleEditor MSBitmapShadowRendererCG MSBooleanOperationChain MSBooleanOperationChainStep MSCGContextWrapper MSCacheManager MSCachedShadowMask MSCloudShareUploadController MSCloudSharesController MSCloudUser MSColorArchivingFactory MSColorReplacement MSColorReplacementConverter MSColorSpaceConverter MSColorWrapper MSCommand MSConstantBaselineInfo MSCoreImageQueue MSCornerRadiusInspectorValueAdaptorContext MSCrashLogManager MSCurvePointBehaviour MSCurvePointAsymmetricBehaviour MSCurvePointDisconnectedBehaviour MSCurvePointMirroredBehaviour MSCurvePointStraightBehaviour MSDataMenuProvider MSDataOverride MSDataPreferenceItem MSDataSupplier MSLocalDataSupplier MSBuiltinDataSupplier MSPluginDataSupplier MSDataSupplierGroup MSBuiltinDataSupplierGroup MSLocalDataSupplierGroup MSPluginDataSupplierGroup MSDataSupplierManager MSDiff MSDocumentImporter MSDocumentReader MSDocumentZippedJSONReader MSLegacyDocumentReader MSDocumentTree MSDocumentWriter MSDocumentationSearchEntry MSDocumentationSearcher MSDrawingInfo MSDuplicateOffsetTracker MSEventHandlerManager MSExportManager MSExportPreviewViewModel MSExportRequest MSWebExportRequest MSExporter MSEPSExporter MSExportRendererWithSVGSupport MSJPGExporter MSPDFExporter MSPNGExporter MSTiffExporter MSWebPExporter MSFastPathBuilder MSFeatureAvailability MSFillAndBorderColorScreenPicker MSFillRendererCG MSFlashController MSFlattenActionValidator MSFlexibleColor MSFlowItem MSFlowItemCollector MSFlowMenuBuilder MSFlowRenderer MSFlowSegment MSFolderMonitor MSDataSupplierFileSystemMonitor MSFileMonitor MSFontList MSFontWatcher MSForeignObjectCollector MSForeignObjectProvider MSForeignSymbolProvider MSSharedLayerStyleProvider MSSharedTextStyleProvider MSFrequentObjectsController MSFrequentColorsController MSFrequentImagesController MSGPUArtboardShadow MSGestureRecognizer MSClickGestureRecognizer MSDragGestureRecognizer MSDragRectGestureRecognizer MSDragSegmentGestureRecognizer MSDragToMoveOrCopyGestureRecognizer MSDragHandleGestureRecognizer MSDragLayerGestureRecognizer MSDragToSelectGestureRecognizer MSSelectVectorHandleGestureRecognizer MSGoogleAnalyticsWrapper MSGridConstructor MSGridRendererCG MSHandleDrawing MSHighLevelExporter MSSelfContainedHighLevelExporter MSHistory MSHistoryMaker MSHitTestResult MSImageData MSImageLayerImporter MSImageSizeReducer MSImmutableLayerAncestry MSInferredLayoutRecorder MSInspectorFlowHandler MSInspectorFooterViewsSection MSInspectorNextResponderFixer MSInspectorTableViewManager MSInspectorTextfieldManager MSInspectorValueAdaptor MSColorHexStringAdaptor MSMathInspectorValueAdaptor MSColorComponentAdaptor MSCoordinateInspectorValueAdaptor MSSizeInspectorValueAdaptor MSCornerRadiusInspectorValueAdaptor MSStylePartInspectorValueAdaptor MSJSONArchiveReference MSJSONDataReference MSJSONOriginalDataReference MSJSONFileReference MSJSONOriginalFileReference MSLayerArray MSLayerBuilder MSLayerCachedImage MSLayerDraggingSnapTargetGenerator MSLayerFlattener MSLayerInserting MSLayerLine MSLayerListBadgeConfigurator MSLayerMeasurementTarget MSLayerMovement MSLayerMoverItem MSLayerPaster MSLayerRendererCG MSBitmapRendererCG MSGroupRendererCG MSArtboardRendererCG MSSymbolMasterRendererCG MSSymbolRendererCG MSShapeRendererCG MSTextRendererCG MSLayerSelectionDrawing MSLayerSelector MSLayoutAnchor MSLayoutDimension MSLayoutPosition MSLayoutRelationship MSLibraryAssetCollectionHelper MSLibraryAssetCollectionsController MSLoadedImageData MSLocalDataSupplierSubgroup MSMainSplitViewController MSManageForeignSymbolItem MSManifestMaker MSCloudManifestMaker MSMaskWithShape MSMeasurementData MSMemoryBuffer MSMenuBuilder MSLayerPickerMenuBuilder MSReplaceWithSymbolMenuBuilder MSMenuItemHelper MSMetalRenderer MSMetalTexture MSMirrorDataProvider MSModelObjectCacheGeneration MSModelObjectCommon MSImmutableModelObject MSImmutableArray MSImmutableAssetCollection MSImmutablePersistentAssetCollection MSImmutableBaseGrid MSImmutableLayoutGrid MSImmutableSimpleGrid MSImmutableColor MSImmutableCurvePoint MSImmutableDocumentData MSImmutableExportFormat MSImmutableExportOptions MSImmutableExportPreset MSImmutableFlowConnection MSImmutableForeignObject MSImmutableForeignStyle MSImmutableForeignLayerStyle MSImmutableForeignTextStyle MSImmutableForeignSymbol MSImmutableGradient MSImmutableGradientStop MSImmutableGraphicsContextSettings MSImmutableImageCollection MSImmutableLayer MSImmutableHotspotLayer MSImmutableSliceLayer MSImmutableStyledLayer MSImmutableBitmapLayer MSImmutableLayerGroup MSImmutableArtboardGroup MSImmutableSymbolMaster MSImmutablePage MSImmutableShapeGroup MSImmutableShapePathLayer MSImmutableOvalShape MSImmutablePolygonShape MSImmutableRectangleShape MSImmutableStarShape MSImmutableTriangleShape MSImmutableSymbolInstance MSImmutableTextLayer MSImmutableRect MSImmutableRulerData MSImmutableShapePath MSImmutableSharedObject MSImmutableSharedStyle MSImmutableSymbol MSImmutableSharedObjectContainer MSImmutableSharedStyleContainer MSImmutableSharedTextStyleContainer MSImmutableSymbolContainer MSImmutableStyle MSImmutableStylePart MSImmutableStyleBasicFill MSImmutableStyleBorder MSImmutableStyleFill MSImmutableStyleBlur MSImmutableStyleBorderOptions MSImmutableStyleColorControls MSImmutableStyleShadow MSImmutableStyleInnerShadow MSImmutableTextStyle MSModelObject MSAssetCollection MSPersistentAssetCollection MSAssetContainer MSBaseGrid MSLayoutGrid MSSimpleGrid MSColor MSCurvePoint MSDocumentData MSExportFormat MSExportOptions MSExportPreset MSFlowConnection MSForeignObject MSForeignStyle MSForeignLayerStyle MSForeignTextStyle MSForeignSymbol MSGradient MSGradientStop MSGraphicsContextSettings MSImageCollection MSLayer MSHotspotLayer MSSliceLayer MSStyledLayer MSBitmapLayer MSLayerGroup MSArtboardGroup MSSymbolMaster MSPage MSShapeGroup MSShapePathLayer MSOvalShape MSPolygonShape MSRectangleShape MSStarShape MSTriangleShape MSSymbolInstance MSTextLayer MSRect MSRulerData MSShapePath MSSharedObject MSSharedStyle MSSymbol MSSharedObjectContainer MSSharedStyleContainer MSSharedTextStyleContainer MSSymbolContainer MSStyle MSStylePart MSMultipleStylePartsPlaceholder MSStyleBasicFill MSStyleBorder MSStyleFill MSStyleBlur MSStyleBorderOptions MSStyleColorControls MSStyleShadow MSStyleInnerShadow MSTextStyle MSMoment MSMouseTracker MSMultipleColorsPlaceholder MSNamedInterfaceImageOwner MSNetworkHelper MSNewsletterSignup MSNoise MSNormalEventContextualMenuBuilder MSNormalEventData MSNullRenderer MSObjectCounter MSColorCounter MSImageCounter MSOpacityKeyboardShortcutRecognizer MSOpenGLOffscreenBuffer MSOpenGLRenderer MSOpenGLTexture MSOptionalRenderer MSLayerAnnotationsRenderer MSOverlayColorSettings MSOverlayRenderer MSLayerMeasurementRenderer MSOverrideManagementController MSOverrideManagementItem MSOverrideManagementPropertyItem MSOverrideManagementPropertyTitle MSOverrideMapping MSOverridePoint MSOverrideRepresentationBase MSOverrideRepresentation MSOverrideRepresentationContainer MSPDFBookExporter MSPDFImporter MSPDFPage MSPDFState MSPDFTextState MSPasteboardFileDataProvider MSPasteboardImageProvider MSPasteboardImageWriter MSPasteboardImagesReader MSPasteboardInternalImageReader MSPasteboardLayerListImageProvider MSPasteboardLayerProvider MSPasteboardLayers MSPasteboardLayersBase MSPasteboardLayersReaderWriter MSPasteboardLayerListReaderWriter MSPasteboardPageListReaderWriter MSPasteboardManager MSPasteboardPDFReader MSPasteboardPathsReader MSPasteboardTextReader MSPasteboardTextWriting MSPastingViewport MSPath MSPathController MSPathRendererCG MSPathWithColor MSPerspectiveInstructions MSPluginBundle MSPluginBundleIconInfo MSPluginCommand MSPluginCommandSpecifier MSPluginDataSupplierContext MSPluginDebugController MSPluginManager MSPluginManagerWithActions MSPluginManagingState MSPluginScript MSPluginStandaloneScript MSPluginUpdaterImplementation MSPluginVersions MSPointArray MSGradientPointArray MSPointInsertion MSPreferencesPluginInfo MSPreviewImageCache MSProfilingRenderer MSRange MSRateLimiter MSRenderMonitor MSAveragingRenderMonitor MSRenderPreparer MSRenderingContext MSRenderingContextCG MSExportRenderingContext MSRenderingDriver MSRenderingDriverCG MSRenderingDriverCGDebug MSRenderingDriverCGProfiling MSRenderingDriverExport MSRenderingDriverSettings MSRenderingRequest MSResizeArtboardToFitValidator MSRotationGestureInterpreter MSRulerCoordinateSpace MSRulerGuides MSRulerSnapTargetGenerator MSSVGBlendMode MSSVGImporter MSSafeFontSet MSShadowRendererCG MSShapeChange MSClosePathChange MSShapeChangeContext MSShapeEditingBehavior MSShareButtonHandler MSShareableObjectReference MSSharedStyleReference MSSharedLayerReference MSSharedTextReference MSSymbolMasterReference MSShareableObjectUpdater MSSidebarListController MSLayerListController MSPageListController MSSliceTrimming MSSmartGuideDrawing MSMeasurementDrawing MSSnapItem MSCompoundSnapItem MSRectSnapItem MSRotatedSnapItem MSTextSnapItem MSSnapper MSSnapperData MSSnappingAccumulator MSSnappingSession MSSnappingTarget MSSortableObjectMenuBuilder MSForeignObjectMenuBuilder MSStandardInspectorViewControllers MSSubtreeRoot MSSymbolCreator MSSymbolMasterReferenceDescriptor MSSymbolPreviewGenerator MSTextLayout MSTextPreviewData MSTextPreviewLayerData MSTextStyleMenuPreview MSTextureAtlas MSTextureVertexBuffer MSTheme MSTile MSTileMipLevel MSTileRenderPass MSTiledRenderer MSTintedImages MSToolController MSLayerDragController MSToolbarConstructor MSTrailingLayerInfo MSTrailingLayersMover MSTransparencyLayerSavedState MSTreeDiff MSUnitCoordinateSpace MSUpdateController MSVectorCanvas MSVectorHandle MSVectorAdjustmentHandle MSVectorHandleStateDecider MSVersionedArchive MSViewPort MSWebExporter MSWelcomeCollectionItem MSExistingDocumentCollectionItem MSCloudShareCollectionItem MSNewDocumentCollectionItem MSXMLElementWrapper MSSVGFilter MSSVGImageWrapper MSSVGMergeNode MSSVGPatternWrapper MSSVGUseWrapper MSSVGfeFilterPrimitive MSSVGColorMatrix MSSVGComposite MSSVGGaussianBlur MSSVGMerge MSSVGMorphology MSSVGOffset MSZoomTool ```

Thanks to

Forked from andrewstart/Sketch.d.ts