@tomorrowevening/theatre-studio 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IDBStorage.d.ts +16 -0
- package/dist/IDBStorage.d.ts.map +1 -0
- package/dist/IDBStorage.js +19 -0
- package/dist/PaneManager.d.ts +16 -0
- package/dist/PaneManager.d.ts.map +1 -0
- package/dist/PaneManager.js +112 -0
- package/dist/Scrub.d.ts +83 -0
- package/dist/Scrub.d.ts.map +1 -0
- package/dist/Scrub.js +134 -0
- package/dist/Studio.d.ts +79 -0
- package/dist/Studio.d.ts.map +1 -0
- package/dist/Studio.js +405 -0
- package/dist/StudioBundle.d.ts +10 -0
- package/dist/StudioBundle.d.ts.map +1 -0
- package/dist/StudioBundle.js +21 -0
- package/dist/StudioStore/StudioStore.d.ts +46 -0
- package/dist/StudioStore/StudioStore.d.ts.map +1 -0
- package/dist/StudioStore/StudioStore.js +163 -0
- package/dist/StudioStore/createTransactionPrivateApi.d.ts +3 -0
- package/dist/StudioStore/createTransactionPrivateApi.d.ts.map +1 -0
- package/dist/StudioStore/createTransactionPrivateApi.js +204 -0
- package/dist/StudioStore/generateDiskStateRevision.d.ts +2 -0
- package/dist/StudioStore/generateDiskStateRevision.d.ts.map +1 -0
- package/dist/StudioStore/generateDiskStateRevision.js +4 -0
- package/dist/StudioStore/persistStateOfStudio.d.ts +5 -0
- package/dist/StudioStore/persistStateOfStudio.d.ts.map +1 -0
- package/dist/StudioStore/persistStateOfStudio.js +61 -0
- package/dist/TheatreStudio.d.ts +426 -0
- package/dist/TheatreStudio.d.ts.map +1 -0
- package/dist/TheatreStudio.js +154 -0
- package/dist/UI/UI.d.ts +14 -0
- package/dist/UI/UI.d.ts.map +1 -0
- package/dist/UI/UI.js +65 -0
- package/dist/UI/UINonSSRBits.d.ts +10 -0
- package/dist/UI/UINonSSRBits.d.ts.map +1 -0
- package/dist/UI/UINonSSRBits.js +60 -0
- package/dist/UIRoot/PanelsRoot.d.ts +4 -0
- package/dist/UIRoot/PanelsRoot.d.ts.map +1 -0
- package/dist/UIRoot/PanelsRoot.js +19 -0
- package/dist/UIRoot/PointerCapturing.d.ts +46 -0
- package/dist/UIRoot/PointerCapturing.d.ts.map +1 -0
- package/dist/UIRoot/PointerCapturing.js +96 -0
- package/dist/UIRoot/ProvideTheme.d.ts +6 -0
- package/dist/UIRoot/ProvideTheme.d.ts.map +1 -0
- package/dist/UIRoot/ProvideTheme.js +9 -0
- package/dist/UIRoot/UIRoot.d.ts +5 -0
- package/dist/UIRoot/UIRoot.d.ts.map +1 -0
- package/dist/UIRoot/UIRoot.js +79 -0
- package/dist/UIRoot/useKeyboardShortcuts.d.ts +7 -0
- package/dist/UIRoot/useKeyboardShortcuts.d.ts.map +1 -0
- package/dist/UIRoot/useKeyboardShortcuts.js +158 -0
- package/dist/checkForUpdates.d.ts +2 -0
- package/dist/checkForUpdates.d.ts.map +1 -0
- package/dist/checkForUpdates.js +86 -0
- package/dist/css.d.ts +39 -0
- package/dist/css.d.ts.map +1 -0
- package/dist/css.js +116 -0
- package/dist/getStudio.d.ts +7 -0
- package/dist/getStudio.d.ts.map +1 -0
- package/dist/getStudio.js +10 -0
- package/dist/index.d.ts +6 -9
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +56 -105
- package/dist/notify.d.ts +12 -0
- package/dist/notify.d.ts.map +1 -0
- package/dist/notify.js +328 -0
- package/dist/panels/BasePanel/BasePanel.d.ts +35 -0
- package/dist/panels/BasePanel/BasePanel.d.ts.map +1 -0
- package/dist/panels/BasePanel/BasePanel.js +74 -0
- package/dist/panels/BasePanel/ExtensionPaneWrapper.d.ts +8 -0
- package/dist/panels/BasePanel/ExtensionPaneWrapper.d.ts.map +1 -0
- package/dist/panels/BasePanel/ExtensionPaneWrapper.js +138 -0
- package/dist/panels/BasePanel/PanelDragZone.d.ts +4 -0
- package/dist/panels/BasePanel/PanelDragZone.d.ts.map +1 -0
- package/dist/panels/BasePanel/PanelDragZone.js +88 -0
- package/dist/panels/BasePanel/PanelResizeHandle.d.ts +7 -0
- package/dist/panels/BasePanel/PanelResizeHandle.d.ts.map +1 -0
- package/dist/panels/BasePanel/PanelResizeHandle.js +184 -0
- package/dist/panels/BasePanel/PanelResizers.d.ts +4 -0
- package/dist/panels/BasePanel/PanelResizers.d.ts.map +1 -0
- package/dist/panels/BasePanel/PanelResizers.js +14 -0
- package/dist/panels/BasePanel/PanelWrapper.d.ts +4 -0
- package/dist/panels/BasePanel/PanelWrapper.d.ts.map +1 -0
- package/dist/panels/BasePanel/PanelWrapper.js +34 -0
- package/dist/panels/BasePanel/common.d.ts +15 -0
- package/dist/panels/BasePanel/common.d.ts.map +1 -0
- package/dist/panels/BasePanel/common.js +52 -0
- package/dist/panels/DetailPanel/DetailPanel.d.ts +6 -0
- package/dist/panels/DetailPanel/DetailPanel.d.ts.map +1 -0
- package/dist/panels/DetailPanel/DetailPanel.js +146 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/DetailCompoundPropEditor.d.ts +14 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/DetailCompoundPropEditor.d.ts.map +1 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/DetailCompoundPropEditor.js +169 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/DetailSimplePropEditor.d.ts +20 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/DetailSimplePropEditor.d.ts.map +1 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/DetailSimplePropEditor.js +22 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/SingleRowPropEditor.d.ts +14 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/SingleRowPropEditor.d.ts.map +1 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/SingleRowPropEditor.js +89 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/getDetailRowHighlightBackground.d.ts +5 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/getDetailRowHighlightBackground.d.ts.map +1 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/getDetailRowHighlightBackground.js +7 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/rowIndentationFormulaCSS.d.ts +2 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/rowIndentationFormulaCSS.d.ts.map +1 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/rowIndentationFormulaCSS.js +1 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail.d.ts +26 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail.d.ts.map +1 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail.js +28 -0
- package/dist/panels/DetailPanel/EmptyState.d.ts +4 -0
- package/dist/panels/DetailPanel/EmptyState.d.ts.map +1 -0
- package/dist/panels/DetailPanel/EmptyState.js +36 -0
- package/dist/panels/DetailPanel/ObjectDetails.d.ts +8 -0
- package/dist/panels/DetailPanel/ObjectDetails.d.ts.map +1 -0
- package/dist/panels/DetailPanel/ObjectDetails.js +52 -0
- package/dist/panels/DetailPanel/ProjectDetails/StateConflictRow.d.ts +7 -0
- package/dist/panels/DetailPanel/ProjectDetails/StateConflictRow.d.ts.map +1 -0
- package/dist/panels/DetailPanel/ProjectDetails/StateConflictRow.js +86 -0
- package/dist/panels/DetailPanel/ProjectDetails.d.ts +7 -0
- package/dist/panels/DetailPanel/ProjectDetails.d.ts.map +1 -0
- package/dist/panels/DetailPanel/ProjectDetails.js +98 -0
- package/dist/panels/OutlinePanel/BaseItem.d.ts +18 -0
- package/dist/panels/OutlinePanel/BaseItem.d.ts.map +1 -0
- package/dist/panels/OutlinePanel/BaseItem.js +136 -0
- package/dist/panels/OutlinePanel/ObjectsList/ObjectItem.d.ts +8 -0
- package/dist/panels/OutlinePanel/ObjectsList/ObjectItem.d.ts.map +1 -0
- package/dist/panels/OutlinePanel/ObjectsList/ObjectItem.js +14 -0
- package/dist/panels/OutlinePanel/ObjectsList/ObjectsList.d.ts +11 -0
- package/dist/panels/OutlinePanel/ObjectsList/ObjectsList.d.ts.map +1 -0
- package/dist/panels/OutlinePanel/ObjectsList/ObjectsList.js +85 -0
- package/dist/panels/OutlinePanel/OutlinePanel.d.ts +5 -0
- package/dist/panels/OutlinePanel/OutlinePanel.d.ts.map +1 -0
- package/dist/panels/OutlinePanel/OutlinePanel.js +73 -0
- package/dist/panels/OutlinePanel/ProjectsList/ProjectListItem.d.ts +8 -0
- package/dist/panels/OutlinePanel/ProjectsList/ProjectListItem.d.ts.map +1 -0
- package/dist/panels/OutlinePanel/ProjectsList/ProjectListItem.js +38 -0
- package/dist/panels/OutlinePanel/ProjectsList/ProjectsList.d.ts +4 -0
- package/dist/panels/OutlinePanel/ProjectsList/ProjectsList.d.ts.map +1 -0
- package/dist/panels/OutlinePanel/ProjectsList/ProjectsList.js +22 -0
- package/dist/panels/OutlinePanel/SheetsList/SheetInstanceItem.d.ts +7 -0
- package/dist/panels/OutlinePanel/SheetsList/SheetInstanceItem.d.ts.map +1 -0
- package/dist/panels/OutlinePanel/SheetsList/SheetInstanceItem.js +36 -0
- package/dist/panels/OutlinePanel/SheetsList/SheetItem.d.ts +8 -0
- package/dist/panels/OutlinePanel/SheetsList/SheetItem.d.ts.map +1 -0
- package/dist/panels/OutlinePanel/SheetsList/SheetItem.js +23 -0
- package/dist/panels/OutlinePanel/SheetsList/SheetsList.d.ts +8 -0
- package/dist/panels/OutlinePanel/SheetsList/SheetsList.d.ts.map +1 -0
- package/dist/panels/OutlinePanel/SheetsList/SheetsList.js +15 -0
- package/dist/panels/OutlinePanel/outlinePanelUtils.d.ts +11 -0
- package/dist/panels/OutlinePanel/outlinePanelUtils.d.ts.map +1 -0
- package/dist/panels/OutlinePanel/outlinePanelUtils.js +23 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/DopeSheet.d.ts +8 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/DopeSheet.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/DopeSheet.js +21 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/AnyCompositeRow.d.ts +21 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/AnyCompositeRow.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/AnyCompositeRow.js +74 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/Left.d.ts +8 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/Left.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/Left.js +25 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/PrimitivePropRow.d.ts +7 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/PrimitivePropRow.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/PrimitivePropRow.js +97 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/PropWithChildrenRow.d.ts +8 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/PropWithChildrenRow.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/PropWithChildrenRow.js +15 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/SheetObjectRow.d.ts +7 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/SheetObjectRow.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/SheetObjectRow.js +19 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/SheetRow.d.ts +7 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/SheetRow.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/SheetRow.js +20 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/usePropHighlightMouseEnter.d.ts +4 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/usePropHighlightMouseEnter.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/usePropHighlightMouseEnter.js +33 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeConnector.d.ts +13 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeConnector.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeConnector.js +187 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeDot.d.ts +10 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeDot.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeDot.js +158 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeEditor.d.ts +44 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeEditor.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeEditor.js +32 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeVisualDot.d.ts +10 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeVisualDot.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeVisualDot.js +61 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/iif.d.ts +2 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/iif.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/iif.js +3 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/useAggregateKeyframeEditorUtils.d.ts +23 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/useAggregateKeyframeEditorUtils.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/useAggregateKeyframeEditorUtils.js +73 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregatedKeyframeTrack.d.ts +19 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregatedKeyframeTrack.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregatedKeyframeTrack.js +407 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/BasicKeyframedTrack.d.ts +13 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/BasicKeyframedTrack.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/BasicKeyframedTrack.js +108 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/BasicKeyframeConnector.d.ts +6 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/BasicKeyframeConnector.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/BasicKeyframeConnector.js +185 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/CurveEditorPopover.d.ts +21 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/CurveEditorPopover.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/CurveEditorPopover.js +397 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/CurveSegmentEditor.d.ts +12 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/CurveSegmentEditor.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/CurveSegmentEditor.js +136 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/EasingOption.d.ts +15 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/EasingOption.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/EasingOption.js +52 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/SVGCurveSegment.d.ts +9 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/SVGCurveSegment.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/SVGCurveSegment.js +43 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/colors.d.ts +4 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/colors.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/colors.js +3 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/shared.d.ts +43 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/shared.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/shared.js +84 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/useFreezableMemo.d.ts +10 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/useFreezableMemo.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/useFreezableMemo.js +16 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/useUIOptionGrid.d.ts +32 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/useUIOptionGrid.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/useUIOptionGrid.js +82 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/DeterminePropEditorForSingleKeyframe.d.ts +17 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/DeterminePropEditorForSingleKeyframe.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/DeterminePropEditorForSingleKeyframe.js +93 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/SingleKeyframeDot.d.ts +8 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/SingleKeyframeDot.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/SingleKeyframeDot.js +254 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/SingleKeyframeEditor.d.ts +19 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/SingleKeyframeEditor.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/SingleKeyframeEditor.js +22 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/useSingleKeyframeInlineEditorPopover.d.ts +29 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/useSingleKeyframeInlineEditorPopover.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/useSingleKeyframeInlineEditorPopover.js +11 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/useTempTransactionEditingTools.d.ts +18 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/useTempTransactionEditingTools.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/useTempTransactionEditingTools.js +43 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/DopeSheetBackground.d.ts +8 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/DopeSheetBackground.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/DopeSheetBackground.js +24 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/DopeSheetSelectionView.d.ts +10 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/DopeSheetSelectionView.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/DopeSheetSelectionView.js +272 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/FocusRangeCurtains.d.ts +8 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/FocusRangeCurtains.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/FocusRangeCurtains.js +88 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/HorizontallyScrollableArea.d.ts +10 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/HorizontallyScrollableArea.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/HorizontallyScrollableArea.js +215 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/KeyframeSnapTarget.d.ts +36 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/KeyframeSnapTarget.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/KeyframeSnapTarget.js +55 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/LengthIndicator/LengthEditorPopover.d.ts +12 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/LengthIndicator/LengthEditorPopover.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/LengthIndicator/LengthEditorPopover.js +69 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/LengthIndicator/LengthIndicator.d.ts +13 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/LengthIndicator/LengthIndicator.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/LengthIndicator/LengthIndicator.js +217 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/PrimitivePropRow.d.ts +10 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/PrimitivePropRow.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/PrimitivePropRow.js +25 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/PropWithChildrenRow.d.ts +11 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/PropWithChildrenRow.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/PropWithChildrenRow.js +18 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/Right.d.ts +9 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/Right.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/Right.js +30 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/Row.d.ts +21 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/Row.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/Row.js +50 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/SheetObjectRow.d.ts +10 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/SheetObjectRow.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/SheetObjectRow.js +14 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/SheetRow.d.ts +10 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/SheetRow.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/SheetRow.js +14 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/collectAggregateKeyframes.d.ts +58 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/collectAggregateKeyframes.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/collectAggregateKeyframes.js +92 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/keyframeRowUI/ConnectorLine.d.ts +20 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/keyframeRowUI/ConnectorLine.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/keyframeRowUI/ConnectorLine.js +62 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/selections.d.ts +82 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/selections.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/selections.js +149 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/setCollapsedSheetObjectOrCompoundProp.d.ts +7 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/setCollapsedSheetObjectOrCompoundProp.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/setCollapsedSheetObjectOrCompoundProp.js +10 -0
- package/dist/panels/SequenceEditorPanel/FrameGrid/FrameGrid.d.ts +10 -0
- package/dist/panels/SequenceEditorPanel/FrameGrid/FrameGrid.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/FrameGrid/FrameGrid.js +92 -0
- package/dist/panels/SequenceEditorPanel/FrameGrid/StampsGrid.d.ts +15 -0
- package/dist/panels/SequenceEditorPanel/FrameGrid/StampsGrid.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/FrameGrid/StampsGrid.js +99 -0
- package/dist/panels/SequenceEditorPanel/FrameGrid/createGrid.d.ts +23 -0
- package/dist/panels/SequenceEditorPanel/FrameGrid/createGrid.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/FrameGrid/createGrid.js +49 -0
- package/dist/panels/SequenceEditorPanel/FrameStampPositionProvider.d.ts +52 -0
- package/dist/panels/SequenceEditorPanel/FrameStampPositionProvider.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/FrameStampPositionProvider.js +189 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/BasicKeyframedTrack.d.ts +25 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/BasicKeyframedTrack.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/BasicKeyframedTrack.js +91 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/Curve.d.ts +14 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/Curve.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/Curve.js +87 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/CurveHandle.d.ts +10 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/CurveHandle.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/CurveHandle.js +186 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/GraphEditorDotNonScalar.d.ts +9 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/GraphEditorDotNonScalar.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/GraphEditorDotNonScalar.js +162 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/GraphEditorDotScalar.d.ts +7 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/GraphEditorDotScalar.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/GraphEditorDotScalar.js +209 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/GraphEditorNonScalarDash.d.ts +7 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/GraphEditorNonScalarDash.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/GraphEditorNonScalarDash.js +23 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/KeyframeEditor.d.ts +27 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/KeyframeEditor.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/KeyframeEditor.js +30 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/GraphEditor.d.ts +28 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/GraphEditor.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/GraphEditor.js +73 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/PrimitivePropGraph.d.ts +16 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/PrimitivePropGraph.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/PrimitivePropGraph.js +20 -0
- package/dist/panels/SequenceEditorPanel/GraphEditorToggle.d.ts +8 -0
- package/dist/panels/SequenceEditorPanel/GraphEditorToggle.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/GraphEditorToggle.js +59 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/DopeSnap.d.ts +21 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/DopeSnap.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/DopeSnap.js +36 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/DopeSnapHitZoneUI.d.ts +18 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/DopeSnapHitZoneUI.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/DopeSnapHitZoneUI.js +57 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/FocusRangeZone/FocusRangeStrip.d.ts +32 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/FocusRangeZone/FocusRangeStrip.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/FocusRangeZone/FocusRangeStrip.js +233 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/FocusRangeZone/FocusRangeThumb.d.ts +10 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/FocusRangeZone/FocusRangeThumb.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/FocusRangeZone/FocusRangeThumb.js +217 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/FocusRangeZone/FocusRangeZone.d.ts +8 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/FocusRangeZone/FocusRangeZone.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/FocusRangeZone/FocusRangeZone.js +181 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/FrameStamp.d.ts +8 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/FrameStamp.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/FrameStamp.js +65 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/HorizontalScrollbar.d.ts +11 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/HorizontalScrollbar.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/HorizontalScrollbar.js +235 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/Markers/MarkerDot.d.ts +11 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/Markers/MarkerDot.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/Markers/MarkerDot.js +184 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/Markers/MarkerEditorPopover.d.ts +14 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/Markers/MarkerEditorPopover.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/Markers/MarkerEditorPopover.js +65 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/Markers/Markers.d.ts +8 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/Markers/Markers.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/Markers/Markers.js +13 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/Playhead.d.ts +8 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/Playhead.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/Playhead.js +265 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/PlayheadPositionPopover.d.ts +12 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/PlayheadPositionPopover.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/PlayheadPositionPopover.js +64 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/RightOverlay.d.ts +8 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/RightOverlay.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/RightOverlay.js +35 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/TopStrip.d.ts +13 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/TopStrip.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/TopStrip.js +31 -0
- package/dist/panels/SequenceEditorPanel/SequenceEditorPanel.d.ts +15 -0
- package/dist/panels/SequenceEditorPanel/SequenceEditorPanel.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/SequenceEditorPanel.js +179 -0
- package/dist/panels/SequenceEditorPanel/VerticalScrollContainer.d.ts +19 -0
- package/dist/panels/SequenceEditorPanel/VerticalScrollContainer.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/VerticalScrollContainer.js +42 -0
- package/dist/panels/SequenceEditorPanel/layout/layout.d.ts +146 -0
- package/dist/panels/SequenceEditorPanel/layout/layout.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/layout/layout.js +166 -0
- package/dist/panels/SequenceEditorPanel/layout/tree.d.ts +71 -0
- package/dist/panels/SequenceEditorPanel/layout/tree.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/layout/tree.js +139 -0
- package/dist/panels/SequenceEditorPanel/whatPropIsHighlighted.d.ts +10 -0
- package/dist/panels/SequenceEditorPanel/whatPropIsHighlighted.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/whatPropIsHighlighted.js +58 -0
- package/dist/propEditors/DefaultValueIndicator.d.ts +12 -0
- package/dist/propEditors/DefaultValueIndicator.d.ts.map +1 -0
- package/dist/propEditors/DefaultValueIndicator.js +64 -0
- package/dist/propEditors/NextPrevKeyframeCursors.d.ts +29 -0
- package/dist/propEditors/NextPrevKeyframeCursors.d.ts.map +1 -0
- package/dist/propEditors/NextPrevKeyframeCursors.js +135 -0
- package/dist/propEditors/getNearbyKeyframesOfTrack.d.ts +9 -0
- package/dist/propEditors/getNearbyKeyframesOfTrack.d.ts.map +1 -0
- package/dist/propEditors/getNearbyKeyframesOfTrack.js +46 -0
- package/dist/propEditors/simpleEditors/BooleanPropEditor.d.ts +6 -0
- package/dist/propEditors/simpleEditors/BooleanPropEditor.d.ts.map +1 -0
- package/dist/propEditors/simpleEditors/BooleanPropEditor.js +17 -0
- package/dist/propEditors/simpleEditors/FilePropEditor.d.ts +6 -0
- package/dist/propEditors/simpleEditors/FilePropEditor.d.ts.map +1 -0
- package/dist/propEditors/simpleEditors/FilePropEditor.js +118 -0
- package/dist/propEditors/simpleEditors/ISimplePropEditorReactProps.d.ts +10 -0
- package/dist/propEditors/simpleEditors/ISimplePropEditorReactProps.d.ts.map +1 -0
- package/dist/propEditors/simpleEditors/ISimplePropEditorReactProps.js +1 -0
- package/dist/propEditors/simpleEditors/ImagePropEditor.d.ts +6 -0
- package/dist/propEditors/simpleEditors/ImagePropEditor.d.ts.map +1 -0
- package/dist/propEditors/simpleEditors/ImagePropEditor.js +126 -0
- package/dist/propEditors/simpleEditors/NumberPropEditor.d.ts +6 -0
- package/dist/propEditors/simpleEditors/NumberPropEditor.d.ts.map +1 -0
- package/dist/propEditors/simpleEditors/NumberPropEditor.js +9 -0
- package/dist/propEditors/simpleEditors/RgbaPropEditor.d.ts +6 -0
- package/dist/propEditors/simpleEditors/RgbaPropEditor.d.ts.map +1 -0
- package/dist/propEditors/simpleEditors/RgbaPropEditor.js +73 -0
- package/dist/propEditors/simpleEditors/StringLiteralPropEditor.d.ts +6 -0
- package/dist/propEditors/simpleEditors/StringLiteralPropEditor.d.ts.map +1 -0
- package/dist/propEditors/simpleEditors/StringLiteralPropEditor.js +10 -0
- package/dist/propEditors/simpleEditors/StringPropEditor.d.ts +6 -0
- package/dist/propEditors/simpleEditors/StringPropEditor.d.ts.map +1 -0
- package/dist/propEditors/simpleEditors/StringPropEditor.js +6 -0
- package/dist/propEditors/simpleEditors/simplePropEditorByPropType.d.ts +10 -0
- package/dist/propEditors/simpleEditors/simplePropEditorByPropType.d.ts.map +1 -0
- package/dist/propEditors/simpleEditors/simplePropEditorByPropType.js +16 -0
- package/dist/propEditors/useEditingToolsForCompoundProp.d.ts +27 -0
- package/dist/propEditors/useEditingToolsForCompoundProp.d.ts.map +1 -0
- package/dist/propEditors/useEditingToolsForCompoundProp.js +228 -0
- package/dist/propEditors/useEditingToolsForSimpleProp.d.ts +47 -0
- package/dist/propEditors/useEditingToolsForSimpleProp.d.ts.map +1 -0
- package/dist/propEditors/useEditingToolsForSimpleProp.js +229 -0
- package/dist/propEditors/utils/IEditingTools.d.ts +9 -0
- package/dist/propEditors/utils/IEditingTools.d.ts.map +1 -0
- package/dist/propEditors/utils/IEditingTools.js +1 -0
- package/dist/propEditors/utils/PropConfigForType.d.ts +5 -0
- package/dist/propEditors/utils/PropConfigForType.d.ts.map +1 -0
- package/dist/propEditors/utils/PropConfigForType.js +1 -0
- package/dist/propEditors/utils/getPropTypeByPointer.d.ts +19 -0
- package/dist/propEditors/utils/getPropTypeByPointer.d.ts.map +1 -0
- package/dist/propEditors/utils/getPropTypeByPointer.js +48 -0
- package/dist/propEditors/utils/propNameTextCSS.d.ts +5 -0
- package/dist/propEditors/utils/propNameTextCSS.d.ts.map +1 -0
- package/dist/propEditors/utils/propNameTextCSS.js +7 -0
- package/dist/selectors.d.ts +13 -0
- package/dist/selectors.d.ts.map +1 -0
- package/dist/selectors.js +63 -0
- package/dist/store/index.d.ts +210 -0
- package/dist/store/index.d.ts.map +1 -0
- package/dist/store/index.js +184 -0
- package/dist/store/stateEditors.d.ts +300 -0
- package/dist/store/stateEditors.d.ts.map +1 -0
- package/dist/store/stateEditors.js +774 -0
- package/dist/store/types/ahistoric.d.ts +79 -0
- package/dist/store/types/ahistoric.d.ts.map +1 -0
- package/dist/store/types/ahistoric.js +1 -0
- package/dist/store/types/ephemeral.d.ts +53 -0
- package/dist/store/types/ephemeral.d.ts.map +1 -0
- package/dist/store/types/ephemeral.js +1 -0
- package/dist/store/types/historic.d.ts +104 -0
- package/dist/store/types/historic.d.ts.map +1 -0
- package/dist/store/types/historic.js +1 -0
- package/dist/store/types/index.d.ts +25 -0
- package/dist/store/types/index.d.ts.map +1 -0
- package/dist/store/types/index.js +3 -0
- package/dist/toolbars/ExtensionToolbar/ExtensionToolbar.d.ts +7 -0
- package/dist/toolbars/ExtensionToolbar/ExtensionToolbar.d.ts.map +1 -0
- package/dist/toolbars/ExtensionToolbar/ExtensionToolbar.js +51 -0
- package/dist/toolbars/ExtensionToolbar/Toolset.d.ts +7 -0
- package/dist/toolbars/ExtensionToolbar/Toolset.d.ts.map +1 -0
- package/dist/toolbars/ExtensionToolbar/Toolset.js +27 -0
- package/dist/toolbars/ExtensionToolbar/tools/ExtensionFlyoutMenu.d.ts +7 -0
- package/dist/toolbars/ExtensionToolbar/tools/ExtensionFlyoutMenu.d.ts.map +1 -0
- package/dist/toolbars/ExtensionToolbar/tools/ExtensionFlyoutMenu.js +51 -0
- package/dist/toolbars/ExtensionToolbar/tools/IconButton.d.ts +8 -0
- package/dist/toolbars/ExtensionToolbar/tools/IconButton.d.ts.map +1 -0
- package/dist/toolbars/ExtensionToolbar/tools/IconButton.js +16 -0
- package/dist/toolbars/ExtensionToolbar/tools/Switch.d.ts +7 -0
- package/dist/toolbars/ExtensionToolbar/tools/Switch.d.ts.map +1 -0
- package/dist/toolbars/ExtensionToolbar/tools/Switch.js +20 -0
- package/dist/toolbars/GlobalToolbar.d.ts +4 -0
- package/dist/toolbars/GlobalToolbar.d.ts.map +1 -0
- package/dist/toolbars/GlobalToolbar.js +142 -0
- package/dist/toolbars/MoreMenu/MoreMenu.d.ts +4 -0
- package/dist/toolbars/MoreMenu/MoreMenu.d.ts.map +1 -0
- package/dist/toolbars/MoreMenu/MoreMenu.js +133 -0
- package/dist/toolbars/PinButton.d.ts +12 -0
- package/dist/toolbars/PinButton.d.ts.map +1 -0
- package/dist/toolbars/PinButton.js +26 -0
- package/dist/uiComponents/DetailPanelButton.d.ts +5 -0
- package/dist/uiComponents/DetailPanelButton.d.ts.map +1 -0
- package/dist/uiComponents/DetailPanelButton.js +21 -0
- package/dist/uiComponents/PointerEventsHandler.d.ts +31 -0
- package/dist/uiComponents/PointerEventsHandler.d.ts.map +1 -0
- package/dist/uiComponents/PointerEventsHandler.js +80 -0
- package/dist/uiComponents/Popover/ArrowContext.d.ts +4 -0
- package/dist/uiComponents/Popover/ArrowContext.d.ts.map +1 -0
- package/dist/uiComponents/Popover/ArrowContext.js +3 -0
- package/dist/uiComponents/Popover/BasicPopover.d.ts +9 -0
- package/dist/uiComponents/Popover/BasicPopover.d.ts.map +1 -0
- package/dist/uiComponents/Popover/BasicPopover.js +35 -0
- package/dist/uiComponents/Popover/BasicTooltip.d.ts +8 -0
- package/dist/uiComponents/Popover/BasicTooltip.d.ts.map +1 -0
- package/dist/uiComponents/Popover/BasicTooltip.js +10 -0
- package/dist/uiComponents/Popover/ErrorTooltip.d.ts +8 -0
- package/dist/uiComponents/Popover/ErrorTooltip.d.ts.map +1 -0
- package/dist/uiComponents/Popover/ErrorTooltip.js +9 -0
- package/dist/uiComponents/Popover/MinimalTooltip.d.ts +8 -0
- package/dist/uiComponents/Popover/MinimalTooltip.d.ts.map +1 -0
- package/dist/uiComponents/Popover/MinimalTooltip.js +6 -0
- package/dist/uiComponents/Popover/PopoverArrow.d.ts +8 -0
- package/dist/uiComponents/Popover/PopoverArrow.d.ts.map +1 -0
- package/dist/uiComponents/Popover/PopoverArrow.js +38 -0
- package/dist/uiComponents/Popover/TooltipContext.d.ts +7 -0
- package/dist/uiComponents/Popover/TooltipContext.d.ts.map +1 -0
- package/dist/uiComponents/Popover/TooltipContext.js +46 -0
- package/dist/uiComponents/Popover/TooltipWrapper.d.ts +21 -0
- package/dist/uiComponents/Popover/TooltipWrapper.d.ts.map +1 -0
- package/dist/uiComponents/Popover/TooltipWrapper.js +103 -0
- package/dist/uiComponents/Popover/usePopover.d.ts +29 -0
- package/dist/uiComponents/Popover/usePopover.d.ts.map +1 -0
- package/dist/uiComponents/Popover/usePopover.js +132 -0
- package/dist/uiComponents/Popover/useTooltip.d.ts +14 -0
- package/dist/uiComponents/Popover/useTooltip.d.ts.map +1 -0
- package/dist/uiComponents/Popover/useTooltip.js +33 -0
- package/dist/uiComponents/RoomToClick.d.ts +6 -0
- package/dist/uiComponents/RoomToClick.d.ts.map +1 -0
- package/dist/uiComponents/RoomToClick.js +10 -0
- package/dist/uiComponents/SVGIcon.d.ts +8 -0
- package/dist/uiComponents/SVGIcon.d.ts.map +1 -0
- package/dist/uiComponents/SVGIcon.js +19 -0
- package/dist/uiComponents/ShowMousePosition.d.ts +4 -0
- package/dist/uiComponents/ShowMousePosition.d.ts.map +1 -0
- package/dist/uiComponents/ShowMousePosition.js +30 -0
- package/dist/uiComponents/colorPicker/components/EditingProvider.d.ts +15 -0
- package/dist/uiComponents/colorPicker/components/EditingProvider.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/components/EditingProvider.js +15 -0
- package/dist/uiComponents/colorPicker/components/RgbaColorPicker.d.ts +3 -0
- package/dist/uiComponents/colorPicker/components/RgbaColorPicker.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/components/RgbaColorPicker.js +31 -0
- package/dist/uiComponents/colorPicker/components/common/Alpha.d.ts +11 -0
- package/dist/uiComponents/colorPicker/components/common/Alpha.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/components/common/Alpha.js +54 -0
- package/dist/uiComponents/colorPicker/components/common/AlphaColorPicker.d.ts +7 -0
- package/dist/uiComponents/colorPicker/components/common/AlphaColorPicker.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/components/common/AlphaColorPicker.js +28 -0
- package/dist/uiComponents/colorPicker/components/common/Hue.d.ts +11 -0
- package/dist/uiComponents/colorPicker/components/common/Hue.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/components/common/Hue.js +41 -0
- package/dist/uiComponents/colorPicker/components/common/Interactive.d.ts +13 -0
- package/dist/uiComponents/colorPicker/components/common/Interactive.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/components/common/Interactive.js +142 -0
- package/dist/uiComponents/colorPicker/components/common/Pointer.d.ts +10 -0
- package/dist/uiComponents/colorPicker/components/common/Pointer.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/components/common/Pointer.js +39 -0
- package/dist/uiComponents/colorPicker/components/common/Saturation.d.ts +12 -0
- package/dist/uiComponents/colorPicker/components/common/Saturation.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/components/common/Saturation.js +44 -0
- package/dist/uiComponents/colorPicker/hooks/useColorManipulation.d.ts +3 -0
- package/dist/uiComponents/colorPicker/hooks/useColorManipulation.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/hooks/useColorManipulation.js +77 -0
- package/dist/uiComponents/colorPicker/hooks/useEventCallback.d.ts +2 -0
- package/dist/uiComponents/colorPicker/hooks/useEventCallback.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/hooks/useEventCallback.js +10 -0
- package/dist/uiComponents/colorPicker/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/uiComponents/colorPicker/hooks/useIsomorphicLayoutEffect.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/hooks/useIsomorphicLayoutEffect.js +5 -0
- package/dist/uiComponents/colorPicker/index.d.ts +3 -0
- package/dist/uiComponents/colorPicker/index.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/index.js +1 -0
- package/dist/uiComponents/colorPicker/types.d.ts +47 -0
- package/dist/uiComponents/colorPicker/types.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/types.js +1 -0
- package/dist/uiComponents/colorPicker/utils/clamp.d.ts +2 -0
- package/dist/uiComponents/colorPicker/utils/clamp.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/utils/clamp.js +6 -0
- package/dist/uiComponents/colorPicker/utils/compare.d.ts +5 -0
- package/dist/uiComponents/colorPicker/utils/compare.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/utils/compare.js +25 -0
- package/dist/uiComponents/colorPicker/utils/convert.d.ts +27 -0
- package/dist/uiComponents/colorPicker/utils/convert.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/utils/convert.js +165 -0
- package/dist/uiComponents/colorPicker/utils/round.d.ts +2 -0
- package/dist/uiComponents/colorPicker/utils/round.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/utils/round.js +3 -0
- package/dist/uiComponents/colorPicker/utils/validate.d.ts +2 -0
- package/dist/uiComponents/colorPicker/utils/validate.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/utils/validate.js +10 -0
- package/dist/uiComponents/createCursorLock.d.ts +2 -0
- package/dist/uiComponents/createCursorLock.d.ts.map +1 -0
- package/dist/uiComponents/createCursorLock.js +2 -0
- package/dist/uiComponents/form/BasicCheckbox.d.ts +5 -0
- package/dist/uiComponents/form/BasicCheckbox.d.ts.map +1 -0
- package/dist/uiComponents/form/BasicCheckbox.js +5 -0
- package/dist/uiComponents/form/BasicNumberInput.d.ts +26 -0
- package/dist/uiComponents/form/BasicNumberInput.d.ts.map +1 -0
- package/dist/uiComponents/form/BasicNumberInput.js +261 -0
- package/dist/uiComponents/form/BasicSelect.d.ts +10 -0
- package/dist/uiComponents/form/BasicSelect.d.ts.map +1 -0
- package/dist/uiComponents/form/BasicSelect.js +58 -0
- package/dist/uiComponents/form/BasicStringInput.d.ts +19 -0
- package/dist/uiComponents/form/BasicStringInput.d.ts.map +1 -0
- package/dist/uiComponents/form/BasicStringInput.js +151 -0
- package/dist/uiComponents/form/BasicSwitch.d.ts +9 -0
- package/dist/uiComponents/form/BasicSwitch.d.ts.map +1 -0
- package/dist/uiComponents/form/BasicSwitch.js +60 -0
- package/dist/uiComponents/icons/AddImage.d.ts +4 -0
- package/dist/uiComponents/icons/AddImage.d.ts.map +1 -0
- package/dist/uiComponents/icons/AddImage.js +6 -0
- package/dist/uiComponents/icons/ArrowClockwise.d.ts +4 -0
- package/dist/uiComponents/icons/ArrowClockwise.d.ts.map +1 -0
- package/dist/uiComponents/icons/ArrowClockwise.js +6 -0
- package/dist/uiComponents/icons/ArrowsOutCardinal.d.ts +4 -0
- package/dist/uiComponents/icons/ArrowsOutCardinal.d.ts.map +1 -0
- package/dist/uiComponents/icons/ArrowsOutCardinal.js +6 -0
- package/dist/uiComponents/icons/Bell.d.ts +4 -0
- package/dist/uiComponents/icons/Bell.d.ts.map +1 -0
- package/dist/uiComponents/icons/Bell.js +6 -0
- package/dist/uiComponents/icons/Camera.d.ts +4 -0
- package/dist/uiComponents/icons/Camera.d.ts.map +1 -0
- package/dist/uiComponents/icons/Camera.js +7 -0
- package/dist/uiComponents/icons/ChevronDown.d.ts +4 -0
- package/dist/uiComponents/icons/ChevronDown.d.ts.map +1 -0
- package/dist/uiComponents/icons/ChevronDown.js +6 -0
- package/dist/uiComponents/icons/ChevronLeft.d.ts +4 -0
- package/dist/uiComponents/icons/ChevronLeft.d.ts.map +1 -0
- package/dist/uiComponents/icons/ChevronLeft.js +6 -0
- package/dist/uiComponents/icons/ChevronRight.d.ts +4 -0
- package/dist/uiComponents/icons/ChevronRight.d.ts.map +1 -0
- package/dist/uiComponents/icons/ChevronRight.js +6 -0
- package/dist/uiComponents/icons/Cube.d.ts +4 -0
- package/dist/uiComponents/icons/Cube.d.ts.map +1 -0
- package/dist/uiComponents/icons/Cube.js +6 -0
- package/dist/uiComponents/icons/CubeFull.d.ts +4 -0
- package/dist/uiComponents/icons/CubeFull.d.ts.map +1 -0
- package/dist/uiComponents/icons/CubeFull.js +6 -0
- package/dist/uiComponents/icons/CubeHalf.d.ts +4 -0
- package/dist/uiComponents/icons/CubeHalf.d.ts.map +1 -0
- package/dist/uiComponents/icons/CubeHalf.js +6 -0
- package/dist/uiComponents/icons/CubeRendered.d.ts +4 -0
- package/dist/uiComponents/icons/CubeRendered.d.ts.map +1 -0
- package/dist/uiComponents/icons/CubeRendered.js +7 -0
- package/dist/uiComponents/icons/Details.d.ts +4 -0
- package/dist/uiComponents/icons/Details.d.ts.map +1 -0
- package/dist/uiComponents/icons/Details.js +6 -0
- package/dist/uiComponents/icons/DoubleChevronLeft.d.ts +4 -0
- package/dist/uiComponents/icons/DoubleChevronLeft.d.ts.map +1 -0
- package/dist/uiComponents/icons/DoubleChevronLeft.js +6 -0
- package/dist/uiComponents/icons/DoubleChevronRight.d.ts +4 -0
- package/dist/uiComponents/icons/DoubleChevronRight.d.ts.map +1 -0
- package/dist/uiComponents/icons/DoubleChevronRight.js +6 -0
- package/dist/uiComponents/icons/Ellipsis.d.ts +4 -0
- package/dist/uiComponents/icons/Ellipsis.d.ts.map +1 -0
- package/dist/uiComponents/icons/Ellipsis.js +6 -0
- package/dist/uiComponents/icons/EllipsisFill.d.ts +4 -0
- package/dist/uiComponents/icons/EllipsisFill.d.ts.map +1 -0
- package/dist/uiComponents/icons/EllipsisFill.js +6 -0
- package/dist/uiComponents/icons/GlobeSimple.d.ts +4 -0
- package/dist/uiComponents/icons/GlobeSimple.d.ts.map +1 -0
- package/dist/uiComponents/icons/GlobeSimple.js +6 -0
- package/dist/uiComponents/icons/Outline.d.ts +4 -0
- package/dist/uiComponents/icons/Outline.d.ts.map +1 -0
- package/dist/uiComponents/icons/Outline.js +6 -0
- package/dist/uiComponents/icons/Package.d.ts +4 -0
- package/dist/uiComponents/icons/Package.d.ts.map +1 -0
- package/dist/uiComponents/icons/Package.js +6 -0
- package/dist/uiComponents/icons/Resize.d.ts +4 -0
- package/dist/uiComponents/icons/Resize.d.ts.map +1 -0
- package/dist/uiComponents/icons/Resize.js +7 -0
- package/dist/uiComponents/icons/Trash.d.ts +4 -0
- package/dist/uiComponents/icons/Trash.d.ts.map +1 -0
- package/dist/uiComponents/icons/Trash.js +6 -0
- package/dist/uiComponents/icons/index.d.ts +21 -0
- package/dist/uiComponents/icons/index.d.ts.map +1 -0
- package/dist/uiComponents/icons/index.js +20 -0
- package/dist/uiComponents/isSafari.d.ts +2 -0
- package/dist/uiComponents/isSafari.d.ts.map +1 -0
- package/dist/uiComponents/isSafari.js +2 -0
- package/dist/uiComponents/onPointerOutside.d.ts +6 -0
- package/dist/uiComponents/onPointerOutside.d.ts.map +1 -0
- package/dist/uiComponents/onPointerOutside.js +19 -0
- package/dist/uiComponents/selects/BasicSelect.d.ts +15 -0
- package/dist/uiComponents/selects/BasicSelect.d.ts.map +1 -0
- package/dist/uiComponents/selects/BasicSelect.js +24 -0
- package/dist/uiComponents/simpleContextMenu/ContextMenu/BaseMenu.d.ts +16 -0
- package/dist/uiComponents/simpleContextMenu/ContextMenu/BaseMenu.d.ts.map +1 -0
- package/dist/uiComponents/simpleContextMenu/ContextMenu/BaseMenu.js +40 -0
- package/dist/uiComponents/simpleContextMenu/ContextMenu/ContextMenu.d.ts +27 -0
- package/dist/uiComponents/simpleContextMenu/ContextMenu/ContextMenu.d.ts.map +1 -0
- package/dist/uiComponents/simpleContextMenu/ContextMenu/ContextMenu.js +87 -0
- package/dist/uiComponents/simpleContextMenu/ContextMenu/Item.d.ts +10 -0
- package/dist/uiComponents/simpleContextMenu/ContextMenu/Item.d.ts.map +1 -0
- package/dist/uiComponents/simpleContextMenu/ContextMenu/Item.js +37 -0
- package/dist/uiComponents/simpleContextMenu/useContextMenu.d.ts +11 -0
- package/dist/uiComponents/simpleContextMenu/useContextMenu.d.ts.map +1 -0
- package/dist/uiComponents/simpleContextMenu/useContextMenu.js +20 -0
- package/dist/uiComponents/simpleContextMenu/useRequestContextMenu.d.ts +13 -0
- package/dist/uiComponents/simpleContextMenu/useRequestContextMenu.d.ts.map +1 -0
- package/dist/uiComponents/simpleContextMenu/useRequestContextMenu.js +22 -0
- package/dist/uiComponents/toolbar/ToolbarDropdownSelect.d.ts +16 -0
- package/dist/uiComponents/toolbar/ToolbarDropdownSelect.d.ts.map +1 -0
- package/dist/uiComponents/toolbar/ToolbarDropdownSelect.js +7 -0
- package/dist/uiComponents/toolbar/ToolbarIconButton.d.ts +4 -0
- package/dist/uiComponents/toolbar/ToolbarIconButton.d.ts.map +1 -0
- package/dist/uiComponents/toolbar/ToolbarIconButton.js +74 -0
- package/dist/uiComponents/toolbar/ToolbarSwitchSelect.d.ts +15 -0
- package/dist/uiComponents/toolbar/ToolbarSwitchSelect.d.ts.map +1 -0
- package/dist/uiComponents/toolbar/ToolbarSwitchSelect.js +12 -0
- package/dist/uiComponents/toolbar/ToolbarSwitchSelectContainer.d.ts +3 -0
- package/dist/uiComponents/toolbar/ToolbarSwitchSelectContainer.d.ts.map +1 -0
- package/dist/uiComponents/toolbar/ToolbarSwitchSelectContainer.js +9 -0
- package/dist/uiComponents/useBoundingClientRect.d.ts +2 -0
- package/dist/uiComponents/useBoundingClientRect.d.ts.map +1 -0
- package/dist/uiComponents/useBoundingClientRect.js +13 -0
- package/dist/uiComponents/useDebugRefreshEvery.d.ts +9 -0
- package/dist/uiComponents/useDebugRefreshEvery.d.ts.map +1 -0
- package/dist/uiComponents/useDebugRefreshEvery.js +19 -0
- package/dist/uiComponents/useDrag.d.ts +76 -0
- package/dist/uiComponents/useDrag.d.ts.map +1 -0
- package/dist/uiComponents/useDrag.js +199 -0
- package/dist/uiComponents/useHotspot.d.ts +2 -0
- package/dist/uiComponents/useHotspot.d.ts.map +1 -0
- package/dist/uiComponents/useHotspot.js +30 -0
- package/dist/uiComponents/useHover.d.ts +2 -0
- package/dist/uiComponents/useHover.d.ts.map +1 -0
- package/dist/uiComponents/useHover.js +23 -0
- package/dist/uiComponents/useHoverWithoutDescendants.d.ts +5 -0
- package/dist/uiComponents/useHoverWithoutDescendants.d.ts.map +1 -0
- package/dist/uiComponents/useHoverWithoutDescendants.js +33 -0
- package/dist/uiComponents/useKeyDown.d.ts +3 -0
- package/dist/uiComponents/useKeyDown.d.ts.map +1 -0
- package/dist/uiComponents/useKeyDown.js +9 -0
- package/dist/uiComponents/useKeyDownCallback.d.ts +7 -0
- package/dist/uiComponents/useKeyDownCallback.d.ts.map +1 -0
- package/dist/uiComponents/useKeyDownCallback.js +28 -0
- package/dist/uiComponents/useLockSet.d.ts +5 -0
- package/dist/uiComponents/useLockSet.d.ts.map +1 -0
- package/dist/uiComponents/useLockSet.js +17 -0
- package/dist/uiComponents/useLogger.d.ts +7 -0
- package/dist/uiComponents/useLogger.d.ts.map +1 -0
- package/dist/uiComponents/useLogger.js +16 -0
- package/dist/uiComponents/useOnClickOutside.d.ts +2 -0
- package/dist/uiComponents/useOnClickOutside.d.ts.map +1 -0
- package/dist/uiComponents/useOnClickOutside.js +25 -0
- package/dist/uiComponents/useOnKeyDown.d.ts +2 -0
- package/dist/uiComponents/useOnKeyDown.d.ts.map +1 -0
- package/dist/uiComponents/useOnKeyDown.js +12 -0
- package/dist/uiComponents/usePresence.d.ts +30 -0
- package/dist/uiComponents/usePresence.d.ts.map +1 -0
- package/dist/uiComponents/usePresence.js +156 -0
- package/dist/uiComponents/useValToAtom.d.ts +3 -0
- package/dist/uiComponents/useValToAtom.d.ts.map +1 -0
- package/dist/uiComponents/useValToAtom.js +11 -0
- package/dist/utils/absoluteDims.d.ts +3 -0
- package/dist/utils/absoluteDims.d.ts.map +1 -0
- package/dist/utils/absoluteDims.js +7 -0
- package/dist/utils/contextualWebComponents.d.ts +5 -0
- package/dist/utils/contextualWebComponents.d.ts.map +1 -0
- package/dist/utils/contextualWebComponents.js +44 -0
- package/dist/utils/copyToClipboard.d.ts +2 -0
- package/dist/utils/copyToClipboard.d.ts.map +1 -0
- package/dist/utils/copyToClipboard.js +28 -0
- package/dist/utils/derive-utils.d.ts +21 -0
- package/dist/utils/derive-utils.d.ts.map +1 -0
- package/dist/utils/derive-utils.js +61 -0
- package/dist/utils/devStringify.d.ts +7 -0
- package/dist/utils/devStringify.d.ts.map +1 -0
- package/dist/utils/devStringify.js +20 -0
- package/dist/utils/invariant.d.ts +35 -0
- package/dist/utils/invariant.d.ts.map +1 -0
- package/dist/utils/invariant.js +79 -0
- package/dist/utils/isMac.d.ts +2 -0
- package/dist/utils/isMac.d.ts.map +1 -0
- package/dist/utils/isMac.js +2 -0
- package/dist/utils/keyboardUtils.d.ts +9 -0
- package/dist/utils/keyboardUtils.d.ts.map +1 -0
- package/dist/utils/keyboardUtils.js +23 -0
- package/dist/utils/mousePositionD.d.ts +6 -0
- package/dist/utils/mousePositionD.d.ts.map +1 -0
- package/dist/utils/mousePositionD.js +18 -0
- package/dist/utils/redux/actionCreator.d.ts +49 -0
- package/dist/utils/redux/actionCreator.d.ts.map +1 -0
- package/dist/utils/redux/actionCreator.js +15 -0
- package/dist/utils/redux/actionCreator.test.d.ts +2 -0
- package/dist/utils/redux/actionCreator.test.d.ts.map +1 -0
- package/dist/utils/redux/actionCreator.test.js +35 -0
- package/dist/utils/redux/actionReducersBundle.d.ts +18 -0
- package/dist/utils/redux/actionReducersBundle.d.ts.map +1 -0
- package/dist/utils/redux/actionReducersBundle.js +18 -0
- package/dist/utils/redux/atomFromReduxStore.d.ts +4 -0
- package/dist/utils/redux/atomFromReduxStore.d.ts.map +1 -0
- package/dist/utils/redux/atomFromReduxStore.js +11 -0
- package/dist/utils/redux/configureStore.d.ts +9 -0
- package/dist/utils/redux/configureStore.d.ts.map +1 -0
- package/dist/utils/redux/configureStore.js +18 -0
- package/dist/utils/redux/pointerFriendlySelector.d.ts +10 -0
- package/dist/utils/redux/pointerFriendlySelector.d.ts.map +1 -0
- package/dist/utils/redux/pointerFriendlySelector.js +8 -0
- package/dist/utils/redux/withHistory/withBatchActions.d.ts +19 -0
- package/dist/utils/redux/withHistory/withBatchActions.d.ts.map +1 -0
- package/dist/utils/redux/withHistory/withBatchActions.js +13 -0
- package/dist/utils/redux/withHistory/withHistory.d.ts +127 -0
- package/dist/utils/redux/withHistory/withHistory.d.ts.map +1 -0
- package/dist/utils/redux/withHistory/withHistory.js +157 -0
- package/dist/utils/renderInPortalInContext.d.ts +7 -0
- package/dist/utils/renderInPortalInContext.d.ts.map +1 -0
- package/dist/utils/renderInPortalInContext.js +38 -0
- package/dist/utils/selectClosestHTMLAncestor.d.ts +5 -0
- package/dist/utils/selectClosestHTMLAncestor.d.ts.map +1 -0
- package/dist/utils/selectClosestHTMLAncestor.js +13 -0
- package/dist/utils/tightJsonStringify.d.ts +23 -0
- package/dist/utils/tightJsonStringify.d.ts.map +1 -0
- package/dist/utils/tightJsonStringify.js +27 -0
- package/dist/utils/tightJsonStringify.test.d.ts +2 -0
- package/dist/utils/tightJsonStringify.test.d.ts.map +1 -0
- package/dist/utils/tightJsonStringify.test.js +25 -0
- package/dist/utils/useRefAndState.d.ts +18 -0
- package/dist/utils/useRefAndState.d.ts.map +1 -0
- package/dist/utils/useRefAndState.js +32 -0
- package/package.json +1 -1
- package/dist/index.mjs +0 -105
- package/dist/index.mjs.map +0 -7
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import useDrag from '@tomorrowevening/theatre-studio/uiComponents/useDrag';
|
|
3
|
+
import useRefAndState from '@tomorrowevening/theatre-studio/utils/useRefAndState';
|
|
4
|
+
import clamp from 'lodash-es/clamp';
|
|
5
|
+
import styled from 'styled-components';
|
|
6
|
+
import { pointerEventsAutoInNormalMode } from '@tomorrowevening/theatre-studio/css';
|
|
7
|
+
import { useFreezableMemo } from './useFreezableMemo';
|
|
8
|
+
import { COLOR_BASE } from './colors';
|
|
9
|
+
// Defines the dimensions of the SVG viewbox space
|
|
10
|
+
const VIEWBOX_PADDING = 0.12;
|
|
11
|
+
const VIEWBOX_SIZE = 1 + VIEWBOX_PADDING * 2;
|
|
12
|
+
const PATTERN_DOT_SIZE = 0.01;
|
|
13
|
+
const PATTERN_DOT_COUNT = 8;
|
|
14
|
+
const PATTERN_GRID_SIZE = (1 - PATTERN_DOT_SIZE) / (PATTERN_DOT_COUNT - 1);
|
|
15
|
+
// The curve supports a gradient but currently is solid cyan
|
|
16
|
+
const CURVE_START_OVERSHOOT_COLOR = '#3EAAA4';
|
|
17
|
+
const CURVE_START_COLOR = '#3EAAA4';
|
|
18
|
+
const CURVE_MID_START_COLOR = '#3EAAA4';
|
|
19
|
+
const CURVE_MID_COLOR = '#3EAAA4';
|
|
20
|
+
const CURVE_MID_END_COLOR = '#3EAAA4';
|
|
21
|
+
const CURVE_END_COLOR = '#3EAAA4';
|
|
22
|
+
const CURVE_END_OVERSHOOT_COLOR = '#3EAAA4';
|
|
23
|
+
const CONTROL_COLOR = '#B3B3B3';
|
|
24
|
+
const HANDLE_COLOR = '#3eaaa4';
|
|
25
|
+
const HANDLE_HOVER_COLOR = '#67dfd8';
|
|
26
|
+
const BACKGROUND_CURVE_COLORS = [
|
|
27
|
+
'goldenrod',
|
|
28
|
+
'cornflowerblue',
|
|
29
|
+
'dodgerblue',
|
|
30
|
+
'lawngreen',
|
|
31
|
+
];
|
|
32
|
+
const Circle = styled.circle `
|
|
33
|
+
stroke-width: 0.1px;
|
|
34
|
+
vector-effect: non-scaling-stroke;
|
|
35
|
+
r: 0.04px;
|
|
36
|
+
pointer-events: none;
|
|
37
|
+
transition: r 0.15s;
|
|
38
|
+
fill: ${HANDLE_COLOR};
|
|
39
|
+
`;
|
|
40
|
+
const HitZone = styled.circle `
|
|
41
|
+
stroke-width: 0.1px;
|
|
42
|
+
vector-effect: non-scaling-stroke;
|
|
43
|
+
r: 0.09px;
|
|
44
|
+
cursor: move;
|
|
45
|
+
${pointerEventsAutoInNormalMode};
|
|
46
|
+
&:hover {
|
|
47
|
+
opacity: 0.4;
|
|
48
|
+
}
|
|
49
|
+
&:hover + ${Circle} {
|
|
50
|
+
fill: ${HANDLE_HOVER_COLOR};
|
|
51
|
+
}
|
|
52
|
+
`;
|
|
53
|
+
const CurveSegmentEditor = (props) => {
|
|
54
|
+
const { curveConnection: { left, right }, backgroundConnections, } = props;
|
|
55
|
+
// Calculations towards keeping the handles in the viewbox. The extremum space
|
|
56
|
+
// of this editor vertically scales to keep the handles in the viewbox of the
|
|
57
|
+
// SVG. This produces a nice "stretching space" effect while you are dragging
|
|
58
|
+
// the handles.
|
|
59
|
+
// Demo: https://user-images.githubusercontent.com/11082236/164542544-f1f66de2-f62e-44dd-b4cb-05b5f6e73a52.mp4
|
|
60
|
+
const minY = Math.min(0, 1 - right.handles[1], 1 - left.handles[3]);
|
|
61
|
+
const maxY = Math.max(1, 1 - right.handles[1], 1 - left.handles[3]);
|
|
62
|
+
const h = Math.max(1, maxY - minY);
|
|
63
|
+
const toExtremumSpace = (y) => (y - minY) / h;
|
|
64
|
+
const [refSVG, nodeSVG] = useRefAndState(null);
|
|
65
|
+
const viewboxToElWidthRatio = VIEWBOX_SIZE / (nodeSVG?.clientWidth || 1);
|
|
66
|
+
const viewboxToElHeightRatio = VIEWBOX_SIZE / (nodeSVG?.clientHeight || 1);
|
|
67
|
+
const [refLeft, nodeLeft] = useRefAndState(null);
|
|
68
|
+
useKeyframeDrag(nodeSVG, nodeLeft, props, (dx, dy) => {
|
|
69
|
+
// TODO - document this
|
|
70
|
+
const handleX = clamp(left.handles[2] + dx * viewboxToElWidthRatio, 0, 1);
|
|
71
|
+
const handleY = left.handles[3] - dy * viewboxToElHeightRatio;
|
|
72
|
+
return [handleX, handleY, right.handles[0], right.handles[1]];
|
|
73
|
+
});
|
|
74
|
+
const [refRight, nodeRight] = useRefAndState(null);
|
|
75
|
+
useKeyframeDrag(nodeSVG, nodeRight, props, (dx, dy) => {
|
|
76
|
+
// TODO - document this
|
|
77
|
+
const handleX = clamp(right.handles[0] + dx * viewboxToElWidthRatio, 0, 1);
|
|
78
|
+
const handleY = right.handles[1] - dy * viewboxToElHeightRatio;
|
|
79
|
+
return [left.handles[2], left.handles[3], handleX, handleY];
|
|
80
|
+
});
|
|
81
|
+
const curvePathDAttrValue = (connection) => `M0 ${toExtremumSpace(1)} C${connection.left.handles[2]} ${toExtremumSpace(1 - connection.left.handles[3])} ${connection.right.handles[0]} ${toExtremumSpace(1 - connection.right.handles[1])} 1 ${toExtremumSpace(0)}`;
|
|
82
|
+
const holdPointsAttrValue = `0,100 100,100 100,0`;
|
|
83
|
+
return (React.createElement("svg", { height: "100%", width: "100%", ref: refSVG, viewBox: `${-VIEWBOX_PADDING} ${-VIEWBOX_PADDING} ${VIEWBOX_SIZE} ${VIEWBOX_SIZE}`, xmlns: "http://www.w3.org/2000/svg", preserveAspectRatio: "none", fill: "none" },
|
|
84
|
+
React.createElement("linearGradient", { id: "myGradient", gradientTransform: "rotate(90)" },
|
|
85
|
+
React.createElement("stop", { offset: toExtremumSpace(-1), stopColor: CURVE_END_OVERSHOOT_COLOR }),
|
|
86
|
+
React.createElement("stop", { offset: toExtremumSpace(0), stopColor: CURVE_END_COLOR }),
|
|
87
|
+
React.createElement("stop", { offset: toExtremumSpace(0.3), stopColor: CURVE_MID_END_COLOR }),
|
|
88
|
+
React.createElement("stop", { offset: toExtremumSpace(0.5), stopColor: CURVE_MID_COLOR }),
|
|
89
|
+
React.createElement("stop", { offset: toExtremumSpace(0.7), stopColor: CURVE_MID_START_COLOR }),
|
|
90
|
+
React.createElement("stop", { offset: toExtremumSpace(1), stopColor: CURVE_START_COLOR }),
|
|
91
|
+
React.createElement("stop", { offset: toExtremumSpace(2), stopColor: CURVE_START_OVERSHOOT_COLOR })),
|
|
92
|
+
React.createElement("pattern", { id: "dot-background-pattern-1", width: PATTERN_GRID_SIZE, height: PATTERN_GRID_SIZE / h, y: -minY / h },
|
|
93
|
+
React.createElement("rect", { width: PATTERN_DOT_SIZE, height: PATTERN_DOT_SIZE, fill: CONTROL_COLOR, opacity: 0.3 })),
|
|
94
|
+
React.createElement("rect", { x: 0, y: 0, width: "1", height: 1, fill: "url(#dot-background-pattern-1)" }),
|
|
95
|
+
React.createElement("pattern", { id: "dot-background-pattern-2", width: PATTERN_GRID_SIZE, height: PATTERN_GRID_SIZE },
|
|
96
|
+
React.createElement("rect", { width: PATTERN_DOT_SIZE, height: PATTERN_DOT_SIZE, fill: CONTROL_COLOR })),
|
|
97
|
+
React.createElement("rect", { x: 0, y: toExtremumSpace(0), width: "1", height: toExtremumSpace(1) - toExtremumSpace(0), fill: "url(#dot-background-pattern-2)" }),
|
|
98
|
+
!left.type || left.type === 'bezier' ? (React.createElement(React.Fragment, null,
|
|
99
|
+
React.createElement("line", { x1: 0, y1: toExtremumSpace(1), x2: left.handles[2], y2: toExtremumSpace(1 - left.handles[3]), stroke: CONTROL_COLOR, strokeWidth: "0.01" }),
|
|
100
|
+
React.createElement("line", { x1: 1, y1: toExtremumSpace(0), x2: right.handles[0], y2: toExtremumSpace(1 - right.handles[1]), stroke: CONTROL_COLOR, strokeWidth: "0.01" }),
|
|
101
|
+
React.createElement("path", { d: curvePathDAttrValue(props.curveConnection), stroke: "none", fill: "url('#myGradient')", opacity: "0.1" }),
|
|
102
|
+
backgroundConnections.map((connection, i) => (React.createElement("path", { key: connection.objectKey + '/' + connection.left.id, d: curvePathDAttrValue(connection), stroke: BACKGROUND_CURVE_COLORS[i % BACKGROUND_CURVE_COLORS.length], opacity: 0.6, strokeWidth: "0.01" }))),
|
|
103
|
+
React.createElement("path", { d: curvePathDAttrValue(props.curveConnection), stroke: "url('#myGradient')", strokeWidth: "0.02" }),
|
|
104
|
+
React.createElement("circle", { cx: 0, cy: toExtremumSpace(1), r: "0.025", stroke: CURVE_START_COLOR, strokeWidth: "0.02", fill: COLOR_BASE }),
|
|
105
|
+
React.createElement("circle", { cx: 1, cy: toExtremumSpace(0), r: "0.025", stroke: CURVE_END_COLOR, strokeWidth: "0.02", fill: COLOR_BASE }),
|
|
106
|
+
React.createElement(HitZone, { ref: refLeft, cx: left.handles[2], cy: toExtremumSpace(1 - left.handles[3]), fill: CURVE_START_COLOR, opacity: 0.2 }),
|
|
107
|
+
React.createElement(Circle, { cx: left.handles[2], cy: toExtremumSpace(1 - left.handles[3]) }),
|
|
108
|
+
React.createElement(HitZone, { ref: refRight, cx: right.handles[0], cy: toExtremumSpace(1 - right.handles[1]), fill: CURVE_END_COLOR, opacity: 0.2 }),
|
|
109
|
+
React.createElement(Circle, { cx: right.handles[0], cy: toExtremumSpace(1 - right.handles[1]) }))) : (React.createElement(React.Fragment, null,
|
|
110
|
+
React.createElement("line", { x1: 0, y1: toExtremumSpace(1), x2: 1, y2: toExtremumSpace(1), stroke: CONTROL_COLOR, strokeWidth: "0.01" }),
|
|
111
|
+
React.createElement("line", { x1: 1, y1: toExtremumSpace(1), x2: 1, y2: 0, stroke: CONTROL_COLOR, strokeWidth: "0.01" }),
|
|
112
|
+
React.createElement("circle", { cx: 0, cy: 1, r: "0.025", stroke: CURVE_END_COLOR, strokeWidth: "0.02", fill: COLOR_BASE }),
|
|
113
|
+
React.createElement("circle", { cx: 1, cy: 0, r: "0.025", stroke: CURVE_END_COLOR, strokeWidth: "0.02", fill: COLOR_BASE })))));
|
|
114
|
+
};
|
|
115
|
+
export default CurveSegmentEditor;
|
|
116
|
+
function useKeyframeDrag(svgNode, node, props, setHandles) {
|
|
117
|
+
const handlers = useFreezableMemo((setFrozen) => ({
|
|
118
|
+
debugName: 'CurveSegmentEditor/useKeyframeDrag',
|
|
119
|
+
lockCSSCursorTo: 'move',
|
|
120
|
+
onDragStart() {
|
|
121
|
+
setFrozen(true);
|
|
122
|
+
return {
|
|
123
|
+
onDrag(dx, dy) {
|
|
124
|
+
if (!svgNode)
|
|
125
|
+
return;
|
|
126
|
+
props.onCurveChange(setHandles(dx, dy));
|
|
127
|
+
},
|
|
128
|
+
onDragEnd(dragHappened) {
|
|
129
|
+
setFrozen(false);
|
|
130
|
+
props.onCancelCurveChange();
|
|
131
|
+
},
|
|
132
|
+
};
|
|
133
|
+
},
|
|
134
|
+
}), [svgNode, props.onCurveChange, props.onCancelCurveChange]);
|
|
135
|
+
useDrag(node, handlers);
|
|
136
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const Wrapper: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
+
isSelected: boolean;
|
|
4
|
+
}, never>;
|
|
5
|
+
type IProps = {
|
|
6
|
+
easing: {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string;
|
|
9
|
+
};
|
|
10
|
+
tooltipPlacement: 'top' | 'bottom';
|
|
11
|
+
isSelected: boolean;
|
|
12
|
+
} & Parameters<typeof Wrapper>[0];
|
|
13
|
+
declare const EasingOption: React.FC<IProps>;
|
|
14
|
+
export default EasingOption;
|
|
15
|
+
//# sourceMappingURL=EasingOption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EasingOption.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/EasingOption.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,QAAA,MAAM,OAAO;gBAA2B,OAAO;SA2B9C,CAAA;AAaD,KAAK,MAAM,GAAG;IACZ,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAA;QACb,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;IACD,gBAAgB,EAAE,KAAK,GAAG,QAAQ,CAAA;IAClC,UAAU,EAAE,OAAO,CAAA;CACpB,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,CAAA;AAEjC,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAsBjC,CAAA;AAEF,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import useTooltip from '@tomorrowevening/theatre-studio/uiComponents/Popover/useTooltip';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import styled, { css } from 'styled-components';
|
|
4
|
+
import { handlesFromCssCubicBezierArgs } from './shared';
|
|
5
|
+
import SVGCurveSegment from './SVGCurveSegment';
|
|
6
|
+
import { mergeRefs } from 'react-merge-refs';
|
|
7
|
+
import { COLOR_BASE } from './colors';
|
|
8
|
+
import BasicPopover from '@tomorrowevening/theatre-studio/uiComponents/Popover/BasicPopover';
|
|
9
|
+
const Wrapper = styled.div `
|
|
10
|
+
position: relative;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
aspect-ratio: 1;
|
|
16
|
+
|
|
17
|
+
transition: background-color 0.15s;
|
|
18
|
+
background-color: ${COLOR_BASE};
|
|
19
|
+
border-radius: 2px;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
outline: none;
|
|
22
|
+
|
|
23
|
+
${({ isSelected }) => isSelected &&
|
|
24
|
+
css `
|
|
25
|
+
background-color: #383d42;
|
|
26
|
+
`}
|
|
27
|
+
|
|
28
|
+
&:hover {
|
|
29
|
+
background-color: #31353a;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:focus {
|
|
33
|
+
background-color: #383d42;
|
|
34
|
+
}
|
|
35
|
+
`;
|
|
36
|
+
const EasingTooltip = styled(BasicPopover) `
|
|
37
|
+
padding: 0.5em;
|
|
38
|
+
color: white;
|
|
39
|
+
max-width: 240px;
|
|
40
|
+
pointer-events: none !important;
|
|
41
|
+
--popover-bg: black;
|
|
42
|
+
--popover-outer-stroke: transparent;
|
|
43
|
+
--popover-inner-stroke: transparent;
|
|
44
|
+
box-shadow: none;
|
|
45
|
+
`;
|
|
46
|
+
const EasingOption = React.forwardRef((props, ref) => {
|
|
47
|
+
const [tooltip, tooltipHostRef] = useTooltip({ enabled: true, verticalPlacement: props.tooltipPlacement, verticalGap: 0 }, () => (React.createElement(EasingTooltip, { showPopoverEdgeTriangle: false }, props.easing.label)));
|
|
48
|
+
return (React.createElement(Wrapper, { ref: mergeRefs([tooltipHostRef, ref]), ...props },
|
|
49
|
+
tooltip,
|
|
50
|
+
React.createElement(SVGCurveSegment, { easing: handlesFromCssCubicBezierArgs(props.easing.value), isSelected: props.isSelected })));
|
|
51
|
+
});
|
|
52
|
+
export default EasingOption;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CubicBezierHandles } from './shared';
|
|
3
|
+
type IProps = {
|
|
4
|
+
easing: CubicBezierHandles | null;
|
|
5
|
+
isSelected: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const SVGCurveSegment: React.FC<IProps>;
|
|
8
|
+
export default SVGCurveSegment;
|
|
9
|
+
//# sourceMappingURL=SVGCurveSegment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SVGCurveSegment.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/SVGCurveSegment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,UAAU,CAAA;AAehD,KAAK,MAAM,GAAG;IACZ,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAAA;IACjC,UAAU,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CA6GrC,CAAA;AACD,eAAe,eAAe,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
const VIEWBOX_PADDING = 0.75;
|
|
3
|
+
const SVG_CIRCLE_RADIUS = 0.1;
|
|
4
|
+
const VIEWBOX_SIZE = 1 + VIEWBOX_PADDING * 2;
|
|
5
|
+
const SELECTED_CURVE_COLOR = '#F5F5F5';
|
|
6
|
+
const CURVE_COLOR = '#888888';
|
|
7
|
+
const CONTROL_COLOR = '#4f4f4f';
|
|
8
|
+
const CONTROL_HITZONE_COLOR = 'rgba(255, 255, 255, 0.1)';
|
|
9
|
+
// SVG's y coordinates go from top to bottom, e.g. 1 is vertically lower than 0,
|
|
10
|
+
// but easing points go from bottom to top.
|
|
11
|
+
const toVerticalSVGSpace = (y) => 1 - y;
|
|
12
|
+
const SVGCurveSegment = (props) => {
|
|
13
|
+
const { easing, isSelected } = props;
|
|
14
|
+
const curveColor = isSelected ? SELECTED_CURVE_COLOR : CURVE_COLOR;
|
|
15
|
+
// With a padding of 0, this results in a "unit viewbox" i.e. `0 0 1 1`.
|
|
16
|
+
// With padding e.g. VIEWBOX_PADDING=0.1, this results in a viewbox of `-0.1 -0,1 1.2 1.2`,
|
|
17
|
+
// i.e. a viewbox with a top left coordinate of -0.1,-0.1 and a width and height of 1.2,
|
|
18
|
+
// resulting in bottom right coordinate of 1.1,1.1
|
|
19
|
+
const SVG_VIEWBOX_ATTR = `${-VIEWBOX_PADDING} ${-VIEWBOX_PADDING} ${VIEWBOX_SIZE} ${VIEWBOX_SIZE}`;
|
|
20
|
+
// Bezier SVG
|
|
21
|
+
if (easing) {
|
|
22
|
+
const leftControlPoint = [easing[0], toVerticalSVGSpace(easing[1])];
|
|
23
|
+
const rightControlPoint = [easing[2], toVerticalSVGSpace(easing[3])];
|
|
24
|
+
return (React.createElement("svg", { height: "100%", width: "100%", viewBox: SVG_VIEWBOX_ATTR, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
25
|
+
React.createElement("line", { x1: "0", y1: "1", x2: leftControlPoint[0], y2: leftControlPoint[1], stroke: CONTROL_COLOR, strokeWidth: "0.1" }),
|
|
26
|
+
React.createElement("line", { x1: "1", y1: "0", x2: rightControlPoint[0], y2: rightControlPoint[1], stroke: CONTROL_COLOR, strokeWidth: "0.1" }),
|
|
27
|
+
React.createElement("circle", { cx: leftControlPoint[0], cy: leftControlPoint[1], r: 0.1, fill: CONTROL_HITZONE_COLOR }),
|
|
28
|
+
React.createElement("circle", { cx: rightControlPoint[0], cy: rightControlPoint[1], r: 0.1, fill: CONTROL_HITZONE_COLOR }),
|
|
29
|
+
React.createElement("circle", { cx: leftControlPoint[0], cy: leftControlPoint[1], r: SVG_CIRCLE_RADIUS, fill: CONTROL_COLOR }),
|
|
30
|
+
React.createElement("circle", { cx: rightControlPoint[0], cy: rightControlPoint[1], r: SVG_CIRCLE_RADIUS, fill: CONTROL_COLOR }),
|
|
31
|
+
React.createElement("path", { d: `M0 1 C${leftControlPoint[0]} ${leftControlPoint[1]} ${rightControlPoint[0]}
|
|
32
|
+
${rightControlPoint[1]} 1 0`, stroke: curveColor, strokeWidth: "0.08" }),
|
|
33
|
+
React.createElement("circle", { cx: 0, cy: 1, r: SVG_CIRCLE_RADIUS, fill: curveColor }),
|
|
34
|
+
React.createElement("circle", { cx: 1, cy: 0, r: SVG_CIRCLE_RADIUS, fill: curveColor })));
|
|
35
|
+
}
|
|
36
|
+
// "Hold" SVG
|
|
37
|
+
return (React.createElement("svg", { height: "100%", width: "100%", viewBox: SVG_VIEWBOX_ATTR, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
38
|
+
React.createElement("line", { x1: "0", y1: "1", x2: 1, y2: 1, stroke: curveColor, strokeWidth: "0.08" }),
|
|
39
|
+
React.createElement("line", { x1: "1", y1: "0", x2: 1, y2: 1, stroke: curveColor, strokeWidth: "0.08" }),
|
|
40
|
+
React.createElement("circle", { cx: 0, cy: 1, r: SVG_CIRCLE_RADIUS, fill: curveColor }),
|
|
41
|
+
React.createElement("circle", { cx: 1, cy: 0, r: SVG_CIRCLE_RADIUS, fill: curveColor })));
|
|
42
|
+
};
|
|
43
|
+
export default SVGCurveSegment;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/colors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,4BAA4B,CAAA;AAE3D,eAAO,MAAM,UAAU,YAAY,CAAA;AAEnC,eAAO,MAAM,mBAAmB,YAAY,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This 4-tuple defines the start control point x1,y1 and the end control point x2,y2
|
|
3
|
+
* of a cubic bezier curve. It is assumed that the start of the curve is fixed at 0,0
|
|
4
|
+
* and the end is fixed at 1,1. X values must be constrained to `0 <= x1 <= 1 and 0 <= x2 <= 1`.
|
|
5
|
+
*
|
|
6
|
+
* to get a feel for it: https://cubic-bezier.com/
|
|
7
|
+
**/
|
|
8
|
+
export type CubicBezierHandles = [
|
|
9
|
+
x1: number,
|
|
10
|
+
y1: number,
|
|
11
|
+
x2: number,
|
|
12
|
+
y2: number
|
|
13
|
+
];
|
|
14
|
+
/**
|
|
15
|
+
* A full CSS cubic bezier string looks like `cubic-bezier(0, 0, 1, 1)`.
|
|
16
|
+
* the "args" part of the name refers specifically to the comma separated substring
|
|
17
|
+
* inside the parentheses of the CSS cubic bezier string i.e. `0, 0, 1, 1`.
|
|
18
|
+
*/
|
|
19
|
+
export type CSSCubicBezierArgsString = string;
|
|
20
|
+
/** Returns e.g. `"0, 0, 1, 1"`. See {@link CSSCubicBezierArgsString} docs for more context. */
|
|
21
|
+
export declare function cssCubicBezierArgsFromHandles(points: CubicBezierHandles): CSSCubicBezierArgsString;
|
|
22
|
+
export declare function handlesFromCssCubicBezierArgs(str: CSSCubicBezierArgsString | undefined | null): null | CubicBezierHandles;
|
|
23
|
+
/**
|
|
24
|
+
* A collection of cubic-bezier approximations of common easing functions
|
|
25
|
+
* - ref: https://developer.mozilla.org/en-US/docs/Web/CSS/easing-function
|
|
26
|
+
* - ref: [GitHub issue 28 comment "michaeltheory's suggested default easing presets"](https://github.com/theatre-js/theatre/issues/28#issuecomment-938752916)
|
|
27
|
+
**/
|
|
28
|
+
export declare const EASING_PRESETS: {
|
|
29
|
+
label: string;
|
|
30
|
+
value: string;
|
|
31
|
+
}[];
|
|
32
|
+
/**
|
|
33
|
+
* Compares two easings and returns true iff they are similar up to a threshold
|
|
34
|
+
*
|
|
35
|
+
* @param easing1 - first easing to compare
|
|
36
|
+
* @param easing2 - second easing to compare
|
|
37
|
+
* @param options - optionally pass an object with a threshold that determines how similar the easings should be
|
|
38
|
+
* @returns boolean if the easings are similar
|
|
39
|
+
*/
|
|
40
|
+
export declare function areEasingsSimilar(easing1: CubicBezierHandles | null | undefined, easing2: CubicBezierHandles | null | undefined, options?: {
|
|
41
|
+
threshold: number;
|
|
42
|
+
}): boolean;
|
|
43
|
+
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/shared.ts"],"names":[],"mappings":"AAAA;;;;;;IAMI;AACJ,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,MAAM;CACX,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAA;AAI7C,+FAA+F;AAC/F,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,kBAAkB,GACzB,wBAAwB,CAE1B;AAGD,wBAAgB,6BAA6B,CAC3C,GAAG,EAAE,wBAAwB,GAAG,SAAS,GAAG,IAAI,GAC/C,IAAI,GAAG,kBAAkB,CAY3B;AAED;;;;IAII;AACJ,eAAO,MAAM,cAAc;;;GAoD1B,CAAA;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,kBAAkB,GAAG,IAAI,GAAG,SAAS,EAC9C,OAAO,EAAE,kBAAkB,GAAG,IAAI,GAAG,SAAS,EAC9C,OAAO,GAAE;IACP,SAAS,EAAE,MAAM,CAAA;CACE,WAQtB"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
const CSS_BEZIER_ARGS_DECIMAL_POINTS = 3; // Doesn't have to be 3, but it matches our preset data
|
|
2
|
+
/** Returns e.g. `"0, 0, 1, 1"`. See {@link CSSCubicBezierArgsString} docs for more context. */
|
|
3
|
+
export function cssCubicBezierArgsFromHandles(points) {
|
|
4
|
+
return points.map((p) => p.toFixed(CSS_BEZIER_ARGS_DECIMAL_POINTS)).join(', ');
|
|
5
|
+
}
|
|
6
|
+
const MAX_REASONABLE_BEZIER_STRING = 128;
|
|
7
|
+
export function handlesFromCssCubicBezierArgs(str) {
|
|
8
|
+
if (!str || str?.length > MAX_REASONABLE_BEZIER_STRING)
|
|
9
|
+
return null;
|
|
10
|
+
const args = str.split(',');
|
|
11
|
+
if (args.length !== 4)
|
|
12
|
+
return null;
|
|
13
|
+
const nums = args.map((arg) => {
|
|
14
|
+
return Number(arg.trim());
|
|
15
|
+
});
|
|
16
|
+
if (!nums.every((v) => isFinite(v)))
|
|
17
|
+
return null;
|
|
18
|
+
if (nums[0] < 0 || nums[0] > 1 || nums[2] < 0 || nums[2] > 1)
|
|
19
|
+
return null;
|
|
20
|
+
return nums;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A collection of cubic-bezier approximations of common easing functions
|
|
24
|
+
* - ref: https://developer.mozilla.org/en-US/docs/Web/CSS/easing-function
|
|
25
|
+
* - ref: [GitHub issue 28 comment "michaeltheory's suggested default easing presets"](https://github.com/theatre-js/theatre/issues/28#issuecomment-938752916)
|
|
26
|
+
**/
|
|
27
|
+
export const EASING_PRESETS = [
|
|
28
|
+
{ label: 'Quad Out', value: '0.250, 0.460, 0.450, 0.940' },
|
|
29
|
+
{ label: 'Quad In Out', value: '0.455, 0.030, 0.515, 0.955' },
|
|
30
|
+
{ label: 'Quad In', value: '0.550, 0.085, 0.680, 0.530' },
|
|
31
|
+
{ label: 'Cubic Out', value: '0.215, 0.610, 0.355, 1.000' },
|
|
32
|
+
{ label: 'Cubic In Out', value: '0.645, 0.045, 0.355, 1.000' },
|
|
33
|
+
{ label: 'Cubic In', value: '0.550, 0.055, 0.675, 0.190' },
|
|
34
|
+
{ label: 'Quart Out', value: '0.165, 0.840, 0.440, 1.000' },
|
|
35
|
+
{ label: 'Quart In Out', value: '0.770, 0.000, 0.175, 1.000' },
|
|
36
|
+
{ label: 'Quart In', value: '0.895, 0.030, 0.685, 0.220' },
|
|
37
|
+
{ label: 'Quint Out', value: '0.230, 1.000, 0.320, 1.000' },
|
|
38
|
+
{ label: 'Quint In Out', value: '0.860, 0.000, 0.070, 1.000' },
|
|
39
|
+
{ label: 'Quint In', value: '0.755, 0.050, 0.855, 0.060' },
|
|
40
|
+
{ label: 'Sine Out', value: '0.390, 0.575, 0.565, 1.000' },
|
|
41
|
+
{ label: 'Sine In Out', value: '0.445, 0.050, 0.550, 0.950' },
|
|
42
|
+
{ label: 'Sine In', value: '0.470, 0.000, 0.745, 0.715' },
|
|
43
|
+
{ label: 'Expo Out', value: '0.190, 1.000, 0.220, 1.000' },
|
|
44
|
+
{ label: 'Expo In Out', value: '1.000, 0.000, 0.000, 1.000' },
|
|
45
|
+
{ label: 'Expo In', value: '0.780, 0.000, 0.810, 0.00' },
|
|
46
|
+
{ label: 'Circ Out', value: '0.075, 0.820, 0.165, 1.000' },
|
|
47
|
+
{ label: 'Circ In Out', value: '0.785, 0.135, 0.150, 0.860' },
|
|
48
|
+
{ label: 'Circ In', value: '0.600, 0.040, 0.980, 0.335' },
|
|
49
|
+
{ label: 'Back Out', value: '0.175, 0.885, 0.320, 1.275' },
|
|
50
|
+
{ label: 'Back In Out', value: '0.680, -0.550, 0.265, 1.550' },
|
|
51
|
+
{ label: 'Back In', value: '0.600, -0.280, 0.735, 0.045' },
|
|
52
|
+
{ label: 'linear', value: '0.5, 0.5, 0.5, 0.5' },
|
|
53
|
+
{ label: 'In Out', value: '0.42,0,0.58,1' },
|
|
54
|
+
{ label: 'Hold', value: '0, 0, Infinity, Infinity' },
|
|
55
|
+
/* These easings are not being included initially in order to
|
|
56
|
+
simplify the choices */
|
|
57
|
+
// {label: 'Back In Out', value: '0.680, -0.550, 0.265, 1.550'},
|
|
58
|
+
// {label: 'Back In', value: '0.600, -0.280, 0.735, 0.045'},
|
|
59
|
+
// {label: 'Back Out', value: '0.175, 0.885, 0.320, 1.275'},
|
|
60
|
+
// {label: 'Circ In Out', value: '0.785, 0.135, 0.150, 0.860'},
|
|
61
|
+
// {label: 'Circ In', value: '0.600, 0.040, 0.980, 0.335'},
|
|
62
|
+
// {label: 'Circ Out', value: '0.075, 0.820, 0.165, 1'},
|
|
63
|
+
// {label: 'Quad In Out', value: '0.455, 0.030, 0.515, 0.955'},
|
|
64
|
+
// {label: 'Quad In', value: '0.550, 0.085, 0.680, 0.530'},
|
|
65
|
+
// {label: 'Quad Out', value: '0.250, 0.460, 0.450, 0.940'},
|
|
66
|
+
// {label: 'Ease Out In', value: '.42, 0, .58, 1'},
|
|
67
|
+
];
|
|
68
|
+
/**
|
|
69
|
+
* Compares two easings and returns true iff they are similar up to a threshold
|
|
70
|
+
*
|
|
71
|
+
* @param easing1 - first easing to compare
|
|
72
|
+
* @param easing2 - second easing to compare
|
|
73
|
+
* @param options - optionally pass an object with a threshold that determines how similar the easings should be
|
|
74
|
+
* @returns boolean if the easings are similar
|
|
75
|
+
*/
|
|
76
|
+
export function areEasingsSimilar(easing1, easing2, options = { threshold: 0.02 }) {
|
|
77
|
+
if (!easing1 || !easing2)
|
|
78
|
+
return false;
|
|
79
|
+
let totalDiff = 0;
|
|
80
|
+
for (let i = 0; i < 4; i++) {
|
|
81
|
+
totalDiff += Math.abs(easing1[i] - easing2[i]);
|
|
82
|
+
}
|
|
83
|
+
return totalDiff < options.threshold;
|
|
84
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The same as useMemo except that it can be frozen so that
|
|
3
|
+
* the memoized function is not recomputed even if the dependencies
|
|
4
|
+
* change. It can also be unfrozen.
|
|
5
|
+
*
|
|
6
|
+
* An unfrozen useFreezableMemo is the same as useMemo.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export declare function useFreezableMemo<T>(fn: (setFreeze: (isFrozen: boolean) => void) => T, deps: any[]): T;
|
|
10
|
+
//# sourceMappingURL=useFreezableMemo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFreezableMemo.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/useFreezableMemo.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAChC,EAAE,EAAE,CAAC,SAAS,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,KAAK,CAAC,EACjD,IAAI,EAAE,GAAG,EAAE,GACV,CAAC,CAOH"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useMemo, useRef, useState } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The same as useMemo except that it can be frozen so that
|
|
4
|
+
* the memoized function is not recomputed even if the dependencies
|
|
5
|
+
* change. It can also be unfrozen.
|
|
6
|
+
*
|
|
7
|
+
* An unfrozen useFreezableMemo is the same as useMemo.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export function useFreezableMemo(fn, deps) {
|
|
11
|
+
const [isFrozen, setFreeze] = useState(false);
|
|
12
|
+
const freezableDeps = useRef(deps);
|
|
13
|
+
if (!isFrozen)
|
|
14
|
+
freezableDeps.current = deps;
|
|
15
|
+
return useMemo(() => fn(setFreeze), freezableDeps.current);
|
|
16
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { KeyboardEvent } from 'react';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
export declare enum Outcome {
|
|
4
|
+
Handled = 1,
|
|
5
|
+
Passthrough = 0
|
|
6
|
+
}
|
|
7
|
+
type UIOptionGridOptions<Item> = {
|
|
8
|
+
/** affect behavior of keyboard navigation */
|
|
9
|
+
uiColumns: number;
|
|
10
|
+
/** each item in the grid */
|
|
11
|
+
items: Item[];
|
|
12
|
+
/** display of items */
|
|
13
|
+
renderItem: (value: {
|
|
14
|
+
select(e?: Event): void;
|
|
15
|
+
/** data item */
|
|
16
|
+
item: Item;
|
|
17
|
+
/** arrow key nav */
|
|
18
|
+
isSelected: boolean;
|
|
19
|
+
}) => React.ReactNode;
|
|
20
|
+
onSelectItem(item: Item): Outcome;
|
|
21
|
+
/** Set a callback for what to do if we try to leave the grid */
|
|
22
|
+
canVerticleExit?: (exitSide: 'top' | 'bottom') => Outcome;
|
|
23
|
+
};
|
|
24
|
+
type UIOptionGrid<Item> = {
|
|
25
|
+
focusFirstItem(): void;
|
|
26
|
+
onParentEltKeyDown(evt: KeyboardEvent): Outcome;
|
|
27
|
+
gridItems: React.ReactNode[];
|
|
28
|
+
currentSelection: Item | null;
|
|
29
|
+
};
|
|
30
|
+
export declare function useUIOptionGrid<T>(options: UIOptionGridOptions<T>): UIOptionGrid<T>;
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=useUIOptionGrid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUIOptionGrid.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/useUIOptionGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,OAAO,CAAA;AACxC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,oBAAY,OAAO;IACjB,OAAO,IAAI;IACX,WAAW,IAAI;CAChB;AACD,KAAK,mBAAmB,CAAC,IAAI,IAAI;IAC/B,6CAA6C;IAC7C,SAAS,EAAE,MAAM,CAAA;IACjB,4BAA4B;IAC5B,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,uBAAuB;IACvB,UAAU,EAAE,CAAC,KAAK,EAAE;QAClB,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI,CAAA;QACvB,gBAAgB;QAChB,IAAI,EAAE,IAAI,CAAA;QACV,oBAAoB;QACpB,UAAU,EAAE,OAAO,CAAA;KACpB,KAAK,KAAK,CAAC,SAAS,CAAA;IACrB,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAA;IACjC,gEAAgE;IAChE,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,GAAG,QAAQ,KAAK,OAAO,CAAA;CAC1D,CAAA;AACD,KAAK,YAAY,CAAC,IAAI,IAAI;IACxB,cAAc,IAAI,IAAI,CAAA;IACtB,kBAAkB,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAA;IAC/C,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,CAAA;IAC5B,gBAAgB,EAAE,IAAI,GAAG,IAAI,CAAA;CAC9B,CAAA;AACD,wBAAgB,eAAe,CAAC,CAAC,EAC/B,OAAO,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAC9B,YAAY,CAAC,CAAC,CAAC,CA6EjB"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { mod } from './CurveEditorPopover';
|
|
3
|
+
export var Outcome;
|
|
4
|
+
(function (Outcome) {
|
|
5
|
+
Outcome[Outcome["Handled"] = 1] = "Handled";
|
|
6
|
+
Outcome[Outcome["Passthrough"] = 0] = "Passthrough";
|
|
7
|
+
})(Outcome || (Outcome = {}));
|
|
8
|
+
export function useUIOptionGrid(options) {
|
|
9
|
+
// Helper functions for moving the highlight in the grid of presets
|
|
10
|
+
const [selectionIndex, setSelectionIndex] = useState(null);
|
|
11
|
+
const moveCursorVertical = (vdir) => {
|
|
12
|
+
if (selectionIndex === null) {
|
|
13
|
+
if (options.items.length > 0) {
|
|
14
|
+
// start at the top first one
|
|
15
|
+
setSelectionIndex(0);
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
// no items
|
|
19
|
+
}
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const nextSelectionIndex = selectionIndex + vdir * options.uiColumns;
|
|
23
|
+
const exitsTop = nextSelectionIndex < 0;
|
|
24
|
+
const exitsBottom = nextSelectionIndex > options.items.length - 1;
|
|
25
|
+
if (exitsTop || exitsBottom) {
|
|
26
|
+
// up and out
|
|
27
|
+
if (options.canVerticleExit) {
|
|
28
|
+
if (options.canVerticleExit(exitsTop ? 'top' : 'bottom')) {
|
|
29
|
+
// exited and handled
|
|
30
|
+
setSelectionIndex(null);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
// block the cursor from leaving (don't do anything)
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
// we know this highlight is in bounds now
|
|
38
|
+
setSelectionIndex(nextSelectionIndex);
|
|
39
|
+
};
|
|
40
|
+
const moveCursorHorizontal = (hdir) => {
|
|
41
|
+
if (selectionIndex === null)
|
|
42
|
+
setSelectionIndex(mod(hdir, options.items.length));
|
|
43
|
+
else if (selectionIndex + hdir < 0) {
|
|
44
|
+
// Don't exit top on potentially a left arrow, bc that might feel like I should be able to exit right on right arrow.
|
|
45
|
+
// Also, maybe cursor selection management in inputs is *lame*.
|
|
46
|
+
setSelectionIndex(null);
|
|
47
|
+
}
|
|
48
|
+
else
|
|
49
|
+
setSelectionIndex(Math.min(selectionIndex + hdir, options.items.length - 1));
|
|
50
|
+
};
|
|
51
|
+
const onParentKeydown = (e) => {
|
|
52
|
+
if (e.key === 'ArrowRight')
|
|
53
|
+
moveCursorHorizontal(1);
|
|
54
|
+
else if (e.key === 'ArrowLeft')
|
|
55
|
+
moveCursorHorizontal(-1);
|
|
56
|
+
else if (e.key === 'ArrowUp')
|
|
57
|
+
moveCursorVertical(-1);
|
|
58
|
+
else if (e.key === 'ArrowDown')
|
|
59
|
+
moveCursorVertical(1);
|
|
60
|
+
else
|
|
61
|
+
return Outcome.Passthrough; // so sorry, plz make this not terrible
|
|
62
|
+
return Outcome.Handled;
|
|
63
|
+
};
|
|
64
|
+
return {
|
|
65
|
+
focusFirstItem() {
|
|
66
|
+
setSelectionIndex(0);
|
|
67
|
+
},
|
|
68
|
+
onParentEltKeyDown: onParentKeydown,
|
|
69
|
+
gridItems: options.items.map((item, idx) => options.renderItem({
|
|
70
|
+
isSelected: idx === selectionIndex,
|
|
71
|
+
item,
|
|
72
|
+
select(e) {
|
|
73
|
+
setSelectionIndex(idx);
|
|
74
|
+
if (options.onSelectItem(item) === Outcome.Handled) {
|
|
75
|
+
e?.preventDefault();
|
|
76
|
+
e?.stopPropagation();
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
})),
|
|
80
|
+
currentSelection: options.items[selectionIndex ?? -1] ?? null,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { EditingOptionsTree } from './useSingleKeyframeInlineEditorPopover';
|
|
3
|
+
/**
|
|
4
|
+
* Given a propConfig, this function gives the corresponding prop editor for
|
|
5
|
+
* use in the dope sheet inline prop editor on a keyframe.
|
|
6
|
+
* {@link DeterminePropEditorForDetail} does the same thing for the details panel. The main difference
|
|
7
|
+
* between this function and {@link DeterminePropEditorForDetail} is that this
|
|
8
|
+
* one shows prop editors *without* keyframe navigation controls (that look
|
|
9
|
+
* like `< ・ >`).
|
|
10
|
+
*
|
|
11
|
+
* @param p - propConfig object for any type of prop.
|
|
12
|
+
*/
|
|
13
|
+
export declare function DeterminePropEditorForKeyframeTree(p: EditingOptionsTree & {
|
|
14
|
+
autoFocusInput?: boolean;
|
|
15
|
+
indent: number;
|
|
16
|
+
}): React.JSX.Element;
|
|
17
|
+
//# sourceMappingURL=DeterminePropEditorForSingleKeyframe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeterminePropEditorForSingleKeyframe.d.ts","sourceRoot":"","sources":["../../../../../../../../../../studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/DeterminePropEditorForSingleKeyframe.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,OAAO,KAAK,EACV,kBAAkB,EAEnB,MAAM,wCAAwC,CAAA;AA+B/C;;;;;;;;;GASG;AACH,wBAAgB,kCAAkC,CAChD,CAAC,EAAE,kBAAkB,GAAG;IAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAC,qBAgDnE"}
|