@yuzhouu/canvas-kit 0.1.2 → 0.1.3
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/_vendor/canvas-core/bindings/BindingUtil.d.ts +45 -0
- package/_vendor/canvas-core/bindings/BindingUtilRegistry.d.ts +8 -0
- package/_vendor/canvas-core/bindings/arrow/arrowBindingHelpers.d.ts +28 -0
- package/_vendor/canvas-core/contextMenu.d.ts +62 -0
- package/_vendor/canvas-core/editor/Editor.d.ts +564 -0
- package/_vendor/canvas-core/editor/HistoryManager.d.ts +18 -0
- package/_vendor/canvas-core/editor/StateNode.d.ts +31 -0
- package/_vendor/canvas-core/editor/camera.d.ts +3 -0
- package/_vendor/canvas-core/editor/clipboard.d.ts +43 -0
- package/_vendor/canvas-core/editor/commands.d.ts +126 -0
- package/_vendor/canvas-core/editor/edgeScroll.d.ts +5 -0
- package/_vendor/canvas-core/editor/editorComputedHelpers.d.ts +21 -0
- package/_vendor/canvas-core/editor/editorSelectionTransforms.d.ts +6 -0
- package/_vendor/canvas-core/editor/events.d.ts +71 -0
- package/_vendor/canvas-core/editor/{index.ts → index.d.ts} +1 -5
- package/_vendor/canvas-core/editor/interactions.d.ts +51 -0
- package/_vendor/canvas-core/editor/internal.d.ts +7 -0
- package/_vendor/canvas-core/editor/managers/BindingManager.d.ts +27 -0
- package/_vendor/canvas-core/editor/managers/CameraManager.d.ts +39 -0
- package/_vendor/canvas-core/editor/managers/ClipboardManager.d.ts +14 -0
- package/_vendor/canvas-core/editor/managers/DocumentSnapshotManager.d.ts +28 -0
- package/_vendor/canvas-core/editor/managers/InputsManager.d.ts +44 -0
- package/_vendor/canvas-core/editor/managers/InteractionTransientManager.d.ts +52 -0
- package/_vendor/canvas-core/editor/managers/QueryManager.d.ts +76 -0
- package/_vendor/canvas-core/editor/managers/RenderWindowManager.d.ts +25 -0
- package/_vendor/canvas-core/editor/managers/SelectionLayoutManager.d.ts +29 -0
- package/_vendor/canvas-core/editor/managers/SelectionManager.d.ts +21 -0
- package/_vendor/canvas-core/editor/managers/SelectionOverlayManager.d.ts +23 -0
- package/_vendor/canvas-core/editor/managers/ShapeEditingManager.d.ts +29 -0
- package/_vendor/canvas-core/editor/managers/ShapeGeometryManager.d.ts +42 -0
- package/_vendor/canvas-core/editor/managers/ShapeHierarchyManager.d.ts +58 -0
- package/_vendor/canvas-core/editor/managers/SideEffectManager.d.ts +23 -0
- package/_vendor/canvas-core/editor/managers/SnapManager.d.ts +29 -0
- package/_vendor/canvas-core/editor/managers/SnapSnapshotBuilder.d.ts +22 -0
- package/_vendor/canvas-core/editor/managers/SpatialIndexManager.d.ts +30 -0
- package/_vendor/canvas-core/editor/managers/ToolManager.d.ts +25 -0
- package/_vendor/canvas-core/editor/managers/queryState.d.ts +18 -0
- package/_vendor/canvas-core/editor/managers/selectionGeometry.d.ts +28 -0
- package/_vendor/canvas-core/editor/managers/shapeOrder.d.ts +14 -0
- package/_vendor/canvas-core/editor/managers/shapeReparenting.d.ts +6 -0
- package/_vendor/canvas-core/editor/managers/snapCalculations.d.ts +40 -0
- package/_vendor/canvas-core/editor/managers/snapGeometry.d.ts +26 -0
- package/_vendor/canvas-core/editor/managers/snapIndicators.d.ts +22 -0
- package/_vendor/canvas-core/editor/managers/snapTypes.d.ts +98 -0
- package/_vendor/canvas-core/editor/queries/shapeTransforms.d.ts +27 -0
- package/_vendor/canvas-core/editor/renderWindow.d.ts +30 -0
- package/_vendor/canvas-core/editor/resizeGeometry.d.ts +97 -0
- package/_vendor/canvas-core/editor/selection.d.ts +224 -0
- package/_vendor/canvas-core/editor/selectionHandleInteractions.d.ts +11 -0
- package/_vendor/canvas-core/editor/selectionOverlay.d.ts +31 -0
- package/_vendor/canvas-core/exports/integrity.d.ts +32 -0
- package/_vendor/canvas-core/exports/svg.d.ts +48 -0
- package/_vendor/canvas-core/geometry/Box.d.ts +19 -0
- package/_vendor/canvas-core/geometry/Ellipse2d.d.ts +16 -0
- package/_vendor/canvas-core/geometry/Geometry2d.d.ts +15 -0
- package/_vendor/canvas-core/geometry/Mat.d.ts +28 -0
- package/_vendor/canvas-core/geometry/Polyline2d.d.ts +14 -0
- package/_vendor/canvas-core/geometry/Rectangle2d.d.ts +16 -0
- package/_vendor/canvas-core/geometry/Vec.d.ts +37 -0
- package/_vendor/canvas-core/geometry/{index.ts → index.d.ts} +1 -6
- package/_vendor/canvas-core/geometry/segments.d.ts +5 -0
- package/_vendor/canvas-core/index.d.ts +57 -0
- package/_vendor/canvas-core/plugins/index.d.ts +1 -0
- package/_vendor/canvas-core/plugins/types.d.ts +27 -0
- package/_vendor/canvas-core/reactivity.d.ts +4 -0
- package/_vendor/canvas-core/schema/records.d.ts +112 -0
- package/_vendor/canvas-core/schema/snapshots.d.ts +27 -0
- package/_vendor/canvas-core/shapes/ShapeUtil.d.ts +133 -0
- package/_vendor/canvas-core/shapes/ShapeUtilRegistry.d.ts +9 -0
- package/_vendor/canvas-core/shapes/capabilities.d.ts +25 -0
- package/_vendor/canvas-core/shapes/types.d.ts +2 -0
- package/_vendor/canvas-core/toolbar.d.ts +117 -0
- package/_vendor/canvas-core/tools/hand/HandTool.d.ts +5 -0
- package/_vendor/canvas-core/tools/select/SelectTool.d.ts +5 -0
- package/_vendor/canvas-core/tools/select/selectContainment.d.ts +11 -0
- package/_vendor/canvas-core/tools/select/selectToolHelpers.d.ts +161 -0
- package/_vendor/canvas-core/tools/select/states/BrushingState.d.ts +19 -0
- package/_vendor/canvas-core/tools/select/states/DraggingSelectionHandleInteractionState.d.ts +15 -0
- package/_vendor/canvas-core/tools/select/states/IdleState.d.ts +8 -0
- package/_vendor/canvas-core/tools/select/states/PointingCanvasState.d.ts +11 -0
- package/_vendor/canvas-core/tools/select/states/PointingResizeHandleState.d.ts +10 -0
- package/_vendor/canvas-core/tools/select/states/PointingRotateHandleState.d.ts +10 -0
- package/_vendor/canvas-core/tools/select/states/PointingSelectionHandleInteractionState.d.ts +10 -0
- package/_vendor/canvas-core/tools/select/states/PointingShapeState.d.ts +12 -0
- package/_vendor/canvas-core/tools/select/states/ResizingState.d.ts +16 -0
- package/_vendor/canvas-core/tools/select/states/RotatingState.d.ts +14 -0
- package/_vendor/canvas-core/tools/select/states/SelectStateNode.d.ts +60 -0
- package/_vendor/canvas-core/tools/select/states/TranslatingState.d.ts +16 -0
- package/_vendor/canvas-plugin-api/feature.d.ts +37 -0
- package/_vendor/canvas-plugin-api/index.d.ts +57 -0
- package/_vendor/canvas-product-react/api/apiRegistry.d.ts +12 -0
- package/_vendor/canvas-product-react/api/canvasProductApi.d.ts +124 -0
- package/_vendor/canvas-product-react/api/index.d.ts +4 -0
- package/_vendor/canvas-product-react/capabilities/clipboard/clipboardService.d.ts +9 -0
- package/_vendor/canvas-product-react/capabilities/clipboard/systemClipboard.d.ts +16 -0
- package/_vendor/canvas-product-react/capabilities/context-menu/systemContextMenu.d.ts +17 -0
- package/_vendor/canvas-product-react/capabilities/context-menu/useContextMenuSurface.d.ts +12 -0
- package/_vendor/canvas-product-react/capabilities/export/useSvgExport.d.ts +29 -0
- package/_vendor/canvas-product-react/capabilities/history/useHistoryControls.d.ts +8 -0
- package/_vendor/canvas-product-react/capabilities/pages/usePageControls.d.ts +12 -0
- package/_vendor/canvas-product-react/capabilities/toolbar/systemToolbar.d.ts +32 -0
- package/_vendor/canvas-product-react/capabilities/toolbar/useToolbarSurfaces.d.ts +19 -0
- package/_vendor/canvas-product-react/capabilities/zoom/useZoomControls.d.ts +9 -0
- package/_vendor/canvas-product-react/index.d.ts +24 -0
- package/_vendor/canvas-product-react/persistence/index.d.ts +2 -0
- package/_vendor/canvas-product-react/persistence/localSnapshotPersistence.d.ts +40 -0
- package/_vendor/canvas-product-react/runtime/CanvasProductRoot.d.ts +4 -0
- package/_vendor/canvas-product-react/runtime/productDefinition.d.ts +45 -0
- package/_vendor/canvas-product-react/runtime/productServices.d.ts +31 -0
- package/_vendor/canvas-react/components/CanvasView.d.ts +11 -0
- package/_vendor/canvas-react/components/OverlayLayer.d.ts +1 -0
- package/_vendor/canvas-react/components/PageSpace.d.ts +6 -0
- package/_vendor/canvas-react/components/ShapeLayer.d.ts +1 -0
- package/_vendor/canvas-react/hooks/useEditor.d.ts +3 -0
- package/_vendor/canvas-react/hooks/useValue.d.ts +2 -0
- package/_vendor/canvas-react/host/CanvasRendererRegistryContext.d.ts +3 -0
- package/_vendor/canvas-react/host/contextMenuRegistry.d.ts +12 -0
- package/_vendor/canvas-react/host/domEventGuards.d.ts +11 -0
- package/_vendor/canvas-react/host/index.d.ts +8 -0
- package/_vendor/canvas-react/host/pluginHost.d.ts +93 -0
- package/_vendor/canvas-react/host/rendererRegistry.d.ts +12 -0
- package/_vendor/canvas-react/host/toolbarRegistry.d.ts +24 -0
- package/_vendor/plugin-arrow/ArrowBindingUtil.d.ts +27 -0
- package/_vendor/plugin-arrow/ArrowShapeUtil.d.ts +20 -0
- package/_vendor/plugin-arrow/ArrowTool.d.ts +4 -0
- package/_vendor/plugin-arrow/arrowGeometry.d.ts +50 -0
- package/_vendor/plugin-arrow/arrowTerminalBindingResolver.d.ts +21 -0
- package/_vendor/plugin-arrow/arrowTerminalCommands.d.ts +12 -0
- package/_vendor/plugin-arrow/canvas.d.ts +2 -0
- package/_vendor/plugin-arrow/core.d.ts +7 -0
- package/_vendor/plugin-arrow/feature.d.ts +3 -0
- package/_vendor/plugin-arrow/index.d.ts +11 -0
- package/_vendor/plugin-arrow/selectionHandleInteractions.d.ts +3 -0
- package/_vendor/plugin-arrow/types.d.ts +31 -0
- package/_vendor/plugin-draw/DrawShapeRenderer.d.ts +8 -0
- package/_vendor/plugin-draw/DrawShapeUtil.d.ts +21 -0
- package/_vendor/plugin-draw/DrawTool.d.ts +6 -0
- package/_vendor/plugin-draw/canvas.d.ts +2 -0
- package/_vendor/plugin-draw/core.d.ts +7 -0
- package/_vendor/plugin-draw/drawGeometry.d.ts +45 -0
- package/_vendor/plugin-draw/drawHitTest.d.ts +11 -0
- package/_vendor/plugin-draw/drawInterpolation.d.ts +5 -0
- package/_vendor/plugin-draw/drawPath.d.ts +37 -0
- package/_vendor/plugin-draw/drawSegments.d.ts +11 -0
- package/_vendor/plugin-draw/drawSelectionTransform.d.ts +18 -0
- package/_vendor/plugin-draw/drawShapeGeometry.d.ts +33 -0
- package/_vendor/plugin-draw/drawStrokeGeometry.d.ts +17 -0
- package/_vendor/plugin-draw/feature.d.ts +3 -0
- package/_vendor/plugin-draw/index.d.ts +13 -0
- package/_vendor/plugin-draw/types.d.ts +23 -0
- package/_vendor/plugin-eraser/EraserTool.d.ts +5 -0
- package/_vendor/plugin-eraser/canvas.d.ts +2 -0
- package/_vendor/plugin-eraser/core.d.ts +2 -0
- package/_vendor/plugin-eraser/feature.d.ts +3 -0
- package/_vendor/plugin-frame/FrameShapeUtil.d.ts +22 -0
- package/_vendor/plugin-frame/FrameTool.d.ts +6 -0
- package/_vendor/plugin-frame/canvas.d.ts +8 -0
- package/_vendor/plugin-frame/core.d.ts +7 -0
- package/_vendor/plugin-frame/feature.d.ts +3 -0
- package/_vendor/plugin-geo/GeoShapeUtil.d.ts +13 -0
- package/_vendor/plugin-geo/GeoTools.d.ts +17 -0
- package/_vendor/plugin-geo/canvas.d.ts +11 -0
- package/_vendor/plugin-geo/core.d.ts +7 -0
- package/_vendor/plugin-geo/feature.d.ts +3 -0
- package/_vendor/plugin-geo/types.d.ts +15 -0
- package/_vendor/plugin-group/GroupShapeUtil.d.ts +15 -0
- package/_vendor/plugin-group/canvas.d.ts +10 -0
- package/_vendor/plugin-group/core.d.ts +7 -0
- package/_vendor/plugin-group/feature.d.ts +3 -0
- package/_vendor/plugin-image/ImageShapeUtil.d.ts +10 -0
- package/_vendor/plugin-image/canvas.d.ts +2 -0
- package/_vendor/plugin-image/core.d.ts +16 -0
- package/_vendor/plugin-image/crop.d.ts +112 -0
- package/_vendor/plugin-image/cropInteractions.d.ts +3 -0
- package/_vendor/plugin-image/cropSession.d.ts +4 -0
- package/_vendor/plugin-image/feature.d.ts +3 -0
- package/_vendor/plugin-image/index.d.ts +8 -0
- package/_vendor/plugin-image/types.d.ts +37 -0
- package/_vendor/plugin-image-product-react/ImageImportController.d.ts +9 -0
- package/_vendor/plugin-image-product-react/imageAssetService.d.ts +7 -0
- package/_vendor/plugin-image-product-react/imageBlobStore.d.ts +25 -0
- package/_vendor/plugin-image-product-react/imageHostActions.d.ts +35 -0
- package/_vendor/plugin-image-product-react/imageProductApi.d.ts +21 -0
- package/_vendor/plugin-image-product-react/imageToolbarHostBridge.d.ts +14 -0
- package/_vendor/plugin-image-product-react/imageToolbarRuntime.d.ts +2 -0
- package/_vendor/plugin-image-product-react/index.d.ts +16 -0
- package/_vendor/plugin-image-product-react/snapshotGuards.d.ts +1 -0
- package/_vendor/plugin-image-product-react/svgImageAssetInliner.d.ts +3 -0
- package/_vendor/plugin-image-product-react/useImageImport.d.ts +16 -0
- package/_vendor/plugin-laser/LaserTool.d.ts +4 -0
- package/_vendor/plugin-laser/canvas.d.ts +2 -0
- package/_vendor/plugin-laser/core.d.ts +2 -0
- package/_vendor/plugin-laser/feature.d.ts +3 -0
- package/_vendor/plugin-text/ArrowLabelBindingUtil.d.ts +42 -0
- package/_vendor/plugin-text/GeoLabelBindingUtil.d.ts +45 -0
- package/_vendor/plugin-text/TextShapeSvgExporter.d.ts +6 -0
- package/_vendor/plugin-text/TextShapeUtil.d.ts +19 -0
- package/_vendor/plugin-text/TextTool.d.ts +4 -0
- package/_vendor/plugin-text/canvas.d.ts +2 -0
- package/_vendor/plugin-text/core.d.ts +2 -0
- package/_vendor/plugin-text/feature.d.ts +3 -0
- package/_vendor/plugin-text/host/RichTextEditingBox.d.ts +5 -0
- package/_vendor/plugin-text/host/RichTextToolbar.d.ts +6 -0
- package/_vendor/plugin-text/host/TiptapTextEditor.d.ts +24 -0
- package/_vendor/plugin-text/host/richTextRendering.d.ts +3 -0
- package/_vendor/plugin-text/host/textDomSelection.d.ts +7 -0
- package/_vendor/plugin-text/host/textEditingBoxStyle.d.ts +3 -0
- package/_vendor/plugin-text/host/textEntryFocus.d.ts +22 -0
- package/_vendor/plugin-text/host/textFontLoader.d.ts +2 -0
- package/_vendor/plugin-text/host/textMeasurement.d.ts +12 -0
- package/_vendor/plugin-text/host/textMeasurementSync.d.ts +10 -0
- package/_vendor/plugin-text/host/textRangeSelection.d.ts +14 -0
- package/_vendor/plugin-text/host/textShapeRendererRuntime.d.ts +8 -0
- package/_vendor/plugin-text/host/textShapeSync.d.ts +17 -0
- package/_vendor/plugin-text/host/tiptapTextEditorController.d.ts +33 -0
- package/_vendor/plugin-text/index.d.ts +4 -0
- package/_vendor/plugin-text/richTextUtils.d.ts +18 -0
- package/_vendor/plugin-text/textInteractions.d.ts +2 -0
- package/_vendor/plugin-text/textLabelHelpers.d.ts +44 -0
- package/_vendor/plugin-text/textShapeHelpers.d.ts +21 -0
- package/_vendor/plugin-text/textStyle.d.ts +9 -0
- package/_vendor/plugin-text/textTypes.d.ts +28 -0
- package/_vendor/signals/atom.d.ts +9 -0
- package/_vendor/signals/computed.d.ts +11 -0
- package/_vendor/signals/core.d.ts +17 -0
- package/_vendor/signals/effect.d.ts +29 -0
- package/_vendor/signals/types.d.ts +15 -0
- package/_vendor/store/Store.d.ts +26 -0
- package/_vendor/store/diff.d.ts +9 -0
- package/_vendor/store/history.d.ts +37 -0
- package/_vendor/store/index.d.ts +5 -0
- package/_vendor/store/types.d.ts +27 -0
- package/api/canvasKitApi.d.ts +2 -2
- package/index.css +1 -1
- package/index.d.ts +0 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
- package/product/Shell.d.ts +2 -2
- package/product/chromeContext.d.ts +8 -8
- package/product/createCanvasKitEditor.d.ts +1 -1
- package/product/persistence.d.ts +1 -1
- package/product/product.d.ts +1 -1
- package/product/useCanvasClipboardShortcuts.d.ts +2 -2
- package/product-CxN5NN6u.mjs +4 -0
- package/product.mjs +1 -1
- package/standard/extensions.d.ts +1 -1
- package/standard/standardApi.d.ts +5 -5
- package/standard-R17_x8HU.mjs +44 -0
- package/standard.mjs +1 -1
- package/_vendor/canvas-core/bindings/BindingUtil.ts +0 -92
- package/_vendor/canvas-core/bindings/BindingUtilRegistry.ts +0 -22
- package/_vendor/canvas-core/bindings/arrow/arrowBindingHelpers.ts +0 -52
- package/_vendor/canvas-core/contextMenu.ts +0 -85
- package/_vendor/canvas-core/editor/Editor.ts +0 -2614
- package/_vendor/canvas-core/editor/HistoryManager.ts +0 -83
- package/_vendor/canvas-core/editor/StateNode.ts +0 -162
- package/_vendor/canvas-core/editor/camera.ts +0 -6
- package/_vendor/canvas-core/editor/clipboard.ts +0 -478
- package/_vendor/canvas-core/editor/commands.ts +0 -833
- package/_vendor/canvas-core/editor/edgeScroll.ts +0 -37
- package/_vendor/canvas-core/editor/editorComputedHelpers.ts +0 -257
- package/_vendor/canvas-core/editor/editorSelectionTransforms.ts +0 -116
- package/_vendor/canvas-core/editor/events.ts +0 -93
- package/_vendor/canvas-core/editor/interactions.ts +0 -101
- package/_vendor/canvas-core/editor/internal.ts +0 -22
- package/_vendor/canvas-core/editor/managers/BindingManager.ts +0 -262
- package/_vendor/canvas-core/editor/managers/CameraManager.ts +0 -147
- package/_vendor/canvas-core/editor/managers/ClipboardManager.ts +0 -32
- package/_vendor/canvas-core/editor/managers/DocumentSnapshotManager.ts +0 -256
- package/_vendor/canvas-core/editor/managers/InputsManager.ts +0 -319
- package/_vendor/canvas-core/editor/managers/InteractionTransientManager.ts +0 -218
- package/_vendor/canvas-core/editor/managers/QueryManager.ts +0 -837
- package/_vendor/canvas-core/editor/managers/RenderWindowManager.ts +0 -347
- package/_vendor/canvas-core/editor/managers/SelectionLayoutManager.ts +0 -196
- package/_vendor/canvas-core/editor/managers/SelectionManager.ts +0 -98
- package/_vendor/canvas-core/editor/managers/SelectionOverlayManager.ts +0 -308
- package/_vendor/canvas-core/editor/managers/ShapeEditingManager.ts +0 -226
- package/_vendor/canvas-core/editor/managers/ShapeGeometryManager.ts +0 -162
- package/_vendor/canvas-core/editor/managers/ShapeHierarchyManager.ts +0 -797
- package/_vendor/canvas-core/editor/managers/SideEffectManager.ts +0 -83
- package/_vendor/canvas-core/editor/managers/SnapManager.ts +0 -433
- package/_vendor/canvas-core/editor/managers/SnapSnapshotBuilder.ts +0 -430
- package/_vendor/canvas-core/editor/managers/SpatialIndexManager.ts +0 -354
- package/_vendor/canvas-core/editor/managers/ToolManager.ts +0 -81
- package/_vendor/canvas-core/editor/managers/queryState.ts +0 -583
- package/_vendor/canvas-core/editor/managers/selectionGeometry.ts +0 -287
- package/_vendor/canvas-core/editor/managers/shapeOrder.ts +0 -350
- package/_vendor/canvas-core/editor/managers/shapeReparenting.ts +0 -160
- package/_vendor/canvas-core/editor/managers/snapCalculations.ts +0 -412
- package/_vendor/canvas-core/editor/managers/snapGeometry.ts +0 -202
- package/_vendor/canvas-core/editor/managers/snapIndicators.ts +0 -403
- package/_vendor/canvas-core/editor/managers/snapTypes.ts +0 -122
- package/_vendor/canvas-core/editor/queries/shapeTransforms.ts +0 -171
- package/_vendor/canvas-core/editor/renderWindow.ts +0 -439
- package/_vendor/canvas-core/editor/resizeGeometry.ts +0 -654
- package/_vendor/canvas-core/editor/selection.ts +0 -489
- package/_vendor/canvas-core/editor/selectionHandleInteractions.ts +0 -43
- package/_vendor/canvas-core/editor/selectionOverlay.ts +0 -567
- package/_vendor/canvas-core/exports/integrity.ts +0 -174
- package/_vendor/canvas-core/exports/svg.ts +0 -494
- package/_vendor/canvas-core/geometry/Box.ts +0 -80
- package/_vendor/canvas-core/geometry/Ellipse2d.ts +0 -67
- package/_vendor/canvas-core/geometry/Geometry2d.ts +0 -52
- package/_vendor/canvas-core/geometry/Mat.ts +0 -92
- package/_vendor/canvas-core/geometry/Polyline2d.ts +0 -63
- package/_vendor/canvas-core/geometry/Rectangle2d.ts +0 -64
- package/_vendor/canvas-core/geometry/Vec.ts +0 -123
- package/_vendor/canvas-core/geometry/segments.ts +0 -65
- package/_vendor/canvas-core/index.ts +0 -391
- package/_vendor/canvas-core/plugins/index.ts +0 -5
- package/_vendor/canvas-core/plugins/types.ts +0 -53
- package/_vendor/canvas-core/reactivity.ts +0 -16
- package/_vendor/canvas-core/schema/records.ts +0 -221
- package/_vendor/canvas-core/schema/snapshots.ts +0 -527
- package/_vendor/canvas-core/shapes/ShapeUtil.ts +0 -516
- package/_vendor/canvas-core/shapes/ShapeUtilRegistry.ts +0 -26
- package/_vendor/canvas-core/shapes/capabilities.ts +0 -67
- package/_vendor/canvas-core/shapes/types.ts +0 -20
- package/_vendor/canvas-core/toolbar.ts +0 -148
- package/_vendor/canvas-core/tools/hand/HandTool.ts +0 -75
- package/_vendor/canvas-core/tools/select/SelectTool.ts +0 -33
- package/_vendor/canvas-core/tools/select/selectContainment.ts +0 -104
- package/_vendor/canvas-core/tools/select/selectToolHelpers.ts +0 -801
- package/_vendor/canvas-core/tools/select/states/BrushingState.ts +0 -145
- package/_vendor/canvas-core/tools/select/states/DraggingSelectionHandleInteractionState.ts +0 -116
- package/_vendor/canvas-core/tools/select/states/IdleState.ts +0 -159
- package/_vendor/canvas-core/tools/select/states/PointingCanvasState.ts +0 -41
- package/_vendor/canvas-core/tools/select/states/PointingResizeHandleState.ts +0 -78
- package/_vendor/canvas-core/tools/select/states/PointingRotateHandleState.ts +0 -64
- package/_vendor/canvas-core/tools/select/states/PointingSelectionHandleInteractionState.ts +0 -34
- package/_vendor/canvas-core/tools/select/states/PointingShapeState.ts +0 -140
- package/_vendor/canvas-core/tools/select/states/ResizingState.ts +0 -171
- package/_vendor/canvas-core/tools/select/states/RotatingState.ts +0 -124
- package/_vendor/canvas-core/tools/select/states/SelectStateNode.ts +0 -128
- package/_vendor/canvas-core/tools/select/states/TranslatingState.ts +0 -139
- package/_vendor/canvas-plugin-api/feature.ts +0 -204
- package/_vendor/canvas-plugin-api/index.ts +0 -142
- package/_vendor/canvas-product-react/api/apiRegistry.ts +0 -35
- package/_vendor/canvas-product-react/api/canvasProductApi.ts +0 -422
- package/_vendor/canvas-product-react/api/index.ts +0 -31
- package/_vendor/canvas-product-react/capabilities/clipboard/clipboardService.ts +0 -36
- package/_vendor/canvas-product-react/capabilities/clipboard/systemClipboard.ts +0 -245
- package/_vendor/canvas-product-react/capabilities/context-menu/systemContextMenu.ts +0 -396
- package/_vendor/canvas-product-react/capabilities/context-menu/useContextMenuSurface.ts +0 -59
- package/_vendor/canvas-product-react/capabilities/export/useSvgExport.ts +0 -156
- package/_vendor/canvas-product-react/capabilities/history/useHistoryControls.ts +0 -23
- package/_vendor/canvas-product-react/capabilities/pages/usePageControls.ts +0 -41
- package/_vendor/canvas-product-react/capabilities/toolbar/systemToolbar.ts +0 -490
- package/_vendor/canvas-product-react/capabilities/toolbar/useToolbarSurfaces.ts +0 -92
- package/_vendor/canvas-product-react/capabilities/zoom/useZoomControls.ts +0 -27
- package/_vendor/canvas-product-react/index.ts +0 -84
- package/_vendor/canvas-product-react/persistence/index.ts +0 -18
- package/_vendor/canvas-product-react/persistence/localSnapshotPersistence.ts +0 -294
- package/_vendor/canvas-product-react/runtime/CanvasProductRoot.tsx +0 -250
- package/_vendor/canvas-product-react/runtime/productDefinition.ts +0 -72
- package/_vendor/canvas-product-react/runtime/productServices.ts +0 -96
- package/_vendor/canvas-react/components/CanvasView.tsx +0 -796
- package/_vendor/canvas-react/components/OverlayLayer.tsx +0 -879
- package/_vendor/canvas-react/components/PageSpace.tsx +0 -34
- package/_vendor/canvas-react/components/ShapeLayer.tsx +0 -428
- package/_vendor/canvas-react/hooks/useEditor.ts +0 -11
- package/_vendor/canvas-react/hooks/useValue.ts +0 -14
- package/_vendor/canvas-react/host/CanvasRendererRegistryContext.tsx +0 -14
- package/_vendor/canvas-react/host/contextMenuRegistry.ts +0 -61
- package/_vendor/canvas-react/host/domEventGuards.ts +0 -61
- package/_vendor/canvas-react/host/index.ts +0 -38
- package/_vendor/canvas-react/host/pluginHost.ts +0 -635
- package/_vendor/canvas-react/host/rendererRegistry.tsx +0 -58
- package/_vendor/canvas-react/host/toolbarRegistry.ts +0 -100
- package/_vendor/plugin-arrow/ArrowBindingUtil.ts +0 -239
- package/_vendor/plugin-arrow/ArrowShapeUtil.ts +0 -311
- package/_vendor/plugin-arrow/ArrowTool.ts +0 -208
- package/_vendor/plugin-arrow/arrowGeometry.ts +0 -441
- package/_vendor/plugin-arrow/arrowTerminalBindingResolver.ts +0 -253
- package/_vendor/plugin-arrow/arrowTerminalCommands.ts +0 -230
- package/_vendor/plugin-arrow/canvas.tsx +0 -92
- package/_vendor/plugin-arrow/core.ts +0 -409
- package/_vendor/plugin-arrow/feature.ts +0 -20
- package/_vendor/plugin-arrow/index.ts +0 -28
- package/_vendor/plugin-arrow/selectionHandleInteractions.ts +0 -154
- package/_vendor/plugin-arrow/types.ts +0 -63
- package/_vendor/plugin-draw/DrawShapeRenderer.tsx +0 -60
- package/_vendor/plugin-draw/DrawShapeUtil.ts +0 -372
- package/_vendor/plugin-draw/DrawTool.ts +0 -444
- package/_vendor/plugin-draw/canvas.tsx +0 -24
- package/_vendor/plugin-draw/core.ts +0 -515
- package/_vendor/plugin-draw/drawGeometry.ts +0 -491
- package/_vendor/plugin-draw/drawHitTest.ts +0 -271
- package/_vendor/plugin-draw/drawInterpolation.ts +0 -250
- package/_vendor/plugin-draw/drawPath.ts +0 -550
- package/_vendor/plugin-draw/drawSegments.ts +0 -106
- package/_vendor/plugin-draw/drawSelectionTransform.ts +0 -67
- package/_vendor/plugin-draw/drawShapeGeometry.ts +0 -307
- package/_vendor/plugin-draw/drawStrokeGeometry.ts +0 -454
- package/_vendor/plugin-draw/feature.ts +0 -20
- package/_vendor/plugin-draw/index.ts +0 -31
- package/_vendor/plugin-draw/types.ts +0 -36
- package/_vendor/plugin-eraser/EraserTool.ts +0 -297
- package/_vendor/plugin-eraser/canvas.tsx +0 -616
- package/_vendor/plugin-eraser/core.ts +0 -49
- package/_vendor/plugin-eraser/feature.ts +0 -20
- package/_vendor/plugin-frame/FrameShapeUtil.ts +0 -173
- package/_vendor/plugin-frame/FrameTool.ts +0 -225
- package/_vendor/plugin-frame/canvas.tsx +0 -75
- package/_vendor/plugin-frame/core.ts +0 -534
- package/_vendor/plugin-frame/feature.ts +0 -20
- package/_vendor/plugin-geo/GeoShapeUtil.ts +0 -463
- package/_vendor/plugin-geo/GeoTools.ts +0 -247
- package/_vendor/plugin-geo/canvas.tsx +0 -90
- package/_vendor/plugin-geo/core.ts +0 -495
- package/_vendor/plugin-geo/feature.ts +0 -20
- package/_vendor/plugin-geo/types.ts +0 -27
- package/_vendor/plugin-group/GroupShapeUtil.ts +0 -59
- package/_vendor/plugin-group/canvas.tsx +0 -59
- package/_vendor/plugin-group/core.ts +0 -40
- package/_vendor/plugin-group/feature.ts +0 -20
- package/_vendor/plugin-image/ImageShapeUtil.ts +0 -95
- package/_vendor/plugin-image/canvas.tsx +0 -212
- package/_vendor/plugin-image/core.ts +0 -542
- package/_vendor/plugin-image/crop.ts +0 -770
- package/_vendor/plugin-image/cropInteractions.ts +0 -350
- package/_vendor/plugin-image/cropSession.ts +0 -38
- package/_vendor/plugin-image/feature.ts +0 -20
- package/_vendor/plugin-image/index.ts +0 -29
- package/_vendor/plugin-image/types.ts +0 -55
- package/_vendor/plugin-image-product-react/ImageImportController.tsx +0 -143
- package/_vendor/plugin-image-product-react/imageAssetService.ts +0 -52
- package/_vendor/plugin-image-product-react/imageBlobStore.ts +0 -315
- package/_vendor/plugin-image-product-react/imageHostActions.ts +0 -438
- package/_vendor/plugin-image-product-react/imageProductApi.ts +0 -88
- package/_vendor/plugin-image-product-react/imageToolbarHostBridge.ts +0 -48
- package/_vendor/plugin-image-product-react/imageToolbarRuntime.ts +0 -21
- package/_vendor/plugin-image-product-react/index.ts +0 -60
- package/_vendor/plugin-image-product-react/snapshotGuards.ts +0 -33
- package/_vendor/plugin-image-product-react/svgImageAssetInliner.ts +0 -54
- package/_vendor/plugin-image-product-react/useImageImport.ts +0 -64
- package/_vendor/plugin-laser/LaserTool.ts +0 -154
- package/_vendor/plugin-laser/canvas.tsx +0 -645
- package/_vendor/plugin-laser/core.ts +0 -49
- package/_vendor/plugin-laser/feature.ts +0 -20
- package/_vendor/plugin-text/ArrowLabelBindingUtil.ts +0 -336
- package/_vendor/plugin-text/GeoLabelBindingUtil.ts +0 -391
- package/_vendor/plugin-text/TextShapeSvgExporter.ts +0 -101
- package/_vendor/plugin-text/TextShapeUtil.ts +0 -284
- package/_vendor/plugin-text/TextTool.ts +0 -228
- package/_vendor/plugin-text/canvas.tsx +0 -115
- package/_vendor/plugin-text/core.ts +0 -422
- package/_vendor/plugin-text/feature.ts +0 -20
- package/_vendor/plugin-text/host/RichTextEditingBox.tsx +0 -144
- package/_vendor/plugin-text/host/RichTextToolbar.tsx +0 -266
- package/_vendor/plugin-text/host/TiptapTextEditor.tsx +0 -191
- package/_vendor/plugin-text/host/richTextRendering.tsx +0 -49
- package/_vendor/plugin-text/host/textDomSelection.ts +0 -93
- package/_vendor/plugin-text/host/textEditingBoxStyle.ts +0 -36
- package/_vendor/plugin-text/host/textEntryFocus.ts +0 -307
- package/_vendor/plugin-text/host/textFontLoader.ts +0 -149
- package/_vendor/plugin-text/host/textMeasurement.ts +0 -258
- package/_vendor/plugin-text/host/textMeasurementSync.ts +0 -77
- package/_vendor/plugin-text/host/textRangeSelection.ts +0 -134
- package/_vendor/plugin-text/host/textShapeRendererRuntime.tsx +0 -89
- package/_vendor/plugin-text/host/textShapeSync.ts +0 -173
- package/_vendor/plugin-text/host/tiptapTextEditorController.ts +0 -148
- package/_vendor/plugin-text/index.ts +0 -18
- package/_vendor/plugin-text/richTextUtils.ts +0 -259
- package/_vendor/plugin-text/textInteractions.ts +0 -366
- package/_vendor/plugin-text/textLabelHelpers.ts +0 -235
- package/_vendor/plugin-text/textShapeHelpers.ts +0 -123
- package/_vendor/plugin-text/textStyle.ts +0 -96
- package/_vendor/plugin-text/textTypes.ts +0 -48
- package/_vendor/signals/atom.ts +0 -74
- package/_vendor/signals/computed.ts +0 -132
- package/_vendor/signals/core.ts +0 -130
- package/_vendor/signals/effect.ts +0 -117
- package/_vendor/signals/types.ts +0 -17
- package/_vendor/store/Store.ts +0 -171
- package/_vendor/store/diff.ts +0 -229
- package/_vendor/store/history.ts +0 -177
- package/_vendor/store/index.ts +0 -32
- package/_vendor/store/types.ts +0 -37
- package/internal-modules.d.ts +0 -187
- package/product-iyBbEPIs.mjs +0 -4
- package/standard-BmrxwqpJ.mjs +0 -44
- /package/_vendor/canvas-core/tools/{index.ts → index.d.ts} +0 -0
- /package/_vendor/canvas-core/tools/select/states/{index.ts → index.d.ts} +0 -0
- /package/_vendor/canvas-react/components/{index.ts → index.d.ts} +0 -0
- /package/_vendor/canvas-react/{index.ts → index.d.ts} +0 -0
- /package/_vendor/plugin-eraser/{index.ts → index.d.ts} +0 -0
- /package/_vendor/plugin-frame/{index.ts → index.d.ts} +0 -0
- /package/_vendor/plugin-geo/{index.ts → index.d.ts} +0 -0
- /package/_vendor/plugin-group/{index.ts → index.d.ts} +0 -0
- /package/_vendor/plugin-laser/{index.ts → index.d.ts} +0 -0
- /package/_vendor/signals/{index.ts → index.d.ts} +0 -0
|
@@ -1,391 +0,0 @@
|
|
|
1
|
-
export { Editor } from "./editor/Editor";
|
|
2
|
-
export {
|
|
3
|
-
distanceBetweenSegments,
|
|
4
|
-
distanceToSegment,
|
|
5
|
-
nearestPointOnSegment,
|
|
6
|
-
segmentsIntersect,
|
|
7
|
-
} from "./geometry";
|
|
8
|
-
export {
|
|
9
|
-
getShapeGeometry,
|
|
10
|
-
getShapeExportBounds,
|
|
11
|
-
getShapeExportPageBounds,
|
|
12
|
-
getShapeExportToPageTransform,
|
|
13
|
-
getShapeLocalBounds,
|
|
14
|
-
getShapeLocalToPageTransform,
|
|
15
|
-
getShapePositionedOutlineVertices,
|
|
16
|
-
getShapePositionedToPageTransform,
|
|
17
|
-
getShapePageBounds,
|
|
18
|
-
getShapePageCenter,
|
|
19
|
-
getShapePageCorners,
|
|
20
|
-
getShapePageOutlineVertices,
|
|
21
|
-
pagePointToShapePositionedPoint,
|
|
22
|
-
positionedShapePointToPagePoint,
|
|
23
|
-
getShapeRenderBounds,
|
|
24
|
-
getShapeRenderToPageTransform,
|
|
25
|
-
} from "./editor/queries/shapeTransforms";
|
|
26
|
-
export type { ShapeGeometry } from "./editor/queries/shapeTransforms";
|
|
27
|
-
export type {
|
|
28
|
-
ArrowBindingPreviewState,
|
|
29
|
-
GapSnapIndicatorGapState,
|
|
30
|
-
GapSnapIndicatorState,
|
|
31
|
-
PointSnapIndicatorState,
|
|
32
|
-
SnapIndicatorState,
|
|
33
|
-
SelectionArrowMiddleHandle,
|
|
34
|
-
SelectionArrowMiddleHandleAnchor,
|
|
35
|
-
SelectionArrowTerminalHandle,
|
|
36
|
-
SelectionArrowTerminalHandleAnchor,
|
|
37
|
-
SelectionCustomHandle,
|
|
38
|
-
SelectionCustomHandleAnchor,
|
|
39
|
-
SelectionHandle,
|
|
40
|
-
SelectionOverlayFrameState,
|
|
41
|
-
SelectionOverlayFrameGeometryState,
|
|
42
|
-
SelectionOverlayFrameStyleState,
|
|
43
|
-
SelectionOverlayHandleAnchorsState,
|
|
44
|
-
SelectionOverlayHandleCountsState,
|
|
45
|
-
SelectionOverlayHandlesState,
|
|
46
|
-
SelectionOverlayState,
|
|
47
|
-
SelectionResizeHandle,
|
|
48
|
-
SelectionResizeHandleAnchor,
|
|
49
|
-
SelectionResizeHandleId,
|
|
50
|
-
SelectionRotateHandle,
|
|
51
|
-
SelectionRotateHandleAnchor,
|
|
52
|
-
SelectionRotateHandleId,
|
|
53
|
-
SelectionMirrorAxis,
|
|
54
|
-
} from "./editor/selection";
|
|
55
|
-
export {
|
|
56
|
-
flipSelectionLocalBounds,
|
|
57
|
-
getSelectionLocalBoundsFromPagePoints,
|
|
58
|
-
mapSelectionLocalBoundsBetweenBounds,
|
|
59
|
-
mapSelectionLocalPointBetweenBounds,
|
|
60
|
-
mirrorSelectionLocalPoint,
|
|
61
|
-
rotateSelectionPagePoint,
|
|
62
|
-
selectionLocalPointToPagePoint,
|
|
63
|
-
selectionPagePointToLocalPoint,
|
|
64
|
-
} from "./editor/selection";
|
|
65
|
-
export {
|
|
66
|
-
getAnchoredSelectionResizeLocalBounds,
|
|
67
|
-
getAspectRatioLockedSelectionResizeBounds,
|
|
68
|
-
getCenteredSelectionResizeBounds,
|
|
69
|
-
getConstrainedSelectionResizeBounds,
|
|
70
|
-
getSelectionResizeBounds,
|
|
71
|
-
getSelectionResizeScalesFromBounds,
|
|
72
|
-
isSelectionResizeCorner,
|
|
73
|
-
normalizeSelectionResizeBoundsFromEdges,
|
|
74
|
-
selectionResizeHandleMovesBottomEdge,
|
|
75
|
-
selectionResizeHandleMovesLeftEdge,
|
|
76
|
-
selectionResizeHandleMovesRightEdge,
|
|
77
|
-
selectionResizeHandleMovesTopEdge,
|
|
78
|
-
} from "./editor/resizeGeometry";
|
|
79
|
-
export { InteractionHandlerRegistry } from "./editor/interactions";
|
|
80
|
-
export { SelectionHandleInteractionRegistry } from "./editor/selectionHandleInteractions";
|
|
81
|
-
export type {
|
|
82
|
-
EditorEventInteractionDecision,
|
|
83
|
-
EditorEventInteractionHandler,
|
|
84
|
-
LandInteractionHandler,
|
|
85
|
-
SelectionHandleInteractionHandler,
|
|
86
|
-
SelectionHandleInteractionInput,
|
|
87
|
-
SelectionHandleInteractionSession,
|
|
88
|
-
SelectionHandleInteractionUpdateResult,
|
|
89
|
-
} from "./editor/interactions";
|
|
90
|
-
export type {
|
|
91
|
-
ContainerBoundsQueryOptions,
|
|
92
|
-
EditorPageState,
|
|
93
|
-
EditorOverlayDebugState,
|
|
94
|
-
EditorRenderHostDebugState,
|
|
95
|
-
EditorSelectionState,
|
|
96
|
-
LayerOrderDirection,
|
|
97
|
-
LayerOrderEdge,
|
|
98
|
-
LayerTreeNode,
|
|
99
|
-
ReparentShapePlacementInput,
|
|
100
|
-
ReparentShapePlacementFailureReason,
|
|
101
|
-
ReparentShapePlacementResult,
|
|
102
|
-
ShapeSiblingOrderDirection,
|
|
103
|
-
ShapeSiblingOrderEdge,
|
|
104
|
-
ShapeSiblingOrderState,
|
|
105
|
-
ShapeGroupState,
|
|
106
|
-
ShapeSelectionSiblingOrderState,
|
|
107
|
-
ShapePropsPatch,
|
|
108
|
-
EditorToolState,
|
|
109
|
-
EditorShapeEditingState,
|
|
110
|
-
} from "./editor/Editor";
|
|
111
|
-
export type { ShapeContainment } from "./editor/managers/QueryManager";
|
|
112
|
-
export type {
|
|
113
|
-
ShapeAtPointOptions,
|
|
114
|
-
ShapeLineSegmentHitTestOptions,
|
|
115
|
-
SpatialQueryOptions,
|
|
116
|
-
} from "./editor/managers/SpatialIndexManager";
|
|
117
|
-
export type {
|
|
118
|
-
ArrowBindingTargetInput,
|
|
119
|
-
ConnectionPoint,
|
|
120
|
-
ConnectionTerminal,
|
|
121
|
-
ArrowTerminalBindingResolver,
|
|
122
|
-
ArrowTerminalBindingResolverInput,
|
|
123
|
-
ResolvedArrowTerminalBinding,
|
|
124
|
-
} from "./bindings/arrow/arrowBindingHelpers";
|
|
125
|
-
export type {
|
|
126
|
-
EditorCommandOptions,
|
|
127
|
-
EditorCommands,
|
|
128
|
-
CreateAssetInput,
|
|
129
|
-
CreateBindingInput,
|
|
130
|
-
CreatePageInput,
|
|
131
|
-
MovePageInput,
|
|
132
|
-
RenamePageInput,
|
|
133
|
-
ReparentShapesInput,
|
|
134
|
-
CreateShapeInput,
|
|
135
|
-
SetCameraInput,
|
|
136
|
-
ShapeUpdate,
|
|
137
|
-
StartEditingShapeInput,
|
|
138
|
-
UpdateAssetInput,
|
|
139
|
-
UpdateBindingInput,
|
|
140
|
-
} from "./editor/commands";
|
|
141
|
-
export { reparentShapeToContainingParent } from "./editor/commands";
|
|
142
|
-
export {
|
|
143
|
-
isEditorClipboardPayload,
|
|
144
|
-
} from "./editor/clipboard";
|
|
145
|
-
export type {
|
|
146
|
-
ClipboardAssetSidecar,
|
|
147
|
-
DuplicateSelectionInput,
|
|
148
|
-
EditorClipboardPayload,
|
|
149
|
-
PasteClipboardPayloadInput,
|
|
150
|
-
} from "./editor/clipboard";
|
|
151
|
-
export type {
|
|
152
|
-
EditorEvent,
|
|
153
|
-
ClickEditorEvent,
|
|
154
|
-
PointerEditorEvent,
|
|
155
|
-
KeyboardEditorEvent,
|
|
156
|
-
WheelEditorEvent,
|
|
157
|
-
TickEditorEvent,
|
|
158
|
-
CancelEditorEvent,
|
|
159
|
-
EditorPointerType,
|
|
160
|
-
} from "./editor/events";
|
|
161
|
-
export type {
|
|
162
|
-
ChangeSource,
|
|
163
|
-
RecordUpdate,
|
|
164
|
-
RecordsDiff,
|
|
165
|
-
ScopedStoreRecord,
|
|
166
|
-
StoreRecord,
|
|
167
|
-
StoreChange,
|
|
168
|
-
StoreScopeOf,
|
|
169
|
-
StoreSnapshot,
|
|
170
|
-
} from "@land/store";
|
|
171
|
-
export {
|
|
172
|
-
composeRecordsDiff,
|
|
173
|
-
createEmptyRecordsDiff,
|
|
174
|
-
filterRecordsDiff,
|
|
175
|
-
getRecordMap,
|
|
176
|
-
getRecordsDiff,
|
|
177
|
-
hasRecordsDiff,
|
|
178
|
-
invertRecordsDiff,
|
|
179
|
-
squashRecordsDiffs,
|
|
180
|
-
} from "@land/store";
|
|
181
|
-
export {
|
|
182
|
-
appendStoreHistoryMark,
|
|
183
|
-
createStoreHistoryEntry,
|
|
184
|
-
createStoreHistoryMark,
|
|
185
|
-
Store,
|
|
186
|
-
StoreHistoryBuffer,
|
|
187
|
-
} from "@land/store";
|
|
188
|
-
export type {
|
|
189
|
-
StoreHistoryEntry,
|
|
190
|
-
StoreHistoryMark,
|
|
191
|
-
StoreHistoryState,
|
|
192
|
-
} from "@land/store";
|
|
193
|
-
export {
|
|
194
|
-
SnapshotParseError,
|
|
195
|
-
parseDocumentSnapshot,
|
|
196
|
-
parseSessionSnapshot,
|
|
197
|
-
migrateSnapshotRecords,
|
|
198
|
-
} from "./schema/snapshots";
|
|
199
|
-
export type {
|
|
200
|
-
DocumentSnapshot,
|
|
201
|
-
SessionSnapshot,
|
|
202
|
-
SnapshotMigration,
|
|
203
|
-
} from "./schema/snapshots";
|
|
204
|
-
export { ShapeUtil } from "./shapes/ShapeUtil";
|
|
205
|
-
export type {
|
|
206
|
-
ShapeBoundsSnapGeometry,
|
|
207
|
-
ShapeBrushSelectInput,
|
|
208
|
-
ShapeBrushWrapInput,
|
|
209
|
-
ShapeBindingPointInput,
|
|
210
|
-
ShapeEditEndResult,
|
|
211
|
-
ShapeHandleSnapContext,
|
|
212
|
-
ShapeHandleSnapGeometry,
|
|
213
|
-
ShapeLineSegmentHitTestInput,
|
|
214
|
-
ShapeSelectionHandleAnchorInput,
|
|
215
|
-
ShapeSelectionHandleAnchors,
|
|
216
|
-
ShapeSelectionFrameInput,
|
|
217
|
-
ShapeSelectionFlipAxis,
|
|
218
|
-
ShapeSelectionFlipInput,
|
|
219
|
-
ShapeSelectionOverlayInfo,
|
|
220
|
-
ShapeSelectionPagePoints,
|
|
221
|
-
ShapeSelectionPagePointsInput,
|
|
222
|
-
ShapeSelectionResizeAspectRatioLockInput,
|
|
223
|
-
ShapeSelectionResizeInput,
|
|
224
|
-
ShapeSelectionTranslateInput,
|
|
225
|
-
} from "./shapes/ShapeUtil";
|
|
226
|
-
export { SnapManager } from "./editor/managers/SnapManager";
|
|
227
|
-
export type { LaserTrailState } from "./editor/managers/InteractionTransientManager";
|
|
228
|
-
export { SideEffectManager } from "./editor/managers/SideEffectManager";
|
|
229
|
-
export type {
|
|
230
|
-
BeforeDeleteHandler,
|
|
231
|
-
AfterDeleteHandler,
|
|
232
|
-
RecordTypeName,
|
|
233
|
-
} from "./editor/managers/SideEffectManager";
|
|
234
|
-
export type {
|
|
235
|
-
HandleSnapContext,
|
|
236
|
-
HandleSnapInput,
|
|
237
|
-
HandleSnapMode,
|
|
238
|
-
HandleSnapResult,
|
|
239
|
-
HandleSnapSnapshot,
|
|
240
|
-
HandleSnapSnapshotInput,
|
|
241
|
-
ResizeSnapInput,
|
|
242
|
-
ResizeSnapResult,
|
|
243
|
-
ResizeSnapSnapshot,
|
|
244
|
-
SnapAxis,
|
|
245
|
-
SnapCoordinateSpace,
|
|
246
|
-
TranslateSnapInput,
|
|
247
|
-
TranslateSnapResult,
|
|
248
|
-
TranslateSnapSnapshot,
|
|
249
|
-
} from "./editor/managers/snapTypes";
|
|
250
|
-
export { ShapeUtilRegistry } from "./shapes/ShapeUtilRegistry";
|
|
251
|
-
export {
|
|
252
|
-
resolveArrowTerminalBindingAtPoint,
|
|
253
|
-
} from "./bindings/arrow/arrowBindingHelpers";
|
|
254
|
-
export {
|
|
255
|
-
ShapeSvgExporterRegistry,
|
|
256
|
-
exportShapesToSvgString,
|
|
257
|
-
renderSvgNode,
|
|
258
|
-
} from "./exports/svg";
|
|
259
|
-
export type {
|
|
260
|
-
ShapeSvgExporter,
|
|
261
|
-
SvgAttributeValue,
|
|
262
|
-
SvgElementNode,
|
|
263
|
-
SvgExportContext,
|
|
264
|
-
SvgExportOptions,
|
|
265
|
-
SvgExportResult,
|
|
266
|
-
SvgExportSkipReason,
|
|
267
|
-
SvgExportSkippedShape,
|
|
268
|
-
SvgNode,
|
|
269
|
-
} from "./exports/svg";
|
|
270
|
-
export {
|
|
271
|
-
getExportIntegrityReport,
|
|
272
|
-
repairExportIntegrity,
|
|
273
|
-
} from "./exports/integrity";
|
|
274
|
-
export type {
|
|
275
|
-
ExportIntegrityIssue,
|
|
276
|
-
ExportIntegrityIssueKind,
|
|
277
|
-
ExportIntegrityRepairResult,
|
|
278
|
-
ExportIntegrityReport,
|
|
279
|
-
} from "./exports/integrity";
|
|
280
|
-
export { getShapeCapabilityManifest } from "./shapes/capabilities";
|
|
281
|
-
export type {
|
|
282
|
-
ShapeCapabilityDefinition,
|
|
283
|
-
ShapeCapabilityManifest,
|
|
284
|
-
ShapeCapabilityManifestEntry,
|
|
285
|
-
ShapeCapabilitySupport,
|
|
286
|
-
} from "./shapes/capabilities";
|
|
287
|
-
export { BindingUtil } from "./bindings/BindingUtil";
|
|
288
|
-
export type {
|
|
289
|
-
BindingSelectionCompanionFrameContext,
|
|
290
|
-
BindingUtilEffect,
|
|
291
|
-
} from "./bindings/BindingUtil";
|
|
292
|
-
export { BindingUtilRegistry } from "./bindings/BindingUtilRegistry";
|
|
293
|
-
export { StateNode } from "./editor/StateNode";
|
|
294
|
-
export { getEdgeScrollDelta } from "./editor/edgeScroll";
|
|
295
|
-
export { HandTool } from "./tools/hand/HandTool";
|
|
296
|
-
export { SelectTool } from "./tools/select/SelectTool";
|
|
297
|
-
export {
|
|
298
|
-
SET_ACTIVE_TOOL_TOOLBAR_ACTION_ID,
|
|
299
|
-
TOGGLE_TOOL_LOCKED_TOOLBAR_ACTION_ID,
|
|
300
|
-
} from "./toolbar";
|
|
301
|
-
export type {
|
|
302
|
-
ContextMenuBadgeItem,
|
|
303
|
-
ContextMenuCanvasTarget,
|
|
304
|
-
ContextMenuCommandItem,
|
|
305
|
-
ContextMenuContext,
|
|
306
|
-
ContextMenuContribution,
|
|
307
|
-
ContextMenuContributionTarget,
|
|
308
|
-
ContextMenuItem,
|
|
309
|
-
ContextMenuOpenSnapshot,
|
|
310
|
-
ContextMenuSection,
|
|
311
|
-
ContextMenuSelectionTarget,
|
|
312
|
-
ContextMenuSeparatorItem,
|
|
313
|
-
ContextMenuShapeTarget,
|
|
314
|
-
ContextMenuTarget,
|
|
315
|
-
} from "./contextMenu";
|
|
316
|
-
export {
|
|
317
|
-
getEditorOptionsFromCorePlugins,
|
|
318
|
-
setupCorePlugins,
|
|
319
|
-
type LandCorePlugin,
|
|
320
|
-
} from "./plugins";
|
|
321
|
-
export type {
|
|
322
|
-
ToolbarAction,
|
|
323
|
-
ToolbarActionRunInput,
|
|
324
|
-
ToolbarActionValue,
|
|
325
|
-
ToolbarBadgeItem,
|
|
326
|
-
ToolbarButtonItem,
|
|
327
|
-
ToolbarContext,
|
|
328
|
-
ToolbarContribution,
|
|
329
|
-
ToolbarGroup,
|
|
330
|
-
ToolbarItem,
|
|
331
|
-
ToolbarSegmentedItem,
|
|
332
|
-
ToolbarSegmentedOption,
|
|
333
|
-
ToolbarSelectionSnapshot,
|
|
334
|
-
ToolbarSeparatorItem,
|
|
335
|
-
ToolbarStepperItem,
|
|
336
|
-
ToolbarStepperOption,
|
|
337
|
-
ToolbarTextInputItem,
|
|
338
|
-
ToolbarPlacement,
|
|
339
|
-
ToolbarSurface,
|
|
340
|
-
ToolbarSwatchesItem,
|
|
341
|
-
ToolbarSwatchOption,
|
|
342
|
-
ToolbarToolSnapshot,
|
|
343
|
-
} from "./toolbar";
|
|
344
|
-
export {
|
|
345
|
-
DEFAULT_CAMERA,
|
|
346
|
-
DEFAULT_PAGE_ID,
|
|
347
|
-
DEFAULT_SESSION_ID,
|
|
348
|
-
createDefaultPage,
|
|
349
|
-
createDefaultSession,
|
|
350
|
-
isAnyAssetRecord,
|
|
351
|
-
isAnyBindingRecord,
|
|
352
|
-
isAnyShapeRecord,
|
|
353
|
-
isAssetRecord,
|
|
354
|
-
isBindingRecord,
|
|
355
|
-
isDocumentRecord,
|
|
356
|
-
isPageRecord,
|
|
357
|
-
isSessionRecord,
|
|
358
|
-
isShapeRecord,
|
|
359
|
-
type AnyBindingRecord,
|
|
360
|
-
type AnyAssetRecord,
|
|
361
|
-
type AnyShapeRecord,
|
|
362
|
-
type AssetId,
|
|
363
|
-
type AssetRecord,
|
|
364
|
-
type AssetRecordBase,
|
|
365
|
-
type BaseRecord,
|
|
366
|
-
type BindingId,
|
|
367
|
-
type BindingRecordBase,
|
|
368
|
-
type BindingRecord,
|
|
369
|
-
type Camera,
|
|
370
|
-
type DocumentRecord,
|
|
371
|
-
type EditorRecord,
|
|
372
|
-
type PageCameraById,
|
|
373
|
-
type PageId,
|
|
374
|
-
type PageSelectionById,
|
|
375
|
-
type PageRecord,
|
|
376
|
-
type RecordScope,
|
|
377
|
-
type SessionRecord,
|
|
378
|
-
type ShapeId,
|
|
379
|
-
type ShapeParentId,
|
|
380
|
-
type ShapeRecordBase,
|
|
381
|
-
type ShapeRecord,
|
|
382
|
-
type ShapeEditingEntryRequest,
|
|
383
|
-
type ShapeEditingEntryMode,
|
|
384
|
-
type ShapeEditingPoint,
|
|
385
|
-
type ShapeEditingSession,
|
|
386
|
-
} from "./schema/records";
|
|
387
|
-
export { Vec } from "./geometry/Vec";
|
|
388
|
-
export { Box } from "./geometry/Box";
|
|
389
|
-
export { Mat } from "./geometry/Mat";
|
|
390
|
-
export { observeValue } from "./reactivity";
|
|
391
|
-
export type { ReadonlyValue } from "./reactivity";
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { BindingUtil } from "../bindings/BindingUtil";
|
|
2
|
-
import type { Editor } from "../editor/Editor";
|
|
3
|
-
import type { LandInteractionHandler } from "../editor/interactions";
|
|
4
|
-
import type { ShapeSvgExporter } from "../exports/svg";
|
|
5
|
-
import type { ShapeCapabilityDefinition } from "../shapes/capabilities";
|
|
6
|
-
import type { ShapeUtil } from "../shapes/ShapeUtil";
|
|
7
|
-
import type { ToolbarAction, ToolbarContribution } from "../toolbar";
|
|
8
|
-
import type { ContextMenuContribution } from "../contextMenu";
|
|
9
|
-
|
|
10
|
-
export interface LandCorePlugin {
|
|
11
|
-
id: string;
|
|
12
|
-
shapeCapabilities?: ShapeCapabilityDefinition[];
|
|
13
|
-
shapeUtils?: ShapeUtil[];
|
|
14
|
-
shapeSvgExporters?: ShapeSvgExporter[];
|
|
15
|
-
bindingUtils?: BindingUtil[];
|
|
16
|
-
interactionHandlers?: LandInteractionHandler[];
|
|
17
|
-
toolbarActions?: ToolbarAction[];
|
|
18
|
-
toolbarContributions?: ToolbarContribution[];
|
|
19
|
-
contextMenuContributions?: ContextMenuContribution[];
|
|
20
|
-
setup?(editor: Editor): void;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export function getEditorOptionsFromCorePlugins(
|
|
24
|
-
plugins: readonly LandCorePlugin[],
|
|
25
|
-
): {
|
|
26
|
-
shapeUtils: ShapeUtil[];
|
|
27
|
-
shapeSvgExporters: ShapeSvgExporter[];
|
|
28
|
-
bindingUtils: BindingUtil[];
|
|
29
|
-
shapeCapabilities: ShapeCapabilityDefinition[];
|
|
30
|
-
} {
|
|
31
|
-
return {
|
|
32
|
-
shapeUtils: plugins.flatMap((plugin) => plugin.shapeUtils ?? []),
|
|
33
|
-
shapeSvgExporters: plugins.flatMap(
|
|
34
|
-
(plugin) => plugin.shapeSvgExporters ?? [],
|
|
35
|
-
),
|
|
36
|
-
bindingUtils: plugins.flatMap((plugin) => plugin.bindingUtils ?? []),
|
|
37
|
-
shapeCapabilities: plugins.flatMap(
|
|
38
|
-
(plugin) => plugin.shapeCapabilities ?? [],
|
|
39
|
-
),
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function setupCorePlugins(
|
|
44
|
-
editor: Editor,
|
|
45
|
-
plugins: readonly LandCorePlugin[],
|
|
46
|
-
): void {
|
|
47
|
-
for (const plugin of plugins) {
|
|
48
|
-
for (const interactionHandler of plugin.interactionHandlers ?? []) {
|
|
49
|
-
editor.interactions.register(interactionHandler);
|
|
50
|
-
}
|
|
51
|
-
plugin.setup?.(editor);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { effect } from "@land/signals";
|
|
2
|
-
|
|
3
|
-
export interface ReadonlyValue<T> {
|
|
4
|
-
get(): T;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export function observeValue<T>(
|
|
8
|
-
name: string,
|
|
9
|
-
value: ReadonlyValue<T>,
|
|
10
|
-
onChange: () => void,
|
|
11
|
-
): () => void {
|
|
12
|
-
return effect(name, () => {
|
|
13
|
-
value.get();
|
|
14
|
-
onChange();
|
|
15
|
-
});
|
|
16
|
-
}
|
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
export type RecordScope = "document" | "session";
|
|
2
|
-
|
|
3
|
-
export type PageId = `page:${string}`;
|
|
4
|
-
export type ShapeId = `shape:${string}`;
|
|
5
|
-
export type BindingId = `binding:${string}`;
|
|
6
|
-
export type AssetId = `asset:${string}`;
|
|
7
|
-
export type SessionId = "session:main";
|
|
8
|
-
export type ShapeParentId = PageId | ShapeId;
|
|
9
|
-
|
|
10
|
-
export type PageCameraById = Partial<Record<PageId, Camera>>;
|
|
11
|
-
export type PageSelectionById = Partial<Record<PageId, ShapeId[]>>;
|
|
12
|
-
|
|
13
|
-
export interface ShapeEditingPoint {
|
|
14
|
-
x: number;
|
|
15
|
-
y: number;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export type ShapeEditingEntryMode = "selectAll" | "placeCaret" | "focusEnd";
|
|
19
|
-
|
|
20
|
-
export interface ShapeEditingEntryRequest {
|
|
21
|
-
id: number;
|
|
22
|
-
shapeId: ShapeId;
|
|
23
|
-
entryMode: ShapeEditingEntryMode;
|
|
24
|
-
caretPagePoint?: ShapeEditingPoint;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface ShapeEditingSession {
|
|
28
|
-
shapeId: ShapeId;
|
|
29
|
-
markId: string;
|
|
30
|
-
entryMode: ShapeEditingEntryMode;
|
|
31
|
-
caretPagePoint?: ShapeEditingPoint;
|
|
32
|
-
isComposing: boolean;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface Camera {
|
|
36
|
-
x: number;
|
|
37
|
-
y: number;
|
|
38
|
-
z: number;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export interface BaseRecord {
|
|
42
|
-
id: string;
|
|
43
|
-
typeName: string;
|
|
44
|
-
scope: RecordScope;
|
|
45
|
-
meta: Record<string, unknown>;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export interface PageRecord extends BaseRecord {
|
|
49
|
-
id: PageId;
|
|
50
|
-
typeName: "page";
|
|
51
|
-
scope: "document";
|
|
52
|
-
name: string;
|
|
53
|
-
index: string;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface ShapeRecordBase<
|
|
57
|
-
Type extends string = string,
|
|
58
|
-
Props extends object = object,
|
|
59
|
-
> extends BaseRecord {
|
|
60
|
-
id: ShapeId;
|
|
61
|
-
typeName: "shape";
|
|
62
|
-
scope: "document";
|
|
63
|
-
type: Type;
|
|
64
|
-
parentId: ShapeParentId;
|
|
65
|
-
index: string;
|
|
66
|
-
x: number;
|
|
67
|
-
y: number;
|
|
68
|
-
rotation: number;
|
|
69
|
-
scaleX: number;
|
|
70
|
-
scaleY: number;
|
|
71
|
-
opacity: number;
|
|
72
|
-
isHidden: boolean;
|
|
73
|
-
isLocked: boolean;
|
|
74
|
-
props: Props;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export interface BindingRecordBase<
|
|
78
|
-
Type extends string = string,
|
|
79
|
-
Props extends object = object,
|
|
80
|
-
> extends BaseRecord {
|
|
81
|
-
id: BindingId;
|
|
82
|
-
typeName: "binding";
|
|
83
|
-
scope: "document";
|
|
84
|
-
type: Type;
|
|
85
|
-
fromId: ShapeId;
|
|
86
|
-
toId: ShapeId;
|
|
87
|
-
props: Props;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export interface AssetRecordBase<
|
|
91
|
-
Type extends string = string,
|
|
92
|
-
Props extends object = object,
|
|
93
|
-
> extends BaseRecord {
|
|
94
|
-
id: AssetId;
|
|
95
|
-
typeName: "asset";
|
|
96
|
-
scope: "document";
|
|
97
|
-
type: Type;
|
|
98
|
-
props: Props;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export type ShapeRecord = ShapeRecordBase<string, object>;
|
|
102
|
-
export type BindingRecord = BindingRecordBase<string, object>;
|
|
103
|
-
export type AssetRecord = AssetRecordBase<string, object>;
|
|
104
|
-
export type AnyShapeRecord = ShapeRecord;
|
|
105
|
-
export type AnyBindingRecord = BindingRecord;
|
|
106
|
-
export type AnyAssetRecord = AssetRecord;
|
|
107
|
-
|
|
108
|
-
export interface SessionRecord extends BaseRecord {
|
|
109
|
-
id: SessionId;
|
|
110
|
-
typeName: "session";
|
|
111
|
-
scope: "session";
|
|
112
|
-
currentPageId: PageId;
|
|
113
|
-
activeToolId: string;
|
|
114
|
-
isToolLocked: boolean;
|
|
115
|
-
editingShapeId: ShapeId | null;
|
|
116
|
-
shapeEditingSession: ShapeEditingSession | null;
|
|
117
|
-
pageCameraById: PageCameraById;
|
|
118
|
-
pageSelectedShapeIdsById: PageSelectionById;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export type DocumentRecord =
|
|
122
|
-
| PageRecord
|
|
123
|
-
| AnyShapeRecord
|
|
124
|
-
| AnyBindingRecord
|
|
125
|
-
| AnyAssetRecord;
|
|
126
|
-
export type EditorRecord = DocumentRecord | SessionRecord;
|
|
127
|
-
|
|
128
|
-
export const DEFAULT_PAGE_ID: PageId = "page:default";
|
|
129
|
-
export const DEFAULT_SESSION_ID: SessionId = "session:main";
|
|
130
|
-
export const DEFAULT_CAMERA: Camera = {
|
|
131
|
-
x: 0,
|
|
132
|
-
y: 0,
|
|
133
|
-
z: 1,
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
export function createDefaultPage(): PageRecord {
|
|
137
|
-
return {
|
|
138
|
-
id: DEFAULT_PAGE_ID,
|
|
139
|
-
typeName: "page",
|
|
140
|
-
scope: "document",
|
|
141
|
-
name: "Page 1",
|
|
142
|
-
index: "0001",
|
|
143
|
-
meta: {},
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export function createDefaultSession(
|
|
148
|
-
currentPageId: PageId = DEFAULT_PAGE_ID,
|
|
149
|
-
): SessionRecord {
|
|
150
|
-
return {
|
|
151
|
-
id: DEFAULT_SESSION_ID,
|
|
152
|
-
typeName: "session",
|
|
153
|
-
scope: "session",
|
|
154
|
-
currentPageId,
|
|
155
|
-
activeToolId: "select",
|
|
156
|
-
isToolLocked: false,
|
|
157
|
-
editingShapeId: null,
|
|
158
|
-
shapeEditingSession: null,
|
|
159
|
-
pageCameraById: {
|
|
160
|
-
[currentPageId]: { ...DEFAULT_CAMERA },
|
|
161
|
-
},
|
|
162
|
-
pageSelectedShapeIdsById: {
|
|
163
|
-
[currentPageId]: [],
|
|
164
|
-
},
|
|
165
|
-
meta: {},
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export function isPageRecord(
|
|
170
|
-
record: BaseRecord | null | undefined,
|
|
171
|
-
): record is PageRecord {
|
|
172
|
-
return !!record && record.typeName === "page";
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
export function isShapeRecord(
|
|
176
|
-
record: BaseRecord | null | undefined,
|
|
177
|
-
): record is ShapeRecord {
|
|
178
|
-
return !!record && record.typeName === "shape";
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
export function isAnyShapeRecord(
|
|
182
|
-
record: BaseRecord | null | undefined,
|
|
183
|
-
): record is AnyShapeRecord {
|
|
184
|
-
return !!record && record.typeName === "shape";
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export function isSessionRecord(
|
|
188
|
-
record: BaseRecord | null | undefined,
|
|
189
|
-
): record is SessionRecord {
|
|
190
|
-
return !!record && record.typeName === "session";
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
export function isBindingRecord(
|
|
194
|
-
record: BaseRecord | null | undefined,
|
|
195
|
-
): record is BindingRecord {
|
|
196
|
-
return !!record && record.typeName === "binding";
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
export function isAnyBindingRecord(
|
|
200
|
-
record: BaseRecord | null | undefined,
|
|
201
|
-
): record is AnyBindingRecord {
|
|
202
|
-
return !!record && record.typeName === "binding";
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
export function isAssetRecord(
|
|
206
|
-
record: BaseRecord | null | undefined,
|
|
207
|
-
): record is AssetRecord {
|
|
208
|
-
return !!record && record.typeName === "asset";
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export function isAnyAssetRecord(
|
|
212
|
-
record: BaseRecord | null | undefined,
|
|
213
|
-
): record is AnyAssetRecord {
|
|
214
|
-
return !!record && record.typeName === "asset";
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
export function isDocumentRecord(
|
|
218
|
-
record: EditorRecord,
|
|
219
|
-
): record is DocumentRecord {
|
|
220
|
-
return record.scope === "document";
|
|
221
|
-
}
|