@pixerate/editor-react 0.90.0 → 0.90.1
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/dist/animation-editor/AnimationEditor.d.cts +33 -0
- package/dist/animation-editor/AnimationEditor.d.ts +33 -0
- package/dist/animation-editor/AnimationEffectsPanel.d.cts +14 -0
- package/dist/animation-editor/AnimationEffectsPanel.d.ts +14 -0
- package/dist/animation-editor/AnimationStage.d.cts +24 -0
- package/dist/animation-editor/AnimationStage.d.ts +24 -0
- package/dist/animation-editor/CommandInspector.d.cts +14 -0
- package/dist/animation-editor/CommandInspector.d.ts +14 -0
- package/dist/animation-editor/CommandList.d.cts +16 -0
- package/dist/animation-editor/CommandList.d.ts +16 -0
- package/dist/animation-editor/CommitInput.d.cts +6 -0
- package/dist/animation-editor/CommitInput.d.ts +6 -0
- package/dist/animation-editor/EasePicker.d.cts +18 -0
- package/dist/animation-editor/EasePicker.d.ts +18 -0
- package/dist/animation-editor/PlayheadScrubber.d.cts +12 -0
- package/dist/animation-editor/PlayheadScrubber.d.ts +12 -0
- package/dist/animation-editor/SceneSettings.d.cts +12 -0
- package/dist/animation-editor/SceneSettings.d.ts +12 -0
- package/dist/animation-editor/ShotInspector.d.cts +14 -0
- package/dist/animation-editor/ShotInspector.d.ts +14 -0
- package/dist/animation-editor/ShotTimeline.d.cts +11 -0
- package/dist/animation-editor/ShotTimeline.d.ts +11 -0
- package/dist/animation-editor/index.cjs +0 -1
- package/dist/animation-editor/index.d.cts +11 -195
- package/dist/animation-editor/index.d.ts +11 -195
- package/dist/animation-editor/index.js +2 -3
- package/dist/animation-editor/useAnimationEditor.d.cts +34 -0
- package/dist/animation-editor/useAnimationEditor.d.ts +34 -0
- package/dist/canvas/AgentPresenceLayer.d.cts +11 -0
- package/dist/canvas/AgentPresenceLayer.d.ts +11 -0
- package/dist/canvas/AnimationTimeline.d.cts +22 -0
- package/dist/canvas/AnimationTimeline.d.ts +22 -0
- package/dist/canvas/CanvasComponentsPanel.d.cts +44 -0
- package/dist/canvas/CanvasComponentsPanel.d.ts +44 -0
- package/dist/canvas/CanvasDrawLayer.d.cts +23 -0
- package/dist/canvas/CanvasDrawLayer.d.ts +23 -0
- package/dist/canvas/CanvasEffects.d.cts +52 -0
- package/dist/canvas/CanvasEffects.d.ts +52 -0
- package/dist/canvas/CanvasGuidesLayer.d.cts +20 -0
- package/dist/canvas/CanvasGuidesLayer.d.ts +20 -0
- package/dist/canvas/DiagramPresenceLayer.d.cts +14 -0
- package/dist/canvas/DiagramPresenceLayer.d.ts +14 -0
- package/dist/canvas/MermaidDiagramNode.d.cts +37 -0
- package/dist/canvas/MermaidDiagramNode.d.ts +37 -0
- package/dist/canvas/MermaidFamilyScene.d.cts +29 -0
- package/dist/canvas/MermaidFamilyScene.d.ts +29 -0
- package/dist/canvas/MermaidThumbnail.d.cts +15 -0
- package/dist/canvas/MermaidThumbnail.d.ts +15 -0
- package/dist/canvas/ShapeNode.d.cts +31 -0
- package/dist/canvas/ShapeNode.d.ts +31 -0
- package/dist/canvas/TokenBindingPicker.d.cts +37 -0
- package/dist/canvas/TokenBindingPicker.d.ts +37 -0
- package/dist/canvas/index.cjs +0 -1
- package/dist/canvas/index.d.cts +40 -1084
- package/dist/canvas/index.d.ts +40 -1084
- package/dist/canvas/index.js +2 -3
- package/dist/canvas/useCanvasAnimation.d.cts +97 -0
- package/dist/canvas/useCanvasAnimation.d.ts +97 -0
- package/dist/canvas/useCanvasArrange.d.cts +80 -0
- package/dist/canvas/useCanvasArrange.d.ts +80 -0
- package/dist/canvas/useCanvasAutoLayout.d.cts +54 -0
- package/dist/canvas/useCanvasAutoLayout.d.ts +54 -0
- package/dist/canvas/useCanvasCapture.d.cts +20 -0
- package/dist/canvas/useCanvasCapture.d.ts +20 -0
- package/dist/canvas/useCanvasClipboard.d.cts +14 -0
- package/dist/canvas/useCanvasClipboard.d.ts +14 -0
- package/dist/canvas/useCanvasComponents.d.cts +74 -0
- package/dist/canvas/useCanvasComponents.d.ts +74 -0
- package/dist/canvas/useCanvasDocking.d.cts +15 -0
- package/dist/canvas/useCanvasDocking.d.ts +15 -0
- package/dist/canvas/useCanvasDraw.d.cts +37 -0
- package/dist/canvas/useCanvasDraw.d.ts +37 -0
- package/dist/canvas/useCanvasExplosion.d.cts +16 -0
- package/dist/canvas/useCanvasExplosion.d.ts +16 -0
- package/dist/canvas/useCanvasGraph.d.cts +27 -0
- package/dist/canvas/useCanvasGraph.d.ts +27 -0
- package/dist/canvas/useCanvasLayout.d.cts +25 -0
- package/dist/canvas/useCanvasLayout.d.ts +25 -0
- package/dist/canvas/useCanvasMeasure.d.cts +41 -0
- package/dist/canvas/useCanvasMeasure.d.ts +41 -0
- package/dist/canvas/useCanvasScenes.d.cts +61 -0
- package/dist/canvas/useCanvasScenes.d.ts +61 -0
- package/dist/canvas/useCanvasShortcuts.d.cts +22 -0
- package/dist/canvas/useCanvasShortcuts.d.ts +22 -0
- package/dist/canvas/useCanvasTokens.d.cts +24 -0
- package/dist/canvas/useCanvasTokens.d.ts +24 -0
- package/dist/canvas/useDiagramDirector.d.cts +21 -0
- package/dist/canvas/useDiagramDirector.d.ts +21 -0
- package/dist/canvas/useMermaidDiagram.d.cts +79 -0
- package/dist/canvas/useMermaidDiagram.d.ts +79 -0
- package/dist/canvas/useShapeBrushstroke.d.cts +37 -0
- package/dist/canvas/useShapeBrushstroke.d.ts +37 -0
- package/dist/canvas/useStreamingCanvas.d.cts +17 -0
- package/dist/canvas/useStreamingCanvas.d.ts +17 -0
- package/dist/chart/ChartCanvas.d.cts +44 -0
- package/dist/chart/ChartCanvas.d.ts +44 -0
- package/dist/chart/ChartDataGrid.d.cts +24 -0
- package/dist/chart/ChartDataGrid.d.ts +24 -0
- package/dist/chart/ChartEditor.d.cts +20 -0
- package/dist/chart/ChartEditor.d.ts +20 -0
- package/dist/chart/ChartInspector.d.cts +14 -0
- package/dist/chart/ChartInspector.d.ts +14 -0
- package/dist/chart/ChartStreamingView.d.cts +40 -0
- package/dist/chart/ChartStreamingView.d.ts +40 -0
- package/dist/chart/index.cjs +0 -1
- package/dist/chart/index.d.cts +7 -212
- package/dist/chart/index.d.ts +7 -212
- package/dist/chart/index.js +1 -2
- package/dist/chart/styles.d.cts +7 -0
- package/dist/chart/styles.d.ts +7 -0
- package/dist/chart/useChartEditor.d.cts +64 -0
- package/dist/chart/useChartEditor.d.ts +64 -0
- package/dist/chart-node/ChartNodeView.d.cts +27 -0
- package/dist/chart-node/ChartNodeView.d.ts +27 -0
- package/dist/chart-node/index.d.cts +1 -0
- package/dist/chart-node/index.d.ts +1 -0
- package/dist/{chunk-WOQ3H7KA.js → chunk-5R67YSSD.js} +1 -2
- package/dist/{chunk-SIEOYRHX.js → chunk-AILJ4JOW.js} +0 -1
- package/dist/{chunk-MO354USR.js → chunk-AJCWF6SN.js} +0 -1
- package/dist/{chunk-I3E4KSA2.js → chunk-FLS7Q32M.js} +0 -1
- package/dist/{chunk-34HEZX7J.js → chunk-GML6BYCN.js} +0 -1
- package/dist/{chunk-XWFU2CSG.js → chunk-NNM633RN.js} +0 -1
- package/dist/{chunk-ZQZAKUUM.js → chunk-OTGJEYHV.js} +0 -1
- package/dist/{chunk-4ZC2WCUO.js → chunk-SMLHUEEQ.js} +0 -1
- package/dist/{chunk-4FQXRPBN.js → chunk-SMMO7CZB.js} +2 -3
- package/dist/commands/CommandPalette.d.cts +16 -0
- package/dist/commands/CommandPalette.d.ts +16 -0
- package/dist/commands/index.cjs +0 -1
- package/dist/commands/index.d.cts +3 -69
- package/dist/commands/index.d.ts +3 -69
- package/dist/commands/index.js +1 -2
- package/dist/commands/useCommandPalette.d.cts +24 -0
- package/dist/commands/useCommandPalette.d.ts +24 -0
- package/dist/commands/useCommandShortcuts.d.cts +26 -0
- package/dist/commands/useCommandShortcuts.d.ts +26 -0
- package/dist/components/BubbleMenu.d.cts +13 -0
- package/dist/components/BubbleMenu.d.ts +13 -0
- package/dist/components/EditorContent.d.cts +6 -0
- package/dist/components/EditorContent.d.ts +6 -0
- package/dist/components/ExportDocxButton.d.cts +12 -0
- package/dist/components/ExportDocxButton.d.ts +12 -0
- package/dist/components/MergePreview.d.cts +28 -0
- package/dist/components/MergePreview.d.ts +28 -0
- package/dist/components/OutlinePanel.d.cts +28 -0
- package/dist/components/OutlinePanel.d.ts +28 -0
- package/dist/components/StylesGallery.d.cts +31 -0
- package/dist/components/StylesGallery.d.ts +31 -0
- package/dist/components/TemplateRenderer.d.cts +26 -0
- package/dist/components/TemplateRenderer.d.ts +26 -0
- package/dist/components/VariableForm.d.cts +27 -0
- package/dist/components/VariableForm.d.ts +27 -0
- package/dist/effects/EffectParameters.d.cts +28 -0
- package/dist/effects/EffectParameters.d.ts +28 -0
- package/dist/effects/EffectThumbnail.d.cts +15 -0
- package/dist/effects/EffectThumbnail.d.ts +15 -0
- package/dist/effects/EffectsBrowser.d.cts +22 -0
- package/dist/effects/EffectsBrowser.d.ts +22 -0
- package/dist/effects/index.cjs +0 -1
- package/dist/effects/index.d.cts +4 -82
- package/dist/effects/index.d.ts +4 -82
- package/dist/effects/index.js +2 -3
- package/dist/effects/useEffects.d.cts +16 -0
- package/dist/effects/useEffects.d.ts +16 -0
- package/dist/find-replace/FindReplaceBar.d.cts +19 -0
- package/dist/find-replace/FindReplaceBar.d.ts +19 -0
- package/dist/find-replace/index.d.cts +2 -0
- package/dist/find-replace/index.d.ts +2 -0
- package/dist/find-replace/useFindReplace.d.cts +24 -0
- package/dist/find-replace/useFindReplace.d.ts +24 -0
- package/dist/generation/AssetMentionChips.d.cts +24 -0
- package/dist/generation/AssetMentionChips.d.ts +24 -0
- package/dist/generation/GenerationHistory.d.cts +43 -0
- package/dist/generation/GenerationHistory.d.ts +43 -0
- package/dist/generation/GenerationSettings.d.cts +26 -0
- package/dist/generation/GenerationSettings.d.ts +26 -0
- package/dist/generation/JobProgress.d.cts +14 -0
- package/dist/generation/JobProgress.d.ts +14 -0
- package/dist/generation/index.cjs +0 -1
- package/dist/generation/index.d.cts +5 -124
- package/dist/generation/index.d.ts +5 -124
- package/dist/generation/index.js +1 -2
- package/dist/generation/useGenerationPlan.d.cts +18 -0
- package/dist/generation/useGenerationPlan.d.ts +18 -0
- package/dist/hooks/useAgentToolProvider.d.cts +11 -0
- package/dist/hooks/useAgentToolProvider.d.ts +11 -0
- package/dist/hooks/useDismissGuard.d.cts +26 -0
- package/dist/hooks/useDismissGuard.d.ts +26 -0
- package/dist/hooks/useDocxExport.d.cts +14 -0
- package/dist/hooks/useDocxExport.d.ts +14 -0
- package/dist/hooks/useEditor.d.cts +20 -0
- package/dist/hooks/useEditor.d.ts +20 -0
- package/dist/hooks/useFileImport.d.cts +23 -0
- package/dist/hooks/useFileImport.d.ts +23 -0
- package/dist/hooks/useHistory.d.cts +27 -0
- package/dist/hooks/useHistory.d.ts +27 -0
- package/dist/hooks/useHistoryDirty.d.cts +27 -0
- package/dist/hooks/useHistoryDirty.d.ts +27 -0
- package/dist/hooks/useHistoryShortcuts.d.cts +21 -0
- package/dist/hooks/useHistoryShortcuts.d.ts +21 -0
- package/dist/hooks/useMergePreview.d.cts +49 -0
- package/dist/hooks/useMergePreview.d.ts +49 -0
- package/dist/hooks/useNavigationGuard.d.cts +27 -0
- package/dist/hooks/useNavigationGuard.d.ts +27 -0
- package/dist/hooks/useOutline.d.cts +12 -0
- package/dist/hooks/useOutline.d.ts +12 -0
- package/dist/hooks/useParagraphStyles.d.cts +24 -0
- package/dist/hooks/useParagraphStyles.d.ts +24 -0
- package/dist/hooks/usePromptEditor.d.cts +57 -0
- package/dist/hooks/usePromptEditor.d.ts +57 -0
- package/dist/hooks/useToolBridge.d.cts +14 -0
- package/dist/hooks/useToolBridge.d.ts +14 -0
- package/dist/image-editor/AdjustmentLayersPanel.d.cts +13 -0
- package/dist/image-editor/AdjustmentLayersPanel.d.ts +13 -0
- package/dist/image-editor/BrushOptionsBar.d.cts +18 -0
- package/dist/image-editor/BrushOptionsBar.d.ts +18 -0
- package/dist/image-editor/ColorProfilePanel.d.cts +12 -0
- package/dist/image-editor/ColorProfilePanel.d.ts +12 -0
- package/dist/image-editor/ControlSlider.d.cts +12 -0
- package/dist/image-editor/ControlSlider.d.ts +12 -0
- package/dist/image-editor/CurvesEditor.d.cts +15 -0
- package/dist/image-editor/CurvesEditor.d.ts +15 -0
- package/dist/image-editor/FreeTransformOptionsBar.d.cts +14 -0
- package/dist/image-editor/FreeTransformOptionsBar.d.ts +14 -0
- package/dist/image-editor/Histogram.d.cts +14 -0
- package/dist/image-editor/Histogram.d.ts +14 -0
- package/dist/image-editor/ImageEditor.d.cts +22 -0
- package/dist/image-editor/ImageEditor.d.ts +22 -0
- package/dist/image-editor/ImageProviderEffectsPanel.d.cts +13 -0
- package/dist/image-editor/ImageProviderEffectsPanel.d.ts +13 -0
- package/dist/image-editor/LayerEffectsPanel.d.cts +14 -0
- package/dist/image-editor/LayerEffectsPanel.d.ts +14 -0
- package/dist/image-editor/LayersPanel.d.cts +22 -0
- package/dist/image-editor/LayersPanel.d.ts +22 -0
- package/dist/image-editor/PaintGradientEditor.d.cts +5 -0
- package/dist/image-editor/PaintGradientEditor.d.ts +5 -0
- package/dist/image-editor/RefineEdgePanel.d.cts +16 -0
- package/dist/image-editor/RefineEdgePanel.d.ts +16 -0
- package/dist/image-editor/SelectionOptionsBar.d.cts +18 -0
- package/dist/image-editor/SelectionOptionsBar.d.ts +18 -0
- package/dist/image-editor/ShapeOptionsBar.d.cts +14 -0
- package/dist/image-editor/ShapeOptionsBar.d.ts +14 -0
- package/dist/image-editor/TypeOptionsBar.d.cts +16 -0
- package/dist/image-editor/TypeOptionsBar.d.ts +16 -0
- package/dist/image-editor/index.cjs +0 -1
- package/dist/image-editor/index.d.cts +17 -296
- package/dist/image-editor/index.d.ts +17 -296
- package/dist/image-editor/index.js +4 -5
- package/dist/image-editor/useImageEditor.d.cts +70 -0
- package/dist/image-editor/useImageEditor.d.ts +70 -0
- package/dist/index.cjs +0 -1
- package/dist/index.d.cts +35 -802
- package/dist/index.d.ts +35 -802
- package/dist/index.js +9 -10
- package/dist/paint-editor/BrushPanel.d.cts +18 -0
- package/dist/paint-editor/BrushPanel.d.ts +18 -0
- package/dist/paint-editor/ColorPanel.d.cts +17 -0
- package/dist/paint-editor/ColorPanel.d.ts +17 -0
- package/dist/paint-editor/PaintCanvas.d.cts +40 -0
- package/dist/paint-editor/PaintCanvas.d.ts +40 -0
- package/dist/paint-editor/PaintEditor.d.cts +18 -0
- package/dist/paint-editor/PaintEditor.d.ts +18 -0
- package/dist/paint-editor/PaintEffectsPanel.d.cts +19 -0
- package/dist/paint-editor/PaintEffectsPanel.d.ts +19 -0
- package/dist/paint-editor/PaintGradientEditor.d.cts +5 -0
- package/dist/paint-editor/PaintGradientEditor.d.ts +5 -0
- package/dist/paint-editor/PaintGradientEditorView.d.cts +23 -0
- package/dist/paint-editor/PaintGradientEditorView.d.ts +23 -0
- package/dist/paint-editor/PaintLayersPanel.d.cts +12 -0
- package/dist/paint-editor/PaintLayersPanel.d.ts +12 -0
- package/dist/paint-editor/PaintToolbar.d.cts +17 -0
- package/dist/paint-editor/PaintToolbar.d.ts +17 -0
- package/dist/paint-editor/PaperPanel.d.cts +13 -0
- package/dist/paint-editor/PaperPanel.d.ts +13 -0
- package/dist/paint-editor/StickerPanel.d.cts +12 -0
- package/dist/paint-editor/StickerPanel.d.ts +12 -0
- package/dist/paint-editor/WetPanel.d.cts +14 -0
- package/dist/paint-editor/WetPanel.d.ts +14 -0
- package/dist/paint-editor/index.cjs +0 -1
- package/dist/paint-editor/index.d.cts +13 -211
- package/dist/paint-editor/index.d.ts +13 -211
- package/dist/paint-editor/index.js +3 -4
- package/dist/paint-editor/shared.d.cts +38 -0
- package/dist/paint-editor/shared.d.ts +38 -0
- package/dist/paint-editor/usePaintEditor.d.cts +22 -0
- package/dist/paint-editor/usePaintEditor.d.ts +22 -0
- package/dist/parameters/ParametersPanel.d.cts +27 -0
- package/dist/parameters/ParametersPanel.d.ts +27 -0
- package/dist/parameters/fields.d.cts +62 -0
- package/dist/parameters/fields.d.ts +62 -0
- package/dist/parameters/index.cjs +0 -1
- package/dist/parameters/index.d.cts +3 -121
- package/dist/parameters/index.d.ts +3 -121
- package/dist/parameters/index.js +1 -2
- package/dist/parameters/useParameters.d.cts +32 -0
- package/dist/parameters/useParameters.d.ts +32 -0
- package/dist/persistence/RecoveryPrompt.d.cts +20 -0
- package/dist/persistence/RecoveryPrompt.d.ts +20 -0
- package/dist/persistence/index.cjs +0 -1
- package/dist/persistence/index.d.cts +2 -77
- package/dist/persistence/index.d.ts +2 -77
- package/dist/persistence/index.js +1 -2
- package/dist/persistence/useAutosave.d.cts +54 -0
- package/dist/persistence/useAutosave.d.ts +54 -0
- package/dist/review/CommentButton.d.cts +12 -0
- package/dist/review/CommentButton.d.ts +12 -0
- package/dist/review/CommentsPanel.d.cts +21 -0
- package/dist/review/CommentsPanel.d.ts +21 -0
- package/dist/review/ReviewToolbar.d.cts +20 -0
- package/dist/review/ReviewToolbar.d.ts +20 -0
- package/dist/review/TrackedChangesList.d.cts +18 -0
- package/dist/review/TrackedChangesList.d.ts +18 -0
- package/dist/review/index.d.cts +6 -0
- package/dist/review/index.d.ts +6 -0
- package/dist/review/useDocumentCompare.d.cts +20 -0
- package/dist/review/useDocumentCompare.d.ts +20 -0
- package/dist/review/useReview.d.cts +32 -0
- package/dist/review/useReview.d.ts +32 -0
- package/dist/slots.d.cts +14 -0
- package/dist/slots.d.ts +14 -0
- package/dist/spreadsheet/FormulaHints.d.cts +24 -0
- package/dist/spreadsheet/FormulaHints.d.ts +24 -0
- package/dist/spreadsheet/NameManager.d.cts +14 -0
- package/dist/spreadsheet/NameManager.d.ts +14 -0
- package/dist/spreadsheet/SheetTabs.d.cts +13 -0
- package/dist/spreadsheet/SheetTabs.d.ts +13 -0
- package/dist/spreadsheet/SpreadsheetContextMenu.d.cts +14 -0
- package/dist/spreadsheet/SpreadsheetContextMenu.d.ts +14 -0
- package/dist/spreadsheet/SpreadsheetEditor.d.cts +24 -0
- package/dist/spreadsheet/SpreadsheetEditor.d.ts +24 -0
- package/dist/spreadsheet/SpreadsheetGroupRow.d.cts +19 -0
- package/dist/spreadsheet/SpreadsheetGroupRow.d.ts +19 -0
- package/dist/spreadsheet/SpreadsheetRulePanels.d.cts +18 -0
- package/dist/spreadsheet/SpreadsheetRulePanels.d.ts +18 -0
- package/dist/spreadsheet/SpreadsheetValidationDialog.d.cts +11 -0
- package/dist/spreadsheet/SpreadsheetValidationDialog.d.ts +11 -0
- package/dist/spreadsheet/index.cjs +0 -1
- package/dist/spreadsheet/index.d.cts +11 -309
- package/dist/spreadsheet/index.d.ts +11 -309
- package/dist/spreadsheet/index.js +1 -2
- package/dist/spreadsheet/useSpreadsheetEditor.d.cts +126 -0
- package/dist/spreadsheet/useSpreadsheetEditor.d.ts +126 -0
- package/dist/spreadsheet/useSpreadsheetTableInteractions.d.cts +30 -0
- package/dist/spreadsheet/useSpreadsheetTableInteractions.d.ts +30 -0
- package/dist/spreadsheet/useSpreadsheetViewport.d.cts +25 -0
- package/dist/spreadsheet/useSpreadsheetViewport.d.ts +25 -0
- package/dist/tables/InsertTableGrid.d.cts +25 -0
- package/dist/tables/InsertTableGrid.d.ts +25 -0
- package/dist/tables/TableBubbleMenu.d.cts +18 -0
- package/dist/tables/TableBubbleMenu.d.ts +18 -0
- package/dist/tables/TableToolbar.d.cts +23 -0
- package/dist/tables/TableToolbar.d.ts +23 -0
- package/dist/tables/index.d.cts +4 -0
- package/dist/tables/index.d.ts +4 -0
- package/dist/tables/useTableMenu.d.cts +17 -0
- package/dist/tables/useTableMenu.d.ts +17 -0
- package/dist/tokens/TokensPanel.d.cts +22 -0
- package/dist/tokens/TokensPanel.d.ts +22 -0
- package/dist/tokens/index.cjs +0 -1
- package/dist/tokens/index.d.cts +2 -54
- package/dist/tokens/index.d.ts +2 -54
- package/dist/tokens/index.js +0 -1
- package/dist/tokens/useTokens.d.cts +29 -0
- package/dist/tokens/useTokens.d.ts +29 -0
- package/dist/vector/VectorAppearancePanel.d.cts +14 -0
- package/dist/vector/VectorAppearancePanel.d.ts +14 -0
- package/dist/vector/VectorCanvas.d.cts +58 -0
- package/dist/vector/VectorCanvas.d.ts +58 -0
- package/dist/vector/VectorConnectorPanel.d.cts +12 -0
- package/dist/vector/VectorConnectorPanel.d.ts +12 -0
- package/dist/vector/VectorConstraintsPanel.d.cts +12 -0
- package/dist/vector/VectorConstraintsPanel.d.ts +12 -0
- package/dist/vector/VectorEditor.d.cts +23 -0
- package/dist/vector/VectorEditor.d.ts +23 -0
- package/dist/vector/VectorEffectsPanel.d.cts +13 -0
- package/dist/vector/VectorEffectsPanel.d.ts +13 -0
- package/dist/vector/VectorEnvelopePanel.d.cts +13 -0
- package/dist/vector/VectorEnvelopePanel.d.ts +13 -0
- package/dist/vector/VectorFramePanel.d.cts +12 -0
- package/dist/vector/VectorFramePanel.d.ts +12 -0
- package/dist/vector/VectorGeneratePanel.d.cts +15 -0
- package/dist/vector/VectorGeneratePanel.d.ts +15 -0
- package/dist/vector/VectorGradientEditor.d.cts +12 -0
- package/dist/vector/VectorGradientEditor.d.ts +12 -0
- package/dist/vector/VectorLensPanel.d.cts +12 -0
- package/dist/vector/VectorLensPanel.d.ts +12 -0
- package/dist/vector/VectorMaskPanel.d.cts +13 -0
- package/dist/vector/VectorMaskPanel.d.ts +13 -0
- package/dist/vector/VectorPagesPanel.d.cts +11 -0
- package/dist/vector/VectorPagesPanel.d.ts +11 -0
- package/dist/vector/VectorPerspectivePanel.d.cts +12 -0
- package/dist/vector/VectorPerspectivePanel.d.ts +12 -0
- package/dist/vector/VectorProviderEffectsPanel.d.cts +12 -0
- package/dist/vector/VectorProviderEffectsPanel.d.ts +12 -0
- package/dist/vector/VectorShadingPanel.d.cts +12 -0
- package/dist/vector/VectorShadingPanel.d.ts +12 -0
- package/dist/vector/VectorSymbolsPanel.d.cts +12 -0
- package/dist/vector/VectorSymbolsPanel.d.ts +12 -0
- package/dist/vector/VectorSymmetryPanel.d.cts +12 -0
- package/dist/vector/VectorSymmetryPanel.d.ts +12 -0
- package/dist/vector/VectorTextPanel.d.cts +14 -0
- package/dist/vector/VectorTextPanel.d.ts +14 -0
- package/dist/vector/VectorToolbar.d.cts +39 -0
- package/dist/vector/VectorToolbar.d.ts +39 -0
- package/dist/vector/VectorTracePanel.d.cts +12 -0
- package/dist/vector/VectorTracePanel.d.ts +12 -0
- package/dist/vector/VectorWidthPointEditor.d.cts +18 -0
- package/dist/vector/VectorWidthPointEditor.d.ts +18 -0
- package/dist/vector/index.cjs +0 -1
- package/dist/vector/index.d.cts +23 -384
- package/dist/vector/index.d.ts +23 -384
- package/dist/vector/index.js +2 -3
- package/dist/vector/useVectorEditor.d.cts +40 -0
- package/dist/vector/useVectorEditor.d.ts +40 -0
- package/dist/video-editor/ClipInspector.d.cts +14 -0
- package/dist/video-editor/ClipInspector.d.ts +14 -0
- package/dist/video-editor/MediaBin.d.cts +18 -0
- package/dist/video-editor/MediaBin.d.ts +18 -0
- package/dist/video-editor/TranscriptPanel.d.cts +17 -0
- package/dist/video-editor/TranscriptPanel.d.ts +17 -0
- package/dist/video-editor/VideoEditor.d.cts +41 -0
- package/dist/video-editor/VideoEditor.d.ts +41 -0
- package/dist/video-editor/VideoEffectsPanel.d.cts +13 -0
- package/dist/video-editor/VideoEffectsPanel.d.ts +13 -0
- package/dist/video-editor/VideoPreview.d.cts +17 -0
- package/dist/video-editor/VideoPreview.d.ts +17 -0
- package/dist/video-editor/VideoScopes.d.cts +17 -0
- package/dist/video-editor/VideoScopes.d.ts +17 -0
- package/dist/video-editor/VideoTimeline.d.cts +15 -0
- package/dist/video-editor/VideoTimeline.d.ts +15 -0
- package/dist/video-editor/VideoTransport.d.cts +14 -0
- package/dist/video-editor/VideoTransport.d.ts +14 -0
- package/dist/video-editor/index.cjs +0 -1
- package/dist/video-editor/index.d.cts +10 -203
- package/dist/video-editor/index.d.ts +10 -203
- package/dist/video-editor/index.js +2 -3
- package/dist/video-editor/useVideoEditor.d.cts +42 -0
- package/dist/video-editor/useVideoEditor.d.ts +42 -0
- package/package.json +124 -49
- package/dist/PaintGradientEditorView-CCPCY5Ib.d.cts +0 -14
- package/dist/PaintGradientEditorView-CCPCY5Ib.d.ts +0 -14
- package/dist/animation-editor/index.cjs.map +0 -1
- package/dist/animation-editor/index.js.map +0 -1
- package/dist/canvas/index.cjs.map +0 -1
- package/dist/canvas/index.js.map +0 -1
- package/dist/chart/index.cjs.map +0 -1
- package/dist/chart/index.js.map +0 -1
- package/dist/chunk-34HEZX7J.js.map +0 -1
- package/dist/chunk-4FQXRPBN.js.map +0 -1
- package/dist/chunk-4ZC2WCUO.js.map +0 -1
- package/dist/chunk-I3E4KSA2.js.map +0 -1
- package/dist/chunk-MO354USR.js.map +0 -1
- package/dist/chunk-SIEOYRHX.js.map +0 -1
- package/dist/chunk-WOQ3H7KA.js.map +0 -1
- package/dist/chunk-XWFU2CSG.js.map +0 -1
- package/dist/chunk-ZQZAKUUM.js.map +0 -1
- package/dist/commands/index.cjs.map +0 -1
- package/dist/commands/index.js.map +0 -1
- package/dist/effects/index.cjs.map +0 -1
- package/dist/effects/index.js.map +0 -1
- package/dist/generation/index.cjs.map +0 -1
- package/dist/generation/index.js.map +0 -1
- package/dist/image-editor/index.cjs.map +0 -1
- package/dist/image-editor/index.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/paint-editor/index.cjs.map +0 -1
- package/dist/paint-editor/index.js.map +0 -1
- package/dist/parameters/index.cjs.map +0 -1
- package/dist/parameters/index.js.map +0 -1
- package/dist/persistence/index.cjs.map +0 -1
- package/dist/persistence/index.js.map +0 -1
- package/dist/spreadsheet/index.cjs.map +0 -1
- package/dist/spreadsheet/index.js.map +0 -1
- package/dist/tokens/index.cjs.map +0 -1
- package/dist/tokens/index.js.map +0 -1
- package/dist/vector/index.cjs.map +0 -1
- package/dist/vector/index.js.map +0 -1
- package/dist/video-editor/index.cjs.map +0 -1
- package/dist/video-editor/index.js.map +0 -1
|
@@ -1,195 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
state: AnimationEditorState;
|
|
13
|
-
play: () => void;
|
|
14
|
-
pause: () => void;
|
|
15
|
-
toggle: () => void;
|
|
16
|
-
seek: (time: number) => void;
|
|
17
|
-
undo: () => void;
|
|
18
|
-
redo: () => void;
|
|
19
|
-
/** The frame at the playhead as SVG. */
|
|
20
|
-
toSvg: () => string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Subscribes to an animation editor controller and exposes its state with bound actions.
|
|
24
|
-
* Pass options instead of a controller to create one for the component's lifetime.
|
|
25
|
-
*/
|
|
26
|
-
declare function useAnimationEditor(controllerOrOptions?: AnimationEditorController | AnimationEditorOptions): UseAnimationEditorResult;
|
|
27
|
-
/**
|
|
28
|
-
* Registers the animation editor's agent tools (`get_animation`, `add_commands`,
|
|
29
|
-
* `export_flair_effect`, …) in `registry` while mounted.
|
|
30
|
-
*/
|
|
31
|
-
declare function useAnimationEditorTools(registry: ToolRegistry | null | undefined, controller: AnimationEditorController, options?: AnimationEditorToolProviderOptions): void;
|
|
32
|
-
/**
|
|
33
|
-
* Registers the animation editor's provider-effect tools (`search_effects`, `apply_effect`,
|
|
34
|
-
* `add_vector_effect`, …) in `registry` while mounted. They work once an effects provider is
|
|
35
|
-
* registered (see `useEffects`).
|
|
36
|
-
*/
|
|
37
|
-
declare function useAnimationEffectsTools(registry: ToolRegistry | null | undefined, controller: AnimationEditorController, options?: AnimationEffectsToolProviderOptions): void;
|
|
38
|
-
|
|
39
|
-
interface AnimationStageProps {
|
|
40
|
-
controller: AnimationEditorController;
|
|
41
|
-
/** Control values to preview (`{ accent: "#0ea5e9" }`). */
|
|
42
|
-
values?: MotionFrameOptions['values'];
|
|
43
|
-
/** Faded frames either side of the playhead. */
|
|
44
|
-
onionSkin?: MotionOnionSkin;
|
|
45
|
-
/** Draw where nodes travel: true for every node whose place changes, or a list of ids. */
|
|
46
|
-
motionPaths?: boolean | readonly string[];
|
|
47
|
-
/**
|
|
48
|
-
* Called when the stage is clicked, with the id of the artwork node under the pointer (the
|
|
49
|
-
* innermost one; null for the background, ghosts and paths). Makes the stage pickable.
|
|
50
|
-
*/
|
|
51
|
-
onPick?: (id: string | null, event: React__default.MouseEvent<HTMLDivElement>) => void;
|
|
52
|
-
/** Node ids to outline (e.g. the picked element and the selected command's targets). */
|
|
53
|
-
highlight?: readonly string[];
|
|
54
|
-
className?: string;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* The animation's frame at the playhead, drawn as inline SVG scaled to the stage's width. The
|
|
58
|
-
* SVG keeps the artwork's node ids, so `onPick` can say which element was clicked.
|
|
59
|
-
*/
|
|
60
|
-
declare function AnimationStage({ controller, values, onionSkin, motionPaths, onPick, highlight, className }: AnimationStageProps): React__default.JSX.Element;
|
|
61
|
-
|
|
62
|
-
interface ShotTimelineProps {
|
|
63
|
-
controller: AnimationEditorController;
|
|
64
|
-
className?: string;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Play / pause, the playhead and one block per shot (as wide as it is long): click a shot to
|
|
68
|
-
* select it and jump to its start, click the ruler to seek. Shots with errors or warnings are marked.
|
|
69
|
-
*/
|
|
70
|
-
declare function ShotTimeline({ controller, className }: ShotTimelineProps): React__default.JSX.Element;
|
|
71
|
-
|
|
72
|
-
interface AnimationEditorProps {
|
|
73
|
-
controller: AnimationEditorController;
|
|
74
|
-
values?: MotionFrameOptions['values'];
|
|
75
|
-
/** Faded frames either side of the playhead (see `<AnimationStage onionSkin>`). Default: an Onion skin toggle. */
|
|
76
|
-
onionSkin?: MotionOnionSkin;
|
|
77
|
-
/** Draw where nodes travel (see `<AnimationStage motionPaths>`). Default: a Motion paths toggle. */
|
|
78
|
-
motionPaths?: boolean | readonly string[];
|
|
79
|
-
/** List the scene's issues under the timeline (default true). */
|
|
80
|
-
showIssues?: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Show the hand-editing panels: the command list and inspector, the shot inspector, scene
|
|
83
|
-
* settings, undo / redo and picking on the stage (default true). False shows the stage,
|
|
84
|
-
* scrubber and issues only.
|
|
85
|
-
*/
|
|
86
|
-
editable?: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* An effects provider (see `@pixerate/editor/effects`), registered with the controller while
|
|
89
|
-
* mounted: provider motion applied to the picked element and vector effects, with an Effects
|
|
90
|
-
* panel. Optional: without one the editor is as before.
|
|
91
|
-
*/
|
|
92
|
-
effects?: EffectProvider | null;
|
|
93
|
-
className?: string;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* A whole animation editor for an `AnimationEditorController`: the stage (click an element to
|
|
97
|
-
* pick it, shift-click to add it to or remove it from the selected command's targets), the
|
|
98
|
-
* playhead scrubber, and panels to edit commands, shots and scene settings by hand. Every edit
|
|
99
|
-
* is one undo step.
|
|
100
|
-
*/
|
|
101
|
-
declare function AnimationEditor({ controller, values, onionSkin, motionPaths, showIssues, editable, effects, className }: AnimationEditorProps): React__default.JSX.Element;
|
|
102
|
-
|
|
103
|
-
interface PlayheadScrubberProps {
|
|
104
|
-
controller: AnimationEditorController;
|
|
105
|
-
className?: string;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Play, pause and loop, a time ruler (with the beat grid and narration words when the scene has
|
|
109
|
-
* them) to scrub by dragging, and one band per shot (as wide as it is long): click a band to
|
|
110
|
-
* select the shot and jump to its start. Loop is a scene setting, so changing it is one undo step.
|
|
111
|
-
*/
|
|
112
|
-
declare function PlayheadScrubber({ controller, className }: PlayheadScrubberProps): React__default.JSX.Element;
|
|
113
|
-
|
|
114
|
-
interface CommandListProps {
|
|
115
|
-
controller: AnimationEditorController;
|
|
116
|
-
/** The shot to list (default: the selected shot, else the first). */
|
|
117
|
-
shot?: string;
|
|
118
|
-
/** Targets for a new command (e.g. the element picked on the stage); default: the selected command's. */
|
|
119
|
-
targets?: readonly string[];
|
|
120
|
-
className?: string;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* A shot's commands in order: select one to inspect it, change `with` and `delay` inline, move,
|
|
124
|
-
* duplicate or delete it, and add new ones. Each change is one `controller.apply` edit (one undo
|
|
125
|
-
* step); a refused edit shows its reason.
|
|
126
|
-
*/
|
|
127
|
-
declare function CommandList({ controller, shot, targets, className }: CommandListProps): React__default.JSX.Element;
|
|
128
|
-
|
|
129
|
-
interface CommandInspectorProps {
|
|
130
|
-
controller: AnimationEditorController;
|
|
131
|
-
/** An element picked on the stage, offered as a target to add. */
|
|
132
|
-
picked?: string | null;
|
|
133
|
-
className?: string;
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* A form for the selected command, generated from `MOTION_COMMAND_SCHEMA` (the schema the
|
|
137
|
-
* agent tools take): enums as selects, numbers with their units and limits, node pickers for
|
|
138
|
-
* targets and for `into` / `path`, and an ease picker. Shows the Flair primitive it plays.
|
|
139
|
-
*/
|
|
140
|
-
declare function CommandInspector({ controller, picked, className }: CommandInspectorProps): React__default.JSX.Element;
|
|
141
|
-
|
|
142
|
-
/** An easing (a preset name or a curve), as commands take it. */
|
|
143
|
-
type AnimationEasing = NonNullable<MotionCommandBase['ease']>;
|
|
144
|
-
interface EasePickerProps {
|
|
145
|
-
/** The easing (undefined: the command type's default). */
|
|
146
|
-
value: AnimationEasing | undefined;
|
|
147
|
-
/** Called with the picked preset, or undefined for the default. */
|
|
148
|
-
onChange: (ease: AnimationEasing | undefined) => void;
|
|
149
|
-
disabled?: boolean;
|
|
150
|
-
className?: string;
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Picks an easing preset (springs included) and previews its curve, drawn by sampling
|
|
154
|
-
* `evaluateEasing`; a spring is drawn over the time it takes to settle, overshoot included.
|
|
155
|
-
*/
|
|
156
|
-
declare function EasePicker({ value, onChange, disabled, className }: EasePickerProps): React__default.JSX.Element;
|
|
157
|
-
|
|
158
|
-
interface ShotInspectorProps {
|
|
159
|
-
controller: AnimationEditorController;
|
|
160
|
-
/** The shot to edit (default: the selected shot, else the first). */
|
|
161
|
-
shot?: string;
|
|
162
|
-
className?: string;
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* The selected shot: its label, hold, speed, the node the camera frames, and the cue it starts
|
|
166
|
-
* on (a beat of the scene's grid or a narration word). Also adds, moves and deletes shots.
|
|
167
|
-
* Every change is one undo step.
|
|
168
|
-
*/
|
|
169
|
-
declare function ShotInspector({ controller, shot, className }: ShotInspectorProps): React__default.JSX.Element;
|
|
170
|
-
|
|
171
|
-
interface SceneSettingsProps {
|
|
172
|
-
controller: AnimationEditorController;
|
|
173
|
-
className?: string;
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* Scene settings: loop, frame rate, stepped time, the wanted length with a Fit button (sets the
|
|
177
|
-
* shots' speeds with `fitMotionScene`, as `fit_animation` does), a beat grid and narration words
|
|
178
|
-
* to cue shots to. Every change is one undo step; refusals show their reason.
|
|
179
|
-
*/
|
|
180
|
-
declare function SceneSettings({ controller, className }: SceneSettingsProps): React__default.JSX.Element;
|
|
181
|
-
|
|
182
|
-
interface AnimationEffectsPanelProps {
|
|
183
|
-
controller: AnimationEditorController;
|
|
184
|
-
/** The node motion effects are applied to (e.g. the element picked on the stage). */
|
|
185
|
-
node?: string | null;
|
|
186
|
-
className?: string;
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* Provider effects in an animation: apply a motion effect to a node (its changes become commands
|
|
190
|
-
* in a new shot), add a vector effect with its own picture, and change or remove the effects the
|
|
191
|
-
* scene holds. Every change is one undo step (a slider drag is one).
|
|
192
|
-
*/
|
|
193
|
-
declare function AnimationEffectsPanel({ controller, node, className }: AnimationEffectsPanelProps): React__default.JSX.Element;
|
|
194
|
-
|
|
195
|
-
export { AnimationEditor, type AnimationEditorProps, AnimationEffectsPanel, type AnimationEffectsPanelProps, AnimationStage, type AnimationStageProps, CommandInspector, type CommandInspectorProps, CommandList, type CommandListProps, EasePicker, type EasePickerProps, PlayheadScrubber, type PlayheadScrubberProps, SceneSettings, type SceneSettingsProps, ShotInspector, type ShotInspectorProps, ShotTimeline, type ShotTimelineProps, type UseAnimationEditorResult, useAnimationEditor, useAnimationEditorController, useAnimationEditorState, useAnimationEditorTools, useAnimationEffectsTools };
|
|
1
|
+
export * from './useAnimationEditor.js';
|
|
2
|
+
export * from './AnimationStage.js';
|
|
3
|
+
export * from './ShotTimeline.js';
|
|
4
|
+
export * from './AnimationEditor.js';
|
|
5
|
+
export * from './PlayheadScrubber.js';
|
|
6
|
+
export * from './CommandList.js';
|
|
7
|
+
export * from './CommandInspector.js';
|
|
8
|
+
export * from './EasePicker.js';
|
|
9
|
+
export * from './ShotInspector.js';
|
|
10
|
+
export * from './SceneSettings.js';
|
|
11
|
+
export * from './AnimationEffectsPanel.js';
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
EffectsBrowser,
|
|
4
4
|
useEffectDescription,
|
|
5
5
|
useEffects
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-5R67YSSD.js";
|
|
7
|
+
import "../chunk-OTGJEYHV.js";
|
|
8
8
|
|
|
9
9
|
// src/animation-editor/useAnimationEditor.ts
|
|
10
10
|
import { useEffect, useMemo, useRef, useSyncExternalStore } from "react";
|
|
@@ -1130,4 +1130,3 @@ export {
|
|
|
1130
1130
|
useAnimationEditorTools,
|
|
1131
1131
|
useAnimationEffectsTools
|
|
1132
1132
|
};
|
|
1133
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AnimationEditorController, type AnimationEffectsToolProviderOptions, type AnimationEditorOptions, type AnimationEditorState, type AnimationEditorToolProviderOptions } from '@pixerate/editor/animation-editor';
|
|
2
|
+
import type { ToolRegistry } from '@pixerate/editor/tools';
|
|
3
|
+
/** An `AnimationEditorController` created once for the component's lifetime (destroyed on unmount). */
|
|
4
|
+
export declare function useAnimationEditorController(options?: AnimationEditorOptions): AnimationEditorController;
|
|
5
|
+
/** The controller's state (re-renders on every change, including each played frame). */
|
|
6
|
+
export declare function useAnimationEditorState(controller: AnimationEditorController): AnimationEditorState;
|
|
7
|
+
export interface UseAnimationEditorResult {
|
|
8
|
+
controller: AnimationEditorController;
|
|
9
|
+
state: AnimationEditorState;
|
|
10
|
+
play: () => void;
|
|
11
|
+
pause: () => void;
|
|
12
|
+
toggle: () => void;
|
|
13
|
+
seek: (time: number) => void;
|
|
14
|
+
undo: () => void;
|
|
15
|
+
redo: () => void;
|
|
16
|
+
/** The frame at the playhead as SVG. */
|
|
17
|
+
toSvg: () => string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Subscribes to an animation editor controller and exposes its state with bound actions.
|
|
21
|
+
* Pass options instead of a controller to create one for the component's lifetime.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useAnimationEditor(controllerOrOptions?: AnimationEditorController | AnimationEditorOptions): UseAnimationEditorResult;
|
|
24
|
+
/**
|
|
25
|
+
* Registers the animation editor's agent tools (`get_animation`, `add_commands`,
|
|
26
|
+
* `export_flair_effect`, …) in `registry` while mounted.
|
|
27
|
+
*/
|
|
28
|
+
export declare function useAnimationEditorTools(registry: ToolRegistry | null | undefined, controller: AnimationEditorController, options?: AnimationEditorToolProviderOptions): void;
|
|
29
|
+
/**
|
|
30
|
+
* Registers the animation editor's provider-effect tools (`search_effects`, `apply_effect`,
|
|
31
|
+
* `add_vector_effect`, …) in `registry` while mounted. They work once an effects provider is
|
|
32
|
+
* registered (see `useEffects`).
|
|
33
|
+
*/
|
|
34
|
+
export declare function useAnimationEffectsTools(registry: ToolRegistry | null | undefined, controller: AnimationEditorController, options?: AnimationEffectsToolProviderOptions): void;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AnimationEditorController, type AnimationEffectsToolProviderOptions, type AnimationEditorOptions, type AnimationEditorState, type AnimationEditorToolProviderOptions } from '@pixerate/editor/animation-editor';
|
|
2
|
+
import type { ToolRegistry } from '@pixerate/editor/tools';
|
|
3
|
+
/** An `AnimationEditorController` created once for the component's lifetime (destroyed on unmount). */
|
|
4
|
+
export declare function useAnimationEditorController(options?: AnimationEditorOptions): AnimationEditorController;
|
|
5
|
+
/** The controller's state (re-renders on every change, including each played frame). */
|
|
6
|
+
export declare function useAnimationEditorState(controller: AnimationEditorController): AnimationEditorState;
|
|
7
|
+
export interface UseAnimationEditorResult {
|
|
8
|
+
controller: AnimationEditorController;
|
|
9
|
+
state: AnimationEditorState;
|
|
10
|
+
play: () => void;
|
|
11
|
+
pause: () => void;
|
|
12
|
+
toggle: () => void;
|
|
13
|
+
seek: (time: number) => void;
|
|
14
|
+
undo: () => void;
|
|
15
|
+
redo: () => void;
|
|
16
|
+
/** The frame at the playhead as SVG. */
|
|
17
|
+
toSvg: () => string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Subscribes to an animation editor controller and exposes its state with bound actions.
|
|
21
|
+
* Pass options instead of a controller to create one for the component's lifetime.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useAnimationEditor(controllerOrOptions?: AnimationEditorController | AnimationEditorOptions): UseAnimationEditorResult;
|
|
24
|
+
/**
|
|
25
|
+
* Registers the animation editor's agent tools (`get_animation`, `add_commands`,
|
|
26
|
+
* `export_flair_effect`, …) in `registry` while mounted.
|
|
27
|
+
*/
|
|
28
|
+
export declare function useAnimationEditorTools(registry: ToolRegistry | null | undefined, controller: AnimationEditorController, options?: AnimationEditorToolProviderOptions): void;
|
|
29
|
+
/**
|
|
30
|
+
* Registers the animation editor's provider-effect tools (`search_effects`, `apply_effect`,
|
|
31
|
+
* `add_vector_effect`, …) in `registry` while mounted. They work once an effects provider is
|
|
32
|
+
* registered (see `useEffects`).
|
|
33
|
+
*/
|
|
34
|
+
export declare function useAnimationEffectsTools(registry: ToolRegistry | null | undefined, controller: AnimationEditorController, options?: AnimationEffectsToolProviderOptions): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AgentPresence } from '@pixerate/editor/agent';
|
|
3
|
+
export interface AgentPresenceLayerProps {
|
|
4
|
+
presences: AgentPresence[];
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Visual multiplayer and agent choreography presence layer for React Canvas.
|
|
9
|
+
* Renders floating cursor indicators, agent name tags, and active status tooltips.
|
|
10
|
+
*/
|
|
11
|
+
export declare function AgentPresenceLayer({ presences, className }: AgentPresenceLayerProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AgentPresence } from '@pixerate/editor/agent';
|
|
3
|
+
export interface AgentPresenceLayerProps {
|
|
4
|
+
presences: AgentPresence[];
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Visual multiplayer and agent choreography presence layer for React Canvas.
|
|
9
|
+
* Renders floating cursor indicators, agent name tags, and active status tooltips.
|
|
10
|
+
*/
|
|
11
|
+
export declare function AgentPresenceLayer({ presences, className }: AgentPresenceLayerProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type CanvasNode } from '@pixerate/editor/canvas';
|
|
3
|
+
import type { CanvasAnimation } from './useCanvasAnimation.cjs';
|
|
4
|
+
export interface AnimationTimelineProps {
|
|
5
|
+
/** The `useCanvasAnimation` result. */
|
|
6
|
+
animation: CanvasAnimation<any>;
|
|
7
|
+
/** Nodes whose tracks are listed (default: the selected nodes). */
|
|
8
|
+
nodeIds?: readonly string[];
|
|
9
|
+
/** Width of the keyframe lanes in px (default 360). */
|
|
10
|
+
width?: number;
|
|
11
|
+
/** Snap distance in screen px while dragging keyframes (default 8; hold Alt to turn snapping off). */
|
|
12
|
+
snapThreshold?: number;
|
|
13
|
+
labelOf?: (node: CanvasNode) => string;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Compact timeline: play / pause, record toggle, playhead ruler (drag to scrub), one lane per
|
|
18
|
+
* animated property of the selected nodes with draggable keyframe diamonds (snapping to other
|
|
19
|
+
* keys, the playhead and frames; Shift-click adds to the selection, Escape cancels a drag,
|
|
20
|
+
* Delete removes), an easing picker for the selected keyframes and the loop mode.
|
|
21
|
+
*/
|
|
22
|
+
export declare function AnimationTimeline({ animation, nodeIds, width, snapThreshold, labelOf, className }: AnimationTimelineProps): React.JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type CanvasNode } from '@pixerate/editor/canvas';
|
|
3
|
+
import type { CanvasAnimation } from './useCanvasAnimation.js';
|
|
4
|
+
export interface AnimationTimelineProps {
|
|
5
|
+
/** The `useCanvasAnimation` result. */
|
|
6
|
+
animation: CanvasAnimation<any>;
|
|
7
|
+
/** Nodes whose tracks are listed (default: the selected nodes). */
|
|
8
|
+
nodeIds?: readonly string[];
|
|
9
|
+
/** Width of the keyframe lanes in px (default 360). */
|
|
10
|
+
width?: number;
|
|
11
|
+
/** Snap distance in screen px while dragging keyframes (default 8; hold Alt to turn snapping off). */
|
|
12
|
+
snapThreshold?: number;
|
|
13
|
+
labelOf?: (node: CanvasNode) => string;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Compact timeline: play / pause, record toggle, playhead ruler (drag to scrub), one lane per
|
|
18
|
+
* animated property of the selected nodes with draggable keyframe diamonds (snapping to other
|
|
19
|
+
* keys, the playhead and frames; Shift-click adds to the selection, Escape cancels a drag,
|
|
20
|
+
* Delete removes), an easing picker for the selected keyframes and the loop mode.
|
|
21
|
+
*/
|
|
22
|
+
export declare function AnimationTimeline({ animation, nodeIds, width, snapThreshold, labelOf, className }: AnimationTimelineProps): React.JSX.Element;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type CanvasComponentsController, type CanvasNode } from '@pixerate/editor/canvas';
|
|
3
|
+
/** The variant-editing actions the components panel runs (a components controller or hook satisfies it). */
|
|
4
|
+
export type CanvasComponentsPanelActions = Pick<CanvasComponentsController<any>, 'addVariant' | 'removeVariant' | 'setVariantProperties' | 'renameVariantProperty' | 'renameVariantValue'>;
|
|
5
|
+
export interface CanvasComponentsPanelProps<TNode extends CanvasNode = CanvasNode> {
|
|
6
|
+
nodes: TNode[];
|
|
7
|
+
/** Inserts an instance of a component (or a set's default variant); called on click. */
|
|
8
|
+
onInsert: (componentId: string) => void;
|
|
9
|
+
/**
|
|
10
|
+
* Variant editing: with it, sets get "+ Variant" and a properties editor (rename properties
|
|
11
|
+
* and values inline), and variants a menu (also on right click) to edit, duplicate or remove them.
|
|
12
|
+
*/
|
|
13
|
+
components?: CanvasComponentsPanelActions;
|
|
14
|
+
/** Receives refusals (e.g. a duplicate variant combination). */
|
|
15
|
+
onError?: (reason: string) => void;
|
|
16
|
+
/** Show the search field (default `true`). */
|
|
17
|
+
search?: boolean;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Components panel: component sets (with their variants) and lone components. Click one to
|
|
22
|
+
* insert an instance, or drag it onto the canvas (the drag carries the id as
|
|
23
|
+
* `CANVAS_COMPONENT_DRAG_TYPE`; read it with `getCanvasComponentDragId`). With `components`,
|
|
24
|
+
* sets and variants can be edited: "+ Variant", rename properties / values, edit, duplicate or
|
|
25
|
+
* remove a variant.
|
|
26
|
+
*/
|
|
27
|
+
export declare function CanvasComponentsPanel<TNode extends CanvasNode = CanvasNode>({ nodes, onInsert, components, onError, search, className }: CanvasComponentsPanelProps<TNode>): React.JSX.Element;
|
|
28
|
+
/** The actions the instance inspector runs (a components controller or hook satisfies it). */
|
|
29
|
+
export type CanvasInstanceInspectorActions = Pick<CanvasComponentsController<any>, 'setInstanceProperties' | 'resetOverrides' | 'detachInstance' | 'goToMainComponent' | 'pushOverrides' | 'restoreMainComponent'>;
|
|
30
|
+
export interface CanvasInstanceInspectorProps<TNode extends CanvasNode = CanvasNode> {
|
|
31
|
+
nodes: TNode[];
|
|
32
|
+
/** An instance, or a layer inside one; nothing is shown otherwise. */
|
|
33
|
+
nodeId: string | null | undefined;
|
|
34
|
+
components: CanvasInstanceInspectorActions;
|
|
35
|
+
/** Receives refusals (e.g. a property value that would nest a component in itself). */
|
|
36
|
+
onError?: (reason: string) => void;
|
|
37
|
+
className?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Instance inspector: main component (or "missing main" with Restore), variant pickers,
|
|
41
|
+
* component property controls, the overrides of its layers (each resettable), and Reset all,
|
|
42
|
+
* Detach, Go to main and Push changes.
|
|
43
|
+
*/
|
|
44
|
+
export declare function CanvasInstanceInspector<TNode extends CanvasNode = CanvasNode>({ nodes, nodeId, components, onError, className }: CanvasInstanceInspectorProps<TNode>): React.JSX.Element | null;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type CanvasComponentsController, type CanvasNode } from '@pixerate/editor/canvas';
|
|
3
|
+
/** The variant-editing actions the components panel runs (a components controller or hook satisfies it). */
|
|
4
|
+
export type CanvasComponentsPanelActions = Pick<CanvasComponentsController<any>, 'addVariant' | 'removeVariant' | 'setVariantProperties' | 'renameVariantProperty' | 'renameVariantValue'>;
|
|
5
|
+
export interface CanvasComponentsPanelProps<TNode extends CanvasNode = CanvasNode> {
|
|
6
|
+
nodes: TNode[];
|
|
7
|
+
/** Inserts an instance of a component (or a set's default variant); called on click. */
|
|
8
|
+
onInsert: (componentId: string) => void;
|
|
9
|
+
/**
|
|
10
|
+
* Variant editing: with it, sets get "+ Variant" and a properties editor (rename properties
|
|
11
|
+
* and values inline), and variants a menu (also on right click) to edit, duplicate or remove them.
|
|
12
|
+
*/
|
|
13
|
+
components?: CanvasComponentsPanelActions;
|
|
14
|
+
/** Receives refusals (e.g. a duplicate variant combination). */
|
|
15
|
+
onError?: (reason: string) => void;
|
|
16
|
+
/** Show the search field (default `true`). */
|
|
17
|
+
search?: boolean;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Components panel: component sets (with their variants) and lone components. Click one to
|
|
22
|
+
* insert an instance, or drag it onto the canvas (the drag carries the id as
|
|
23
|
+
* `CANVAS_COMPONENT_DRAG_TYPE`; read it with `getCanvasComponentDragId`). With `components`,
|
|
24
|
+
* sets and variants can be edited: "+ Variant", rename properties / values, edit, duplicate or
|
|
25
|
+
* remove a variant.
|
|
26
|
+
*/
|
|
27
|
+
export declare function CanvasComponentsPanel<TNode extends CanvasNode = CanvasNode>({ nodes, onInsert, components, onError, search, className }: CanvasComponentsPanelProps<TNode>): React.JSX.Element;
|
|
28
|
+
/** The actions the instance inspector runs (a components controller or hook satisfies it). */
|
|
29
|
+
export type CanvasInstanceInspectorActions = Pick<CanvasComponentsController<any>, 'setInstanceProperties' | 'resetOverrides' | 'detachInstance' | 'goToMainComponent' | 'pushOverrides' | 'restoreMainComponent'>;
|
|
30
|
+
export interface CanvasInstanceInspectorProps<TNode extends CanvasNode = CanvasNode> {
|
|
31
|
+
nodes: TNode[];
|
|
32
|
+
/** An instance, or a layer inside one; nothing is shown otherwise. */
|
|
33
|
+
nodeId: string | null | undefined;
|
|
34
|
+
components: CanvasInstanceInspectorActions;
|
|
35
|
+
/** Receives refusals (e.g. a property value that would nest a component in itself). */
|
|
36
|
+
onError?: (reason: string) => void;
|
|
37
|
+
className?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Instance inspector: main component (or "missing main" with Restore), variant pickers,
|
|
41
|
+
* component property controls, the overrides of its layers (each resettable), and Reset all,
|
|
42
|
+
* Detach, Go to main and Push changes.
|
|
43
|
+
*/
|
|
44
|
+
export declare function CanvasInstanceInspector<TNode extends CanvasNode = CanvasNode>({ nodes, nodeId, components, onError, className }: CanvasInstanceInspectorProps<TNode>): React.JSX.Element | null;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CanvasDraw } from './useCanvasDraw.cjs';
|
|
3
|
+
import { type CanvasNode, type CanvasViewport } from '@pixerate/editor/canvas';
|
|
4
|
+
export interface CanvasDrawLayerProps<TNode extends CanvasNode = CanvasNode> {
|
|
5
|
+
/** Draw state and controller actions from `useCanvasDraw`. */
|
|
6
|
+
draw: CanvasDraw<TNode>;
|
|
7
|
+
/** Current viewport (e.g. `useViewport()` from React Flow). */
|
|
8
|
+
viewport?: CanvasViewport;
|
|
9
|
+
/** Optional class name on the root SVG overlay element. */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** Optional inline styles on the root SVG overlay element. */
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
/** Cursor styling override when drawing or erasing. */
|
|
14
|
+
cursor?: string;
|
|
15
|
+
/** Eraser circle preview radius in screen pixels (default: 12). */
|
|
16
|
+
eraserRadius?: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Overlay component for freehand drawing inside React Flow.
|
|
20
|
+
* Renders an interactive SVG capturing drawing pointer events when `draw.tool !== 'select'`.
|
|
21
|
+
* Also supports holding Spacebar to temporarily pan the canvas without switching tools.
|
|
22
|
+
*/
|
|
23
|
+
export declare function CanvasDrawLayer<TNode extends CanvasNode = CanvasNode>({ draw, viewport, className, style, cursor, eraserRadius }: CanvasDrawLayerProps<TNode>): React.JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CanvasDraw } from './useCanvasDraw.js';
|
|
3
|
+
import { type CanvasNode, type CanvasViewport } from '@pixerate/editor/canvas';
|
|
4
|
+
export interface CanvasDrawLayerProps<TNode extends CanvasNode = CanvasNode> {
|
|
5
|
+
/** Draw state and controller actions from `useCanvasDraw`. */
|
|
6
|
+
draw: CanvasDraw<TNode>;
|
|
7
|
+
/** Current viewport (e.g. `useViewport()` from React Flow). */
|
|
8
|
+
viewport?: CanvasViewport;
|
|
9
|
+
/** Optional class name on the root SVG overlay element. */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** Optional inline styles on the root SVG overlay element. */
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
/** Cursor styling override when drawing or erasing. */
|
|
14
|
+
cursor?: string;
|
|
15
|
+
/** Eraser circle preview radius in screen pixels (default: 12). */
|
|
16
|
+
eraserRadius?: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Overlay component for freehand drawing inside React Flow.
|
|
20
|
+
* Renders an interactive SVG capturing drawing pointer events when `draw.tool !== 'select'`.
|
|
21
|
+
* Also supports holding Spacebar to temporarily pan the canvas without switching tools.
|
|
22
|
+
*/
|
|
23
|
+
export declare function CanvasDrawLayer<TNode extends CanvasNode = CanvasNode>({ draw, viewport, className, style, cursor, eraserRadius }: CanvasDrawLayerProps<TNode>): React.JSX.Element;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type CanvasEffectsController, type CanvasEffectsControllerOptions, type CanvasEffectsToolProviderOptions, type CanvasNode, type CanvasScenesStore, type CanvasShapeEffect, type ShapeDescription } from '@pixerate/editor/canvas';
|
|
3
|
+
import type { EffectProvider } from '@pixerate/editor/effects';
|
|
4
|
+
import type { ToolRegistry } from '@pixerate/editor/tools';
|
|
5
|
+
/**
|
|
6
|
+
* Gives the shape nodes inside it an effects provider (see `@pixerate/editor/effects`), so their
|
|
7
|
+
* `shape.effect` is drawn. Without one (or outside it) effects are kept and not drawn.
|
|
8
|
+
*/
|
|
9
|
+
export declare function CanvasEffectsProvider({ provider, children }: {
|
|
10
|
+
provider: EffectProvider | null | undefined;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}): React.JSX.Element;
|
|
13
|
+
/** The effects provider from the nearest `<CanvasEffectsProvider>`, or `null`. */
|
|
14
|
+
export declare const useCanvasEffectsProviderContext: () => EffectProvider | null;
|
|
15
|
+
/**
|
|
16
|
+
* Draws a shape node's effect: `fill` inside the shape (clipped to `clipPath`, an SVG path in the
|
|
17
|
+
* node's own pixels), `overlay` over the whole node. Animated effects play until unmounted.
|
|
18
|
+
*/
|
|
19
|
+
export declare function CanvasNodeEffectLayer({ effect, width, height, clipPath, clipTransform }: {
|
|
20
|
+
effect: CanvasShapeEffect;
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
clipPath?: string;
|
|
24
|
+
clipTransform?: string;
|
|
25
|
+
}): React.JSX.Element | null;
|
|
26
|
+
export interface UseCanvasEffectsOptions<TNode extends CanvasNode = CanvasNode> extends Omit<CanvasEffectsControllerOptions<TNode>, 'effects'> {
|
|
27
|
+
/** The effects provider, registered while mounted (optional). */
|
|
28
|
+
effects?: EffectProvider | null;
|
|
29
|
+
scenes?: CanvasScenesStore;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A canvas effects controller (apply, change and remove node effects, scene transitions) for the
|
|
33
|
+
* component's lifetime, with `effects` registered while given.
|
|
34
|
+
*/
|
|
35
|
+
export declare function useCanvasEffects<TNode extends CanvasNode = CanvasNode>(options: UseCanvasEffectsOptions<TNode>): CanvasEffectsController<TNode>;
|
|
36
|
+
/** Registers the canvas effect tools (`search_effects`, `apply_effect`, `set_scene_transition`, …) while mounted. */
|
|
37
|
+
export declare function useCanvasEffectsTools(registry: ToolRegistry | null | undefined, controller: CanvasEffectsController, options?: CanvasEffectsToolProviderOptions): void;
|
|
38
|
+
export interface CanvasEffectsPanelProps {
|
|
39
|
+
controller: CanvasEffectsController;
|
|
40
|
+
/** The node to edit (e.g. the selected shape). */
|
|
41
|
+
nodeId?: string | null;
|
|
42
|
+
/** The node's shape, to show its effect (re-render the panel when it changes). */
|
|
43
|
+
shape?: ShapeDescription | null;
|
|
44
|
+
/** The scene to set a transition into (e.g. the current one). */
|
|
45
|
+
sceneId?: string | null;
|
|
46
|
+
className?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Effects for a shape node (fill with a generator, overlay, change controls, play / hold,
|
|
50
|
+
* opacity, remove) and the transition into a scene.
|
|
51
|
+
*/
|
|
52
|
+
export declare function CanvasEffectsPanel({ controller, nodeId, shape, sceneId, className }: CanvasEffectsPanelProps): React.JSX.Element;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type CanvasEffectsController, type CanvasEffectsControllerOptions, type CanvasEffectsToolProviderOptions, type CanvasNode, type CanvasScenesStore, type CanvasShapeEffect, type ShapeDescription } from '@pixerate/editor/canvas';
|
|
3
|
+
import type { EffectProvider } from '@pixerate/editor/effects';
|
|
4
|
+
import type { ToolRegistry } from '@pixerate/editor/tools';
|
|
5
|
+
/**
|
|
6
|
+
* Gives the shape nodes inside it an effects provider (see `@pixerate/editor/effects`), so their
|
|
7
|
+
* `shape.effect` is drawn. Without one (or outside it) effects are kept and not drawn.
|
|
8
|
+
*/
|
|
9
|
+
export declare function CanvasEffectsProvider({ provider, children }: {
|
|
10
|
+
provider: EffectProvider | null | undefined;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}): React.JSX.Element;
|
|
13
|
+
/** The effects provider from the nearest `<CanvasEffectsProvider>`, or `null`. */
|
|
14
|
+
export declare const useCanvasEffectsProviderContext: () => EffectProvider | null;
|
|
15
|
+
/**
|
|
16
|
+
* Draws a shape node's effect: `fill` inside the shape (clipped to `clipPath`, an SVG path in the
|
|
17
|
+
* node's own pixels), `overlay` over the whole node. Animated effects play until unmounted.
|
|
18
|
+
*/
|
|
19
|
+
export declare function CanvasNodeEffectLayer({ effect, width, height, clipPath, clipTransform }: {
|
|
20
|
+
effect: CanvasShapeEffect;
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
clipPath?: string;
|
|
24
|
+
clipTransform?: string;
|
|
25
|
+
}): React.JSX.Element | null;
|
|
26
|
+
export interface UseCanvasEffectsOptions<TNode extends CanvasNode = CanvasNode> extends Omit<CanvasEffectsControllerOptions<TNode>, 'effects'> {
|
|
27
|
+
/** The effects provider, registered while mounted (optional). */
|
|
28
|
+
effects?: EffectProvider | null;
|
|
29
|
+
scenes?: CanvasScenesStore;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A canvas effects controller (apply, change and remove node effects, scene transitions) for the
|
|
33
|
+
* component's lifetime, with `effects` registered while given.
|
|
34
|
+
*/
|
|
35
|
+
export declare function useCanvasEffects<TNode extends CanvasNode = CanvasNode>(options: UseCanvasEffectsOptions<TNode>): CanvasEffectsController<TNode>;
|
|
36
|
+
/** Registers the canvas effect tools (`search_effects`, `apply_effect`, `set_scene_transition`, …) while mounted. */
|
|
37
|
+
export declare function useCanvasEffectsTools(registry: ToolRegistry | null | undefined, controller: CanvasEffectsController, options?: CanvasEffectsToolProviderOptions): void;
|
|
38
|
+
export interface CanvasEffectsPanelProps {
|
|
39
|
+
controller: CanvasEffectsController;
|
|
40
|
+
/** The node to edit (e.g. the selected shape). */
|
|
41
|
+
nodeId?: string | null;
|
|
42
|
+
/** The node's shape, to show its effect (re-render the panel when it changes). */
|
|
43
|
+
shape?: ShapeDescription | null;
|
|
44
|
+
/** The scene to set a transition into (e.g. the current one). */
|
|
45
|
+
sceneId?: string | null;
|
|
46
|
+
className?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Effects for a shape node (fill with a generator, overlay, change controls, play / hold,
|
|
50
|
+
* opacity, remove) and the transition into a scene.
|
|
51
|
+
*/
|
|
52
|
+
export declare function CanvasEffectsPanel({ controller, nodeId, shape, sceneId, className }: CanvasEffectsPanelProps): React.JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CanvasViewport, GuideLine } from '@pixerate/editor/canvas';
|
|
3
|
+
export interface CanvasGuidesLayerProps {
|
|
4
|
+
/** Guide segments in flow coordinates (e.g. `arrange.guides`). */
|
|
5
|
+
guides: GuideLine[];
|
|
6
|
+
/** Current viewport (e.g. `useViewport()` from React Flow). */
|
|
7
|
+
viewport?: CanvasViewport;
|
|
8
|
+
/** Colour of edge and centre guides. */
|
|
9
|
+
color?: string;
|
|
10
|
+
/** Colour of equal-spacing guides. */
|
|
11
|
+
spacingColor?: string;
|
|
12
|
+
/** Colour of measuring lines, their labels and extension lines. */
|
|
13
|
+
measureColor?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Smart-guide overlay for React Flow. Place it inside the flow container (it is absolutely
|
|
18
|
+
* positioned over the whole pane) and pass the live viewport.
|
|
19
|
+
*/
|
|
20
|
+
export declare function CanvasGuidesLayer({ guides, viewport, color, spacingColor, measureColor, className }: CanvasGuidesLayerProps): React.JSX.Element | null;
|