@weasel-js/ui 1.6.1 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/ActionBar-xA73vzzF.js +64 -0
- package/dist/chunks/ActionBar-xA73vzzF.js.map +1 -0
- package/dist/chunks/Badge-CTc9Lkwn.js +14 -0
- package/dist/chunks/Badge-CTc9Lkwn.js.map +1 -0
- package/dist/chunks/{Badge-CyAIZSDo.js → Badge-jYQjrTKc.js} +506 -486
- package/dist/chunks/Badge-jYQjrTKc.js.map +1 -0
- package/dist/chunks/BandEditor-Dd0egAgE.js +292 -0
- package/dist/chunks/BandEditor-Dd0egAgE.js.map +1 -0
- package/dist/chunks/{Button-BIdXHQOx.js → Button-XB-T75YL.js} +2 -2
- package/dist/chunks/{Button-BIdXHQOx.js.map → Button-XB-T75YL.js.map} +1 -1
- package/dist/chunks/{ButtonBar-D5Vi0aj_.js → ButtonBar-CIMKPPRS.js} +7 -9
- package/dist/chunks/{ButtonBar-D5Vi0aj_.js.map → ButtonBar-CIMKPPRS.js.map} +1 -1
- package/dist/chunks/Callout-BUn0dP_S.js +115 -0
- package/dist/chunks/Callout-BUn0dP_S.js.map +1 -0
- package/dist/chunks/Checkbox-DFn-x0JO.js +37 -0
- package/dist/chunks/Checkbox-DFn-x0JO.js.map +1 -0
- package/dist/chunks/CloseButton-BmNmRVtb.js +26 -0
- package/dist/chunks/CloseButton-BmNmRVtb.js.map +1 -0
- package/dist/chunks/ColorField-BLs9fbeq.js +90 -0
- package/dist/chunks/ColorField-BLs9fbeq.js.map +1 -0
- package/dist/chunks/{ColorModeControl-ke5PXbBa.js → ColorModeControl-DaVJ-SyX.js} +3 -3
- package/dist/chunks/{ColorModeControl-ke5PXbBa.js.map → ColorModeControl-DaVJ-SyX.js.map} +1 -1
- package/dist/chunks/ComboBox-CuTLRmUg.js +138 -0
- package/dist/chunks/ComboBox-CuTLRmUg.js.map +1 -0
- package/dist/chunks/{CurveEditor-BDJXjEvK.js → CurveEditor-jVBEqqdv.js} +90 -87
- package/dist/chunks/CurveEditor-jVBEqqdv.js.map +1 -0
- package/dist/chunks/{DataGrid-D-dZj1BD.js → DataGrid-BklgBqS0.js} +17 -17
- package/dist/chunks/DataGrid-BklgBqS0.js.map +1 -0
- package/dist/chunks/DetailList-DFtqdOJj.js +52 -0
- package/dist/chunks/DetailList-DFtqdOJj.js.map +1 -0
- package/dist/chunks/{DetentSlider-CL8TlX3S.js → DetentSlider-Bh7EpMqT.js} +2 -2
- package/dist/chunks/{DetentSlider-CL8TlX3S.js.map → DetentSlider-Bh7EpMqT.js.map} +1 -1
- package/dist/chunks/Dialog-DKfsk5VN.js +63 -0
- package/dist/chunks/Dialog-DKfsk5VN.js.map +1 -0
- package/dist/chunks/{Disclosure-0G0uh2fa.js → Disclosure-Ch2KxYuB.js} +7 -7
- package/dist/chunks/Disclosure-Ch2KxYuB.js.map +1 -0
- package/dist/chunks/{DragGhost-B5_hb9W9.js → DragGhost-BeYDJyLZ.js} +2 -2
- package/dist/chunks/{DragGhost-B5_hb9W9.js.map → DragGhost-BeYDJyLZ.js.map} +1 -1
- package/dist/chunks/{DragHandleGlyph-Dr7Fgo0I.js → DragGrip-AoIZXfZb.js} +2 -2
- package/dist/chunks/DragGrip-AoIZXfZb.js.map +1 -0
- package/dist/chunks/FallthroughDiagram-C7BUe8eU.js +284 -0
- package/dist/chunks/FallthroughDiagram-C7BUe8eU.js.map +1 -0
- package/dist/chunks/Field-DsBlnFKf.js +25 -0
- package/dist/chunks/Field-DsBlnFKf.js.map +1 -0
- package/dist/chunks/FillStrokeSwatch-CgsYQgew.js +112 -0
- package/dist/chunks/FillStrokeSwatch-CgsYQgew.js.map +1 -0
- package/dist/chunks/{FontFamilySelect-DXlMKWfK.js → FontFamilySelect-CGJ5OIOy.js} +2 -2
- package/dist/chunks/FontFamilySelect-CGJ5OIOy.js.map +1 -0
- package/dist/chunks/FontWeightSelect-RbcXYJPS.js +49 -0
- package/dist/chunks/FontWeightSelect-RbcXYJPS.js.map +1 -0
- package/dist/chunks/GestureRoute-BXESrHI0.js +82 -0
- package/dist/chunks/GestureRoute-BXESrHI0.js.map +1 -0
- package/dist/chunks/GradientEditor-DypXzMc-.js +325 -0
- package/dist/chunks/GradientEditor-DypXzMc-.js.map +1 -0
- package/dist/chunks/{Icon-Cgzy8VgC.js → Icon--B1ME-6c.js} +33 -1
- package/dist/chunks/Icon--B1ME-6c.js.map +1 -0
- package/dist/chunks/{InlineRange-eOj6JpJl.js → InlineRange-P01ABSzo.js} +3 -3
- package/dist/chunks/InlineRange-P01ABSzo.js.map +1 -0
- package/dist/chunks/{Input-CHmkfYaD.js → Input-CzwvCZs_.js} +10 -15
- package/dist/chunks/Input-CzwvCZs_.js.map +1 -0
- package/dist/chunks/{ItemList-Cm-HUWCi.js → ItemList-CRu9y7hL.js} +2 -2
- package/dist/chunks/ItemList-CRu9y7hL.js.map +1 -0
- package/dist/chunks/{Jog-DESxZ44P.js → Jog-DfNUYejm.js} +8 -8
- package/dist/chunks/Jog-DfNUYejm.js.map +1 -0
- package/dist/chunks/{Keycaps-C0H_v2gO.js → Keycaps-C-FJyG8k.js} +14 -14
- package/dist/chunks/Keycaps-C-FJyG8k.js.map +1 -0
- package/dist/chunks/{LayerList-nz-QYvTF.js → LayerList-CsDqwYh-.js} +105 -111
- package/dist/chunks/LayerList-CsDqwYh-.js.map +1 -0
- package/dist/chunks/ListEditor-BnGzqERm.js +72 -0
- package/dist/chunks/ListEditor-BnGzqERm.js.map +1 -0
- package/dist/chunks/MenuButton-L9f5vido.js +75 -0
- package/dist/chunks/MenuButton-L9f5vido.js.map +1 -0
- package/dist/chunks/MeshEditor-GbqqiPk8.js +199 -0
- package/dist/chunks/MeshEditor-GbqqiPk8.js.map +1 -0
- package/dist/chunks/NumberField-DLXXgh48.js +209 -0
- package/dist/chunks/NumberField-DLXXgh48.js.map +1 -0
- package/dist/chunks/{OptionsBar-DbzAgIln.js → OptionsBar-DeTAjVb7.js} +6 -8
- package/dist/chunks/{OptionsBar-DbzAgIln.js.map → OptionsBar-DeTAjVb7.js.map} +1 -1
- package/dist/chunks/PaintField-C0hoXc0Y.js +63 -0
- package/dist/chunks/PaintField-C0hoXc0Y.js.map +1 -0
- package/dist/chunks/PaintInput-jQRxM95Y.js +132 -0
- package/dist/chunks/PaintInput-jQRxM95Y.js.map +1 -0
- package/dist/chunks/PatternPicker-CaMYXzhF.js +135 -0
- package/dist/chunks/PatternPicker-CaMYXzhF.js.map +1 -0
- package/dist/chunks/{Plot2D-CTXHkL5p.js → Plot2D-BHNbgCAl.js} +7 -7
- package/dist/chunks/Plot2D-BHNbgCAl.js.map +1 -0
- package/dist/chunks/{PointPlotter-Bxo6haKe.js → PointPlotter-BZ_vk6gV.js} +2 -2
- package/dist/chunks/{PointPlotter-Bxo6haKe.js.map → PointPlotter-BZ_vk6gV.js.map} +1 -1
- package/dist/chunks/{Powerline-ExO5GwEr.js → Powerline-6wIFmDik.js} +2 -2
- package/dist/chunks/{Powerline-ExO5GwEr.js.map → Powerline-6wIFmDik.js.map} +1 -1
- package/dist/chunks/{Prefs-DpqFKiwY.js → Prefs-CkyldX-e.js} +116 -91
- package/dist/chunks/Prefs-CkyldX-e.js.map +1 -0
- package/dist/chunks/{Properties-D_KzDN9K.js → Properties-D15c8NP-.js} +53 -47
- package/dist/chunks/Properties-D15c8NP-.js.map +1 -0
- package/dist/chunks/PropertyField-CV_Gw57S.js +686 -0
- package/dist/chunks/PropertyField-CV_Gw57S.js.map +1 -0
- package/dist/chunks/{RadioGroup-Bh4-12e-.js → RadioGroup-4dbzqvGy.js} +2 -2
- package/dist/chunks/{RadioGroup-Bh4-12e-.js.map → RadioGroup-4dbzqvGy.js.map} +1 -1
- package/dist/chunks/{RangeSlider-BKRRTPTZ.js → RangeSlider-BxokZViJ.js} +8 -8
- package/dist/chunks/RangeSlider-BxokZViJ.js.map +1 -0
- package/dist/chunks/RecentColorsProvider-DHcfk25u.js +84 -0
- package/dist/chunks/RecentColorsProvider-DHcfk25u.js.map +1 -0
- package/dist/chunks/ResizeHandle-CbAgCQOt.js +81 -0
- package/dist/chunks/ResizeHandle-CbAgCQOt.js.map +1 -0
- package/dist/chunks/Select-BppLsJTz.js +236 -0
- package/dist/chunks/Select-BppLsJTz.js.map +1 -0
- package/dist/chunks/SelectionPanel-Cm1qu-ZX.js +107 -0
- package/dist/chunks/SelectionPanel-Cm1qu-ZX.js.map +1 -0
- package/dist/chunks/SidebarPanel-AXQ0jRDx.js +53 -0
- package/dist/chunks/SidebarPanel-AXQ0jRDx.js.map +1 -0
- package/dist/chunks/Slider-Cl5RCeZ7.js +389 -0
- package/dist/chunks/Slider-Cl5RCeZ7.js.map +1 -0
- package/dist/chunks/{StatusBar-DzoPDY4k.js → StatusBar-Ca9Dvhhq.js} +6 -6
- package/dist/chunks/StatusBar-Ca9Dvhhq.js.map +1 -0
- package/dist/chunks/SwatchGrid-9ZPiDmxd.js +78 -0
- package/dist/chunks/SwatchGrid-9ZPiDmxd.js.map +1 -0
- package/dist/chunks/SwatchStrip-Cw0l8Om7.js +577 -0
- package/dist/chunks/SwatchStrip-Cw0l8Om7.js.map +1 -0
- package/dist/chunks/ThemeSwitcher-DiBmMh_B.js +38 -0
- package/dist/chunks/ThemeSwitcher-DiBmMh_B.js.map +1 -0
- package/dist/chunks/{Timeline--58F7MED.js → Timeline-pqnYk5cV.js} +296 -294
- package/dist/chunks/Timeline-pqnYk5cV.js.map +1 -0
- package/dist/chunks/Toast-C3ozq11V.js +170 -0
- package/dist/chunks/Toast-C3ozq11V.js.map +1 -0
- package/dist/chunks/{ToggleBar-DTjGeS0Q.js → ToggleBar-Z2jZiguF.js} +13 -15
- package/dist/chunks/ToggleBar-Z2jZiguF.js.map +1 -0
- package/dist/chunks/{TokenPanel-CMq7uydV.js → TokenPanel-DAkL6vwQ.js} +33 -33
- package/dist/chunks/TokenPanel-DAkL6vwQ.js.map +1 -0
- package/dist/chunks/{ToolButton-CR4sQlxF.js → ToolButton-BURp4YIO.js} +12 -14
- package/dist/chunks/ToolButton-BURp4YIO.js.map +1 -0
- package/dist/chunks/{ToolOptionsBar-CtzTlaN2.js → ToolOptionsBar-COsTJ1cu.js} +9 -7
- package/dist/chunks/ToolOptionsBar-COsTJ1cu.js.map +1 -0
- package/dist/chunks/{ToolPalette-CKG9qY6P.js → ToolPalette-DKDFWOX-.js} +8 -10
- package/dist/chunks/ToolPalette-DKDFWOX-.js.map +1 -0
- package/dist/chunks/{Tooltip-Clg2mhSt.js → Tooltip-C6eFCYxw.js} +2 -2
- package/dist/chunks/{Tooltip-Clg2mhSt.js.map → Tooltip-C6eFCYxw.js.map} +1 -1
- package/dist/chunks/{Tree-DVOtc9R5.js → Tree-Cc8lIzgM.js} +2 -2
- package/dist/chunks/Tree-Cc8lIzgM.js.map +1 -0
- package/dist/chunks/checkbox.module-DLQV9tMX.js +5 -0
- package/dist/chunks/checkbox.module-DLQV9tMX.js.map +1 -0
- package/dist/chunks/{createKeyframeLayer-Czj6Y235.js → createKeyframeLayer-BTa4LyJE.js} +208 -223
- package/dist/chunks/createKeyframeLayer-BTa4LyJE.js.map +1 -0
- package/dist/chunks/field.module-Bh7BTKMh.js +15 -0
- package/dist/chunks/field.module-Bh7BTKMh.js.map +1 -0
- package/dist/chunks/formatShortcut-DRQrVThu.js.map +1 -1
- package/dist/chunks/handles-CqVANLtu.js +17 -0
- package/dist/chunks/handles-CqVANLtu.js.map +1 -0
- package/dist/chunks/{icons-Dk8SRS8g.js → icons-Dr2-r30x.js} +2 -2
- package/dist/chunks/icons-Dr2-r30x.js.map +1 -0
- package/dist/chunks/listbox.module-BcdVJMbm.js +8 -0
- package/dist/chunks/listbox.module-BcdVJMbm.js.map +1 -0
- package/dist/chunks/model-B1-gMBIW.js +386 -0
- package/dist/chunks/model-B1-gMBIW.js.map +1 -0
- package/dist/chunks/{portalHost-yTOVuCej.js → portalHost-CE70wLzo.js} +10 -6
- package/dist/chunks/portalHost-CE70wLzo.js.map +1 -0
- package/dist/chunks/prefField-BE_Ytr2H.js +229 -0
- package/dist/chunks/prefField-BE_Ytr2H.js.map +1 -0
- package/dist/chunks/{segmentTooltip-CStYHKzd.js → segmentTooltip-CGxCOWNz.js} +2 -2
- package/dist/chunks/{segmentTooltip-CStYHKzd.js.map → segmentTooltip-CGxCOWNz.js.map} +1 -1
- package/dist/chunks/segmentedControl.module-BzGXUL5G.js +11 -0
- package/dist/chunks/segmentedControl.module-BzGXUL5G.js.map +1 -0
- package/dist/chunks/useReorderDragList-CStYKjHl.js +133 -0
- package/dist/chunks/useReorderDragList-CStYKjHl.js.map +1 -0
- package/dist/chunks/useRovingTabIndex-D7u22Ia_.js +91 -0
- package/dist/chunks/useRovingTabIndex-D7u22Ia_.js.map +1 -0
- package/dist/components/ActionBar/ActionBar.d.ts.map +1 -1
- package/dist/components/ActionBar/index.js +1 -1
- package/dist/components/Badge/bases/ChamferedRect.d.ts.map +1 -1
- package/dist/components/Badge/bases/Powerline.d.ts.map +1 -1
- package/dist/components/Badge/bases/edgeProfiles.d.ts +31 -4
- package/dist/components/Badge/bases/edgeProfiles.d.ts.map +1 -1
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/Badge/index.d.ts.map +1 -1
- package/dist/components/Badge/index.js +3 -2
- package/dist/components/Badge/statusIcons.d.ts +5 -0
- package/dist/components/Badge/statusIcons.d.ts.map +1 -0
- package/dist/components/BandEditor/BandEditor.d.ts +17 -7
- package/dist/components/BandEditor/BandEditor.d.ts.map +1 -1
- package/dist/components/BandEditor/bands.d.ts +5 -2
- package/dist/components/BandEditor/bands.d.ts.map +1 -1
- package/dist/components/BandEditor/index.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonBar/ButtonBar.d.ts.map +1 -1
- package/dist/components/ButtonBar/index.js +1 -1
- package/dist/components/Callout/Callout.d.ts +2 -2
- package/dist/components/Callout/Callout.d.ts.map +1 -1
- package/dist/components/Callout/index.js +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +28 -13
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/CloseButton/CloseButton.d.ts +21 -0
- package/dist/components/CloseButton/CloseButton.d.ts.map +1 -0
- package/dist/components/CloseButton/index.d.ts +3 -0
- package/dist/components/CloseButton/index.d.ts.map +1 -0
- package/dist/components/CloseButton/index.js +2 -0
- package/dist/components/ColorField/ColorField.d.ts +5 -1
- package/dist/components/ColorField/ColorField.d.ts.map +1 -1
- package/dist/components/ColorField/OpacityRange.d.ts +18 -0
- package/dist/components/ColorField/OpacityRange.d.ts.map +1 -0
- package/dist/components/ColorField/index.js +1 -1
- package/dist/components/ColorModeControl/index.js +1 -1
- package/dist/components/ComboBox/ComboBox.d.ts +7 -0
- package/dist/components/ComboBox/ComboBox.d.ts.map +1 -1
- package/dist/components/ComboBox/index.js +1 -1
- package/dist/components/CurveEditor/CurveEditor.d.ts.map +1 -1
- package/dist/components/CurveEditor/LayeredCurveEditor.d.ts.map +1 -1
- package/dist/components/CurveEditor/index.js +2 -2
- package/dist/components/DataGrid/index.js +1 -1
- package/dist/components/DetailList/DetailList.d.ts +31 -5
- package/dist/components/DetailList/DetailList.d.ts.map +1 -1
- package/dist/components/DetailList/index.d.ts +1 -1
- package/dist/components/DetailList/index.d.ts.map +1 -1
- package/dist/components/DetailList/index.js +1 -1
- package/dist/components/DetentSlider/index.js +1 -1
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/Disclosure/Disclosure.d.ts +1 -1
- package/dist/components/Disclosure/index.js +1 -1
- package/dist/components/DragGhost/index.js +1 -1
- package/dist/components/{DragHandleGlyph/DragHandleGlyph.d.ts → DragGrip/DragGrip.d.ts} +4 -4
- package/dist/components/DragGrip/DragGrip.d.ts.map +1 -0
- package/dist/components/DragGrip/index.d.ts +3 -0
- package/dist/components/DragGrip/index.d.ts.map +1 -0
- package/dist/components/DragGrip/index.js +2 -0
- package/dist/components/FallthroughDiagram/FallthroughDiagram.d.ts +14 -0
- package/dist/components/FallthroughDiagram/FallthroughDiagram.d.ts.map +1 -0
- package/dist/components/FallthroughDiagram/fixtures.d.ts +17 -0
- package/dist/components/FallthroughDiagram/fixtures.d.ts.map +1 -0
- package/dist/components/FallthroughDiagram/index.d.ts +3 -0
- package/dist/components/FallthroughDiagram/index.d.ts.map +1 -0
- package/dist/components/FallthroughDiagram/index.js +2 -0
- package/dist/components/Field/index.js +1 -1
- package/dist/components/FillStrokeSwatch/FillStrokeSwatch.d.ts.map +1 -1
- package/dist/components/FillStrokeSwatch/index.js +1 -1
- package/dist/components/FontFamilySelect/FontFamilySelect.d.ts +20 -0
- package/dist/components/FontFamilySelect/FontFamilySelect.d.ts.map +1 -1
- package/dist/components/FontFamilySelect/index.js +1 -1
- package/dist/components/FontWeightSelect/FontWeightSelect.d.ts +26 -0
- package/dist/components/FontWeightSelect/FontWeightSelect.d.ts.map +1 -0
- package/dist/components/FontWeightSelect/index.d.ts +3 -0
- package/dist/components/FontWeightSelect/index.d.ts.map +1 -0
- package/dist/components/FontWeightSelect/index.js +2 -0
- package/dist/components/GestureRoute/GestureRoute.d.ts +19 -0
- package/dist/components/GestureRoute/GestureRoute.d.ts.map +1 -0
- package/dist/components/GestureRoute/index.d.ts +3 -0
- package/dist/components/GestureRoute/index.d.ts.map +1 -0
- package/dist/components/GestureRoute/index.js +2 -0
- package/dist/components/GradientEditor/GradientEditor.d.ts +22 -8
- package/dist/components/GradientEditor/GradientEditor.d.ts.map +1 -1
- package/dist/components/GradientEditor/GradientHandles.d.ts +1 -8
- package/dist/components/GradientEditor/GradientHandles.d.ts.map +1 -1
- package/dist/components/GradientEditor/SceneGradientHandles.d.ts +7 -5
- package/dist/components/GradientEditor/SceneGradientHandles.d.ts.map +1 -1
- package/dist/components/GradientEditor/handleOverlay.d.ts +41 -0
- package/dist/components/GradientEditor/handleOverlay.d.ts.map +1 -0
- package/dist/components/GradientEditor/index.js +1 -1
- package/dist/components/InlineRange/index.js +1 -1
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/ItemList/ItemList.d.ts +32 -31
- package/dist/components/ItemList/ItemList.d.ts.map +1 -1
- package/dist/components/ItemList/index.js +1 -1
- package/dist/components/Jog/index.js +1 -1
- package/dist/components/Keycaps/Keycaps.d.ts +11 -5
- package/dist/components/Keycaps/Keycaps.d.ts.map +1 -1
- package/dist/components/Keycaps/index.d.ts +1 -1
- package/dist/components/Keycaps/index.d.ts.map +1 -1
- package/dist/components/Keycaps/index.js +1 -1
- package/dist/components/LayerList/LayerList.d.ts +1 -1
- package/dist/components/LayerList/LayerList.d.ts.map +1 -1
- package/dist/components/LayerList/index.js +1 -1
- package/dist/components/ListEditor/ListEditor.d.ts.map +1 -1
- package/dist/components/ListEditor/index.js +1 -1
- package/dist/components/MenuButton/MenuButton.d.ts.map +1 -1
- package/dist/components/MenuButton/index.js +1 -1
- package/dist/components/MeshEditor/MeshEditor.d.ts +4 -3
- package/dist/components/MeshEditor/MeshEditor.d.ts.map +1 -1
- package/dist/components/MeshEditor/MeshHandles.d.ts +38 -0
- package/dist/components/MeshEditor/MeshHandles.d.ts.map +1 -0
- package/dist/components/MeshEditor/index.d.ts +2 -0
- package/dist/components/MeshEditor/index.d.ts.map +1 -1
- package/dist/components/MeshEditor/index.js +2 -2
- package/dist/components/NumberField/NumberField.d.ts +1 -1
- package/dist/components/NumberField/NumberField.d.ts.map +1 -1
- package/dist/components/NumberField/UnitField.d.ts +20 -7
- package/dist/components/NumberField/UnitField.d.ts.map +1 -1
- package/dist/components/NumberField/index.js +1 -1
- package/dist/components/OptionsBar/OptionsBar.d.ts.map +1 -1
- package/dist/components/OptionsBar/index.js +1 -1
- package/dist/components/PaintField/PaintField.d.ts.map +1 -1
- package/dist/components/PaintField/index.js +1 -1
- package/dist/components/PaintInput/PaintInput.d.ts.map +1 -1
- package/dist/components/PaintInput/index.js +1 -1
- package/dist/components/PatternPicker/PatternPicker.d.ts +6 -5
- package/dist/components/PatternPicker/PatternPicker.d.ts.map +1 -1
- package/dist/components/PatternPicker/index.js +1 -1
- package/dist/components/Plot2D/index.js +1 -1
- package/dist/components/PointPlotter/index.js +1 -1
- package/dist/components/Powerline/index.d.ts +1 -1
- package/dist/components/Powerline/index.d.ts.map +1 -1
- package/dist/components/Powerline/index.js +2 -2
- package/dist/components/Prefs/PrefsForm.d.ts +8 -0
- package/dist/components/Prefs/PrefsForm.d.ts.map +1 -1
- package/dist/components/Prefs/PrefsRail.d.ts +3 -2
- package/dist/components/Prefs/PrefsRail.d.ts.map +1 -1
- package/dist/components/Prefs/PrefsRow.d.ts.map +1 -1
- package/dist/components/Prefs/index.d.ts +1 -1
- package/dist/components/Prefs/index.d.ts.map +1 -1
- package/dist/components/Prefs/index.js +2 -2
- package/dist/components/Prefs/prefField.d.ts +13 -0
- package/dist/components/Prefs/prefField.d.ts.map +1 -1
- package/dist/components/Prefs/schema.d.ts +2 -2
- package/dist/components/Prefs/schema.d.ts.map +1 -1
- package/dist/components/Properties/PropertyField.d.ts +35 -32
- package/dist/components/Properties/PropertyField.d.ts.map +1 -1
- package/dist/components/Properties/PropertyGroup.d.ts.map +1 -1
- package/dist/components/Properties/PropertyPanel.d.ts +1 -8
- package/dist/components/Properties/PropertyPanel.d.ts.map +1 -1
- package/dist/components/Properties/index.d.ts +1 -1
- package/dist/components/Properties/index.d.ts.map +1 -1
- package/dist/components/Properties/index.js +3 -3
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/RangeSlider/index.js +1 -1
- package/dist/components/RecentColors/RecentColorsProvider.d.ts +24 -0
- package/dist/components/RecentColors/RecentColorsProvider.d.ts.map +1 -0
- package/dist/components/RecentColors/index.d.ts +5 -0
- package/dist/components/RecentColors/index.d.ts.map +1 -0
- package/dist/components/RecentColors/index.js +2 -0
- package/dist/components/RecentColors/recentColors.d.ts +39 -0
- package/dist/components/RecentColors/recentColors.d.ts.map +1 -0
- package/dist/components/ResizeHandle/ResizeHandle.d.ts.map +1 -1
- package/dist/components/ResizeHandle/index.js +1 -1
- package/dist/components/Select/Select.d.ts +6 -2
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/SelectionPanel/SelectionPanel.d.ts.map +1 -1
- package/dist/components/SelectionPanel/index.js +2 -2
- package/dist/components/SelectionPanel/renderLeaf.d.ts +17 -0
- package/dist/components/SelectionPanel/renderLeaf.d.ts.map +1 -1
- package/dist/components/SidebarPanel/SidebarPanel.d.ts +1 -1
- package/dist/components/SidebarPanel/SidebarPanel.d.ts.map +1 -1
- package/dist/components/SidebarPanel/index.js +1 -1
- package/dist/components/Slider/Slider.d.ts +19 -2
- package/dist/components/Slider/Slider.d.ts.map +1 -1
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/StatusBar/index.js +1 -1
- package/dist/components/SwatchGrid/SwatchGrid.d.ts.map +1 -1
- package/dist/components/SwatchGrid/index.js +1 -1
- package/dist/components/SwatchStrip/SwatchStrip.d.ts +44 -0
- package/dist/components/SwatchStrip/SwatchStrip.d.ts.map +1 -0
- package/dist/components/SwatchStrip/index.d.ts +5 -0
- package/dist/components/SwatchStrip/index.d.ts.map +1 -0
- package/dist/components/SwatchStrip/index.js +2 -0
- package/dist/components/SwatchStrip/palettes.d.ts +21 -0
- package/dist/components/SwatchStrip/palettes.d.ts.map +1 -0
- package/dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +38 -0
- package/dist/components/ThemeSwitcher/ThemeSwitcher.d.ts.map +1 -0
- package/dist/components/ThemeSwitcher/index.d.ts +3 -0
- package/dist/components/ThemeSwitcher/index.d.ts.map +1 -0
- package/dist/components/ThemeSwitcher/index.js +2 -0
- package/dist/components/Timeline/AnimatedTimeline.d.ts +1 -0
- package/dist/components/Timeline/AnimatedTimeline.d.ts.map +1 -1
- package/dist/components/Timeline/EasingPicker.d.ts +3 -0
- package/dist/components/Timeline/EasingPicker.d.ts.map +1 -1
- package/dist/components/Timeline/LaneGraph.d.ts +1 -1
- package/dist/components/Timeline/LaneGraph.d.ts.map +1 -1
- package/dist/components/Timeline/Timeline.d.ts +10 -1
- package/dist/components/Timeline/Timeline.d.ts.map +1 -1
- package/dist/components/Timeline/Transport.d.ts +6 -0
- package/dist/components/Timeline/Transport.d.ts.map +1 -1
- package/dist/components/Timeline/index.js +1 -1
- package/dist/components/Timeline/keys.d.ts +1 -0
- package/dist/components/Timeline/keys.d.ts.map +1 -1
- package/dist/components/Toast/Toast.d.ts +12 -3
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/ToggleBar/ToggleBar.d.ts.map +1 -1
- package/dist/components/ToggleBar/index.js +1 -1
- package/dist/components/TokenPanel/index.js +1 -1
- package/dist/components/TokenPanel/tokenTypes.d.ts +1 -0
- package/dist/components/TokenPanel/tokenTypes.d.ts.map +1 -1
- package/dist/components/ToolButton/ToolButton.d.ts +1 -10
- package/dist/components/ToolButton/ToolButton.d.ts.map +1 -1
- package/dist/components/ToolButton/index.js +1 -1
- package/dist/components/ToolOptionsBar/index.js +1 -1
- package/dist/components/ToolPalette/ToolPalette.d.ts +2 -1
- package/dist/components/ToolPalette/ToolPalette.d.ts.map +1 -1
- package/dist/components/ToolPalette/formatShortcut.d.ts +2 -0
- package/dist/components/ToolPalette/formatShortcut.d.ts.map +1 -1
- package/dist/components/ToolPalette/index.js +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/Tree/Tree.d.ts +27 -26
- package/dist/components/Tree/Tree.d.ts.map +1 -1
- package/dist/components/Tree/index.js +1 -1
- package/dist/components/spin.d.ts +16 -0
- package/dist/components/spin.d.ts.map +1 -0
- package/dist/components/stanceSurfaces.d.ts.map +1 -1
- package/dist/icons/index.d.ts +51 -2
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/paths.d.ts +12 -0
- package/dist/icons/paths.d.ts.map +1 -1
- package/dist/index.d.ts +9 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +98 -111
- package/dist/index.js.map +1 -1
- package/dist/overlays/portalHost.d.ts +6 -0
- package/dist/overlays/portalHost.d.ts.map +1 -1
- package/dist/paintGradientTrack.d.ts +5 -2
- package/dist/paintGradientTrack.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/useAsyncOptions.d.ts.map +1 -1
- package/dist/useReorderDragList.d.ts +1 -1
- package/dist/useReorderDragList.d.ts.map +1 -1
- package/dist/useRovingTabIndex.d.ts +40 -39
- package/dist/useRovingTabIndex.d.ts.map +1 -1
- package/package.json +9 -8
- package/dist/chunks/ActionBar-DCq16yFA.js +0 -57
- package/dist/chunks/ActionBar-DCq16yFA.js.map +0 -1
- package/dist/chunks/Badge-CyAIZSDo.js.map +0 -1
- package/dist/chunks/BandEditor-Dhm_Xrlr.js +0 -248
- package/dist/chunks/BandEditor-Dhm_Xrlr.js.map +0 -1
- package/dist/chunks/Callout-yEn9iPlh.js +0 -119
- package/dist/chunks/Callout-yEn9iPlh.js.map +0 -1
- package/dist/chunks/Checkbox-DHXTUHO9.js +0 -47
- package/dist/chunks/Checkbox-DHXTUHO9.js.map +0 -1
- package/dist/chunks/ColorField-BcMcW8Sa.js +0 -60
- package/dist/chunks/ColorField-BcMcW8Sa.js.map +0 -1
- package/dist/chunks/ComboBox-DpT8lc3p.js +0 -138
- package/dist/chunks/ComboBox-DpT8lc3p.js.map +0 -1
- package/dist/chunks/CurveEditor-BDJXjEvK.js.map +0 -1
- package/dist/chunks/DataGrid-D-dZj1BD.js.map +0 -1
- package/dist/chunks/DetailList-BMER1LUZ.js +0 -43
- package/dist/chunks/DetailList-BMER1LUZ.js.map +0 -1
- package/dist/chunks/Dialog-BWyNMgpf.js +0 -66
- package/dist/chunks/Dialog-BWyNMgpf.js.map +0 -1
- package/dist/chunks/Disclosure-0G0uh2fa.js.map +0 -1
- package/dist/chunks/DragHandleGlyph-Dr7Fgo0I.js.map +0 -1
- package/dist/chunks/Field--onYxXTF.js +0 -32
- package/dist/chunks/Field--onYxXTF.js.map +0 -1
- package/dist/chunks/FillStrokeSwatch-DNb0KXPk.js +0 -111
- package/dist/chunks/FillStrokeSwatch-DNb0KXPk.js.map +0 -1
- package/dist/chunks/FontFamilySelect-DXlMKWfK.js.map +0 -1
- package/dist/chunks/GradientEditor-B3a-MsVJ.js +0 -335
- package/dist/chunks/GradientEditor-B3a-MsVJ.js.map +0 -1
- package/dist/chunks/Icon-Cgzy8VgC.js.map +0 -1
- package/dist/chunks/InlineRange-eOj6JpJl.js.map +0 -1
- package/dist/chunks/Input-CHmkfYaD.js.map +0 -1
- package/dist/chunks/ItemList-Cm-HUWCi.js.map +0 -1
- package/dist/chunks/Jog-DESxZ44P.js.map +0 -1
- package/dist/chunks/Keycaps-C0H_v2gO.js.map +0 -1
- package/dist/chunks/LayerList-nz-QYvTF.js.map +0 -1
- package/dist/chunks/ListEditor-BQ6AV3Ac.js +0 -74
- package/dist/chunks/ListEditor-BQ6AV3Ac.js.map +0 -1
- package/dist/chunks/MenuButton-DtaGenKf.js +0 -70
- package/dist/chunks/MenuButton-DtaGenKf.js.map +0 -1
- package/dist/chunks/MeshEditor-qqGc6hlD.js +0 -87
- package/dist/chunks/MeshEditor-qqGc6hlD.js.map +0 -1
- package/dist/chunks/NumberField-CwJOMmQR.js +0 -117
- package/dist/chunks/NumberField-CwJOMmQR.js.map +0 -1
- package/dist/chunks/PaintField-DaJukRc6.js +0 -62
- package/dist/chunks/PaintField-DaJukRc6.js.map +0 -1
- package/dist/chunks/PaintInput-Byhna3H-.js +0 -131
- package/dist/chunks/PaintInput-Byhna3H-.js.map +0 -1
- package/dist/chunks/PatternPicker-B-cUt-JT.js +0 -93
- package/dist/chunks/PatternPicker-B-cUt-JT.js.map +0 -1
- package/dist/chunks/Plot2D-CTXHkL5p.js.map +0 -1
- package/dist/chunks/Prefs-DpqFKiwY.js.map +0 -1
- package/dist/chunks/Properties-D_KzDN9K.js.map +0 -1
- package/dist/chunks/PropertyField-DGCecAnV.js +0 -758
- package/dist/chunks/PropertyField-DGCecAnV.js.map +0 -1
- package/dist/chunks/RangeSlider-BKRRTPTZ.js.map +0 -1
- package/dist/chunks/ResizeHandle-BKT0XYpx.js +0 -79
- package/dist/chunks/ResizeHandle-BKT0XYpx.js.map +0 -1
- package/dist/chunks/Select-CzyfaXzp.js +0 -225
- package/dist/chunks/Select-CzyfaXzp.js.map +0 -1
- package/dist/chunks/SelectionPanel-BgUM1h03.js +0 -103
- package/dist/chunks/SelectionPanel-BgUM1h03.js.map +0 -1
- package/dist/chunks/SidebarPanel-aoIqxbtq.js +0 -55
- package/dist/chunks/SidebarPanel-aoIqxbtq.js.map +0 -1
- package/dist/chunks/Slider-CFwQYQ10.js +0 -383
- package/dist/chunks/Slider-CFwQYQ10.js.map +0 -1
- package/dist/chunks/StatusBar-DzoPDY4k.js.map +0 -1
- package/dist/chunks/SwatchGrid-BARC3rnF.js +0 -73
- package/dist/chunks/SwatchGrid-BARC3rnF.js.map +0 -1
- package/dist/chunks/Timeline--58F7MED.js.map +0 -1
- package/dist/chunks/Toast-DNBb-24H.js +0 -128
- package/dist/chunks/Toast-DNBb-24H.js.map +0 -1
- package/dist/chunks/ToggleBar-DTjGeS0Q.js.map +0 -1
- package/dist/chunks/TokenPanel-CMq7uydV.js.map +0 -1
- package/dist/chunks/ToolButton-CR4sQlxF.js.map +0 -1
- package/dist/chunks/ToolOptionsBar-CtzTlaN2.js.map +0 -1
- package/dist/chunks/ToolPalette-CKG9qY6P.js.map +0 -1
- package/dist/chunks/Tree-DVOtc9R5.js.map +0 -1
- package/dist/chunks/createKeyframeLayer-Czj6Y235.js.map +0 -1
- package/dist/chunks/icons-Dk8SRS8g.js.map +0 -1
- package/dist/chunks/model-Du7Lta4C.js +0 -360
- package/dist/chunks/model-Du7Lta4C.js.map +0 -1
- package/dist/chunks/number-D3NEx_8r.js +0 -89
- package/dist/chunks/number-D3NEx_8r.js.map +0 -1
- package/dist/chunks/portalHost-yTOVuCej.js.map +0 -1
- package/dist/chunks/prefField-Dnl7nmjQ.js +0 -197
- package/dist/chunks/prefField-Dnl7nmjQ.js.map +0 -1
- package/dist/chunks/segmentedControl.module-Bv7DEg8f.js +0 -11
- package/dist/chunks/segmentedControl.module-Bv7DEg8f.js.map +0 -1
- package/dist/chunks/useReorderDragList-B_-5L5Gu.js +0 -131
- package/dist/chunks/useReorderDragList-B_-5L5Gu.js.map +0 -1
- package/dist/chunks/useRovingTabIndex-Bp_hYm_h.js +0 -65
- package/dist/chunks/useRovingTabIndex-Bp_hYm_h.js.map +0 -1
- package/dist/components/DragHandleGlyph/DragHandleGlyph.d.ts.map +0 -1
- package/dist/components/DragHandleGlyph/index.d.ts +0 -3
- package/dist/components/DragHandleGlyph/index.d.ts.map +0 -1
- package/dist/components/DragHandleGlyph/index.js +0 -2
- package/dist/format/number.d.ts +0 -56
- package/dist/format/number.d.ts.map +0 -1
- package/dist/icons/ShapeKindIcon.d.ts +0 -10
- package/dist/icons/ShapeKindIcon.d.ts.map +0 -1
|
@@ -1,68 +1,69 @@
|
|
|
1
|
-
import { rt as e, st as t } from "./icons-
|
|
2
|
-
import { n } from "./Disclosure-
|
|
3
|
-
import { r } from "./Plot2D-
|
|
4
|
-
import { i, n as a, t as o } from "./createKeyframeLayer-
|
|
1
|
+
import { rt as e, st as t } from "./icons-Dr2-r30x.js";
|
|
2
|
+
import { n } from "./Disclosure-Ch2KxYuB.js";
|
|
3
|
+
import { r } from "./Plot2D-BHNbgCAl.js";
|
|
4
|
+
import { i, n as a, t as o } from "./createKeyframeLayer-BTa4LyJE.js";
|
|
5
5
|
import { t as s } from "./snap-DRjbOiG9.js";
|
|
6
|
-
import { t as c } from "./DetentSlider-
|
|
7
|
-
import { EASINGS as l, openPointerSession as u, resolveEasing as d, sampleTrack as f,
|
|
8
|
-
import { Fragment as
|
|
9
|
-
import { useCallback as
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
6
|
+
import { t as c } from "./DetentSlider-Bh7EpMqT.js";
|
|
7
|
+
import { EASINGS as l, openPointerSession as u, resolveEasing as d, sampleTrack as f, useLatest as p, useVisibleRaf as m } from "@weasel-js/core";
|
|
8
|
+
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
9
|
+
import { useCallback as v, useEffect as y, useLayoutEffect as b, useMemo as x, useReducer as S, useRef as C, useState as w } from "react";
|
|
10
|
+
import { multiplier as T, qty as E } from "@weasel-js/quantity";
|
|
11
|
+
var D = {
|
|
12
|
+
ruler: "_ruler_hovf2_1",
|
|
13
|
+
tick: "_tick_hovf2_11",
|
|
14
|
+
playhead: "_playhead_hovf2_29",
|
|
15
|
+
lane: "_lane_hovf2_38",
|
|
16
|
+
laneLabel: "_laneLabel_hovf2_45",
|
|
17
|
+
disclosure: "_disclosure_hovf2_65",
|
|
18
|
+
laneTrack: "_laneTrack_hovf2_67",
|
|
19
|
+
key: "_key_hovf2_74",
|
|
20
|
+
eventMark: "_eventMark_hovf2_74",
|
|
21
|
+
keyGhost: "_keyGhost_hovf2_94",
|
|
22
|
+
eventGhost: "_eventGhost_hovf2_94",
|
|
23
|
+
graphHost: "_graphHost_hovf2_111",
|
|
24
|
+
graph: "_graph_hovf2_111",
|
|
25
|
+
nestedBar: "_nestedBar_hovf2_130",
|
|
26
|
+
transport: "_transport_hovf2_139",
|
|
27
|
+
transportButton: "_transportButton_hovf2_148",
|
|
28
|
+
transportRow: "_transportRow_hovf2_175",
|
|
29
|
+
time: "_time_hovf2_193",
|
|
30
|
+
rate: "_rate_hovf2_200",
|
|
31
|
+
rateSlider: "_rateSlider_hovf2_201",
|
|
32
|
+
rateReadout: "_rateReadout_hovf2_205",
|
|
33
|
+
root: "_root_hovf2_212",
|
|
34
|
+
label: "_label_hovf2_227",
|
|
35
|
+
body: "_body_hovf2_229",
|
|
36
|
+
gutter: "_gutter_hovf2_46",
|
|
37
|
+
rulerWrap: "_rulerWrap_hovf2_231",
|
|
38
|
+
lanes: "_lanes_hovf2_233",
|
|
39
|
+
inspector: "_inspector_hovf2_240",
|
|
40
|
+
segment: "_segment_hovf2_249",
|
|
41
|
+
easingPicker: "_easingPicker_hovf2_259",
|
|
42
|
+
easingLabel: "_easingLabel_hovf2_260",
|
|
43
|
+
easingPreview: "_easingPreview_hovf2_262"
|
|
43
44
|
};
|
|
44
45
|
//#endregion
|
|
45
46
|
//#region src/components/Timeline/easingSpec.ts
|
|
46
|
-
function
|
|
47
|
+
function O(e) {
|
|
47
48
|
return typeof e == "object" && e && "bezier" in e ? e.bezier : null;
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
-
return e === void 0 ? null :
|
|
50
|
+
function k(e) {
|
|
51
|
+
return e === void 0 ? null : O(e);
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
+
function A(e) {
|
|
53
54
|
if (e === void 0) return "linear";
|
|
54
55
|
if (typeof e == "string") return e;
|
|
55
|
-
let t =
|
|
56
|
+
let t = O(e);
|
|
56
57
|
if (t) return `cubic-bezier(${t.join(", ")})`;
|
|
57
58
|
for (let [t, n] of Object.entries(l)) if (n === e) return t;
|
|
58
59
|
return "custom";
|
|
59
60
|
}
|
|
60
|
-
function
|
|
61
|
+
function j(e, t) {
|
|
61
62
|
let n = d(e), r = Array(t), i = t - 1;
|
|
62
63
|
for (let e = 0; e < t; e++) r[e] = n(i === 0 ? 0 : e / i);
|
|
63
64
|
return r;
|
|
64
65
|
}
|
|
65
|
-
var
|
|
66
|
+
var M = Object.keys(l), N = 24, P = {
|
|
66
67
|
linear: [
|
|
67
68
|
0,
|
|
68
69
|
0,
|
|
@@ -123,50 +124,50 @@ var k = Object.keys(l), A = 24, j = {
|
|
|
123
124
|
.63,
|
|
124
125
|
1
|
|
125
126
|
]
|
|
126
|
-
},
|
|
127
|
+
}, F = [
|
|
127
128
|
.25,
|
|
128
129
|
.1,
|
|
129
130
|
.25,
|
|
130
131
|
1
|
|
131
132
|
];
|
|
132
|
-
function
|
|
133
|
-
let { value: t, onChange: n } = e, r =
|
|
134
|
-
return /* @__PURE__ */
|
|
135
|
-
className:
|
|
133
|
+
function I(e) {
|
|
134
|
+
let { value: t, onChange: n } = e, r = k(t), i = A(t), a = r === null && M.includes(i), o = r === null ? a ? i : "linear" : "custom", s = j(t, N).map((e, t) => `${t / 23 * 100},${100 - e * 100}`).join(" ");
|
|
135
|
+
return /* @__PURE__ */ _("div", {
|
|
136
|
+
className: D.easingPicker,
|
|
136
137
|
children: [
|
|
137
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ _("label", { children: ["Easing", /* @__PURE__ */ _("select", {
|
|
138
139
|
value: o,
|
|
139
140
|
onChange: (e) => n(e.target.value === "linear" ? void 0 : e.target.value),
|
|
140
141
|
children: [
|
|
141
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ g("option", {
|
|
142
143
|
value: "linear",
|
|
143
144
|
children: "linear"
|
|
144
145
|
}),
|
|
145
|
-
|
|
146
|
+
M.filter((e) => e !== "linear").map((e) => /* @__PURE__ */ g("option", {
|
|
146
147
|
value: e,
|
|
147
148
|
children: e
|
|
148
149
|
}, e)),
|
|
149
|
-
r === null ? null : /* @__PURE__ */
|
|
150
|
+
r === null ? null : /* @__PURE__ */ g("option", {
|
|
150
151
|
value: "custom",
|
|
151
152
|
children: "custom"
|
|
152
153
|
})
|
|
153
154
|
]
|
|
154
155
|
})] }),
|
|
155
|
-
r === null ? /* @__PURE__ */
|
|
156
|
+
r === null ? /* @__PURE__ */ g("button", {
|
|
156
157
|
type: "button",
|
|
157
|
-
className:
|
|
158
|
-
onClick: () => n({ bezier:
|
|
158
|
+
className: D.transportButton,
|
|
159
|
+
onClick: () => n({ bezier: P[o] ?? F }),
|
|
159
160
|
children: "Convert to bezier"
|
|
160
|
-
}) : /* @__PURE__ */
|
|
161
|
-
className:
|
|
161
|
+
}) : /* @__PURE__ */ g("span", {
|
|
162
|
+
className: D.easingLabel,
|
|
162
163
|
children: i
|
|
163
164
|
}),
|
|
164
|
-
/* @__PURE__ */
|
|
165
|
-
className:
|
|
165
|
+
/* @__PURE__ */ g("svg", {
|
|
166
|
+
className: D.easingPreview,
|
|
166
167
|
"data-testid": "easing-preview",
|
|
167
168
|
viewBox: "0 0 100 100",
|
|
168
169
|
preserveAspectRatio: "none",
|
|
169
|
-
children: /* @__PURE__ */
|
|
170
|
+
children: /* @__PURE__ */ g("polyline", {
|
|
170
171
|
points: s,
|
|
171
172
|
vectorEffect: "non-scaling-stroke"
|
|
172
173
|
})
|
|
@@ -176,8 +177,8 @@ function N(e) {
|
|
|
176
177
|
}
|
|
177
178
|
//#endregion
|
|
178
179
|
//#region src/components/Timeline/timeScale.ts
|
|
179
|
-
var
|
|
180
|
-
function
|
|
180
|
+
var L = 1;
|
|
181
|
+
function R(e, t) {
|
|
181
182
|
let n = e.to - e.from, r = n === 0 ? 0 : t / n, i = t === 0 ? 0 : n / t;
|
|
182
183
|
return {
|
|
183
184
|
window: e,
|
|
@@ -186,36 +187,36 @@ function F(e, t) {
|
|
|
186
187
|
toMs: (t) => e.from + t * i
|
|
187
188
|
};
|
|
188
189
|
}
|
|
189
|
-
function
|
|
190
|
+
function ee(e, t) {
|
|
190
191
|
let n = e.to - e.from;
|
|
191
192
|
return n === 0 ? 0 : (t - e.from) / n;
|
|
192
193
|
}
|
|
193
|
-
function
|
|
194
|
-
return `${
|
|
194
|
+
function z(e, t) {
|
|
195
|
+
return `${ee(e, t) * 100}%`;
|
|
195
196
|
}
|
|
196
|
-
function
|
|
197
|
+
function te(e, t) {
|
|
197
198
|
let n = e.to - e.from;
|
|
198
199
|
return n === 0 ? 0 : t / n;
|
|
199
200
|
}
|
|
200
|
-
function z(e, t) {
|
|
201
|
-
return `${R(e, t) * 100}%`;
|
|
202
|
-
}
|
|
203
201
|
function B(e, t) {
|
|
202
|
+
return `${te(e, t) * 100}%`;
|
|
203
|
+
}
|
|
204
|
+
function V(e, t) {
|
|
204
205
|
let n = Math.min(e.to - e.from, t.to - t.from), r = e.from;
|
|
205
206
|
return r < t.from && (r = t.from), r + n > t.to && (r = t.to - n), {
|
|
206
207
|
from: r,
|
|
207
208
|
to: r + n
|
|
208
209
|
};
|
|
209
210
|
}
|
|
210
|
-
function
|
|
211
|
-
let i = e.to - e.from, a = r.to - r.from, o = Math.min(a, Math.max(
|
|
212
|
-
return
|
|
211
|
+
function ne(e, t, n, r) {
|
|
212
|
+
let i = e.to - e.from, a = r.to - r.from, o = Math.min(a, Math.max(L, i * n)), s = i === 0 ? .5 : (t - e.from) / i;
|
|
213
|
+
return V({
|
|
213
214
|
from: t - s * o,
|
|
214
215
|
to: t + (1 - s) * o
|
|
215
216
|
}, r);
|
|
216
217
|
}
|
|
217
|
-
function
|
|
218
|
-
return
|
|
218
|
+
function re(e, t, n) {
|
|
219
|
+
return V({
|
|
219
220
|
from: e.from + t,
|
|
220
221
|
to: e.to + t
|
|
221
222
|
}, n);
|
|
@@ -229,22 +230,22 @@ function H(e, t, n) {
|
|
|
229
230
|
}
|
|
230
231
|
//#endregion
|
|
231
232
|
//#region src/components/Timeline/LaneGraph.tsx
|
|
232
|
-
var
|
|
233
|
-
function
|
|
234
|
-
let t = e.map((e) => e.value), n = Math.min(...t), r = Math.max(...t) - n || 1, i = r *
|
|
233
|
+
var ie = 8, ae = 10;
|
|
234
|
+
function oe(e) {
|
|
235
|
+
let t = e.map((e) => e.value), n = Math.min(...t), r = Math.max(...t) - n || 1, i = r * ie / 84;
|
|
235
236
|
return [n - i, n + r + i];
|
|
236
237
|
}
|
|
237
|
-
function
|
|
238
|
-
let { keys: t, label: n, window: r, offset: s, snapTimes: c, selection: l, selectedSegment: u, onSelect: d, onSelectSegment: f, onKeysInput:
|
|
238
|
+
function se(e) {
|
|
239
|
+
let { keys: t, label: n, window: r, offset: s, snapTimes: c, selection: l, selectedSegment: u, onSelect: d, onSelectSegment: f, onKeysInput: m, onKeysCommit: h } = e, _ = C(null), [v, y] = w({
|
|
239
240
|
width: 0,
|
|
240
241
|
height: 0
|
|
241
242
|
});
|
|
242
|
-
|
|
243
|
-
let e =
|
|
243
|
+
b(() => {
|
|
244
|
+
let e = _.current;
|
|
244
245
|
if (!e) return;
|
|
245
246
|
let t = () => {
|
|
246
247
|
let t = e.getBoundingClientRect();
|
|
247
|
-
|
|
248
|
+
y((e) => e.width === t.width && e.height === t.height ? e : {
|
|
248
249
|
width: t.width,
|
|
249
250
|
height: t.height
|
|
250
251
|
});
|
|
@@ -253,18 +254,18 @@ function ie(e) {
|
|
|
253
254
|
let n = new ResizeObserver(t);
|
|
254
255
|
return n.observe(e), () => n.disconnect();
|
|
255
256
|
}, []);
|
|
256
|
-
let
|
|
257
|
+
let S = x(() => a({
|
|
257
258
|
id: "keys",
|
|
258
259
|
label: n,
|
|
259
260
|
formatX: (e) => `${Math.round(e)} ms`,
|
|
260
261
|
snapX: c.map((e) => e - s),
|
|
261
262
|
xClamp: [0, Infinity],
|
|
262
|
-
step: { x:
|
|
263
|
+
step: { x: ae }
|
|
263
264
|
}), [
|
|
264
265
|
n,
|
|
265
266
|
c,
|
|
266
267
|
s
|
|
267
|
-
]), T =
|
|
268
|
+
]), T = x(() => ({
|
|
268
269
|
keys: t,
|
|
269
270
|
selectedKey: l,
|
|
270
271
|
selectedSegment: u,
|
|
@@ -273,42 +274,40 @@ function ie(e) {
|
|
|
273
274
|
t,
|
|
274
275
|
l,
|
|
275
276
|
u
|
|
276
|
-
]), [E,
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
}], [x, O]), j = (e, t) => {
|
|
282
|
-
let n = t, r = k.current;
|
|
277
|
+
]), [E, O] = w(null), k = E ?? T, A = p(k), j = x(() => [{
|
|
278
|
+
layer: S,
|
|
279
|
+
state: k
|
|
280
|
+
}], [S, k]), M = (e, t) => {
|
|
281
|
+
let n = t, r = A.current;
|
|
283
282
|
if (n.selectedKey !== null && n.selectedKey !== r.selectedKey && d(n.selectedKey), n.selectedSegment !== null && n.selectedSegment !== r.selectedSegment && f?.(n.selectedSegment), !n.drag) {
|
|
284
|
-
|
|
283
|
+
O(null);
|
|
285
284
|
return;
|
|
286
285
|
}
|
|
287
|
-
if (
|
|
286
|
+
if (O(n), n.drag.kind !== "key") return;
|
|
288
287
|
let i = o(n).keys;
|
|
289
|
-
i !== n.keys &&
|
|
290
|
-
},
|
|
291
|
-
|
|
288
|
+
i !== n.keys && m?.(i);
|
|
289
|
+
}, N = (e, t, n) => {
|
|
290
|
+
O(null);
|
|
292
291
|
let r = t;
|
|
293
|
-
r.keys !== n.keys &&
|
|
294
|
-
}, [
|
|
295
|
-
return /* @__PURE__ */
|
|
296
|
-
ref:
|
|
297
|
-
className:
|
|
298
|
-
children:
|
|
299
|
-
className:
|
|
292
|
+
r.keys !== n.keys && h(r.keys);
|
|
293
|
+
}, [P, F] = oe(k.keys), I = v.width > 0 ? H(r, v.width, 64) : [];
|
|
294
|
+
return /* @__PURE__ */ g("div", {
|
|
295
|
+
ref: _,
|
|
296
|
+
className: D.graphHost,
|
|
297
|
+
children: v.width > 0 && v.height > 0 ? /* @__PURE__ */ g(i, {
|
|
298
|
+
className: D.graph,
|
|
300
299
|
"aria-label": `${n} graph`,
|
|
301
|
-
layers:
|
|
302
|
-
onLayerChange:
|
|
303
|
-
onLayerCommit:
|
|
304
|
-
width:
|
|
305
|
-
height:
|
|
300
|
+
layers: j,
|
|
301
|
+
onLayerChange: M,
|
|
302
|
+
onLayerCommit: N,
|
|
303
|
+
width: v.width,
|
|
304
|
+
height: v.height,
|
|
306
305
|
xRange: [r.from - s, r.to - s],
|
|
307
|
-
yRange: [
|
|
306
|
+
yRange: [P, F],
|
|
308
307
|
grid: !1,
|
|
309
308
|
axes: !1,
|
|
310
309
|
xTicks: {
|
|
311
|
-
values:
|
|
310
|
+
values: I.map((e) => e - s),
|
|
312
311
|
labels: !1
|
|
313
312
|
},
|
|
314
313
|
yTicks: {
|
|
@@ -321,36 +320,36 @@ function ie(e) {
|
|
|
321
320
|
}
|
|
322
321
|
//#endregion
|
|
323
322
|
//#region src/components/Timeline/Lane.tsx
|
|
324
|
-
var
|
|
325
|
-
function
|
|
323
|
+
var ce = 10;
|
|
324
|
+
function le(e) {
|
|
326
325
|
return e.kind === "sampled" ? e.track.keys.map((e) => e.t) : e.kind === "event" ? e.track.events.map((e) => e.t) : [];
|
|
327
326
|
}
|
|
328
|
-
function
|
|
329
|
-
let { row: t, window: r, mode: i, selection: a, onSelect: o, onKeyInput: c, onKeyCommit: l, onInsert: d, onToggleExpand: f, expanded: p, snapTimes:
|
|
330
|
-
|
|
331
|
-
|
|
327
|
+
function ue(e) {
|
|
328
|
+
let { row: t, window: r, mode: i, selection: a, onSelect: o, onKeyInput: c, onKeyCommit: l, onInsert: d, onToggleExpand: f, expanded: p, snapTimes: m, selectedSegment: v = null, onSelectSegment: b, onKeysInput: x, onKeysCommit: S } = e, T = C(null), E = C(null);
|
|
329
|
+
y(() => () => {
|
|
330
|
+
E.current?.cancel();
|
|
332
331
|
}, []);
|
|
333
|
-
let [O, k] =
|
|
334
|
-
let n =
|
|
335
|
-
return n ?
|
|
332
|
+
let [O, k] = w(null), A = (e) => z(r, e + t.offset), j = (e) => {
|
|
333
|
+
let n = T.current?.getBoundingClientRect();
|
|
334
|
+
return n ? R(r, n.width).toMs(e - n.left) - t.offset : r.from;
|
|
336
335
|
}, M = () => {
|
|
337
|
-
let e =
|
|
336
|
+
let e = T.current?.getBoundingClientRect().width ?? 0, t = R(r, e);
|
|
338
337
|
return t.toMs(6) - t.toMs(0);
|
|
339
|
-
}, N = i === "graph" && t.numeric, P = t.kind === "sampled" ? t.track.keys : [],
|
|
338
|
+
}, N = i === "graph" && t.numeric, P = t.kind === "sampled" ? t.track.keys : [], F = (e) => (n) => {
|
|
340
339
|
if (n.button !== 0) return;
|
|
341
340
|
n.stopPropagation(), o(e);
|
|
342
341
|
let r = (e) => {
|
|
343
342
|
let n = Math.max(0, j(e.clientX));
|
|
344
|
-
return e.altKey ? n : s(n + t.offset,
|
|
343
|
+
return e.altKey ? n : s(n + t.offset, m, M()) - t.offset;
|
|
345
344
|
};
|
|
346
345
|
k({
|
|
347
346
|
keyIndex: e,
|
|
348
|
-
t:
|
|
347
|
+
t: L[e]
|
|
349
348
|
});
|
|
350
349
|
let i = () => {
|
|
351
|
-
k(null),
|
|
350
|
+
k(null), E.current = null;
|
|
352
351
|
};
|
|
353
|
-
|
|
352
|
+
E.current?.cancel(), E.current = u(n.currentTarget, n, {
|
|
354
353
|
onMove: (t) => {
|
|
355
354
|
k({
|
|
356
355
|
keyIndex: e,
|
|
@@ -362,69 +361,69 @@ function se(e) {
|
|
|
362
361
|
},
|
|
363
362
|
onCancel: i
|
|
364
363
|
}, { capture: !1 });
|
|
365
|
-
},
|
|
366
|
-
let r =
|
|
364
|
+
}, I = (e, t) => (n) => {
|
|
365
|
+
let r = ce * (n.shiftKey ? 10 : 1);
|
|
367
366
|
n.key === "ArrowRight" && (n.preventDefault(), l(e, t + r)), n.key === "ArrowLeft" && (n.preventDefault(), l(e, Math.max(0, t - r)));
|
|
368
|
-
},
|
|
369
|
-
return /* @__PURE__ */
|
|
370
|
-
className:
|
|
367
|
+
}, L = le(t);
|
|
368
|
+
return /* @__PURE__ */ _("div", {
|
|
369
|
+
className: D.lane,
|
|
371
370
|
"data-depth": t.depth,
|
|
372
371
|
"data-mode": i,
|
|
373
372
|
"data-graph": N ? "true" : void 0,
|
|
374
|
-
children: [/* @__PURE__ */
|
|
375
|
-
className:
|
|
376
|
-
children: [t.kind === "timeline" ? /* @__PURE__ */
|
|
373
|
+
children: [/* @__PURE__ */ _("div", {
|
|
374
|
+
className: D.laneLabel,
|
|
375
|
+
children: [t.kind === "timeline" ? /* @__PURE__ */ g("span", {
|
|
377
376
|
role: "button",
|
|
378
377
|
tabIndex: 0,
|
|
379
378
|
"aria-expanded": p,
|
|
380
379
|
"data-testid": "timeline-disclosure",
|
|
381
|
-
className:
|
|
380
|
+
className: D.disclosure,
|
|
382
381
|
onClick: f,
|
|
383
382
|
onKeyDown: (e) => {
|
|
384
383
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), f());
|
|
385
384
|
},
|
|
386
|
-
children: /* @__PURE__ */
|
|
385
|
+
children: /* @__PURE__ */ g(n, { open: p })
|
|
387
386
|
}) : null, t.label]
|
|
388
|
-
}), /* @__PURE__ */
|
|
389
|
-
className:
|
|
390
|
-
ref:
|
|
387
|
+
}), /* @__PURE__ */ g("div", {
|
|
388
|
+
className: D.laneTrack,
|
|
389
|
+
ref: T,
|
|
391
390
|
"data-testid": "timeline-lane-track",
|
|
392
391
|
onDoubleClick: (e) => {
|
|
393
392
|
t.kind === "sampled" && d(Math.max(0, j(e.clientX)));
|
|
394
393
|
},
|
|
395
|
-
children: N ? /* @__PURE__ */
|
|
394
|
+
children: N ? /* @__PURE__ */ g(se, {
|
|
396
395
|
keys: P,
|
|
397
396
|
label: t.label,
|
|
398
397
|
window: r,
|
|
399
398
|
offset: t.offset,
|
|
400
|
-
snapTimes:
|
|
399
|
+
snapTimes: m,
|
|
401
400
|
selection: a,
|
|
402
|
-
selectedSegment:
|
|
401
|
+
selectedSegment: v,
|
|
403
402
|
onSelect: o,
|
|
404
403
|
onSelectSegment: b,
|
|
405
404
|
onKeysInput: x,
|
|
406
|
-
onKeysCommit: (e) =>
|
|
407
|
-
}) : /* @__PURE__ */
|
|
408
|
-
t.kind === "timeline" ? /* @__PURE__ */
|
|
409
|
-
className:
|
|
405
|
+
onKeysCommit: (e) => S?.(e)
|
|
406
|
+
}) : /* @__PURE__ */ _(h, { children: [
|
|
407
|
+
t.kind === "timeline" ? /* @__PURE__ */ g("div", {
|
|
408
|
+
className: D.nestedBar,
|
|
410
409
|
"data-testid": "timeline-nested",
|
|
411
410
|
style: {
|
|
412
411
|
left: A(0),
|
|
413
|
-
width:
|
|
412
|
+
width: B(r, t.track.timeline.duration ?? 0)
|
|
414
413
|
}
|
|
415
414
|
}) : null,
|
|
416
415
|
t.kind === "sampled" ? P.slice(1).map((e, n) => {
|
|
417
416
|
let i = n + 1;
|
|
418
|
-
return /* @__PURE__ */
|
|
417
|
+
return /* @__PURE__ */ g("div", {
|
|
419
418
|
role: "button",
|
|
420
419
|
tabIndex: 0,
|
|
421
420
|
"aria-label": `${t.label} segment into ${Math.round(e.t)} ms`,
|
|
422
|
-
"aria-current":
|
|
421
|
+
"aria-current": v === i ? "true" : void 0,
|
|
423
422
|
"data-testid": "timeline-segment",
|
|
424
|
-
className:
|
|
423
|
+
className: D.segment,
|
|
425
424
|
style: {
|
|
426
425
|
left: A(P[i - 1].t),
|
|
427
|
-
width:
|
|
426
|
+
width: B(r, e.t - P[i - 1].t)
|
|
428
427
|
},
|
|
429
428
|
onClick: () => b?.(i),
|
|
430
429
|
onKeyDown: (e) => {
|
|
@@ -432,22 +431,22 @@ function se(e) {
|
|
|
432
431
|
}
|
|
433
432
|
}, `seg-${i}`);
|
|
434
433
|
}) : null,
|
|
435
|
-
|
|
434
|
+
L.map((e, n) => /* @__PURE__ */ g("div", {
|
|
436
435
|
role: "button",
|
|
437
436
|
tabIndex: 0,
|
|
438
437
|
"aria-label": `${t.label} key at ${Math.round(e)} ms`,
|
|
439
438
|
"aria-current": a === n ? "true" : void 0,
|
|
440
439
|
"data-testid": t.kind === "event" ? "timeline-event" : "timeline-key",
|
|
441
440
|
"data-dragging": O?.keyIndex === n ? "true" : void 0,
|
|
442
|
-
className: t.kind === "event" ?
|
|
441
|
+
className: t.kind === "event" ? D.eventMark : D.key,
|
|
443
442
|
style: { left: A(e) },
|
|
444
|
-
onPointerDown:
|
|
445
|
-
onKeyDown:
|
|
443
|
+
onPointerDown: F(n),
|
|
444
|
+
onKeyDown: I(n, e)
|
|
446
445
|
}, n)),
|
|
447
|
-
O ? /* @__PURE__ */
|
|
446
|
+
O ? /* @__PURE__ */ g("div", {
|
|
448
447
|
"aria-hidden": "true",
|
|
449
448
|
"data-testid": "timeline-key-ghost",
|
|
450
|
-
className: t.kind === "event" ?
|
|
449
|
+
className: t.kind === "event" ? D.eventGhost : D.keyGhost,
|
|
451
450
|
style: { left: A(O.t) }
|
|
452
451
|
}) : null
|
|
453
452
|
] })
|
|
@@ -456,17 +455,17 @@ function se(e) {
|
|
|
456
455
|
}
|
|
457
456
|
//#endregion
|
|
458
457
|
//#region src/components/Timeline/Ruler.tsx
|
|
459
|
-
var
|
|
460
|
-
function
|
|
458
|
+
var de = .0015;
|
|
459
|
+
function fe(e) {
|
|
461
460
|
return e >= 1e3 ? `${(e / 1e3).toFixed(e % 1e3 == 0 ? 0 : 2)}s` : `${Math.round(e)}ms`;
|
|
462
461
|
}
|
|
463
|
-
function
|
|
464
|
-
let { window: t, bounds: n, playhead: r, onScrub: i, onWindowChange: a } = e, o =
|
|
465
|
-
|
|
462
|
+
function pe(e) {
|
|
463
|
+
let { window: t, bounds: n, playhead: r, onScrub: i, onWindowChange: a } = e, o = C(null), s = C(null);
|
|
464
|
+
y(() => () => {
|
|
466
465
|
s.current?.cancel();
|
|
467
466
|
}, []);
|
|
468
|
-
let [c, l] =
|
|
469
|
-
|
|
467
|
+
let [c, l] = w(0);
|
|
468
|
+
b(() => {
|
|
470
469
|
let e = o.current;
|
|
471
470
|
if (!e) return;
|
|
472
471
|
let t = () => l(e.getBoundingClientRect().width);
|
|
@@ -477,7 +476,7 @@ function ue(e) {
|
|
|
477
476
|
let d = () => o.current?.getBoundingClientRect().width ?? 0, f = (e) => {
|
|
478
477
|
let n = o.current?.getBoundingClientRect();
|
|
479
478
|
if (!n) return t.from;
|
|
480
|
-
let r =
|
|
479
|
+
let r = R(t, n.width).toMs(e - n.left);
|
|
481
480
|
return Math.min(t.to, Math.max(t.from, r));
|
|
482
481
|
}, p = (e) => {
|
|
483
482
|
if (e.button !== 0) return;
|
|
@@ -493,86 +492,89 @@ function ue(e) {
|
|
|
493
492
|
onCancel: t
|
|
494
493
|
}, { capture: !1 });
|
|
495
494
|
}, m = (e) => {
|
|
496
|
-
if (e.ctrlKey) a(
|
|
495
|
+
if (e.ctrlKey) a(ne(t, f(e.clientX), Math.exp(e.deltaY * de), n));
|
|
497
496
|
else {
|
|
498
497
|
let r = d(), i = r === 0 ? 0 : (t.to - t.from) / r;
|
|
499
|
-
a(
|
|
498
|
+
a(re(t, e.deltaY * i, n));
|
|
500
499
|
}
|
|
501
|
-
},
|
|
502
|
-
return /* @__PURE__ */
|
|
503
|
-
className:
|
|
500
|
+
}, h = H(t, c, 64), v = (e) => z(t, e);
|
|
501
|
+
return /* @__PURE__ */ _("div", {
|
|
502
|
+
className: D.ruler,
|
|
504
503
|
ref: o,
|
|
505
504
|
"data-testid": "timeline-ruler",
|
|
506
505
|
onPointerDown: p,
|
|
507
506
|
onWheel: m,
|
|
508
|
-
children: [
|
|
509
|
-
className:
|
|
507
|
+
children: [h.map((e) => /* @__PURE__ */ g("span", {
|
|
508
|
+
className: D.tick,
|
|
510
509
|
"data-testid": "timeline-tick",
|
|
511
|
-
style: { left:
|
|
512
|
-
children:
|
|
513
|
-
}, e)), /* @__PURE__ */
|
|
514
|
-
className:
|
|
510
|
+
style: { left: v(e) },
|
|
511
|
+
children: fe(e)
|
|
512
|
+
}, e)), /* @__PURE__ */ g("div", {
|
|
513
|
+
className: D.playhead,
|
|
515
514
|
"data-testid": "timeline-playhead",
|
|
516
|
-
style: { left:
|
|
515
|
+
style: { left: v(r) }
|
|
517
516
|
})]
|
|
518
517
|
});
|
|
519
518
|
}
|
|
520
519
|
//#endregion
|
|
521
520
|
//#region src/components/Timeline/Transport.tsx
|
|
522
|
-
var U = [
|
|
521
|
+
var U = T({ symbol: "x" }), W = [
|
|
523
522
|
.25,
|
|
524
523
|
.5,
|
|
525
524
|
1,
|
|
526
525
|
2,
|
|
527
526
|
4
|
|
528
|
-
],
|
|
529
|
-
function
|
|
530
|
-
let { paused: r, loop: i, rate: a, playhead: o, duration: s, onPlay: l, onPause: u, onLoopChange: d, onRateChange: f } = n, p = i !== !1 && i !== 0, m =
|
|
531
|
-
return /* @__PURE__ */
|
|
532
|
-
className:
|
|
527
|
+
], G = (e) => `${(e / 1e3).toFixed(2)}s`;
|
|
528
|
+
function K(n) {
|
|
529
|
+
let { paused: r, loop: i, rate: a, playhead: o, duration: s, onPlay: l, onPause: u, onLoopChange: d, onRateChange: f } = n, p = i !== !1 && i !== 0, m = W.includes(a) ? W : [...W, a].sort((e, t) => e - t);
|
|
530
|
+
return /* @__PURE__ */ _("div", {
|
|
531
|
+
className: D.transport,
|
|
533
532
|
children: [
|
|
534
|
-
/* @__PURE__ */
|
|
533
|
+
/* @__PURE__ */ g("button", {
|
|
535
534
|
type: "button",
|
|
536
|
-
className:
|
|
535
|
+
className: D.transportButton,
|
|
537
536
|
"aria-label": r ? "Play" : "Pause",
|
|
538
537
|
onClick: r ? l : u,
|
|
539
|
-
children:
|
|
538
|
+
children: g(r ? t : e, { size: 14 })
|
|
540
539
|
}),
|
|
541
|
-
/* @__PURE__ */
|
|
540
|
+
/* @__PURE__ */ g("button", {
|
|
542
541
|
type: "button",
|
|
543
542
|
role: "switch",
|
|
544
543
|
"aria-checked": p,
|
|
545
544
|
"aria-label": "Loop",
|
|
546
|
-
className:
|
|
545
|
+
className: D.transportButton,
|
|
547
546
|
onClick: () => d(!p),
|
|
548
547
|
children: "⟲"
|
|
549
548
|
}),
|
|
550
|
-
/* @__PURE__ */
|
|
551
|
-
className:
|
|
549
|
+
/* @__PURE__ */ _("div", {
|
|
550
|
+
className: D.rate,
|
|
552
551
|
children: [
|
|
553
552
|
"Rate",
|
|
554
|
-
/* @__PURE__ */
|
|
553
|
+
/* @__PURE__ */ g(c, {
|
|
555
554
|
ariaLabel: "Rate",
|
|
556
|
-
items: m
|
|
555
|
+
items: m.map((e) => ({
|
|
556
|
+
value: e,
|
|
557
|
+
ariaLabel: E(e, U).spoken
|
|
558
|
+
})),
|
|
557
559
|
value: a,
|
|
558
560
|
onChange: f,
|
|
559
|
-
formatLabel: (e) =>
|
|
561
|
+
formatLabel: (e) => E(e, U).text,
|
|
560
562
|
labels: "none",
|
|
561
|
-
className:
|
|
563
|
+
className: D.rateSlider
|
|
562
564
|
}),
|
|
563
565
|
/* @__PURE__ */ g("span", {
|
|
564
|
-
className:
|
|
565
|
-
children:
|
|
566
|
+
className: D.rateReadout,
|
|
567
|
+
children: E(a, U).text
|
|
566
568
|
})
|
|
567
569
|
]
|
|
568
570
|
}),
|
|
569
|
-
/* @__PURE__ */
|
|
570
|
-
className:
|
|
571
|
+
/* @__PURE__ */ _("span", {
|
|
572
|
+
className: D.time,
|
|
571
573
|
"data-testid": "timeline-time",
|
|
572
574
|
children: [
|
|
573
|
-
|
|
575
|
+
G(o),
|
|
574
576
|
" / ",
|
|
575
|
-
|
|
577
|
+
G(s)
|
|
576
578
|
]
|
|
577
579
|
})
|
|
578
580
|
]
|
|
@@ -580,12 +582,12 @@ function G(n) {
|
|
|
580
582
|
}
|
|
581
583
|
//#endregion
|
|
582
584
|
//#region src/components/Timeline/lanes.ts
|
|
583
|
-
function
|
|
585
|
+
function me(e) {
|
|
584
586
|
if (e.kind !== "sampled") return !1;
|
|
585
587
|
let t = e.keys;
|
|
586
588
|
return t.length > 0 && t.every((e) => typeof e.value == "number");
|
|
587
589
|
}
|
|
588
|
-
function
|
|
590
|
+
function he(e, t) {
|
|
589
591
|
let n = [], r = (e, i, a, o) => {
|
|
590
592
|
e.forEach((e, s) => {
|
|
591
593
|
let c = [...i, s], l = c.join(".");
|
|
@@ -597,13 +599,13 @@ function fe(e, t) {
|
|
|
597
599
|
depth: a,
|
|
598
600
|
offset: o,
|
|
599
601
|
kind: e.kind,
|
|
600
|
-
numeric:
|
|
602
|
+
numeric: me(e)
|
|
601
603
|
}), e.kind === "timeline" && t.has(l) && r(e.timeline.tracks, c, a + 1, o + e.at);
|
|
602
604
|
});
|
|
603
605
|
};
|
|
604
606
|
return r(e, [], 0, 0), n;
|
|
605
607
|
}
|
|
606
|
-
function
|
|
608
|
+
function q(e, t) {
|
|
607
609
|
let n = e, r;
|
|
608
610
|
for (let e of t) {
|
|
609
611
|
if (r = n[e], !r) return;
|
|
@@ -613,22 +615,22 @@ function K(e, t) {
|
|
|
613
615
|
}
|
|
614
616
|
//#endregion
|
|
615
617
|
//#region src/components/Timeline/keys.ts
|
|
616
|
-
function
|
|
618
|
+
function J(e, t) {
|
|
617
619
|
return e.length === t.length && e.every((e, n) => e === t[n]);
|
|
618
620
|
}
|
|
619
|
-
function
|
|
621
|
+
function Y(e, t) {
|
|
620
622
|
return {
|
|
621
623
|
...e,
|
|
622
624
|
keys: t
|
|
623
625
|
};
|
|
624
626
|
}
|
|
625
|
-
function
|
|
627
|
+
function ge(e, t) {
|
|
626
628
|
return {
|
|
627
629
|
...e,
|
|
628
630
|
events: t
|
|
629
631
|
};
|
|
630
632
|
}
|
|
631
|
-
function
|
|
633
|
+
function X(e, t, n) {
|
|
632
634
|
let r = e.slice(), [i, ...a] = t;
|
|
633
635
|
if (a.length === 0) return r[i] = n, r;
|
|
634
636
|
let o = r[i];
|
|
@@ -638,19 +640,19 @@ function Y(e, t, n) {
|
|
|
638
640
|
...s,
|
|
639
641
|
timeline: {
|
|
640
642
|
...s.timeline,
|
|
641
|
-
tracks:
|
|
643
|
+
tracks: X(s.timeline.tracks, a, n)
|
|
642
644
|
}
|
|
643
645
|
}, r;
|
|
644
646
|
}
|
|
645
|
-
function
|
|
646
|
-
let r =
|
|
647
|
+
function Z(e, t, n) {
|
|
648
|
+
let r = q(e, t.trackPath), i = Math.max(0, n);
|
|
647
649
|
if (r?.kind === "sampled") {
|
|
648
650
|
let n = r, a = {
|
|
649
651
|
...n.keys[t.keyIndex],
|
|
650
652
|
t: i
|
|
651
653
|
}, o = n.keys.filter((e, n) => n !== t.keyIndex), s = o.findIndex((e) => e.t > i), c = s === -1 ? o.length : s;
|
|
652
654
|
return o.splice(c, 0, a), {
|
|
653
|
-
tracks:
|
|
655
|
+
tracks: X(e, t.trackPath, Y(r, o)),
|
|
654
656
|
selection: {
|
|
655
657
|
trackPath: t.trackPath,
|
|
656
658
|
keyIndex: c
|
|
@@ -663,7 +665,7 @@ function X(e, t, n) {
|
|
|
663
665
|
t: i
|
|
664
666
|
}, o = n.events.filter((e, n) => n !== t.keyIndex), s = o.findIndex((e) => e.t > i), c = s === -1 ? o.length : s;
|
|
665
667
|
return o.splice(c, 0, a), {
|
|
666
|
-
tracks:
|
|
668
|
+
tracks: X(e, t.trackPath, ge(r, o)),
|
|
667
669
|
selection: {
|
|
668
670
|
trackPath: t.trackPath,
|
|
669
671
|
keyIndex: c
|
|
@@ -675,8 +677,8 @@ function X(e, t, n) {
|
|
|
675
677
|
selection: t
|
|
676
678
|
};
|
|
677
679
|
}
|
|
678
|
-
function
|
|
679
|
-
let r =
|
|
680
|
+
function _e(e, t, n) {
|
|
681
|
+
let r = q(e, t);
|
|
680
682
|
if (r?.kind !== "sampled") return {
|
|
681
683
|
tracks: e.slice(),
|
|
682
684
|
selection: null
|
|
@@ -686,60 +688,60 @@ function me(e, t, n) {
|
|
|
686
688
|
t: a,
|
|
687
689
|
value: o
|
|
688
690
|
}), {
|
|
689
|
-
tracks:
|
|
691
|
+
tracks: X(e, t, Y(r, s)),
|
|
690
692
|
selection: {
|
|
691
693
|
trackPath: t,
|
|
692
694
|
keyIndex: l
|
|
693
695
|
}
|
|
694
696
|
};
|
|
695
697
|
}
|
|
696
|
-
function
|
|
697
|
-
let n =
|
|
698
|
+
function ve(e, t) {
|
|
699
|
+
let n = q(e, t.trackPath);
|
|
698
700
|
if (n?.kind !== "sampled") return {
|
|
699
701
|
tracks: e.slice(),
|
|
700
702
|
selection: t
|
|
701
703
|
};
|
|
702
704
|
let r = n.keys.filter((e, n) => n !== t.keyIndex);
|
|
703
705
|
return {
|
|
704
|
-
tracks:
|
|
706
|
+
tracks: X(e, t.trackPath, Y(n, r)),
|
|
705
707
|
selection: r.length === 0 ? null : {
|
|
706
708
|
trackPath: t.trackPath,
|
|
707
709
|
keyIndex: Math.max(0, t.keyIndex - 1)
|
|
708
710
|
}
|
|
709
711
|
};
|
|
710
712
|
}
|
|
711
|
-
function
|
|
712
|
-
let r =
|
|
713
|
+
function Q(e, t, n) {
|
|
714
|
+
let r = q(e, t.trackPath);
|
|
713
715
|
if (r?.kind !== "sampled") return e.slice();
|
|
714
716
|
let i = r.keys.slice(), { easing: a, ...o } = i[t.keyIndex];
|
|
715
717
|
return i[t.keyIndex] = n === void 0 ? o : {
|
|
716
718
|
...o,
|
|
717
719
|
easing: n
|
|
718
|
-
},
|
|
720
|
+
}, X(e, t.trackPath, Y(r, i));
|
|
719
721
|
}
|
|
720
|
-
function
|
|
721
|
-
let r =
|
|
722
|
-
return r?.kind === "sampled" ?
|
|
722
|
+
function $(e, t, n) {
|
|
723
|
+
let r = q(e, t);
|
|
724
|
+
return r?.kind === "sampled" ? X(e, t, Y(r, n.slice())) : e.slice();
|
|
723
725
|
}
|
|
724
|
-
function
|
|
725
|
-
let r =
|
|
726
|
+
function ye(e, t, n) {
|
|
727
|
+
let r = q(e, t.trackPath);
|
|
726
728
|
if (r?.kind !== "sampled") return e.slice();
|
|
727
729
|
let i = r.keys.slice();
|
|
728
730
|
return i[t.keyIndex] = {
|
|
729
731
|
...i[t.keyIndex],
|
|
730
732
|
value: n
|
|
731
|
-
},
|
|
733
|
+
}, X(e, t.trackPath, Y(r, i));
|
|
732
734
|
}
|
|
733
735
|
//#endregion
|
|
734
736
|
//#region src/components/Timeline/Timeline.tsx
|
|
735
|
-
function
|
|
736
|
-
let { tracks: t, duration: n, playhead: r, onInput: i, onChange: a, onScrub: o, renderKeyEditor: s, label: c, className: l } = e, [u, d] =
|
|
737
|
+
function be(e) {
|
|
738
|
+
let { tracks: t, duration: n, playhead: r, onInput: i, onChange: a, onScrub: o, renderKeyEditor: s, label: c, className: l } = e, [u, d] = w(() => /* @__PURE__ */ new Set()), [f, p] = w({
|
|
737
739
|
from: 0,
|
|
738
740
|
to: n
|
|
739
|
-
}), [m,
|
|
741
|
+
}), [m, h] = w(null), [v, y] = w(null), b = e.window ?? f, S = e.onWindowChange ?? p, C = e.selection === void 0 ? m : e.selection, T = e.onSelect ?? h, E = {
|
|
740
742
|
from: 0,
|
|
741
743
|
to: n
|
|
742
|
-
}, O =
|
|
744
|
+
}, O = x(() => he(t, u), [t, u]), k = x(() => {
|
|
743
745
|
let e = /* @__PURE__ */ new Set([0, n]);
|
|
744
746
|
for (let t of O) if (t.kind === "sampled") for (let n of t.track.keys) e.add(n.t + t.offset);
|
|
745
747
|
return [...e];
|
|
@@ -749,25 +751,25 @@ function $(e) {
|
|
|
749
751
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
750
752
|
});
|
|
751
753
|
}, j = (e) => {
|
|
752
|
-
if ((e.key === "Delete" || e.key === "Backspace") &&
|
|
754
|
+
if ((e.key === "Delete" || e.key === "Backspace") && C) {
|
|
753
755
|
e.preventDefault();
|
|
754
|
-
let n =
|
|
755
|
-
a(n.tracks),
|
|
756
|
+
let n = ve(t, C);
|
|
757
|
+
a(n.tracks), T(n.selection);
|
|
756
758
|
}
|
|
757
|
-
}, M =
|
|
758
|
-
return /* @__PURE__ */
|
|
759
|
-
className: [
|
|
759
|
+
}, M = C ? q(t, C.trackPath) : void 0, N = M?.kind === "sampled" ? M.keys[C.keyIndex] : void 0, P = v ? q(t, v.trackPath) : void 0, F = P?.kind === "sampled" ? P.keys[v.keyIndex] : void 0;
|
|
760
|
+
return /* @__PURE__ */ _("div", {
|
|
761
|
+
className: [D.root, l].filter(Boolean).join(" "),
|
|
760
762
|
"data-testid": "timeline-root",
|
|
761
763
|
tabIndex: -1,
|
|
762
764
|
onKeyDown: j,
|
|
763
765
|
children: [
|
|
764
|
-
c ? /* @__PURE__ */
|
|
765
|
-
className:
|
|
766
|
+
c ? /* @__PURE__ */ g("div", {
|
|
767
|
+
className: D.label,
|
|
766
768
|
children: c
|
|
767
769
|
}) : null,
|
|
768
|
-
e.transport === !1 ? null : /* @__PURE__ */
|
|
769
|
-
className:
|
|
770
|
-
children: [/* @__PURE__ */
|
|
770
|
+
e.transport === !1 ? null : /* @__PURE__ */ _("div", {
|
|
771
|
+
className: D.transportRow,
|
|
772
|
+
children: [/* @__PURE__ */ g(K, {
|
|
771
773
|
...e.transport ?? {
|
|
772
774
|
paused: !0,
|
|
773
775
|
loop: !1,
|
|
@@ -779,65 +781,65 @@ function $(e) {
|
|
|
779
781
|
},
|
|
780
782
|
playhead: r,
|
|
781
783
|
duration: n
|
|
782
|
-
}), /* @__PURE__ */
|
|
784
|
+
}), /* @__PURE__ */ g("button", {
|
|
783
785
|
type: "button",
|
|
784
786
|
role: "switch",
|
|
785
787
|
"aria-checked": (e.mode ?? "dope") === "graph",
|
|
786
788
|
"aria-label": "Graph mode",
|
|
787
|
-
className:
|
|
789
|
+
className: D.transportButton,
|
|
788
790
|
onClick: () => e.onModeChange?.((e.mode ?? "dope") === "graph" ? "dope" : "graph"),
|
|
789
791
|
children: "Graph"
|
|
790
792
|
})]
|
|
791
793
|
}),
|
|
792
|
-
/* @__PURE__ */
|
|
793
|
-
className:
|
|
794
|
-
children: [/* @__PURE__ */
|
|
795
|
-
className:
|
|
796
|
-
children: /* @__PURE__ */
|
|
797
|
-
window:
|
|
798
|
-
bounds:
|
|
794
|
+
/* @__PURE__ */ _("div", {
|
|
795
|
+
className: D.body,
|
|
796
|
+
children: [/* @__PURE__ */ g("div", { className: D.gutter }), /* @__PURE__ */ g("div", {
|
|
797
|
+
className: D.rulerWrap,
|
|
798
|
+
children: /* @__PURE__ */ g(pe, {
|
|
799
|
+
window: b,
|
|
800
|
+
bounds: E,
|
|
799
801
|
playhead: r,
|
|
800
802
|
onScrub: o,
|
|
801
803
|
onWindowChange: S
|
|
802
804
|
})
|
|
803
805
|
})]
|
|
804
806
|
}),
|
|
805
|
-
/* @__PURE__ */
|
|
806
|
-
className:
|
|
807
|
+
/* @__PURE__ */ g("div", {
|
|
808
|
+
className: D.lanes,
|
|
807
809
|
children: O.map((n) => {
|
|
808
810
|
let r = n.path;
|
|
809
|
-
return /* @__PURE__ */
|
|
811
|
+
return /* @__PURE__ */ g(ue, {
|
|
810
812
|
row: n,
|
|
811
|
-
window:
|
|
813
|
+
window: b,
|
|
812
814
|
mode: e.mode ?? "dope",
|
|
813
|
-
selection:
|
|
815
|
+
selection: C && J(C.trackPath, r) ? C.keyIndex : null,
|
|
814
816
|
expanded: u.has(n.key),
|
|
815
817
|
snapTimes: k,
|
|
816
818
|
onToggleExpand: () => A(n.key),
|
|
817
|
-
onSelect: (e) =>
|
|
819
|
+
onSelect: (e) => T({
|
|
818
820
|
trackPath: r,
|
|
819
821
|
keyIndex: e
|
|
820
822
|
}),
|
|
821
823
|
onKeyInput: (e, n) => {
|
|
822
|
-
i?.(
|
|
824
|
+
i?.(Z(t, {
|
|
823
825
|
trackPath: r,
|
|
824
826
|
keyIndex: e
|
|
825
827
|
}, n).tracks);
|
|
826
828
|
},
|
|
827
829
|
onKeyCommit: (e, n) => {
|
|
828
|
-
let i =
|
|
830
|
+
let i = Z(t, {
|
|
829
831
|
trackPath: r,
|
|
830
832
|
keyIndex: e
|
|
831
833
|
}, n);
|
|
832
|
-
a(i.tracks),
|
|
834
|
+
a(i.tracks), T(i.selection);
|
|
833
835
|
},
|
|
834
|
-
onKeysInput: (e) => i?.(
|
|
835
|
-
onKeysCommit: (e) => a(
|
|
836
|
+
onKeysInput: (e) => i?.($(t, r, e)),
|
|
837
|
+
onKeysCommit: (e) => a($(t, r, e)),
|
|
836
838
|
onInsert: (e) => {
|
|
837
|
-
let n =
|
|
838
|
-
a(n.tracks),
|
|
839
|
+
let n = _e(t, r, e);
|
|
840
|
+
a(n.tracks), T(n.selection);
|
|
839
841
|
},
|
|
840
|
-
selectedSegment: v &&
|
|
842
|
+
selectedSegment: v && J(v.trackPath, r) ? v.keyIndex : null,
|
|
841
843
|
onSelectSegment: (e) => y({
|
|
842
844
|
trackPath: r,
|
|
843
845
|
keyIndex: e
|
|
@@ -845,21 +847,21 @@ function $(e) {
|
|
|
845
847
|
}, n.key);
|
|
846
848
|
})
|
|
847
849
|
}),
|
|
848
|
-
s &&
|
|
849
|
-
className:
|
|
850
|
+
s && C && N && M?.kind === "sampled" ? /* @__PURE__ */ g("div", {
|
|
851
|
+
className: D.inspector,
|
|
850
852
|
children: s({
|
|
851
|
-
key:
|
|
853
|
+
key: N,
|
|
852
854
|
track: M,
|
|
853
|
-
selection:
|
|
854
|
-
commit: (e) => a(
|
|
855
|
-
setEasing: (e) => a(
|
|
855
|
+
selection: C,
|
|
856
|
+
commit: (e) => a(ye(t, C, e.value)),
|
|
857
|
+
setEasing: (e) => a(Q(t, C, e))
|
|
856
858
|
})
|
|
857
859
|
}) : null,
|
|
858
|
-
v &&
|
|
859
|
-
className:
|
|
860
|
-
children: /* @__PURE__ */
|
|
861
|
-
value:
|
|
862
|
-
onChange: (e) => a(
|
|
860
|
+
v && F ? /* @__PURE__ */ g("div", {
|
|
861
|
+
className: D.inspector,
|
|
862
|
+
children: /* @__PURE__ */ g(I, {
|
|
863
|
+
value: F.easing,
|
|
864
|
+
onChange: (e) => a(Q(t, v, e))
|
|
863
865
|
})
|
|
864
866
|
}) : null
|
|
865
867
|
]
|
|
@@ -867,20 +869,20 @@ function $(e) {
|
|
|
867
869
|
}
|
|
868
870
|
//#endregion
|
|
869
871
|
//#region src/components/Timeline/AnimatedTimeline.tsx
|
|
870
|
-
function
|
|
871
|
-
let { handle: t, ...n } = e, [, r] =
|
|
872
|
-
|
|
873
|
-
let i =
|
|
874
|
-
r(), t.isPaused() ||
|
|
875
|
-
});
|
|
876
|
-
|
|
877
|
-
let o =
|
|
872
|
+
function xe(e) {
|
|
873
|
+
let { handle: t, ...n } = e, [, r] = S((e) => e + 1, 0);
|
|
874
|
+
y(() => t.subscribe(r), [t]);
|
|
875
|
+
let i = m(() => {
|
|
876
|
+
r(), t.isPaused() || a.current.request();
|
|
877
|
+
}), a = p(i);
|
|
878
|
+
y(() => (t.isPaused() || i.request(), () => i.cancel()), [t, i]);
|
|
879
|
+
let o = v((e) => {
|
|
878
880
|
t.edit(() => {
|
|
879
881
|
let n = t.tracks();
|
|
880
882
|
n.splice(0, n.length, ...e);
|
|
881
883
|
});
|
|
882
884
|
}, [t]), s = t.time(), c = t.duration();
|
|
883
|
-
return /* @__PURE__ */
|
|
885
|
+
return /* @__PURE__ */ g(be, {
|
|
884
886
|
...n,
|
|
885
887
|
tracks: t.tracks(),
|
|
886
888
|
duration: c,
|
|
@@ -892,7 +894,7 @@ function _e(e) {
|
|
|
892
894
|
loop: t.loop(),
|
|
893
895
|
rate: t.timeScale(),
|
|
894
896
|
onPlay: () => {
|
|
895
|
-
t.time() >= c && t.seek(0), t.resume(),
|
|
897
|
+
t.time() >= c && t.seek(0), t.resume(), i.request(), r();
|
|
896
898
|
},
|
|
897
899
|
onPause: () => {
|
|
898
900
|
t.pause(), r();
|
|
@@ -907,6 +909,6 @@ function _e(e) {
|
|
|
907
909
|
});
|
|
908
910
|
}
|
|
909
911
|
//#endregion
|
|
910
|
-
export {
|
|
912
|
+
export { I as a, A as c, K as i, j as l, be as n, M as o, J as r, k as s, xe as t };
|
|
911
913
|
|
|
912
|
-
//# sourceMappingURL=Timeline
|
|
914
|
+
//# sourceMappingURL=Timeline-pqnYk5cV.js.map
|