@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,99 @@
|
|
|
1
|
+
import { prism, val } from '@tomorrowevening/theatre-dataverse';
|
|
2
|
+
import { darken } from 'polished';
|
|
3
|
+
import React, { useLayoutEffect, useRef, useState } from 'react';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import createGrid from './createGrid';
|
|
6
|
+
import getStudio from '@tomorrowevening/theatre-studio/getStudio';
|
|
7
|
+
const Container = styled.div `
|
|
8
|
+
position: absolute;
|
|
9
|
+
top: 0;
|
|
10
|
+
left: 0;
|
|
11
|
+
height: 100%;
|
|
12
|
+
pointer-events: none;
|
|
13
|
+
`;
|
|
14
|
+
export const stampsGridTheme = {
|
|
15
|
+
fullUnitStampColor: `#6a6a6a`,
|
|
16
|
+
stampFontSize: '10px',
|
|
17
|
+
get subUnitStampColor() {
|
|
18
|
+
return darken(0.2, stampsGridTheme.fullUnitStampColor);
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
const TheStamps = styled.div `
|
|
22
|
+
position: absolute;
|
|
23
|
+
top: 0;
|
|
24
|
+
height: 100%;
|
|
25
|
+
left: 0;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
z-index: 2;
|
|
28
|
+
will-change: transform;
|
|
29
|
+
pointer-events: none;
|
|
30
|
+
`;
|
|
31
|
+
const FullSecondStampsContainer = styled.div `
|
|
32
|
+
position: absolute;
|
|
33
|
+
top: 0;
|
|
34
|
+
left: 0;
|
|
35
|
+
|
|
36
|
+
& > span {
|
|
37
|
+
position: absolute;
|
|
38
|
+
display: block;
|
|
39
|
+
top: 9px;
|
|
40
|
+
left: -10px;
|
|
41
|
+
color: ${stampsGridTheme.fullUnitStampColor};
|
|
42
|
+
text-align: center;
|
|
43
|
+
font-size: ${stampsGridTheme.stampFontSize};
|
|
44
|
+
width: 20px;
|
|
45
|
+
|
|
46
|
+
&.full-unit {
|
|
47
|
+
color: ${stampsGridTheme.fullUnitStampColor};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.sub-unit {
|
|
51
|
+
color: ${stampsGridTheme.subUnitStampColor};
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
pointer-events: none;
|
|
56
|
+
`;
|
|
57
|
+
const StampsGrid = ({ layoutP, width }) => {
|
|
58
|
+
const containerRef = useRef(null);
|
|
59
|
+
const [fullSecondStampsContainer, fullSecondStampsContainerRef] = useState(null);
|
|
60
|
+
useLayoutEffect(() => {
|
|
61
|
+
if (!fullSecondStampsContainer)
|
|
62
|
+
return;
|
|
63
|
+
return prism(() => {
|
|
64
|
+
const sequence = val(layoutP.sheet).getSequence();
|
|
65
|
+
return {
|
|
66
|
+
fullSecondStampsContainer,
|
|
67
|
+
clippedSpaceRange: val(layoutP.clippedSpace.range),
|
|
68
|
+
clippedSpaceWidth: val(layoutP.clippedSpace.width),
|
|
69
|
+
unitSpaceToClippedSpace: val(layoutP.clippedSpace.fromUnitSpace),
|
|
70
|
+
leftPadding: val(layoutP.scaledSpace.leftPadding),
|
|
71
|
+
fps: sequence.subUnitsPerUnit,
|
|
72
|
+
sequencePositionFormatter: sequence.positionFormatter,
|
|
73
|
+
snapToGrid: (n) => sequence.closestGridPosition(n),
|
|
74
|
+
};
|
|
75
|
+
}).onChange(getStudio().ticker, drawStamps, true);
|
|
76
|
+
}, [fullSecondStampsContainer, width, layoutP]);
|
|
77
|
+
return (React.createElement(Container, { ref: containerRef, style: { width: width + 'px' } },
|
|
78
|
+
React.createElement(TheStamps, { style: { width: width + 'px' } },
|
|
79
|
+
React.createElement(FullSecondStampsContainer, { ref: fullSecondStampsContainerRef }))));
|
|
80
|
+
};
|
|
81
|
+
export default StampsGrid;
|
|
82
|
+
function drawStamps(opts) {
|
|
83
|
+
const { fullSecondStampsContainer, sequencePositionFormatter, snapToGrid, unitSpaceToClippedSpace, } = opts;
|
|
84
|
+
let innerHTML = '';
|
|
85
|
+
createGrid(opts, (_posInUnitSpace, isFullUnit) => {
|
|
86
|
+
const posInUnitSpace = snapToGrid(_posInUnitSpace);
|
|
87
|
+
const posInClippedSpace = unitSpaceToClippedSpace(posInUnitSpace);
|
|
88
|
+
if (isFullUnit) {
|
|
89
|
+
innerHTML += createStampClass(sequencePositionFormatter.formatFullUnitForGrid(posInUnitSpace), posInClippedSpace, 'full-unit');
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
innerHTML += createStampClass(sequencePositionFormatter.formatSubUnitForGrid(posInUnitSpace), posInClippedSpace, 'sub-unit');
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
fullSecondStampsContainer.innerHTML = innerHTML;
|
|
96
|
+
}
|
|
97
|
+
function createStampClass(pos, x, type) {
|
|
98
|
+
return `<span class="${type}" style="transform: translate3d(${x.toFixed(1)}px, -50%, 0);">${pos}</span>`;
|
|
99
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { IRange } from '@tomorrowevening/theatre-shared/utils/types';
|
|
2
|
+
/**
|
|
3
|
+
* Calls cb() for every grid line that must be drawn.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* For the sake of simplicity, I've named the variables as if the sequence's
|
|
7
|
+
* length is counted in seconds, and the sub-unit is called fps
|
|
8
|
+
* (frames per second). But the algorithm should work for any fps rate, and also
|
|
9
|
+
* non-time-based sequences.
|
|
10
|
+
*/
|
|
11
|
+
export default function createGrid({ clippedSpaceRange, clippedSpaceWidth, fps, gapWidth, }: {
|
|
12
|
+
/**
|
|
13
|
+
* the width of the canvas, in pixels
|
|
14
|
+
*/
|
|
15
|
+
clippedSpaceWidth: number;
|
|
16
|
+
clippedSpaceRange: IRange;
|
|
17
|
+
fps: number;
|
|
18
|
+
/**
|
|
19
|
+
* the minimum amount of space between two grid lines
|
|
20
|
+
*/
|
|
21
|
+
gapWidth?: number;
|
|
22
|
+
}, cb: (posInUnitSpace: number, isFullUnit: boolean) => void): void;
|
|
23
|
+
//# sourceMappingURL=createGrid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createGrid.d.ts","sourceRoot":"","sources":["../../../../../../../studio/src/panels/SequenceEditorPanel/FrameGrid/createGrid.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,6CAA6C,CAAA;AAavE;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,EACE,iBAAiB,EACjB,iBAAiB,EACjB,GAAG,EACH,QAAc,GACf,EAAE;IACD;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB,iBAAiB,EAAE,MAAM,CAAA;IACzB,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,EACD,EAAE,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,KAAK,IAAI,GACxD,IAAI,CA4CN"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { memoize } from 'lodash-es';
|
|
2
|
+
const getFactorsOfNumber = memoize((divisionsPerUnit) => {
|
|
3
|
+
const factors = [];
|
|
4
|
+
for (let i = 1; i <= divisionsPerUnit; i++) {
|
|
5
|
+
if (divisionsPerUnit % i === 0) {
|
|
6
|
+
factors.push(i);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
return factors;
|
|
10
|
+
});
|
|
11
|
+
/**
|
|
12
|
+
* Calls cb() for every grid line that must be drawn.
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* For the sake of simplicity, I've named the variables as if the sequence's
|
|
16
|
+
* length is counted in seconds, and the sub-unit is called fps
|
|
17
|
+
* (frames per second). But the algorithm should work for any fps rate, and also
|
|
18
|
+
* non-time-based sequences.
|
|
19
|
+
*/
|
|
20
|
+
export default function createGrid({ clippedSpaceRange, clippedSpaceWidth, fps, gapWidth = 120, }, cb) {
|
|
21
|
+
// If fps is 60, then frameLengthInSeconeds would be 1/60 => 0.033
|
|
22
|
+
const frameLengthInSeconeds = 1 / fps;
|
|
23
|
+
// how much of the timeline is visible.
|
|
24
|
+
const clippedSpaceLengthInSeconds = clippedSpaceRange.end - clippedSpaceRange.start; // eg: if start: 1 AND end: 3 THEN length = 2
|
|
25
|
+
// how many pixels of space does one frame take
|
|
26
|
+
const frameWidthInScreenSpace = clippedSpaceWidth / (fps * clippedSpaceLengthInSeconds);
|
|
27
|
+
// Number of frames that fit in the smallest cell possible.
|
|
28
|
+
// a cell is basically the space between two grid lines
|
|
29
|
+
const numberOfFramesFittingInMinimumCellWidth = Math.floor(gapWidth / frameWidthInScreenSpace);
|
|
30
|
+
// Number of frames in each cell, so that lines would be drawn at full seconds
|
|
31
|
+
const numberOfFramesPerCell =
|
|
32
|
+
// if we can't fit a full 60 frames in a cell (or a multiple of 60 frames),
|
|
33
|
+
numberOfFramesFittingInMinimumCellWidth < fps
|
|
34
|
+
? getFactorsOfNumber(fps).find(
|
|
35
|
+
// then try fitting 30 frames, or 20, or 15, and other factors of 60
|
|
36
|
+
(factor) => factor >= numberOfFramesFittingInMinimumCellWidth)
|
|
37
|
+
: // otherwise, determine how many full seconds we can fit in a cell
|
|
38
|
+
fps * Math.floor(numberOfFramesFittingInMinimumCellWidth / fps);
|
|
39
|
+
const cellLengthInSeconds = numberOfFramesPerCell * frameLengthInSeconeds;
|
|
40
|
+
// the number of the first cell we'll draw
|
|
41
|
+
const startCell = Math.floor(clippedSpaceRange.start / cellLengthInSeconds);
|
|
42
|
+
// and the last one
|
|
43
|
+
const endCell = Math.ceil(clippedSpaceRange.end / cellLengthInSeconds);
|
|
44
|
+
for (let cell = startCell; cell <= endCell; cell++) {
|
|
45
|
+
const posInUnitSpace = cell * cellLengthInSeconds;
|
|
46
|
+
const isFullSecond = posInUnitSpace % 1 === 0;
|
|
47
|
+
cb(posInUnitSpace, isFullSecond);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { Prism, Pointer } from '@tomorrowevening/theatre-dataverse';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { SequenceEditorPanelLayout } from './layout/layout';
|
|
4
|
+
export declare enum FrameStampPositionType {
|
|
5
|
+
hidden = 0,
|
|
6
|
+
locked = 1,
|
|
7
|
+
snapped = 2,
|
|
8
|
+
free = 3
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Provides snapping positions to "stamps".
|
|
12
|
+
*
|
|
13
|
+
* One example of a stamp includes the "Keyframe Dot" which show a `⌜⌞⌝⌟` kinda UI
|
|
14
|
+
* around the dot when dragged over.
|
|
15
|
+
*/
|
|
16
|
+
declare const FrameStampPositionProvider: React.FC<{
|
|
17
|
+
layoutP: Pointer<SequenceEditorPanelLayout>;
|
|
18
|
+
children: React.ReactNode;
|
|
19
|
+
}>;
|
|
20
|
+
export declare const useFrameStampPositionD: () => Prism<[pos: number, posType: FrameStampPositionType]>;
|
|
21
|
+
/** Version of {@link useLockFrameStampPosition} which allows you to directly set status of a lock. */
|
|
22
|
+
export declare const useLockFrameStampPositionRef: () => (shouldLock: boolean, posValue: number) => void;
|
|
23
|
+
export declare const useLockFrameStampPosition: (shouldLock: boolean, val: number) => void;
|
|
24
|
+
/**
|
|
25
|
+
* This attribute is used so that when the cursor hovers over a keyframe,
|
|
26
|
+
* the framestamp snaps to the position of that keyframe.
|
|
27
|
+
*
|
|
28
|
+
* Use as a spread in a React element.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```tsx
|
|
32
|
+
* <div {...includeLockFrameStampAttrs(10)}/>
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* Elements that need this behavior must set a data attribute like so:
|
|
37
|
+
* <div data-theatre-lock-framestamp-to="120.55" />
|
|
38
|
+
* Setting this attribute to "hide" hides the stamp.
|
|
39
|
+
*
|
|
40
|
+
* @see lockedCursorCssVarName - CSS variable used to set the cursor on an element that
|
|
41
|
+
* should lock the framestamp. Look for usages.
|
|
42
|
+
* @see pointerEventsAutoInNormalMode - CSS snippet used to correctly set
|
|
43
|
+
* `pointer-events` on an element that should lock the framestamp.
|
|
44
|
+
*
|
|
45
|
+
* See {@link FrameStampPositionProvider}
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
export declare const includeLockFrameStampAttrs: (value: number | 'hide') => {
|
|
49
|
+
"data-theatre-lock-framestamp-to": string;
|
|
50
|
+
};
|
|
51
|
+
export default FrameStampPositionProvider;
|
|
52
|
+
//# sourceMappingURL=FrameStampPositionProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FrameStampPositionProvider.d.ts","sourceRoot":"","sources":["../../../../../../studio/src/panels/SequenceEditorPanel/FrameStampPositionProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,KAAK,EAAE,OAAO,EAAC,MAAM,oCAAoC,CAAA;AAKtE,OAAO,KAON,MAAM,OAAO,CAAA;AACd,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,iBAAiB,CAAA;AAO9D,oBAAY,sBAAsB;IAChC,MAAM,IAAA;IACN,MAAM,IAAA;IACN,OAAO,IAAA;IACP,IAAI,IAAA;CACL;AAiBD;;;;;GAKG;AACH,QAAA,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC;IACzC,OAAO,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;IAC3C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B,CAqEA,CAAA;AAED,eAAO,MAAM,sBAAsB,6DAAqC,CAAA;AAExE,sGAAsG;AACtG,eAAO,MAAM,4BAA4B,qBAYjB,OAAO,YAAY,MAAM,SAqBhD,CAAA;AAED,eAAO,MAAM,yBAAyB,eAAgB,OAAO,OAAO,MAAM,SAkBzE,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,0BAA0B,UAAW,MAAM,GAAG,MAAM;;CAE/D,CAAA;AAkDF,eAAe,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { Atom, prism, val } from '@tomorrowevening/theatre-dataverse';
|
|
2
|
+
import mousePositionD from '@tomorrowevening/theatre-studio/utils/mousePositionD';
|
|
3
|
+
import { inRange, last } from 'lodash-es';
|
|
4
|
+
import React, { createContext, useCallback, useContext, useLayoutEffect, useMemo, useRef, } from 'react';
|
|
5
|
+
export var FrameStampPositionType;
|
|
6
|
+
(function (FrameStampPositionType) {
|
|
7
|
+
FrameStampPositionType[FrameStampPositionType["hidden"] = 0] = "hidden";
|
|
8
|
+
FrameStampPositionType[FrameStampPositionType["locked"] = 1] = "locked";
|
|
9
|
+
FrameStampPositionType[FrameStampPositionType["snapped"] = 2] = "snapped";
|
|
10
|
+
FrameStampPositionType[FrameStampPositionType["free"] = 3] = "free";
|
|
11
|
+
})(FrameStampPositionType || (FrameStampPositionType = {}));
|
|
12
|
+
const context = createContext(null);
|
|
13
|
+
let lastLockId = 0;
|
|
14
|
+
/**
|
|
15
|
+
* Provides snapping positions to "stamps".
|
|
16
|
+
*
|
|
17
|
+
* One example of a stamp includes the "Keyframe Dot" which show a `⌜⌞⌝⌟` kinda UI
|
|
18
|
+
* around the dot when dragged over.
|
|
19
|
+
*/
|
|
20
|
+
const FrameStampPositionProvider = ({ children, layoutP }) => {
|
|
21
|
+
const locksAtom = useMemo(() => new Atom([]), []);
|
|
22
|
+
const currentD = useMemo(() => prism(() => {
|
|
23
|
+
const pointerPos = prism
|
|
24
|
+
.memo('p', () => pointerPositionInUnitSpace(layoutP), [layoutP])
|
|
25
|
+
.getValue();
|
|
26
|
+
const locks = val(locksAtom.pointer);
|
|
27
|
+
if (locks.length > 0) {
|
|
28
|
+
return last(locks).position;
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
return pointerPos;
|
|
32
|
+
}
|
|
33
|
+
}), [layoutP]);
|
|
34
|
+
const getLock = useCallback(() => {
|
|
35
|
+
const id = lastLockId++;
|
|
36
|
+
locksAtom.reduce((list) => [
|
|
37
|
+
...list,
|
|
38
|
+
{
|
|
39
|
+
id,
|
|
40
|
+
position: [-1, FrameStampPositionType.hidden],
|
|
41
|
+
},
|
|
42
|
+
]);
|
|
43
|
+
const unlock = () => {
|
|
44
|
+
locksAtom.reduce((list) => list.filter((lock) => lock.id !== id));
|
|
45
|
+
};
|
|
46
|
+
const set = (posInUnitSpace) => {
|
|
47
|
+
locksAtom.reduce((list) => {
|
|
48
|
+
const index = list.findIndex((lock) => lock.id === id);
|
|
49
|
+
if (index === -1) {
|
|
50
|
+
console.warn(`Lock is already freed. This is a bug.`);
|
|
51
|
+
return list;
|
|
52
|
+
}
|
|
53
|
+
const newList = [...list];
|
|
54
|
+
newList.splice(index, 1, {
|
|
55
|
+
id,
|
|
56
|
+
position: [
|
|
57
|
+
posInUnitSpace,
|
|
58
|
+
posInUnitSpace === -1
|
|
59
|
+
? FrameStampPositionType.hidden
|
|
60
|
+
: FrameStampPositionType.locked,
|
|
61
|
+
],
|
|
62
|
+
});
|
|
63
|
+
return newList;
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
return {
|
|
67
|
+
set,
|
|
68
|
+
unlock,
|
|
69
|
+
};
|
|
70
|
+
}, []);
|
|
71
|
+
const value = {
|
|
72
|
+
currentD,
|
|
73
|
+
getLock,
|
|
74
|
+
};
|
|
75
|
+
return React.createElement(context.Provider, { value: value }, children);
|
|
76
|
+
};
|
|
77
|
+
export const useFrameStampPositionD = () => useContext(context).currentD;
|
|
78
|
+
/** Version of {@link useLockFrameStampPosition} which allows you to directly set status of a lock. */
|
|
79
|
+
export const useLockFrameStampPositionRef = () => {
|
|
80
|
+
const { getLock } = useContext(context);
|
|
81
|
+
const lockRef = useRef();
|
|
82
|
+
useLayoutEffect(() => {
|
|
83
|
+
return () => {
|
|
84
|
+
lockRef.current?.unlock();
|
|
85
|
+
};
|
|
86
|
+
}, []);
|
|
87
|
+
return useMemo(() => {
|
|
88
|
+
let prevLock = undefined;
|
|
89
|
+
return (shouldLock, posValue) => {
|
|
90
|
+
// Do if shouldLock changed
|
|
91
|
+
if (prevLock?.shouldLock !== shouldLock) {
|
|
92
|
+
if (shouldLock) {
|
|
93
|
+
lockRef.current = getLock();
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
lockRef.current?.unlock();
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
// Do if position changed
|
|
100
|
+
if (prevLock?.pos !== posValue) {
|
|
101
|
+
if (shouldLock) {
|
|
102
|
+
lockRef.current?.set(posValue);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
// Set arguments we are going to diff against next time
|
|
106
|
+
prevLock = { shouldLock, pos: posValue };
|
|
107
|
+
};
|
|
108
|
+
}, [getLock]);
|
|
109
|
+
};
|
|
110
|
+
export const useLockFrameStampPosition = (shouldLock, val) => {
|
|
111
|
+
const { getLock } = useContext(context);
|
|
112
|
+
const lockRef = useRef();
|
|
113
|
+
useLayoutEffect(() => {
|
|
114
|
+
if (!shouldLock)
|
|
115
|
+
return;
|
|
116
|
+
lockRef.current = getLock();
|
|
117
|
+
return () => {
|
|
118
|
+
lockRef.current.unlock();
|
|
119
|
+
};
|
|
120
|
+
}, [shouldLock, getLock]);
|
|
121
|
+
useLayoutEffect(() => {
|
|
122
|
+
if (shouldLock) {
|
|
123
|
+
lockRef.current.set(val);
|
|
124
|
+
}
|
|
125
|
+
}, [val, shouldLock]);
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* This attribute is used so that when the cursor hovers over a keyframe,
|
|
129
|
+
* the framestamp snaps to the position of that keyframe.
|
|
130
|
+
*
|
|
131
|
+
* Use as a spread in a React element.
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* ```tsx
|
|
135
|
+
* <div {...includeLockFrameStampAttrs(10)}/>
|
|
136
|
+
* ```
|
|
137
|
+
*
|
|
138
|
+
* @remarks
|
|
139
|
+
* Elements that need this behavior must set a data attribute like so:
|
|
140
|
+
* <div data-theatre-lock-framestamp-to="120.55" />
|
|
141
|
+
* Setting this attribute to "hide" hides the stamp.
|
|
142
|
+
*
|
|
143
|
+
* @see lockedCursorCssVarName - CSS variable used to set the cursor on an element that
|
|
144
|
+
* should lock the framestamp. Look for usages.
|
|
145
|
+
* @see pointerEventsAutoInNormalMode - CSS snippet used to correctly set
|
|
146
|
+
* `pointer-events` on an element that should lock the framestamp.
|
|
147
|
+
*
|
|
148
|
+
* See {@link FrameStampPositionProvider}
|
|
149
|
+
*
|
|
150
|
+
*/
|
|
151
|
+
export const includeLockFrameStampAttrs = (value) => ({
|
|
152
|
+
[ATTR_LOCK_FRAMESTAMP]: value === 'hide' ? value : value.toFixed(3),
|
|
153
|
+
});
|
|
154
|
+
const ATTR_LOCK_FRAMESTAMP = 'data-theatre-lock-framestamp-to';
|
|
155
|
+
const pointerPositionInUnitSpace = (layoutP) => {
|
|
156
|
+
return prism(() => {
|
|
157
|
+
const rightDims = val(layoutP.rightDims);
|
|
158
|
+
const clippedSpaceToUnitSpace = val(layoutP.clippedSpace.toUnitSpace);
|
|
159
|
+
const mousePos = val(mousePositionD);
|
|
160
|
+
if (!mousePos)
|
|
161
|
+
return [-1, FrameStampPositionType.hidden];
|
|
162
|
+
for (const el of mousePos.composedPath()) {
|
|
163
|
+
if (!(el instanceof HTMLElement || el instanceof SVGElement))
|
|
164
|
+
break;
|
|
165
|
+
if (el.hasAttribute(ATTR_LOCK_FRAMESTAMP)) {
|
|
166
|
+
const val = el.getAttribute(ATTR_LOCK_FRAMESTAMP);
|
|
167
|
+
if (typeof val !== 'string')
|
|
168
|
+
continue;
|
|
169
|
+
if (val === 'hide')
|
|
170
|
+
return [-1, FrameStampPositionType.hidden];
|
|
171
|
+
const double = parseFloat(val);
|
|
172
|
+
if (isFinite(double) && double >= 0)
|
|
173
|
+
return [double, FrameStampPositionType.snapped];
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
const { clientX, clientY } = mousePos;
|
|
177
|
+
const { screenX: x, screenY: y, width: rightWidth, height } = rightDims;
|
|
178
|
+
if (inRange(clientX, x, x + rightWidth) &&
|
|
179
|
+
inRange(clientY, y + 16 /* leaving a bit of space for the top stip here */, y + height)) {
|
|
180
|
+
const posInRightDims = clientX - x;
|
|
181
|
+
const posInUnitSpace = clippedSpaceToUnitSpace(posInRightDims);
|
|
182
|
+
return [posInUnitSpace, FrameStampPositionType.free];
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
return [-1, FrameStampPositionType.hidden];
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
};
|
|
189
|
+
export default FrameStampPositionProvider;
|
package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/BasicKeyframedTrack.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { TrackData } from '@tomorrowevening/theatre-core/projects/store/types/SheetState_Historic';
|
|
2
|
+
import type SheetObject from '@tomorrowevening/theatre-core/sheetObjects/SheetObject';
|
|
3
|
+
import type { PathToProp } from '@tomorrowevening/theatre-shared/utils/addresses';
|
|
4
|
+
import type { SequenceTrackId } from '@tomorrowevening/theatre-shared/utils/ids';
|
|
5
|
+
import type { VoidFn } from '@tomorrowevening/theatre-shared/utils/types';
|
|
6
|
+
import type { Pointer } from '@tomorrowevening/theatre-dataverse';
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import type { SequenceEditorPanelLayout } from '@tomorrowevening/theatre-studio/panels/SequenceEditorPanel/layout/layout';
|
|
9
|
+
import { graphEditorColors } from '@tomorrowevening/theatre-studio/panels/SequenceEditorPanel/GraphEditor/GraphEditor';
|
|
10
|
+
export type ExtremumSpace = {
|
|
11
|
+
fromValueSpace: (v: number) => number;
|
|
12
|
+
toValueSpace: (v: number) => number;
|
|
13
|
+
deltaToValueSpace: (v: number) => number;
|
|
14
|
+
lock(): VoidFn;
|
|
15
|
+
};
|
|
16
|
+
declare const BasicKeyframedTrack: React.VFC<{
|
|
17
|
+
layoutP: Pointer<SequenceEditorPanelLayout>;
|
|
18
|
+
sheetObject: SheetObject;
|
|
19
|
+
pathToProp: PathToProp;
|
|
20
|
+
trackId: SequenceTrackId;
|
|
21
|
+
trackData: TrackData;
|
|
22
|
+
color: keyof typeof graphEditorColors;
|
|
23
|
+
}>;
|
|
24
|
+
export default BasicKeyframedTrack;
|
|
25
|
+
//# sourceMappingURL=BasicKeyframedTrack.d.ts.map
|
package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/BasicKeyframedTrack.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasicKeyframedTrack.d.ts","sourceRoot":"","sources":["../../../../../../../../studio/src/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/BasicKeyframedTrack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,SAAS,EACV,MAAM,wEAAwE,CAAA;AAC/E,OAAO,KAAK,WAAW,MAAM,wDAAwD,CAAA;AACrF,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,iDAAiD,CAAA;AAC/E,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,2CAA2C,CAAA;AAE9E,OAAO,KAAK,EAAkB,MAAM,EAAC,MAAM,6CAA6C,CAAA;AACxF,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,oCAAoC,CAAA;AAC/D,OAAO,KAAkC,MAAM,OAAO,CAAA;AACtD,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,0EAA0E,CAAA;AACvH,OAAO,EAAC,iBAAiB,EAAC,MAAM,oFAAoF,CAAA;AAUpH,MAAM,MAAM,aAAa,GAAG;IAC1B,cAAc,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;IACrC,YAAY,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;IACnC,iBAAiB,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;IACxC,IAAI,IAAI,MAAM,CAAA;CACf,CAAA;AAED,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,GAAG,CAAC;IACnC,OAAO,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;IAC3C,WAAW,EAAE,WAAW,CAAA;IACxB,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,eAAe,CAAA;IACxB,SAAS,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,MAAM,OAAO,iBAAiB,CAAA;CACtC,CA6FA,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/BasicKeyframedTrack.js
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { createStudioSheetItemKey } from '@tomorrowevening/theatre-shared/utils/ids';
|
|
2
|
+
import React, { useMemo, useRef, useState } from 'react';
|
|
3
|
+
import { graphEditorColors } from '@tomorrowevening/theatre-studio/panels/SequenceEditorPanel/GraphEditor/GraphEditor';
|
|
4
|
+
import KeyframeEditor from './KeyframeEditor/KeyframeEditor';
|
|
5
|
+
import { getPropConfigByPath, isPropConfigComposite, valueInProp, } from '@tomorrowevening/theatre-shared/propTypes/utils';
|
|
6
|
+
import { useVal } from '@tomorrowevening/theatre-react';
|
|
7
|
+
const BasicKeyframedTrack = React.memo(({ layoutP, trackData, sheetObject, trackId, color, pathToProp }) => {
|
|
8
|
+
const propConfig = getPropConfigByPath(useVal(sheetObject.template.configPointer), pathToProp);
|
|
9
|
+
if (isPropConfigComposite(propConfig)) {
|
|
10
|
+
console.error(`Composite prop types cannot be keyframed`);
|
|
11
|
+
return React.createElement(React.Fragment, null);
|
|
12
|
+
}
|
|
13
|
+
const [areExtremumsLocked, setAreExtremumsLocked] = useState(false);
|
|
14
|
+
const lockExtremums = useMemo(() => {
|
|
15
|
+
const locks = new Set();
|
|
16
|
+
return function lockExtremums() {
|
|
17
|
+
const shouldLock = locks.size === 0;
|
|
18
|
+
locks.add(unlock);
|
|
19
|
+
if (shouldLock)
|
|
20
|
+
setAreExtremumsLocked(true);
|
|
21
|
+
function unlock() {
|
|
22
|
+
const wasLocked = locks.size > 0;
|
|
23
|
+
locks.delete(unlock);
|
|
24
|
+
if (wasLocked && locks.size === 0)
|
|
25
|
+
setAreExtremumsLocked(false);
|
|
26
|
+
}
|
|
27
|
+
return unlock;
|
|
28
|
+
};
|
|
29
|
+
}, []);
|
|
30
|
+
const extremumSpace = useMemo(() => {
|
|
31
|
+
const extremums = propConfig.type === 'number'
|
|
32
|
+
? calculateScalarExtremums(trackData.keyframes, propConfig)
|
|
33
|
+
: calculateNonScalarExtremums(trackData.keyframes);
|
|
34
|
+
const fromValueSpace = (val) => (val - extremums[0]) / (extremums[1] - extremums[0]);
|
|
35
|
+
const toValueSpace = (ex) => extremums[0] + deltaToValueSpace(ex);
|
|
36
|
+
const deltaToValueSpace = (ex) => ex * (extremums[1] - extremums[0]);
|
|
37
|
+
return {
|
|
38
|
+
fromValueSpace,
|
|
39
|
+
toValueSpace,
|
|
40
|
+
deltaToValueSpace,
|
|
41
|
+
lock: lockExtremums,
|
|
42
|
+
};
|
|
43
|
+
}, [trackData.keyframes]);
|
|
44
|
+
const cachedExtremumSpace = useRef(undefined);
|
|
45
|
+
if (!areExtremumsLocked) {
|
|
46
|
+
cachedExtremumSpace.current = extremumSpace;
|
|
47
|
+
}
|
|
48
|
+
const keyframeEditors = trackData.keyframes.map((kf, index) => (React.createElement(KeyframeEditor, { pathToProp: pathToProp, propConfig: propConfig, itemKey: createStudioSheetItemKey.forTrackKeyframe(sheetObject, trackId, kf.id), keyframe: kf, index: index, trackData: trackData, layoutP: layoutP, sheetObject: sheetObject, trackId: trackId, isScalar: propConfig.type === 'number', key: kf.id, extremumSpace: cachedExtremumSpace.current, color: color })));
|
|
49
|
+
return (React.createElement("g", { style: {
|
|
50
|
+
// @ts-ignore
|
|
51
|
+
'--main-color': graphEditorColors[color].iconColor,
|
|
52
|
+
} }, keyframeEditors));
|
|
53
|
+
});
|
|
54
|
+
export default BasicKeyframedTrack;
|
|
55
|
+
function calculateScalarExtremums(keyframes, propConfig) {
|
|
56
|
+
let min = Infinity, max = -Infinity;
|
|
57
|
+
function check(n) {
|
|
58
|
+
min = Math.min(n, min);
|
|
59
|
+
max = Math.max(n, max);
|
|
60
|
+
}
|
|
61
|
+
keyframes.forEach((cur, i) => {
|
|
62
|
+
const curVal = valueInProp(cur.value, propConfig);
|
|
63
|
+
check(curVal);
|
|
64
|
+
if (!cur.connectedRight)
|
|
65
|
+
return;
|
|
66
|
+
const next = keyframes[i + 1];
|
|
67
|
+
if (!next)
|
|
68
|
+
return;
|
|
69
|
+
const diff = (typeof next.value === 'number' ? next.value : 1) - curVal;
|
|
70
|
+
check(curVal + cur.handles[3] * diff);
|
|
71
|
+
check(curVal + next.handles[1] * diff);
|
|
72
|
+
});
|
|
73
|
+
return [min, max];
|
|
74
|
+
}
|
|
75
|
+
function calculateNonScalarExtremums(keyframes) {
|
|
76
|
+
let min = 0, max = 1;
|
|
77
|
+
function check(n) {
|
|
78
|
+
min = Math.min(n, min);
|
|
79
|
+
max = Math.max(n, max);
|
|
80
|
+
}
|
|
81
|
+
keyframes.forEach((cur, i) => {
|
|
82
|
+
if (!cur.connectedRight)
|
|
83
|
+
return;
|
|
84
|
+
const next = keyframes[i + 1];
|
|
85
|
+
if (!next)
|
|
86
|
+
return;
|
|
87
|
+
check(cur.handles[3]);
|
|
88
|
+
check(next.handles[1]);
|
|
89
|
+
});
|
|
90
|
+
return [min, max];
|
|
91
|
+
}
|
package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/Curve.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type KeyframeEditor from './KeyframeEditor';
|
|
3
|
+
type IProps = Parameters<typeof KeyframeEditor>[0];
|
|
4
|
+
declare const Curve: React.VFC<IProps>;
|
|
5
|
+
/**
|
|
6
|
+
* Assuming a box such that: `{x: 0, y: 0, width: 1px, height: 1px}`
|
|
7
|
+
* and given the desired coordinates of:
|
|
8
|
+
* `{x: xInUnitSpace, y: yInExtremumSpace, width: widthInUnitSpace, height: heightInExtremumSpace}`,
|
|
9
|
+
* `transformBox()` returns a CSS transform that transforms the box into its right dimensions
|
|
10
|
+
* in the GraphEditor space.
|
|
11
|
+
*/
|
|
12
|
+
export declare function transformBox(xInUnitSpace: number, yInExtremumSpace: number, widthInUnitSpace: number, heightInExtremumSpace: number): string;
|
|
13
|
+
export default Curve;
|
|
14
|
+
//# sourceMappingURL=Curve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Curve.d.ts","sourceRoot":"","sources":["../../../../../../../../../studio/src/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/Curve.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAA;AASlD,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;AAKlD,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,MAAM,CAkD5B,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,YAAY,EAAE,MAAM,EACpB,gBAAgB,EAAE,MAAM,EACxB,gBAAgB,EAAE,MAAM,EACxB,qBAAqB,EAAE,MAAM,GAC5B,MAAM,CAoBR;AAED,eAAe,KAAK,CAAA"}
|
package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/Curve.js
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { valueInProp } from '@tomorrowevening/theatre-shared/propTypes/utils';
|
|
2
|
+
import getStudio from '@tomorrowevening/theatre-studio/getStudio';
|
|
3
|
+
import useContextMenu from '@tomorrowevening/theatre-studio/uiComponents/simpleContextMenu/useContextMenu';
|
|
4
|
+
import useRefAndState from '@tomorrowevening/theatre-studio/utils/useRefAndState';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
const SVGPath = styled.path `
|
|
8
|
+
stroke-width: 2;
|
|
9
|
+
stroke: var(--main-color);
|
|
10
|
+
fill: none;
|
|
11
|
+
vector-effect: non-scaling-stroke;
|
|
12
|
+
`;
|
|
13
|
+
// for keyframe.type === 'hold'
|
|
14
|
+
const pathForHoldType = `M 0 0 L 1 0 L 1 1`;
|
|
15
|
+
const Curve = (props) => {
|
|
16
|
+
const { index, trackData } = props;
|
|
17
|
+
const cur = trackData.keyframes[index];
|
|
18
|
+
const next = trackData.keyframes[index + 1];
|
|
19
|
+
const connectorLengthInUnitSpace = next.position - cur.position;
|
|
20
|
+
const [nodeRef, node] = useRefAndState(null);
|
|
21
|
+
const [contextMenu] = useConnectorContextMenu(node, props);
|
|
22
|
+
const curValue = props.isScalar
|
|
23
|
+
? valueInProp(cur.value, props.propConfig)
|
|
24
|
+
: 0;
|
|
25
|
+
const nextValue = props.isScalar
|
|
26
|
+
? valueInProp(next.value, props.propConfig)
|
|
27
|
+
: 1;
|
|
28
|
+
const leftYInExtremumSpace = props.extremumSpace.fromValueSpace(curValue);
|
|
29
|
+
const rightYInExtremumSpace = props.extremumSpace.fromValueSpace(nextValue);
|
|
30
|
+
const heightInExtremumSpace = rightYInExtremumSpace - leftYInExtremumSpace;
|
|
31
|
+
const transform = transformBox(cur.position, leftYInExtremumSpace, connectorLengthInUnitSpace, heightInExtremumSpace);
|
|
32
|
+
const x1 = cur.handles[2];
|
|
33
|
+
const y1 = cur.handles[3];
|
|
34
|
+
const x2 = next.handles[0];
|
|
35
|
+
const y2 = next.handles[1];
|
|
36
|
+
const pathD = `M 0 0 C ${x1} ${y1} ${x2} ${y2} 1 1`;
|
|
37
|
+
return (React.createElement(React.Fragment, null,
|
|
38
|
+
React.createElement(SVGPath, { ref: nodeRef, d: !cur.type || cur.type === 'bezier' ? pathD : pathForHoldType, style: {
|
|
39
|
+
transform,
|
|
40
|
+
} }),
|
|
41
|
+
contextMenu));
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Assuming a box such that: `{x: 0, y: 0, width: 1px, height: 1px}`
|
|
45
|
+
* and given the desired coordinates of:
|
|
46
|
+
* `{x: xInUnitSpace, y: yInExtremumSpace, width: widthInUnitSpace, height: heightInExtremumSpace}`,
|
|
47
|
+
* `transformBox()` returns a CSS transform that transforms the box into its right dimensions
|
|
48
|
+
* in the GraphEditor space.
|
|
49
|
+
*/
|
|
50
|
+
export function transformBox(xInUnitSpace, yInExtremumSpace, widthInUnitSpace, heightInExtremumSpace) {
|
|
51
|
+
const translateX = `calc(var(--unitSpaceToScaledSpaceMultiplier) * ${xInUnitSpace}px)`;
|
|
52
|
+
const translateY = `calc((var(--graphEditorVerticalSpace) - var(--graphEditorVerticalSpace) * ${yInExtremumSpace}) * 1px)`;
|
|
53
|
+
if (widthInUnitSpace === 0) {
|
|
54
|
+
widthInUnitSpace = 0.0001;
|
|
55
|
+
}
|
|
56
|
+
const scaleX = `calc(var(--unitSpaceToScaledSpaceMultiplier) * ${widthInUnitSpace})`;
|
|
57
|
+
if (heightInExtremumSpace === 0) {
|
|
58
|
+
heightInExtremumSpace = 0.001;
|
|
59
|
+
}
|
|
60
|
+
const scaleY = `calc(var(--graphEditorVerticalSpace) * ${heightInExtremumSpace * -1})`;
|
|
61
|
+
return `translate(${translateX}, ${translateY}) scale(${scaleX}, ${scaleY})`;
|
|
62
|
+
}
|
|
63
|
+
export default Curve;
|
|
64
|
+
function useConnectorContextMenu(node, props) {
|
|
65
|
+
const { index, trackData } = props;
|
|
66
|
+
const cur = trackData.keyframes[index];
|
|
67
|
+
const next = trackData.keyframes[index + 1];
|
|
68
|
+
return useContextMenu(node, {
|
|
69
|
+
menuItems: () => {
|
|
70
|
+
return [
|
|
71
|
+
{
|
|
72
|
+
label: 'Delete',
|
|
73
|
+
callback: () => {
|
|
74
|
+
getStudio().transaction(({ stateEditors }) => {
|
|
75
|
+
const { deleteKeyframes } = stateEditors.coreByProject.historic.sheetsById.sequence;
|
|
76
|
+
deleteKeyframes({
|
|
77
|
+
...props.sheetObject.address,
|
|
78
|
+
trackId: props.trackId,
|
|
79
|
+
keyframeIds: [cur.id, next.id],
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
];
|
|
85
|
+
},
|
|
86
|
+
});
|
|
87
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type KeyframeEditor from './KeyframeEditor';
|
|
3
|
+
export declare const dotSize = 6;
|
|
4
|
+
type Which = 'left' | 'right';
|
|
5
|
+
type IProps = Parameters<typeof KeyframeEditor>[0] & {
|
|
6
|
+
which: Which;
|
|
7
|
+
};
|
|
8
|
+
declare const CurveHandle: React.VFC<IProps>;
|
|
9
|
+
export default CurveHandle;
|
|
10
|
+
//# sourceMappingURL=CurveHandle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurveHandle.d.ts","sourceRoot":"","sources":["../../../../../../../../../studio/src/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/CurveHandle.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAwB,MAAM,OAAO,CAAA;AAG5C,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAA;AAGlD,eAAO,MAAM,OAAO,IAAI,CAAA;AAgCxB,KAAK,KAAK,GAAG,MAAM,GAAG,OAAO,CAAA;AAE7B,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,GAAG;IAAC,KAAK,EAAE,KAAK,CAAA;CAAC,CAAA;AAEnE,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,MAAM,CAmElC,CAAA;AAED,eAAe,WAAW,CAAA"}
|