@yuzhouu/canvas-kit 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +80 -78
- package/_vendor/canvas-core/bindings/{BindingUtil.d.ts → bindingUtil.d.ts} +1 -1
- package/_vendor/canvas-core/bindings/{BindingUtilRegistry.d.ts → bindingUtilRegistry.d.ts} +1 -1
- package/_vendor/canvas-core/bindings/terminalBinding.d.ts +28 -0
- package/_vendor/canvas-core/editor/clipboard.d.ts +2 -2
- package/_vendor/canvas-core/editor/commands.d.ts +6 -1
- package/_vendor/canvas-core/editor/createEditorWithPlugins.d.ts +6 -0
- package/_vendor/canvas-core/editor/edgeScroll.d.ts +1 -1
- package/_vendor/canvas-core/editor/{Editor.d.ts → editor.d.ts} +46 -51
- package/_vendor/canvas-core/editor/editorComputedHelpers.d.ts +5 -5
- package/_vendor/canvas-core/editor/editorSelectionTransforms.d.ts +2 -2
- package/_vendor/canvas-core/editor/events.d.ts +1 -1
- package/_vendor/canvas-core/editor/{HistoryManager.d.ts → historyManager.d.ts} +1 -1
- package/_vendor/canvas-core/editor/index.d.ts +10 -7
- package/_vendor/canvas-core/editor/interactions.d.ts +2 -2
- package/_vendor/canvas-core/editor/internal.d.ts +1 -1
- package/_vendor/canvas-core/editor/managers/{BindingManager.d.ts → bindingManager.d.ts} +1 -1
- package/_vendor/canvas-core/editor/managers/{CameraManager.d.ts → cameraManager.d.ts} +2 -2
- package/_vendor/canvas-core/editor/managers/{ClipboardManager.d.ts → clipboardManager.d.ts} +1 -1
- package/_vendor/canvas-core/editor/managers/{DocumentSnapshotManager.d.ts → documentSnapshotManager.d.ts} +1 -1
- package/_vendor/canvas-core/editor/managers/{InputsManager.d.ts → inputsManager.d.ts} +1 -1
- package/_vendor/canvas-core/editor/managers/{InteractionTransientManager.d.ts → interactionTransientManager.d.ts} +13 -10
- package/_vendor/canvas-core/editor/managers/{QueryManager.d.ts → queryManager.d.ts} +7 -6
- package/_vendor/canvas-core/editor/managers/{RenderWindowManager.d.ts → renderWindowManager.d.ts} +1 -1
- package/_vendor/canvas-core/editor/managers/selectionGeometry.d.ts +5 -5
- package/_vendor/canvas-core/editor/managers/{SelectionLayoutManager.d.ts → selectionLayoutManager.d.ts} +2 -2
- package/_vendor/canvas-core/editor/managers/{SelectionManager.d.ts → selectionManager.d.ts} +1 -1
- package/_vendor/canvas-core/editor/managers/{SelectionOverlayManager.d.ts → selectionOverlayManager.d.ts} +4 -3
- package/_vendor/canvas-core/editor/managers/{ShapeEditingManager.d.ts → shapeEditingManager.d.ts} +1 -1
- package/_vendor/canvas-core/editor/managers/{ShapeGeometryManager.d.ts → shapeGeometryManager.d.ts} +5 -5
- package/_vendor/canvas-core/editor/managers/{ShapeHierarchyManager.d.ts → shapeHierarchyManager.d.ts} +3 -6
- package/_vendor/canvas-core/editor/managers/shapeOrder.d.ts +1 -1
- package/_vendor/canvas-core/editor/managers/shapeReparenting.d.ts +1 -1
- package/_vendor/canvas-core/editor/managers/shortcutManager.d.ts +56 -0
- package/_vendor/canvas-core/editor/managers/snapCalculations.d.ts +2 -2
- package/_vendor/canvas-core/editor/managers/snapGeometry.d.ts +2 -2
- package/_vendor/canvas-core/editor/managers/snapIndicators.d.ts +2 -2
- package/_vendor/canvas-core/editor/managers/{SnapManager.d.ts → snapManager.d.ts} +1 -1
- package/_vendor/canvas-core/editor/managers/{SnapSnapshotBuilder.d.ts → snapSnapshotBuilder.d.ts} +1 -1
- package/_vendor/canvas-core/editor/managers/snapTypes.d.ts +2 -2
- package/_vendor/canvas-core/editor/managers/{SpatialIndexManager.d.ts → spatialIndexManager.d.ts} +4 -4
- package/_vendor/canvas-core/editor/managers/{ToolManager.d.ts → toolManager.d.ts} +4 -5
- package/_vendor/canvas-core/editor/queries/shapeTransforms.d.ts +4 -4
- package/_vendor/canvas-core/editor/renderWindow.d.ts +1 -1
- package/_vendor/canvas-core/editor/resizeGeometry.d.ts +2 -2
- package/_vendor/canvas-core/editor/selection.d.ts +26 -19
- package/_vendor/canvas-core/editor/selectionHandleInteractions.d.ts +1 -1
- package/_vendor/canvas-core/editor/selectionOverlay.d.ts +7 -5
- package/_vendor/canvas-core/editor/{StateNode.d.ts → stateNode.d.ts} +1 -1
- package/_vendor/canvas-core/exports/integrity.d.ts +1 -1
- package/_vendor/canvas-core/exports/svg.d.ts +6 -2
- package/_vendor/canvas-core/geometry/{Box.d.ts → box.d.ts} +1 -1
- package/_vendor/canvas-core/geometry/{Ellipse2d.d.ts → ellipse2d.d.ts} +3 -3
- package/_vendor/canvas-core/geometry/{Geometry2d.d.ts → geometry2d.d.ts} +2 -2
- package/_vendor/canvas-core/geometry/index.d.ts +7 -7
- package/_vendor/canvas-core/geometry/{Mat.d.ts → mat.d.ts} +1 -1
- package/_vendor/canvas-core/geometry/{Polyline2d.d.ts → polyline2d.d.ts} +3 -3
- package/_vendor/canvas-core/geometry/{Rectangle2d.d.ts → rectangle2d.d.ts} +3 -3
- package/_vendor/canvas-core/geometry/segments.d.ts +1 -1
- package/_vendor/canvas-core/index.d.ts +33 -31
- package/_vendor/canvas-core/plugins/{types.d.ts → editorPlugin.d.ts} +10 -9
- package/_vendor/canvas-core/plugins/index.d.ts +1 -1
- package/_vendor/canvas-core/schema/snapshotSupport.d.ts +43 -0
- package/_vendor/canvas-core/schema/snapshots.d.ts +6 -2
- package/_vendor/canvas-core/shapes/capabilities.d.ts +1 -1
- package/_vendor/canvas-core/shapes/colors.d.ts +26 -0
- package/_vendor/canvas-core/shapes/{ShapeUtil.d.ts → shapeUtil.d.ts} +22 -9
- package/_vendor/canvas-core/shapes/{ShapeUtilRegistry.d.ts → shapeUtilRegistry.d.ts} +1 -1
- package/_vendor/canvas-core/surfaces/actions.d.ts +35 -0
- package/_vendor/canvas-core/{contextMenu.d.ts → surfaces/contextMenu.d.ts} +11 -9
- package/_vendor/canvas-core/{toolbar.d.ts → surfaces/toolbar.d.ts} +17 -38
- package/_vendor/canvas-core/tools/hand/handTool.d.ts +5 -0
- package/_vendor/canvas-core/tools/index.d.ts +2 -2
- package/_vendor/canvas-core/tools/select/selectContainment.d.ts +5 -4
- package/_vendor/canvas-core/tools/select/selectTool.d.ts +5 -0
- package/_vendor/canvas-core/tools/select/selectToolHelpers.d.ts +3 -3
- package/_vendor/canvas-core/tools/select/states/{BrushingState.d.ts → brushingState.d.ts} +3 -3
- package/_vendor/canvas-core/tools/select/states/{DraggingSelectionHandleInteractionState.d.ts → draggingSelectionHandleInteractionState.d.ts} +3 -3
- package/_vendor/canvas-core/tools/select/states/{IdleState.d.ts → idleState.d.ts} +2 -2
- package/_vendor/canvas-core/tools/select/states/index.d.ts +11 -11
- package/_vendor/canvas-core/tools/select/states/{PointingCanvasState.d.ts → pointingCanvasState.d.ts} +3 -3
- package/_vendor/canvas-core/tools/select/states/{PointingResizeHandleState.d.ts → pointingResizeHandleState.d.ts} +3 -3
- package/_vendor/canvas-core/tools/select/states/{PointingRotateHandleState.d.ts → pointingRotateHandleState.d.ts} +3 -3
- package/_vendor/canvas-core/tools/select/states/{PointingSelectionHandleInteractionState.d.ts → pointingSelectionHandleInteractionState.d.ts} +3 -3
- package/_vendor/canvas-core/tools/select/states/{PointingShapeState.d.ts → pointingShapeState.d.ts} +3 -3
- package/_vendor/canvas-core/tools/select/states/{ResizingState.d.ts → resizingState.d.ts} +3 -3
- package/_vendor/canvas-core/tools/select/states/{RotatingState.d.ts → rotatingState.d.ts} +3 -3
- package/_vendor/canvas-core/tools/select/states/{SelectStateNode.d.ts → selectStateNode.d.ts} +2 -2
- package/_vendor/canvas-core/tools/select/states/{TranslatingState.d.ts → translatingState.d.ts} +5 -4
- package/_vendor/canvas-react/components/CanvasView.d.ts +7 -4
- package/_vendor/canvas-react/components/PageSpace.d.ts +1 -1
- package/_vendor/canvas-react/components/ShapeLayer.d.ts +4 -1
- package/_vendor/canvas-react/components/index.d.ts +0 -2
- package/_vendor/canvas-react/components/overlays/BindingGuide.d.ts +24 -0
- package/_vendor/canvas-react/components/overlays/BindingPreviewOverlay.d.ts +1 -0
- package/_vendor/canvas-react/components/overlays/BrushBoxOverlay.d.ts +1 -0
- package/_vendor/canvas-react/components/overlays/OverlaySvgRoot.d.ts +1 -0
- package/_vendor/canvas-react/components/overlays/SelectionFrameOverlay.d.ts +1 -0
- package/_vendor/canvas-react/components/overlays/SelectionHandlesOverlay.d.ts +1 -0
- package/_vendor/canvas-react/components/overlays/SelectionOverlaySvg.d.ts +1 -0
- package/_vendor/canvas-react/components/overlays/SelectionPathOverlay.d.ts +1 -0
- package/_vendor/canvas-react/components/overlays/ShapeOutlineOverlay.d.ts +8 -0
- package/_vendor/canvas-react/components/overlays/SnapIndicatorsOverlay.d.ts +1 -0
- package/_vendor/canvas-react/components/useCanvasDomEvents.d.ts +21 -0
- package/_vendor/canvas-react/dom.d.ts +10 -0
- package/_vendor/canvas-react/host/canvasOverlayRegistryContext.d.ts +3 -0
- package/_vendor/{canvas-plugin-api/index.d.ts → canvas-react/host/canvasPlugin.d.ts} +24 -8
- package/_vendor/canvas-react/host/contextMenuRegistry.d.ts +3 -3
- package/_vendor/canvas-react/host/domEventGuards.d.ts +1 -1
- package/_vendor/{canvas-plugin-api/feature.d.ts → canvas-react/host/extension.d.ts} +3 -3
- package/_vendor/canvas-react/host/index.d.ts +8 -3
- package/_vendor/canvas-react/host/overlayRegistry.d.ts +18 -0
- package/_vendor/canvas-react/host/pluginHost.d.ts +2 -93
- package/_vendor/canvas-react/host/pluginHostManifest.d.ts +2 -0
- package/_vendor/canvas-react/host/pluginHostRuntime.d.ts +3 -0
- package/_vendor/canvas-react/host/pluginHostTypes.d.ts +102 -0
- package/_vendor/canvas-react/host/pluginHostValidation.d.ts +11 -0
- package/_vendor/canvas-react/host/rendererRegistry.d.ts +1 -1
- package/_vendor/canvas-react/host/toolbarRegistry.d.ts +7 -7
- package/_vendor/canvas-react/index.d.ts +2 -1
- package/_vendor/plugin-arrow/arrowBindingAnchors.d.ts +5 -0
- package/_vendor/plugin-arrow/arrowBindingGeometry.d.ts +28 -0
- package/_vendor/plugin-arrow/arrowGeometry.d.ts +24 -0
- package/_vendor/plugin-arrow/{ArrowShapeUtil.d.ts → arrowShapeUtil.d.ts} +5 -4
- package/_vendor/plugin-arrow/arrowTerminalBindingResolver.d.ts +5 -6
- package/_vendor/plugin-arrow/arrowTerminalCommands.d.ts +4 -4
- package/_vendor/plugin-arrow/canvas.d.ts +1 -1
- package/_vendor/plugin-arrow/{core.d.ts → editor.d.ts} +2 -2
- package/_vendor/plugin-arrow/feature.d.ts +2 -2
- package/_vendor/plugin-arrow/index.d.ts +6 -5
- package/_vendor/plugin-arrow/types.d.ts +2 -2
- package/_vendor/plugin-draw/DrawShapeRenderer.d.ts +4 -2
- package/_vendor/plugin-draw/canvas.d.ts +1 -1
- package/_vendor/plugin-draw/drawHitTest.d.ts +2 -2
- package/_vendor/plugin-draw/editor.d.ts +7 -0
- package/_vendor/plugin-draw/feature.d.ts +2 -2
- package/_vendor/plugin-draw/index.d.ts +3 -3
- package/_vendor/plugin-draw/types.d.ts +3 -3
- package/_vendor/plugin-eraser/canvas.d.ts +1 -1
- package/_vendor/plugin-eraser/editor.d.ts +2 -0
- package/_vendor/plugin-eraser/feature.d.ts +2 -2
- package/_vendor/plugin-eraser/index.d.ts +2 -2
- package/_vendor/plugin-frame/canvas.d.ts +4 -3
- package/_vendor/plugin-frame/editor.d.ts +7 -0
- package/_vendor/plugin-frame/feature.d.ts +2 -2
- package/_vendor/plugin-frame/{FrameShapeUtil.d.ts → frameShapeUtil.d.ts} +4 -3
- package/_vendor/plugin-frame/{FrameTool.d.ts → frameTool.d.ts} +1 -1
- package/_vendor/plugin-frame/index.d.ts +4 -4
- package/_vendor/plugin-geo/canvas.d.ts +6 -4
- package/_vendor/plugin-geo/editor.d.ts +7 -0
- package/_vendor/plugin-geo/feature.d.ts +2 -2
- package/_vendor/plugin-geo/geoGeometry.d.ts +8 -0
- package/_vendor/plugin-geo/{GeoTools.d.ts → geoTools.d.ts} +10 -0
- package/_vendor/plugin-geo/index.d.ts +4 -4
- package/_vendor/plugin-geo/types.d.ts +6 -4
- package/_vendor/plugin-group/canvas.d.ts +5 -5
- package/_vendor/plugin-group/editor.d.ts +7 -0
- package/_vendor/plugin-group/feature.d.ts +2 -2
- package/_vendor/plugin-group/index.d.ts +3 -3
- package/_vendor/plugin-image/canvas.d.ts +1 -1
- package/_vendor/plugin-image/{core.d.ts → editor.d.ts} +3 -3
- package/_vendor/plugin-image/feature.d.ts +2 -2
- package/_vendor/plugin-image/{ImageShapeUtil.d.ts → imageShapeUtil.d.ts} +2 -1
- package/_vendor/plugin-image/index.d.ts +2 -2
- package/_vendor/plugin-laser/canvas.d.ts +1 -1
- package/_vendor/plugin-laser/editor.d.ts +2 -0
- package/_vendor/plugin-laser/feature.d.ts +2 -2
- package/_vendor/plugin-laser/index.d.ts +2 -2
- package/_vendor/plugin-text/canvas.d.ts +5 -2
- package/_vendor/plugin-text/editor.d.ts +5 -0
- package/_vendor/plugin-text/feature.d.ts +4 -3
- package/_vendor/plugin-text/host/RichTextEditingBox.d.ts +3 -1
- package/_vendor/plugin-text/host/RichTextToolbar.d.ts +3 -1
- package/_vendor/plugin-text/host/TiptapTextEditor.d.ts +3 -1
- package/_vendor/plugin-text/host/richTextBubbleMenuPositionSync.d.ts +7 -0
- package/_vendor/plugin-text/host/textEditingBoxStyle.d.ts +2 -1
- package/_vendor/plugin-text/host/textFontLoader.d.ts +2 -1
- package/_vendor/plugin-text/host/textMeasurement.d.ts +4 -3
- package/_vendor/plugin-text/host/textMeasurementSync.d.ts +2 -1
- package/_vendor/plugin-text/host/textShapeRendererRuntime.d.ts +2 -1
- package/_vendor/plugin-text/host/textShapeSync.d.ts +3 -1
- package/_vendor/plugin-text/host/tiptapTextEditorController.d.ts +3 -1
- package/_vendor/plugin-text/index.d.ts +2 -0
- package/_vendor/plugin-text/textFonts.d.ts +46 -0
- package/_vendor/plugin-text/textShapeSvgExporter.d.ts +9 -0
- package/_vendor/plugin-text/textStyle.d.ts +11 -2
- package/_vendor/plugin-text/textTypes.d.ts +4 -4
- package/_vendor/store/index.d.ts +1 -1
- package/_vendor/store/{Store.d.ts → store.d.ts} +7 -1
- package/browser/localSnapshotRestore.d.ts +13 -0
- package/{_vendor/canvas-product-react/persistence/localSnapshotPersistence.d.ts → browser/persistence.d.ts} +16 -10
- package/builtins/controller/createBuiltInCanvasController.d.ts +16 -0
- package/builtins/controller/layerController.d.ts +9 -0
- package/builtins/controller/shapeCreationController.d.ts +76 -0
- package/builtins/extensions.d.ts +17 -0
- package/builtins/index.d.ts +5 -0
- package/chrome/CanvasKitFloatingToolbarLayer.d.ts +6 -0
- package/chrome/FloatingSelectionToolbarPageSpace.d.ts +9 -0
- package/chrome/bindings/useCanvasKitChromeControls.d.ts +27 -0
- package/chrome/bindings/useContextMenuSurface.d.ts +12 -0
- package/chrome/bindings/useSvgExport.d.ts +15 -0
- package/chrome/bindings/useToolbarSurfaces.d.ts +26 -0
- package/chrome/types.d.ts +66 -0
- package/chrome/useCanvasKitChromeContext.d.ts +19 -0
- package/controller/canvasKitController.d.ts +36 -0
- package/{_vendor/canvas-product-react/api/canvasProductApi.d.ts → core/controller/canvasProductController.d.ts} +11 -21
- package/core/controller/featureControllerRegistry.d.ts +12 -0
- package/core/controller/index.d.ts +4 -0
- package/core/controller/productLayerTree.d.ts +10 -0
- package/core/features/actions/canvasActionContext.d.ts +15 -0
- package/core/features/actions/canvasActions.d.ts +26 -0
- package/core/features/clipboard/clipboardContextMenuContributions.d.ts +2 -0
- package/core/features/clipboard/clipboardContribution.d.ts +19 -0
- package/{_vendor/canvas-product-react/capabilities → core/features}/clipboard/clipboardService.d.ts +3 -2
- package/core/features/context-menu/contextMenuActions.d.ts +12 -0
- package/core/features/context-menu/contextMenuContext.d.ts +6 -0
- package/core/features/context-menu/contextMenuContribution.d.ts +4 -0
- package/core/features/context-menu/viewContextMenuContributions.d.ts +2 -0
- package/{_vendor/canvas-product-react/capabilities/export/useSvgExport.d.ts → core/features/export/svgExport.d.ts} +11 -7
- package/core/features/hostActionIds.d.ts +1 -0
- package/core/features/toolbar/selectionContextMenuContributions.d.ts +2 -0
- package/core/features/toolbar/toolContextMenuContributions.d.ts +2 -0
- package/core/features/toolbar/toolbarContribution.d.ts +4 -0
- package/core/features/toolbar/toolbarLabels.d.ts +8 -0
- package/core/index.d.ts +23 -0
- package/core/runtime/productAssets.d.ts +18 -0
- package/core/runtime/productContributions.d.ts +9 -0
- package/core/runtime/productDefinition.d.ts +32 -0
- package/core/runtime/productEditor.d.ts +3 -0
- package/core/runtime/productHost.d.ts +17 -0
- package/{_vendor/canvas-product-react → core}/runtime/productServices.d.ts +1 -2
- package/{_vendor/plugin-image-product-react → features/image}/ImageImportController.d.ts +2 -2
- package/{_vendor/plugin-image-product-react → features/image}/imageAssetService.d.ts +2 -2
- package/{_vendor/plugin-image-product-react → features/image}/imageBlobStore.d.ts +1 -1
- package/features/image/imageFileHelpers.d.ts +35 -0
- package/{_vendor/plugin-image-product-react → features/image}/imageHostActions.d.ts +13 -12
- package/features/image/imageHostExtension.d.ts +5 -0
- package/features/image/imageProductController.d.ts +22 -0
- package/features/image/imageProductToolbarActions.d.ts +2 -0
- package/{_vendor/plugin-image-product-react → features/image}/imageToolbarHostBridge.d.ts +2 -2
- package/{_vendor/plugin-image-product-react → features/image}/index.d.ts +4 -5
- package/{_vendor/plugin-image-product-react → features/image}/svgImageAssetInliner.d.ts +1 -1
- package/{_vendor/plugin-image-product-react → features/image}/useImageImport.d.ts +5 -4
- package/index.css +1 -2
- package/index.d.ts +14 -14
- package/index.mjs +66 -1
- package/package.json +1 -11
- package/product/canvasKitProduct.d.ts +50 -0
- package/react/CanvasKitPersistenceNotice.d.ts +4 -0
- package/react/CanvasKitRoot.d.ts +5 -0
- package/react/useCanvasKitController.d.ts +5 -0
- package/{product/useCanvasClipboardShortcuts.d.ts → react/useCanvasKitKeyboardShortcuts.d.ts} +1 -1
- package/react/useCanvasKitRuntime.d.ts +4 -0
- package/react/useCanvasKitStartup.d.ts +9 -0
- package/runtime/canvasKitHostExtensions.d.ts +19 -0
- package/runtime/canvasKitRuntime.d.ts +19 -0
- package/runtime/canvasKitRuntimeInitializer.d.ts +11 -0
- package/_vendor/canvas-core/bindings/arrow/arrowBindingHelpers.d.ts +0 -28
- package/_vendor/canvas-core/tools/hand/HandTool.d.ts +0 -5
- package/_vendor/canvas-core/tools/select/SelectTool.d.ts +0 -5
- package/_vendor/canvas-product-react/api/apiRegistry.d.ts +0 -12
- package/_vendor/canvas-product-react/api/index.d.ts +0 -4
- package/_vendor/canvas-product-react/capabilities/clipboard/systemClipboard.d.ts +0 -16
- package/_vendor/canvas-product-react/capabilities/context-menu/systemContextMenu.d.ts +0 -17
- package/_vendor/canvas-product-react/capabilities/context-menu/useContextMenuSurface.d.ts +0 -12
- package/_vendor/canvas-product-react/capabilities/history/useHistoryControls.d.ts +0 -8
- package/_vendor/canvas-product-react/capabilities/pages/usePageControls.d.ts +0 -12
- package/_vendor/canvas-product-react/capabilities/toolbar/systemToolbar.d.ts +0 -32
- package/_vendor/canvas-product-react/capabilities/toolbar/useToolbarSurfaces.d.ts +0 -19
- package/_vendor/canvas-product-react/capabilities/zoom/useZoomControls.d.ts +0 -9
- package/_vendor/canvas-product-react/index.d.ts +0 -24
- package/_vendor/canvas-product-react/persistence/index.d.ts +0 -2
- package/_vendor/canvas-product-react/runtime/CanvasProductRoot.d.ts +0 -4
- package/_vendor/canvas-product-react/runtime/productDefinition.d.ts +0 -45
- package/_vendor/plugin-draw/core.d.ts +0 -7
- package/_vendor/plugin-eraser/core.d.ts +0 -2
- package/_vendor/plugin-frame/core.d.ts +0 -7
- package/_vendor/plugin-geo/core.d.ts +0 -7
- package/_vendor/plugin-group/core.d.ts +0 -7
- package/_vendor/plugin-image-product-react/imageProductApi.d.ts +0 -21
- package/_vendor/plugin-image-product-react/imageToolbarRuntime.d.ts +0 -2
- package/_vendor/plugin-image-product-react/snapshotGuards.d.ts +0 -1
- package/_vendor/plugin-laser/core.d.ts +0 -2
- package/_vendor/plugin-text/TextShapeSvgExporter.d.ts +0 -6
- package/_vendor/plugin-text/core.d.ts +0 -2
- package/api/canvasKitApi.d.ts +0 -29
- package/product/Shell.d.ts +0 -19
- package/product/chromeContext.d.ts +0 -70
- package/product/createCanvasKitEditor.d.ts +0 -6
- package/product/index.d.ts +0 -7
- package/product/persistence.d.ts +0 -3
- package/product/product.d.ts +0 -22
- package/product-CxN5NN6u.mjs +0 -4
- package/product.mjs +0 -1
- package/standard/extensions.d.ts +0 -1
- package/standard/index.d.ts +0 -3
- package/standard/standardApi.d.ts +0 -91
- package/standard-R17_x8HU.mjs +0 -44
- package/standard.mjs +0 -1
- /package/_vendor/canvas-core/editor/managers/{SideEffectManager.d.ts → sideEffectManager.d.ts} +0 -0
- /package/_vendor/canvas-core/geometry/{Vec.d.ts → vec.d.ts} +0 -0
- /package/_vendor/canvas-react/host/{CanvasRendererRegistryContext.d.ts → canvasRendererRegistryContext.d.ts} +0 -0
- /package/_vendor/plugin-arrow/{ArrowBindingUtil.d.ts → arrowBindingUtil.d.ts} +0 -0
- /package/_vendor/plugin-arrow/{ArrowTool.d.ts → arrowTool.d.ts} +0 -0
- /package/_vendor/plugin-draw/{DrawShapeUtil.d.ts → drawShapeUtil.d.ts} +0 -0
- /package/_vendor/plugin-draw/{DrawTool.d.ts → drawTool.d.ts} +0 -0
- /package/_vendor/plugin-eraser/{EraserTool.d.ts → eraserTool.d.ts} +0 -0
- /package/_vendor/plugin-geo/{GeoShapeUtil.d.ts → geoShapeUtil.d.ts} +0 -0
- /package/_vendor/plugin-group/{GroupShapeUtil.d.ts → groupShapeUtil.d.ts} +0 -0
- /package/_vendor/plugin-laser/{LaserTool.d.ts → laserTool.d.ts} +0 -0
- /package/_vendor/plugin-text/{ArrowLabelBindingUtil.d.ts → arrowLabelBindingUtil.d.ts} +0 -0
- /package/_vendor/plugin-text/{GeoLabelBindingUtil.d.ts → geoLabelBindingUtil.d.ts} +0 -0
- /package/_vendor/plugin-text/{TextShapeUtil.d.ts → textShapeUtil.d.ts} +0 -0
- /package/_vendor/plugin-text/{TextTool.d.ts → textTool.d.ts} +0 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { Editor, ShapeColor, ShapeId } from "../../_vendor/canvas-core/index";
|
|
2
|
+
import { type ArrowShapeProps } from "../../_vendor/plugin-arrow/index";
|
|
3
|
+
import { type TextShapeProps } from "../../_vendor/plugin-text/index";
|
|
4
|
+
import type { CanvasProductShapeRef } from "../../core/controller";
|
|
5
|
+
export interface BuiltInCanvasShapeInput {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
w?: number;
|
|
9
|
+
h?: number;
|
|
10
|
+
fill?: ShapeColor;
|
|
11
|
+
stroke?: ShapeColor;
|
|
12
|
+
strokeWidth?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface BuiltInCanvasTextInput {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
text: string;
|
|
18
|
+
w?: number;
|
|
19
|
+
h?: number;
|
|
20
|
+
font?: TextShapeProps["font"];
|
|
21
|
+
color?: ShapeColor;
|
|
22
|
+
size?: TextShapeProps["size"];
|
|
23
|
+
textAlign?: TextShapeProps["textAlign"];
|
|
24
|
+
}
|
|
25
|
+
export interface BuiltInCanvasFrameInput extends BuiltInCanvasShapeInput {
|
|
26
|
+
name?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface BuiltInCanvasArrowBindingInput {
|
|
29
|
+
targetShapeId: ShapeId;
|
|
30
|
+
normalizedAnchor: {
|
|
31
|
+
x: number;
|
|
32
|
+
y: number;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export interface BuiltInCanvasArrowInput {
|
|
36
|
+
start: {
|
|
37
|
+
x: number;
|
|
38
|
+
y: number;
|
|
39
|
+
};
|
|
40
|
+
end: {
|
|
41
|
+
x: number;
|
|
42
|
+
y: number;
|
|
43
|
+
};
|
|
44
|
+
bend?: number;
|
|
45
|
+
stroke?: ShapeColor;
|
|
46
|
+
strokeWidth?: number;
|
|
47
|
+
headStart?: ArrowShapeProps["headStart"];
|
|
48
|
+
headEnd?: ArrowShapeProps["headEnd"];
|
|
49
|
+
startBinding?: BuiltInCanvasArrowBindingInput | null;
|
|
50
|
+
endBinding?: BuiltInCanvasArrowBindingInput | null;
|
|
51
|
+
}
|
|
52
|
+
export interface BuiltInGeoController {
|
|
53
|
+
createRectangle(input: BuiltInCanvasShapeInput): CanvasProductShapeRef | null;
|
|
54
|
+
createEllipse(input: BuiltInCanvasShapeInput): CanvasProductShapeRef | null;
|
|
55
|
+
createDiamond(input: BuiltInCanvasShapeInput): CanvasProductShapeRef | null;
|
|
56
|
+
createTriangle(input: BuiltInCanvasShapeInput): CanvasProductShapeRef | null;
|
|
57
|
+
createHexagon(input: BuiltInCanvasShapeInput): CanvasProductShapeRef | null;
|
|
58
|
+
createStar(input: BuiltInCanvasShapeInput): CanvasProductShapeRef | null;
|
|
59
|
+
}
|
|
60
|
+
export interface BuiltInTextController {
|
|
61
|
+
create(input: BuiltInCanvasTextInput): CanvasProductShapeRef | null;
|
|
62
|
+
}
|
|
63
|
+
export interface BuiltInFrameController {
|
|
64
|
+
create(input: BuiltInCanvasFrameInput): CanvasProductShapeRef | null;
|
|
65
|
+
moveShapesToFrame(ids: ShapeId[], frameId: ShapeId): ShapeId[];
|
|
66
|
+
}
|
|
67
|
+
export interface BuiltInArrowController {
|
|
68
|
+
create(input: BuiltInCanvasArrowInput): CanvasProductShapeRef | null;
|
|
69
|
+
}
|
|
70
|
+
export interface BuiltInCanvasShapeCreationControllers {
|
|
71
|
+
arrow: BuiltInArrowController;
|
|
72
|
+
geo: BuiltInGeoController;
|
|
73
|
+
text: BuiltInTextController;
|
|
74
|
+
frame: BuiltInFrameController;
|
|
75
|
+
}
|
|
76
|
+
export declare function createBuiltInShapeCreationControllers(editor: Editor): BuiltInCanvasShapeCreationControllers;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { LandExtensionOptionsInput } from "../_vendor/canvas-react/host/index";
|
|
2
|
+
import { type TextExtensionOptions } from "../_vendor/plugin-text/index";
|
|
3
|
+
export interface BuiltInCanvasExtensionOptions {
|
|
4
|
+
arrow?: boolean;
|
|
5
|
+
draw?: boolean;
|
|
6
|
+
eraser?: boolean;
|
|
7
|
+
frame?: boolean;
|
|
8
|
+
geo?: boolean;
|
|
9
|
+
group?: boolean;
|
|
10
|
+
image?: boolean;
|
|
11
|
+
laser?: boolean;
|
|
12
|
+
text?: boolean | LandExtensionOptionsInput<TextExtensionOptions>;
|
|
13
|
+
}
|
|
14
|
+
export declare const builtInCanvasExtensions: readonly [import("../_vendor/canvas-react/host/index").ConfigurableLandExtension<Record<string, never>>, import("../_vendor/canvas-react/host/index").ConfigurableLandExtension<Record<string, never>>, import("../_vendor/canvas-react/host/index").ConfigurableLandExtension<Record<string, never>>, import("../_vendor/canvas-react/host/index").ConfigurableLandExtension<Record<string, never>>, import("../_vendor/canvas-react/host/index").ConfigurableLandExtension<Record<string, never>>, import("../_vendor/canvas-react/host/index").ConfigurableLandExtension<Record<string, never>>, import("../_vendor/canvas-react/host/index").ConfigurableLandExtension<TextExtensionOptions>, import("../_vendor/canvas-react/host/index").ConfigurableLandExtension<Record<string, never>>, import("../_vendor/canvas-react/host/index").ConfigurableLandExtension<Record<string, never>>];
|
|
15
|
+
export type BuiltInCanvasExtension = (typeof builtInCanvasExtensions)[number];
|
|
16
|
+
export declare function createBuiltInCanvasExtensions(options?: BuiltInCanvasExtensionOptions): readonly BuiltInCanvasExtension[];
|
|
17
|
+
export declare function hasBuiltInCanvasExtension(extensions: readonly BuiltInCanvasExtension[], name: keyof BuiltInCanvasExtensionOptions): boolean;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { builtInCanvasExtensions, createBuiltInCanvasExtensions, hasBuiltInCanvasExtension, } from "./extensions";
|
|
2
|
+
export type { BuiltInCanvasExtension, BuiltInCanvasExtensionOptions, } from "./extensions";
|
|
3
|
+
export { createBuiltInCanvasController, useBuiltInCanvasController, } from "./controller/createBuiltInCanvasController";
|
|
4
|
+
export type { BuiltInCanvasController, BuiltInCanvasControllerSnapshot, BuiltInCanvasLayerNode, } from "./controller/createBuiltInCanvasController";
|
|
5
|
+
export type { BuiltInArrowController, BuiltInCanvasArrowBindingInput, BuiltInCanvasArrowInput, BuiltInCanvasFrameInput, BuiltInCanvasShapeCreationControllers, BuiltInCanvasShapeInput, BuiltInCanvasTextInput, BuiltInFrameController, BuiltInGeoController, BuiltInTextController, } from "./controller/shapeCreationController";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { ToolbarSurfaces } from "./bindings/useToolbarSurfaces";
|
|
3
|
+
export declare function FloatingSelectionToolbarPageSpace({ children, className, dataUi, offset, surfaces, }: {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
dataUi?: string;
|
|
7
|
+
offset?: number;
|
|
8
|
+
surfaces: ToolbarSurfaces;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Editor, PageId, PageRecord } from "../../_vendor/canvas-core/index";
|
|
2
|
+
export interface HistoryControls {
|
|
3
|
+
canUndo: boolean;
|
|
4
|
+
canRedo: boolean;
|
|
5
|
+
undo(): void;
|
|
6
|
+
redo(): void;
|
|
7
|
+
}
|
|
8
|
+
export interface PageControls {
|
|
9
|
+
pages: readonly PageRecord[];
|
|
10
|
+
currentPage: PageRecord | null;
|
|
11
|
+
currentPageId: PageId;
|
|
12
|
+
canDeleteCurrentPage: boolean;
|
|
13
|
+
createPage(): void;
|
|
14
|
+
deleteCurrentPage(): void;
|
|
15
|
+
renameCurrentPage(nextName: string): void;
|
|
16
|
+
selectPage(pageId: PageId): void;
|
|
17
|
+
}
|
|
18
|
+
export interface ZoomControlsState {
|
|
19
|
+
zoom: number;
|
|
20
|
+
label: string;
|
|
21
|
+
zoomIn(): void;
|
|
22
|
+
zoomOut(): void;
|
|
23
|
+
resetZoom(): void;
|
|
24
|
+
}
|
|
25
|
+
export declare function useHistoryControls(editor: Editor): HistoryControls;
|
|
26
|
+
export declare function usePageControls(editor: Editor): PageControls;
|
|
27
|
+
export declare function useZoomControls(editor: Editor): ZoomControlsState;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ContextMenuContext, ActiveContextMenu, ContextMenuSection, Editor } from "../../_vendor/canvas-core/index";
|
|
2
|
+
import type { CanvasPluginHostRuntime } from "../../_vendor/canvas-react/host/index";
|
|
3
|
+
export interface ContextMenuSurface {
|
|
4
|
+
context: ContextMenuContext | null;
|
|
5
|
+
activeContextMenu: ActiveContextMenu | null;
|
|
6
|
+
sections: readonly ContextMenuSection[];
|
|
7
|
+
}
|
|
8
|
+
export declare function useContextMenuSurface({ editor, activeContextMenu, pluginHostRuntime, }: {
|
|
9
|
+
editor: Editor;
|
|
10
|
+
activeContextMenu: ActiveContextMenu | null;
|
|
11
|
+
pluginHostRuntime: CanvasPluginHostRuntime;
|
|
12
|
+
}): ContextMenuSurface;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
import type { Editor, ShapeId } from "../../_vendor/canvas-core/index";
|
|
3
|
+
import { type ExportStatus as ProductExportStatus, type SvgAssetInliner as ProductSvgAssetInliner, type SvgExportResult as ProductSvgExportResult } from "../../core";
|
|
4
|
+
export type ExportStatus = ProductExportStatus;
|
|
5
|
+
export type SvgAssetInliner = ProductSvgAssetInliner;
|
|
6
|
+
export type SvgExportResult = ProductSvgExportResult;
|
|
7
|
+
export interface SvgExportControls {
|
|
8
|
+
status: ExportStatus | null;
|
|
9
|
+
exportSvg(shapeIds: readonly ShapeId[]): Promise<SvgExportResult>;
|
|
10
|
+
}
|
|
11
|
+
export declare function useSvgExport({ assetInliners, editor, themeRootRef, }: {
|
|
12
|
+
assetInliners?: readonly SvgAssetInliner[];
|
|
13
|
+
editor: Editor;
|
|
14
|
+
themeRootRef?: RefObject<HTMLElement | null>;
|
|
15
|
+
}): SvgExportControls;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Editor, CanvasActionContext, ToolbarGroup } from "../../_vendor/canvas-core/index";
|
|
2
|
+
import type { CanvasPluginHostRuntime } from "../../_vendor/canvas-react/host/index";
|
|
3
|
+
export interface FloatingSelectionToolbarPageAnchor {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
}
|
|
7
|
+
export interface ToolbarSurfaces {
|
|
8
|
+
context: CanvasActionContext;
|
|
9
|
+
activeToolId: string;
|
|
10
|
+
activeToolLabel: string;
|
|
11
|
+
isToolLocked: boolean;
|
|
12
|
+
selectionCount: number;
|
|
13
|
+
hasMixedSelectionRotation: boolean;
|
|
14
|
+
toolChromeToolbarGroups: readonly ToolbarGroup[];
|
|
15
|
+
contextToolbarGroups: readonly ToolbarGroup[];
|
|
16
|
+
floatingSelectionToolbarGroups: readonly ToolbarGroup[];
|
|
17
|
+
floatingSelectionToolbarPageAnchor: FloatingSelectionToolbarPageAnchor | null;
|
|
18
|
+
contextToolbarTitle: string;
|
|
19
|
+
showContextToolbar: boolean;
|
|
20
|
+
showFloatingSelectionToolbar: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare function useToolbarSurfaces({ canShowContextToolbarDuringEditing, editor, pluginHostRuntime, }: {
|
|
23
|
+
canShowContextToolbarDuringEditing?: (context: CanvasActionContext) => boolean;
|
|
24
|
+
editor: Editor;
|
|
25
|
+
pluginHostRuntime: CanvasPluginHostRuntime;
|
|
26
|
+
}): ToolbarSurfaces;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { CanvasKitController, CanvasKitBaseController } from "../controller/canvasKitController";
|
|
2
|
+
import type { BuiltInCanvasLayerNode } from "../builtins";
|
|
3
|
+
import type { ActiveContextMenu, EditorSelectionState, ShapeId, CanvasActionValue, CanvasActionContext } from "../_vendor/canvas-core/index";
|
|
4
|
+
import type { HistoryControls, PageControls, ZoomControlsState } from "./bindings/useCanvasKitChromeControls";
|
|
5
|
+
import type { ContextMenuSurface } from "./bindings/useContextMenuSurface";
|
|
6
|
+
import type { SvgExportControls } from "./bindings/useSvgExport";
|
|
7
|
+
import type { ToolbarSurfaces } from "./bindings/useToolbarSurfaces";
|
|
8
|
+
import type { ProductPersistenceStatus } from "../core";
|
|
9
|
+
export type { ContextMenuCommandItem, ContextMenuItem, ContextMenuSection, EditorSelectionState, ShapeId, CanvasActionValue, CanvasActionContext, ToolbarGroup, ToolbarItem, } from "../_vendor/canvas-core/index";
|
|
10
|
+
export type { HistoryControls, PageControls, ZoomControlsState, } from "./bindings/useCanvasKitChromeControls";
|
|
11
|
+
export type { ContextMenuSurface } from "./bindings/useContextMenuSurface";
|
|
12
|
+
export type { SvgExportControls, } from "./bindings/useSvgExport";
|
|
13
|
+
export type { ToolbarSurfaces, } from "./bindings/useToolbarSurfaces";
|
|
14
|
+
export type CanvasKitLayerNode = BuiltInCanvasLayerNode;
|
|
15
|
+
export interface CanvasKitToolbarActionState {
|
|
16
|
+
value: CanvasActionValue | undefined;
|
|
17
|
+
isEnabled: boolean;
|
|
18
|
+
isVisible: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface CanvasKitToolbarRuntime {
|
|
21
|
+
getActionState(input: {
|
|
22
|
+
actionId: string;
|
|
23
|
+
context: CanvasActionContext;
|
|
24
|
+
}): CanvasKitToolbarActionState | null;
|
|
25
|
+
runAction(input: {
|
|
26
|
+
actionId: string;
|
|
27
|
+
context: CanvasActionContext;
|
|
28
|
+
value?: CanvasActionValue;
|
|
29
|
+
}): void;
|
|
30
|
+
}
|
|
31
|
+
export interface CanvasKitGridControls {
|
|
32
|
+
isVisible: boolean;
|
|
33
|
+
setIsVisible(isVisible: boolean): void;
|
|
34
|
+
}
|
|
35
|
+
export interface CanvasKitPersistenceControls {
|
|
36
|
+
discardUnsupportedRecords: (() => Promise<void>) | null;
|
|
37
|
+
isDiscardingUnsupportedRecords: boolean;
|
|
38
|
+
status: ProductPersistenceStatus | null;
|
|
39
|
+
}
|
|
40
|
+
export interface CanvasKitChromeContext<TController extends CanvasKitBaseController = CanvasKitController> {
|
|
41
|
+
controller: TController;
|
|
42
|
+
contextMenu: CanvasKitContextMenuState;
|
|
43
|
+
currentPageId: string;
|
|
44
|
+
currentPageShapeIds: readonly ShapeId[];
|
|
45
|
+
history: HistoryControls;
|
|
46
|
+
layers: readonly BuiltInCanvasLayerNode[];
|
|
47
|
+
pages: PageControls;
|
|
48
|
+
selection: EditorSelectionState;
|
|
49
|
+
selectedShapeIds: readonly ShapeId[];
|
|
50
|
+
persistence: CanvasKitPersistenceControls;
|
|
51
|
+
svgExport: SvgExportControls;
|
|
52
|
+
toolbarRuntime: CanvasKitToolbarRuntime;
|
|
53
|
+
toolbarSurfaces: ToolbarSurfaces;
|
|
54
|
+
grid: CanvasKitGridControls;
|
|
55
|
+
zoom: ZoomControlsState;
|
|
56
|
+
}
|
|
57
|
+
export interface CanvasKitContextMenuState {
|
|
58
|
+
activeContextMenu: ActiveContextMenu | null;
|
|
59
|
+
onActiveContextMenuChange: (activeContextMenu: ActiveContextMenu | null) => void;
|
|
60
|
+
runAction(input: {
|
|
61
|
+
actionId: string;
|
|
62
|
+
context: NonNullable<ContextMenuSurface["context"]>;
|
|
63
|
+
value?: CanvasActionValue;
|
|
64
|
+
}): void;
|
|
65
|
+
surface: ContextMenuSurface;
|
|
66
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
import type { ActiveContextMenu } from "../_vendor/canvas-core/index";
|
|
3
|
+
import type { CanvasKitBaseController } from "../controller/canvasKitController";
|
|
4
|
+
import type { CanvasKitRuntime } from "../runtime/canvasKitRuntime";
|
|
5
|
+
import type { CanvasKitHostExtension } from "../runtime/canvasKitHostExtensions";
|
|
6
|
+
import type { ProductServiceRegistry } from "../core";
|
|
7
|
+
import type { CanvasKitChromeContext, CanvasKitGridControls, CanvasKitPersistenceControls } from "./types";
|
|
8
|
+
export declare function useCanvasKitChromeContext<TController extends CanvasKitBaseController>({ controller, activeContextMenu, editor, grid, hostExtensions, onActiveContextMenuChange, persistence, pluginHostRuntime, services, themeRootRef, }: {
|
|
9
|
+
controller: TController;
|
|
10
|
+
activeContextMenu: ActiveContextMenu | null;
|
|
11
|
+
editor: CanvasKitRuntime["editor"];
|
|
12
|
+
grid: CanvasKitGridControls;
|
|
13
|
+
hostExtensions: readonly CanvasKitHostExtension[];
|
|
14
|
+
onActiveContextMenuChange: (activeContextMenu: ActiveContextMenu | null) => void;
|
|
15
|
+
persistence: CanvasKitPersistenceControls;
|
|
16
|
+
pluginHostRuntime: CanvasKitRuntime["pluginHostRuntime"];
|
|
17
|
+
services: ProductServiceRegistry;
|
|
18
|
+
themeRootRef: RefObject<HTMLElement | null>;
|
|
19
|
+
}): CanvasKitChromeContext<TController>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type CanvasProductController, type CanvasProductControllerContext, type CanvasProductSessionSnapshot } from "../core/controller";
|
|
2
|
+
import type { CanvasPluginHostRuntime } from "../_vendor/canvas-react/host/index";
|
|
3
|
+
import { type BuiltInCanvasController, type BuiltInCanvasControllerSnapshot, type BuiltInCanvasFrameInput, type BuiltInCanvasShapeInput, type BuiltInCanvasTextInput } from "../builtins";
|
|
4
|
+
import { type ImageProductController } from "../features/image";
|
|
5
|
+
export type CanvasKitShapeInput = BuiltInCanvasShapeInput;
|
|
6
|
+
export type CanvasKitTextInput = BuiltInCanvasTextInput;
|
|
7
|
+
export type CanvasKitFrameInput = BuiltInCanvasFrameInput;
|
|
8
|
+
export interface CanvasKitBaseController<TToolId extends string = string> extends CanvasProductController<TToolId> {
|
|
9
|
+
}
|
|
10
|
+
export declare const CANVAS_KIT_TOOL_IDS: readonly ["select", "hand", "rectangle", "ellipse", "diamond", "triangle", "hexagon", "star", "arrow", "draw", "text", "frame", "eraser", "laser"];
|
|
11
|
+
export type CanvasKitToolId = (typeof CANVAS_KIT_TOOL_IDS)[number];
|
|
12
|
+
export interface CanvasKitControllerSnapshot<TToolId extends string = CanvasKitToolId> extends BuiltInCanvasControllerSnapshot<TToolId> {
|
|
13
|
+
productId: string;
|
|
14
|
+
session: CanvasProductSessionSnapshot<TToolId>;
|
|
15
|
+
}
|
|
16
|
+
export interface CanvasKitController<TToolId extends string = CanvasKitToolId> extends BuiltInCanvasController<TToolId> {
|
|
17
|
+
image: ImageProductController | null;
|
|
18
|
+
snapshot(): CanvasKitControllerSnapshot<TToolId>;
|
|
19
|
+
}
|
|
20
|
+
export interface CanvasKitControllerRuntimeContext extends Omit<CanvasProductControllerContext, "pluginHostRuntime"> {
|
|
21
|
+
pluginHostRuntime: CanvasPluginHostRuntime;
|
|
22
|
+
}
|
|
23
|
+
export interface CanvasKitControllerOptions<TToolId extends string = CanvasKitToolId> extends CanvasKitControllerRuntimeContext {
|
|
24
|
+
assertToolId?: (toolId: string) => asserts toolId is TToolId;
|
|
25
|
+
}
|
|
26
|
+
export interface CanvasKitControllerWithToolsOptions<TToolId extends string> extends CanvasKitControllerRuntimeContext {
|
|
27
|
+
assertToolId: (toolId: string) => asserts toolId is TToolId;
|
|
28
|
+
}
|
|
29
|
+
export type CanvasKitControllerWithTools<TToolId extends string> = CanvasKitController<TToolId>;
|
|
30
|
+
declare global {
|
|
31
|
+
interface Window {
|
|
32
|
+
landCanvasKit?: CanvasKitController;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export declare function createCanvasKitController(context: CanvasKitControllerOptions<CanvasKitToolId>): CanvasKitController;
|
|
36
|
+
export declare function createCanvasKitControllerWithTools<TToolId extends string>(context: CanvasKitControllerWithToolsOptions<TToolId>): CanvasKitControllerWithTools<TToolId>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { Camera, Editor, LayerOrderDirection, LayerOrderEdge, ReparentShapePlacementFailureReason, ShapeId } from "../../canvas-core/index";
|
|
2
|
-
import type { CanvasPluginHostRuntime } from "../../canvas-react/host/index";
|
|
1
|
+
import type { Camera, Editor, LayerOrderDirection, LayerOrderEdge, ReparentShapePlacementFailureReason, ShapeId } from "../../_vendor/canvas-core/index";
|
|
3
2
|
import type { ProductServiceRegistry } from "../runtime/productServices";
|
|
4
|
-
import type {
|
|
3
|
+
import type { ProductFeatureControllerRegistry } from "./featureControllerRegistry";
|
|
5
4
|
export interface CanvasProductShapeRef {
|
|
6
5
|
id: ShapeId;
|
|
7
6
|
type: string;
|
|
@@ -21,7 +20,7 @@ export interface CanvasProductSessionSnapshot<TToolId extends string = string> {
|
|
|
21
20
|
isToolLocked: boolean;
|
|
22
21
|
pages: CanvasProductSessionPageState[];
|
|
23
22
|
}
|
|
24
|
-
export interface
|
|
23
|
+
export interface CanvasProductControllerSnapshot<TToolId extends string = string> {
|
|
25
24
|
productId: string;
|
|
26
25
|
pageId: string;
|
|
27
26
|
activeToolId: TToolId;
|
|
@@ -67,9 +66,9 @@ export interface CanvasProductPageRef {
|
|
|
67
66
|
name: string;
|
|
68
67
|
index: string;
|
|
69
68
|
}
|
|
70
|
-
export interface
|
|
71
|
-
|
|
72
|
-
snapshot():
|
|
69
|
+
export interface CanvasProductController<TToolId extends string = string> {
|
|
70
|
+
features: ProductFeatureControllerRegistry;
|
|
71
|
+
snapshot(): CanvasProductControllerSnapshot<TToolId>;
|
|
73
72
|
clearHistory(): void;
|
|
74
73
|
canUndo(): boolean;
|
|
75
74
|
canRedo(): boolean;
|
|
@@ -102,23 +101,14 @@ export interface CanvasProductApi<TToolId extends string = string> {
|
|
|
102
101
|
exportSelectionSvg(): string | null;
|
|
103
102
|
exportPageSvg(): string | null;
|
|
104
103
|
}
|
|
105
|
-
export interface
|
|
104
|
+
export interface CanvasProductControllerContext {
|
|
106
105
|
editor: Editor;
|
|
107
106
|
services: ProductServiceRegistry;
|
|
108
|
-
pluginHostRuntime:
|
|
109
|
-
|
|
107
|
+
pluginHostRuntime: unknown;
|
|
108
|
+
featureControllers: ProductFeatureControllerRegistry;
|
|
110
109
|
productId: string;
|
|
111
110
|
}
|
|
112
|
-
export interface
|
|
111
|
+
export interface CanvasProductControllerOptions<TToolId extends string = string> extends CanvasProductControllerContext {
|
|
113
112
|
assertToolId: (toolId: string) => asserts toolId is TToolId;
|
|
114
113
|
}
|
|
115
|
-
export
|
|
116
|
-
api: TApi;
|
|
117
|
-
exposeOnWindow?: boolean;
|
|
118
|
-
windowKey?: string;
|
|
119
|
-
onDispose?: () => void;
|
|
120
|
-
onReady?: (api: TApi) => void;
|
|
121
|
-
}
|
|
122
|
-
export declare function createCanvasProductApi<TToolId extends string = string>(options: CanvasProductApiOptions<TToolId>): CanvasProductApi<TToolId>;
|
|
123
|
-
export declare function useCanvasProductApi<TToolId extends string = string>(options: CanvasProductApiOptions<TToolId>): CanvasProductApi<TToolId>;
|
|
124
|
-
export declare function useCanvasProductApiLifecycle<TApi>({ api, exposeOnWindow, windowKey, onDispose, onReady, }: CanvasProductApiLifecycleOptions<TApi>): void;
|
|
114
|
+
export declare function createCanvasProductController<TToolId extends string = string>(options: CanvasProductControllerOptions<TToolId>): CanvasProductController<TToolId>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ProductFeatureControllerToken<TController> {
|
|
2
|
+
readonly id: string;
|
|
3
|
+
readonly __controller?: TController;
|
|
4
|
+
}
|
|
5
|
+
export interface ProductFeatureControllerRegistry {
|
|
6
|
+
get<TController>(token: ProductFeatureControllerToken<TController>): TController | null;
|
|
7
|
+
}
|
|
8
|
+
export interface ProductFeatureControllerRegistryRuntime extends ProductFeatureControllerRegistry {
|
|
9
|
+
register<TController>(token: ProductFeatureControllerToken<TController>, controller: TController): void;
|
|
10
|
+
}
|
|
11
|
+
export declare function createProductFeatureControllerToken<TController>(id: string): ProductFeatureControllerToken<TController>;
|
|
12
|
+
export declare function createProductFeatureControllerRegistry(): ProductFeatureControllerRegistryRuntime;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { createProductFeatureControllerRegistry, createProductFeatureControllerToken, } from "./featureControllerRegistry";
|
|
2
|
+
export type { ProductFeatureControllerRegistry, ProductFeatureControllerRegistryRuntime, ProductFeatureControllerToken, } from "./featureControllerRegistry";
|
|
3
|
+
export { createCanvasProductController } from "./canvasProductController";
|
|
4
|
+
export type { CanvasProductController, CanvasProductControllerContext, CanvasProductControllerOptions, CanvasProductControllerSnapshot, CanvasProductLayerActionState, CanvasProductLayerNode, CanvasProductLayerPlacement, CanvasProductLayerPlacementFailureReason, CanvasProductLayerPlacementResult, CanvasProductPageRef, CanvasProductSessionPageState, CanvasProductSessionSnapshot, CanvasProductShapeRef, } from "./canvasProductController";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Editor, PageId, ShapeId } from "../../_vendor/canvas-core/index";
|
|
2
|
+
import type { CanvasProductLayerNode } from "./canvasProductController";
|
|
3
|
+
export declare function getCanvasProductLayerTree({ editor, pageId, }: {
|
|
4
|
+
editor: Editor;
|
|
5
|
+
pageId?: PageId;
|
|
6
|
+
}): CanvasProductLayerNode[];
|
|
7
|
+
export declare function getCanvasProductLayerNode({ editor, id, }: {
|
|
8
|
+
editor: Editor;
|
|
9
|
+
id: ShapeId;
|
|
10
|
+
}): CanvasProductLayerNode | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Editor, CanvasActionContext } from "../../../_vendor/canvas-core/index";
|
|
2
|
+
export declare function createCanvasActionContext({ editor, toolState, selectionState, }: {
|
|
3
|
+
editor: Editor;
|
|
4
|
+
toolState: {
|
|
5
|
+
activeToolId: string;
|
|
6
|
+
isToolLocked: boolean;
|
|
7
|
+
};
|
|
8
|
+
selectionState: {
|
|
9
|
+
count: number;
|
|
10
|
+
singleShapeType: CanvasActionContext["selection"]["singleShapeType"];
|
|
11
|
+
commonShapeType: CanvasActionContext["selection"]["commonShapeType"];
|
|
12
|
+
canResetSelectionRotation: boolean;
|
|
13
|
+
isMixedFrameAndPointHandleSelection: boolean;
|
|
14
|
+
};
|
|
15
|
+
}): CanvasActionContext;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type CanvasAction, type CanvasActionContext, type KeyboardShortcutInput } from "../../../_vendor/canvas-core/index";
|
|
2
|
+
import type { ProductPluginHostRuntime } from "../../runtime/productHost";
|
|
3
|
+
export declare const SYSTEM_SELECTION_DELETE_ACTION_ID = "system.selection.delete";
|
|
4
|
+
export declare const SYSTEM_SELECTION_DUPLICATE_ACTION_ID = "system.selection.duplicate";
|
|
5
|
+
export declare const SYSTEM_SELECTION_GROUP_ACTION_ID = "system.selection.group";
|
|
6
|
+
export declare const SYSTEM_SELECTION_SELECT_ALL_ACTION_ID = "system.selection.select-all";
|
|
7
|
+
export declare const SYSTEM_SELECTION_UNGROUP_ACTION_ID = "system.selection.ungroup";
|
|
8
|
+
export declare const SYSTEM_SELECTION_RESET_ROTATION_ACTION_ID = "system.selection.reset-rotation";
|
|
9
|
+
export declare const SYSTEM_SELECTION_FLIP_HORIZONTAL_ACTION_ID = "system.selection.flip-horizontal";
|
|
10
|
+
export declare const SYSTEM_SELECTION_FLIP_VERTICAL_ACTION_ID = "system.selection.flip-vertical";
|
|
11
|
+
export declare const SYSTEM_SELECTION_SEND_TO_BACK_ACTION_ID = "system.selection.send-to-back";
|
|
12
|
+
export declare const SYSTEM_SELECTION_SEND_BACKWARD_ACTION_ID = "system.selection.send-backward";
|
|
13
|
+
export declare const SYSTEM_SELECTION_BRING_FORWARD_ACTION_ID = "system.selection.bring-forward";
|
|
14
|
+
export declare const SYSTEM_SELECTION_BRING_TO_FRONT_ACTION_ID = "system.selection.bring-to-front";
|
|
15
|
+
export declare const SYSTEM_SELECTION_SET_OPACITY_ACTION_ID = "system.selection.set-opacity";
|
|
16
|
+
export declare const canvasActionShortcuts: readonly {
|
|
17
|
+
actionId: string;
|
|
18
|
+
shortcut: KeyboardShortcutInput;
|
|
19
|
+
}[];
|
|
20
|
+
export declare function runCanvasAction({ context, pluginHostRuntime, actionId, }: {
|
|
21
|
+
context: CanvasActionContext;
|
|
22
|
+
pluginHostRuntime: ProductPluginHostRuntime;
|
|
23
|
+
actionId: string;
|
|
24
|
+
}): void;
|
|
25
|
+
export declare function isSingleSelectedFrameChild(context: CanvasActionContext): boolean;
|
|
26
|
+
export declare const canvasActions: readonly CanvasAction[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Editor, CanvasAction, KeyboardShortcutInput } from "../../../_vendor/canvas-core/index";
|
|
2
|
+
import type { CanvasProductRuntimeContribution } from "../../runtime/productContributions";
|
|
3
|
+
import type { ProductPluginHostRuntime } from "../../runtime/productHost";
|
|
4
|
+
import type { ProductServiceRegistry } from "../../runtime/productServices";
|
|
5
|
+
export declare const SYSTEM_CLIPBOARD_COPY_ACTION_ID = "system.clipboard.copy";
|
|
6
|
+
export declare const SYSTEM_CLIPBOARD_CUT_ACTION_ID = "system.clipboard.cut";
|
|
7
|
+
export declare const SYSTEM_CLIPBOARD_PASTE_ACTION_ID = "system.clipboard.paste";
|
|
8
|
+
export declare const SYSTEM_CLIPBOARD_PASTE_AT_POINT_ACTION_ID = "system.clipboard.paste-at-point";
|
|
9
|
+
export declare const clipboardActionShortcuts: readonly {
|
|
10
|
+
actionId: string;
|
|
11
|
+
shortcut: KeyboardShortcutInput;
|
|
12
|
+
}[];
|
|
13
|
+
export declare function createClipboardProductContribution(): CanvasProductRuntimeContribution;
|
|
14
|
+
export declare function registerClipboardActions({ editor, pluginHostRuntime, services, }: {
|
|
15
|
+
editor?: Editor;
|
|
16
|
+
pluginHostRuntime: ProductPluginHostRuntime;
|
|
17
|
+
services: ProductServiceRegistry;
|
|
18
|
+
}): void;
|
|
19
|
+
export declare function createClipboardActions(services: ProductServiceRegistry): readonly CanvasAction[];
|
package/{_vendor/canvas-product-react/capabilities → core/features}/clipboard/clipboardService.d.ts
RENAMED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { EditorClipboardPayload } from "../../../canvas-core/index";
|
|
2
|
-
import { type ProductServiceFactory } from "../../runtime/productServices";
|
|
1
|
+
import type { EditorClipboardPayload } from "../../../_vendor/canvas-core/index";
|
|
2
|
+
import { type ProductServiceFactory, type ProductServiceRegistry } from "../../runtime/productServices";
|
|
3
3
|
export interface CanvasClipboardService {
|
|
4
4
|
write(payload: EditorClipboardPayload): Promise<void>;
|
|
5
5
|
read(): Promise<EditorClipboardPayload | null>;
|
|
6
6
|
getMemoryPayload(): EditorClipboardPayload | null;
|
|
7
7
|
}
|
|
8
8
|
export declare const canvasClipboardServiceToken: import("../..").ProductServiceToken<CanvasClipboardService>;
|
|
9
|
+
export declare function getCanvasClipboardService(services: ProductServiceRegistry): CanvasClipboardService | null;
|
|
9
10
|
export declare function memoryCanvasClipboardService(): ProductServiceFactory<CanvasClipboardService>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ContextMenuContext, CanvasAction, CanvasActionValue } from "../../../_vendor/canvas-core/index";
|
|
2
|
+
import type { ProductPluginHostRuntime } from "../../runtime/productHost";
|
|
3
|
+
export declare const SYSTEM_VIEW_ZOOM_IN_ACTION_ID = "system.view.zoom-in";
|
|
4
|
+
export declare const SYSTEM_VIEW_ZOOM_OUT_ACTION_ID = "system.view.zoom-out";
|
|
5
|
+
export declare const SYSTEM_VIEW_RESET_ZOOM_ACTION_ID = "system.view.reset-zoom";
|
|
6
|
+
export declare function runContextMenuAction({ actionId, context, pluginHostRuntime, value, }: {
|
|
7
|
+
actionId: string;
|
|
8
|
+
context: ContextMenuContext;
|
|
9
|
+
pluginHostRuntime: ProductPluginHostRuntime;
|
|
10
|
+
value?: CanvasActionValue;
|
|
11
|
+
}): void;
|
|
12
|
+
export declare const contextMenuActions: readonly CanvasAction[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ContextMenuContext, ContextMenuContributionTarget, ContextMenuTarget, Editor } from "../../../_vendor/canvas-core/index";
|
|
2
|
+
export declare function createContextMenuContext({ editor, menu, }: {
|
|
3
|
+
editor: Editor;
|
|
4
|
+
menu: ContextMenuContext["menu"];
|
|
5
|
+
}): ContextMenuContext;
|
|
6
|
+
export declare function getContextMenuContributionTarget(target: ContextMenuTarget, editor: Editor): ContextMenuContributionTarget;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ContextMenuContribution } from "../../../_vendor/canvas-core/index";
|
|
2
|
+
import type { CanvasProductRuntimeContribution } from "../../runtime/productContributions";
|
|
3
|
+
export declare const contextMenuContributions: readonly ContextMenuContribution[];
|
|
4
|
+
export declare function createContextMenuProductContribution(): CanvasProductRuntimeContribution;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Editor, ExportIntegrityReport, ShapeCapabilityManifest, ShapeId, SvgExportSkippedShape } from "../../../canvas-core/index";
|
|
1
|
+
import type { Editor, ExportIntegrityReport, ShapeCapabilityManifest, ShapeId, SvgExportSkippedShape, SvgThemeColorResolver } from "../../../_vendor/canvas-core/index";
|
|
2
2
|
export interface SvgAssetInliner {
|
|
3
3
|
inline(input: {
|
|
4
4
|
editor: Editor;
|
|
@@ -19,11 +19,15 @@ export interface SvgExportResult {
|
|
|
19
19
|
exportedShapeIds: readonly ShapeId[];
|
|
20
20
|
skippedShapes: readonly SvgExportSkippedShape[];
|
|
21
21
|
}
|
|
22
|
-
export interface
|
|
23
|
-
status: ExportStatus | null;
|
|
24
|
-
exportSvg(shapeIds: readonly ShapeId[]): Promise<SvgExportResult>;
|
|
25
|
-
}
|
|
26
|
-
export declare function useSvgExport({ assetInliners, editor, }: {
|
|
22
|
+
export interface SvgExportOptions {
|
|
27
23
|
assetInliners?: readonly SvgAssetInliner[];
|
|
28
24
|
editor: Editor;
|
|
29
|
-
|
|
25
|
+
padding?: number;
|
|
26
|
+
resolveThemeColor?: SvgThemeColorResolver;
|
|
27
|
+
shapeIds: readonly ShapeId[];
|
|
28
|
+
}
|
|
29
|
+
export declare function exportEditorSvg({ assetInliners, editor, padding, resolveThemeColor, shapeIds, }: SvgExportOptions): Promise<SvgExportResult>;
|
|
30
|
+
export declare function getSvgExportStatus({ capabilityManifest, integrity, }: {
|
|
31
|
+
capabilityManifest: ShapeCapabilityManifest;
|
|
32
|
+
integrity: ExportIntegrityReport;
|
|
33
|
+
}): ExportStatus;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CANVAS_KIT_HOST_ACTION_IDS: readonly ["editor.tool.set-active-tool", "editor.tool.toggle-locked", "system.clipboard.copy", "system.clipboard.cut", "system.clipboard.paste", "system.clipboard.paste-at-point", "system.selection.duplicate", "system.selection.select-all", "system.selection.delete", "system.selection.group", "system.selection.ungroup", "system.selection.reset-rotation", "system.selection.flip-horizontal", "system.selection.flip-vertical", "system.selection.send-to-back", "system.selection.send-backward", "system.selection.bring-forward", "system.selection.bring-to-front", "system.view.reset-zoom", "system.view.zoom-in", "system.view.zoom-out"];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ToolbarContribution } from "../../../_vendor/canvas-core/index";
|
|
2
|
+
import type { CanvasProductRuntimeContribution } from "../../runtime/productContributions";
|
|
3
|
+
export declare const toolbarContributions: readonly ToolbarContribution[];
|
|
4
|
+
export declare function createToolbarProductContribution(): CanvasProductRuntimeContribution;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ToolbarGroup } from "../../../_vendor/canvas-core/index";
|
|
2
|
+
export declare function getActiveToolLabel(groups: readonly ToolbarGroup[], activeToolId: string): string;
|
|
3
|
+
export declare function getSelectionToolbarTitle({ commonShapeType, count, isMixedFrameAndPointHandleSelection, singleShapeType, }: {
|
|
4
|
+
commonShapeType: string | null;
|
|
5
|
+
count: number;
|
|
6
|
+
isMixedFrameAndPointHandleSelection: boolean;
|
|
7
|
+
singleShapeType: string | null;
|
|
8
|
+
}): string;
|
package/core/index.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export { createDefaultCanvasProductEditor } from "./runtime/productEditor";
|
|
2
|
+
export { cleanupProductAssetsAfterRestore, preloadProductAssets, resolveProductAssetUrl, } from "./runtime/productAssets";
|
|
3
|
+
export { createProductFeatureControllerRegistry, createProductFeatureControllerToken, } from "./controller/featureControllerRegistry";
|
|
4
|
+
export { createProductServiceRegistry, createProductServiceToken, requireProductService, } from "./runtime/productServices";
|
|
5
|
+
export { CANVAS_KIT_HOST_ACTION_IDS } from "./features/hostActionIds";
|
|
6
|
+
export type { CanvasProductRuntimeInitializer, CanvasProductRuntimeInitializerContext, CreateCanvasProductEditorOptions, ProductPersistenceAdapter, ProductPersistenceRestoreResult, ProductPersistenceStatus, } from "./runtime/productDefinition";
|
|
7
|
+
export type { CanvasProductRuntimeContribution, } from "./runtime/productContributions";
|
|
8
|
+
export type { ProductContextMenuRegistry, ProductPluginHostRuntime, ProductToolbarRegistry, } from "./runtime/productHost";
|
|
9
|
+
export type { ProductAssetResolverService, ProductServiceFactory, ProductServiceFactoryContext, ProductServiceRegistry, ProductServiceRegistryRuntime, ProductServiceToken, } from "./runtime/productServices";
|
|
10
|
+
export type { ProductFeatureControllerRegistry, ProductFeatureControllerRegistryRuntime, ProductFeatureControllerToken, } from "./controller/featureControllerRegistry";
|
|
11
|
+
export { SYSTEM_SELECTION_BRING_FORWARD_ACTION_ID, SYSTEM_SELECTION_BRING_TO_FRONT_ACTION_ID, SYSTEM_SELECTION_DELETE_ACTION_ID, SYSTEM_SELECTION_DUPLICATE_ACTION_ID, SYSTEM_SELECTION_FLIP_HORIZONTAL_ACTION_ID, SYSTEM_SELECTION_FLIP_VERTICAL_ACTION_ID, SYSTEM_SELECTION_GROUP_ACTION_ID, SYSTEM_SELECTION_RESET_ROTATION_ACTION_ID, SYSTEM_SELECTION_SELECT_ALL_ACTION_ID, SYSTEM_SELECTION_SEND_BACKWARD_ACTION_ID, SYSTEM_SELECTION_SEND_TO_BACK_ACTION_ID, SYSTEM_SELECTION_UNGROUP_ACTION_ID, runCanvasAction, } from "./features/actions/canvasActions";
|
|
12
|
+
export { createToolbarProductContribution } from "./features/toolbar/toolbarContribution";
|
|
13
|
+
export { createCanvasActionContext } from "./features/actions/canvasActionContext";
|
|
14
|
+
export { getActiveToolLabel, getSelectionToolbarTitle, } from "./features/toolbar/toolbarLabels";
|
|
15
|
+
export { SYSTEM_VIEW_RESET_ZOOM_ACTION_ID, SYSTEM_VIEW_ZOOM_IN_ACTION_ID, SYSTEM_VIEW_ZOOM_OUT_ACTION_ID, runContextMenuAction, } from "./features/context-menu/contextMenuActions";
|
|
16
|
+
export { createContextMenuProductContribution } from "./features/context-menu/contextMenuContribution";
|
|
17
|
+
export { createContextMenuContext, getContextMenuContributionTarget, } from "./features/context-menu/contextMenuContext";
|
|
18
|
+
export { canvasClipboardServiceToken, memoryCanvasClipboardService, } from "./features/clipboard/clipboardService";
|
|
19
|
+
export type { CanvasClipboardService } from "./features/clipboard/clipboardService";
|
|
20
|
+
export { SYSTEM_CLIPBOARD_COPY_ACTION_ID, SYSTEM_CLIPBOARD_CUT_ACTION_ID, SYSTEM_CLIPBOARD_PASTE_ACTION_ID, SYSTEM_CLIPBOARD_PASTE_AT_POINT_ACTION_ID, createClipboardProductContribution, registerClipboardActions, } from "./features/clipboard/clipboardContribution";
|
|
21
|
+
export { getCanvasClipboardService, } from "./features/clipboard/clipboardService";
|
|
22
|
+
export { exportEditorSvg, getSvgExportStatus, } from "./features/export/svgExport";
|
|
23
|
+
export type { ExportStatus, SvgAssetInliner, SvgExportOptions, SvgExportResult, } from "./features/export/svgExport";
|