@synnaxlabs/pluto 0.42.4 → 0.43.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/{Center-D0JeI7Ta.js → Center-Bq5L7oy0.js} +2 -2
- package/dist/{Center-DuI3XH-Q.cjs → Center-DE_BtCCX.cjs} +1 -1
- package/dist/ContextMenu-BC5x7XR5.cjs +1 -0
- package/dist/{ContextMenu-BiNr7Gxv.js → ContextMenu-DLM5eLLG.js} +11 -11
- package/dist/DateTime-CdNKxVxT.js +17 -0
- package/dist/DateTime-DC19AIGq.cjs +1 -0
- package/dist/{Divider-DqEkzRIY.js → Divider-CDFHLK9U.js} +213 -215
- package/dist/Divider-D74_FAXn.cjs +22 -0
- package/dist/Dropdown-BpoU-xVd.cjs +1 -0
- package/dist/Dropdown-CQu3yo3v.js +327 -0
- package/dist/Haul-D6kpOYBa.js +124 -0
- package/dist/Haul-De8axVdi.cjs +1 -0
- package/dist/{Item-DSBs9VLu.cjs → Item-CB5c--eX.cjs} +1 -1
- package/dist/{Item-C5SQraZM.js → Item-LAMTj0X2.js} +6 -6
- package/dist/{Keyboard-Ca7TAAHK.cjs → Keyboard-CiNuYBa3.cjs} +1 -1
- package/dist/{Keyboard-Duo41pJL.js → Keyboard-DjeQa-Nx.js} +2 -2
- package/dist/{Link-B9ZGvoBU.cjs → Link-CPnT8Xp9.cjs} +1 -1
- package/dist/{Link-C9GeoB0w.js → Link-DcudTtgT.js} +1 -1
- package/dist/Pack-80N7XB5O.cjs +1 -0
- package/dist/Pack-BiS6QIuA.js +52 -0
- package/dist/Provider-CLPfWTcl.js +464 -0
- package/dist/Provider-s70PZ9lg.cjs +1 -0
- package/dist/{Space-DvalhzRj.cjs → Space-ByFmfiTa.cjs} +1 -1
- package/dist/{Space-CyTH97CN.js → Space-DxHm2ok7.js} +1 -1
- package/dist/{Text-sH_NOelc.js → Text-BiWcjO1i.js} +17 -17
- package/dist/{Text-8ps3Uw4T.js → Text-CacHYC7L.js} +4 -4
- package/dist/{Text-DkA06TeT.cjs → Text-DTPuORh0.cjs} +1 -1
- package/dist/Text-Dw0NDc2A.cjs +4 -0
- package/dist/Text-bSIbkBIL.cjs +1 -0
- package/dist/{Text-BR4FW9Hy.js → Text-wL3te5S6.js} +125 -122
- package/dist/{Toggle-BRuUrO2N.js → Toggle-CbzT5wR_.js} +115 -109
- package/dist/Toggle-CpDGR6M6.cjs +1 -0
- package/dist/{Video-DWStbcmD.js → Video-Bq_WSdfc.js} +1 -1
- package/dist/{Video-DgjuFLiE.cjs → Video-BuzHLiXL.cjs} +1 -1
- package/dist/{WithIcon-BhR6nwRh.js → WithIcon-B7VPBqA2.js} +24 -27
- package/dist/WithIcon-CCnlO2LC.cjs +1 -0
- package/dist/align.cjs +1 -1
- package/dist/align.js +1 -1
- package/dist/array-CPtP5Oov.js +7 -0
- package/dist/array-CZHEGH95.cjs +1 -0
- 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-C7rJrqRi.cjs +38 -0
- package/dist/css-DjQu2Qyf.js +12511 -0
- package/dist/css.cjs +1 -1
- package/dist/css.js +11 -5
- package/dist/deep-BRgXTyZn.cjs +1 -0
- package/dist/deep-D72Fid_q.js +193 -0
- package/dist/{dimensions-By-vgVks.cjs → dimensions-BmlCx5q4.cjs} +1 -1
- package/dist/{dimensions-B6qmnzv3.js → dimensions-FnMV2fyj.js} +1 -1
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/{eraser-CK8SwEJa.js → eraser-BJxXs5KS.js} +246 -427
- package/dist/eraser-CGxyWj3B.cjs +11 -0
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +36 -37
- package/dist/{external-B1YsdhS4.js → external-5nVYtLDI.js} +122 -123
- package/dist/{external-Bl8q9UBF.js → external-69bqTAcN.js} +1837 -1838
- package/dist/external-B-B5ro_s.cjs +1 -0
- package/dist/{external-BwUa_5Vs.cjs → external-B3Mtbu36.cjs} +1 -1
- package/dist/external-BgwS5D0j.cjs +1 -0
- package/dist/{external-BnK4UIFe.js → external-Bn3A7Rew.js} +3 -3
- package/dist/{external-DmryCcwg.cjs → external-Bojct8Fy.cjs} +1 -1
- package/dist/{external-DissGp_3.js → external-C6mmYO7R.js} +8 -8
- package/dist/{external-C0X4mXVG.js → external-CVHgvs0C.js} +6 -6
- package/dist/external-CnkWbciu.js +399 -0
- package/dist/{external-zbKPQ9ls.cjs → external-Cxwmal3D.cjs} +2 -2
- package/dist/external-DC1RT1Js.cjs +1 -0
- package/dist/external-DOujCKRS.cjs +1 -0
- package/dist/{external-BOMdfX8_.js → external-Dm9rg2x7.js} +2 -2
- package/dist/external-EvgywGSS.cjs +1 -0
- package/dist/external-GjPk23XZ.cjs +1 -0
- package/dist/{external-CUgPP-JD.cjs → external-MJ2UMa_L.cjs} +1 -1
- package/dist/{external-BDkqwq72.js → external-UeyJ6mPv.js} +7901 -7839
- package/dist/{external-B8uaUKhb.cjs → external-V0yO0q2n.cjs} +1 -1
- package/dist/{external-DQwznOyH.cjs → external-cDUxSE0v.cjs} +38 -38
- package/dist/{external-_8qdWaAg.js → external-cJGWYB3x.js} +2 -2
- package/dist/{external-C7yPkamb.js → external-fwvNilmo.js} +8 -8
- package/dist/{external-bSUra-q7.js → external-l7imNJRR.js} +26 -26
- package/dist/external-upR9Jz-8.js +60 -0
- package/dist/{font-CjYcjBiv.js → font-Csp00pQP.js} +2 -2
- package/dist/{font-XlUAG1-r.cjs → font-ifUcrCey.cjs} +1 -1
- package/dist/fontString-BWECl_1B.cjs +1 -0
- package/dist/{fontString-BN1kd1AP.js → fontString-ap-NPnCD.js} +6 -5
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/hooks-B92WH57y.cjs +1 -0
- package/dist/{hooks-DjznxGgm.js → hooks-u_TgL0Xi.js} +79 -79
- package/dist/index.cjs +7 -7
- package/dist/index.js +7378 -7351
- 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-YWPkhTn6.cjs +154 -0
- package/dist/provider-gW90qzEG.js +32024 -0
- package/dist/src/aether/aether/aether.d.ts +16 -16
- package/dist/src/aether/aether/aether.d.ts.map +1 -1
- package/dist/src/aether/aether/aether.spec.d.ts +5 -0
- package/dist/src/aether/aether/aether.spec.d.ts.map +1 -0
- package/dist/src/aether/main.d.ts +68 -19
- package/dist/src/aether/main.d.ts.map +1 -1
- package/dist/src/aether/main.spec.d.ts +2 -2
- package/dist/src/aether/main.spec.d.ts.map +1 -1
- package/dist/src/aether/message.d.ts +24 -14
- package/dist/src/aether/message.d.ts.map +1 -1
- package/dist/src/alamos/aether/alamos.d.ts +3 -3
- package/dist/src/alamos/aether/alamos.d.ts.map +1 -1
- package/dist/src/align/Pack.d.ts.map +1 -1
- package/dist/src/breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/src/button/Button.d.ts +1 -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 +2 -2
- package/dist/src/channel/LinePlot.d.ts.map +1 -1
- package/dist/src/channel/Select.d.ts.map +1 -1
- package/dist/src/color/Provider.d.ts +10 -10
- package/dist/src/color/Provider.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.map +1 -1
- package/dist/src/dropdown/Dropdown.d.ts.map +1 -1
- package/dist/src/form/Field.d.ts +3 -3
- package/dist/src/form/Field.d.ts.map +1 -1
- package/dist/src/form/Form.d.ts +42 -28
- package/dist/src/form/Form.d.ts.map +1 -1
- package/dist/src/form/synced.d.ts +8 -8
- package/dist/src/form/synced.d.ts.map +1 -1
- package/dist/src/haul/Haul.d.ts +6 -6
- package/dist/src/haul/Haul.d.ts.map +1 -1
- package/dist/src/hooks/ref.d.ts +2 -2
- package/dist/src/hooks/ref.d.ts.map +1 -1
- package/dist/src/hooks/useResize.d.ts.map +1 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/input/HelpText.d.ts +4 -4
- package/dist/src/input/HelpText.d.ts.map +1 -1
- package/dist/src/input/Item.d.ts +1 -1
- package/dist/src/input/Item.d.ts.map +1 -1
- package/dist/src/input/Text.d.ts +2 -3
- package/dist/src/input/Text.d.ts.map +1 -1
- package/dist/src/label/Select.d.ts.map +1 -1
- package/dist/src/list/Selector.d.ts.map +1 -1
- package/dist/src/list/useSelect.d.ts.map +1 -1
- package/dist/src/memo/proxyMemo.d.ts.map +1 -1
- package/dist/src/memo/useMemoCompare.d.ts +3 -3
- package/dist/src/memo/useMemoCompare.d.ts.map +1 -1
- package/dist/src/mosaic/types.d.ts +9 -1
- package/dist/src/mosaic/types.d.ts.map +1 -1
- package/dist/src/note/Note.d.ts +2 -2
- package/dist/src/note/Note.d.ts.map +1 -1
- package/dist/src/observe/use.d.ts +2 -2
- package/dist/src/observe/use.d.ts.map +1 -1
- package/dist/src/pluto/aether/pluto.d.ts.map +1 -1
- package/dist/src/ranger/Select.d.ts.map +1 -1
- package/dist/src/select/Button.d.ts +5 -3
- package/dist/src/select/Button.d.ts.map +1 -1
- package/dist/src/select/Multiple.d.ts.map +1 -1
- package/dist/src/select/Single.d.ts.map +1 -1
- package/dist/src/state/state.d.ts +2 -1
- package/dist/src/state/state.d.ts.map +1 -1
- package/dist/src/status/Indicator.d.ts +8 -0
- package/dist/src/status/Indicator.d.ts.map +1 -0
- package/dist/src/status/Text.d.ts +2 -2
- package/dist/src/status/Text.d.ts.map +1 -1
- package/dist/src/status/aether/aggregator.d.ts +14 -17
- package/dist/src/status/aether/aggregator.d.ts.map +1 -1
- package/dist/src/status/aether/types.d.ts +5 -17
- package/dist/src/status/aether/types.d.ts.map +1 -1
- package/dist/src/status/colors.d.ts +1 -1
- package/dist/src/status/colors.d.ts.map +1 -1
- package/dist/src/status/external.d.ts +1 -1
- package/dist/src/status/external.d.ts.map +1 -1
- package/dist/src/synnax/Provider.d.ts +2 -0
- package/dist/src/synnax/Provider.d.ts.map +1 -1
- package/dist/src/synnax/aether/provider.d.ts +28 -28
- package/dist/src/synnax/aether/provider.d.ts.map +1 -1
- package/dist/src/table/Table.d.ts +1 -1
- package/dist/src/table/Table.d.ts.map +1 -1
- package/dist/src/table/aether/Table.d.ts +28 -28
- package/dist/src/table/aether/Table.d.ts.map +1 -1
- package/dist/src/table/cells/Cells.d.ts +16 -16
- package/dist/src/table/cells/Cells.d.ts.map +1 -1
- package/dist/src/table/cells/registry.d.ts +2 -2
- package/dist/src/table/cells/registry.d.ts.map +1 -1
- package/dist/src/tabs/types.d.ts +3 -3
- package/dist/src/tabs/types.d.ts.map +1 -1
- package/dist/src/telem/aether/context.d.ts +1 -1
- package/dist/src/telem/aether/context.d.ts.map +1 -1
- package/dist/src/telem/aether/pipeline.d.ts +19 -19
- package/dist/src/telem/aether/pipeline.d.ts.map +1 -1
- package/dist/src/telem/aether/provider.d.ts +4 -4
- package/dist/src/telem/aether/provider.d.ts.map +1 -1
- package/dist/src/telem/aether/remote.d.ts +27 -28
- package/dist/src/telem/aether/remote.d.ts.map +1 -1
- package/dist/src/telem/aether/static.d.ts +13 -13
- package/dist/src/telem/aether/static.d.ts.map +1 -1
- package/dist/src/telem/aether/telem.d.ts +44 -45
- package/dist/src/telem/aether/telem.d.ts.map +1 -1
- package/dist/src/telem/aether/transformers.d.ts +44 -47
- 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/streamer.d.ts.map +1 -1
- package/dist/src/telem/control/Chip.d.ts +1 -1
- package/dist/src/telem/control/Chip.d.ts.map +1 -1
- package/dist/src/telem/control/Controller.d.ts +1 -1
- package/dist/src/telem/control/Controller.d.ts.map +1 -1
- package/dist/src/telem/control/Indicator.d.ts +1 -1
- package/dist/src/telem/control/Indicator.d.ts.map +1 -1
- package/dist/src/telem/control/StateProvider.d.ts +1 -3
- package/dist/src/telem/control/StateProvider.d.ts.map +1 -1
- package/dist/src/telem/control/aether/chip.d.ts +19 -21
- package/dist/src/telem/control/aether/chip.d.ts.map +1 -1
- package/dist/src/telem/control/aether/controller.d.ts +17 -14
- package/dist/src/telem/control/aether/controller.d.ts.map +1 -1
- package/dist/src/telem/control/aether/indicator.d.ts +25 -28
- package/dist/src/telem/control/aether/indicator.d.ts.map +1 -1
- package/dist/src/telem/control/aether/legend.d.ts +13 -13
- package/dist/src/telem/control/aether/legend.d.ts.map +1 -1
- package/dist/src/telem/control/aether/state.d.ts +8 -8
- package/dist/src/telem/control/aether/state.d.ts.map +1 -1
- package/dist/src/text/Editable.d.ts.map +1 -1
- package/dist/src/text/Text.d.ts +2 -2
- package/dist/src/text/Text.d.ts.map +1 -1
- package/dist/src/text/WithIcon.d.ts.map +1 -1
- package/dist/src/text/core/dimensions.d.ts +24 -0
- package/dist/src/text/core/dimensions.d.ts.map +1 -0
- package/dist/src/text/core/dimensions.spec.d.ts +2 -0
- package/dist/src/text/core/dimensions.spec.d.ts.map +1 -0
- package/dist/src/text/core/external.d.ts +3 -0
- package/dist/src/text/core/external.d.ts.map +1 -0
- package/dist/src/text/core/index.d.ts +1 -1
- package/dist/src/text/core/index.d.ts.map +1 -1
- package/dist/src/text/core/types.d.ts +5 -5
- package/dist/src/text/core/types.d.ts.map +1 -1
- package/dist/src/text/external.d.ts +1 -1
- package/dist/src/text/external.d.ts.map +1 -1
- package/dist/src/theming/aether/provider.d.ts +809 -809
- package/dist/src/theming/aether/provider.d.ts.map +1 -1
- package/dist/src/theming/core/theme.d.ts +423 -424
- package/dist/src/theming/core/theme.d.ts.map +1 -1
- package/dist/src/tooltip/Dialog.d.ts.map +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/triggers.d.ts +1 -1
- package/dist/src/triggers/triggers.d.ts.map +1 -1
- package/dist/src/util/component.d.ts +1 -1
- package/dist/src/util/component.d.ts.map +1 -1
- package/dist/src/util/zod.d.ts +2 -2
- package/dist/src/util/zod.d.ts.map +1 -1
- package/dist/src/viewport/use.d.ts +1 -1
- package/dist/src/viewport/use.d.ts.map +1 -1
- package/dist/src/vis/axis/axis.d.ts +10 -10
- package/dist/src/vis/axis/axis.d.ts.map +1 -1
- package/dist/src/vis/axis/ticks.d.ts +2 -2
- package/dist/src/vis/axis/ticks.d.ts.map +1 -1
- package/dist/src/vis/button/aether/button.d.ts +25 -7
- package/dist/src/vis/button/aether/button.d.ts.map +1 -1
- package/dist/src/vis/button/use.d.ts +5 -3
- package/dist/src/vis/button/use.d.ts.map +1 -1
- package/dist/src/vis/canvas/aether/canvas.d.ts +11 -11
- package/dist/src/vis/canvas/aether/canvas.d.ts.map +1 -1
- package/dist/src/vis/diagram/Diagram.d.ts +3 -2
- package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/Diagram.d.ts +32 -32
- package/dist/src/vis/diagram/aether/Diagram.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/types.d.ts +19 -45
- package/dist/src/vis/diagram/aether/types.d.ts.map +1 -1
- package/dist/src/vis/diagram/align.d.ts.map +1 -1
- package/dist/src/vis/diagram/edge/connector/connector.d.ts +2 -2
- package/dist/src/vis/diagram/edge/connector/connector.d.ts.map +1 -1
- package/dist/src/vis/draw2d/canvas.d.ts +1 -4
- package/dist/src/vis/draw2d/canvas.d.ts.map +1 -1
- package/dist/src/vis/draw2d/index.d.ts.map +1 -1
- package/dist/src/vis/eraser/aether/eraser.d.ts +11 -11
- package/dist/src/vis/eraser/aether/eraser.d.ts.map +1 -1
- package/dist/src/vis/eraser/use.d.ts +1 -1
- package/dist/src/vis/eraser/use.d.ts.map +1 -1
- package/dist/src/vis/grid/grid.d.ts +3 -3
- package/dist/src/vis/grid/grid.d.ts.map +1 -1
- package/dist/src/vis/legend/Container.d.ts +7 -7
- package/dist/src/vis/legend/Container.d.ts.map +1 -1
- package/dist/src/vis/light/aether/light.d.ts +7 -8
- package/dist/src/vis/light/aether/light.d.ts.map +1 -1
- package/dist/src/vis/light/use.d.ts +2 -2
- package/dist/src/vis/light/use.d.ts.map +1 -1
- package/dist/src/vis/line/Line.d.ts +1 -1
- package/dist/src/vis/line/Line.d.ts.map +1 -1
- package/dist/src/vis/line/aether/line.d.ts +10 -10
- package/dist/src/vis/line/aether/line.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Axis.d.ts +2 -2
- package/dist/src/vis/lineplot/Axis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Line.d.ts +1 -1
- package/dist/src/vis/lineplot/Line.d.ts.map +1 -1
- package/dist/src/vis/lineplot/LinePlot.d.ts +2 -2
- package/dist/src/vis/lineplot/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/BoundQuerier.d.ts +7 -7
- package/dist/src/vis/lineplot/aether/BoundQuerier.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/LinePlot.d.ts +30 -30
- package/dist/src/vis/lineplot/aether/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/XAxis.d.ts +64 -64
- package/dist/src/vis/lineplot/aether/XAxis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/YAxis.d.ts +64 -64
- package/dist/src/vis/lineplot/aether/YAxis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/axis.d.ts +13 -13
- package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/Annotation.d.ts +2 -2
- package/dist/src/vis/lineplot/range/Annotation.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/Provider.d.ts +1 -1
- package/dist/src/vis/lineplot/range/Provider.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/aether/annotation.d.ts +11 -11
- package/dist/src/vis/lineplot/range/aether/annotation.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/aether/provider.d.ts +33 -31
- package/dist/src/vis/lineplot/range/aether/provider.d.ts.map +1 -1
- package/dist/src/vis/lineplot/tooltip/Tooltip.d.ts +2 -2
- package/dist/src/vis/lineplot/tooltip/Tooltip.d.ts.map +1 -1
- package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts +29 -29
- package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts.map +1 -1
- package/dist/src/vis/lineplot/useBoundQuerier.d.ts.map +1 -1
- package/dist/src/vis/log/Log.d.ts +2 -2
- package/dist/src/vis/log/Log.d.ts.map +1 -1
- package/dist/src/vis/log/aether/Log.d.ts +37 -37
- package/dist/src/vis/log/aether/Log.d.ts.map +1 -1
- package/dist/src/vis/measure/Measure.d.ts +1 -1
- package/dist/src/vis/measure/Measure.d.ts.map +1 -1
- package/dist/src/vis/measure/aether/measure.d.ts +36 -36
- package/dist/src/vis/measure/aether/measure.d.ts.map +1 -1
- package/dist/src/vis/render/context.d.ts.map +1 -1
- package/dist/src/vis/render/loop.d.ts +10 -15
- package/dist/src/vis/render/loop.d.ts.map +1 -1
- package/dist/src/vis/rule/Rule.d.ts +2 -2
- package/dist/src/vis/rule/Rule.d.ts.map +1 -1
- package/dist/src/vis/rule/aether/aether.d.ts +10 -10
- 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/Grid.d.ts +6 -3
- package/dist/src/vis/schematic/Grid.d.ts.map +1 -1
- package/dist/src/vis/schematic/SelectOrientation.d.ts +3 -2
- package/dist/src/vis/schematic/SelectOrientation.d.ts.map +1 -1
- package/dist/src/vis/schematic/Symbols.d.ts +108 -99
- package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
- package/dist/src/vis/schematic/external.d.ts +1 -0
- package/dist/src/vis/schematic/external.d.ts.map +1 -1
- package/dist/src/vis/schematic/primitives/Primitives.d.ts +28 -28
- package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
- package/dist/src/vis/schematic/registry.d.ts +5 -5
- package/dist/src/vis/schematic/registry.d.ts.map +1 -1
- package/dist/src/vis/setpoint/aether/setpoint.d.ts +11 -11
- package/dist/src/vis/setpoint/aether/setpoint.d.ts.map +1 -1
- package/dist/src/vis/setpoint/use.d.ts +2 -2
- package/dist/src/vis/setpoint/use.d.ts.map +1 -1
- package/dist/src/vis/text/atlas.d.ts +0 -2
- package/dist/src/vis/text/atlas.d.ts.map +1 -1
- package/dist/src/vis/text/index.d.ts.map +1 -1
- package/dist/src/vis/toggle/aether/toggle.d.ts +11 -12
- package/dist/src/vis/toggle/aether/toggle.d.ts.map +1 -1
- package/dist/src/vis/toggle/use.d.ts +2 -2
- package/dist/src/vis/toggle/use.d.ts.map +1 -1
- package/dist/src/vis/value/aether/value.d.ts +43 -43
- package/dist/src/vis/value/aether/value.d.ts.map +1 -1
- package/dist/src/vis/value/use.d.ts +15 -15
- package/dist/src/vis/value/use.d.ts.map +1 -1
- package/dist/state-DAFH2z9y.js +4082 -0
- package/dist/state-DwM4WaEw.cjs +27 -0
- 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/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/triggers.cjs +1 -1
- package/dist/triggers.js +1 -1
- package/dist/useClickOutside-CUa496t0.cjs +1 -0
- package/dist/{useClickOutside-DDCP7Fh-.js → useClickOutside-Dw3KdU3w.js} +22 -22
- package/dist/{useDebouncedCallback-DnwYZzjR.cjs → useDebouncedCallback-Bx-HX76R.cjs} +1 -1
- package/dist/{useDebouncedCallback-BG4I7mbT.js → useDebouncedCallback-Cvo_HNow.js} +1 -1
- package/dist/{useMemoCompare-BViQehyd.js → useMemoCompare-B5QPDK2p.js} +2 -2
- package/dist/{useMemoCompare-C2X7Mzx8.cjs → useMemoCompare-BDs2sKw5.cjs} +1 -1
- package/dist/useVirtualCursorDragWebKit-CUbBopD6.cjs +1 -0
- package/dist/{useVirtualCursorDragWebKit-DTU2tUmp.js → useVirtualCursorDragWebKit-CfxbToxm.js} +7 -7
- package/dist/value--TYeJRXm.cjs +55 -0
- package/dist/value-dkHk-BsO.js +10797 -0
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +24 -23
- package/dist/ContextMenu-HpMLd1Ht.cjs +0 -1
- package/dist/DateTime-BsjSfOY-.cjs +0 -1
- package/dist/DateTime-r6hocEmI.js +0 -17
- package/dist/Divider-Dut8qPee.cjs +0 -22
- package/dist/Dropdown-BSSe1E1e.cjs +0 -1
- package/dist/Dropdown-BrFL1eSc.js +0 -327
- package/dist/Haul-C6i2oI7z.cjs +0 -1
- package/dist/Haul-CEFSvdy9.js +0 -124
- package/dist/Pack-BozAEHBp.js +0 -48
- package/dist/Pack-DeZUUdJM.cjs +0 -1
- package/dist/Provider-B86QO9NT.js +0 -461
- package/dist/Provider-Cw0mSr2D.cjs +0 -1
- package/dist/Text-C8GBHl-F.cjs +0 -1
- package/dist/Text-CMTkSEWx.cjs +0 -4
- package/dist/Toggle-C0lZDyeo.cjs +0 -1
- package/dist/WithIcon-BgS5shNZ.cjs +0 -1
- package/dist/css-9iEiTRNL.cjs +0 -15
- package/dist/css-Cnb9DQMD.js +0 -4747
- package/dist/deep-BNa3STCp.cjs +0 -1
- package/dist/deep-P35D0Sz7.js +0 -112
- package/dist/eraser-BkqFgBRY.cjs +0 -11
- package/dist/external-B7NxSklQ.js +0 -60
- package/dist/external-BA_VOnV-.js +0 -400
- package/dist/external-BGBgNbe2.cjs +0 -1
- package/dist/external-CTc1n-JC.cjs +0 -1
- package/dist/external-CzTBFiv_.cjs +0 -1
- package/dist/external-DGJ8YAe-.cjs +0 -1
- package/dist/external-DiLZ1dEk.cjs +0 -1
- package/dist/external-Dq8-cbf3.cjs +0 -1
- package/dist/fontString-Ddza50DF.cjs +0 -1
- package/dist/hooks-B5aLaWzS.cjs +0 -1
- package/dist/provider-aWtsGnV8.cjs +0 -58
- package/dist/provider-r5Ly36FI.js +0 -12854
- package/dist/src/aether/aether/aether.spec.spec.d.ts +0 -5
- package/dist/src/aether/aether/aether.spec.spec.d.ts.map +0 -1
- package/dist/src/select/Modal.d.ts +0 -1
- package/dist/src/select/Modal.d.ts.map +0 -1
- package/dist/src/status/Circle.d.ts +0 -8
- package/dist/src/status/Circle.d.ts.map +0 -1
- package/dist/src/text/dimensions.d.ts +0 -4
- package/dist/src/text/dimensions.d.ts.map +0 -1
- package/dist/src/vis/performance/Performance.d.ts +0 -2
- package/dist/src/vis/performance/Performance.d.ts.map +0 -1
- package/dist/src/vis/performance/aether/index.d.ts +0 -2
- package/dist/src/vis/performance/aether/index.d.ts.map +0 -1
- package/dist/src/vis/performance/aether/performance.d.ts +0 -15
- package/dist/src/vis/performance/aether/performance.d.ts.map +0 -1
- package/dist/src/vis/performance/index.d.ts +0 -2
- package/dist/src/vis/performance/index.d.ts.map +0 -1
- package/dist/state-CjGemC7S.js +0 -88
- package/dist/state-_FFrG5nH.cjs +0 -1
- package/dist/toArray-B7nD2CTw.js +0 -5
- package/dist/toArray-BvVYuN_b.cjs +0 -1
- package/dist/units-CX_coN92.cjs +0 -1
- package/dist/units-Ct3Xl5nK.js +0 -11
- package/dist/useClickOutside-CSff8yb-.cjs +0 -1
- package/dist/useVirtualCursorDragWebKit-DDmXE4RW.cjs +0 -1
- package/dist/value-CkzEjG7v.cjs +0 -57
- package/dist/value-DIoBc3VU.js +0 -5977
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";var z=Object.defineProperty;var Z=(l,t,e)=>t in l?z(l,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):l[t]=e;var n=(l,t,e)=>Z(l,typeof t!="symbol"?t+"":t,e);const a=require("./css-C7rJrqRi.cjs"),u=require("./provider-YWPkhTn6.cjs"),_=require("./state-DwM4WaEw.cjs"),B=require("./dimensions-BmlCx5q4.cjs"),G=_.object({include:_.string().array().optional(),exclude:_.string().array().optional(),level:_._enum(u.g.LOG_LEVELS).optional().default("info")}),b="alamos-provider";class S extends u.Composite{constructor(){super(...arguments);n(this,"schema",G)}afterUpdate(e){if(e.getOptional(b)!=null)return;const i=[],{include:r,exclude:h,level:o}=this.state;(r!=null||h!=null)&&i.push(u.g.logLevelKeyFiler({include:r,exclude:h})),o!=null&&i.push(u.g.logThresholdFilter(o)),i.length===0&&i.push(()=>!1),this.internal.ins=new u.g.Instrumentation({key:"aether",logger:new u.g.Logger({filters:i})}),e.set(b,this.internal.ins)}}n(S,"TYPE","alamos.Provider");const Y=(l,t)=>{const e=l.get(b);if(e==null)throw new Error("No instrumentation provider");return t==null?e:e.child(t)},$={[S.TYPE]:S},C=(l,t)=>a.Pt.construct(a.Pt.left(l)-t.x,a.Pt.top(l)-t.y,a.Pt.width(l)+t.x*2,a.Pt.height(l)+t.y*2);class T{constructor(t,e,s,i=a.A.XY.IDENTITY){n(this,"scale_");n(this,"wrapped");n(this,"atlasRegistry");n(this,"cachedFont",null);n(this,"cachedFillStyle",null);n(this,"cachedStrokeStyle",null);n(this,"cachedLineWidth",null);n(this,"cachedGlobalAlpha",null);n(this,"cachedTextAlign",null);n(this,"cachedTextBaseline",null);n(this,"cachedLineCap",null);n(this,"cachedLineJoin",null);n(this,"cachedMiterLimit",null);n(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}checkAtlasFillStyle(t=!1){return t&&typeof this.fillStyle=="string"?[!0,this.fillStyle]:(t&&console.warn("attempted to use a text atlas with a gradient fill style. This is not supported. Falling back to default canvas fill."),[!1,null])}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,h,o,c,d){this.wrapped.drawImage(t,e,s,i,r,h!=null?this.scale_.x.pos(h):h,o!=null?this.scale_.y.pos(o):o,c!=null?this.scale_.x.dim(c):c,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,h){return this.wrapped.createRadialGradient(t,e,s,i,r,h)}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,h,o){this.wrapped.putImageData(t,e,s,i,r,h,o)}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,h){this.wrapped.arc(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),i,r,h)}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,h){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(h))}closePath(){this.wrapped.closePath()}ellipse(t,e,s,i,r,h,o,c){this.wrapped.ellipse(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i),r,h,o,c)}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[h,o]=this.checkAtlasFillStyle(r.useAtlas);if(h){this.atlasRegistry.get({font:this.font,textColor:o}).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)}measureText(t){return this.wrapped.measureText(t)}textDimensions(t,e={}){const[s,i]=this.checkAtlasFillStyle(e.useAtlas);return s?this.atlasRegistry.get({font:this.font,textColor:i}).measureText(t):B.dimensionsFromMetrics(this.measureText(t))}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=a.K.ZERO){const s=new H(this.scale_);return t=C(t,e),s.rect(...a.K.couple(a.Pt.topLeft(t)),...a.A$1.couple(a.Pt.dims(t))),this.save(),this.clip(s.getPath()),()=>this.restore()}setTransform(t,e,s,i,r,h){this.wrapped.setTransform(t,e,s,i,r,h)}transform(t,e,s,i,r,h){this.wrapped.transform(t,e,s,i,r,h)}translate(t,e){this.wrapped.translate(t,e)}}class H{constructor(t=a.A.XY.IDENTITY,e){n(this,"scale_");n(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,h){this.path.arc(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),i,r,h)}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,h){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(h))}closePath(){this.path.closePath()}ellipse(t,e,s,i,r,h,o,c){this.path.ellipse(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i),r,h,o,c)}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 h=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),h)}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 V=`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
|
+
`,D=l=>new Error(`failed to compile webgl program: ${l}`),Q=new Error("null shader encountered");let K=class{constructor(t,e,s){n(this,"renderCtx");n(this,"prog");n(this,"vertShader");n(this,"fragShader");n(this,"uniformLocCache",new Map);this.renderCtx=t;const i=t.gl.createProgram();if(i==null)throw D("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),a.K.couple(e))}uniformColor(t,e){this.renderCtx.gl.uniform4fv(this.getUniformLoc(t),a.od.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 Q;if(s.shaderSource(i,t),s.compileShader(i),!s.getShaderParameter(i,s.COMPILE_STATUS)){const h=s.getShaderInfoLog(i);throw s.deleteShader(i),D(h??"unknown")}s.attachShader(this.prog,i)}};const j=new Float32Array([0,0,0,0,0,0]);class tt extends K{constructor(e){super(e,J,V);n(this,"positionBuffer");const s=e.gl.createBuffer();if(s==null)throw new u.ti("webgl: failed to create buffer");this.positionBuffer=s,e.gl.bindBuffer(e.gl.ARRAY_BUFFER,this.positionBuffer),e.gl.bufferData(e.gl.ARRAY_BUFFER,j,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 F={high:1,low:0};class M{constructor({afterRender:t,instrumentation:e=u.g.Instrumentation.NOOP,handleError:s}){n(this,"requests",new Map);n(this,"cleanup",new Map);n(this,"afterRender");n(this,"instrumentation");n(this,"handleError");this.afterRender=t,this.instrumentation=e,this.handleError=s,this.start()}set(t){const e=this.requests.get(t.key);if(e==null)this.requests.set(t.key,t);else{const s=F[t.priority]>=F[e.priority],i=t.canvases.length>=e.canvases.length;s&&i&&this.requests.set(t.key,t)}}render(){var e;const{requests:t}=this;t.size!==0&&(this.runCleanupsSync(),this.renderSync(),this.requests.clear(),(e=this.afterRender)==null||e.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){this.handleError(s,"render loop failed")}})}start(){const t=()=>{try{this.render()}catch(e){this.handleError(e,"render loop failed")}requestAnimationFrame(t)};requestAnimationFrame(t)}}const y=2,f=2,A=class A{constructor(t){n(this,"atlas");n(this,"charDims");n(this,"charMap");const{font:e,characters:s=A.DEFAULT_CHARS,textColor:i}=t;this.charMap=new Map;const r=a.c.unique(Array.from(s)),o=new OffscreenCanvas(1,1).getContext("2d");o.font=e;const c=o.measureText("0");this.charDims=B.dimensionsFromMetrics(c),this.charDims.width+=y,this.charDims.height+=y;const d=r.length,g=this.charDims.width,x=this.charDims.height,p=Math.ceil(Math.sqrt(d)),P=Math.ceil(d/p);this.atlas=new OffscreenCanvas(g*p*f,x*(P+1)*f);const m=this.atlas.getContext("2d");m.scale(f,f),m.font=e,m.textBaseline="alphabetic",m.textAlign="left",m.fillStyle=a.od.hex(i),m.clearRect(0,0,this.atlas.width,this.atlas.height),r.forEach((v,L)=>{const N=L%p,X=Math.floor(L/p),U=N*g,W=(X+1)*x;m.fillText(v,U,W),this.charMap.set(v,L)})}fillText(t,e,s,i){const{width:r,height:h}=this.charDims,o=Math.ceil(Math.sqrt(this.charMap.size));for(let c=0;c<e.length;c++){const d=e[c],g=this.charMap.get(d);if(g===void 0)continue;const x=g%o,p=Math.floor(g/o);t.drawImage(this.atlas,x*r*f,p*h*f+y,r*f,h*f,s+c*r,i-h-y/f,r,h)}}measureText(t){return{width:t.length*this.charDims.width,height:this.charDims.height}}};n(A,"DEFAULT_CHARS","0123456789.:-µmsNa∞ᴇ");let O=A;class et{constructor(){n(this,"atlases");this.atlases=new Map}get(t){const e=`${t.font}-${a.od.hex(t.textColor)}-${t.characters}`;if(this.atlases.has(e))return this.atlases.get(e);const s=new O(t);return this.atlases.set(e,s),s}}const I=l=>(l.textRendering="optimizeSpeed",l.imageSmoothingEnabled=!1,l),w=class w{constructor(t,e,s,i,r,h,o){n(this,"glCanvas");n(this,"upper2dCanvas");n(this,"lower2dCanvas");n(this,"gl");n(this,"lower2d");n(this,"upper2d");n(this,"region");n(this,"dpr");n(this,"loop");n(this,"clearProgram");n(this,"os");n(this,"instrumentation");this.upper2dCanvas=s,this.lower2dCanvas=e,this.glCanvas=t,this.os=i,this.instrumentation=r,this.dpr=1;const c=this.lower2dCanvas.getContext("2d");if(c==null)throw new Error("Could not get 2D context");const d=new et;this.lower2d=I(new T(c,d,this.dpr));const g=this.upper2dCanvas.getContext("2d");if(g==null)throw new Error("Could not get 2D context");this.upper2d=I(new T(g,d,this.dpr));const x={preserveDrawingBuffer:!0,powerPreference:"high-performance",stencil:!1,depth:!1},p=this.glCanvas.getContext("webgl2",x);if(p==null)throw new Error("Could not get WebGL context");p.disable(p.DEPTH_TEST),p.disable(p.STENCIL_TEST),p.disable(p.CULL_FACE),p.disable(p.DITHER),this.gl=p,this.glCanvas.oncontextlost=()=>h({variant:"error",message:"WebGL context lost"});const P=()=>{this.gl.flush(),this.gl.finish()};this.loop=new M({afterRender:P,instrumentation:this.instrumentation,handleError:o}),this.region=a.Pt.ZERO,this.os==="Windows"&&(this.clearProgram=new tt(this))}static create(t,e,s,i,r){const h=Y(t,"render_context"),o=new w(e,s,i,r,h,u.useAdder(t),u.useErrorHandler(t));return t.set(w.CONTEXT_KEY,o),o}static useOptional(t){return t.getOptional(w.CONTEXT_KEY)}static use(t){return t.get(w.CONTEXT_KEY)}update(t){t.set(w.CONTEXT_KEY,this)}resize(t,e){a.Pt.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,a.Pt.width(t)*e,a.Pt.height(t)*e))}resizeCanvas(t){t.width=a.Pt.width(this.region)*this.dpr,t.height=a.Pt.height(this.region)*this.dpr}get aspect(){return a.Pt.aspect(this.region)}scaleRegion(t){return new a.A.XY(a.A.Scale.scale(0,1).scale(a.Pt.width(t)).translate(a.Pt.left(t)).reBound(a.Pt.width(this.region)).scale(-1,1),a.A.Scale.scale(0,1).scale(a.Pt.height(t)).invert().translate(a.Pt.top(t)).reBound(a.Pt.height(this.region)).scale(-1,1).invert())}scissor(t,e=a.K.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=a.K.ZERO){return this.gl.enable(this.gl.SCISSOR_TEST),t=C(t,e),this.gl.scissor(a.Pt.left(t)*this.dpr,(a.Pt.height(this.region)-a.Pt.bottom(t))*this.dpr,a.Pt.width(t)*this.dpr,a.Pt.height(t)*this.dpr),()=>this.gl.disable(this.gl.SCISSOR_TEST)}erase(t,e=a.K.ZERO,...s){e=a.K.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=a.K.ZERO){var r;const{gl:s}=this,i=this.scissorGL(C(t,e));s.clearColor(...a.od.rgba1(a.od.ZERO)),s.clear(s.COLOR_BUFFER_BIT),this.os==="Windows"&&((r=this.clearProgram)==null||r.exec()),i()}eraseCanvas(t,e,s=a.K.ZERO){const i=C(e,s);t.clearRect(...a.K.couple(a.Pt.topLeft(i)),...a.A$1.couple(a.Pt.dims(i)))}};n(w,"CONTEXT_KEY",a.CSS.B("render-context"));let R=w;const q=_.object({region:a.Pt.box,enabled:_.boolean().optional().default(!1)}),k=["gl","lower2d","upper2d"];class E extends u.Leaf{constructor(){super(...arguments);n(this,"schema",q)}afterUpdate(e){this.deleted||(this.internal.renderCtx=R.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:k})}render(){this.deleted||!this.state.enabled||this.internal.renderCtx.erase(this.state.region,a.K.construct(0),...k)}}n(E,"TYPE","eraser");const st={[E.TYPE]:E};exports.Context=R;exports.Eraser=E;exports.GLProgram=K;exports.Loop=M;exports.Provider=S;exports.REGISTRY=st;exports.REGISTRY$1=$;exports.eraserStateZ=q;exports.providerStateZ=G;exports.useInstrumentation=Y;
|
package/dist/ether.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./provider-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./provider-YWPkhTn6.cjs");require("./css-C7rJrqRi.cjs");const r=require("./eraser-CGxyWj3B.cjs"),e=require("./value--TYeJRXm.cjs");require("./state-DwM4WaEw.cjs");const i=require("./fontString-BWECl_1B.cjs"),l=Object.freeze(Object.defineProperty({__proto__:null,Provider:t.Provider,REGISTRY:t.REGISTRY,SYNNAX_DARK:t.SYNNAX_DARK,SYNNAX_LIGHT:t.SYNNAX_LIGHT,SYNNAX_THEMES:t.SYNNAX_THEMES,fontSpecZ:t.fontSpecZ,fontString:i.fontString,themeZ:t.themeZ,use:t.use},Symbol.toStringTag,{value:"Module"})),u=Object.freeze(Object.defineProperty({__proto__:null,Context:r.Context,GLProgram:r.GLProgram,Loop:r.Loop,control:e.control,request:e.request,useOptionalRequestor:e.useOptionalRequestor,useRequestor:e.useRequestor},Symbol.toStringTag,{value:"Module"})),s=Object.freeze(Object.defineProperty({__proto__:null,BoundQuerier:e.BoundQuerier,LinePlot:e.LinePlot,REGISTRY:e.REGISTRY,XAxis:e.XAxis,YAxis:e.YAxis,boundQuerierStateZ:e.boundQuerierStateZ,linePlotStateZ:e.linePlotStateZ,xAxisStateZ:e.xAxisStateZ,yAxisStateZ:e.yAxisStateZ},Symbol.toStringTag,{value:"Module"})),a=()=>{const o=new t.l((R,S)=>postMessage(R,S));onmessage=o.handle.bind(o);const n={...r.REGISTRY$1,...e.REGISTRY$17,...e.REGISTRY$16,...e.REGISTRY$15,...e.REGISTRY$14,...r.REGISTRY,...e.REGISTRY$13,...e.REGISTRY$12,...e.REGISTRY,...e.REGISTRY$11,...e.REGISTRY$10,...e.REGISTRY$9,...e.REGISTRY$8,...t.REGISTRY$1,...e.REGISTRY$7,...e.REGISTRY$6,...t.REGISTRY,...e.REGISTRY$5,...e.REGISTRY$4,...e.REGISTRY$3,...e.REGISTRY$2,...e.REGISTRY$1};t.render({comms:o.route("vis"),registry:n,instrumentation:new t.C({logger:new t.P({filters:[t.Pe("info")]})})})},T=Object.freeze(Object.defineProperty({__proto__:null,render:a},Symbol.toStringTag,{value:"Module"}));exports.aether=t.aether;exports.canvas=e.canvas;exports.diagram=e.Diagram;exports.measure=e.measure;exports.rule=e.aether;exports.synnax=e.provider;exports.telem=e.external;exports.tooltip=e.tooltip;exports.value=e.value;exports.lineplot=s;exports.pluto=T;exports.render=u;exports.theming=l;
|
package/dist/ether.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { P as R, R as a, S as n, a as S, b as l, f as i, t as
|
|
2
|
-
import { g as
|
|
3
|
-
import "./css-
|
|
4
|
-
import { C as
|
|
5
|
-
import { c as _, r as b, u as x, a as y, B as P, L as j, R as s, X as v, Y as A, b as O, l as L, x as h, y as M, d as N, e as Z, f as w, g as z, h as X, i as q, j as C, k as H, m as k, n as B, o as D, p as Q, q as F, s as K, t as J, v as U, w as V
|
|
6
|
-
import {
|
|
7
|
-
import "./state-
|
|
8
|
-
import { f as
|
|
9
|
-
const
|
|
1
|
+
import { P as R, R as a, S as n, a as S, b as l, f as i, t as u, u as T, l as m, c as G, r as Y, C as E, d as $, e as p } from "./provider-gW90qzEG.js";
|
|
2
|
+
import { g as me } from "./provider-gW90qzEG.js";
|
|
3
|
+
import "./css-DjQu2Qyf.js";
|
|
4
|
+
import { C as I, G as c, L as f, R as d, a as g } from "./eraser-BJxXs5KS.js";
|
|
5
|
+
import { c as _, r as b, u as x, a as y, B as P, L as j, R as s, X as v, Y as A, b as O, l as L, x as h, y as M, d as N, e as Z, f as w, g as z, h as X, i as q, j as C, k as H, m as k, n as B, o as D, p as Q, q as F, s as K, t as J, v as U, w as V } from "./value-dkHk-BsO.js";
|
|
6
|
+
import { C as Ye, D as Ee, F as $e, G as pe, z as Ie, A as ce, E as fe, H as de } from "./value-dkHk-BsO.js";
|
|
7
|
+
import "./state-DAFH2z9y.js";
|
|
8
|
+
import { f as W } from "./fontString-ap-NPnCD.js";
|
|
9
|
+
const ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10
10
|
__proto__: null,
|
|
11
11
|
Provider: R,
|
|
12
12
|
REGISTRY: a,
|
|
@@ -14,19 +14,19 @@ const Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14
14
|
SYNNAX_LIGHT: S,
|
|
15
15
|
SYNNAX_THEMES: l,
|
|
16
16
|
fontSpecZ: i,
|
|
17
|
-
fontString:
|
|
18
|
-
themeZ:
|
|
19
|
-
use:
|
|
20
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
17
|
+
fontString: W,
|
|
18
|
+
themeZ: u,
|
|
19
|
+
use: T
|
|
20
|
+
}, Symbol.toStringTag, { value: "Module" })), Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21
21
|
__proto__: null,
|
|
22
|
-
Context:
|
|
22
|
+
Context: I,
|
|
23
23
|
GLProgram: c,
|
|
24
24
|
Loop: f,
|
|
25
25
|
control: _,
|
|
26
26
|
request: b,
|
|
27
27
|
useOptionalRequestor: x,
|
|
28
28
|
useRequestor: y
|
|
29
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
29
|
+
}, Symbol.toStringTag, { value: "Module" })), le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
30
30
|
__proto__: null,
|
|
31
31
|
BoundQuerier: P,
|
|
32
32
|
LinePlot: j,
|
|
@@ -37,57 +37,56 @@ const Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
37
37
|
linePlotStateZ: L,
|
|
38
38
|
xAxisStateZ: h,
|
|
39
39
|
yAxisStateZ: M
|
|
40
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
41
|
-
const e = new
|
|
40
|
+
}, Symbol.toStringTag, { value: "Module" })), ee = () => {
|
|
41
|
+
const e = new m((o, r) => postMessage(o, r));
|
|
42
42
|
onmessage = e.handle.bind(e);
|
|
43
43
|
const t = {
|
|
44
44
|
...g,
|
|
45
|
-
...W,
|
|
46
45
|
...V,
|
|
47
46
|
...U,
|
|
48
47
|
...J,
|
|
49
|
-
...d,
|
|
50
48
|
...K,
|
|
49
|
+
...d,
|
|
51
50
|
...F,
|
|
52
|
-
...s,
|
|
53
51
|
...Q,
|
|
52
|
+
...s,
|
|
54
53
|
...D,
|
|
55
54
|
...B,
|
|
56
55
|
...k,
|
|
57
|
-
...Y,
|
|
58
56
|
...H,
|
|
57
|
+
...G,
|
|
59
58
|
...C,
|
|
60
|
-
...a,
|
|
61
59
|
...q,
|
|
60
|
+
...a,
|
|
62
61
|
...X,
|
|
63
62
|
...z,
|
|
64
63
|
...w,
|
|
65
64
|
...Z,
|
|
66
65
|
...N
|
|
67
66
|
};
|
|
68
|
-
|
|
67
|
+
Y({
|
|
69
68
|
comms: e.route("vis"),
|
|
70
69
|
registry: t,
|
|
71
70
|
instrumentation: new E({
|
|
72
|
-
logger: new
|
|
71
|
+
logger: new $({ filters: [p("info")] })
|
|
73
72
|
})
|
|
74
73
|
});
|
|
75
|
-
},
|
|
74
|
+
}, ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
76
75
|
__proto__: null,
|
|
77
|
-
render:
|
|
76
|
+
render: ee
|
|
78
77
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
79
78
|
export {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
79
|
+
me as aether,
|
|
80
|
+
Ye as canvas,
|
|
81
|
+
Ee as diagram,
|
|
82
|
+
le as lineplot,
|
|
84
83
|
$e as measure,
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
ie as pluto,
|
|
85
|
+
Se as render,
|
|
87
86
|
pe as rule,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
87
|
+
Ie as synnax,
|
|
88
|
+
ce as telem,
|
|
89
|
+
ne as theming,
|
|
90
|
+
fe as tooltip,
|
|
91
|
+
de as value
|
|
93
92
|
};
|