@pixerate/editor-react 0.89.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 +14 -2
- package/dist/vector/index.d.cts +23 -384
- package/dist/vector/index.d.ts +23 -384
- package/dist/vector/index.js +17 -4
- 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
package/dist/vector/index.d.ts
CHANGED
|
@@ -1,384 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
/** Anything with `register(specs) → unregister` (a `CommandRegistry`). */
|
|
25
|
-
interface VectorCommandTarget {
|
|
26
|
-
register(specs: any): () => void;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Registers the controller's palette / agent commands (`vector.addShape`, `vector.boolean`, …)
|
|
30
|
-
* in `registry` while mounted, so `createCommandToolProvider` exposes them to agents.
|
|
31
|
-
*/
|
|
32
|
-
declare function useVectorCommands(registry: VectorCommandTarget | null | undefined, controller: VectorEditorController, options?: VectorCommandOptions): void;
|
|
33
|
-
/**
|
|
34
|
-
* Registers the vector editor's provider-effect tools (`search_effects`, `apply_effect`, …) in
|
|
35
|
-
* `registry` while mounted. They work once an effects provider is registered (see `useEffects`).
|
|
36
|
-
*/
|
|
37
|
-
declare function useVectorEffectsTools(registry: ToolRegistry | null | undefined, controller: VectorEditorController, options?: VectorEffectsToolProviderOptions): void;
|
|
38
|
-
/**
|
|
39
|
-
* Registers the vector editor's generative-prompt tools (`list_vector_art_models`,
|
|
40
|
-
* `generate_vector_art`, `regenerate_vector_art`) for the lifetime of the component. `models` and
|
|
41
|
-
* `generate` are read fresh on every call, so they may change between renders.
|
|
42
|
-
*/
|
|
43
|
-
declare function useVectorGenerationTools(registry: ToolRegistry | null | undefined, controller: VectorEditorController, options: VectorGenerationToolProviderOptions): void;
|
|
44
|
-
|
|
45
|
-
interface VectorCanvasProps {
|
|
46
|
-
controller: VectorEditorController;
|
|
47
|
-
/** Fit the artboard into the canvas when it first gets a size (default `true`). */
|
|
48
|
-
fitOnMount?: boolean;
|
|
49
|
-
/** Draw a checkerboard behind a transparent artboard (default `true`). */
|
|
50
|
-
checkerboard?: boolean;
|
|
51
|
-
/** Overlay accent colour (default sky blue). */
|
|
52
|
-
accentColor?: string;
|
|
53
|
-
/** Smart guide colour (default magenta). */
|
|
54
|
-
guideColor?: string;
|
|
55
|
-
className?: string;
|
|
56
|
-
style?: React__default.CSSProperties;
|
|
57
|
-
/** Accessible label (default "Vector canvas"). */
|
|
58
|
-
'aria-label'?: string;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Renders paint servers: `<linearGradient>` / `<radialGradient>` descriptors and patterns of
|
|
62
|
-
* gradient tiles (conic, diamond and stroke-mode gradients).
|
|
63
|
-
*/
|
|
64
|
-
declare function VectorGradientDefs({ defs }: {
|
|
65
|
-
defs: readonly VectorPaintDef[];
|
|
66
|
-
}): React__default.JSX.Element | null;
|
|
67
|
-
/** The gradient tool's annotator (screen space): extent, bar, handles, stop chips and midpoints. */
|
|
68
|
-
declare function VectorGradientAnnotator({ annotator: g, accentColor }: {
|
|
69
|
-
annotator: VectorRenderGradientAnnotator;
|
|
70
|
-
accentColor?: string;
|
|
71
|
-
}): React__default.JSX.Element;
|
|
72
|
-
/** SVG `<filter>` elements for `getVectorSceneRenderData(...).filters` (shadows, glows, blurs, feather). */
|
|
73
|
-
declare function VectorFilterDefs({ filters }: {
|
|
74
|
-
filters: readonly VectorRenderFilter[];
|
|
75
|
-
}): React__default.JSX.Element | null;
|
|
76
|
-
/**
|
|
77
|
-
* Text drawn as SVG text: one `<text>` per paint layer, every span a `<tspan>` placed character by
|
|
78
|
-
* character (the layout is the editor's, not the browser's).
|
|
79
|
-
*/
|
|
80
|
-
declare function VectorTextElement({ node }: {
|
|
81
|
-
node: VectorRenderText;
|
|
82
|
-
}): React__default.JSX.Element;
|
|
83
|
-
/** Renders scene nodes (paths, text and groups) from `getVectorSceneRenderData`. */
|
|
84
|
-
declare function VectorSceneNodes({ nodes }: {
|
|
85
|
-
nodes: readonly VectorRenderNode[];
|
|
86
|
-
}): React__default.JSX.Element;
|
|
87
|
-
/**
|
|
88
|
-
* A mask group's contents under its mask: the `<clipPath>` (clip) or `<mask>` (alpha, luminance;
|
|
89
|
-
* the mask drawn inside, through the inverting filter when inverted), and an inner `<g>` that
|
|
90
|
-
* references it. The group's own transform, opacity, blend mode and filter are on the outer `<g>`.
|
|
91
|
-
*/
|
|
92
|
-
declare function VectorMaskedNodes({ mask, nodes }: {
|
|
93
|
-
mask: VectorRenderMask;
|
|
94
|
-
nodes: readonly VectorRenderNode[];
|
|
95
|
-
}): React__default.JSX.Element;
|
|
96
|
-
/**
|
|
97
|
-
* An SVG canvas for a `VectorEditorController`: draws the document and the editing overlay
|
|
98
|
-
* and forwards pointer, wheel, keyboard and clipboard events. Focus it to use shortcuts.
|
|
99
|
-
*/
|
|
100
|
-
declare function VectorCanvas({ controller, fitOnMount, checkerboard, accentColor, guideColor, className, style, 'aria-label': ariaLabel, }: VectorCanvasProps): React__default.JSX.Element;
|
|
101
|
-
|
|
102
|
-
interface VectorWidthPointEditorProps {
|
|
103
|
-
controller: VectorEditorController;
|
|
104
|
-
/** The point being edited (`state.widthPointEdit`). */
|
|
105
|
-
edit: VectorWidthPointEdit;
|
|
106
|
-
/** Accent colour of the Apply button (default sky blue). */
|
|
107
|
-
accentColor?: string;
|
|
108
|
-
className?: string;
|
|
109
|
-
style?: React__default.CSSProperties;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Width Point Edit: the position (percent along the path) and the left / right side widths
|
|
113
|
-
* (document units) of the width point a width-tool double-click opened. Apply (or Enter) sets
|
|
114
|
-
* them with `commitWidthPointEdit`; Cancel or Escape closes it. `<VectorCanvas>` shows it next
|
|
115
|
-
* to the point; use it on its own to place it elsewhere.
|
|
116
|
-
*/
|
|
117
|
-
declare function VectorWidthPointEditor({ controller, edit, accentColor, className, style }: VectorWidthPointEditorProps): React__default.JSX.Element;
|
|
118
|
-
|
|
119
|
-
interface VectorToolbarProps {
|
|
120
|
-
controller: VectorEditorController;
|
|
121
|
-
/** Tools to show (default: all). */
|
|
122
|
-
tools?: readonly VectorTool[];
|
|
123
|
-
/** Undo / redo buttons (default `true`). */
|
|
124
|
-
showHistory?: boolean;
|
|
125
|
-
/** Boolean, Pathfinder, group, arrange and align buttons (default `true`). */
|
|
126
|
-
showArrange?: boolean;
|
|
127
|
-
/** The snapping toggle (default `true`). */
|
|
128
|
-
showSnap?: boolean;
|
|
129
|
-
/**
|
|
130
|
-
* Path editing: Join, Average, Cut at Points, Remove Redundant Points, Smooth, the Keep
|
|
131
|
-
* Shape / Curvature / Shapes toggles, and the pencil smoothing and eraser size inputs while
|
|
132
|
-
* those tools are active (default `true`).
|
|
133
|
-
*/
|
|
134
|
-
showPathEdit?: boolean;
|
|
135
|
-
/**
|
|
136
|
-
* Blend: Make Blend, spacing (steps, distance or smooth colour), steps / distance, orient to
|
|
137
|
-
* spine, Replace Spine, Expand and Release (default `true`).
|
|
138
|
-
*/
|
|
139
|
-
showBlend?: boolean;
|
|
140
|
-
/** The Free Distort toggle of the selection box (default `true`). */
|
|
141
|
-
showDistort?: boolean;
|
|
142
|
-
className?: string;
|
|
143
|
-
}
|
|
144
|
-
/** Tool picker plus undo, snapping, boolean operations, grouping, stacking and alignment. */
|
|
145
|
-
declare function VectorToolbar({ controller, tools, showHistory, showArrange, showSnap, showPathEdit, showBlend, showDistort, className, }: VectorToolbarProps): React__default.JSX.Element;
|
|
146
|
-
interface VectorStylePanelProps {
|
|
147
|
-
controller: VectorEditorController;
|
|
148
|
-
className?: string;
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Fill, stroke and their gradients (`VectorGradientEditor`), stroke width, alignment and width profile, arrowheads, live corner radius, opacity, path effects (`VectorEffectsPanel`) and envelope (`VectorEnvelopePanel`) of the
|
|
152
|
-
* selection (corners of the selected points with the direct tool); with nothing selected it
|
|
153
|
-
* edits the defaults for new shapes.
|
|
154
|
-
*/
|
|
155
|
-
declare function VectorStylePanel({ controller, className }: VectorStylePanelProps): React__default.JSX.Element;
|
|
156
|
-
|
|
157
|
-
interface VectorEffectsPanelProps {
|
|
158
|
-
controller: VectorEditorController;
|
|
159
|
-
className?: string;
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* The live path effects of the selection: add effects (to every selected node), and for one
|
|
163
|
-
* selected node list its stack (applied top to bottom) to turn on and off, reorder, remove and
|
|
164
|
-
* edit. Slider drags and typing are one undo step each. Expand Appearance bakes the effects and
|
|
165
|
-
* live booleans into plain paths.
|
|
166
|
-
*/
|
|
167
|
-
declare function VectorEffectsPanel({ controller, className }: VectorEffectsPanelProps): React__default.JSX.Element | null;
|
|
168
|
-
|
|
169
|
-
interface VectorEnvelopePanelProps {
|
|
170
|
-
controller: VectorEditorController;
|
|
171
|
-
className?: string;
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Envelope distortion of the selection: Make with Warp, Mesh or Top Object, and for one selected
|
|
175
|
-
* object with an envelope its warp preset, bend, horizontal and vertical distortion, orientation and
|
|
176
|
-
* mesh rows and columns, plus Release and Expand. Edit the mesh on the canvas with the Envelope
|
|
177
|
-
* tool. Slider drags are one undo step each.
|
|
178
|
-
*/
|
|
179
|
-
declare function VectorEnvelopePanel({ controller, className }: VectorEnvelopePanelProps): React__default.JSX.Element | null;
|
|
180
|
-
|
|
181
|
-
interface VectorMaskPanelProps {
|
|
182
|
-
controller: VectorEditorController;
|
|
183
|
-
className?: string;
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* Masks of the selection: Make Clipping Mask, Make Opacity Mask (the topmost selected object
|
|
187
|
-
* masks the others) and Release; for a mask group (or something inside one) its type, Invert, a
|
|
188
|
-
* switch that turns the mask off by hiding it, and Edit Mask / Edit Contents, which select the mask
|
|
189
|
-
* (a path opens for anchor editing) or what it masks. Each change is one undo step.
|
|
190
|
-
*/
|
|
191
|
-
declare function VectorMaskPanel({ controller, className }: VectorMaskPanelProps): React__default.JSX.Element | null;
|
|
192
|
-
|
|
193
|
-
interface VectorEditorProps {
|
|
194
|
-
controller: VectorEditorController;
|
|
195
|
-
/** Tools in the toolbar (default: all). */
|
|
196
|
-
tools?: readonly VectorTool[];
|
|
197
|
-
/** The style sidebar (default `true`). */
|
|
198
|
-
showStylePanel?: boolean;
|
|
199
|
-
/** Canvas height (default 520px). */
|
|
200
|
-
height?: number | string;
|
|
201
|
-
canvasProps?: Omit<VectorCanvasProps, 'controller'>;
|
|
202
|
-
/**
|
|
203
|
-
* An effects provider (see `@pixerate/editor/effects`), registered with the controller while
|
|
204
|
-
* mounted: provider vector effects as groups, with an Effects section under the style panel.
|
|
205
|
-
* Optional: without one the editor is as before.
|
|
206
|
-
*/
|
|
207
|
-
effects?: EffectProvider | null;
|
|
208
|
-
className?: string;
|
|
209
|
-
}
|
|
210
|
-
/** Toolbar, canvas and style panel for a `VectorEditorController`. */
|
|
211
|
-
declare function VectorEditor({ controller, tools, showStylePanel, height, canvasProps, effects, className }: VectorEditorProps): React__default.JSX.Element;
|
|
212
|
-
|
|
213
|
-
interface VectorGradientEditorProps {
|
|
214
|
-
controller: VectorEditorController;
|
|
215
|
-
className?: string;
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* Gradient editor for the selection's fill or stroke: style (or solid), the stop ramp (click it
|
|
219
|
-
* to add a stop, pick a stop to edit its colour, opacity, position and midpoint), interpolation
|
|
220
|
-
* space, smoothness, spread, how it lies on a stroke, and reverse.
|
|
221
|
-
*/
|
|
222
|
-
declare function VectorGradientEditor({ controller, className }: VectorGradientEditorProps): React__default.JSX.Element | null;
|
|
223
|
-
|
|
224
|
-
interface VectorAppearancePanelProps {
|
|
225
|
-
controller: VectorEditorController;
|
|
226
|
-
className?: string;
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* The appearance of the selection: its fill and stroke stacks (listed top first; add, remove,
|
|
230
|
-
* reorder, show / hide, paint, opacity and blend mode per layer, width and alignment per
|
|
231
|
-
* stroke), the node blend mode, and for one selected node its filters (drop and inner shadows,
|
|
232
|
-
* glows, blurs, feather). The pencil on a layer points the gradient editor and tool at it.
|
|
233
|
-
* Slider drags and typing are one undo step each.
|
|
234
|
-
*/
|
|
235
|
-
declare function VectorAppearancePanel({ controller, className }: VectorAppearancePanelProps): React__default.JSX.Element | null;
|
|
236
|
-
|
|
237
|
-
interface VectorTextPanelProps {
|
|
238
|
-
controller: VectorEditorController;
|
|
239
|
-
className?: string;
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* Character and paragraph style of text: family, weight, size, italic, underline, strike-through,
|
|
243
|
-
* tracking, leading, alignment and point / area text. It edits the selected characters while text
|
|
244
|
-
* is being edited, else the selected text, else the defaults for new text. Type on a Path turns a
|
|
245
|
-
* selected path into path text, and Create Outlines turns text into paths (with an outline
|
|
246
|
-
* shaper). Each change is one undo step.
|
|
247
|
-
*/
|
|
248
|
-
declare function VectorTextPanel({ controller, className }: VectorTextPanelProps): React__default.JSX.Element | null;
|
|
249
|
-
|
|
250
|
-
interface VectorSymbolsPanelProps {
|
|
251
|
-
controller: VectorEditorController;
|
|
252
|
-
className?: string;
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
* Symbols of the document with previews: New Symbol from the selection, Place, Edit (isolation
|
|
256
|
-
* mode) and Delete per symbol; for a selected instance, Replace, Scale strokes, a fill tint and
|
|
257
|
-
* Detach. Each change is one undo step.
|
|
258
|
-
*/
|
|
259
|
-
declare function VectorSymbolsPanel({ controller, className }: VectorSymbolsPanelProps): React__default.JSX.Element;
|
|
260
|
-
|
|
261
|
-
interface VectorConstraintsPanelProps {
|
|
262
|
-
controller: VectorEditorController;
|
|
263
|
-
className?: string;
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* Constraints: the degrees of freedom left, the constraints the selection allows (pick anchors with
|
|
267
|
-
* the direct tool, or round paths), Auto Constrain, the constraints of the selection with their
|
|
268
|
-
* values, and the named parameters. Each change is one undo step.
|
|
269
|
-
*/
|
|
270
|
-
declare function VectorConstraintsPanel({ controller, className }: VectorConstraintsPanelProps): React__default.JSX.Element | null;
|
|
271
|
-
|
|
272
|
-
interface VectorFramePanelProps {
|
|
273
|
-
controller: VectorEditorController;
|
|
274
|
-
className?: string;
|
|
275
|
-
}
|
|
276
|
-
/**
|
|
277
|
-
* Frames (artboards): Frame Selection; for a selected frame its position, size (its children
|
|
278
|
-
* follow their constraints), background and clipping; for objects inside a frame their resizing
|
|
279
|
-
* constraints. Each change is one undo step (sizes apply on Enter or blur).
|
|
280
|
-
*/
|
|
281
|
-
declare function VectorFramePanel({ controller, className }: VectorFramePanelProps): React__default.JSX.Element;
|
|
282
|
-
|
|
283
|
-
interface VectorPagesPanelProps {
|
|
284
|
-
controller: VectorEditorController;
|
|
285
|
-
className?: string;
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* Pages: the document's pages (top-level frames) to go to, adding pages and master pages, and the
|
|
289
|
-
* master page the selected page uses. Adding and applying are one undo step each.
|
|
290
|
-
*/
|
|
291
|
-
declare function VectorPagesPanel({ controller, className }: VectorPagesPanelProps): React__default.JSX.Element;
|
|
292
|
-
|
|
293
|
-
interface VectorConnectorPanelProps {
|
|
294
|
-
controller: VectorEditorController;
|
|
295
|
-
className?: string;
|
|
296
|
-
}
|
|
297
|
-
/**
|
|
298
|
-
* The selected connector: its route (straight, elbow, curved), the elbow corner radius, and for
|
|
299
|
-
* each glued end the side it meets (Auto: the side facing the other end) and Unglue. Each change is
|
|
300
|
-
* one undo step.
|
|
301
|
-
*/
|
|
302
|
-
declare function VectorConnectorPanel({ controller, className }: VectorConnectorPanelProps): React__default.JSX.Element | null;
|
|
303
|
-
|
|
304
|
-
interface VectorShadingPanelProps {
|
|
305
|
-
controller: VectorEditorController;
|
|
306
|
-
className?: string;
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* Gradient meshes and freeform gradients of the selected path: make a rows × columns mesh or a
|
|
310
|
-
* freeform gradient, and edit the point picked with the Gradient tool (colour, opacity, and a
|
|
311
|
-
* freeform point's spread, or remove it). Each change is one undo step.
|
|
312
|
-
*/
|
|
313
|
-
declare function VectorShadingPanel({ controller, className }: VectorShadingPanelProps): React__default.JSX.Element | null;
|
|
314
|
-
|
|
315
|
-
interface VectorTracePanelProps {
|
|
316
|
-
controller: VectorEditorController;
|
|
317
|
-
className?: string;
|
|
318
|
-
}
|
|
319
|
-
/**
|
|
320
|
-
* Image Trace and stylise: pick an image file and trace it into paths, in one colour (dark areas)
|
|
321
|
-
* or a stacked path per colour, or stylise it as mosaic tiles, halftone dots, low-poly triangles
|
|
322
|
-
* or engraving lines. The group goes on the artboard at its width. One undo step.
|
|
323
|
-
*/
|
|
324
|
-
declare function VectorTracePanel({ controller, className }: VectorTracePanelProps): React__default.JSX.Element;
|
|
325
|
-
|
|
326
|
-
interface VectorSymmetryPanelProps {
|
|
327
|
-
controller: VectorEditorController;
|
|
328
|
-
className?: string;
|
|
329
|
-
}
|
|
330
|
-
/**
|
|
331
|
-
* Live symmetry: make a symmetry group from the selection (or an empty one to draw into), and for
|
|
332
|
-
* a selected symmetry group its mode, radial copies and mirroring, drawing inside it, and release
|
|
333
|
-
* (keeping the copies with Expand). Each change is one undo step.
|
|
334
|
-
*/
|
|
335
|
-
declare function VectorSymmetryPanel({ controller, className }: VectorSymmetryPanelProps): React__default.JSX.Element;
|
|
336
|
-
|
|
337
|
-
interface VectorPerspectivePanelProps {
|
|
338
|
-
controller: VectorEditorController;
|
|
339
|
-
className?: string;
|
|
340
|
-
}
|
|
341
|
-
/**
|
|
342
|
-
* Perspective drawing: add a 1-, 2- or 3-point grid, pick the plane new shapes are drawn on, lay
|
|
343
|
-
* the selection onto it, show or hide the grid, or remove it. Grid changes and attaching are one
|
|
344
|
-
* undo step each.
|
|
345
|
-
*/
|
|
346
|
-
declare function VectorPerspectivePanel({ controller, className }: VectorPerspectivePanelProps): React__default.JSX.Element;
|
|
347
|
-
|
|
348
|
-
interface VectorLensPanelProps {
|
|
349
|
-
controller: VectorEditorController;
|
|
350
|
-
className?: string;
|
|
351
|
-
}
|
|
352
|
-
/**
|
|
353
|
-
* Lens: for a selected closed path, what it does to what is below it (none, magnify, fish eye,
|
|
354
|
-
* brighten, invert, tinted grayscale, colour add, colour limit, heat map, wireframe,
|
|
355
|
-
* transparency), its amount and colour. Each change is one undo step.
|
|
356
|
-
*/
|
|
357
|
-
declare function VectorLensPanel({ controller, className }: VectorLensPanelProps): React__default.JSX.Element | null;
|
|
358
|
-
|
|
359
|
-
interface VectorProviderEffectsPanelProps {
|
|
360
|
-
controller: VectorEditorController;
|
|
361
|
-
className?: string;
|
|
362
|
-
}
|
|
363
|
-
/**
|
|
364
|
-
* Provider vector effects in a drawing: add one (its picture at rest becomes a selected group of
|
|
365
|
-
* editable shapes), draw it again with new values, or detach it to keep the shapes. Motion is
|
|
366
|
-
* applied in the animation editor.
|
|
367
|
-
*/
|
|
368
|
-
declare function VectorProviderEffectsPanel({ controller, className }: VectorProviderEffectsPanelProps): React__default.JSX.Element;
|
|
369
|
-
|
|
370
|
-
interface VectorGeneratePanelProps {
|
|
371
|
-
controller: VectorEditorController;
|
|
372
|
-
/** The host's models (image models are traced or stylised; text models write SVG). */
|
|
373
|
-
models: readonly VectorArtModel[];
|
|
374
|
-
/** The host's generator (sends a planned request to its model). */
|
|
375
|
-
generate: VectorArtGenerator;
|
|
376
|
-
className?: string;
|
|
377
|
-
}
|
|
378
|
-
/**
|
|
379
|
-
* Generative prompts: describe art, pick a model (and, for image models, how the picture becomes
|
|
380
|
-
* vectors) and generate it into the artboard as one editable group. One undo step.
|
|
381
|
-
*/
|
|
382
|
-
declare function VectorGeneratePanel({ controller, models, generate, className }: VectorGeneratePanelProps): React__default.JSX.Element | null;
|
|
383
|
-
|
|
384
|
-
export { type UseVectorEditorResult, VectorAppearancePanel, type VectorAppearancePanelProps, VectorCanvas, type VectorCanvasProps, type VectorCommandTarget, VectorConnectorPanel, type VectorConnectorPanelProps, VectorConstraintsPanel, type VectorConstraintsPanelProps, VectorEditor, type VectorEditorProps, VectorEffectsPanel, type VectorEffectsPanelProps, VectorEnvelopePanel, type VectorEnvelopePanelProps, VectorFilterDefs, VectorFramePanel, type VectorFramePanelProps, VectorGeneratePanel, type VectorGeneratePanelProps, VectorGradientAnnotator, VectorGradientDefs, VectorGradientEditor, type VectorGradientEditorProps, VectorLensPanel, type VectorLensPanelProps, VectorMaskPanel, type VectorMaskPanelProps, VectorMaskedNodes, VectorPagesPanel, type VectorPagesPanelProps, VectorPerspectivePanel, type VectorPerspectivePanelProps, VectorProviderEffectsPanel, type VectorProviderEffectsPanelProps, VectorSceneNodes, VectorShadingPanel, type VectorShadingPanelProps, VectorStylePanel, type VectorStylePanelProps, VectorSymbolsPanel, type VectorSymbolsPanelProps, VectorSymmetryPanel, type VectorSymmetryPanelProps, VectorTextElement, VectorTextPanel, type VectorTextPanelProps, VectorToolbar, type VectorToolbarProps, VectorTracePanel, type VectorTracePanelProps, VectorWidthPointEditor, type VectorWidthPointEditorProps, useVectorCommands, useVectorEditor, useVectorEditorController, useVectorEditorState, useVectorEffectsTools, useVectorGenerationTools };
|
|
1
|
+
export * from './useVectorEditor.js';
|
|
2
|
+
export * from './VectorCanvas.js';
|
|
3
|
+
export * from './VectorWidthPointEditor.js';
|
|
4
|
+
export * from './VectorToolbar.js';
|
|
5
|
+
export * from './VectorEffectsPanel.js';
|
|
6
|
+
export * from './VectorEnvelopePanel.js';
|
|
7
|
+
export * from './VectorMaskPanel.js';
|
|
8
|
+
export * from './VectorEditor.js';
|
|
9
|
+
export * from './VectorGradientEditor.js';
|
|
10
|
+
export * from './VectorAppearancePanel.js';
|
|
11
|
+
export * from './VectorTextPanel.js';
|
|
12
|
+
export * from './VectorSymbolsPanel.js';
|
|
13
|
+
export * from './VectorConstraintsPanel.js';
|
|
14
|
+
export * from './VectorFramePanel.js';
|
|
15
|
+
export * from './VectorPagesPanel.js';
|
|
16
|
+
export * from './VectorConnectorPanel.js';
|
|
17
|
+
export * from './VectorShadingPanel.js';
|
|
18
|
+
export * from './VectorTracePanel.js';
|
|
19
|
+
export * from './VectorSymmetryPanel.js';
|
|
20
|
+
export * from './VectorPerspectivePanel.js';
|
|
21
|
+
export * from './VectorLensPanel.js';
|
|
22
|
+
export * from './VectorProviderEffectsPanel.js';
|
|
23
|
+
export * from './VectorGeneratePanel.js';
|
package/dist/vector/index.js
CHANGED
|
@@ -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/vector/useVectorEditor.ts
|
|
10
10
|
import { useEffect, useMemo, useRef, useSyncExternalStore } from "react";
|
|
@@ -1010,6 +1010,7 @@ import {
|
|
|
1010
1010
|
VECTOR_FILTER_MENU,
|
|
1011
1011
|
VECTOR_STROKE_ALIGN_LABELS,
|
|
1012
1012
|
getVectorAppearancePanel,
|
|
1013
|
+
randomVectorBrushstrokeSeed,
|
|
1013
1014
|
vectorBrushstrokeBrushes
|
|
1014
1015
|
} from "@pixerate/editor/vector";
|
|
1015
1016
|
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
@@ -1049,6 +1050,19 @@ function VectorAppearancePanel({ controller, className }) {
|
|
|
1049
1050
|
onBlur: end
|
|
1050
1051
|
}
|
|
1051
1052
|
),
|
|
1053
|
+
/* @__PURE__ */ jsxs4("label", { className: "flex items-center gap-0.5 text-[11px]", title: "Brush character: seeded jitter and paper grain", children: [
|
|
1054
|
+
/* @__PURE__ */ jsx4(
|
|
1055
|
+
"input",
|
|
1056
|
+
{
|
|
1057
|
+
type: "checkbox",
|
|
1058
|
+
"aria-label": `${name} grain`,
|
|
1059
|
+
"data-vector-brushstroke-grain": "",
|
|
1060
|
+
checked: l.brushstroke.grain,
|
|
1061
|
+
onChange: (e) => controller.setBrushstroke(l.index, e.target.checked ? { paper: {}, ...l.brushstroke.seed === void 0 ? { seed: randomVectorBrushstrokeSeed() } : {} } : { paper: null }, { ids })
|
|
1062
|
+
}
|
|
1063
|
+
),
|
|
1064
|
+
"Grain"
|
|
1065
|
+
] }),
|
|
1052
1066
|
/* @__PURE__ */ jsx4("button", { type: "button", className: buttonClass2, title: "Remove", "aria-label": `Remove ${name}`, onClick: () => controller.removePaintLayer("stroke", l.index, { ids }), children: "\xD7" })
|
|
1053
1067
|
] }) }, `${l.kind}-${l.index}`);
|
|
1054
1068
|
if (l.unknownKind)
|
|
@@ -1147,7 +1161,7 @@ function VectorAppearancePanel({ controller, className }) {
|
|
|
1147
1161
|
children: "+"
|
|
1148
1162
|
}
|
|
1149
1163
|
),
|
|
1150
|
-
kind === "stroke" && /* @__PURE__ */ jsx4("button", { type: "button", className: buttonClass2, title: "Add a brushstroke (a natural-media brush along the path)", "aria-label": "Add brushstroke", "data-vector-add-brushstroke": "", disabled: !ids.length, onClick: () => controller.addBrushstroke({ brushId: vectorBrushstrokeBrushes()[0].id }, { ids }), children: "\u270E+" })
|
|
1164
|
+
kind === "stroke" && /* @__PURE__ */ jsx4("button", { type: "button", className: buttonClass2, title: "Add a brushstroke (a natural-media brush along the path)", "aria-label": "Add brushstroke", "data-vector-add-brushstroke": "", disabled: !ids.length, onClick: () => controller.addBrushstroke({ brushId: vectorBrushstrokeBrushes()[0].id, seed: randomVectorBrushstrokeSeed() }, { ids }), children: "\u270E+" })
|
|
1151
1165
|
] }),
|
|
1152
1166
|
[...layers].reverse().map((l) => layerRow(l, layers.length))
|
|
1153
1167
|
] });
|
|
@@ -3147,4 +3161,3 @@ export {
|
|
|
3147
3161
|
useVectorEffectsTools,
|
|
3148
3162
|
useVectorGenerationTools
|
|
3149
3163
|
};
|
|
3150
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { VectorEditorController, type VectorEffectsToolProviderOptions, type VectorGenerationToolProviderOptions, type VectorCommandOptions, type VectorEditorOptions, type VectorEditorState, type VectorTool } from '@pixerate/editor/vector';
|
|
2
|
+
import type { ToolRegistry } from '@pixerate/editor/tools';
|
|
3
|
+
/** A `VectorEditorController` created once for the component's lifetime (destroyed on unmount). */
|
|
4
|
+
export declare function useVectorEditorController(options?: VectorEditorOptions): VectorEditorController;
|
|
5
|
+
/** The controller's state (re-renders on every change). */
|
|
6
|
+
export declare function useVectorEditorState(controller: VectorEditorController): VectorEditorState;
|
|
7
|
+
export interface UseVectorEditorResult {
|
|
8
|
+
controller: VectorEditorController;
|
|
9
|
+
state: VectorEditorState;
|
|
10
|
+
setTool: (tool: VectorTool) => void;
|
|
11
|
+
undo: () => void;
|
|
12
|
+
redo: () => void;
|
|
13
|
+
deleteSelection: () => void;
|
|
14
|
+
toSvg: () => string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Subscribes to a vector editor controller and exposes its state with bound actions. Pass
|
|
18
|
+
* options instead of a controller to create one for the component's lifetime.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useVectorEditor(controllerOrOptions?: VectorEditorController | VectorEditorOptions): UseVectorEditorResult;
|
|
21
|
+
/** Anything with `register(specs) → unregister` (a `CommandRegistry`). */
|
|
22
|
+
export interface VectorCommandTarget {
|
|
23
|
+
register(specs: any): () => void;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Registers the controller's palette / agent commands (`vector.addShape`, `vector.boolean`, …)
|
|
27
|
+
* in `registry` while mounted, so `createCommandToolProvider` exposes them to agents.
|
|
28
|
+
*/
|
|
29
|
+
export declare function useVectorCommands(registry: VectorCommandTarget | null | undefined, controller: VectorEditorController, options?: VectorCommandOptions): void;
|
|
30
|
+
/**
|
|
31
|
+
* Registers the vector editor's provider-effect tools (`search_effects`, `apply_effect`, …) in
|
|
32
|
+
* `registry` while mounted. They work once an effects provider is registered (see `useEffects`).
|
|
33
|
+
*/
|
|
34
|
+
export declare function useVectorEffectsTools(registry: ToolRegistry | null | undefined, controller: VectorEditorController, options?: VectorEffectsToolProviderOptions): void;
|
|
35
|
+
/**
|
|
36
|
+
* Registers the vector editor's generative-prompt tools (`list_vector_art_models`,
|
|
37
|
+
* `generate_vector_art`, `regenerate_vector_art`) for the lifetime of the component. `models` and
|
|
38
|
+
* `generate` are read fresh on every call, so they may change between renders.
|
|
39
|
+
*/
|
|
40
|
+
export declare function useVectorGenerationTools(registry: ToolRegistry | null | undefined, controller: VectorEditorController, options: VectorGenerationToolProviderOptions): void;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { VectorEditorController, type VectorEffectsToolProviderOptions, type VectorGenerationToolProviderOptions, type VectorCommandOptions, type VectorEditorOptions, type VectorEditorState, type VectorTool } from '@pixerate/editor/vector';
|
|
2
|
+
import type { ToolRegistry } from '@pixerate/editor/tools';
|
|
3
|
+
/** A `VectorEditorController` created once for the component's lifetime (destroyed on unmount). */
|
|
4
|
+
export declare function useVectorEditorController(options?: VectorEditorOptions): VectorEditorController;
|
|
5
|
+
/** The controller's state (re-renders on every change). */
|
|
6
|
+
export declare function useVectorEditorState(controller: VectorEditorController): VectorEditorState;
|
|
7
|
+
export interface UseVectorEditorResult {
|
|
8
|
+
controller: VectorEditorController;
|
|
9
|
+
state: VectorEditorState;
|
|
10
|
+
setTool: (tool: VectorTool) => void;
|
|
11
|
+
undo: () => void;
|
|
12
|
+
redo: () => void;
|
|
13
|
+
deleteSelection: () => void;
|
|
14
|
+
toSvg: () => string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Subscribes to a vector editor controller and exposes its state with bound actions. Pass
|
|
18
|
+
* options instead of a controller to create one for the component's lifetime.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useVectorEditor(controllerOrOptions?: VectorEditorController | VectorEditorOptions): UseVectorEditorResult;
|
|
21
|
+
/** Anything with `register(specs) → unregister` (a `CommandRegistry`). */
|
|
22
|
+
export interface VectorCommandTarget {
|
|
23
|
+
register(specs: any): () => void;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Registers the controller's palette / agent commands (`vector.addShape`, `vector.boolean`, …)
|
|
27
|
+
* in `registry` while mounted, so `createCommandToolProvider` exposes them to agents.
|
|
28
|
+
*/
|
|
29
|
+
export declare function useVectorCommands(registry: VectorCommandTarget | null | undefined, controller: VectorEditorController, options?: VectorCommandOptions): void;
|
|
30
|
+
/**
|
|
31
|
+
* Registers the vector editor's provider-effect tools (`search_effects`, `apply_effect`, …) in
|
|
32
|
+
* `registry` while mounted. They work once an effects provider is registered (see `useEffects`).
|
|
33
|
+
*/
|
|
34
|
+
export declare function useVectorEffectsTools(registry: ToolRegistry | null | undefined, controller: VectorEditorController, options?: VectorEffectsToolProviderOptions): void;
|
|
35
|
+
/**
|
|
36
|
+
* Registers the vector editor's generative-prompt tools (`list_vector_art_models`,
|
|
37
|
+
* `generate_vector_art`, `regenerate_vector_art`) for the lifetime of the component. `models` and
|
|
38
|
+
* `generate` are read fresh on every call, so they may change between renders.
|
|
39
|
+
*/
|
|
40
|
+
export declare function useVectorGenerationTools(registry: ToolRegistry | null | undefined, controller: VectorEditorController, options: VectorGenerationToolProviderOptions): void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type VideoEditorController } from '@pixerate/editor/video-editor';
|
|
3
|
+
export interface ClipInspectorProps {
|
|
4
|
+
controller: VideoEditorController;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Edits the one selected clip: its name, fades, opacity, volume and transform (each with a keyframe
|
|
9
|
+
* toggle at the playhead: ◆ adds a key holding the value there or removes the one there; typing a
|
|
10
|
+
* value on a keyed property sets the key at the playhead); volume, speed and mute for media;
|
|
11
|
+
* text, colour, size and background for titles; colour for colour clips; and the transition into
|
|
12
|
+
* it. Each change is one undo step (`update_clip` / `set_transition`), committed on blur or change.
|
|
13
|
+
*/
|
|
14
|
+
export declare function ClipInspector({ controller, className }: ClipInspectorProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type VideoEditorController } from '@pixerate/editor/video-editor';
|
|
3
|
+
export interface ClipInspectorProps {
|
|
4
|
+
controller: VideoEditorController;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Edits the one selected clip: its name, fades, opacity, volume and transform (each with a keyframe
|
|
9
|
+
* toggle at the playhead: ◆ adds a key holding the value there or removes the one there; typing a
|
|
10
|
+
* value on a keyed property sets the key at the playhead); volume, speed and mute for media;
|
|
11
|
+
* text, colour, size and background for titles; colour for colour clips; and the transition into
|
|
12
|
+
* it. Each change is one undo step (`update_clip` / `set_transition`), committed on blur or change.
|
|
13
|
+
*/
|
|
14
|
+
export declare function ClipInspector({ controller, className }: ClipInspectorProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { probeVideoMedia, type VideoEditorController } from '@pixerate/editor/video-editor';
|
|
3
|
+
export interface MediaBinProps {
|
|
4
|
+
controller: VideoEditorController;
|
|
5
|
+
/** Show the import controls and "Add to timeline" buttons (default true). */
|
|
6
|
+
editable?: boolean;
|
|
7
|
+
/** Turns a file into a URL the preview and exporter can open (default `URL.createObjectURL`). */
|
|
8
|
+
fileToUrl?: (file: File) => string;
|
|
9
|
+
/** Reads a source's length and size (default `probeVideoMedia`). */
|
|
10
|
+
probe?: typeof probeVideoMedia;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The project's assets (name, kind, length), each with an "Add to timeline" button that puts it at
|
|
15
|
+
* the end of the first unlocked track of its kind. Import media by choosing or dropping files (read
|
|
16
|
+
* as object URLs and probed for their length and size) or by URL. Each import is one undo step.
|
|
17
|
+
*/
|
|
18
|
+
export declare function MediaBin({ controller, editable, fileToUrl, probe, className }: MediaBinProps): React.JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { probeVideoMedia, type VideoEditorController } from '@pixerate/editor/video-editor';
|
|
3
|
+
export interface MediaBinProps {
|
|
4
|
+
controller: VideoEditorController;
|
|
5
|
+
/** Show the import controls and "Add to timeline" buttons (default true). */
|
|
6
|
+
editable?: boolean;
|
|
7
|
+
/** Turns a file into a URL the preview and exporter can open (default `URL.createObjectURL`). */
|
|
8
|
+
fileToUrl?: (file: File) => string;
|
|
9
|
+
/** Reads a source's length and size (default `probeVideoMedia`). */
|
|
10
|
+
probe?: typeof probeVideoMedia;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The project's assets (name, kind, length), each with an "Add to timeline" button that puts it at
|
|
15
|
+
* the end of the first unlocked track of its kind. Import media by choosing or dropping files (read
|
|
16
|
+
* as object URLs and probed for their length and size) or by URL. Each import is one undo step.
|
|
17
|
+
*/
|
|
18
|
+
export declare function MediaBin({ controller, editable, fileToUrl, probe, className }: MediaBinProps): React.JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type VideoEditorController } from '@pixerate/editor/video-editor';
|
|
3
|
+
export interface TranscriptPanelProps {
|
|
4
|
+
controller: VideoEditorController;
|
|
5
|
+
/** Track whose words to show (default: the first audio track with a transcribed clip, else the first video track with one). */
|
|
6
|
+
track?: string;
|
|
7
|
+
/** Allow cutting by text and loading transcripts (default true). */
|
|
8
|
+
editable?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Edit by text: the words the timeline plays, from its media's transcripts. Click a word to go to
|
|
13
|
+
* it, Shift-click to select a run of words, then delete them to cut that stretch out (closing it up
|
|
14
|
+
* on every sync-locked track). "Remove fillers" and "Tighten pauses" cut every um and every long gap
|
|
15
|
+
* at once. Each cut is one undo step. Transcripts (Whisper JSON, .srt, .vtt) load per asset below.
|
|
16
|
+
*/
|
|
17
|
+
export declare function TranscriptPanel({ controller, track, editable, className }: TranscriptPanelProps): React.JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type VideoEditorController } from '@pixerate/editor/video-editor';
|
|
3
|
+
export interface TranscriptPanelProps {
|
|
4
|
+
controller: VideoEditorController;
|
|
5
|
+
/** Track whose words to show (default: the first audio track with a transcribed clip, else the first video track with one). */
|
|
6
|
+
track?: string;
|
|
7
|
+
/** Allow cutting by text and loading transcripts (default true). */
|
|
8
|
+
editable?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Edit by text: the words the timeline plays, from its media's transcripts. Click a word to go to
|
|
13
|
+
* it, Shift-click to select a run of words, then delete them to cut that stretch out (closing it up
|
|
14
|
+
* on every sync-locked track). "Remove fillers" and "Tighten pauses" cut every um and every long gap
|
|
15
|
+
* at once. Each cut is one undo step. Transcripts (Whisper JSON, .srt, .vtt) load per asset below.
|
|
16
|
+
*/
|
|
17
|
+
export declare function TranscriptPanel({ controller, track, editable, className }: TranscriptPanelProps): React.JSX.Element;
|