@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/eraser-BjtEI-1I.js
DELETED
|
@@ -1,823 +0,0 @@
|
|
|
1
|
-
var b = Object.defineProperty;
|
|
2
|
-
var A = (h, e, t) => e in h ? b(h, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[e] = t;
|
|
3
|
-
var o = (h, e, t) => A(h, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { $ as L, w as P } from "./index-CSKP1UPN.js";
|
|
5
|
-
import { z as y } from "zod";
|
|
6
|
-
import { Z as D, M as I, L as B } from "./provider-CH0eoGfz.js";
|
|
7
|
-
import { $ as n, q as u, J as p, _ as O, C as k, Z as G } from "./css-Dyt-QnKy.js";
|
|
8
|
-
const g = (h, e) => n.construct(
|
|
9
|
-
n.left(h) - e.x,
|
|
10
|
-
n.top(h) - e.y,
|
|
11
|
-
n.width(h) + e.x * 2,
|
|
12
|
-
n.height(h) + e.y * 2
|
|
13
|
-
);
|
|
14
|
-
class w {
|
|
15
|
-
constructor(e, t = u.XY.IDENTITY) {
|
|
16
|
-
o(this, "scale_");
|
|
17
|
-
o(this, "wrapped");
|
|
18
|
-
this.wrapped = e, this.scale_ = t;
|
|
19
|
-
}
|
|
20
|
-
get fontStretch() {
|
|
21
|
-
return this.wrapped.fontStretch;
|
|
22
|
-
}
|
|
23
|
-
set fontStretch(e) {
|
|
24
|
-
this.wrapped.fontStretch = e;
|
|
25
|
-
}
|
|
26
|
-
get fontVariantCaps() {
|
|
27
|
-
return this.wrapped.fontVariantCaps;
|
|
28
|
-
}
|
|
29
|
-
set fontVariantCaps(e) {
|
|
30
|
-
this.wrapped.fontVariantCaps = e;
|
|
31
|
-
}
|
|
32
|
-
isContextLost() {
|
|
33
|
-
return this.wrapped.isContextLost();
|
|
34
|
-
}
|
|
35
|
-
get wordSpacing() {
|
|
36
|
-
return this.wrapped.wordSpacing;
|
|
37
|
-
}
|
|
38
|
-
set wordSpacing(e) {
|
|
39
|
-
this.wrapped.wordSpacing = e;
|
|
40
|
-
}
|
|
41
|
-
get letterSpacing() {
|
|
42
|
-
return this.wrapped.letterSpacing;
|
|
43
|
-
}
|
|
44
|
-
set letterSpacing(e) {
|
|
45
|
-
this.wrapped.letterSpacing = e;
|
|
46
|
-
}
|
|
47
|
-
get textRendering() {
|
|
48
|
-
return this.wrapped.textRendering;
|
|
49
|
-
}
|
|
50
|
-
set textRendering(e) {
|
|
51
|
-
this.wrapped.textRendering = e;
|
|
52
|
-
}
|
|
53
|
-
reset() {
|
|
54
|
-
this.wrapped.reset();
|
|
55
|
-
}
|
|
56
|
-
applyScale(e) {
|
|
57
|
-
return new w(this, e);
|
|
58
|
-
}
|
|
59
|
-
get canvas() {
|
|
60
|
-
return this.wrapped.canvas;
|
|
61
|
-
}
|
|
62
|
-
get miterLimit() {
|
|
63
|
-
return this.wrapped.miterLimit;
|
|
64
|
-
}
|
|
65
|
-
set miterLimit(e) {
|
|
66
|
-
this.wrapped.miterLimit = this.scale_.x.dim(e);
|
|
67
|
-
}
|
|
68
|
-
get globalAlpha() {
|
|
69
|
-
return this.wrapped.globalAlpha;
|
|
70
|
-
}
|
|
71
|
-
set globalAlpha(e) {
|
|
72
|
-
this.wrapped.globalAlpha = e;
|
|
73
|
-
}
|
|
74
|
-
get globalCompositeOperation() {
|
|
75
|
-
return this.wrapped.globalCompositeOperation;
|
|
76
|
-
}
|
|
77
|
-
set globalCompositeOperation(e) {
|
|
78
|
-
this.wrapped.globalCompositeOperation = e;
|
|
79
|
-
}
|
|
80
|
-
get fillStyle() {
|
|
81
|
-
return this.wrapped.fillStyle;
|
|
82
|
-
}
|
|
83
|
-
set fillStyle(e) {
|
|
84
|
-
this.wrapped.fillStyle = e;
|
|
85
|
-
}
|
|
86
|
-
get strokeStyle() {
|
|
87
|
-
return this.wrapped.strokeStyle;
|
|
88
|
-
}
|
|
89
|
-
set strokeStyle(e) {
|
|
90
|
-
this.wrapped.strokeStyle = e;
|
|
91
|
-
}
|
|
92
|
-
drawImage(e, t, s, i, r, a, c, l, f) {
|
|
93
|
-
this.wrapped.drawImage(e, t, s, i, r, a, c, l, f);
|
|
94
|
-
}
|
|
95
|
-
beginPath() {
|
|
96
|
-
this.wrapped.beginPath();
|
|
97
|
-
}
|
|
98
|
-
clip(e, t) {
|
|
99
|
-
this.wrapped.clip(e, t);
|
|
100
|
-
}
|
|
101
|
-
fill(e, t) {
|
|
102
|
-
if (e == null) return this.wrapped.fill();
|
|
103
|
-
this.wrapped.fill(e, t);
|
|
104
|
-
}
|
|
105
|
-
isPointInPath(e, t, s, i) {
|
|
106
|
-
return this.wrapped.isPointInPath(e, t, s, i);
|
|
107
|
-
}
|
|
108
|
-
isPointInStroke(e, t, s) {
|
|
109
|
-
return this.wrapped.isPointInStroke(e, t, s);
|
|
110
|
-
}
|
|
111
|
-
stroke(e) {
|
|
112
|
-
if (e == null) return this.wrapped.stroke();
|
|
113
|
-
this.wrapped.stroke(e);
|
|
114
|
-
}
|
|
115
|
-
createConicGradient(e, t, s) {
|
|
116
|
-
return this.wrapped.createConicGradient(e, t, s);
|
|
117
|
-
}
|
|
118
|
-
createLinearGradient(e, t, s, i) {
|
|
119
|
-
return this.wrapped.createLinearGradient(e, t, s, i);
|
|
120
|
-
}
|
|
121
|
-
createPattern(e, t) {
|
|
122
|
-
return this.wrapped.createPattern(e, t);
|
|
123
|
-
}
|
|
124
|
-
createRadialGradient(e, t, s, i, r, a) {
|
|
125
|
-
return this.wrapped.createRadialGradient(e, t, s, i, r, a);
|
|
126
|
-
}
|
|
127
|
-
get filter() {
|
|
128
|
-
return this.wrapped.filter;
|
|
129
|
-
}
|
|
130
|
-
set filter(e) {
|
|
131
|
-
this.wrapped.filter = e;
|
|
132
|
-
}
|
|
133
|
-
createImageData(e, t, s) {
|
|
134
|
-
return this.wrapped.createImageData(e, t, s);
|
|
135
|
-
}
|
|
136
|
-
getImageData(e, t, s, i, r) {
|
|
137
|
-
return this.wrapped.getImageData(e, t, s, i, r);
|
|
138
|
-
}
|
|
139
|
-
putImageData(e, t, s, i, r, a, c) {
|
|
140
|
-
this.wrapped.putImageData(
|
|
141
|
-
// @ts-expect-error - typescript overloads cause issues here
|
|
142
|
-
e,
|
|
143
|
-
t,
|
|
144
|
-
s,
|
|
145
|
-
i,
|
|
146
|
-
r,
|
|
147
|
-
a,
|
|
148
|
-
c
|
|
149
|
-
);
|
|
150
|
-
}
|
|
151
|
-
get imageSmoothingEnabled() {
|
|
152
|
-
return this.wrapped.imageSmoothingEnabled;
|
|
153
|
-
}
|
|
154
|
-
set imageSmoothingEnabled(e) {
|
|
155
|
-
this.wrapped.imageSmoothingEnabled = e;
|
|
156
|
-
}
|
|
157
|
-
get imageSmoothingQuality() {
|
|
158
|
-
return this.wrapped.imageSmoothingQuality;
|
|
159
|
-
}
|
|
160
|
-
set imageSmoothingQuality(e) {
|
|
161
|
-
this.wrapped.imageSmoothingQuality = e;
|
|
162
|
-
}
|
|
163
|
-
arc(e, t, s, i, r, a) {
|
|
164
|
-
this.wrapped.arc(
|
|
165
|
-
this.scale_.x.pos(e),
|
|
166
|
-
this.scale_.y.pos(t),
|
|
167
|
-
this.scale_.x.dim(s),
|
|
168
|
-
i,
|
|
169
|
-
r,
|
|
170
|
-
a
|
|
171
|
-
);
|
|
172
|
-
}
|
|
173
|
-
arcTo(e, t, s, i, r) {
|
|
174
|
-
this.wrapped.arcTo(
|
|
175
|
-
this.scale_.x.pos(e),
|
|
176
|
-
this.scale_.y.pos(t),
|
|
177
|
-
this.scale_.x.pos(s),
|
|
178
|
-
this.scale_.y.pos(i),
|
|
179
|
-
this.scale_.x.dim(r)
|
|
180
|
-
);
|
|
181
|
-
}
|
|
182
|
-
bezierCurveTo(e, t, s, i, r, a) {
|
|
183
|
-
this.wrapped.bezierCurveTo(
|
|
184
|
-
this.scale_.x.pos(e),
|
|
185
|
-
this.scale_.y.pos(t),
|
|
186
|
-
this.scale_.x.pos(s),
|
|
187
|
-
this.scale_.y.pos(i),
|
|
188
|
-
this.scale_.x.pos(r),
|
|
189
|
-
this.scale_.y.pos(a)
|
|
190
|
-
);
|
|
191
|
-
}
|
|
192
|
-
closePath() {
|
|
193
|
-
this.wrapped.closePath();
|
|
194
|
-
}
|
|
195
|
-
ellipse(e, t, s, i, r, a, c, l) {
|
|
196
|
-
this.wrapped.ellipse(
|
|
197
|
-
this.scale_.x.pos(e),
|
|
198
|
-
this.scale_.y.pos(t),
|
|
199
|
-
this.scale_.x.dim(s),
|
|
200
|
-
this.scale_.y.dim(i),
|
|
201
|
-
r,
|
|
202
|
-
a,
|
|
203
|
-
c,
|
|
204
|
-
l
|
|
205
|
-
);
|
|
206
|
-
}
|
|
207
|
-
lineTo(e, t) {
|
|
208
|
-
this.wrapped.lineTo(this.scale_.x.pos(e), this.scale_.y.pos(t));
|
|
209
|
-
}
|
|
210
|
-
moveTo(e, t) {
|
|
211
|
-
this.wrapped.moveTo(this.scale_.x.pos(e), this.scale_.y.pos(t));
|
|
212
|
-
}
|
|
213
|
-
quadraticCurveTo(e, t, s, i) {
|
|
214
|
-
this.wrapped.quadraticCurveTo(
|
|
215
|
-
this.scale_.x.pos(e),
|
|
216
|
-
this.scale_.y.pos(t),
|
|
217
|
-
this.scale_.x.pos(s),
|
|
218
|
-
this.scale_.y.pos(i)
|
|
219
|
-
);
|
|
220
|
-
}
|
|
221
|
-
rect(e, t, s, i) {
|
|
222
|
-
this.wrapped.rect(
|
|
223
|
-
this.scale_.x.pos(e),
|
|
224
|
-
this.scale_.y.pos(t),
|
|
225
|
-
this.scale_.x.dim(s),
|
|
226
|
-
this.scale_.y.dim(i)
|
|
227
|
-
);
|
|
228
|
-
}
|
|
229
|
-
roundRect(e, t, s, i, r) {
|
|
230
|
-
this.wrapped.roundRect(
|
|
231
|
-
this.scale_.x.pos(e),
|
|
232
|
-
this.scale_.y.pos(t),
|
|
233
|
-
this.scale_.x.dim(s),
|
|
234
|
-
this.scale_.y.dim(i),
|
|
235
|
-
typeof r == "number" ? this.scale_.x.dim(r) : r
|
|
236
|
-
);
|
|
237
|
-
}
|
|
238
|
-
get lineCap() {
|
|
239
|
-
return this.wrapped.lineCap;
|
|
240
|
-
}
|
|
241
|
-
set lineCap(e) {
|
|
242
|
-
this.wrapped.lineCap = e;
|
|
243
|
-
}
|
|
244
|
-
get lineDashOffset() {
|
|
245
|
-
return this.wrapped.lineDashOffset;
|
|
246
|
-
}
|
|
247
|
-
set lineDashOffset(e) {
|
|
248
|
-
this.wrapped.lineDashOffset = this.scale_.x.dim(e);
|
|
249
|
-
}
|
|
250
|
-
get lineJoin() {
|
|
251
|
-
return this.wrapped.lineJoin;
|
|
252
|
-
}
|
|
253
|
-
set lineJoin(e) {
|
|
254
|
-
this.wrapped.lineJoin = e;
|
|
255
|
-
}
|
|
256
|
-
get lineWidth() {
|
|
257
|
-
return this.wrapped.lineWidth;
|
|
258
|
-
}
|
|
259
|
-
set lineWidth(e) {
|
|
260
|
-
this.wrapped.lineWidth = this.scale_.x.dim(e);
|
|
261
|
-
}
|
|
262
|
-
getLineDash() {
|
|
263
|
-
return this.wrapped.getLineDash();
|
|
264
|
-
}
|
|
265
|
-
setLineDash(e) {
|
|
266
|
-
const t = Array.from(e).map((s) => this.scale_.x.dim(s));
|
|
267
|
-
this.wrapped.setLineDash(t);
|
|
268
|
-
}
|
|
269
|
-
clearRect(e, t, s, i) {
|
|
270
|
-
this.wrapped.clearRect(e, t, s, i);
|
|
271
|
-
}
|
|
272
|
-
fillRect(e, t, s, i) {
|
|
273
|
-
this.wrapped.fillRect(
|
|
274
|
-
this.scale_.x.pos(e),
|
|
275
|
-
this.scale_.y.pos(t),
|
|
276
|
-
this.scale_.x.dim(s),
|
|
277
|
-
this.scale_.y.dim(i)
|
|
278
|
-
);
|
|
279
|
-
}
|
|
280
|
-
strokeRect(e, t, s, i) {
|
|
281
|
-
this.wrapped.strokeRect(
|
|
282
|
-
this.scale_.x.pos(e),
|
|
283
|
-
this.scale_.y.pos(t),
|
|
284
|
-
this.scale_.x.dim(s),
|
|
285
|
-
this.scale_.y.dim(i)
|
|
286
|
-
);
|
|
287
|
-
}
|
|
288
|
-
get shadowBlur() {
|
|
289
|
-
return this.wrapped.shadowBlur;
|
|
290
|
-
}
|
|
291
|
-
set shadowBlur(e) {
|
|
292
|
-
this.wrapped.shadowBlur = e;
|
|
293
|
-
}
|
|
294
|
-
get shadowColor() {
|
|
295
|
-
return this.wrapped.shadowColor;
|
|
296
|
-
}
|
|
297
|
-
set shadowColor(e) {
|
|
298
|
-
this.wrapped.shadowColor = e;
|
|
299
|
-
}
|
|
300
|
-
get shadowOffsetX() {
|
|
301
|
-
return this.wrapped.shadowOffsetX;
|
|
302
|
-
}
|
|
303
|
-
set shadowOffsetX(e) {
|
|
304
|
-
this.wrapped.shadowOffsetX = e;
|
|
305
|
-
}
|
|
306
|
-
get shadowOffsetY() {
|
|
307
|
-
return this.wrapped.shadowOffsetY;
|
|
308
|
-
}
|
|
309
|
-
restore() {
|
|
310
|
-
this.wrapped.restore();
|
|
311
|
-
}
|
|
312
|
-
save() {
|
|
313
|
-
this.wrapped.save();
|
|
314
|
-
}
|
|
315
|
-
fillText(e, t, s, i) {
|
|
316
|
-
this.wrapped.fillText(
|
|
317
|
-
e,
|
|
318
|
-
this.scale_.x.pos(t),
|
|
319
|
-
this.scale_.y.pos(s),
|
|
320
|
-
i != null ? this.scale_.x.dim(i) : void 0
|
|
321
|
-
);
|
|
322
|
-
}
|
|
323
|
-
measureText(e) {
|
|
324
|
-
this.wrapped.font = m(this.wrapped.font, this.scale_.x.reverse());
|
|
325
|
-
const t = this.wrapped.measureText(e);
|
|
326
|
-
return this.wrapped.font = m(this.wrapped.font, this.scale_.x), t;
|
|
327
|
-
}
|
|
328
|
-
strokeText(e, t, s, i) {
|
|
329
|
-
this.wrapped.strokeText(
|
|
330
|
-
e,
|
|
331
|
-
this.scale_.x.pos(t),
|
|
332
|
-
this.scale_.y.pos(s),
|
|
333
|
-
i != null ? this.scale_.x.dim(i) : void 0
|
|
334
|
-
);
|
|
335
|
-
}
|
|
336
|
-
get direction() {
|
|
337
|
-
return this.wrapped.direction;
|
|
338
|
-
}
|
|
339
|
-
set direction(e) {
|
|
340
|
-
this.wrapped.direction = e;
|
|
341
|
-
}
|
|
342
|
-
get font() {
|
|
343
|
-
return this.wrapped.font;
|
|
344
|
-
}
|
|
345
|
-
set font(e) {
|
|
346
|
-
this.wrapped.font = m(e, this.scale_.x);
|
|
347
|
-
}
|
|
348
|
-
get fontKerning() {
|
|
349
|
-
return this.wrapped.fontKerning;
|
|
350
|
-
}
|
|
351
|
-
set fontKerning(e) {
|
|
352
|
-
this.wrapped.fontKerning = e;
|
|
353
|
-
}
|
|
354
|
-
get textAlign() {
|
|
355
|
-
return this.wrapped.textAlign;
|
|
356
|
-
}
|
|
357
|
-
set textAlign(e) {
|
|
358
|
-
this.wrapped.textAlign = e;
|
|
359
|
-
}
|
|
360
|
-
get textBaseline() {
|
|
361
|
-
return this.wrapped.textBaseline;
|
|
362
|
-
}
|
|
363
|
-
set textBaseline(e) {
|
|
364
|
-
this.wrapped.textBaseline = e;
|
|
365
|
-
}
|
|
366
|
-
getTransform() {
|
|
367
|
-
return this.wrapped.getTransform();
|
|
368
|
-
}
|
|
369
|
-
resetTransform() {
|
|
370
|
-
this.wrapped.resetTransform();
|
|
371
|
-
}
|
|
372
|
-
rotate(e) {
|
|
373
|
-
this.wrapped.rotate(e);
|
|
374
|
-
}
|
|
375
|
-
scale(e, t) {
|
|
376
|
-
this.wrapped.scale(e, t);
|
|
377
|
-
}
|
|
378
|
-
scissor(e, t = p.ZERO) {
|
|
379
|
-
const s = new Y(this.scale_);
|
|
380
|
-
return e = g(e, t), s.rect(...p.couple(n.topLeft(e)), ...O.couple(n.dims(e))), this.save(), this.clip(s.getPath()), () => this.restore();
|
|
381
|
-
}
|
|
382
|
-
setTransform(e, t, s, i, r, a) {
|
|
383
|
-
this.wrapped.setTransform(e, t, s, i, r, a);
|
|
384
|
-
}
|
|
385
|
-
transform(e, t, s, i, r, a) {
|
|
386
|
-
this.wrapped.transform(e, t, s, i, r, a);
|
|
387
|
-
}
|
|
388
|
-
translate(e, t) {
|
|
389
|
-
this.wrapped.translate(e, t);
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
const C = /(\d+(\.\d+)?)px/, m = (h, e) => {
|
|
393
|
-
var i;
|
|
394
|
-
const t = Number((i = h.match(C)) == null ? void 0 : i[1]);
|
|
395
|
-
if (t == null) return h;
|
|
396
|
-
const s = e.dim(t);
|
|
397
|
-
return h.replace(C, `${s}px`);
|
|
398
|
-
};
|
|
399
|
-
class Y {
|
|
400
|
-
constructor(e = u.XY.IDENTITY, t) {
|
|
401
|
-
o(this, "scale_");
|
|
402
|
-
o(this, "path");
|
|
403
|
-
this.scale_ = e, t instanceof Path2D || typeof t == "string" ? this.path = new Path2D(t) : this.path = new Path2D();
|
|
404
|
-
}
|
|
405
|
-
addPath(e, t) {
|
|
406
|
-
this.path.addPath(e, t);
|
|
407
|
-
}
|
|
408
|
-
arc(e, t, s, i, r, a) {
|
|
409
|
-
this.path.arc(
|
|
410
|
-
this.scale_.x.pos(e),
|
|
411
|
-
this.scale_.y.pos(t),
|
|
412
|
-
this.scale_.x.dim(s),
|
|
413
|
-
i,
|
|
414
|
-
r,
|
|
415
|
-
a
|
|
416
|
-
);
|
|
417
|
-
}
|
|
418
|
-
arcTo(e, t, s, i, r) {
|
|
419
|
-
this.path.arcTo(
|
|
420
|
-
this.scale_.x.pos(e),
|
|
421
|
-
this.scale_.y.pos(t),
|
|
422
|
-
this.scale_.x.pos(s),
|
|
423
|
-
this.scale_.y.pos(i),
|
|
424
|
-
this.scale_.x.dim(r)
|
|
425
|
-
);
|
|
426
|
-
}
|
|
427
|
-
bezierCurveTo(e, t, s, i, r, a) {
|
|
428
|
-
this.path.bezierCurveTo(
|
|
429
|
-
this.scale_.x.pos(e),
|
|
430
|
-
this.scale_.y.pos(t),
|
|
431
|
-
this.scale_.x.pos(s),
|
|
432
|
-
this.scale_.y.pos(i),
|
|
433
|
-
this.scale_.x.pos(r),
|
|
434
|
-
this.scale_.y.pos(a)
|
|
435
|
-
);
|
|
436
|
-
}
|
|
437
|
-
closePath() {
|
|
438
|
-
this.path.closePath();
|
|
439
|
-
}
|
|
440
|
-
ellipse(e, t, s, i, r, a, c, l) {
|
|
441
|
-
this.path.ellipse(
|
|
442
|
-
this.scale_.x.pos(e),
|
|
443
|
-
this.scale_.y.pos(t),
|
|
444
|
-
this.scale_.x.dim(s),
|
|
445
|
-
this.scale_.y.dim(i),
|
|
446
|
-
r,
|
|
447
|
-
a,
|
|
448
|
-
c,
|
|
449
|
-
l
|
|
450
|
-
);
|
|
451
|
-
}
|
|
452
|
-
lineTo(e, t) {
|
|
453
|
-
this.path.lineTo(this.scale_.x.pos(e), this.scale_.y.pos(t));
|
|
454
|
-
}
|
|
455
|
-
moveTo(e, t) {
|
|
456
|
-
this.path.moveTo(this.scale_.x.pos(e), this.scale_.y.pos(t));
|
|
457
|
-
}
|
|
458
|
-
quadraticCurveTo(e, t, s, i) {
|
|
459
|
-
this.path.quadraticCurveTo(
|
|
460
|
-
this.scale_.x.pos(e),
|
|
461
|
-
this.scale_.y.pos(t),
|
|
462
|
-
this.scale_.x.pos(s),
|
|
463
|
-
this.scale_.y.pos(i)
|
|
464
|
-
);
|
|
465
|
-
}
|
|
466
|
-
rect(e, t, s, i) {
|
|
467
|
-
this.path.rect(
|
|
468
|
-
this.scale_.x.pos(e),
|
|
469
|
-
this.scale_.y.pos(t),
|
|
470
|
-
this.scale_.x.dim(s),
|
|
471
|
-
this.scale_.y.dim(i)
|
|
472
|
-
);
|
|
473
|
-
}
|
|
474
|
-
roundRect(e, t, s, i, r) {
|
|
475
|
-
const a = this.scaleRadii(r);
|
|
476
|
-
this.path.roundRect(
|
|
477
|
-
this.scale_.x.pos(e),
|
|
478
|
-
this.scale_.y.pos(t),
|
|
479
|
-
this.scale_.x.dim(s),
|
|
480
|
-
this.scale_.y.dim(i),
|
|
481
|
-
a
|
|
482
|
-
);
|
|
483
|
-
}
|
|
484
|
-
// Helper method to scale radii for roundRect
|
|
485
|
-
scaleRadii(e) {
|
|
486
|
-
return e == null ? e : typeof e == "number" ? this.scale_.x.dim(e) : Array.isArray(e) ? e.map((t) => this.scaleRadius(t)) : this.scaleRadius(e);
|
|
487
|
-
}
|
|
488
|
-
scaleRadius(e) {
|
|
489
|
-
return typeof e == "number" ? this.scale_.x.dim(e) : {
|
|
490
|
-
x: this.scale_.x.dim(e.x ?? 0),
|
|
491
|
-
y: this.scale_.y.dim(e.y ?? 0)
|
|
492
|
-
};
|
|
493
|
-
}
|
|
494
|
-
// Method to retrieve the underlying Path2D
|
|
495
|
-
getPath() {
|
|
496
|
-
return this.path;
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
const F = `precision mediump float;
|
|
500
|
-
|
|
501
|
-
void main(void) {
|
|
502
|
-
gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
|
|
503
|
-
}
|
|
504
|
-
`, z = `attribute vec4 a_position;
|
|
505
|
-
|
|
506
|
-
void main(void) {
|
|
507
|
-
gl_Position = a_position;
|
|
508
|
-
}
|
|
509
|
-
`, S = (h) => new Error(`failed to compile webgl program: ${h}`), X = new Error("null shader encountered");
|
|
510
|
-
let N = class {
|
|
511
|
-
/**
|
|
512
|
-
* @constructor compiles the given vertex and fragment shaders under the given
|
|
513
|
-
* render context into a program.
|
|
514
|
-
*
|
|
515
|
-
* @param ctx - The render context to use.
|
|
516
|
-
* @param vertShader - The vertex shader code.
|
|
517
|
-
* @param fragShader - The fragment shader code.
|
|
518
|
-
*/
|
|
519
|
-
constructor(e, t, s) {
|
|
520
|
-
/** The render context used by this program. */
|
|
521
|
-
o(this, "renderCtx");
|
|
522
|
-
/** The underlying webgl program. */
|
|
523
|
-
o(this, "prog");
|
|
524
|
-
/** The code for the vertex shader. */
|
|
525
|
-
o(this, "vertShader");
|
|
526
|
-
/** The code for the fragment shader. */
|
|
527
|
-
o(this, "fragShader");
|
|
528
|
-
o(this, "uniformLocCache", /* @__PURE__ */ new Map());
|
|
529
|
-
this.renderCtx = e;
|
|
530
|
-
const i = e.gl.createProgram();
|
|
531
|
-
if (i == null) throw S("failed to create program");
|
|
532
|
-
this.prog = i, this.vertShader = t, this.fragShader = s, this.compile();
|
|
533
|
-
}
|
|
534
|
-
/** Sets the current program as the active program used by the context. */
|
|
535
|
-
setAsActive() {
|
|
536
|
-
return this.renderCtx.gl.useProgram(this.prog), () => this.renderCtx.gl.useProgram(null);
|
|
537
|
-
}
|
|
538
|
-
/**
|
|
539
|
-
* Sets a uniform XY coordinate value.
|
|
540
|
-
*
|
|
541
|
-
* @param name - The name of the uniform.
|
|
542
|
-
* @param value - The value to set.
|
|
543
|
-
*/
|
|
544
|
-
uniformXY(e, t) {
|
|
545
|
-
this.renderCtx.gl.uniform2fv(this.getUniformLoc(e), p.couple(t));
|
|
546
|
-
}
|
|
547
|
-
/**
|
|
548
|
-
* Sets a uniform color value.
|
|
549
|
-
*
|
|
550
|
-
* @param name - The name of the uniform.
|
|
551
|
-
* @param value - The value to set.
|
|
552
|
-
*/
|
|
553
|
-
uniformColor(e, t) {
|
|
554
|
-
this.renderCtx.gl.uniform4fv(this.getUniformLoc(e), t.rgba1);
|
|
555
|
-
}
|
|
556
|
-
getUniformLoc(e) {
|
|
557
|
-
const t = this.uniformLocCache.get(e);
|
|
558
|
-
if (t != null) return t;
|
|
559
|
-
const s = this.renderCtx.gl.getUniformLocation(this.prog, e);
|
|
560
|
-
if (s == null) throw new Error(`unexpected missing uniform ${e}`);
|
|
561
|
-
return this.uniformLocCache.set(e, s), s;
|
|
562
|
-
}
|
|
563
|
-
compile() {
|
|
564
|
-
const e = this.renderCtx.gl;
|
|
565
|
-
this.compileShader(this.vertShader, e.VERTEX_SHADER), this.compileShader(this.fragShader, e.FRAGMENT_SHADER), e.linkProgram(this.prog);
|
|
566
|
-
}
|
|
567
|
-
compileShader(e, t) {
|
|
568
|
-
const s = this.renderCtx.gl, i = s.createShader(t);
|
|
569
|
-
if (i == null) throw X;
|
|
570
|
-
if (s.shaderSource(i, e), s.compileShader(i), !s.getShaderParameter(i, s.COMPILE_STATUS)) {
|
|
571
|
-
const a = s.getShaderInfoLog(i);
|
|
572
|
-
throw s.deleteShader(i), S(a ?? "unknown");
|
|
573
|
-
}
|
|
574
|
-
s.attachShader(this.prog, i);
|
|
575
|
-
}
|
|
576
|
-
};
|
|
577
|
-
const q = new Float32Array([0, 0, 0, 0, 0, 0]);
|
|
578
|
-
class Z extends N {
|
|
579
|
-
constructor(t) {
|
|
580
|
-
super(t, z, F);
|
|
581
|
-
o(this, "positionBuffer");
|
|
582
|
-
const s = t.gl.createBuffer();
|
|
583
|
-
if (s == null) throw new D("webgl: failed to create buffer");
|
|
584
|
-
this.positionBuffer = s, t.gl.bindBuffer(t.gl.ARRAY_BUFFER, this.positionBuffer), t.gl.bufferData(t.gl.ARRAY_BUFFER, q, t.gl.STATIC_DRAW);
|
|
585
|
-
}
|
|
586
|
-
exec() {
|
|
587
|
-
const { gl: t } = this.renderCtx, s = t.getAttribLocation(this.prog, "a_position");
|
|
588
|
-
t.bindBuffer(t.ARRAY_BUFFER, this.positionBuffer);
|
|
589
|
-
const i = t.createVertexArray();
|
|
590
|
-
t.bindVertexArray(i), t.enableVertexAttribArray(s), t.vertexAttribPointer(s, 2, t.FLOAT, !1, 0, 0), this.setAsActive(), t.drawArrays(t.TRIANGLES, 0, 3);
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
const T = { high: 1, low: 0 }, R = L.hz(45);
|
|
594
|
-
class K {
|
|
595
|
-
constructor(e) {
|
|
596
|
-
/** To lock things so renders don't collide */
|
|
597
|
-
o(this, "mutex", new I());
|
|
598
|
-
/** Stores the current requests for rendering. */
|
|
599
|
-
o(this, "requests", /* @__PURE__ */ new Map());
|
|
600
|
-
/** Stores render cleanup functions for clearing canvases and other resources. */
|
|
601
|
-
o(this, "cleanup", /* @__PURE__ */ new Map());
|
|
602
|
-
o(this, "afterRender");
|
|
603
|
-
this.start(), this.afterRender = e;
|
|
604
|
-
}
|
|
605
|
-
/**
|
|
606
|
-
* Sets a new request in the queue according to a set of rules:
|
|
607
|
-
*
|
|
608
|
-
* 1. If no request with the same key exists, add the request to the queue.
|
|
609
|
-
* 2. If a request with the same key exists, replace it if the new request has a
|
|
610
|
-
* greater or equal priority and a greater or equal number of canvases that are
|
|
611
|
-
* being rendered to.
|
|
612
|
-
*
|
|
613
|
-
* @param req - The request to set.
|
|
614
|
-
*/
|
|
615
|
-
async set(e) {
|
|
616
|
-
let t;
|
|
617
|
-
e.priority === "high" && (t = await this.mutex.acquire());
|
|
618
|
-
const s = this.requests.get(e.key);
|
|
619
|
-
if (s == null) this.requests.set(e.key, e);
|
|
620
|
-
else {
|
|
621
|
-
const i = T[e.priority] >= T[s.priority], r = e.canvases.length >= s.canvases.length;
|
|
622
|
-
i && r && this.requests.set(e.key, e);
|
|
623
|
-
}
|
|
624
|
-
t == null || t();
|
|
625
|
-
}
|
|
626
|
-
/** Execute the render. */
|
|
627
|
-
async render() {
|
|
628
|
-
await this.mutex.runExclusive(async () => {
|
|
629
|
-
var r;
|
|
630
|
-
const e = performance.now(), { requests: t } = this;
|
|
631
|
-
if (t.size === 0) return;
|
|
632
|
-
await this.runCleanupsSync(), await this.renderSync();
|
|
633
|
-
const s = performance.now(), i = P.milliseconds(s - e);
|
|
634
|
-
i.greaterThan(R.period) && console.warn(
|
|
635
|
-
`Render loop for ${this.requests.size} took longer than ${R.period.toString()} to execute: ${i.milliseconds}`
|
|
636
|
-
), this.requests.clear(), (r = this.afterRender) == null || r.call(this);
|
|
637
|
-
});
|
|
638
|
-
}
|
|
639
|
-
async runCleanupsSync() {
|
|
640
|
-
const { cleanup: e, requests: t } = this;
|
|
641
|
-
for (const [s, i] of e.entries()) {
|
|
642
|
-
const r = t.get(s);
|
|
643
|
-
r != null && (await i(r), e.delete(s));
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
async renderSync() {
|
|
647
|
-
const { requests: e } = this;
|
|
648
|
-
for (const t of e.values())
|
|
649
|
-
try {
|
|
650
|
-
const s = await t.render();
|
|
651
|
-
s != null && this.cleanup.set(t.key, s);
|
|
652
|
-
} catch (s) {
|
|
653
|
-
console.error(s);
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
/** Starts the rendering loop. */
|
|
657
|
-
async start() {
|
|
658
|
-
do {
|
|
659
|
-
try {
|
|
660
|
-
await this.render();
|
|
661
|
-
} catch (e) {
|
|
662
|
-
console.error(e);
|
|
663
|
-
}
|
|
664
|
-
await this.sleep();
|
|
665
|
-
} while (!0);
|
|
666
|
-
}
|
|
667
|
-
async sleep() {
|
|
668
|
-
return await new Promise(requestAnimationFrame);
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
const E = (h) => (h.textRendering = "optimizeSpeed", h.imageSmoothingEnabled = !1, h), d = class d {
|
|
672
|
-
constructor(e, t, s, i) {
|
|
673
|
-
/* The canvas element used by WebGL. */
|
|
674
|
-
o(this, "glCanvas");
|
|
675
|
-
/** The canvas element used by the 2D canvas. */
|
|
676
|
-
o(this, "upper2dCanvas");
|
|
677
|
-
/** The canvas element used by the 2D canvas. */
|
|
678
|
-
o(this, "lower2dCanvas");
|
|
679
|
-
/** The WebGL rendering context. */
|
|
680
|
-
o(this, "gl");
|
|
681
|
-
/** A 2D canvas that sits below the WebGL canvas. */
|
|
682
|
-
o(this, "lower2d");
|
|
683
|
-
/** A 2D canvas that sits above the WebGL canvas. */
|
|
684
|
-
o(this, "upper2d");
|
|
685
|
-
/** The region the canvas occupies in pixel space */
|
|
686
|
-
o(this, "region");
|
|
687
|
-
/** The device pixel ratio of the canvas */
|
|
688
|
-
o(this, "dpr");
|
|
689
|
-
/** queue render transitions onto the stack */
|
|
690
|
-
o(this, "loop");
|
|
691
|
-
/** See the @link{clear.Program} for why this is necessary. */
|
|
692
|
-
o(this, "clearProgram");
|
|
693
|
-
o(this, "os");
|
|
694
|
-
this.upper2dCanvas = s, this.lower2dCanvas = t, this.glCanvas = e, this.os = i;
|
|
695
|
-
const r = this.lower2dCanvas.getContext("2d");
|
|
696
|
-
if (r == null) throw new Error("Could not get 2D context");
|
|
697
|
-
this.lower2d = E(
|
|
698
|
-
new w(r)
|
|
699
|
-
);
|
|
700
|
-
const a = this.upper2dCanvas.getContext("2d");
|
|
701
|
-
if (a == null) throw new Error("Could not get 2D context");
|
|
702
|
-
this.upper2d = E(
|
|
703
|
-
new w(a)
|
|
704
|
-
);
|
|
705
|
-
const c = {
|
|
706
|
-
preserveDrawingBuffer: !0,
|
|
707
|
-
powerPreference: "high-performance",
|
|
708
|
-
stencil: !1,
|
|
709
|
-
depth: !1
|
|
710
|
-
}, l = this.glCanvas.getContext("webgl2", c);
|
|
711
|
-
if (l == null) throw new Error("Could not get WebGL context");
|
|
712
|
-
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;
|
|
713
|
-
const f = () => {
|
|
714
|
-
this.gl.flush(), this.gl.finish();
|
|
715
|
-
};
|
|
716
|
-
this.loop = new K(f), this.region = n.ZERO, this.dpr = 1, this.os === "Windows" && (this.clearProgram = new Z(this));
|
|
717
|
-
}
|
|
718
|
-
static create(e, t, s, i, r) {
|
|
719
|
-
const a = new d(t, s, i, r);
|
|
720
|
-
return e.set(d.CONTEXT_KEY, a), a;
|
|
721
|
-
}
|
|
722
|
-
static useOptional(e) {
|
|
723
|
-
return e.getOptional(d.CONTEXT_KEY);
|
|
724
|
-
}
|
|
725
|
-
static use(e) {
|
|
726
|
-
return e.get(d.CONTEXT_KEY);
|
|
727
|
-
}
|
|
728
|
-
update(e) {
|
|
729
|
-
e.set(d.CONTEXT_KEY, this);
|
|
730
|
-
}
|
|
731
|
-
/**
|
|
732
|
-
* Resizes the canvas to the given region and device pixel ratio. Ensuring
|
|
733
|
-
* that all drawing operations and viewports are scaled correctly.
|
|
734
|
-
*/
|
|
735
|
-
resize(e, t) {
|
|
736
|
-
n.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, n.width(e) * t, n.height(e) * t));
|
|
737
|
-
}
|
|
738
|
-
resizeCanvas(e) {
|
|
739
|
-
e.width = n.width(this.region) * this.dpr, e.height = n.height(this.region) * this.dpr;
|
|
740
|
-
}
|
|
741
|
-
/** @returns the aspect ratio of the canvas. */
|
|
742
|
-
get aspect() {
|
|
743
|
-
return n.aspect(this.region);
|
|
744
|
-
}
|
|
745
|
-
/**
|
|
746
|
-
* Takes the given box in PIXEL space and produces a transform
|
|
747
|
-
* in CLIP space representing the sub-region represented by the box
|
|
748
|
-
* in the canvas.
|
|
749
|
-
*/
|
|
750
|
-
scaleRegion(e) {
|
|
751
|
-
return new u.XY(
|
|
752
|
-
// Accept a value in decimal.
|
|
753
|
-
u.Scale.scale(0, 1).scale(n.width(e)).translate(n.left(e)).reBound(n.width(this.region)).scale(-1, 1),
|
|
754
|
-
// Accept a value in decimal.
|
|
755
|
-
u.Scale.scale(0, 1).scale(n.height(e)).invert().translate(n.top(e)).reBound(n.height(this.region)).scale(-1, 1).invert()
|
|
756
|
-
);
|
|
757
|
-
}
|
|
758
|
-
scissor(e, t = p.ZERO, s) {
|
|
759
|
-
const i = [];
|
|
760
|
-
return s.includes("upper2d") && i.push(this.upper2d.scissor(e, t)), s.includes("lower2d") && i.push(this.lower2d.scissor(e, t)), s.includes("gl") && i.push(this.scissorGL(e, t)), () => i.forEach((r) => r());
|
|
761
|
-
}
|
|
762
|
-
scissorGL(e, t = p.ZERO) {
|
|
763
|
-
return this.gl.enable(this.gl.SCISSOR_TEST), e = g(e, t), this.gl.scissor(
|
|
764
|
-
n.left(e) * this.dpr,
|
|
765
|
-
(n.height(this.region) - n.bottom(e)) * this.dpr,
|
|
766
|
-
n.width(e) * this.dpr,
|
|
767
|
-
n.height(e) * this.dpr
|
|
768
|
-
), () => this.gl.disable(this.gl.SCISSOR_TEST);
|
|
769
|
-
}
|
|
770
|
-
erase(e, t = p.ZERO, ...s) {
|
|
771
|
-
t = p.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);
|
|
772
|
-
}
|
|
773
|
-
eraseGL(e, t = p.ZERO) {
|
|
774
|
-
var r;
|
|
775
|
-
const { gl: s } = this, i = this.scissorGL(g(e, t));
|
|
776
|
-
s.clearColor(...G.rgba1), s.clear(s.COLOR_BUFFER_BIT), this.os === "Windows" && ((r = this.clearProgram) == null || r.exec()), i();
|
|
777
|
-
}
|
|
778
|
-
eraseCanvas(e, t, s = p.ZERO) {
|
|
779
|
-
const i = g(t, s);
|
|
780
|
-
e.clearRect(...p.couple(n.topLeft(i)), ...O.couple(n.dims(i)));
|
|
781
|
-
}
|
|
782
|
-
};
|
|
783
|
-
o(d, "CONTEXT_KEY", k.B("render-context"));
|
|
784
|
-
let _ = d;
|
|
785
|
-
const U = y.object({
|
|
786
|
-
region: n.box,
|
|
787
|
-
enabled: y.boolean().optional().default(!1)
|
|
788
|
-
}), v = ["gl", "lower2d", "upper2d"];
|
|
789
|
-
class x extends B {
|
|
790
|
-
constructor() {
|
|
791
|
-
super(...arguments);
|
|
792
|
-
o(this, "schema", U);
|
|
793
|
-
}
|
|
794
|
-
async afterUpdate(t) {
|
|
795
|
-
this.deleted || (this.internal.renderCtx = _.use(t), await this.renderOnLifecycleChange());
|
|
796
|
-
}
|
|
797
|
-
async afterDelete() {
|
|
798
|
-
await this.renderOnLifecycleChange();
|
|
799
|
-
}
|
|
800
|
-
async renderOnLifecycleChange() {
|
|
801
|
-
await this.internal.renderCtx.loop.set({
|
|
802
|
-
key: `${this.type}-${this.key}`,
|
|
803
|
-
render: this.render.bind(this),
|
|
804
|
-
priority: "high",
|
|
805
|
-
canvases: v
|
|
806
|
-
});
|
|
807
|
-
}
|
|
808
|
-
async render() {
|
|
809
|
-
this.deleted || !this.state.enabled || this.internal.renderCtx.erase(this.state.region, p.construct(0), ...v);
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
o(x, "TYPE", "eraser");
|
|
813
|
-
const Q = {
|
|
814
|
-
[x.TYPE]: x
|
|
815
|
-
};
|
|
816
|
-
export {
|
|
817
|
-
_ as C,
|
|
818
|
-
x as E,
|
|
819
|
-
N as G,
|
|
820
|
-
K as L,
|
|
821
|
-
Q as R,
|
|
822
|
-
U as e
|
|
823
|
-
};
|