@yuzhouu/canvas-kit 0.1.9 → 0.1.11
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 +204 -101
- package/_vendor/canvas-core/bindings/bindingUtil.d.ts +23 -0
- package/_vendor/canvas-core/bindings/terminalPorts.d.ts +67 -0
- package/_vendor/canvas-core/editor/bindingReactionScope.d.ts +7 -0
- package/_vendor/canvas-core/editor/cameraPanSession.d.ts +9 -0
- package/_vendor/canvas-core/editor/canvasPanInteraction.d.ts +2 -0
- package/_vendor/canvas-core/editor/commands.d.ts +16 -4
- package/_vendor/canvas-core/editor/createEditorWithPlugins.d.ts +6 -0
- package/_vendor/canvas-core/editor/editor.d.ts +44 -31
- package/_vendor/canvas-core/editor/editorComputedHelpers.d.ts +5 -2
- package/_vendor/canvas-core/editor/historyManager.d.ts +24 -6
- package/_vendor/canvas-core/editor/index.d.ts +2 -2
- package/_vendor/canvas-core/editor/interactions.d.ts +41 -8
- package/_vendor/canvas-core/editor/managers/bindingManager.d.ts +2 -6
- package/_vendor/canvas-core/editor/managers/inputsManager.d.ts +3 -0
- package/_vendor/canvas-core/editor/managers/interactionTransientManager.d.ts +0 -26
- package/_vendor/canvas-core/editor/managers/queryManager.d.ts +26 -1
- package/_vendor/canvas-core/editor/managers/selectionLayoutManager.d.ts +5 -0
- package/_vendor/canvas-core/editor/managers/selectionOverlayManager.d.ts +1 -0
- package/_vendor/canvas-core/editor/managers/shapeEditingManager.d.ts +4 -0
- package/_vendor/canvas-core/editor/managers/shapeGeometryManager.d.ts +3 -2
- package/_vendor/canvas-core/editor/managers/shapeHierarchyManager.d.ts +7 -2
- package/_vendor/canvas-core/editor/managers/shapeReparenting.d.ts +3 -2
- package/_vendor/canvas-core/editor/managers/snapCalculations.d.ts +4 -1
- package/_vendor/canvas-core/editor/managers/snapGeometry.d.ts +2 -1
- package/_vendor/canvas-core/editor/managers/snapTypes.d.ts +1 -0
- package/_vendor/canvas-core/editor/managers/spatialIndexManager.d.ts +1 -0
- package/_vendor/canvas-core/editor/operationManager.d.ts +74 -0
- package/_vendor/canvas-core/editor/queries/shapeTransforms.d.ts +32 -12
- package/_vendor/canvas-core/editor/selection.d.ts +19 -5
- package/_vendor/canvas-core/editor/selectionOverlay.d.ts +7 -4
- package/_vendor/canvas-core/editor/selectionResizeCapabilities.d.ts +9 -0
- package/_vendor/canvas-core/editor/shapeTransformSpace.d.ts +6 -0
- package/_vendor/canvas-core/exports/svg.d.ts +3 -3
- package/_vendor/canvas-core/geometry/contentCutout.d.ts +8 -0
- package/_vendor/canvas-core/geometry/index.d.ts +1 -0
- package/_vendor/canvas-core/geometry/mat.d.ts +6 -2
- package/_vendor/canvas-core/geometry/polygon.d.ts +7 -0
- package/_vendor/canvas-core/geometry/vec.d.ts +0 -2
- package/_vendor/canvas-core/index.d.ts +21 -23
- package/_vendor/canvas-core/plugins/editorRuntimePlugin.d.ts +4 -10
- package/_vendor/canvas-core/plugins/editorRuntimeRegistry.d.ts +19 -0
- package/_vendor/canvas-core/plugins/index.d.ts +2 -1
- package/_vendor/canvas-core/schema/records.d.ts +2 -7
- package/_vendor/canvas-core/schema/snapshots.d.ts +10 -19
- package/_vendor/canvas-core/shapes/colors.d.ts +3 -3
- package/_vendor/canvas-core/shapes/shapeUtil.d.ts +97 -13
- package/_vendor/canvas-core/tools/select/selectToolHelpers.d.ts +18 -8
- package/_vendor/canvas-core/tools/select/states/draggingPluginInteractionState.d.ts +16 -0
- package/_vendor/canvas-core/tools/select/states/index.d.ts +1 -1
- package/_vendor/canvas-core/tools/select/states/pointingSelectionHandleInteractionState.d.ts +3 -2
- package/_vendor/canvas-core/tools/select/states/pointingShapeState.d.ts +1 -1
- package/_vendor/canvas-core/tools/select/states/resizingState.d.ts +1 -1
- package/_vendor/canvas-core/tools/select/states/rotatingState.d.ts +1 -1
- package/_vendor/canvas-core/tools/select/states/selectStateNode.d.ts +6 -2
- package/_vendor/canvas-core/tools/select/states/translatingState.d.ts +1 -1
- package/_vendor/canvas-plugin-sdk/actionRegistry.d.ts +7 -0
- package/_vendor/{canvas-core/surfaces → canvas-plugin-sdk}/actions.d.ts +21 -6
- package/_vendor/canvas-plugin-sdk/capability.d.ts +16 -0
- package/_vendor/canvas-plugin-sdk/chrome.d.ts +52 -0
- package/_vendor/canvas-plugin-sdk/chromeRegistry.d.ts +15 -0
- package/_vendor/{canvas-core/surfaces → canvas-plugin-sdk}/contextMenu.d.ts +25 -30
- package/_vendor/canvas-plugin-sdk/contextMenuRegistry.d.ts +11 -0
- package/_vendor/canvas-plugin-sdk/exportRegistry.d.ts +9 -0
- package/_vendor/canvas-plugin-sdk/exports.d.ts +26 -0
- package/_vendor/canvas-plugin-sdk/importRegistry.d.ts +10 -0
- package/_vendor/canvas-plugin-sdk/imports.d.ts +38 -0
- package/_vendor/canvas-plugin-sdk/index.d.ts +18 -0
- package/_vendor/canvas-plugin-sdk/lifecycle.d.ts +31 -0
- package/_vendor/canvas-plugin-sdk/plugin.d.ts +76 -0
- package/_vendor/canvas-plugin-sdk/pluginUi.d.ts +37 -0
- package/_vendor/canvas-plugin-sdk/productApi.d.ts +28 -0
- package/_vendor/canvas-plugin-sdk/services.d.ts +20 -0
- package/_vendor/{canvas-core/surfaces → canvas-plugin-sdk}/toolbar.d.ts +48 -5
- package/_vendor/canvas-plugin-sdk/toolbarRegistry.d.ts +18 -0
- package/_vendor/canvas-react/components/CanvasView.d.ts +2 -2
- package/_vendor/canvas-react/components/canvasKeyboardEvents.d.ts +13 -0
- package/_vendor/canvas-react/components/useCanvasDomEvents.d.ts +4 -3
- package/_vendor/canvas-react/contextMenuRequest.d.ts +19 -0
- package/_vendor/canvas-react/host/canvasRenderPlugin.d.ts +22 -5
- package/_vendor/canvas-react/host/canvasRenderRuntime.d.ts +13 -0
- package/_vendor/canvas-react/host/domEventGuards.d.ts +3 -3
- package/_vendor/canvas-react/host/index.d.ts +3 -9
- package/_vendor/canvas-react/host/overlayRegistry.d.ts +3 -3
- package/_vendor/canvas-react/host/rendererRegistry.d.ts +7 -4
- package/_vendor/canvas-react/index.d.ts +1 -0
- package/_vendor/plugin-arrow/api.d.ts +33 -0
- package/_vendor/plugin-arrow/arrowGeometry.d.ts +7 -4
- package/_vendor/plugin-arrow/arrowHeadGeometry.d.ts +8 -0
- package/_vendor/plugin-arrow/arrowShapeUtil.d.ts +7 -4
- package/_vendor/plugin-arrow/arrowTerminalCommands.d.ts +2 -2
- package/_vendor/plugin-arrow/canvasRender.d.ts +2 -2
- package/_vendor/plugin-arrow/editorRuntime.d.ts +2 -2
- package/_vendor/plugin-arrow/feature.d.ts +2 -3
- package/_vendor/plugin-arrow/index.d.ts +5 -2
- package/_vendor/plugin-arrow/productRuntime.d.ts +2 -0
- package/_vendor/plugin-builtin-clipboard/clipboardChromeContributions.d.ts +2 -0
- package/{features/clipboard → _vendor/plugin-builtin-clipboard}/clipboardContextMenuContributions.d.ts +1 -1
- package/{features/clipboard → _vendor/plugin-builtin-clipboard}/clipboardContribution.d.ts +2 -2
- package/{features/clipboard → _vendor/plugin-builtin-clipboard}/clipboardService.d.ts +3 -3
- package/_vendor/plugin-builtin-clipboard/index.d.ts +3 -0
- package/_vendor/plugin-builtin-clipboard/plugin.d.ts +1 -0
- package/_vendor/plugin-builtin-export/blobDataUrl.d.ts +1 -0
- package/_vendor/plugin-builtin-export/canvasExportApi.d.ts +43 -0
- package/_vendor/plugin-builtin-export/index.d.ts +8 -0
- package/_vendor/plugin-builtin-export/plugin.d.ts +5 -0
- package/_vendor/plugin-builtin-export/pngExport.d.ts +15 -0
- package/{features/export → _vendor/plugin-builtin-export}/svgExport.d.ts +9 -2
- package/_vendor/plugin-builtin-import-host/CanvasImportHost.d.ts +3 -0
- package/_vendor/plugin-builtin-import-host/capability.d.ts +1 -0
- package/_vendor/plugin-builtin-import-host/index.d.ts +2 -0
- package/_vendor/plugin-builtin-import-host/plugin.d.ts +1 -0
- package/_vendor/plugin-builtin-tool-actions/capability.d.ts +1 -0
- package/_vendor/plugin-builtin-tool-actions/index.d.ts +2 -0
- package/_vendor/plugin-builtin-tool-actions/plugin.d.ts +1 -0
- package/_vendor/plugin-builtin-tool-actions/toolActions.d.ts +2 -0
- package/_vendor/plugin-connector/canvasRender.d.ts +2 -0
- package/_vendor/plugin-connector/connectorBindingUtil.d.ts +28 -0
- package/_vendor/plugin-connector/connectorBindings.d.ts +8 -0
- package/_vendor/plugin-connector/connectorGeometry.d.ts +70 -0
- package/_vendor/plugin-connector/connectorHandles.d.ts +12 -0
- package/_vendor/plugin-connector/connectorInteractions.d.ts +3 -0
- package/_vendor/plugin-connector/connectorMarker.d.ts +7 -0
- package/_vendor/plugin-connector/connectorModel.d.ts +43 -0
- package/_vendor/plugin-connector/connectorPortInteraction.d.ts +13 -0
- package/_vendor/plugin-connector/connectorPorts.d.ts +23 -0
- package/_vendor/plugin-connector/connectorRuntime.d.ts +62 -0
- package/_vendor/plugin-connector/connectorShapeUtil.d.ts +29 -0
- package/_vendor/plugin-connector/connectorTool.d.ts +4 -0
- package/_vendor/plugin-connector/constants.d.ts +17 -0
- package/_vendor/plugin-connector/editorRuntime.d.ts +7 -0
- package/_vendor/plugin-connector/feature.d.ts +4 -0
- package/_vendor/plugin-connector/index.d.ts +18 -0
- package/_vendor/plugin-connector/orthogonalRoute.d.ts +9 -0
- package/_vendor/plugin-connector/productRuntime.d.ts +2 -0
- package/_vendor/plugin-connector/quickConnect.d.ts +28 -0
- package/_vendor/plugin-connector/types.d.ts +51 -0
- package/_vendor/plugin-draw/DrawShapeRenderer.d.ts +5 -2
- package/_vendor/plugin-draw/canvasRender.d.ts +2 -2
- package/_vendor/plugin-draw/drawGeometry.d.ts +4 -7
- package/_vendor/plugin-draw/drawPath.d.ts +7 -1
- package/_vendor/plugin-draw/drawShapeUtil.d.ts +2 -2
- package/_vendor/plugin-draw/editorRuntime.d.ts +3 -3
- package/_vendor/plugin-draw/feature.d.ts +2 -3
- package/_vendor/plugin-draw/index.d.ts +4 -3
- package/_vendor/plugin-draw/productRuntime.d.ts +2 -0
- package/_vendor/plugin-eraser/canvasRender.d.ts +2 -2
- package/_vendor/plugin-eraser/editorRuntime.d.ts +2 -2
- package/_vendor/plugin-eraser/eraserRuntime.d.ts +12 -0
- package/_vendor/plugin-eraser/feature.d.ts +2 -3
- package/_vendor/plugin-eraser/index.d.ts +4 -2
- package/_vendor/plugin-eraser/productRuntime.d.ts +2 -0
- package/_vendor/plugin-frame/api.d.ts +19 -0
- package/_vendor/plugin-frame/canvasRender.d.ts +5 -5
- package/_vendor/plugin-frame/editorRuntime.d.ts +2 -2
- package/_vendor/plugin-frame/feature.d.ts +2 -3
- package/_vendor/plugin-frame/frameShapeUtil.d.ts +12 -2
- package/_vendor/plugin-frame/index.d.ts +5 -2
- package/_vendor/plugin-frame/productRuntime.d.ts +2 -0
- package/_vendor/plugin-geo/api.d.ts +27 -0
- package/_vendor/plugin-geo/canvasRender.d.ts +5 -5
- package/_vendor/plugin-geo/editorRuntime.d.ts +3 -3
- package/_vendor/plugin-geo/feature.d.ts +2 -3
- package/_vendor/plugin-geo/geoShapeUtil.d.ts +1 -1
- package/_vendor/plugin-geo/geoStrokeStyle.d.ts +2 -0
- package/_vendor/plugin-geo/geoTools.d.ts +1 -1
- package/_vendor/plugin-geo/index.d.ts +8 -5
- package/_vendor/plugin-geo/productRuntime.d.ts +2 -0
- package/_vendor/plugin-geo/types.d.ts +5 -1
- package/_vendor/plugin-group/canvasRender.d.ts +3 -4
- package/_vendor/plugin-group/editorRuntime.d.ts +2 -2
- package/_vendor/plugin-group/feature.d.ts +2 -3
- package/_vendor/plugin-group/groupContributions.d.ts +7 -0
- package/_vendor/plugin-group/groupShapeUtil.d.ts +24 -5
- package/_vendor/plugin-group/index.d.ts +4 -2
- package/_vendor/plugin-group/productRuntime.d.ts +2 -0
- package/_vendor/plugin-image/canvasRender.d.ts +2 -2
- package/_vendor/plugin-image/cropRuntime.d.ts +1 -1
- package/_vendor/plugin-image/cropSession.d.ts +5 -3
- package/_vendor/plugin-image/editorRuntime.d.ts +2 -4
- package/_vendor/plugin-image/feature.d.ts +2 -3
- package/_vendor/plugin-image/imageHostActionContract.d.ts +1 -1
- package/_vendor/plugin-image/imageShapeUtil.d.ts +3 -3
- package/_vendor/plugin-image/index.d.ts +5 -4
- package/_vendor/plugin-image/productRuntime.d.ts +4 -0
- package/_vendor/plugin-image/runtimeShared.d.ts +1 -1
- package/_vendor/plugin-image/smudge.d.ts +6 -2
- package/_vendor/plugin-image/smudgeRuntime.d.ts +1 -1
- package/_vendor/plugin-image/styleRuntime.d.ts +6 -1
- package/_vendor/plugin-image/toolbarRuntime.d.ts +1 -1
- package/_vendor/plugin-laser/canvasRender.d.ts +2 -2
- package/_vendor/plugin-laser/editorRuntime.d.ts +2 -2
- package/_vendor/plugin-laser/feature.d.ts +2 -3
- package/_vendor/plugin-laser/index.d.ts +4 -2
- package/_vendor/plugin-laser/laserRuntime.d.ts +18 -0
- package/_vendor/plugin-laser/productRuntime.d.ts +2 -0
- package/_vendor/plugin-packaging/api.d.ts +74 -0
- package/_vendor/plugin-packaging/canvasRender.d.ts +2 -0
- package/_vendor/plugin-packaging/editorRuntime.d.ts +2 -0
- package/_vendor/plugin-packaging/feature.d.ts +2 -0
- package/_vendor/plugin-packaging/index.d.ts +19 -0
- package/_vendor/plugin-packaging/packagingArtwork.d.ts +5 -0
- package/_vendor/plugin-packaging/packagingDxf.d.ts +9 -0
- package/_vendor/plugin-packaging/packagingGeometry.d.ts +74 -0
- package/_vendor/plugin-packaging/packagingInteractions.d.ts +2 -0
- package/_vendor/plugin-packaging/packagingPdfExporter.d.ts +25 -0
- package/_vendor/plugin-packaging/packagingRuntime.d.ts +11 -0
- package/_vendor/plugin-packaging/packagingShapeUtil.d.ts +34 -0
- package/_vendor/plugin-packaging/packagingStyle.d.ts +10 -0
- package/_vendor/plugin-packaging/packagingSvgExporter.d.ts +7 -0
- package/_vendor/plugin-packaging/productRuntime.d.ts +2 -0
- package/_vendor/plugin-packaging/types.d.ts +168 -0
- package/_vendor/plugin-packaging/validation.d.ts +3 -0
- package/_vendor/plugin-path/PathDraftOverlay.d.ts +1 -0
- package/_vendor/plugin-path/PathEditInsertPreviewOverlay.d.ts +1 -0
- package/_vendor/plugin-path/PathShapeRenderer.d.ts +15 -0
- package/_vendor/plugin-path/canvasRender.d.ts +2 -0
- package/_vendor/plugin-path/editorRuntime.d.ts +7 -0
- package/_vendor/plugin-path/feature.d.ts +2 -0
- package/_vendor/plugin-path/index.d.ts +8 -0
- package/_vendor/plugin-path/pathBoolean.d.ts +13 -0
- package/_vendor/plugin-path/pathDraft.d.ts +10 -0
- package/_vendor/plugin-path/pathEditPreview.d.ts +11 -0
- package/_vendor/plugin-path/pathEditSelection.d.ts +24 -0
- package/_vendor/plugin-path/pathEditSnap.d.ts +6 -0
- package/_vendor/plugin-path/pathGeometry.d.ts +74 -0
- package/_vendor/plugin-path/pathHandles.d.ts +18 -0
- package/_vendor/plugin-path/pathHistory.d.ts +13 -0
- package/_vendor/plugin-path/pathInteractions.d.ts +7 -0
- package/_vendor/plugin-path/pathShapeUtil.d.ts +30 -0
- package/_vendor/plugin-path/pathSvg.d.ts +3 -0
- package/_vendor/plugin-path/pathTool.d.ts +42 -0
- package/_vendor/plugin-path/productRuntime.d.ts +15 -0
- package/_vendor/plugin-path/types.d.ts +36 -0
- package/_vendor/plugin-text/api.d.ts +20 -0
- package/_vendor/plugin-text/canvasRender.d.ts +6 -3
- package/_vendor/plugin-text/capabilities.d.ts +2 -0
- package/_vendor/plugin-text/editorRuntime.d.ts +3 -3
- package/_vendor/plugin-text/feature.d.ts +4 -4
- package/_vendor/plugin-text/geoLabelBindingUtil.d.ts +6 -3
- package/_vendor/plugin-text/host/RichTextEditingBox.d.ts +4 -1
- package/_vendor/plugin-text/host/TiptapTextEditor.d.ts +6 -3
- package/_vendor/plugin-text/host/initialTextBackground.d.ts +2 -0
- package/_vendor/plugin-text/host/richTextRendering.d.ts +1 -2
- package/_vendor/plugin-text/host/textEditingBoxStyle.d.ts +1 -1
- package/_vendor/plugin-text/host/textEntryFocus.d.ts +2 -1
- package/_vendor/plugin-text/host/textFormattingApi.d.ts +16 -0
- package/_vendor/plugin-text/host/textMeasurement.d.ts +10 -2
- package/_vendor/plugin-text/host/textShapeRendererRuntime.d.ts +3 -1
- package/_vendor/plugin-text/host/tiptapTextEditorController.d.ts +4 -1
- package/_vendor/plugin-text/index.d.ts +11 -4
- package/_vendor/plugin-text/pathLabelBindingUtil.d.ts +55 -0
- package/_vendor/plugin-text/productRuntime.d.ts +6 -0
- package/_vendor/plugin-text/richTextUtils.d.ts +9 -2
- package/_vendor/plugin-text/shapeWideTextFormatting.d.ts +12 -0
- package/_vendor/plugin-text/textFonts.d.ts +6 -3
- package/_vendor/plugin-text/textFormatting.d.ts +47 -0
- package/_vendor/plugin-text/textFormattingSession.d.ts +6 -0
- package/_vendor/plugin-text/textLabelHelpers.d.ts +32 -6
- package/_vendor/plugin-text/textLinkPopoverPresentation.d.ts +18 -0
- package/_vendor/plugin-text/textShapeHelpers.d.ts +1 -0
- package/_vendor/plugin-text/textShapeUtil.d.ts +9 -5
- package/_vendor/plugin-text/textTypes.d.ts +1 -0
- package/_vendor/signals/core.d.ts +1 -0
- package/_vendor/signals/effect.d.ts +0 -4
- package/_vendor/signals/index.d.ts +2 -2
- package/_vendor/store/history.d.ts +1 -1
- package/_vendor/store/store.d.ts +6 -0
- package/browser/indexedDb.d.ts +10 -10
- package/browser/persistence.d.ts +6 -38
- package/chrome/floating/CanvasKitFloatingPortal.d.ts +6 -0
- package/chrome/floating/useCanvasKitFloatingPosition.d.ts +11 -0
- package/chrome/toolbar/CanvasKitFloatingToolbarLayer.d.ts +1 -1
- package/chrome/toolbar/FloatingSelectionToolbarPageSpace.d.ts +5 -3
- package/chrome/toolbar/toolbarLabels.d.ts +1 -1
- package/chrome/toolbar/useToolbarSurfaces.d.ts +11 -16
- package/chrome/types.d.ts +15 -17
- package/chrome/useCanvasKitChromeContext.d.ts +12 -15
- package/chrome/useChromeSurfaces.d.ts +12 -0
- package/chrome/useContextMenuSurface.d.ts +4 -4
- package/chrome/useHistoryControls.d.ts +3 -3
- package/chrome/usePageControls.d.ts +3 -3
- package/controller/canvasKitController.d.ts +5 -16
- package/core/index.d.ts +4 -6
- package/core/product-controller/canvasProductController.d.ts +42 -12
- package/core/product-controller/index.d.ts +1 -1
- package/core/runtime/productAssets.d.ts +4 -2
- package/core/runtime/productEditor.d.ts +1 -1
- package/core/runtime/productServices.d.ts +11 -21
- package/core/runtime/runtimeContracts.d.ts +17 -0
- package/es-DocrZgUh.mjs +2 -0
- package/features/context-menu/contextMenuRuntime.d.ts +4 -4
- package/features/image/asset/imageAssetService.d.ts +2 -3
- package/features/image/asset/imageBlobStore.d.ts +7 -2
- package/features/image/asset/imageFileHelpers.d.ts +0 -6
- package/features/image/asset/svgImageAssetInliner.d.ts +1 -1
- package/features/image/controller/imageProductController.d.ts +2 -2
- package/features/image/imageHostPlugin.d.ts +1 -0
- package/features/image/import/ImageImportController.d.ts +3 -1
- package/features/image/index.d.ts +1 -3
- package/features/image/smudge/imageSmudgeHostActions.d.ts +2 -2
- package/features/image/toolbar/imageHostActions.d.ts +17 -7
- package/features/image/toolbar/imageToolbarHostBridge.d.ts +1 -1
- package/features/text/link/TextLinkHoverPopover.d.ts +6 -0
- package/features/text/textHostPlugin.d.ts +5 -0
- package/features/text/textSvgAssetInliner.d.ts +3 -0
- package/features/text/textSvgAssetPlugin.d.ts +2 -0
- package/index.css +1 -1
- package/index.d.ts +36 -12
- package/index.mjs +111 -96
- package/package.json +12 -9
- package/plugins/standardCanvasKitPlugins.d.ts +16 -0
- package/react/CanvasKitRoot.d.ts +10 -5
- package/react/useCanvasKitControllerLifecycle.d.ts +8 -0
- package/react/useCanvasKitRuntime.d.ts +2 -4
- package/runtime/canvasKitCommandExecutor.d.ts +13 -0
- package/runtime/canvasKitPluginContracts.d.ts +34 -0
- package/runtime/canvasKitPluginSetup.d.ts +32 -0
- package/runtime/canvasKitResourceScope.d.ts +5 -0
- package/runtime/canvasKitRuntime.d.ts +48 -19
- package/runtime/canvasKitRuntimeContracts.d.ts +34 -0
- package/runtime/persistenceCoordinator.d.ts +33 -0
- package/_vendor/canvas-core/editor/createEditorWithRuntimePlugins.d.ts +0 -6
- package/_vendor/canvas-core/editor/middleMousePanInteraction.d.ts +0 -2
- package/_vendor/canvas-core/schema/snapshotSupport.d.ts +0 -43
- package/_vendor/canvas-core/tools/select/states/draggingSelectionHandleInteractionState.d.ts +0 -15
- package/_vendor/canvas-react/host/actionRegistry.d.ts +0 -15
- package/_vendor/canvas-react/host/canvasRenderPluginHost.d.ts +0 -2
- package/_vendor/canvas-react/host/canvasRenderPluginHostManifest.d.ts +0 -2
- package/_vendor/canvas-react/host/canvasRenderPluginHostRuntime.d.ts +0 -3
- package/_vendor/canvas-react/host/canvasRenderPluginHostTypes.d.ts +0 -104
- package/_vendor/canvas-react/host/canvasRenderPluginHostValidation.d.ts +0 -11
- package/_vendor/canvas-react/host/contextMenuRegistry.d.ts +0 -17
- package/_vendor/canvas-react/host/extension.d.ts +0 -37
- package/_vendor/canvas-react/host/toolbarRegistry.d.ts +0 -20
- package/_vendor/plugin-text/arrowLabelBindingUtil.d.ts +0 -42
- package/_vendor/plugin-text/host/RichTextLinkPopover.d.ts +0 -14
- package/_vendor/plugin-text/host/RichTextToolbar.d.ts +0 -8
- package/_vendor/plugin-text/host/richTextBubbleMenuPositionSync.d.ts +0 -7
- package/browser/localSnapshotRestore.d.ts +0 -13
- package/builtins/controller/createBuiltInCanvasController.d.ts +0 -16
- package/builtins/controller/layerController.d.ts +0 -9
- package/builtins/controller/shapeCreationController.d.ts +0 -83
- package/builtins/extensions.d.ts +0 -18
- package/builtins/index.d.ts +0 -5
- package/chrome/useSvgExport.d.ts +0 -15
- package/core/api/apiRegistry.d.ts +0 -12
- package/core/runtime/productDefinition.d.ts +0 -33
- package/core/runtime/productHost.d.ts +0 -20
- package/features/actions/actionRuntime.d.ts +0 -21
- package/features/clipboard/clipboardHostExtension.d.ts +0 -2
- package/features/image/imageHostExtension.d.ts +0 -10
- package/features/image/import/useImageImport.d.ts +0 -16
- package/features/keyboard/keyboardShortcutHostExtension.d.ts +0 -2
- package/features/keyboard/useCanvasKitKeyboardShortcuts.d.ts +0 -6
- package/features/persistence/CanvasKitPersistenceNotice.d.ts +0 -4
- package/features/persistence/persistenceHostExtension.d.ts +0 -2
- package/features/selection/selectionActions.d.ts +0 -20
- package/features/selection/selectionContextMenuContributions.d.ts +0 -2
- package/features/selection/selectionHostExtension.d.ts +0 -2
- package/features/selection/selectionToolbarContributions.d.ts +0 -2
- package/features/tool/toolActions.d.ts +0 -2
- package/features/tool/toolContextMenuContributions.d.ts +0 -2
- package/features/tool/toolHostExtension.d.ts +0 -2
- package/features/tool/toolToolbarContributions.d.ts +0 -2
- package/features/view/viewActions.d.ts +0 -5
- package/features/view/viewContextMenuContributions.d.ts +0 -2
- package/features/view/viewHostExtension.d.ts +0 -2
- package/host/defaultHostExtensions.d.ts +0 -2
- package/product/canvasKitProduct.d.ts +0 -51
- package/react/useCanvasKitController.d.ts +0 -5
- package/react/useCanvasKitStartup.d.ts +0 -9
- package/runtime/canvasKitHostContracts.d.ts +0 -135
- package/runtime/canvasKitHostFeatureHooks.d.ts +0 -12
- package/runtime/canvasKitRuntimePlan.d.ts +0 -50
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type {
|
|
1
|
+
import { type CanvasActionValue, type CanvasActionRegistry, type ContextMenuContext, type ContextMenuContributionTarget, type ContextMenuTarget } from "../../_vendor/canvas-plugin-sdk/index";
|
|
2
|
+
import type { Editor } from "../../_vendor/canvas-core/index";
|
|
3
3
|
export declare function createContextMenuContext({ editor, menu, }: {
|
|
4
4
|
editor: Editor;
|
|
5
5
|
menu: ContextMenuContext["menu"];
|
|
6
6
|
}): ContextMenuContext;
|
|
7
7
|
export declare function getContextMenuContributionTarget(target: ContextMenuTarget, editor: Editor): ContextMenuContributionTarget;
|
|
8
|
-
export declare function runContextMenuAction({ actionId, context,
|
|
8
|
+
export declare function runContextMenuAction({ actionRegistry, actionId, context, value, }: {
|
|
9
|
+
actionRegistry: CanvasActionRegistry;
|
|
9
10
|
actionId: string;
|
|
10
11
|
context: ContextMenuContext;
|
|
11
|
-
pluginHostRuntime: ProductPluginHostRuntime;
|
|
12
12
|
value?: CanvasActionValue;
|
|
13
13
|
}): void;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import type { Editor } from "../../../_vendor/canvas-core/index";
|
|
2
1
|
import { type ProductAssetResolverService, type ProductServiceFactory } from "../../../core";
|
|
3
2
|
import { type ImageObjectUrlStore } from "./imageBlobStore";
|
|
4
3
|
export interface ImageAssetService extends ProductAssetResolverService {
|
|
5
4
|
objectUrls: ImageObjectUrlStore;
|
|
6
5
|
}
|
|
7
6
|
export interface ImageAssetServiceOptions {
|
|
8
|
-
flushSnapshot?: (
|
|
7
|
+
flushSnapshot?: () => Promise<void>;
|
|
9
8
|
}
|
|
10
|
-
export declare const imageAssetServiceToken: import("../../../
|
|
9
|
+
export declare const imageAssetServiceToken: import("../../../_vendor/canvas-plugin-sdk/index").ProductServiceToken<ImageAssetService>;
|
|
11
10
|
export declare function localImageAssetService({ flushSnapshot, }?: ImageAssetServiceOptions): ProductServiceFactory<ImageAssetService>;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import type { AssetId, Editor } from "../../../_vendor/canvas-core/index";
|
|
2
|
+
export { readBlobAsDataUrl } from "../../../_vendor/plugin-builtin-export/index";
|
|
2
3
|
export interface ImageBlobWriteResult {
|
|
3
4
|
storageKey: string;
|
|
4
5
|
}
|
|
5
6
|
export interface ImageObjectUrlStore {
|
|
6
|
-
preloadForEditor(editor: Editor
|
|
7
|
-
|
|
7
|
+
preloadForEditor(editor: Editor, options?: {
|
|
8
|
+
signal?: AbortSignal;
|
|
9
|
+
}): Promise<void>;
|
|
10
|
+
preload(storageKey: string, options?: {
|
|
11
|
+
signal?: AbortSignal;
|
|
12
|
+
}): Promise<string | null>;
|
|
8
13
|
resolve(storageKey: string): string | null;
|
|
9
14
|
resolveAssetUrl(editor: Editor, assetId: AssetId): string | null;
|
|
10
15
|
release(storageKey: string): void;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import type { Editor } from "../../../_vendor/canvas-core/index";
|
|
2
|
-
import { isEditableEventTarget } from "../../../_vendor/canvas-react/index";
|
|
3
1
|
import type { ImageAssetSource } from "../../../_vendor/plugin-image/index";
|
|
4
|
-
export { isEditableEventTarget };
|
|
5
2
|
export interface PreparedImageAssetInput {
|
|
6
3
|
name: string;
|
|
7
4
|
source: ImageAssetSource;
|
|
@@ -35,9 +32,6 @@ export declare function fitImageSize({ height, width, }: {
|
|
|
35
32
|
h: number;
|
|
36
33
|
};
|
|
37
34
|
export declare function getFirstImageFile(files: Iterable<File>): File | null;
|
|
38
|
-
export declare function getFirstImageFileFromDataTransfer(dataTransfer: DataTransfer | null): File | null;
|
|
39
|
-
export declare function hasImageFileItem(dataTransfer: DataTransfer | null): boolean;
|
|
40
|
-
export declare function getDropPagePoint(editor: Editor, event: DragEvent): import("../../../_vendor/canvas-core/index").Vec;
|
|
41
35
|
export declare function downloadObjectUrl({ filename, url, }: {
|
|
42
36
|
filename: string;
|
|
43
37
|
url: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type SvgAssetInliner } from "../../../_vendor/plugin-builtin-export/index";
|
|
2
2
|
import type { ImageAssetService } from "./imageAssetService";
|
|
3
3
|
export declare function createImageSvgAssetInliner(imageAssetService: ImageAssetService): SvgAssetInliner;
|
|
@@ -17,9 +17,9 @@ export interface ImageProductController {
|
|
|
17
17
|
downloadSelectedImageOriginal(): Promise<void>;
|
|
18
18
|
smudge: ImageSmudgeController;
|
|
19
19
|
}
|
|
20
|
-
export declare const imageProductControllerToken: import("../../../
|
|
20
|
+
export declare const imageProductControllerToken: import("../../../_vendor/canvas-plugin-sdk/index").ProductApiToken<ImageProductController>;
|
|
21
21
|
export interface ImageProductControllerRuntimeOptions {
|
|
22
|
-
flushSnapshot?: (
|
|
22
|
+
flushSnapshot?: () => Promise<void>;
|
|
23
23
|
}
|
|
24
24
|
export declare function createImageProductController({ editor, flushSnapshot, services, }: ImageProductControllerRuntimeOptions & {
|
|
25
25
|
editor: Editor;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ImageHostPlugin: import("../..").CanvasPlugin;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { Editor } from "../../../_vendor/canvas-core/index";
|
|
2
|
+
import type { CanvasImportRegistry } from "../../../_vendor/canvas-plugin-sdk/index";
|
|
2
3
|
import type { ImageAssetService } from "../asset/imageAssetService";
|
|
3
4
|
import type { ImageToolbarHostBridge } from "../toolbar/imageToolbarHostBridge";
|
|
4
5
|
export declare const ImageImportController: import("react").NamedExoticComponent<{
|
|
5
6
|
editor: Editor;
|
|
6
7
|
hostBridge?: ImageToolbarHostBridge;
|
|
7
8
|
imageAssetService: ImageAssetService;
|
|
8
|
-
|
|
9
|
+
imports: CanvasImportRegistry;
|
|
10
|
+
flushSnapshot?: () => Promise<void>;
|
|
9
11
|
}>;
|
|
@@ -8,10 +8,8 @@ export { createImageToolbarHostBridge, ImageToolbarHostBridge, imageToolbarHostB
|
|
|
8
8
|
export type { ImageToolbarHostBridgeHandlers } from "./toolbar/imageToolbarHostBridge";
|
|
9
9
|
export { cleanupUnreferencedImageBlobs, createImageObjectUrlStore, createImageStorageKey, deleteImageBlob, getAllImageBlobStorageKeys, getLocalImageAssetStorageKey, getRemoteImageAssetUrl, getReferencedImageStorageKeys, readImageBlob, readImageBlobAsDataUrl, writeImageBlob, } from "./asset/imageBlobStore";
|
|
10
10
|
export type { ImageBlobWriteResult, ImageObjectUrlStore, } from "./asset/imageBlobStore";
|
|
11
|
-
export { downloadSelectedImageOriginal, createImageToolbarActions,
|
|
11
|
+
export { downloadSelectedImageOriginal, createImageToolbarActions, getFirstImageFile, insertImageIntoEditor, replaceSelectedImageFromFile, } from "./toolbar/imageHostActions";
|
|
12
12
|
export type { ImageInsertSource, ImageInsertSize, ImageInsertStrategy, InsertImageInput, ReplaceSelectedImageFileInput, } from "./toolbar/imageHostActions";
|
|
13
13
|
export { confirmImageSmudgeSession } from "./smudge/imageSmudgeHostActions";
|
|
14
14
|
export type { ConfirmImageSmudgeSessionInput } from "./smudge/imageSmudgeHostActions";
|
|
15
15
|
export { createImageSvgAssetInliner } from "./asset/svgImageAssetInliner";
|
|
16
|
-
export { useImageImport } from "./import/useImageImport";
|
|
17
|
-
export type { ImageImportControls } from "./import/useImageImport";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Editor } from "../../../_vendor/canvas-core/index";
|
|
2
|
-
import type
|
|
2
|
+
import { type ImageObjectUrlStore } from "../asset/imageBlobStore";
|
|
3
3
|
import type { ImageSmudgeConfirmPayload } from "./imageSmudgeTypes";
|
|
4
4
|
export interface ConfirmImageSmudgeSessionInput {
|
|
5
5
|
editor: Editor;
|
|
6
6
|
imageObjectUrls: ImageObjectUrlStore;
|
|
7
|
-
flushSnapshot?: (
|
|
7
|
+
flushSnapshot?: () => Promise<void>;
|
|
8
8
|
replace?: boolean;
|
|
9
9
|
}
|
|
10
10
|
export declare function confirmImageSmudgeSession({ editor, imageObjectUrls, flushSnapshot, replace, }: ConfirmImageSmudgeSessionInput): Promise<ImageSmudgeConfirmPayload | null>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type CanvasAction } from "../../../_vendor/canvas-plugin-sdk/index";
|
|
2
|
+
import { type AssetId, type Editor, type ShapeId, Vec } from "../../../_vendor/canvas-core/index";
|
|
2
3
|
import { type ImageAssetRecord, type ImageShapeRecord } from "../../../_vendor/plugin-image/index";
|
|
3
4
|
import { type ImageObjectUrlStore } from "../asset/imageBlobStore";
|
|
4
5
|
import type { ImageToolbarHostBridge } from "./imageToolbarHostBridge";
|
|
5
6
|
import { type LocalImageBlobInput } from "../asset/imageFileHelpers";
|
|
6
|
-
export {
|
|
7
|
+
export { getFirstImageFile } from "../asset/imageFileHelpers";
|
|
7
8
|
export type ImageInsertStrategy = "auto" | "copy" | "link";
|
|
8
9
|
export type ImageInsertSource = {
|
|
9
10
|
type: "file";
|
|
@@ -26,20 +27,24 @@ export interface InsertImageInput {
|
|
|
26
27
|
source: ImageInsertSource;
|
|
27
28
|
pagePoint?: Vec;
|
|
28
29
|
size?: ImageInsertSize;
|
|
29
|
-
flushSnapshot?: (
|
|
30
|
+
flushSnapshot?: () => Promise<void>;
|
|
30
31
|
strategy?: ImageInsertStrategy;
|
|
31
32
|
}
|
|
32
33
|
export interface ReplaceSelectedImageFileInput {
|
|
33
34
|
editor: Editor;
|
|
34
35
|
file: File;
|
|
35
36
|
imageObjectUrls: ImageObjectUrlStore;
|
|
36
|
-
flushSnapshot?: (
|
|
37
|
+
flushSnapshot?: () => Promise<void>;
|
|
38
|
+
}
|
|
39
|
+
interface ImageShapeAssetReplacementResult {
|
|
40
|
+
assetId: AssetId;
|
|
41
|
+
storageKey: string | null;
|
|
37
42
|
}
|
|
38
43
|
export declare function insertImageIntoEditor({ editor, imageObjectUrls, pagePoint, size, flushSnapshot, source, strategy, }: InsertImageInput): Promise<ShapeId | null>;
|
|
39
44
|
export declare function localizeRemoteImageAsset({ assetId, editor, flushSnapshot, imageObjectUrls, source, }: {
|
|
40
45
|
assetId: AssetId;
|
|
41
46
|
editor: Editor;
|
|
42
|
-
flushSnapshot?: (
|
|
47
|
+
flushSnapshot?: () => Promise<void>;
|
|
43
48
|
imageObjectUrls: ImageObjectUrlStore;
|
|
44
49
|
source: Extract<ImageInsertSource, {
|
|
45
50
|
type: "url";
|
|
@@ -50,13 +55,18 @@ export declare function downloadSelectedImageOriginal({ editor, imageObjectUrls,
|
|
|
50
55
|
editor: Editor;
|
|
51
56
|
imageObjectUrls: ImageObjectUrlStore;
|
|
52
57
|
}): Promise<void>;
|
|
53
|
-
export declare function replaceImageShapeFromBlob({ blob, editor, flushSnapshot, imageObjectUrls, name, shape, }: {
|
|
58
|
+
export declare function replaceImageShapeFromBlob({ blob, canCommit, editor, flushSnapshot, imageObjectUrls, name, shape, }: {
|
|
54
59
|
blob: Blob;
|
|
60
|
+
canCommit?: () => boolean;
|
|
55
61
|
editor: Editor;
|
|
56
|
-
flushSnapshot?: (
|
|
62
|
+
flushSnapshot?: () => Promise<void>;
|
|
57
63
|
imageObjectUrls: ImageObjectUrlStore;
|
|
58
64
|
name: string;
|
|
59
65
|
shape: ImageShapeRecord;
|
|
66
|
+
}): Promise<ImageShapeAssetReplacementResult | null>;
|
|
67
|
+
export declare function flushImageSnapshotBestEffort({ flushSnapshot, operation, }: {
|
|
68
|
+
flushSnapshot?: () => Promise<void>;
|
|
69
|
+
operation: string;
|
|
60
70
|
}): Promise<void>;
|
|
61
71
|
export declare function readImageAssetSourceBlob({ asset, imageObjectUrls, }: {
|
|
62
72
|
asset: ImageAssetRecord;
|
|
@@ -10,5 +10,5 @@ export declare class ImageToolbarHostBridge {
|
|
|
10
10
|
openReplaceFilePicker(): void;
|
|
11
11
|
}
|
|
12
12
|
export declare function createImageToolbarHostBridge(): ImageToolbarHostBridge;
|
|
13
|
-
export declare const imageToolbarHostBridgeToken: import("../../../
|
|
13
|
+
export declare const imageToolbarHostBridgeToken: import("../../../_vendor/canvas-plugin-sdk/index").ProductServiceToken<ImageToolbarHostBridge>;
|
|
14
14
|
export declare function imageToolbarHostBridgeService(): ProductServiceFactory<ImageToolbarHostBridge>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { TextLinkPopoverPresenter } from "../../../_vendor/plugin-text/index";
|
|
3
|
+
export interface TextLinkHoverPopoverIcons {
|
|
4
|
+
open: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare function createTextLinkHoverPopoverPresenter(icons: TextLinkHoverPopoverIcons): TextLinkPopoverPresenter;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type TextLinkPopoverPresenter } from "../../_vendor/plugin-text/index";
|
|
2
|
+
import { type CanvasPlugin } from "../../runtime/canvasKitPluginContracts";
|
|
3
|
+
export declare function createTextHostPlugin({ presenter, }: {
|
|
4
|
+
presenter: TextLinkPopoverPresenter;
|
|
5
|
+
}): CanvasPlugin;
|
package/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
:root{--land-selection:#2563eb;--land-canvas-bg:oklch(97.7% .004 95);--land-canvas-grid-minor:oklch(82% .01 95);--land-shape-fill-blue:#dbeafe;--land-shape-fill-green:#dcfce7;--land-shape-fill-red:#fee2e2;--land-shape-fill-amber:#fff7ed;--land-shape-fill-white:#f8fafc;--land-shape-fill-slate:#e2e8f0;--land-shape-stroke-blue:#1d4ed8;--land-shape-stroke-green:#15803d;--land-shape-stroke-red:#dc2626;--land-shape-stroke-orange:#ea580c;--land-shape-stroke-slate:#334155;--land-shape-stroke-muted:#94a3b8;--land-shape-text-slate:#0f172a;--land-shape-text-blue:#1d4ed8;--land-shape-text-green:#15803d;--land-shape-text-red:#dc2626;--canvas-background:var(--land-canvas-bg);--canvas-dot:var(--land-canvas-grid-minor);--border:oklch(84% .012 240);--accent:oklch(90% .024 210);--accent-foreground:oklch(24% .03 235);--muted-foreground:oklch(45% .018 245);--chrome-background:oklch(100% 5.96046e-8 none/.94);--chrome-foreground:oklch(18% .018 255);--chrome-border:color-mix(in oklch, var(--border) 88%, oklch(22% .02 255));--chrome-border-width:1px;--chrome-radius:.5rem;--chrome-control-radius:.375rem;--chrome-control-border-width:0px;--chrome-spacing:.25rem;--toolbar-control-size:1.75rem;--toolbar-floating-offset
|
|
1
|
+
:root{--land-selection:#2563eb;--land-canvas-bg:oklch(97.7% .004 95);--land-canvas-grid-minor:oklch(82% .01 95);--land-shape-fill-blue:#dbeafe;--land-shape-fill-green:#dcfce7;--land-shape-fill-red:#fee2e2;--land-shape-fill-amber:#fff7ed;--land-shape-fill-white:#f8fafc;--land-shape-fill-slate:#e2e8f0;--land-shape-stroke-blue:#1d4ed8;--land-shape-stroke-green:#15803d;--land-shape-stroke-red:#dc2626;--land-shape-stroke-orange:#ea580c;--land-shape-stroke-slate:#334155;--land-shape-stroke-muted:#94a3b8;--land-shape-text-slate:#0f172a;--land-shape-text-blue:#1d4ed8;--land-shape-text-green:#15803d;--land-shape-text-red:#dc2626;--canvas-background:var(--land-canvas-bg);--canvas-dot:var(--land-canvas-grid-minor);--border:oklch(84% .012 240);--accent:oklch(90% .024 210);--accent-foreground:oklch(24% .03 235);--muted-foreground:oklch(45% .018 245);--chrome-background:oklch(100% 5.96046e-8 none/.94);--chrome-foreground:oklch(18% .018 255);--chrome-border:color-mix(in oklch, var(--border) 88%, oklch(22% .02 255));--chrome-border-width:1px;--chrome-radius:.5rem;--chrome-control-radius:.375rem;--chrome-control-border-width:0px;--chrome-spacing:.25rem;--toolbar-control-size:1.75rem;--toolbar-floating-offset:2.375rem;--toolbar-floating-shift-padding:.5rem;--toolbar-title-padding-inline:.5rem;--toolbar-title-font-size:.75rem;--toolbar-title-line-height:1rem;--toolbar-separator-width:1px;--toolbar-separator-height:1.25rem;--toolbar-separator-margin-inline:.25rem;--toolbar-button-font-size:.8125rem;--shadow-chrome:0 14px 34px -26px #0f172a6b, 0 6px 16px -12px #0f172a3d}.land-canvas-kit__shell,.land-canvas-kit__shell *{box-sizing:border-box}.land-canvas-kit__shell{background:linear-gradient(var(--land-canvas-bg,var(--canvas-background)), var(--land-canvas-bg,var(--canvas-background))), var(--land-canvas-bg,var(--canvas-background));width:100%;height:100%;color:var(--chrome-foreground)}.land-canvas-kit__viewport{width:100%;height:100%;position:relative;overflow:hidden}.land-canvas__surface{touch-action:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;position:relative;overflow:hidden;background-color:var(--land-canvas-bg,var(--canvas-background))!important}.land-canvas__grid-background,.land-canvas__shape-layer,.land-canvas__shape-page-space,.land-canvas__overlay-layer,.land-canvas__overlay-page-space,.land-canvas__eraser-trail-page-space,.land-canvas__laser-trail-page-space,.land-canvas__floating-portal-host,.land-canvas__floating-toolbar-layer,.land-canvas__floating-selection-page-space{position:absolute;inset:0}.land-canvas__grid-background,.land-canvas__overlay-layer,.land-canvas__eraser-trail-page-space,.land-canvas__laser-trail-page-space,.land-canvas__floating-portal-host,.land-canvas__floating-toolbar-layer,.land-canvas__floating-selection-page-space,.land-canvas__floating-selection-anchor{pointer-events:none}.land-canvas__floating-portal-host{isolation:isolate;z-index:30}.land-canvas__floating-selection-anchor{z-index:30;position:absolute}.land-canvas-kit__text-link-popover{z-index:40;visibility:hidden;box-sizing:border-box;align-items:center;gap:var(--chrome-spacing);border:var(--chrome-border-width) solid var(--chrome-border);border-radius:var(--chrome-radius);background:var(--chrome-background);max-width:min(360px,100vw - 24px);color:var(--chrome-foreground);box-shadow:var(--shadow-chrome);padding:var(--chrome-spacing);pointer-events:auto;will-change:transform;display:flex;position:fixed;top:0;left:0}.land-canvas-kit__text-link-popover button:focus-visible{outline:2px solid var(--land-selection);outline-offset:1px}.land-canvas-kit__text-link-popover-icon-button,.land-canvas-kit__text-link-popover-link{border:var(--chrome-control-border-width) solid transparent;border-radius:var(--chrome-control-radius);cursor:pointer;background:0 0;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.land-canvas-kit__text-link-popover-icon-button{width:var(--toolbar-control-size);height:var(--toolbar-control-size);color:var(--muted-foreground);flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.land-canvas-kit__text-link-popover-link{min-width:0;max-width:min(260px,100vw - 7rem);color:var(--chrome-foreground);padding:0 var(--toolbar-title-padding-inline);font-size:var(--toolbar-title-font-size);line-height:var(--toolbar-title-line-height);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.land-canvas-kit__text-link-popover-icon-button:hover,.land-canvas-kit__text-link-popover-link:hover{background:var(--chrome-control-hover-background,var(--accent));color:var(--chrome-control-hover-foreground,var(--accent-foreground,var(--chrome-foreground)))}.land-text-editor__content{white-space:pre-wrap;overflow-wrap:break-word;outline:none;width:100%;height:100%;min-height:100%}.land-text-editor__content p{margin:0}.land-text-editor__content .land-rich-text-selection{background:color-mix(in srgb, var(--land-selection) 24%, transparent)}
|
|
2
2
|
/*$vite$:1*/
|
package/index.d.ts
CHANGED
|
@@ -1,23 +1,47 @@
|
|
|
1
1
|
export { createCustomShapeColor, createThemeShapeColor, getThemeColorTokenName, isCustomShapeColorRef, isThemeShapeColorRef, resolveShapeColor, shapeColorToCssColor, } from "./_vendor/canvas-core/index";
|
|
2
|
-
export { DEFAULT_TEXT_FONT, HOST_TEXT_FONT, createDefaultTextFontCatalog,
|
|
3
|
-
export type {
|
|
4
|
-
export
|
|
2
|
+
export { DEFAULT_TEXT_FONT, HOST_TEXT_FONT, createDefaultTextFontCatalog, createDefaultTextPluginOptions, getPlainTextFromRichText, textApiToken, } from "./_vendor/plugin-text/index";
|
|
3
|
+
export type { TextApi, TextInput, TextPluginOptions, TextShapeProps, TextFontDefinition, TextFontFaceSource, TextFontCatalog, TextFontSource, TextFormattingApi, TextFormattingSnapshot, TextFormattingTarget, TextFormattingValue, TextInlineFormat, TextLinkPopoverPresenter, TextLinkPopoverPresenterProps, TextStylesheetFontSource, TextSystemFontSource, TextTiptapEditorChangeHandler, TextTiptapEditorHandle, } from "./_vendor/plugin-text/index";
|
|
4
|
+
export { arrowApiToken } from "./_vendor/plugin-arrow/index";
|
|
5
|
+
export type { ArrowApi, ArrowBindingInput, ArrowInput, } from "./_vendor/plugin-arrow/index";
|
|
6
|
+
export { frameApiToken } from "./_vendor/plugin-frame/index";
|
|
7
|
+
export type { FrameApi, FrameInput, FrameShapeProps, } from "./_vendor/plugin-frame/index";
|
|
8
|
+
export { geoApiToken } from "./_vendor/plugin-geo/index";
|
|
9
|
+
export type { GeoApi, GeoRectangleInput, GeoShapeKind, GeoShapeInput, GeoShapeProps, } from "./_vendor/plugin-geo/index";
|
|
10
|
+
export type { ImageAssetProps, ImageShapeProps, } from "./_vendor/plugin-image/index";
|
|
11
|
+
export { Packaging, packagingApiToken, parsePackagingDocument, parsePackagingDxf, } from "./_vendor/plugin-packaging/index";
|
|
12
|
+
export type { Affine2d, PackagingBleedContour, PackagingClosedContour, PackagingContourSegment, PackagingCoordinate, PackagingCoordinateSystem, PackagingDirectedEdgeRef, PackagingDocument, PackagingDxfImportInput, PackagingDxfImportOptions, PackagingEdge, PackagingEdgeGeometry, PackagingEdgeOperation, PackagingFace, PackagingLoop, PackagingPoint, PackagingApi, PackagingInput, PackagingPdfExportOptions, PackagingPdfExportResult, PackagingPrepress, PackagingSafeZone, PackagingShapeProps, PackagingSurface, PackagingSurfaceSide, PackagingSurfaces, PackagingUnit, } from "./_vendor/plugin-packaging/index";
|
|
13
|
+
export type { AssetId, CustomShapeColorRef, EditorPlugin, ShapeColor, ThemeColorSlot, ThemeColorResolver, ThemeColorTokenName, ThemeShapeColorRef, } from "./_vendor/canvas-core/index";
|
|
14
|
+
export type { CanvasRenderPlugin } from "./_vendor/canvas-react/host/index";
|
|
15
|
+
export { chromeChannels, createChromeChannel, createProductServiceToken, createToolbarChannel, createCanvasPluginValueToken, createProductApiToken, mergeToolbarGroups, toolbarChannels, } from "./_vendor/canvas-plugin-sdk/index";
|
|
16
|
+
export { canvasToolActionsCapability } from "./_vendor/plugin-builtin-tool-actions/index";
|
|
17
|
+
export { canvasImportHostCapability } from "./_vendor/plugin-builtin-import-host/index";
|
|
18
|
+
export { canvasClipboardServiceToken, } from "./_vendor/plugin-builtin-clipboard/index";
|
|
19
|
+
export type { CanvasAction, CanvasActionAvailability, CanvasActionValue, CanvasPluginCapabilityKind, CanvasPluginCapabilityRegistry, CanvasPluginCapabilitySetup, CanvasPluginCapabilityToken, CanvasPluginRequirement, CanvasPluginValueToken, CanvasShapeRef, ChromeChannel, ChromeContribution, CanvasImportContribution, CanvasImportRequest, CanvasImportResult, CanvasExportArtifact, CanvasExportContribution, CanvasExportFormat, CanvasExportPayload, CanvasPluginLifecycleSetup, ContextMenuContribution, ProductApiRegistry, ProductApiToken, ToolbarChannel, ToolbarContribution, ToolbarGroupSource, ToolbarSurface, } from "./_vendor/canvas-plugin-sdk/index";
|
|
5
20
|
export { CanvasKitFloatingToolbarLayer, } from "./chrome/toolbar/CanvasKitFloatingToolbarLayer";
|
|
6
21
|
export { FloatingSelectionToolbarPageSpace, } from "./chrome/toolbar/FloatingSelectionToolbarPageSpace";
|
|
7
22
|
export { useCanvasKitWheelCapture, } from "./chrome/toolbar/CanvasKitWheelCapture";
|
|
23
|
+
export { createTextHostPlugin } from "./features/text/textHostPlugin";
|
|
24
|
+
export { createTextLinkHoverPopoverPresenter, } from "./features/text/link/TextLinkHoverPopover";
|
|
25
|
+
export type { TextLinkHoverPopoverIcons, } from "./features/text/link/TextLinkHoverPopover";
|
|
8
26
|
export { useCanvasKitLayerTree, } from "./chrome/useCanvasKitLayerTree";
|
|
9
27
|
import "./index.css";
|
|
10
28
|
export { createCanvasKitController, createCanvasKitControllerWithTools, } from "./controller/canvasKitController";
|
|
11
29
|
export { CanvasKitRoot } from "./react/CanvasKitRoot";
|
|
12
|
-
export {
|
|
30
|
+
export { useCanvasKitRuntime } from "./react/useCanvasKitRuntime";
|
|
31
|
+
export { createCanvasKitRuntime } from "./runtime/canvasKitRuntime";
|
|
32
|
+
export { createStandardCanvasKitPlugins, } from "./plugins/standardCanvasKitPlugins";
|
|
33
|
+
export { defineCanvasPlugin } from "./runtime/canvasKitPluginContracts";
|
|
13
34
|
export { CANVAS_KIT_TOOL_IDS } from "./controller/canvasKitController";
|
|
14
|
-
export type { CanvasKitController, CanvasKitControllerRuntimeContext, CanvasKitControllerOptions, CanvasKitControllerSnapshot, CanvasKitControllerWithToolsOptions, CanvasKitBaseController, CanvasKitControllerWithTools,
|
|
15
|
-
export type {
|
|
16
|
-
export type {
|
|
17
|
-
export type {
|
|
18
|
-
export type {
|
|
19
|
-
export type {
|
|
20
|
-
export type {
|
|
21
|
-
export type {
|
|
35
|
+
export type { CanvasKitController, CanvasKitControllerRuntimeContext, CanvasKitControllerOptions, CanvasKitControllerSnapshot, CanvasKitControllerWithToolsOptions, CanvasKitBaseController, CanvasKitControllerWithTools, CanvasKitToolId, } from "./controller/canvasKitController";
|
|
36
|
+
export type { CanvasProductAssetData, CanvasProductControllerChange, CanvasProductControllerChangeKey, CanvasProductControllerChangeListener, CanvasProductCommittedChange, CanvasProductCreatePageInput, CanvasProductDocumentRef, CanvasProductLayerNode, CanvasProductShapeData, CanvasProductShapeUpdate, CanvasProductRealtimeChange, CanvasProductSubscriptionOptions, } from "./core";
|
|
37
|
+
export type { CanvasKitChromeContext, CanvasKitContextMenuState, CanvasKitGridControls, CanvasKitLayerNode, CanvasKitLayerTreeSource, CanvasKitToolbarActionState, CanvasKitToolbarRuntime, ChromeCommandItem, ChromeItem, ChromeSection, ChromeSurfaces, CanvasActionContext, ContextMenuCommandItem, ContextMenuItem, ContextMenuSection, EditorSelectionMetadata, EditorSelectionState, HistoryControls, PageControls, ShapeId, ToolbarGroup, ToolbarItem, ToolbarSurfaces, ZoomControlsState, } from "./chrome/types";
|
|
38
|
+
export type { CanvasKitChromeRenderer, CanvasKitDocumentSeed, CanvasKitRuntime, CanvasKitRuntimeOptions, CanvasKitRuntimeState, CanvasKitStartupResult, } from "./runtime/canvasKitRuntimeContracts";
|
|
39
|
+
export type { CanvasKitRootProps } from "./react/CanvasKitRoot";
|
|
40
|
+
export type { CanvasKitStandardPluginOptions, } from "./plugins/standardCanvasKitPlugins";
|
|
41
|
+
export type { CanvasKitPluginAssetSetup, CanvasKitPluginLifecycleSetup, CanvasKitPluginPersistence, CanvasKitPluginSetup, CanvasKitPluginSetupContext, CanvasKitPluginUiSetup, CanvasPluginApi, CanvasPluginBeforeReadyContext, CanvasPluginBeforeReady, CanvasPluginBeforeCommand, CanvasPluginBeforeCommandContext, CanvasPluginComponent, CanvasPluginComponentProps, CanvasPlugin, CanvasPluginDefinition, CanvasPluginInput, CanvasPluginContext, CanvasPluginProvider, } from "./runtime/canvasKitPluginContracts";
|
|
42
|
+
export type { ProductPersistenceAdapter, ProductPersistenceLoadResult, ProductAssetResolverService, ProductServiceFactory, ProductServiceRegistry, ProductServiceSetup, ProductServiceToken, } from "./core";
|
|
43
|
+
export type { CanvasClipboardService, } from "./_vendor/plugin-builtin-clipboard/index";
|
|
44
|
+
export { canvasExportApiToken } from "./_vendor/plugin-builtin-export/index";
|
|
45
|
+
export type { CanvasExportAppearance, CanvasExportApi, CanvasExportTarget, CanvasGenericExportInput, CanvasPngExportInput, CanvasSvgExportInput, ExportStatus, PngExportResult, SvgAssetInliner, SvgExportResult, } from "./_vendor/plugin-builtin-export/index";
|
|
22
46
|
export { imageProductControllerToken } from "./features/image";
|
|
23
47
|
export type { ImageInsertInput, ImageInsertSource, ImageInsertStrategy, ImageProductController, ImageShapeCrop, ImageSmudgeBrush, ImageSmudgeConfirmPayload, ImageSmudgeController, ImageSmudgeStroke, ImageSmudgeStrokePoint, } from "./features/image";
|