@synnaxlabs/pluto 0.41.0 → 0.42.3
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/{Center-Dr9Np3yZ.js → Center-D0JeI7Ta.js} +2 -2
- package/dist/{Center-sJghNsrv.cjs → Center-DuI3XH-Q.cjs} +1 -1
- package/dist/{ContextMenu-GUed89mt.js → ContextMenu-BiNr7Gxv.js} +19 -20
- package/dist/ContextMenu-HpMLd1Ht.cjs +1 -0
- package/dist/DateTime-BsjSfOY-.cjs +1 -0
- package/dist/{DateTime-DEbT6v4l.js → DateTime-r6hocEmI.js} +2 -2
- package/dist/{Divider-Bpe7zJig.js → Divider-DqEkzRIY.js} +103 -97
- package/dist/{Divider-CloQr3vQ.cjs → Divider-Dut8qPee.cjs} +4 -4
- package/dist/Dropdown-BSSe1E1e.cjs +1 -0
- package/dist/{Dropdown-4Cti-bbQ.js → Dropdown-BrFL1eSc.js} +111 -112
- package/dist/Haul-C6i2oI7z.cjs +1 -0
- package/dist/{Haul-Bw54Yj6J.js → Haul-CEFSvdy9.js} +37 -38
- package/dist/{Item-9WCCzBv2.js → Item-C5SQraZM.js} +10 -11
- package/dist/Item-DSBs9VLu.cjs +1 -0
- package/dist/{Keyboard-CZFi6COK.cjs → Keyboard-Ca7TAAHK.cjs} +1 -1
- package/dist/{Keyboard-634856lT.js → Keyboard-Duo41pJL.js} +2 -2
- package/dist/{Link-fkoogssj.cjs → Link-B9ZGvoBU.cjs} +1 -1
- package/dist/{Link-BEheZd26.js → Link-C9GeoB0w.js} +1 -1
- package/dist/{Pack-DhZO_rza.js → Pack-BozAEHBp.js} +2 -2
- package/dist/{Pack-D6Z6WuZl.cjs → Pack-DeZUUdJM.cjs} +1 -1
- package/dist/{Provider-UAXPVomG.js → Provider-B86QO9NT.js} +301 -292
- package/dist/Provider-Cw0mSr2D.cjs +1 -0
- package/dist/{Space-DunsWl06.js → Space-CyTH97CN.js} +1 -1
- package/dist/{Space-BtaH1buB.cjs → Space-DvalhzRj.cjs} +1 -1
- package/dist/Text-8ps3Uw4T.js +35 -0
- package/dist/{Text-3PiRcn8q.js → Text-BR4FW9Hy.js} +75 -77
- package/dist/Text-C8GBHl-F.cjs +1 -0
- package/dist/Text-CMTkSEWx.cjs +4 -0
- package/dist/Text-DkA06TeT.cjs +1 -0
- package/dist/Text-sH_NOelc.js +137 -0
- package/dist/{Toggle-CZd8L4GI.js → Toggle-BRuUrO2N.js} +99 -101
- package/dist/Toggle-C0lZDyeo.cjs +1 -0
- package/dist/{Video-4XQ1qozd.js → Video-DWStbcmD.js} +1 -1
- package/dist/{Video-BM9uJLaQ.cjs → Video-DgjuFLiE.cjs} +1 -1
- package/dist/WithIcon-BgS5shNZ.cjs +1 -0
- package/dist/WithIcon-BhR6nwRh.js +98 -0
- package/dist/align.cjs +1 -1
- package/dist/align.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/color.cjs +1 -1
- package/dist/color.js +1 -1
- package/dist/css-9iEiTRNL.cjs +15 -0
- package/dist/css-Cnb9DQMD.js +4747 -0
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/deep-BNa3STCp.cjs +1 -0
- package/dist/deep-P35D0Sz7.js +112 -0
- package/dist/dimensions-B6qmnzv3.js +19 -0
- package/dist/dimensions-By-vgVks.cjs +1 -0
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/eraser-BkqFgBRY.cjs +11 -0
- package/dist/eraser-CK8SwEJa.js +1148 -0
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +67 -75
- package/dist/external-B1YsdhS4.js +432 -0
- package/dist/{external-BY2AjzRx.js → external-B7NxSklQ.js} +20 -19
- package/dist/external-B8uaUKhb.cjs +1 -0
- package/dist/external-BA_VOnV-.js +400 -0
- package/dist/{external-DNF8yEwq.js → external-BDkqwq72.js} +27 -28
- package/dist/external-BGBgNbe2.cjs +1 -0
- package/dist/{external-CVGidiDt.js → external-BOMdfX8_.js} +2 -2
- package/dist/{external-BIwhkj24.js → external-Bl8q9UBF.js} +1996 -2011
- package/dist/{external-BFOrrNde.js → external-BnK4UIFe.js} +3 -3
- package/dist/{external-CnxSp7fm.cjs → external-BwUa_5Vs.cjs} +1 -1
- package/dist/{external-BlUic3Vz.js → external-C0X4mXVG.js} +7 -8
- package/dist/{external-CH66YjTZ.js → external-C7yPkamb.js} +12 -13
- package/dist/external-CTc1n-JC.cjs +1 -0
- package/dist/{external-B-Cao-ae.cjs → external-CUgPP-JD.cjs} +1 -1
- package/dist/external-CzTBFiv_.cjs +1 -0
- package/dist/external-DGJ8YAe-.cjs +1 -0
- package/dist/{external-kZf9CjYn.cjs → external-DQwznOyH.cjs} +37 -37
- package/dist/external-DiLZ1dEk.cjs +1 -0
- package/dist/{external-BCUxzSzk.js → external-DissGp_3.js} +9 -10
- package/dist/{external-DVajt6X6.cjs → external-DmryCcwg.cjs} +1 -1
- package/dist/external-Dq8-cbf3.cjs +1 -0
- package/dist/{external-BbrPEGJw.js → external-_8qdWaAg.js} +2 -2
- package/dist/{external-C0ZRdtdj.js → external-bSUra-q7.js} +28 -28
- package/dist/external-zbKPQ9ls.cjs +46 -0
- package/dist/{font-BXKdXsr5.js → font-CjYcjBiv.js} +2 -2
- package/dist/{font-DCE90lco.cjs → font-XlUAG1-r.cjs} +1 -1
- package/dist/{fontString-C7Q9Laqk.js → fontString-BN1kd1AP.js} +1 -1
- package/dist/{fontString-BBvH9Ypy.cjs → fontString-Ddza50DF.cjs} +1 -1
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/hooks-B5aLaWzS.cjs +1 -0
- package/dist/hooks-DjznxGgm.js +296 -0
- package/dist/index.cjs +7 -7
- package/dist/index.js +8669 -8584
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/pluto.css +1 -1
- package/dist/provider-aWtsGnV8.cjs +58 -0
- package/dist/provider-r5Ly36FI.js +12854 -0
- package/dist/src/aether/aether/aether.d.ts +17 -18
- package/dist/src/aether/aether/aether.d.ts.map +1 -1
- package/dist/src/aether/aether/aether.spec.spec.d.ts +1 -5
- package/dist/src/aether/aether/aether.spec.spec.d.ts.map +1 -1
- package/dist/src/aether/main.d.ts.map +1 -1
- package/dist/src/aether/main.spec.d.ts +1 -5
- package/dist/src/aether/main.spec.d.ts.map +1 -1
- package/dist/src/aether/message.d.ts +11 -1
- package/dist/src/aether/message.d.ts.map +1 -1
- package/dist/src/alamos/aether/alamos.d.ts +19 -25
- package/dist/src/alamos/aether/alamos.d.ts.map +1 -1
- package/dist/src/button/Button.d.ts +2 -2
- package/dist/src/button/Button.d.ts.map +1 -1
- package/dist/src/button/color.d.ts +2 -2
- package/dist/src/button/color.d.ts.map +1 -1
- package/dist/src/channel/LinePlot.d.ts +4 -4
- package/dist/src/channel/LinePlot.d.ts.map +1 -1
- package/dist/src/color/BaseSwatch.d.ts +3 -3
- package/dist/src/color/BaseSwatch.d.ts.map +1 -1
- package/dist/src/color/GradientPicker.d.ts +1 -2
- package/dist/src/color/GradientPicker.d.ts.map +1 -1
- package/dist/src/color/Picker.d.ts +1 -1
- package/dist/src/color/Picker.d.ts.map +1 -1
- package/dist/src/color/Provider.d.ts +10 -98
- package/dist/src/color/Provider.d.ts.map +1 -1
- package/dist/src/color/external.d.ts +0 -4
- package/dist/src/color/external.d.ts.map +1 -1
- package/dist/src/css/color.d.ts +2 -2
- package/dist/src/css/color.d.ts.map +1 -1
- package/dist/src/divider/Divider.d.ts +2 -1
- package/dist/src/divider/Divider.d.ts.map +1 -1
- package/dist/src/ether.d.ts +0 -1
- package/dist/src/ether.d.ts.map +1 -1
- package/dist/src/form/Form.d.ts +1 -1
- package/dist/src/form/Form.d.ts.map +1 -1
- package/dist/src/haul/Haul.d.ts +7 -63
- package/dist/src/haul/Haul.d.ts.map +1 -1
- package/dist/src/hooks/useResize.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/input/Text.d.ts +4 -4
- package/dist/src/input/Text.d.ts.map +1 -1
- package/dist/src/mosaic/types.d.ts +6 -66
- package/dist/src/mosaic/types.d.ts.map +1 -1
- package/dist/src/pluto/Pluto.d.ts.map +1 -1
- package/dist/src/pluto/aether/pluto.d.ts.map +1 -1
- package/dist/src/select/Multiple.d.ts +2 -3
- package/dist/src/select/Multiple.d.ts.map +1 -1
- package/dist/src/state/state.d.ts +1 -2
- package/dist/src/state/state.d.ts.map +1 -1
- package/dist/src/status/Circle.d.ts.map +1 -1
- package/dist/src/status/aether/aggregator.d.ts +34 -96
- package/dist/src/status/aether/aggregator.d.ts.map +1 -1
- package/dist/src/status/aether/types.d.ts +23 -27
- package/dist/src/status/aether/types.d.ts.map +1 -1
- package/dist/src/synnax/Provider.d.ts +4 -0
- package/dist/src/synnax/Provider.d.ts.map +1 -1
- package/dist/src/synnax/aether/provider.d.ts +54 -388
- package/dist/src/synnax/aether/provider.d.ts.map +1 -1
- package/dist/src/table/aether/Table.d.ts +58 -418
- package/dist/src/table/aether/Table.d.ts.map +1 -1
- package/dist/src/table/cells/Cells.d.ts +41 -152
- package/dist/src/table/cells/Cells.d.ts.map +1 -1
- package/dist/src/table/cells/Forms.d.ts.map +1 -1
- package/dist/src/table/cells/registry.d.ts +6 -3
- package/dist/src/table/cells/registry.d.ts.map +1 -1
- package/dist/src/tabs/Selector.d.ts.map +1 -1
- package/dist/src/tabs/types.d.ts +5 -38
- package/dist/src/tabs/types.d.ts.map +1 -1
- package/dist/src/tag/Tag.d.ts +3 -4
- package/dist/src/tag/Tag.d.ts.map +1 -1
- package/dist/src/telem/aether/context.d.ts +8 -8
- package/dist/src/telem/aether/context.d.ts.map +1 -1
- package/dist/src/telem/aether/factory.d.ts +6 -2
- package/dist/src/telem/aether/factory.d.ts.map +1 -1
- package/dist/src/telem/aether/noop.d.ts.map +1 -1
- package/dist/src/telem/aether/pipeline.d.ts +25 -215
- package/dist/src/telem/aether/pipeline.d.ts.map +1 -1
- package/dist/src/telem/aether/provider.d.ts +7 -5
- package/dist/src/telem/aether/provider.d.ts.map +1 -1
- package/dist/src/telem/aether/remote.d.ts +62 -183
- package/dist/src/telem/aether/remote.d.ts.map +1 -1
- package/dist/src/telem/aether/static.d.ts +23 -72
- package/dist/src/telem/aether/static.d.ts.map +1 -1
- package/dist/src/telem/aether/telem.d.ts +60 -284
- package/dist/src/telem/aether/telem.d.ts.map +1 -1
- package/dist/src/telem/aether/transformers.d.ts +82 -318
- package/dist/src/telem/aether/transformers.d.ts.map +1 -1
- package/dist/src/telem/client/cache/cache.d.ts +1 -1
- package/dist/src/telem/client/cache/cache.d.ts.map +1 -1
- package/dist/src/telem/client/cache/dynamic.d.ts +5 -5
- package/dist/src/telem/client/cache/dynamic.d.ts.map +1 -1
- package/dist/src/telem/client/cache/static.d.ts +3 -3
- package/dist/src/telem/client/cache/static.d.ts.map +1 -1
- package/dist/src/telem/client/cache/unary.d.ts +3 -3
- package/dist/src/telem/client/cache/unary.d.ts.map +1 -1
- package/dist/src/telem/client/client.d.ts +8 -12
- package/dist/src/telem/client/client.d.ts.map +1 -1
- package/dist/src/telem/client/external.d.ts +0 -1
- package/dist/src/telem/client/external.d.ts.map +1 -1
- package/dist/src/telem/client/reader.d.ts +28 -10
- package/dist/src/telem/client/reader.d.ts.map +1 -1
- package/dist/src/telem/client/reader.spec.d.ts +6 -1
- package/dist/src/telem/client/reader.spec.d.ts.map +1 -1
- package/dist/src/telem/client/streamer.d.ts +6 -6
- package/dist/src/telem/client/streamer.d.ts.map +1 -1
- package/dist/src/telem/client/streamer.spec.d.ts +2 -0
- package/dist/src/telem/client/streamer.spec.d.ts.map +1 -0
- package/dist/src/telem/control/Indicator.d.ts.map +1 -1
- package/dist/src/telem/control/aether/chip.d.ts +44 -232
- package/dist/src/telem/control/aether/chip.d.ts.map +1 -1
- package/dist/src/telem/control/aether/controller.d.ts +36 -73
- package/dist/src/telem/control/aether/controller.d.ts.map +1 -1
- package/dist/src/telem/control/aether/indicator.d.ts +53 -253
- package/dist/src/telem/control/aether/indicator.d.ts.map +1 -1
- package/dist/src/telem/control/aether/legend.d.ts +22 -128
- package/dist/src/telem/control/aether/legend.d.ts.map +1 -1
- package/dist/src/telem/control/aether/state.d.ts +12 -42
- package/dist/src/telem/control/aether/state.d.ts.map +1 -1
- package/dist/src/text/Text.d.ts +5 -4
- package/dist/src/text/Text.d.ts.map +1 -1
- package/dist/src/text/core/types.d.ts +17 -14
- package/dist/src/text/core/types.d.ts.map +1 -1
- package/dist/src/text/dimensions.d.ts +1 -0
- package/dist/src/text/dimensions.d.ts.map +1 -1
- package/dist/src/theming/aether/provider.d.ts +1156 -5764
- package/dist/src/theming/aether/provider.d.ts.map +1 -1
- package/dist/src/theming/core/theme.d.ts +558 -1740
- package/dist/src/theming/core/theme.d.ts.map +1 -1
- package/dist/src/theming/css.d.ts.map +1 -1
- package/dist/src/tree/Tree.d.ts +1 -1
- package/dist/src/tree/Tree.d.ts.map +1 -1
- package/dist/src/tree/core.d.ts.map +1 -1
- package/dist/src/triggers/Provider.d.ts.map +1 -1
- package/dist/src/triggers/triggers.d.ts +248 -9
- package/dist/src/triggers/triggers.d.ts.map +1 -1
- package/dist/src/util/component.d.ts +7 -1
- package/dist/src/util/component.d.ts.map +1 -1
- package/dist/src/viewport/use.d.ts +8 -1
- package/dist/src/viewport/use.d.ts.map +1 -1
- package/dist/src/vis/axis/axis.d.ts +21 -44
- package/dist/src/vis/axis/axis.d.ts.map +1 -1
- package/dist/src/vis/axis/canvas.d.ts +17 -20
- package/dist/src/vis/axis/canvas.d.ts.map +1 -1
- package/dist/src/vis/axis/preciseTimeScale.d.ts +1 -2
- package/dist/src/vis/axis/preciseTimeScale.d.ts.map +1 -1
- package/dist/src/vis/axis/ticks.d.ts +11 -11
- package/dist/src/vis/axis/ticks.d.ts.map +1 -1
- package/dist/src/vis/button/aether/button.d.ts +10 -80
- package/dist/src/vis/button/aether/button.d.ts.map +1 -1
- package/dist/src/vis/canvas/Canvas.d.ts +2 -2
- package/dist/src/vis/canvas/Canvas.d.ts.map +1 -1
- package/dist/src/vis/canvas/aether/canvas.d.ts +45 -193
- package/dist/src/vis/canvas/aether/canvas.d.ts.map +1 -1
- package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/Diagram.d.ts +62 -469
- package/dist/src/vis/diagram/aether/Diagram.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/types.d.ts +32 -246
- package/dist/src/vis/diagram/aether/types.d.ts.map +1 -1
- package/dist/src/vis/diagram/edge/Edge.d.ts +2 -3
- package/dist/src/vis/diagram/edge/Edge.d.ts.map +1 -1
- package/dist/src/vis/diagram/edge/connector/connector.d.ts +5 -8
- package/dist/src/vis/diagram/edge/connector/connector.d.ts.map +1 -1
- package/dist/src/vis/diagram/edge/paths.d.ts +3 -4
- package/dist/src/vis/diagram/edge/paths.d.ts.map +1 -1
- package/dist/src/vis/draw2d/canvas.d.ts +21 -3
- package/dist/src/vis/draw2d/canvas.d.ts.map +1 -1
- package/dist/src/vis/draw2d/index.d.ts +3 -4
- package/dist/src/vis/draw2d/index.d.ts.map +1 -1
- package/dist/src/vis/eraser/aether/eraser.d.ts +30 -170
- package/dist/src/vis/eraser/aether/eraser.d.ts.map +1 -1
- package/dist/src/vis/grid/grid.d.ts +14 -24
- package/dist/src/vis/grid/grid.d.ts.map +1 -1
- package/dist/src/vis/legend/Container.d.ts +42 -86
- package/dist/src/vis/legend/Container.d.ts.map +1 -1
- package/dist/src/vis/legend/Simple.d.ts +3 -4
- package/dist/src/vis/legend/Simple.d.ts.map +1 -1
- package/dist/src/vis/light/aether/light.d.ts +10 -80
- package/dist/src/vis/light/aether/light.d.ts.map +1 -1
- package/dist/src/vis/line/aether/line.d.ts +20 -99
- package/dist/src/vis/line/aether/line.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Axis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/LinePlot.d.ts +2 -3
- package/dist/src/vis/lineplot/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/BoundQuerier.d.ts +35 -0
- package/dist/src/vis/lineplot/aether/BoundQuerier.d.ts.map +1 -0
- package/dist/src/vis/lineplot/aether/LinePlot.d.ts +82 -489
- package/dist/src/vis/lineplot/aether/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/XAxis.d.ts +63 -187
- package/dist/src/vis/lineplot/aether/XAxis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/YAxis.d.ts +61 -190
- package/dist/src/vis/lineplot/aether/YAxis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/axis.d.ts +33 -96
- package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/external.d.ts +1 -0
- package/dist/src/vis/lineplot/aether/external.d.ts.map +1 -1
- package/dist/src/vis/lineplot/external.d.ts +1 -0
- package/dist/src/vis/lineplot/external.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/Provider.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/aether/annotation.d.ts +15 -52
- package/dist/src/vis/lineplot/range/aether/annotation.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/aether/provider.d.ts +43 -294
- package/dist/src/vis/lineplot/range/aether/provider.d.ts.map +1 -1
- package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts +33 -138
- package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts.map +1 -1
- package/dist/src/vis/lineplot/useBoundQuerier.d.ts +11 -0
- package/dist/src/vis/lineplot/useBoundQuerier.d.ts.map +1 -0
- package/dist/src/vis/log/aether/Log.d.ts +88 -455
- package/dist/src/vis/log/aether/Log.d.ts.map +1 -1
- package/dist/src/vis/measure/aether/measure.d.ts +40 -233
- package/dist/src/vis/measure/aether/measure.d.ts.map +1 -1
- package/dist/src/vis/performance/Performance.d.ts +2 -0
- package/dist/src/vis/performance/Performance.d.ts.map +1 -0
- package/dist/src/vis/performance/aether/index.d.ts +2 -0
- package/dist/src/vis/performance/aether/index.d.ts.map +1 -0
- package/dist/src/vis/performance/aether/performance.d.ts +15 -0
- package/dist/src/vis/performance/aether/performance.d.ts.map +1 -0
- package/dist/src/vis/performance/index.d.ts +2 -0
- package/dist/src/vis/performance/index.d.ts.map +1 -0
- package/dist/src/vis/render/GLProgram.d.ts +1 -2
- package/dist/src/vis/render/GLProgram.d.ts.map +1 -1
- package/dist/src/vis/render/context.d.ts +1 -0
- package/dist/src/vis/render/context.d.ts.map +1 -1
- package/dist/src/vis/render/controller.d.ts +7 -12
- package/dist/src/vis/render/controller.d.ts.map +1 -1
- package/dist/src/vis/render/loop.d.ts +15 -5
- package/dist/src/vis/render/loop.d.ts.map +1 -1
- package/dist/src/vis/rule/Rule.d.ts +1 -1
- package/dist/src/vis/rule/Rule.d.ts.map +1 -1
- package/dist/src/vis/rule/aether/aether.d.ts +12 -53
- package/dist/src/vis/rule/aether/aether.d.ts.map +1 -1
- package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
- package/dist/src/vis/schematic/Symbols.d.ts +3 -4
- package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
- package/dist/src/vis/schematic/primitives/Primitives.d.ts +34 -35
- package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
- package/dist/src/vis/schematic/registry.d.ts +96 -1
- package/dist/src/vis/schematic/registry.d.ts.map +1 -1
- package/dist/src/vis/setpoint/aether/setpoint.d.ts +16 -155
- package/dist/src/vis/setpoint/aether/setpoint.d.ts.map +1 -1
- package/dist/src/vis/text/atlas.d.ts +32 -0
- package/dist/src/vis/text/atlas.d.ts.map +1 -0
- package/dist/src/vis/text/index.d.ts +2 -0
- package/dist/src/vis/text/index.d.ts.map +1 -0
- package/dist/src/vis/toggle/aether/toggle.d.ts +16 -150
- package/dist/src/vis/toggle/aether/toggle.d.ts.map +1 -1
- package/dist/src/vis/value/aether/value.d.ts +150 -563
- package/dist/src/vis/value/aether/value.d.ts.map +1 -1
- package/dist/src/vis/value/use.d.ts +59 -199
- package/dist/src/vis/value/use.d.ts.map +1 -1
- package/dist/{state-Bd_8X2jl.cjs → state-_FFrG5nH.cjs} +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.js +2 -2
- package/dist/theming.cjs +1 -1
- package/dist/theming.js +2 -2
- package/dist/{toArray-Dvn9FA_3.js → toArray-B7nD2CTw.js} +1 -1
- package/dist/{toArray-DRKOku1s.cjs → toArray-BvVYuN_b.cjs} +1 -1
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/triggers.cjs +1 -1
- package/dist/triggers.js +1 -1
- package/dist/units-CX_coN92.cjs +1 -0
- package/dist/units-Ct3Xl5nK.js +11 -0
- package/dist/useClickOutside-CSff8yb-.cjs +1 -0
- package/dist/useClickOutside-DDCP7Fh-.js +106 -0
- package/dist/{useDebouncedCallback-Dg4BDGP-.js → useDebouncedCallback-BG4I7mbT.js} +1 -1
- package/dist/useDebouncedCallback-DnwYZzjR.cjs +1 -0
- package/dist/{useMemoCompare-BEDaTIXL.js → useMemoCompare-BViQehyd.js} +2 -2
- package/dist/useMemoCompare-C2X7Mzx8.cjs +1 -0
- package/dist/useVirtualCursorDragWebKit-DDmXE4RW.cjs +1 -0
- package/dist/{useVirtualCursorDragWebKit-BixysrXI.js → useVirtualCursorDragWebKit-DTU2tUmp.js} +22 -23
- package/dist/value-B6OlPXe1.js +5974 -0
- package/dist/value-Bq1w9UY8.cjs +57 -0
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +9 -8
- package/dist/ContextMenu-DCxj35_j.cjs +0 -1
- package/dist/DateTime-D6J8sRSH.cjs +0 -1
- package/dist/Dropdown-C7Im-qW-.cjs +0 -1
- package/dist/Haul-hv7TLQ7N.cjs +0 -1
- package/dist/Item-piF6rFAm.cjs +0 -1
- package/dist/Provider-DNTq46b0.cjs +0 -1
- package/dist/Text-BTEov6di.cjs +0 -1
- package/dist/Text-CaRMYy3U.js +0 -135
- package/dist/Text-DNspRcte.js +0 -36
- package/dist/Text-DylGoRKw.cjs +0 -4
- package/dist/Text-X_BHez8W.cjs +0 -1
- package/dist/Toggle-BKKBcuTj.cjs +0 -1
- package/dist/WithIcon-CC-RSx6r.js +0 -93
- package/dist/WithIcon-Dn8eAoMj.cjs +0 -1
- package/dist/aggregator-74jWxDne.cjs +0 -1
- package/dist/aggregator-DMvP8cai.js +0 -83
- package/dist/css-Cj2UCGXB.cjs +0 -1
- package/dist/css-Dyt-QnKy.js +0 -1199
- package/dist/deep-Cvb4bVYY.js +0 -105
- package/dist/deep-ICSlPm58.cjs +0 -1
- package/dist/dimensions-Cc0z-IDd.js +0 -18
- package/dist/dimensions-Djqdrqi0.cjs +0 -1
- package/dist/eraser-9-LOWZvk.cjs +0 -11
- package/dist/eraser-BjtEI-1I.js +0 -823
- package/dist/external-B-UNCzPY.cjs +0 -1
- package/dist/external-B18FBGpk.cjs +0 -1
- package/dist/external-BG1mV1W8.cjs +0 -1
- package/dist/external-BWeX0nyq.js +0 -399
- package/dist/external-BbmpRAH3.cjs +0 -1
- package/dist/external-D2vS6j9c.cjs +0 -46
- package/dist/external-DHmQqAfL.js +0 -435
- package/dist/external-DRGfSFQT.cjs +0 -1
- package/dist/external-DX4m-5qT.cjs +0 -1
- package/dist/external-DlywBW-S.cjs +0 -1
- package/dist/hooks-BQJQyGWV.js +0 -293
- package/dist/hooks-ClXSlga9.cjs +0 -1
- package/dist/index-CSKP1UPN.js +0 -2343
- package/dist/index-Ch3utIMa.cjs +0 -15
- package/dist/provider-CH0eoGfz.js +0 -10358
- package/dist/provider-D054LCpB.cjs +0 -53
- package/dist/src/color/core/color.d.ts +0 -143
- package/dist/src/color/core/color.d.ts.map +0 -1
- package/dist/src/color/core/color.spec.d.ts +0 -2
- package/dist/src/color/core/color.spec.d.ts.map +0 -1
- package/dist/src/color/core/external.d.ts +0 -5
- package/dist/src/color/core/external.d.ts.map +0 -1
- package/dist/src/color/core/gradient.d.ts +0 -58
- package/dist/src/color/core/gradient.d.ts.map +0 -1
- package/dist/src/color/core/index.d.ts +0 -2
- package/dist/src/color/core/index.d.ts.map +0 -1
- package/dist/src/color/core/palette.d.ts +0 -74
- package/dist/src/color/core/palette.d.ts.map +0 -1
- package/dist/src/color/core/transformColorsToHex.d.ts +0 -6
- package/dist/src/color/core/transformColorsToHex.d.ts.map +0 -1
- package/dist/src/telem/client/types.d.ts +0 -20
- package/dist/src/telem/client/types.d.ts.map +0 -1
- package/dist/transformColorsToHex-DE7uEs1w.cjs +0 -1
- package/dist/transformColorsToHex-UBrryWh5.js +0 -14
- package/dist/units-DjoHPrqM.cjs +0 -1
- package/dist/units-MBd0L3ff.js +0 -8
- package/dist/useClickOutside-4k9PAT_i.cjs +0 -1
- package/dist/useClickOutside-BYjsXGgb.js +0 -107
- package/dist/useDebouncedCallback-BBsAgC9k.cjs +0 -1
- package/dist/useMemoCompare-DORTZbzY.cjs +0 -1
- package/dist/useVirtualCursorDragWebKit-BSafZVD_.cjs +0 -1
- package/dist/value-CudL8z5e.js +0 -5957
- package/dist/value-DT0qJqgQ.cjs +0 -57
package/dist/deep-Cvb4bVYY.js
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { u as b, f as j, h as d, y as O, g as m, c as A, p as $, o as c } from "./index-CSKP1UPN.js";
|
|
2
|
-
const k = (e) => JSON.parse(JSON.stringify(e)), v = (e, ...f) => (f.forEach((a) => {
|
|
3
|
-
let t = e;
|
|
4
|
-
const o = a.split(".");
|
|
5
|
-
o.forEach((s, r) => {
|
|
6
|
-
r === o.length - 1 ? delete t[s] : s in t && (t = t[s]);
|
|
7
|
-
});
|
|
8
|
-
}), e), E = (e, f, a = "") => {
|
|
9
|
-
const t = {}, o = (s, r, l) => {
|
|
10
|
-
if (typeof s != typeof r || s === null || r === null) {
|
|
11
|
-
t[l] = [s, r];
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
if (typeof s == "object" && typeof r == "object")
|
|
15
|
-
if (Array.isArray(s) && Array.isArray(r)) {
|
|
16
|
-
if (s.length !== r.length) {
|
|
17
|
-
t[l] = [s, r];
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
for (let n = 0; n < s.length; n++) o(s[n], r[n], `${l}[${n}]`);
|
|
21
|
-
} else
|
|
22
|
-
(/* @__PURE__ */ new Set([...Object.keys(s), ...Object.keys(r)])).forEach((n) => {
|
|
23
|
-
o(s[n], r[n], l !== "" ? `${l}.${n}` : n);
|
|
24
|
-
});
|
|
25
|
-
else s !== r && (t[l] = [s, r]);
|
|
26
|
-
};
|
|
27
|
-
return o(e, f, a), t;
|
|
28
|
-
}, u = (e, f) => {
|
|
29
|
-
const a = Array.isArray(e), t = Array.isArray(f);
|
|
30
|
-
if (a !== t) return !1;
|
|
31
|
-
if (a && t) {
|
|
32
|
-
const r = e, l = f;
|
|
33
|
-
if (r.length !== l.length) return !1;
|
|
34
|
-
for (let n = 0; n < r.length; n++) if (!u(r[n], l[n])) return !1;
|
|
35
|
-
return !0;
|
|
36
|
-
}
|
|
37
|
-
if (e == null || f == null || typeof e != "object" || typeof f != "object")
|
|
38
|
-
return e === f;
|
|
39
|
-
if ("equals" in e) return e.equals(f);
|
|
40
|
-
const o = Object.keys(e), s = Object.keys(f);
|
|
41
|
-
if (o.length !== s.length) return !1;
|
|
42
|
-
for (const r of o) {
|
|
43
|
-
const l = e[r], n = f[r];
|
|
44
|
-
if (typeof l == "object" && typeof n == "object") {
|
|
45
|
-
if (!u(l, n)) return !1;
|
|
46
|
-
} else if (l !== n) return !1;
|
|
47
|
-
}
|
|
48
|
-
return !0;
|
|
49
|
-
}, h = (e, f) => {
|
|
50
|
-
if (typeof e != "object" || e == null) return e === f;
|
|
51
|
-
const a = Object.keys(e), t = Object.keys(f);
|
|
52
|
-
if (t.length > a.length) return !1;
|
|
53
|
-
for (const o of t) {
|
|
54
|
-
const s = e[o], r = f[o];
|
|
55
|
-
if (typeof s == "object" && typeof r == "object") {
|
|
56
|
-
if (!h(s, r)) return !1;
|
|
57
|
-
} else if (s !== r) return !1;
|
|
58
|
-
}
|
|
59
|
-
return !0;
|
|
60
|
-
}, y = (e, ...f) => {
|
|
61
|
-
if (f.length === 0) return e;
|
|
62
|
-
const a = f.shift();
|
|
63
|
-
if (c(e) && c(a))
|
|
64
|
-
for (const t in a)
|
|
65
|
-
try {
|
|
66
|
-
c(a[t]) ? (t in e || Object.assign(e, { [t]: {} }), y(e[t], a[t])) : Object.assign(e, { [t]: a[t] });
|
|
67
|
-
} catch (o) {
|
|
68
|
-
throw o instanceof TypeError ? new TypeError(`.${t}: ${o.message}`) : o;
|
|
69
|
-
}
|
|
70
|
-
return y(e, ...f);
|
|
71
|
-
}, _ = (e, f, a) => {
|
|
72
|
-
const t = (o, s, r) => {
|
|
73
|
-
for (const l in s) {
|
|
74
|
-
const n = s[l], i = g(r);
|
|
75
|
-
if (i != null && i[l]) {
|
|
76
|
-
const p = i[l].safeParse(n);
|
|
77
|
-
p.success && (o[l] = p.data);
|
|
78
|
-
} else typeof n == "object" && !Array.isArray(n) && n !== null && r && r.shape && r.shape[l] && (o[l] || (o[l] = {}), t(o[l], n, r.shape[l]));
|
|
79
|
-
}
|
|
80
|
-
return o;
|
|
81
|
-
};
|
|
82
|
-
return t({ ...e }, f, a);
|
|
83
|
-
}, g = (e) => {
|
|
84
|
-
var f;
|
|
85
|
-
return ((f = e._def) == null ? void 0 : f.typeName) === "ZodEffects" ? g(e._def.schema) : e == null ? void 0 : e.shape;
|
|
86
|
-
}, S = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
87
|
-
__proto__: null,
|
|
88
|
-
copy: k,
|
|
89
|
-
deleteD: v,
|
|
90
|
-
difference: E,
|
|
91
|
-
element: $,
|
|
92
|
-
equal: u,
|
|
93
|
-
get: A,
|
|
94
|
-
has: m,
|
|
95
|
-
override: y,
|
|
96
|
-
overrideValidItems: _,
|
|
97
|
-
partialEqual: h,
|
|
98
|
-
pathsMatch: O,
|
|
99
|
-
remove: d,
|
|
100
|
-
set: j,
|
|
101
|
-
transformPath: b
|
|
102
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
103
|
-
export {
|
|
104
|
-
S as I
|
|
105
|
-
};
|
package/dist/deep-ICSlPm58.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const i=require("./index-Ch3utIMa.cjs"),g=e=>JSON.parse(JSON.stringify(e)),j=(e,...n)=>(n.forEach(a=>{let t=e;const o=a.split(".");o.forEach((s,r)=>{r===o.length-1?delete t[s]:s in t&&(t=t[s])})}),e),d=(e,n,a="")=>{const t={},o=(s,r,l)=>{if(typeof s!=typeof r||s===null||r===null){t[l]=[s,r];return}if(typeof s=="object"&&typeof r=="object")if(Array.isArray(s)&&Array.isArray(r)){if(s.length!==r.length){t[l]=[s,r];return}for(let f=0;f<s.length;f++)o(s[f],r[f],`${l}[${f}]`)}else new Set([...Object.keys(s),...Object.keys(r)]).forEach(f=>{o(s[f],r[f],l!==""?`${l}.${f}`:f)});else s!==r&&(t[l]=[s,r])};return o(e,n,a),t},u=(e,n)=>{const a=Array.isArray(e),t=Array.isArray(n);if(a!==t)return!1;if(a&&t){const r=e,l=n;if(r.length!==l.length)return!1;for(let f=0;f<r.length;f++)if(!u(r[f],l[f]))return!1;return!0}if(e==null||n==null||typeof e!="object"||typeof n!="object")return e===n;if("equals"in e)return e.equals(n);const o=Object.keys(e),s=Object.keys(n);if(o.length!==s.length)return!1;for(const r of o){const l=e[r],f=n[r];if(typeof l=="object"&&typeof f=="object"){if(!u(l,f))return!1}else if(l!==f)return!1}return!0},p=(e,n)=>{if(typeof e!="object"||e==null)return e===n;const a=Object.keys(e),t=Object.keys(n);if(t.length>a.length)return!1;for(const o of t){const s=e[o],r=n[o];if(typeof s=="object"&&typeof r=="object"){if(!p(s,r))return!1}else if(s!==r)return!1}return!0},y=(e,...n)=>{if(n.length===0)return e;const a=n.shift();if(i.o(e)&&i.o(a))for(const t in a)try{i.o(a[t])?(t in e||Object.assign(e,{[t]:{}}),y(e[t],a[t])):Object.assign(e,{[t]:a[t]})}catch(o){throw o instanceof TypeError?new TypeError(`.${t}: ${o.message}`):o}return y(e,...n)},O=(e,n,a)=>{const t=(o,s,r)=>{for(const l in s){const f=s[l],c=b(r);if(c!=null&&c[l]){const h=c[l].safeParse(f);h.success&&(o[l]=h.data)}else typeof f=="object"&&!Array.isArray(f)&&f!==null&&r&&r.shape&&r.shape[l]&&(o[l]||(o[l]={}),t(o[l],f,r.shape[l]))}return o};return t({...e},n,a)},b=e=>{var n;return((n=e._def)==null?void 0:n.typeName)==="ZodEffects"?b(e._def.schema):e==null?void 0:e.shape},A=Object.freeze(Object.defineProperty({__proto__:null,copy:g,deleteD:j,difference:d,element:i.p,equal:u,get:i.c,has:i.g,override:y,overrideValidItems:O,partialEqual:p,pathsMatch:i.y,remove:i.h,set:i.f,transformPath:i.u},Symbol.toStringTag,{value:"Module"}));exports.I=A;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { S as s } from "./index-CSKP1UPN.js";
|
|
2
|
-
let n = null;
|
|
3
|
-
const u = () => (n ?? (n = document.createElement("canvas")), n), i = (e, o, a) => {
|
|
4
|
-
if (s.RUNTIME === "node") return { width: 0, height: 0 };
|
|
5
|
-
a ?? (a = u().getContext("2d")), a.font = o;
|
|
6
|
-
const t = a.measureText(e);
|
|
7
|
-
return {
|
|
8
|
-
width: Math.trunc(
|
|
9
|
-
Math.abs(t.actualBoundingBoxLeft) + Math.abs(t.actualBoundingBoxRight)
|
|
10
|
-
),
|
|
11
|
-
height: Math.trunc(
|
|
12
|
-
Math.abs(t.actualBoundingBoxAscent) + Math.abs(t.actualBoundingBoxDescent)
|
|
13
|
-
)
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
i as d
|
|
18
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const i=require("./index-Ch3utIMa.cjs");let e=null;const u=()=>(e??(e=document.createElement("canvas")),e),c=(a,s,n)=>{if(i.S.RUNTIME==="node")return{width:0,height:0};n??(n=u().getContext("2d")),n.font=s;const t=n.measureText(a);return{width:Math.trunc(Math.abs(t.actualBoundingBoxLeft)+Math.abs(t.actualBoundingBoxRight)),height:Math.trunc(Math.abs(t.actualBoundingBoxAscent)+Math.abs(t.actualBoundingBoxDescent))}};exports.dimensions=c;
|
package/dist/eraser-9-LOWZvk.cjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";var L=Object.defineProperty;var P=(h,e,t)=>e in h?L(h,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):h[e]=t;var n=(h,e,t)=>P(h,typeof e!="symbol"?e+"":e,t);const v=require("./index-Ch3utIMa.cjs"),x=require("zod"),_=require("./provider-D054LCpB.cjs"),a=require("./css-Cj2UCGXB.cjs"),d=(h,e)=>a.$t.construct(a.$t.left(h)-e.x,a.$t.top(h)-e.y,a.$t.width(h)+e.x*2,a.$t.height(h)+e.y*2);class u{constructor(e,t=a.b.XY.IDENTITY){n(this,"scale_");n(this,"wrapped");this.wrapped=e,this.scale_=t}get fontStretch(){return this.wrapped.fontStretch}set fontStretch(e){this.wrapped.fontStretch=e}get fontVariantCaps(){return this.wrapped.fontVariantCaps}set fontVariantCaps(e){this.wrapped.fontVariantCaps=e}isContextLost(){return this.wrapped.isContextLost()}get wordSpacing(){return this.wrapped.wordSpacing}set wordSpacing(e){this.wrapped.wordSpacing=e}get letterSpacing(){return this.wrapped.letterSpacing}set letterSpacing(e){this.wrapped.letterSpacing=e}get textRendering(){return this.wrapped.textRendering}set textRendering(e){this.wrapped.textRendering=e}reset(){this.wrapped.reset()}applyScale(e){return new u(this,e)}get canvas(){return this.wrapped.canvas}get miterLimit(){return this.wrapped.miterLimit}set miterLimit(e){this.wrapped.miterLimit=this.scale_.x.dim(e)}get globalAlpha(){return this.wrapped.globalAlpha}set globalAlpha(e){this.wrapped.globalAlpha=e}get globalCompositeOperation(){return this.wrapped.globalCompositeOperation}set globalCompositeOperation(e){this.wrapped.globalCompositeOperation=e}get fillStyle(){return this.wrapped.fillStyle}set fillStyle(e){this.wrapped.fillStyle=e}get strokeStyle(){return this.wrapped.strokeStyle}set strokeStyle(e){this.wrapped.strokeStyle=e}drawImage(e,t,s,r,i,o,p,l,f){this.wrapped.drawImage(e,t,s,r,i,o,p,l,f)}beginPath(){this.wrapped.beginPath()}clip(e,t){this.wrapped.clip(e,t)}fill(e,t){if(e==null)return this.wrapped.fill();this.wrapped.fill(e,t)}isPointInPath(e,t,s,r){return this.wrapped.isPointInPath(e,t,s,r)}isPointInStroke(e,t,s){return this.wrapped.isPointInStroke(e,t,s)}stroke(e){if(e==null)return this.wrapped.stroke();this.wrapped.stroke(e)}createConicGradient(e,t,s){return this.wrapped.createConicGradient(e,t,s)}createLinearGradient(e,t,s,r){return this.wrapped.createLinearGradient(e,t,s,r)}createPattern(e,t){return this.wrapped.createPattern(e,t)}createRadialGradient(e,t,s,r,i,o){return this.wrapped.createRadialGradient(e,t,s,r,i,o)}get filter(){return this.wrapped.filter}set filter(e){this.wrapped.filter=e}createImageData(e,t,s){return this.wrapped.createImageData(e,t,s)}getImageData(e,t,s,r,i){return this.wrapped.getImageData(e,t,s,r,i)}putImageData(e,t,s,r,i,o,p){this.wrapped.putImageData(e,t,s,r,i,o,p)}get imageSmoothingEnabled(){return this.wrapped.imageSmoothingEnabled}set imageSmoothingEnabled(e){this.wrapped.imageSmoothingEnabled=e}get imageSmoothingQuality(){return this.wrapped.imageSmoothingQuality}set imageSmoothingQuality(e){this.wrapped.imageSmoothingQuality=e}arc(e,t,s,r,i,o){this.wrapped.arc(this.scale_.x.pos(e),this.scale_.y.pos(t),this.scale_.x.dim(s),r,i,o)}arcTo(e,t,s,r,i){this.wrapped.arcTo(this.scale_.x.pos(e),this.scale_.y.pos(t),this.scale_.x.pos(s),this.scale_.y.pos(r),this.scale_.x.dim(i))}bezierCurveTo(e,t,s,r,i,o){this.wrapped.bezierCurveTo(this.scale_.x.pos(e),this.scale_.y.pos(t),this.scale_.x.pos(s),this.scale_.y.pos(r),this.scale_.x.pos(i),this.scale_.y.pos(o))}closePath(){this.wrapped.closePath()}ellipse(e,t,s,r,i,o,p,l){this.wrapped.ellipse(this.scale_.x.pos(e),this.scale_.y.pos(t),this.scale_.x.dim(s),this.scale_.y.dim(r),i,o,p,l)}lineTo(e,t){this.wrapped.lineTo(this.scale_.x.pos(e),this.scale_.y.pos(t))}moveTo(e,t){this.wrapped.moveTo(this.scale_.x.pos(e),this.scale_.y.pos(t))}quadraticCurveTo(e,t,s,r){this.wrapped.quadraticCurveTo(this.scale_.x.pos(e),this.scale_.y.pos(t),this.scale_.x.pos(s),this.scale_.y.pos(r))}rect(e,t,s,r){this.wrapped.rect(this.scale_.x.pos(e),this.scale_.y.pos(t),this.scale_.x.dim(s),this.scale_.y.dim(r))}roundRect(e,t,s,r,i){this.wrapped.roundRect(this.scale_.x.pos(e),this.scale_.y.pos(t),this.scale_.x.dim(s),this.scale_.y.dim(r),typeof i=="number"?this.scale_.x.dim(i):i)}get lineCap(){return this.wrapped.lineCap}set lineCap(e){this.wrapped.lineCap=e}get lineDashOffset(){return this.wrapped.lineDashOffset}set lineDashOffset(e){this.wrapped.lineDashOffset=this.scale_.x.dim(e)}get lineJoin(){return this.wrapped.lineJoin}set lineJoin(e){this.wrapped.lineJoin=e}get lineWidth(){return this.wrapped.lineWidth}set lineWidth(e){this.wrapped.lineWidth=this.scale_.x.dim(e)}getLineDash(){return this.wrapped.getLineDash()}setLineDash(e){const t=Array.from(e).map(s=>this.scale_.x.dim(s));this.wrapped.setLineDash(t)}clearRect(e,t,s,r){this.wrapped.clearRect(e,t,s,r)}fillRect(e,t,s,r){this.wrapped.fillRect(this.scale_.x.pos(e),this.scale_.y.pos(t),this.scale_.x.dim(s),this.scale_.y.dim(r))}strokeRect(e,t,s,r){this.wrapped.strokeRect(this.scale_.x.pos(e),this.scale_.y.pos(t),this.scale_.x.dim(s),this.scale_.y.dim(r))}get shadowBlur(){return this.wrapped.shadowBlur}set shadowBlur(e){this.wrapped.shadowBlur=e}get shadowColor(){return this.wrapped.shadowColor}set shadowColor(e){this.wrapped.shadowColor=e}get shadowOffsetX(){return this.wrapped.shadowOffsetX}set shadowOffsetX(e){this.wrapped.shadowOffsetX=e}get shadowOffsetY(){return this.wrapped.shadowOffsetY}restore(){this.wrapped.restore()}save(){this.wrapped.save()}fillText(e,t,s,r){this.wrapped.fillText(e,this.scale_.x.pos(t),this.scale_.y.pos(s),r!=null?this.scale_.x.dim(r):void 0)}measureText(e){this.wrapped.font=m(this.wrapped.font,this.scale_.x.reverse());const t=this.wrapped.measureText(e);return this.wrapped.font=m(this.wrapped.font,this.scale_.x),t}strokeText(e,t,s,r){this.wrapped.strokeText(e,this.scale_.x.pos(t),this.scale_.y.pos(s),r!=null?this.scale_.x.dim(r):void 0)}get direction(){return this.wrapped.direction}set direction(e){this.wrapped.direction=e}get font(){return this.wrapped.font}set font(e){this.wrapped.font=m(e,this.scale_.x)}get fontKerning(){return this.wrapped.fontKerning}set fontKerning(e){this.wrapped.fontKerning=e}get textAlign(){return this.wrapped.textAlign}set textAlign(e){this.wrapped.textAlign=e}get textBaseline(){return this.wrapped.textBaseline}set textBaseline(e){this.wrapped.textBaseline=e}getTransform(){return this.wrapped.getTransform()}resetTransform(){this.wrapped.resetTransform()}rotate(e){this.wrapped.rotate(e)}scale(e,t){this.wrapped.scale(e,t)}scissor(e,t=a.J.ZERO){const s=new $(this.scale_);return e=d(e,t),s.rect(...a.J.couple(a.$t.topLeft(e)),...a._.couple(a.$t.dims(e))),this.save(),this.clip(s.getPath()),()=>this.restore()}setTransform(e,t,s,r,i,o){this.wrapped.setTransform(e,t,s,r,i,o)}transform(e,t,s,r,i,o){this.wrapped.transform(e,t,s,r,i,o)}translate(e,t){this.wrapped.translate(e,t)}}const y=/(\d+(\.\d+)?)px/,m=(h,e)=>{var r;const t=Number((r=h.match(y))==null?void 0:r[1]);if(t==null)return h;const s=e.dim(t);return h.replace(y,`${s}px`)};class ${constructor(e=a.b.XY.IDENTITY,t){n(this,"scale_");n(this,"path");this.scale_=e,t instanceof Path2D||typeof t=="string"?this.path=new Path2D(t):this.path=new Path2D}addPath(e,t){this.path.addPath(e,t)}arc(e,t,s,r,i,o){this.path.arc(this.scale_.x.pos(e),this.scale_.y.pos(t),this.scale_.x.dim(s),r,i,o)}arcTo(e,t,s,r,i){this.path.arcTo(this.scale_.x.pos(e),this.scale_.y.pos(t),this.scale_.x.pos(s),this.scale_.y.pos(r),this.scale_.x.dim(i))}bezierCurveTo(e,t,s,r,i,o){this.path.bezierCurveTo(this.scale_.x.pos(e),this.scale_.y.pos(t),this.scale_.x.pos(s),this.scale_.y.pos(r),this.scale_.x.pos(i),this.scale_.y.pos(o))}closePath(){this.path.closePath()}ellipse(e,t,s,r,i,o,p,l){this.path.ellipse(this.scale_.x.pos(e),this.scale_.y.pos(t),this.scale_.x.dim(s),this.scale_.y.dim(r),i,o,p,l)}lineTo(e,t){this.path.lineTo(this.scale_.x.pos(e),this.scale_.y.pos(t))}moveTo(e,t){this.path.moveTo(this.scale_.x.pos(e),this.scale_.y.pos(t))}quadraticCurveTo(e,t,s,r){this.path.quadraticCurveTo(this.scale_.x.pos(e),this.scale_.y.pos(t),this.scale_.x.pos(s),this.scale_.y.pos(r))}rect(e,t,s,r){this.path.rect(this.scale_.x.pos(e),this.scale_.y.pos(t),this.scale_.x.dim(s),this.scale_.y.dim(r))}roundRect(e,t,s,r,i){const o=this.scaleRadii(i);this.path.roundRect(this.scale_.x.pos(e),this.scale_.y.pos(t),this.scale_.x.dim(s),this.scale_.y.dim(r),o)}scaleRadii(e){return e==null?e:typeof e=="number"?this.scale_.x.dim(e):Array.isArray(e)?e.map(t=>this.scaleRadius(t)):this.scaleRadius(e)}scaleRadius(e){return typeof e=="number"?this.scale_.x.dim(e):{x:this.scale_.x.dim(e.x??0),y:this.scale_.y.dim(e.y??0)}}getPath(){return this.path}}const D=`precision mediump float;
|
|
2
|
-
|
|
3
|
-
void main(void) {
|
|
4
|
-
gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
|
|
5
|
-
}
|
|
6
|
-
`,I=`attribute vec4 a_position;
|
|
7
|
-
|
|
8
|
-
void main(void) {
|
|
9
|
-
gl_Position = a_position;
|
|
10
|
-
}
|
|
11
|
-
`,C=h=>new Error(`failed to compile webgl program: ${h}`),B=new Error("null shader encountered");let b=class{constructor(e,t,s){n(this,"renderCtx");n(this,"prog");n(this,"vertShader");n(this,"fragShader");n(this,"uniformLocCache",new Map);this.renderCtx=e;const r=e.gl.createProgram();if(r==null)throw C("failed to create program");this.prog=r,this.vertShader=t,this.fragShader=s,this.compile()}setAsActive(){return this.renderCtx.gl.useProgram(this.prog),()=>this.renderCtx.gl.useProgram(null)}uniformXY(e,t){this.renderCtx.gl.uniform2fv(this.getUniformLoc(e),a.J.couple(t))}uniformColor(e,t){this.renderCtx.gl.uniform4fv(this.getUniformLoc(e),t.rgba1)}getUniformLoc(e){const t=this.uniformLocCache.get(e);if(t!=null)return t;const s=this.renderCtx.gl.getUniformLocation(this.prog,e);if(s==null)throw new Error(`unexpected missing uniform ${e}`);return this.uniformLocCache.set(e,s),s}compile(){const e=this.renderCtx.gl;this.compileShader(this.vertShader,e.VERTEX_SHADER),this.compileShader(this.fragShader,e.FRAGMENT_SHADER),e.linkProgram(this.prog)}compileShader(e,t){const s=this.renderCtx.gl,r=s.createShader(t);if(r==null)throw B;if(s.shaderSource(r,e),s.compileShader(r),!s.getShaderParameter(r,s.COMPILE_STATUS)){const o=s.getShaderInfoLog(r);throw s.deleteShader(r),C(o??"unknown")}s.attachShader(this.prog,r)}};const k=new Float32Array([0,0,0,0,0,0]);class G extends b{constructor(t){super(t,I,D);n(this,"positionBuffer");const s=t.gl.createBuffer();if(s==null)throw new _.Ze("webgl: failed to create buffer");this.positionBuffer=s,t.gl.bindBuffer(t.gl.ARRAY_BUFFER,this.positionBuffer),t.gl.bufferData(t.gl.ARRAY_BUFFER,k,t.gl.STATIC_DRAW)}exec(){const{gl:t}=this.renderCtx,s=t.getAttribLocation(this.prog,"a_position");t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer);const r=t.createVertexArray();t.bindVertexArray(r),t.enableVertexAttribArray(s),t.vertexAttribPointer(s,2,t.FLOAT,!1,0,0),this.setAsActive(),t.drawArrays(t.TRIANGLES,0,3)}}const S={high:1,low:0},T=v.$.hz(45);class O{constructor(e){n(this,"mutex",new _.Mutex);n(this,"requests",new Map);n(this,"cleanup",new Map);n(this,"afterRender");this.start(),this.afterRender=e}async set(e){let t;e.priority==="high"&&(t=await this.mutex.acquire());const s=this.requests.get(e.key);if(s==null)this.requests.set(e.key,e);else{const r=S[e.priority]>=S[s.priority],i=e.canvases.length>=s.canvases.length;r&&i&&this.requests.set(e.key,e)}t==null||t()}async render(){await this.mutex.runExclusive(async()=>{var i;const e=performance.now(),{requests:t}=this;if(t.size===0)return;await this.runCleanupsSync(),await this.renderSync();const s=performance.now(),r=v.w.milliseconds(s-e);r.greaterThan(T.period)&&console.warn(`Render loop for ${this.requests.size} took longer than ${T.period.toString()} to execute: ${r.milliseconds}`),this.requests.clear(),(i=this.afterRender)==null||i.call(this)})}async runCleanupsSync(){const{cleanup:e,requests:t}=this;for(const[s,r]of e.entries()){const i=t.get(s);i!=null&&(await r(i),e.delete(s))}}async renderSync(){const{requests:e}=this;for(const t of e.values())try{const s=await t.render();s!=null&&this.cleanup.set(t.key,s)}catch(s){console.error(s)}}async start(){do{try{await this.render()}catch(e){console.error(e)}await this.sleep()}while(!0)}async sleep(){return await new Promise(requestAnimationFrame)}}const R=h=>(h.textRendering="optimizeSpeed",h.imageSmoothingEnabled=!1,h),c=class c{constructor(e,t,s,r){n(this,"glCanvas");n(this,"upper2dCanvas");n(this,"lower2dCanvas");n(this,"gl");n(this,"lower2d");n(this,"upper2d");n(this,"region");n(this,"dpr");n(this,"loop");n(this,"clearProgram");n(this,"os");this.upper2dCanvas=s,this.lower2dCanvas=t,this.glCanvas=e,this.os=r;const i=this.lower2dCanvas.getContext("2d");if(i==null)throw new Error("Could not get 2D context");this.lower2d=R(new u(i));const o=this.upper2dCanvas.getContext("2d");if(o==null)throw new Error("Could not get 2D context");this.upper2d=R(new u(o));const p={preserveDrawingBuffer:!0,powerPreference:"high-performance",stencil:!1,depth:!1},l=this.glCanvas.getContext("webgl2",p);if(l==null)throw new Error("Could not get WebGL context");l.disable(l.DEPTH_TEST),l.disable(l.STENCIL_TEST),l.disable(l.CULL_FACE),l.disable(l.DITHER),this.gl=l,this.glCanvas.oncontextlost=console.log;const f=()=>{this.gl.flush(),this.gl.finish()};this.loop=new O(f),this.region=a.$t.ZERO,this.dpr=1,this.os==="Windows"&&(this.clearProgram=new G(this))}static create(e,t,s,r,i){const o=new c(t,s,r,i);return e.set(c.CONTEXT_KEY,o),o}static useOptional(e){return e.getOptional(c.CONTEXT_KEY)}static use(e){return e.get(c.CONTEXT_KEY)}update(e){e.set(c.CONTEXT_KEY,this)}resize(e,t){a.$t.equals(this.region,e)&&this.dpr===t||(this.region=e,this.dpr=t,this.resizeCanvas(this.glCanvas),this.resizeCanvas(this.upper2dCanvas),this.resizeCanvas(this.lower2dCanvas),this.lower2d.scale(this.dpr,this.dpr),this.upper2d.scale(this.dpr,this.dpr),this.gl.viewport(0,0,a.$t.width(e)*t,a.$t.height(e)*t))}resizeCanvas(e){e.width=a.$t.width(this.region)*this.dpr,e.height=a.$t.height(this.region)*this.dpr}get aspect(){return a.$t.aspect(this.region)}scaleRegion(e){return new a.b.XY(a.b.Scale.scale(0,1).scale(a.$t.width(e)).translate(a.$t.left(e)).reBound(a.$t.width(this.region)).scale(-1,1),a.b.Scale.scale(0,1).scale(a.$t.height(e)).invert().translate(a.$t.top(e)).reBound(a.$t.height(this.region)).scale(-1,1).invert())}scissor(e,t=a.J.ZERO,s){const r=[];return s.includes("upper2d")&&r.push(this.upper2d.scissor(e,t)),s.includes("lower2d")&&r.push(this.lower2d.scissor(e,t)),s.includes("gl")&&r.push(this.scissorGL(e,t)),()=>r.forEach(i=>i())}scissorGL(e,t=a.J.ZERO){return this.gl.enable(this.gl.SCISSOR_TEST),e=d(e,t),this.gl.scissor(a.$t.left(e)*this.dpr,(a.$t.height(this.region)-a.$t.bottom(e))*this.dpr,a.$t.width(e)*this.dpr,a.$t.height(e)*this.dpr),()=>this.gl.disable(this.gl.SCISSOR_TEST)}erase(e,t=a.J.ZERO,...s){t=a.J.construct(t),s.length===0&&(s=["upper2d","lower2d","gl"]),s.includes("upper2d")&&this.eraseCanvas(this.upper2d,e,t),s.includes("lower2d")&&this.eraseCanvas(this.lower2d,e,t),s.includes("gl")&&this.eraseGL(e,t)}eraseGL(e,t=a.J.ZERO){var i;const{gl:s}=this,r=this.scissorGL(d(e,t));s.clearColor(...a.ZERO.rgba1),s.clear(s.COLOR_BUFFER_BIT),this.os==="Windows"&&((i=this.clearProgram)==null||i.exec()),r()}eraseCanvas(e,t,s=a.J.ZERO){const r=d(t,s);e.clearRect(...a.J.couple(a.$t.topLeft(r)),...a._.couple(a.$t.dims(r)))}};n(c,"CONTEXT_KEY",a.CSS.B("render-context"));let g=c;const A=x.z.object({region:a.$t.box,enabled:x.z.boolean().optional().default(!1)}),E=["gl","lower2d","upper2d"];class w extends _.Leaf{constructor(){super(...arguments);n(this,"schema",A)}async afterUpdate(t){this.deleted||(this.internal.renderCtx=g.use(t),await this.renderOnLifecycleChange())}async afterDelete(){await this.renderOnLifecycleChange()}async renderOnLifecycleChange(){await this.internal.renderCtx.loop.set({key:`${this.type}-${this.key}`,render:this.render.bind(this),priority:"high",canvases:E})}async render(){this.deleted||!this.state.enabled||this.internal.renderCtx.erase(this.state.region,a.J.construct(0),...E)}}n(w,"TYPE","eraser");const Y={[w.TYPE]:w};exports.Context=g;exports.Eraser=w;exports.GLProgram=b;exports.Loop=O;exports.REGISTRY=Y;exports.eraserStateZ=A;
|