@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/css.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./css-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./css-9iEiTRNL.cjs"),t=require("./units-CX_coN92.cjs");exports.CSS=e.CSS;exports.newBEM=e.newBEM;exports.createHexOpacityVariants=t.createHexOpacityVariants;exports.unitProperty=t.unitProperty;
|
package/dist/css.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as e, n as t } from "./css-
|
|
2
|
-
import { c as s, u as n } from "./units-
|
|
1
|
+
import { C as e, n as t } from "./css-Cnb9DQMD.js";
|
|
2
|
+
import { c as s, u as n } from "./units-Ct3Xl5nK.js";
|
|
3
3
|
export {
|
|
4
4
|
e as CSS,
|
|
5
5
|
s as createHexOpacityVariants,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("./css-9iEiTRNL.cjs"),j=r=>JSON.parse(JSON.stringify(r)),d=(r,...l)=>(l.forEach(i=>{let t=r;const s=i.split(".");s.forEach((n,e)=>{e===s.length-1?delete t[n]:n in t&&(t=t[n])})}),r),O=(r,l,i="")=>{const t={},s=(n,e,o)=>{if(typeof n!=typeof e||n===null||e===null){t[o]=[n,e];return}if(typeof n=="object"&&typeof e=="object")if(Array.isArray(n)&&Array.isArray(e)){if(n.length!==e.length){t[o]=[n,e];return}for(let f=0;f<n.length;f++)s(n[f],e[f],`${o}[${f}]`)}else new Set([...Object.keys(n),...Object.keys(e)]).forEach(f=>{s(n[f],e[f],o!==""?`${o}.${f}`:f)});else n!==e&&(t[o]=[n,e])};return s(r,l,i),t},p=(r,l)=>{const i=Array.isArray(r),t=Array.isArray(l);if(i!==t)return!1;if(i&&t){const e=r,o=l;if(e.length!==o.length)return!1;for(let f=0;f<e.length;f++)if(!p(e[f],o[f]))return!1;return!0}if(r==null||l==null||typeof r!="object"||typeof l!="object")return r===l;if("equals"in r)return r.equals(l);const s=Object.keys(r),n=Object.keys(l);if(s.length!==n.length)return!1;for(const e of s){const o=r[e],f=l[e];if(typeof o=="object"&&typeof f=="object"){if(!p(o,f))return!1}else if(o!==f)return!1}return!0},b=(r,l)=>{if(typeof r!="object"||r==null)return r===l;const i=Object.keys(r),t=Object.keys(l);if(t.length>i.length)return!1;for(const s of t){const n=r[s],e=l[s];if(typeof n=="object"&&typeof e=="object"){if(!b(n,e))return!1}else if(n!==e)return!1}return!0},h=(r,...l)=>{if(l.length===0)return r;const i=l.shift();if(a.o(r)&&a.o(i))for(const t in i)try{a.o(i[t])?(t in r||Object.assign(r,{[t]:{}}),h(r[t],i[t])):Object.assign(r,{[t]:i[t]})}catch(s){throw s instanceof TypeError?new TypeError(`.${t}: ${s.message}`):s}return h(r,...l)},A=(r,l,i)=>{const t=(s,n,e)=>{var o,f;if(((o=e.def)==null?void 0:o.type)==="union")return e.def.options.reduce((c,u)=>t(c,n,u),s);if(((f=e.def)==null?void 0:f.type)==="intersection"){const c=t(s,n,e.def.left);return t(c,n,e.def.right)}for(const c in n){const u=n[c],y=e==null?void 0:e.shape;if(y!=null&&y[c]){const g=y[c].safeParse(u);g.success&&(s[c]=g.data)}else typeof u=="object"&&!Array.isArray(u)&&u!==null&&e&&e.shape&&e.shape[c]&&(s[c]||(s[c]={}),t(s[c],u,e.shape[c]))}return s};return t({...r},l,i)},v=Object.freeze(Object.defineProperty({__proto__:null,copy:j,deleteD:d,difference:O,element:a.p,equal:p,get:a.c,has:a.g$1,override:h,overrideValidItems:A,partialEqual:b,pathsMatch:a.y,remove:a.h,set:a.f,transformPath:a.u},Symbol.toStringTag,{value:"Module"}));exports.x=v;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { u as j, f as d, h as O, y as A, a as m, c as v, p as $, o as y } from "./css-Cnb9DQMD.js";
|
|
2
|
+
const k = (r) => JSON.parse(JSON.stringify(r)), E = (r, ...l) => (l.forEach((o) => {
|
|
3
|
+
let t = r;
|
|
4
|
+
const s = o.split(".");
|
|
5
|
+
s.forEach((n, e) => {
|
|
6
|
+
e === s.length - 1 ? delete t[n] : n in t && (t = t[n]);
|
|
7
|
+
});
|
|
8
|
+
}), r), S = (r, l, o = "") => {
|
|
9
|
+
const t = {}, s = (n, e, i) => {
|
|
10
|
+
if (typeof n != typeof e || n === null || e === null) {
|
|
11
|
+
t[i] = [n, e];
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
if (typeof n == "object" && typeof e == "object")
|
|
15
|
+
if (Array.isArray(n) && Array.isArray(e)) {
|
|
16
|
+
if (n.length !== e.length) {
|
|
17
|
+
t[i] = [n, e];
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
for (let f = 0; f < n.length; f++) s(n[f], e[f], `${i}[${f}]`);
|
|
21
|
+
} else
|
|
22
|
+
(/* @__PURE__ */ new Set([...Object.keys(n), ...Object.keys(e)])).forEach((f) => {
|
|
23
|
+
s(n[f], e[f], i !== "" ? `${i}.${f}` : f);
|
|
24
|
+
});
|
|
25
|
+
else n !== e && (t[i] = [n, e]);
|
|
26
|
+
};
|
|
27
|
+
return s(r, l, o), t;
|
|
28
|
+
}, p = (r, l) => {
|
|
29
|
+
const o = Array.isArray(r), t = Array.isArray(l);
|
|
30
|
+
if (o !== t) return !1;
|
|
31
|
+
if (o && t) {
|
|
32
|
+
const e = r, i = l;
|
|
33
|
+
if (e.length !== i.length) return !1;
|
|
34
|
+
for (let f = 0; f < e.length; f++) if (!p(e[f], i[f])) return !1;
|
|
35
|
+
return !0;
|
|
36
|
+
}
|
|
37
|
+
if (r == null || l == null || typeof r != "object" || typeof l != "object")
|
|
38
|
+
return r === l;
|
|
39
|
+
if ("equals" in r) return r.equals(l);
|
|
40
|
+
const s = Object.keys(r), n = Object.keys(l);
|
|
41
|
+
if (s.length !== n.length) return !1;
|
|
42
|
+
for (const e of s) {
|
|
43
|
+
const i = r[e], f = l[e];
|
|
44
|
+
if (typeof i == "object" && typeof f == "object") {
|
|
45
|
+
if (!p(i, f)) return !1;
|
|
46
|
+
} else if (i !== f) return !1;
|
|
47
|
+
}
|
|
48
|
+
return !0;
|
|
49
|
+
}, b = (r, l) => {
|
|
50
|
+
if (typeof r != "object" || r == null) return r === l;
|
|
51
|
+
const o = Object.keys(r), t = Object.keys(l);
|
|
52
|
+
if (t.length > o.length) return !1;
|
|
53
|
+
for (const s of t) {
|
|
54
|
+
const n = r[s], e = l[s];
|
|
55
|
+
if (typeof n == "object" && typeof e == "object") {
|
|
56
|
+
if (!b(n, e)) return !1;
|
|
57
|
+
} else if (n !== e) return !1;
|
|
58
|
+
}
|
|
59
|
+
return !0;
|
|
60
|
+
}, h = (r, ...l) => {
|
|
61
|
+
if (l.length === 0) return r;
|
|
62
|
+
const o = l.shift();
|
|
63
|
+
if (y(r) && y(o))
|
|
64
|
+
for (const t in o)
|
|
65
|
+
try {
|
|
66
|
+
y(o[t]) ? (t in r || Object.assign(r, { [t]: {} }), h(r[t], o[t])) : Object.assign(r, { [t]: o[t] });
|
|
67
|
+
} catch (s) {
|
|
68
|
+
throw s instanceof TypeError ? new TypeError(`.${t}: ${s.message}`) : s;
|
|
69
|
+
}
|
|
70
|
+
return h(r, ...l);
|
|
71
|
+
}, _ = (r, l, o) => {
|
|
72
|
+
const t = (s, n, e) => {
|
|
73
|
+
var i, f;
|
|
74
|
+
if (((i = e.def) == null ? void 0 : i.type) === "union")
|
|
75
|
+
return e.def.options.reduce(
|
|
76
|
+
(a, c) => t(a, n, c),
|
|
77
|
+
s
|
|
78
|
+
);
|
|
79
|
+
if (((f = e.def) == null ? void 0 : f.type) === "intersection") {
|
|
80
|
+
const a = t(s, n, e.def.left);
|
|
81
|
+
return t(a, n, e.def.right);
|
|
82
|
+
}
|
|
83
|
+
for (const a in n) {
|
|
84
|
+
const c = n[a], u = e == null ? void 0 : e.shape;
|
|
85
|
+
if (u != null && u[a]) {
|
|
86
|
+
const g = u[a].safeParse(c);
|
|
87
|
+
g.success && (s[a] = g.data);
|
|
88
|
+
} else typeof c == "object" && !Array.isArray(c) && c !== null && e && e.shape && e.shape[a] && (s[a] || (s[a] = {}), t(s[a], c, e.shape[a]));
|
|
89
|
+
}
|
|
90
|
+
return s;
|
|
91
|
+
};
|
|
92
|
+
return t({ ...r }, l, o);
|
|
93
|
+
}, w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
94
|
+
__proto__: null,
|
|
95
|
+
copy: k,
|
|
96
|
+
deleteD: E,
|
|
97
|
+
difference: S,
|
|
98
|
+
element: $,
|
|
99
|
+
equal: p,
|
|
100
|
+
get: v,
|
|
101
|
+
has: m,
|
|
102
|
+
override: h,
|
|
103
|
+
overrideValidItems: _,
|
|
104
|
+
partialEqual: b,
|
|
105
|
+
pathsMatch: A,
|
|
106
|
+
remove: O,
|
|
107
|
+
set: d,
|
|
108
|
+
transformPath: j
|
|
109
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
110
|
+
export {
|
|
111
|
+
w as x
|
|
112
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { S as s } from "./css-Cnb9DQMD.js";
|
|
2
|
+
let a = null;
|
|
3
|
+
const u = () => (a ?? (a = document.createElement("canvas")), a), h = (t, e, n) => {
|
|
4
|
+
if (s.RUNTIME === "node") return { width: 0, height: 0 };
|
|
5
|
+
n ?? (n = u().getContext("2d")), n.font = e;
|
|
6
|
+
const o = n.measureText(t);
|
|
7
|
+
return i(o);
|
|
8
|
+
}, i = (t) => ({
|
|
9
|
+
width: Math.trunc(
|
|
10
|
+
Math.abs(t.actualBoundingBoxLeft) + Math.abs(t.actualBoundingBoxRight)
|
|
11
|
+
),
|
|
12
|
+
height: Math.trunc(
|
|
13
|
+
Math.abs(t.actualBoundingBoxAscent) + Math.abs(t.actualBoundingBoxDescent)
|
|
14
|
+
)
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
i as a,
|
|
18
|
+
h as d
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("./css-9iEiTRNL.cjs");let e=null;const u=()=>(e??(e=document.createElement("canvas")),e),c=(t,a,n)=>{if(i.S.RUNTIME==="node")return{width:0,height:0};n??(n=u().getContext("2d")),n.font=a;const o=n.measureText(t);return s(o)},s=t=>({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;exports.dimensionsFromMetrics=s;
|
package/dist/dropdown.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./Dropdown-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./Dropdown-BSSe1E1e.cjs");exports.Dropdown=o.Dropdown;
|
package/dist/dropdown.js
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";var V=Object.defineProperty;var K=(o,t,e)=>t in o?V(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var h=(o,t,e)=>K(o,typeof t!="symbol"?t+"":t,e);const n=require("./css-9iEiTRNL.cjs"),m=require("zod"),f=require("./provider-aWtsGnV8.cjs"),k=require("./dimensions-By-vgVks.cjs"),F=m.z.object({include:m.z.string().array().optional(),exclude:m.z.string().array().optional(),level:m.z.enum(f.g.LOG_LEVELS).optional().default("info")}),A="alamos-provider";class S extends f.Composite{constructor(){super(...arguments);h(this,"schema",F)}afterUpdate(e){if(e.getOptional(A)!=null)return;const i=[],{include:r,exclude:a,level:c}=this.state;(r!=null||a!=null)&&i.push(f.g.logLevelKeyFiler({include:r,exclude:a})),c!=null&&i.push(f.g.logThresholdFilter(c)),i.length===0&&i.push(()=>!1),this.internal.ins=new f.g.Instrumentation({key:"aether",logger:new f.g.Logger({filters:i})}),e.set(A,this.internal.ins)}}h(S,"TYPE","alamos.Provider");const q=(o,t)=>{const e=o.get(A);if(e==null)throw new Error("No instrumentation provider");return t==null?e:e.child(t)},Z={[S.TYPE]:S},C=(o,t)=>n.$t.construct(n.$t.left(o)-t.x,n.$t.top(o)-t.y,n.$t.width(o)+t.x*2,n.$t.height(o)+t.y*2);class T{constructor(t,e,s,i=n.b.XY.IDENTITY){h(this,"scale_");h(this,"wrapped");h(this,"atlasRegistry");h(this,"cachedFont",null);h(this,"cachedFillStyle",null);h(this,"cachedStrokeStyle",null);h(this,"cachedLineWidth",null);h(this,"cachedGlobalAlpha",null);h(this,"cachedTextAlign",null);h(this,"cachedTextBaseline",null);h(this,"cachedLineCap",null);h(this,"cachedLineJoin",null);h(this,"cachedMiterLimit",null);h(this,"dpr");this.wrapped=t,this.scale_=i,this.atlasRegistry=e,this.dpr=s}get fontStretch(){return this.wrapped.fontStretch}set fontStretch(t){this.wrapped.fontStretch=t}get fontVariantCaps(){return this.wrapped.fontVariantCaps}set fontVariantCaps(t){this.wrapped.fontVariantCaps=t}isContextLost(){return this.wrapped.isContextLost()}get wordSpacing(){return this.wrapped.wordSpacing}set wordSpacing(t){this.wrapped.wordSpacing=t}get letterSpacing(){return this.wrapped.letterSpacing}set letterSpacing(t){this.wrapped.letterSpacing=t}get textRendering(){return this.wrapped.textRendering}set textRendering(t){this.wrapped.textRendering=t}reset(){this.wrapped.reset()}applyScale(t){return new T(this,this.atlasRegistry,this.dpr,t)}get canvas(){return this.wrapped.canvas}get miterLimit(){return this.cachedMiterLimit??this.wrapped.miterLimit}set miterLimit(t){const e=this.scale_.x.dim(t);e!==this.cachedMiterLimit&&(this.cachedMiterLimit=e,this.wrapped.miterLimit=e)}get globalAlpha(){return this.cachedGlobalAlpha??this.wrapped.globalAlpha}set globalAlpha(t){t!==this.cachedGlobalAlpha&&(this.cachedGlobalAlpha=t,this.wrapped.globalAlpha=t)}get globalCompositeOperation(){return this.wrapped.globalCompositeOperation}set globalCompositeOperation(t){this.wrapped.globalCompositeOperation=t}get fillStyle(){return this.cachedFillStyle??this.wrapped.fillStyle}set fillStyle(t){t!==this.cachedFillStyle&&(this.cachedFillStyle=t,this.wrapped.fillStyle=t)}get strokeStyle(){return this.cachedStrokeStyle??this.wrapped.strokeStyle}set strokeStyle(t){t!==this.cachedStrokeStyle&&(this.cachedStrokeStyle=t,this.wrapped.strokeStyle=t)}drawImage(t,e,s,i,r,a,c,p,d){this.wrapped.drawImage(t,e,s,i,r,a!=null?this.scale_.x.pos(a):a,c!=null?this.scale_.y.pos(c):c,p!=null?this.scale_.x.dim(p):p,d!=null?this.scale_.y.dim(d):d)}beginPath(){this.wrapped.beginPath()}clip(t,e){this.wrapped.clip(t,e)}fill(t,e){if(t==null)return this.wrapped.fill();this.wrapped.fill(t,e)}isPointInPath(t,e,s,i){return this.wrapped.isPointInPath(t,e,s,i)}isPointInStroke(t,e,s){return this.wrapped.isPointInStroke(t,e,s)}stroke(t){if(t==null)return this.wrapped.stroke();this.wrapped.stroke(t)}createConicGradient(t,e,s){return this.wrapped.createConicGradient(t,e,s)}createLinearGradient(t,e,s,i){return this.wrapped.createLinearGradient(t,e,s,i)}createPattern(t,e){return this.wrapped.createPattern(t,e)}createRadialGradient(t,e,s,i,r,a){return this.wrapped.createRadialGradient(t,e,s,i,r,a)}get filter(){return this.wrapped.filter}set filter(t){this.wrapped.filter=t}createImageData(t,e,s){return this.wrapped.createImageData(t,e,s)}getImageData(t,e,s,i,r){return this.wrapped.getImageData(t,e,s,i,r)}putImageData(t,e,s,i,r,a,c){this.wrapped.putImageData(t,e,s,i,r,a,c)}get imageSmoothingEnabled(){return this.wrapped.imageSmoothingEnabled}set imageSmoothingEnabled(t){this.wrapped.imageSmoothingEnabled=t}get imageSmoothingQuality(){return this.wrapped.imageSmoothingQuality}set imageSmoothingQuality(t){this.wrapped.imageSmoothingQuality=t}arc(t,e,s,i,r,a){this.wrapped.arc(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),i,r,a)}arcTo(t,e,s,i,r){this.wrapped.arcTo(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.pos(s),this.scale_.y.pos(i),this.scale_.x.dim(r))}bezierCurveTo(t,e,s,i,r,a){this.wrapped.bezierCurveTo(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.pos(s),this.scale_.y.pos(i),this.scale_.x.pos(r),this.scale_.y.pos(a))}closePath(){this.wrapped.closePath()}ellipse(t,e,s,i,r,a,c,p){this.wrapped.ellipse(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i),r,a,c,p)}lineTo(t,e){this.wrapped.lineTo(this.scale_.x.pos(t),this.scale_.y.pos(e))}moveTo(t,e){this.wrapped.moveTo(this.scale_.x.pos(t),this.scale_.y.pos(e))}quadraticCurveTo(t,e,s,i){this.wrapped.quadraticCurveTo(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.pos(s),this.scale_.y.pos(i))}rect(t,e,s,i){this.wrapped.rect(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i))}roundRect(t,e,s,i,r){this.wrapped.roundRect(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i),typeof r=="number"?this.scale_.x.dim(r):r)}get lineCap(){return this.cachedLineCap??this.wrapped.lineCap}set lineCap(t){t!==this.cachedLineCap&&(this.cachedLineCap=t,this.wrapped.lineCap=t)}get lineDashOffset(){return this.wrapped.lineDashOffset}set lineDashOffset(t){this.wrapped.lineDashOffset=this.scale_.x.dim(t)}get lineJoin(){return this.cachedLineJoin??this.wrapped.lineJoin}set lineJoin(t){t!==this.cachedLineJoin&&(this.cachedLineJoin=t,this.wrapped.lineJoin=t)}get lineWidth(){return this.cachedLineWidth??this.wrapped.lineWidth}set lineWidth(t){const e=this.scale_.x.dim(t);e!==this.cachedLineWidth&&(this.cachedLineWidth=e,this.wrapped.lineWidth=e)}getLineDash(){return this.wrapped.getLineDash()}setLineDash(t){const e=Array.from(t).map(s=>this.scale_.x.dim(s));this.wrapped.setLineDash(e)}clearRect(t,e,s,i){this.wrapped.clearRect(t,e,s,i)}fillRect(t,e,s,i){this.wrapped.fillRect(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i))}strokeRect(t,e,s,i){this.wrapped.strokeRect(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i))}get shadowBlur(){return this.wrapped.shadowBlur}set shadowBlur(t){this.wrapped.shadowBlur=t}get shadowColor(){return this.wrapped.shadowColor}set shadowColor(t){this.wrapped.shadowColor=t}get shadowOffsetX(){return this.wrapped.shadowOffsetX}set shadowOffsetX(t){this.wrapped.shadowOffsetX=t}get shadowOffsetY(){return this.wrapped.shadowOffsetY}restore(){this.cachedFillStyle=null,this.cachedStrokeStyle=null,this.cachedLineWidth=null,this.cachedGlobalAlpha=null,this.cachedTextAlign=null,this.cachedTextBaseline=null,this.cachedLineCap=null,this.cachedLineJoin=null,this.cachedMiterLimit=null,this.cachedFont=null,this.wrapped.restore()}save(){this.wrapped.save()}fillText(t,e,s,i,r={}){const{useAtlas:a}=r;if(a==!0){this.atlasRegistry.get({font:this.font,textColor:this.fillStyle,dpr:this.dpr}).fillText(this,t,e,s);return}this.wrapped.fillText(t,this.scale_.x.pos(e),this.scale_.y.pos(s),i!=null?this.scale_.x.dim(i):void 0)}atlasMeasureText(t){return this.atlasRegistry.get({font:this.font,textColor:this.fillStyle,dpr:this.dpr}).measureText(t)}measureText(t){return this.wrapped.measureText(t)}textDimensions(t,e={}){const{useAtlas:s}=e;let i;return s?i=this.atlasMeasureText(t):i=k.dimensionsFromMetrics(this.measureText(t)),i}strokeText(t,e,s,i){this.wrapped.strokeText(t,this.scale_.x.pos(e),this.scale_.y.pos(s),i!=null?this.scale_.x.dim(i):void 0)}get direction(){return this.wrapped.direction}set direction(t){this.wrapped.direction=t}get font(){return this.cachedFont!=null?this.cachedFont:this.wrapped.font}set font(t){t!==this.cachedFont&&(this.cachedFont=t,this.wrapped.font=this.cachedFont)}get fontKerning(){return this.wrapped.fontKerning}set fontKerning(t){this.wrapped.fontKerning=t}get textAlign(){return this.cachedTextAlign??this.wrapped.textAlign}set textAlign(t){t!==this.cachedTextAlign&&(this.cachedTextAlign=t,this.wrapped.textAlign=t)}get textBaseline(){return this.cachedTextBaseline??this.wrapped.textBaseline}set textBaseline(t){t!==this.cachedTextBaseline&&(this.cachedTextBaseline=t,this.wrapped.textBaseline=t)}getTransform(){return this.wrapped.getTransform()}resetTransform(){this.wrapped.resetTransform()}rotate(t){this.wrapped.rotate(t)}scale(t,e){this.wrapped.scale(t,e),this.dpr=t}scissor(t,e=n.J.ZERO){const s=new H(this.scale_);return t=C(t,e),s.rect(...n.J.couple(n.$t.topLeft(t)),...n._.couple(n.$t.dims(t))),this.save(),this.clip(s.getPath()),()=>this.restore()}setTransform(t,e,s,i,r,a){this.wrapped.setTransform(t,e,s,i,r,a)}transform(t,e,s,i,r,a){this.wrapped.transform(t,e,s,i,r,a)}translate(t,e){this.wrapped.translate(t,e)}}class H{constructor(t=n.b.XY.IDENTITY,e){h(this,"scale_");h(this,"path");this.scale_=t,e instanceof Path2D||typeof e=="string"?this.path=new Path2D(e):this.path=new Path2D}addPath(t,e){this.path.addPath(t,e)}arc(t,e,s,i,r,a){this.path.arc(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),i,r,a)}arcTo(t,e,s,i,r){this.path.arcTo(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.pos(s),this.scale_.y.pos(i),this.scale_.x.dim(r))}bezierCurveTo(t,e,s,i,r,a){this.path.bezierCurveTo(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.pos(s),this.scale_.y.pos(i),this.scale_.x.pos(r),this.scale_.y.pos(a))}closePath(){this.path.closePath()}ellipse(t,e,s,i,r,a,c,p){this.path.ellipse(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i),r,a,c,p)}lineTo(t,e){this.path.lineTo(this.scale_.x.pos(t),this.scale_.y.pos(e))}moveTo(t,e){this.path.moveTo(this.scale_.x.pos(t),this.scale_.y.pos(e))}quadraticCurveTo(t,e,s,i){this.path.quadraticCurveTo(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.pos(s),this.scale_.y.pos(i))}rect(t,e,s,i){this.path.rect(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i))}roundRect(t,e,s,i,r){const a=this.scaleRadii(r);this.path.roundRect(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i),a)}scaleRadii(t){return t==null?t:typeof t=="number"?this.scale_.x.dim(t):Array.isArray(t)?t.map(e=>this.scaleRadius(e)):this.scaleRadius(t)}scaleRadius(t){return typeof t=="number"?this.scale_.x.dim(t):{x:this.scale_.x.dim(t.x??0),y:this.scale_.y.dim(t.y??0)}}getPath(){return this.path}}const Q=`precision mediump float;
|
|
2
|
+
|
|
3
|
+
void main(void) {
|
|
4
|
+
gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
|
|
5
|
+
}
|
|
6
|
+
`,j=`attribute vec4 a_position;
|
|
7
|
+
|
|
8
|
+
void main(void) {
|
|
9
|
+
gl_Position = a_position;
|
|
10
|
+
}
|
|
11
|
+
`,O=o=>new Error(`failed to compile webgl program: ${o}`),tt=new Error("null shader encountered");let B=class{constructor(t,e,s){h(this,"renderCtx");h(this,"prog");h(this,"vertShader");h(this,"fragShader");h(this,"uniformLocCache",new Map);this.renderCtx=t;const i=t.gl.createProgram();if(i==null)throw O("failed to create program");this.prog=i,this.vertShader=e,this.fragShader=s,this.compile()}setAsActive(){return this.renderCtx.gl.useProgram(this.prog),()=>this.renderCtx.gl.useProgram(null)}uniformXY(t,e){this.renderCtx.gl.uniform2fv(this.getUniformLoc(t),n.J.couple(e))}uniformColor(t,e){this.renderCtx.gl.uniform4fv(this.getUniformLoc(t),n.Dt.rgba1(e))}getUniformLoc(t){const e=this.uniformLocCache.get(t);if(e!=null)return e;const s=this.renderCtx.gl.getUniformLocation(this.prog,t);if(s==null)throw new Error(`unexpected missing uniform ${t}`);return this.uniformLocCache.set(t,s),s}compile(){const t=this.renderCtx.gl;this.compileShader(this.vertShader,t.VERTEX_SHADER),this.compileShader(this.fragShader,t.FRAGMENT_SHADER),t.linkProgram(this.prog)}compileShader(t,e){const s=this.renderCtx.gl,i=s.createShader(e);if(i==null)throw tt;if(s.shaderSource(i,t),s.compileShader(i),!s.getShaderParameter(i,s.COMPILE_STATUS)){const a=s.getShaderInfoLog(i);throw s.deleteShader(i),O(a??"unknown")}s.attachShader(this.prog,i)}};const et=new Float32Array([0,0,0,0,0,0]);class st extends B{constructor(e){super(e,j,Q);h(this,"positionBuffer");const s=e.gl.createBuffer();if(s==null)throw new f.Qt("webgl: failed to create buffer");this.positionBuffer=s,e.gl.bindBuffer(e.gl.ARRAY_BUFFER,this.positionBuffer),e.gl.bufferData(e.gl.ARRAY_BUFFER,et,e.gl.STATIC_DRAW)}exec(){const{gl:e}=this.renderCtx,s=e.getAttribLocation(this.prog,"a_position");e.bindBuffer(e.ARRAY_BUFFER,this.positionBuffer);const i=e.createVertexArray();e.bindVertexArray(i),e.enableVertexAttribArray(s),e.vertexAttribPointer(s,2,e.FLOAT,!1,0,0),this.setAsActive(),e.drawArrays(e.TRIANGLES,0,3)}}const it=new Error("request for lock canceled");var rt=function(o,t,e,s){function i(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function c(l){try{d(s.next(l))}catch(u){a(u)}}function p(l){try{d(s.throw(l))}catch(u){a(u)}}function d(l){l.done?r(l.value):i(l.value).then(c,p)}d((s=s.apply(o,t||[])).next())})};class at{constructor(t,e=it){this._value=t,this._cancelError=e,this._queue=[],this._weightedWaiters=[]}acquire(t=1,e=0){if(t<=0)throw new Error(`invalid weight ${t}: must be positive`);return new Promise((s,i)=>{const r={resolve:s,reject:i,weight:t,priority:e},a=G(this._queue,c=>e<=c.priority);a===-1&&t<=this._value?this._dispatchItem(r):this._queue.splice(a+1,0,r)})}runExclusive(t){return rt(this,arguments,void 0,function*(e,s=1,i=0){const[r,a]=yield this.acquire(s,i);try{return yield e(r)}finally{a()}})}waitForUnlock(t=1,e=0){if(t<=0)throw new Error(`invalid weight ${t}: must be positive`);return this._couldLockImmediately(t,e)?Promise.resolve():new Promise(s=>{this._weightedWaiters[t-1]||(this._weightedWaiters[t-1]=[]),nt(this._weightedWaiters[t-1],{resolve:s,priority:e})})}isLocked(){return this._value<=0}getValue(){return this._value}setValue(t){this._value=t,this._dispatchQueue()}release(t=1){if(t<=0)throw new Error(`invalid weight ${t}: must be positive`);this._value+=t,this._dispatchQueue()}cancel(){this._queue.forEach(t=>t.reject(this._cancelError)),this._queue=[]}_dispatchQueue(){for(this._drainUnlockWaiters();this._queue.length>0&&this._queue[0].weight<=this._value;)this._dispatchItem(this._queue.shift()),this._drainUnlockWaiters()}_dispatchItem(t){const e=this._value;this._value-=t.weight,t.resolve([e,this._newReleaser(t.weight)])}_newReleaser(t){let e=!1;return()=>{e||(e=!0,this.release(t))}}_drainUnlockWaiters(){if(this._queue.length===0)for(let t=this._value;t>0;t--){const e=this._weightedWaiters[t-1];e&&(e.forEach(s=>s.resolve()),this._weightedWaiters[t-1]=[])}else{const t=this._queue[0].priority;for(let e=this._value;e>0;e--){const s=this._weightedWaiters[e-1];if(!s)continue;const i=s.findIndex(r=>r.priority<=t);(i===-1?s:s.splice(0,i)).forEach(r=>r.resolve())}}}_couldLockImmediately(t,e){return(this._queue.length===0||this._queue[0].priority<e)&&t<=this._value}}function nt(o,t){const e=G(o,s=>t.priority<=s.priority);o.splice(e+1,0,t)}function G(o,t){for(let e=o.length-1;e>=0;e--)if(t(o[e]))return e;return-1}var ht=function(o,t,e,s){function i(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function c(l){try{d(s.next(l))}catch(u){a(u)}}function p(l){try{d(s.throw(l))}catch(u){a(u)}}function d(l){l.done?r(l.value):i(l.value).then(c,p)}d((s=s.apply(o,t||[])).next())})};class M{constructor(t){this._semaphore=new at(1,t)}acquire(){return ht(this,arguments,void 0,function*(t=0){const[,e]=yield this._semaphore.acquire(1,t);return e})}runExclusive(t,e=0){return this._semaphore.runExclusive(()=>t(),1,e)}isLocked(){return this._semaphore.isLocked()}waitForUnlock(t=0){return this._semaphore.waitForUnlock(1,t)}release(){this._semaphore.isLocked()&&this._semaphore.release()}cancel(){return this._semaphore.cancel()}}const P={high:1,low:0};class Y{constructor({afterRender:t,instrumentation:e=f.g.Instrumentation.NOOP}){h(this,"mutex",new M);h(this,"requests",new Map);h(this,"cleanup",new Map);h(this,"afterRender");h(this,"instrumentation");h(this,"count",0);this.afterRender=t,this.instrumentation=e,this.start()}set(t){const e=this.requests.get(t.key);if(e==null)this.requests.set(t.key,t);else{const s=P[t.priority]>=P[e.priority],i=t.canvases.length>=e.canvases.length;s&&i&&this.requests.set(t.key,t)}}render(){var r;const{requests:t}=this;if(t.size===0)return;const e=this.instrumentation.T.bench("render-cycle"),s=this.instrumentation.T.bench("render-cycle-cleanup");this.runCleanupsSync(),s();const i=this.instrumentation.T.bench("render-cycle-render");this.renderSync(),i(),e(),this.requests.clear(),(r=this.afterRender)==null||r.call(this)}runCleanupsSync(){const{cleanup:t,requests:e}=this;t.forEach((s,i)=>{const r=e.get(i);r!=null&&(s(r),t.delete(i))})}renderSync(){const{requests:t}=this;t.forEach(e=>{try{const s=e.render();s!=null&&this.cleanup.set(e.key,s)}catch(s){console.error(s)}})}async start(){const t=()=>{try{this.render()}catch(e){console.error(e)}requestAnimationFrame(t)};requestAnimationFrame(t)}}const y=2,v=class v{constructor(t){h(this,"atlas");h(this,"charDims");h(this,"dpr");h(this,"charMap");const{font:e,dpr:s,characters:i=v.DEFAULT_CHARS,textColor:r}=t;this.dpr=s,this.charMap=new Map;const a=n.c$1.unique(Array.from(i)),p=new OffscreenCanvas(1,1).getContext("2d");p.font=e;const d=p.measureText("0");this.charDims=k.dimensionsFromMetrics(d),this.charDims.width+=y,this.charDims.height+=y;const l=a.length,u=this.charDims.width,_=this.charDims.height,x=Math.ceil(Math.sqrt(l)),J=Math.ceil(l/x);this.atlas=new OffscreenCanvas(u*x*this.dpr,_*(J+1)*this.dpr);const w=this.atlas.getContext("2d");w.scale(this.dpr,this.dpr),w.font=e,w.textBaseline="alphabetic",w.textAlign="left",w.fillStyle=n.Dt.hex(r),w.clearRect(0,0,this.atlas.width,this.atlas.height),a.forEach((D,L)=>{const U=L%x,z=Math.floor(L/x),N=U*u,X=(z+1)*_;w.fillText(D,N,X),this.charMap.set(D,L)})}fillText(t,e,s,i){const{width:r,height:a}=this.charDims,c=Math.ceil(Math.sqrt(this.charMap.size));for(let p=0;p<e.length;p++){const d=e[p],l=this.charMap.get(d);if(l===void 0)continue;const u=l%c,_=Math.floor(l/c);t.drawImage(this.atlas,u*r*this.dpr,_*a*this.dpr+y,r*this.dpr,a*this.dpr,s+p*r,i-a-y/this.dpr,r,a)}}measureText(t){return{width:t.length*this.charDims.width,height:this.charDims.height}}};h(v,"DEFAULT_CHARS","0123456789.:-umsNa∞ᴇ");let b=v;class ot{constructor(){h(this,"atlases");this.atlases=new Map}get(t){const e=`${t.font}-${n.Dt.hex(t.textColor)}-${t.dpr}-${t.characters}`;if(this.atlases.has(e))return this.atlases.get(e);const s=new b(t);return this.atlases.set(e,s),s}}const I=o=>(o.textRendering="optimizeSpeed",o.imageSmoothingEnabled=!1,o),g=class g{constructor(t,e,s,i,r){h(this,"glCanvas");h(this,"upper2dCanvas");h(this,"lower2dCanvas");h(this,"gl");h(this,"lower2d");h(this,"upper2d");h(this,"region");h(this,"dpr");h(this,"loop");h(this,"clearProgram");h(this,"os");h(this,"instrumentation");this.upper2dCanvas=s,this.lower2dCanvas=e,this.glCanvas=t,this.os=i,this.instrumentation=r,this.dpr=1;const a=this.lower2dCanvas.getContext("2d");if(a==null)throw new Error("Could not get 2D context");const c=new ot;this.lower2d=I(new T(a,c,this.dpr));const p=this.upper2dCanvas.getContext("2d");if(p==null)throw new Error("Could not get 2D context");this.upper2d=I(new T(p,c,this.dpr));const d={preserveDrawingBuffer:!0,powerPreference:"high-performance",stencil:!1,depth:!1},l=this.glCanvas.getContext("webgl2",d);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.error;const u=()=>{this.gl.flush(),this.gl.finish()};this.loop=new Y({afterRender:u,instrumentation:this.instrumentation}),this.region=n.$t.ZERO,this.os==="Windows"&&(this.clearProgram=new st(this))}static create(t,e,s,i,r){const a=q(t,"render_context"),c=new g(e,s,i,r,a);return t.set(g.CONTEXT_KEY,c),c}static useOptional(t){return t.getOptional(g.CONTEXT_KEY)}static use(t){return t.get(g.CONTEXT_KEY)}update(t){t.set(g.CONTEXT_KEY,this)}resize(t,e){n.$t.equals(this.region,t)&&this.dpr===e||(this.region=t,this.dpr=e,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,n.$t.width(t)*e,n.$t.height(t)*e))}resizeCanvas(t){t.width=n.$t.width(this.region)*this.dpr,t.height=n.$t.height(this.region)*this.dpr}get aspect(){return n.$t.aspect(this.region)}scaleRegion(t){return new n.b.XY(n.b.Scale.scale(0,1).scale(n.$t.width(t)).translate(n.$t.left(t)).reBound(n.$t.width(this.region)).scale(-1,1),n.b.Scale.scale(0,1).scale(n.$t.height(t)).invert().translate(n.$t.top(t)).reBound(n.$t.height(this.region)).scale(-1,1).invert())}scissor(t,e=n.J.ZERO,s){const i=[];return s.includes("upper2d")&&i.push(this.upper2d.scissor(t,e)),s.includes("lower2d")&&i.push(this.lower2d.scissor(t,e)),s.includes("gl")&&i.push(this.scissorGL(t,e)),()=>i.forEach(r=>r())}scissorGL(t,e=n.J.ZERO){return this.gl.enable(this.gl.SCISSOR_TEST),t=C(t,e),this.gl.scissor(n.$t.left(t)*this.dpr,(n.$t.height(this.region)-n.$t.bottom(t))*this.dpr,n.$t.width(t)*this.dpr,n.$t.height(t)*this.dpr),()=>this.gl.disable(this.gl.SCISSOR_TEST)}erase(t,e=n.J.ZERO,...s){e=n.J.construct(e),s.length===0&&(s=["upper2d","lower2d","gl"]),s.includes("upper2d")&&this.eraseCanvas(this.upper2d,t,e),s.includes("lower2d")&&this.eraseCanvas(this.lower2d,t,e),s.includes("gl")&&this.eraseGL(t,e)}eraseGL(t,e=n.J.ZERO){var r;const{gl:s}=this,i=this.scissorGL(C(t,e));s.clearColor(...n.Dt.rgba1(n.Dt.ZERO)),s.clear(s.COLOR_BUFFER_BIT),this.os==="Windows"&&((r=this.clearProgram)==null||r.exec()),i()}eraseCanvas(t,e,s=n.J.ZERO){const i=C(e,s);t.clearRect(...n.J.couple(n.$t.topLeft(i)),...n._.couple(n.$t.dims(i)))}};h(g,"CONTEXT_KEY",n.CSS.B("render-context"));let E=g;const W=m.z.object({region:n.$t.box,enabled:m.z.boolean().optional().default(!1)}),$=["gl","lower2d","upper2d"];class R extends f.Leaf{constructor(){super(...arguments);h(this,"schema",W)}afterUpdate(e){this.deleted||(this.internal.renderCtx=E.use(e),this.renderOnLifecycleChange())}afterDelete(){this.renderOnLifecycleChange()}renderOnLifecycleChange(){this.internal.renderCtx.loop.set({key:`${this.type}-${this.key}`,render:this.render.bind(this),priority:"high",canvases:$})}render(){this.deleted||!this.state.enabled||this.internal.renderCtx.erase(this.state.region,n.J.construct(0),...$)}}h(R,"TYPE","eraser");const lt={[R.TYPE]:R};exports.Context=E;exports.Eraser=R;exports.GLProgram=B;exports.Loop=Y;exports.Mutex=M;exports.Provider=S;exports.REGISTRY=lt;exports.REGISTRY$1=Z;exports.eraserStateZ=W;exports.providerStateZ=F;exports.useInstrumentation=q;
|