@synnaxlabs/pluto 0.48.0 → 0.49.0
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/{Animated-CC7iS0zH.js → Animated-38tdmPR0.js} +116 -120
- package/dist/{Animated-DfDp0-ep.js → Animated-Bp6IK3ct.js} +3 -3
- package/dist/Animated-D-pQ3CYh.cjs +1 -0
- package/dist/{Animated--SNIwznU.cjs → Animated-Dsn1pmhz.cjs} +1 -1
- package/dist/Box-4l6DWG-3.cjs +1 -0
- package/dist/{Box-CoQUaJk2.js → Box-BVyAHr2f.js} +17 -17
- package/dist/Button-CoOYEk1J.js +308 -0
- package/dist/Button-D5aoG3sV.cjs +1 -0
- package/dist/Dialog-JwJQD3xZ.cjs +1 -0
- package/dist/{Dialog-CBDFqieV.js → Dialog-puVY-0Mt.js} +14 -14
- package/dist/Editable-DEbVpi5i.js +201 -0
- package/dist/Editable-DI0-D1K5.cjs +1 -0
- package/dist/Haul-9RVCn3cI.cjs +1 -0
- package/dist/{Haul-Be1j5BU3.js → Haul-Db9j45Fu.js} +53 -49
- package/dist/Items-BCG7kyaR.cjs +4 -0
- package/dist/{Items-mikdEpyC.js → Items-BVKW0udb.js} +276 -214
- package/dist/Menu-BYca9tGe.cjs +1 -0
- package/dist/Menu-CQsrN_mP.js +134 -0
- package/dist/Provider-DBg-Li_7.cjs +5 -0
- package/dist/{Provider-DScd3hYf.js → Provider-DQM7IBoi.js} +182 -177
- package/dist/{Tags-DvPUmH2r.js → Tags-B8l5Dvw-.js} +419 -408
- package/dist/Tags-CQFa3kY-.cjs +1 -0
- package/dist/{Text-BbbqH88W.js → Text-90J6p5Uj.js} +993 -931
- package/dist/Text-DeWvfrdF.cjs +1 -0
- package/dist/{Video-DRSEX8t7.cjs → Video-Bmg4gwom.cjs} +1 -1
- package/dist/{Video-_DrutSeT.js → Video-CLpcYcKf.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-BVgFAmaj.cjs +8 -0
- package/dist/{css-Cn63X_Yv.js → css-bahPRiQI.js} +2057 -1572
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/dimensions-SDA3fM2T.cjs +1 -0
- package/dist/{dimensions-Dclfavlh.js → dimensions-qcyzaTKI.js} +5 -5
- package/dist/eraser-Cbfc1frM.cjs +11 -0
- package/dist/{eraser-Bpl4bpBx.js → eraser-Dz6nZuPp.js} +32 -32
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +64 -62
- package/dist/{external-y1Apm7j1.js → external-04ve_X21.js} +105 -112
- package/dist/external-B3b7kdID.cjs +1 -0
- package/dist/{external-CJFfVl_u.cjs → external-Bixqkw5N.cjs} +1 -1
- package/dist/{external-8H4eB7TN.js → external-CB3VxPJp.js} +17 -18
- package/dist/{external-B3jTkhc4.cjs → external-CMs_BCc5.cjs} +5 -5
- package/dist/{external-D6TsHpoG.js → external-CnWQzZlQ.js} +117 -115
- package/dist/{external-6rS2YiWR.js → external-CrXS1qj_.js} +14 -14
- package/dist/{external-DUGcSVbJ.cjs → external-CwYoEhB2.cjs} +1 -1
- package/dist/{external-Caetm5fI.js → external-Cxojc4yT.js} +18 -18
- package/dist/external-D2deiHyL.js +69 -0
- package/dist/{external-CFdDgpzj.cjs → external-D2tzyCDs.cjs} +1 -1
- package/dist/external-DDHknds-.cjs +1 -0
- package/dist/{external-C0_sN1J0.js → external-DJWZ43k0.js} +1 -1
- package/dist/{external-X_eFMRtE.js → external-DP9FiRHq.js} +3 -3
- package/dist/{external-CFZ33YbY.cjs → external-DUVDOJfj.cjs} +1 -1
- package/dist/external-DcMOF1Je.cjs +1 -0
- package/dist/{external-1uZLLxz-.js → external-Hhx8JoAS.js} +712 -713
- package/dist/{external-B8hxM_jw.cjs → external-JpvbclD8.cjs} +2 -2
- package/dist/external-PA6ulZR9.cjs +1 -0
- package/dist/external-RkrrZXG5.cjs +1 -0
- package/dist/external-TI-6Umwm.js +92 -0
- package/dist/external-kwuGKgyL.cjs +1 -0
- package/dist/{external-Bq4gfE5e.js → external-m-0q-0os.js} +12 -12
- package/dist/{external-BOWnCKIe.js → external-xJ67ivgR.js} +3 -3
- package/dist/flex.cjs +1 -1
- package/dist/flex.js +1 -1
- package/dist/{fontString-BcSXNOgW.cjs → fontString-62eEvw4b.cjs} +1 -1
- package/dist/{fontString-D7EMGjIw.js → fontString-qfWSw62X.js} +3 -3
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/hooks-CRSphXSb.cjs +1 -0
- package/dist/hooks-Dh0v1QWQ.js +73 -0
- package/dist/index.cjs +8 -8
- package/dist/index.js +23420 -22899
- 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-B6SgG_sT.js → provider-ClhgBr_F.js} +5007 -4824
- package/dist/provider-DHDqgF1B.cjs +76 -0
- package/dist/src/access/aether/external.d.ts +3 -0
- package/dist/src/access/aether/external.d.ts.map +1 -0
- package/dist/src/access/aether/index.d.ts +2 -0
- package/dist/src/access/aether/index.d.ts.map +1 -0
- package/dist/src/access/external.d.ts +4 -0
- package/dist/src/access/external.d.ts.map +1 -0
- package/dist/src/access/index.d.ts +2 -0
- package/dist/src/access/index.d.ts.map +1 -0
- package/dist/src/access/policy/CreateIcon.d.ts +3 -0
- package/dist/src/access/policy/CreateIcon.d.ts.map +1 -0
- package/dist/src/access/policy/Select.d.ts +12 -0
- package/dist/src/access/policy/Select.d.ts.map +1 -0
- package/dist/src/access/policy/aether/index.d.ts +2 -0
- package/dist/src/access/policy/aether/index.d.ts.map +1 -0
- package/dist/src/access/policy/aether/queries.d.ts +18 -0
- package/dist/src/access/policy/aether/queries.d.ts.map +1 -0
- package/dist/src/access/policy/external.d.ts +5 -0
- package/dist/src/access/policy/external.d.ts.map +1 -0
- package/dist/src/access/policy/index.d.ts +2 -0
- package/dist/src/access/policy/index.d.ts.map +1 -0
- package/dist/src/access/policy/queries.d.ts +102 -0
- package/dist/src/access/policy/queries.d.ts.map +1 -0
- package/dist/src/access/policy/queries.spec.d.ts.map +1 -0
- package/dist/src/access/policy/types.d.ts +2 -0
- package/dist/src/access/policy/types.d.ts.map +1 -0
- package/dist/src/access/queries.d.ts +36 -0
- package/dist/src/access/queries.d.ts.map +1 -0
- package/dist/src/access/queries.spec.d.ts.map +1 -0
- package/dist/src/access/role/CreateIcon.d.ts +3 -0
- package/dist/src/access/role/CreateIcon.d.ts.map +1 -0
- package/dist/src/access/role/Select.d.ts +9 -0
- package/dist/src/access/role/Select.d.ts.map +1 -0
- package/dist/src/access/role/aether/index.d.ts +2 -0
- package/dist/src/access/role/aether/index.d.ts.map +1 -0
- package/dist/src/access/role/aether/queries.d.ts +14 -0
- package/dist/src/access/role/aether/queries.d.ts.map +1 -0
- package/dist/src/access/role/external.d.ts +4 -0
- package/dist/src/access/role/external.d.ts.map +1 -0
- package/dist/src/access/role/index.d.ts +2 -0
- package/dist/src/access/role/index.d.ts.map +1 -0
- package/dist/src/access/role/queries.d.ts +57 -0
- package/dist/src/access/role/queries.d.ts.map +1 -0
- package/dist/src/access/role/queries.spec.d.ts.map +1 -0
- package/dist/src/aether/main.d.ts +0 -1
- package/dist/src/aether/main.d.ts.map +1 -1
- package/dist/src/alamos/Provider.d.ts +0 -5
- package/dist/src/alamos/Provider.d.ts.map +1 -1
- package/dist/src/alamos/aether/alamos.d.ts +4 -4
- package/dist/src/arc/queries.d.ts +6 -6
- package/dist/src/arc/queries.d.ts.map +1 -1
- package/dist/src/button/Button.d.ts +1 -1
- package/dist/src/button/Button.d.ts.map +1 -1
- package/dist/src/channel/queries.d.ts +25 -25
- package/dist/src/channel/queries.d.ts.map +1 -1
- package/dist/src/color/Provider.d.ts +2 -1
- package/dist/src/color/Provider.d.ts.map +1 -1
- package/dist/src/context/context.d.ts +28 -0
- package/dist/src/context/context.d.ts.map +1 -0
- package/dist/src/context/context.spec.d.ts +2 -0
- package/dist/src/context/context.spec.d.ts.map +1 -0
- package/dist/src/context/index.d.ts +2 -0
- package/dist/src/context/index.d.ts.map +1 -0
- package/dist/src/{hardware/device → device}/Select.d.ts +2 -2
- package/dist/src/device/Select.d.ts.map +1 -0
- package/dist/src/{hardware/device → device}/StatusIndicator.d.ts +1 -1
- package/dist/src/device/StatusIndicator.d.ts.map +1 -0
- package/dist/src/device/external.d.ts.map +1 -0
- package/dist/src/device/index.d.ts.map +1 -0
- package/dist/src/{hardware/device → device}/queries.d.ts +10 -14
- package/dist/src/device/queries.d.ts.map +1 -0
- package/dist/src/device/queries.spec.d.ts +2 -0
- package/dist/src/device/queries.spec.d.ts.map +1 -0
- package/dist/src/dialog/Frame.d.ts +8 -7
- package/dist/src/dialog/Frame.d.ts.map +1 -1
- package/dist/src/flex/Box.d.ts +4 -4
- package/dist/src/flux/Provider.d.ts.map +1 -1
- package/dist/src/flux/core/client.d.ts.map +1 -1
- package/dist/src/flux/core/store.d.ts +7 -7
- package/dist/src/flux/core/store.d.ts.map +1 -1
- package/dist/src/flux/core/streamer.d.ts +2 -2
- package/dist/src/flux/core/streamer.d.ts.map +1 -1
- package/dist/src/flux/form.d.ts +2 -2
- package/dist/src/flux/form.d.ts.map +1 -1
- package/dist/src/flux/list.d.ts +3 -3
- package/dist/src/flux/list.d.ts.map +1 -1
- package/dist/src/flux/retrieve.d.ts +2 -2
- package/dist/src/flux/retrieve.d.ts.map +1 -1
- package/dist/src/flux/update.d.ts +27 -26
- package/dist/src/flux/update.d.ts.map +1 -1
- package/dist/src/form/Context.d.ts +4 -3
- package/dist/src/form/Context.d.ts.map +1 -1
- package/dist/src/form/Field.d.ts +2 -2
- package/dist/src/form/Field.d.ts.map +1 -1
- package/dist/src/form/use.d.ts.map +1 -1
- package/dist/src/form/useField.d.ts.map +1 -1
- package/dist/src/group/queries.d.ts +3 -3
- package/dist/src/group/queries.d.ts.map +1 -1
- package/dist/src/haul/Haul.d.ts +7 -7
- package/dist/src/haul/Haul.d.ts.map +1 -1
- package/dist/src/header/Header.d.ts +2 -1
- package/dist/src/header/Header.d.ts.map +1 -1
- package/dist/src/hooks/index.d.ts +0 -1
- package/dist/src/hooks/index.d.ts.map +1 -1
- package/dist/src/hooks/useAsyncEffect.d.ts +2 -2
- package/dist/src/hooks/useAsyncEffect.d.ts.map +1 -1
- package/dist/src/hooks/useDestructors.d.ts +2 -2
- package/dist/src/hooks/useDestructors.d.ts.map +1 -1
- package/dist/src/icon/registry.d.ts +15 -0
- package/dist/src/icon/registry.d.ts.map +1 -1
- package/dist/src/index.d.ts +5 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/input/Text.d.ts +1 -1
- package/dist/src/input/Text.d.ts.map +1 -1
- package/dist/src/label/queries.d.ts +6 -6
- package/dist/src/label/queries.d.ts.map +1 -1
- package/dist/src/lineplot/Legend.d.ts +2 -2
- package/dist/src/lineplot/Legend.d.ts.map +1 -1
- package/dist/src/lineplot/LinePlot.d.ts +5 -5
- package/dist/src/lineplot/LinePlot.d.ts.map +1 -1
- package/dist/src/lineplot/aether/LinePlot.d.ts +8 -8
- package/dist/src/lineplot/aether/XAxis.d.ts +26 -26
- package/dist/src/lineplot/aether/YAxis.d.ts +28 -28
- package/dist/src/lineplot/aether/axis.d.ts +13 -13
- package/dist/src/lineplot/queries.d.ts +3 -3
- package/dist/src/lineplot/queries.d.ts.map +1 -1
- package/dist/src/lineplot/range/aether/annotation.d.ts +4 -4
- package/dist/src/lineplot/range/aether/provider.d.ts +2 -2
- package/dist/src/lineplot/range/aether/provider.d.ts.map +1 -1
- package/dist/src/lineplot/tooltip/aether/tooltip.d.ts +26 -26
- package/dist/src/list/Frame.d.ts +2 -1
- package/dist/src/list/Frame.d.ts.map +1 -1
- package/dist/src/list/Items.d.ts.map +1 -1
- package/dist/src/log/Log.d.ts +2 -2
- package/dist/src/log/Log.d.ts.map +1 -1
- package/dist/src/log/aether/Log.d.ts +32 -32
- package/dist/src/log/aether/Log.d.ts.map +1 -1
- package/dist/src/log/queries.d.ts +3 -3
- package/dist/src/log/queries.d.ts.map +1 -1
- package/dist/src/menu/Divider.d.ts +3 -0
- package/dist/src/menu/Divider.d.ts.map +1 -0
- package/dist/src/menu/Menu.d.ts +2 -2
- package/dist/src/menu/Menu.d.ts.map +1 -1
- package/dist/src/menu/external.d.ts +1 -0
- package/dist/src/menu/external.d.ts.map +1 -1
- package/dist/src/mosaic/Mosaic.d.ts.map +1 -1
- package/dist/src/ontology/queries.d.ts +7 -7
- package/dist/src/ontology/queries.d.ts.map +1 -1
- package/dist/src/pluto/Pluto.d.ts +9 -5
- package/dist/src/pluto/Pluto.d.ts.map +1 -1
- package/dist/src/pluto/aether/pluto.d.ts.map +1 -1
- package/dist/src/{hardware/rack → rack}/Select.d.ts +3 -3
- package/dist/src/rack/Select.d.ts.map +1 -0
- package/dist/src/{hardware/rack → rack}/StatusIndicator.d.ts +1 -1
- package/dist/src/rack/StatusIndicator.d.ts.map +1 -0
- package/dist/src/rack/external.d.ts.map +1 -0
- package/dist/src/rack/index.d.ts.map +1 -0
- package/dist/src/{hardware/rack → rack}/queries.d.ts +7 -9
- package/dist/src/rack/queries.d.ts.map +1 -0
- package/dist/src/rack/queries.spec.d.ts +2 -0
- package/dist/src/rack/queries.spec.d.ts.map +1 -0
- package/dist/src/ranger/queries.d.ts +7 -7
- package/dist/src/ranger/queries.d.ts.map +1 -1
- package/dist/src/schematic/queries.d.ts +5 -5
- package/dist/src/schematic/queries.d.ts.map +1 -1
- package/dist/src/schematic/symbol/Primitives.d.ts +2 -2
- package/dist/src/schematic/symbol/Primitives.d.ts.map +1 -1
- package/dist/src/schematic/symbol/queries.d.ts +8 -8
- package/dist/src/schematic/symbol/queries.d.ts.map +1 -1
- package/dist/src/schematic/symbol/registry.d.ts +2 -2
- package/dist/src/select/Frame.d.ts.map +1 -1
- package/dist/src/select/Static.d.ts +2 -2
- package/dist/src/select/Static.d.ts.map +1 -1
- package/dist/src/select/use.d.ts +2 -2
- package/dist/src/select/use.d.ts.map +1 -1
- package/dist/src/showcase/InputShowcase.d.ts +7 -7
- package/dist/src/showcase/InputShowcase.d.ts.map +1 -1
- package/dist/src/showcase/TagShowcase.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/state/state.spec.d.ts +2 -0
- package/dist/src/state/state.spec.d.ts.map +1 -0
- package/dist/src/status/aether/errorHandler.d.ts.map +1 -1
- package/dist/src/status/core/Aggregator.d.ts +2 -2
- package/dist/src/status/core/Aggregator.d.ts.map +1 -1
- package/dist/src/status/core/Notification.d.ts.map +1 -1
- package/dist/src/status/queries.d.ts +13 -13
- package/dist/src/status/queries.d.ts.map +1 -1
- package/dist/src/store/store.d.ts +2 -2
- package/dist/src/store/store.d.ts.map +1 -1
- package/dist/src/synnax/Provider.d.ts.map +1 -1
- package/dist/src/synnax/aether/provider.d.ts +3 -3
- package/dist/src/table/aether/Table.d.ts +12 -12
- package/dist/src/table/cells/Cells.d.ts +7 -7
- package/dist/src/table/queries.d.ts +3 -3
- package/dist/src/table/queries.d.ts.map +1 -1
- package/dist/src/tabs/useContext.d.ts +4 -4
- package/dist/src/tabs/useContext.d.ts.map +1 -1
- package/dist/src/tag/Tag.d.ts +2 -2
- package/dist/src/tag/Tag.d.ts.map +1 -1
- package/dist/src/task/index.d.ts.map +1 -0
- package/dist/src/{hardware/task → task}/queries.d.ts +14 -33
- package/dist/src/task/queries.d.ts.map +1 -0
- package/dist/src/task/queries.spec.d.ts +2 -0
- package/dist/src/task/queries.spec.d.ts.map +1 -0
- package/dist/src/telem/aether/context.d.ts +2 -2
- package/dist/src/telem/aether/context.d.ts.map +1 -1
- package/dist/src/telem/aether/pipeline.d.ts +2 -2
- package/dist/src/telem/aether/pipeline.d.ts.map +1 -1
- package/dist/src/telem/aether/remote.d.ts +4 -4
- package/dist/src/telem/aether/remote.d.ts.map +1 -1
- package/dist/src/telem/aether/static.d.ts +11 -11
- package/dist/src/telem/aether/telem.d.ts +2 -2
- package/dist/src/telem/aether/telem.d.ts.map +1 -1
- package/dist/src/telem/aether/transformers.d.ts +30 -30
- package/dist/src/telem/client/client.d.ts +4 -4
- package/dist/src/telem/client/client.d.ts.map +1 -1
- package/dist/src/telem/client/streamer.d.ts +2 -2
- package/dist/src/telem/client/streamer.d.ts.map +1 -1
- package/dist/src/telem/control/Controller.d.ts +2 -1
- package/dist/src/telem/control/Controller.d.ts.map +1 -1
- package/dist/src/telem/control/aether/chip.d.ts +10 -10
- package/dist/src/telem/control/aether/chip.d.ts.map +1 -1
- package/dist/src/telem/control/aether/controller.d.ts +3 -3
- package/dist/src/telem/control/aether/controller.d.ts.map +1 -1
- package/dist/src/telem/control/aether/indicator.d.ts +13 -13
- package/dist/src/telem/control/aether/legend.d.ts +4 -4
- package/dist/src/telem/control/aether/legend.d.ts.map +1 -1
- package/dist/src/telem/control/aether/state.d.ts +3 -3
- package/dist/src/telem/control/aether/state.d.ts.map +1 -1
- package/dist/src/testutil/Synnax.d.ts +0 -5
- package/dist/src/testutil/Synnax.d.ts.map +1 -1
- package/dist/src/text/Text.d.ts +2 -1
- package/dist/src/text/Text.d.ts.map +1 -1
- package/dist/src/text/core/types.d.ts +2 -2
- package/dist/src/theming/Provider.d.ts +2 -1
- package/dist/src/theming/Provider.d.ts.map +1 -1
- package/dist/src/theming/aether/provider.d.ts +141 -141
- package/dist/src/theming/core/theme.d.ts +135 -135
- package/dist/src/theming/core/theme.d.ts.map +1 -1
- package/dist/src/tooltip/Config.d.ts +4 -3
- package/dist/src/tooltip/Config.d.ts.map +1 -1
- package/dist/src/tree/Context.d.ts +2 -12
- package/dist/src/tree/Context.d.ts.map +1 -1
- package/dist/src/tree/Tree.d.ts.map +1 -1
- package/dist/src/triggers/Provider.d.ts +4 -3
- package/dist/src/triggers/Provider.d.ts.map +1 -1
- package/dist/src/triggers/triggers.d.ts +21 -21
- package/dist/src/user/CreateIcon.d.ts +3 -0
- package/dist/src/user/CreateIcon.d.ts.map +1 -0
- package/dist/src/user/external.d.ts +1 -0
- package/dist/src/user/external.d.ts.map +1 -1
- package/dist/src/user/queries.d.ts +6 -4
- package/dist/src/user/queries.d.ts.map +1 -1
- package/dist/src/viewport/use.d.ts +1 -1
- package/dist/src/vis/axis/axis.d.ts +5 -5
- package/dist/src/vis/axis/ticks.d.ts +2 -2
- package/dist/src/vis/button/aether/button.d.ts +8 -8
- package/dist/src/vis/canvas/aether/canvas.d.ts +4 -4
- package/dist/src/vis/diagram/Diagram.d.ts +2 -6
- package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/Diagram.d.ts +9 -9
- package/dist/src/vis/diagram/align.d.ts +7 -2
- package/dist/src/vis/diagram/align.d.ts.map +1 -1
- package/dist/src/vis/draw2d/canvas.d.ts +2 -2
- package/dist/src/vis/draw2d/canvas.d.ts.map +1 -1
- package/dist/src/vis/eraser/aether/eraser.d.ts +2 -2
- package/dist/src/vis/gauge/aether/gauge.d.ts +60 -60
- package/dist/src/vis/gauge/use.d.ts +18 -18
- package/dist/src/vis/legend/Container.d.ts +3 -29
- package/dist/src/vis/legend/Container.d.ts.map +1 -1
- package/dist/src/vis/legend/Entries.d.ts +2 -2
- package/dist/src/vis/legend/Entries.d.ts.map +1 -1
- package/dist/src/vis/legend/Simple.d.ts +2 -2
- package/dist/src/vis/legend/Simple.d.ts.map +1 -1
- package/dist/src/vis/light/aether/light.d.ts +6 -6
- package/dist/src/vis/light/aether/light.d.ts.map +1 -1
- package/dist/src/vis/line/Line.d.ts +2 -2
- package/dist/src/vis/line/Line.d.ts.map +1 -1
- package/dist/src/vis/line/aether/line.d.ts +5 -5
- package/dist/src/vis/line/aether/line.d.ts.map +1 -1
- package/dist/src/vis/measure/aether/measure.d.ts +28 -28
- package/dist/src/vis/render/GLProgram.d.ts +2 -2
- package/dist/src/vis/render/GLProgram.d.ts.map +1 -1
- package/dist/src/vis/render/context.d.ts +2 -2
- package/dist/src/vis/render/context.d.ts.map +1 -1
- package/dist/src/vis/render/performance.d.ts +2 -2
- package/dist/src/vis/render/performance.d.ts.map +1 -1
- package/dist/src/vis/rule/aether/aether.d.ts +6 -6
- package/dist/src/vis/setpoint/aether/setpoint.d.ts +10 -10
- package/dist/src/vis/setpoint/aether/setpoint.d.ts.map +1 -1
- package/dist/src/vis/toggle/aether/toggle.d.ts +10 -10
- package/dist/src/vis/toggle/aether/toggle.d.ts.map +1 -1
- package/dist/src/vis/value/aether/value.d.ts +75 -75
- package/dist/src/vis/value/use.d.ts +23 -23
- package/dist/src/worker/Context.d.ts +2 -0
- package/dist/src/worker/Context.d.ts.map +1 -1
- package/dist/src/workspace/queries.d.ts +10 -8
- package/dist/src/workspace/queries.d.ts.map +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/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/triggers.cjs +1 -1
- package/dist/triggers.js +1 -1
- package/dist/types-8-Mr79SF.cjs +1 -0
- package/dist/types-DGaZ_JZb.js +82 -0
- package/dist/{units-cBd5OJg4.js → units-CgMHbHoA.js} +1 -1
- package/dist/units-InoNiVrK.cjs +1 -0
- package/dist/{value-UJNdARAu.js → value-CzFrd9p6.js} +2213 -2186
- package/dist/value-QHhF9WPA.cjs +53 -0
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +8 -8
- package/dist/Animated-TMpTdCqK.cjs +0 -1
- package/dist/Box-Ds_D3xR_.cjs +0 -1
- package/dist/Button-BaMa3eGI.cjs +0 -1
- package/dist/Button-NgDHbsf8.js +0 -306
- package/dist/Dialog-BL8T9CVw.cjs +0 -1
- package/dist/Editable-C7KPD0hC.js +0 -193
- package/dist/Editable-CWt3zqDm.cjs +0 -1
- package/dist/Haul-D1WaI_xE.cjs +0 -1
- package/dist/Items-BYlg9bb-.cjs +0 -4
- package/dist/Menu-CcWs0t21.js +0 -156
- package/dist/Menu-DJoh8bH7.cjs +0 -1
- package/dist/Provider-fx1wTnXk.cjs +0 -5
- package/dist/Tags-KHafaGjR.cjs +0 -1
- package/dist/Text-CZrjPRjJ.cjs +0 -1
- package/dist/css-C_YE-5Xa.cjs +0 -8
- package/dist/debounce-CW9Q-DsR.js +0 -17
- package/dist/debounce-heEWeOqL.cjs +0 -1
- package/dist/deep-7SxmCL0x.cjs +0 -1
- package/dist/deep-szN5DCOH.js +0 -349
- package/dist/dimensions-DFDTcQRG.cjs +0 -1
- package/dist/eraser-Bqibt23a.cjs +0 -11
- package/dist/external-19BIaQc6.cjs +0 -1
- package/dist/external-AInsIJp-.cjs +0 -1
- package/dist/external-Bi-OQCBH.js +0 -45
- package/dist/external-CN15E8ls.cjs +0 -1
- package/dist/external-CfEVFfhL.cjs +0 -1
- package/dist/external-D7WE6Leo.cjs +0 -1
- package/dist/external-DwhfVdFp.js +0 -88
- package/dist/external-pRQzznIG.cjs +0 -1
- package/dist/hooks-BmUn8s1r.js +0 -74
- package/dist/hooks-CutQY1o9.cjs +0 -1
- package/dist/provider-C9Beoajx.cjs +0 -72
- package/dist/src/hardware/device/Select.d.ts.map +0 -1
- package/dist/src/hardware/device/StatusIndicator.d.ts.map +0 -1
- package/dist/src/hardware/device/external.d.ts.map +0 -1
- package/dist/src/hardware/device/index.d.ts.map +0 -1
- package/dist/src/hardware/device/queries.d.ts.map +0 -1
- package/dist/src/hardware/device/queries.spec.d.ts.map +0 -1
- package/dist/src/hardware/rack/Select.d.ts.map +0 -1
- package/dist/src/hardware/rack/StatusIndicator.d.ts.map +0 -1
- package/dist/src/hardware/rack/external.d.ts.map +0 -1
- package/dist/src/hardware/rack/index.d.ts.map +0 -1
- package/dist/src/hardware/rack/queries.d.ts.map +0 -1
- package/dist/src/hardware/rack/queries.spec.d.ts.map +0 -1
- package/dist/src/hardware/task/index.d.ts.map +0 -1
- package/dist/src/hardware/task/queries.d.ts.map +0 -1
- package/dist/src/hardware/task/queries.spec.d.ts.map +0 -1
- package/dist/src/hooks/useRequiredContext.d.ts +0 -2
- package/dist/src/hooks/useRequiredContext.d.ts.map +0 -1
- package/dist/src/hooks/useRequiredContext.spec.d.ts +0 -2
- package/dist/src/hooks/useRequiredContext.spec.d.ts.map +0 -1
- package/dist/types-BNX_Jj6k.js +0 -80
- package/dist/types-D-yz1qsT.cjs +0 -1
- package/dist/units-zxke9Ng2.cjs +0 -1
- package/dist/value-Ce4T858D.cjs +0 -53
- /package/dist/src/{hardware/device → access/policy}/queries.spec.d.ts +0 -0
- /package/dist/src/{hardware/rack → access}/queries.spec.d.ts +0 -0
- /package/dist/src/{hardware/task → access/role}/queries.spec.d.ts +0 -0
- /package/dist/src/{hardware/device → device}/external.d.ts +0 -0
- /package/dist/src/{hardware/device → device}/index.d.ts +0 -0
- /package/dist/src/{hardware/rack → rack}/external.d.ts +0 -0
- /package/dist/src/{hardware/rack → rack}/index.d.ts +0 -0
- /package/dist/src/{hardware/task → task}/index.d.ts +0 -0
package/dist/css.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./css-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./css-BVgFAmaj.cjs"),t=require("./units-InoNiVrK.cjs");exports.CSS=e.CSS;exports.newBEM=e.newBEM;exports.createHexOpacityVariants=t.createHexOpacityVariants;exports.unitProperty=t.unitProperty;
|
package/dist/css.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as e, n as t } from "./css-
|
|
2
|
-
import { c as s, u as n } from "./units-
|
|
1
|
+
import { C as e, n as t } from "./css-bahPRiQI.js";
|
|
2
|
+
import { c as s, u as n } from "./units-CgMHbHoA.js";
|
|
3
3
|
export {
|
|
4
4
|
e as CSS,
|
|
5
5
|
s as createHexOpacityVariants,
|
package/dist/dialog.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-Bixqkw5N.cjs");exports.Dialog=e.external;
|
package/dist/dialog.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("./css-BVgFAmaj.cjs");let e=null;const u=()=>(e??=document.createElement("canvas"),e),c=(t,a,n)=>{if(i.tl.RUNTIME==="node")return{width:0,height:0};n??=u().getContext("2d"),n.font=a;const o=n.measureText(t);return s(o)},s=t=>({width:Math.trunc(Math.abs(t.actualBoundingBoxLeft)+Math.abs(t.actualBoundingBoxRight)),height:Math.trunc(Math.abs(t.actualBoundingBoxAscent)+Math.abs(t.actualBoundingBoxDescent))});exports.dimensions=c;exports.dimensionsFromMetrics=s;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
let
|
|
3
|
-
const u = () => (
|
|
1
|
+
import { t as s } from "./css-bahPRiQI.js";
|
|
2
|
+
let n = null;
|
|
3
|
+
const u = () => (n ??= document.createElement("canvas"), n), h = (t, e, a) => {
|
|
4
4
|
if (s.RUNTIME === "node") return { width: 0, height: 0 };
|
|
5
|
-
|
|
6
|
-
const o =
|
|
5
|
+
a ??= u().getContext("2d"), a.font = e;
|
|
6
|
+
const o = a.measureText(t);
|
|
7
7
|
return i(o);
|
|
8
8
|
}, i = (t) => ({
|
|
9
9
|
width: Math.trunc(
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";const a=require("./css-BVgFAmaj.cjs"),_=require("zod"),d=require("./provider-DHDqgF1B.cjs"),F=require("./dimensions-SDA3fM2T.cjs"),I=_.z.object({include:_.z.string().array().optional(),exclude:_.z.string().array().optional(),level:_.z.enum(d.g.LOG_LEVELS).default("info")}),R="alamos-provider";class E extends d.Composite{static TYPE="alamos.Provider";schema=I;afterUpdate(t){if(t.getOptional(R)!=null)return;const s=[],{include:i,exclude:r,level:n}=this.state;(i!=null||r!=null)&&s.push(d.g.logLevelKeyFiler({include:i,exclude:r})),n!=null&&s.push(d.g.logThresholdFilter(n)),s.length===0&&s.push(()=>!1),this.internal.ins=new d.g.Instrumentation({key:"aether",logger:new d.g.Logger({filters:s})}),t.set(R,this.internal.ins)}}const B=(l,t)=>{const e=l.get(R);if(e==null)throw new Error("No instrumentation provider");return t==null?e:e.child(t)},U={[E.TYPE]:E},y=(l,t)=>a.vu.construct(a.vu.left(l)-t.x,a.vu.top(l)-t.y,a.vu.width(l)+t.x*2,a.vu.height(l)+t.y*2);class C{scale_;wrapped;atlasRegistry;cachedFont=null;cachedFillStyle=null;cachedStrokeStyle=null;cachedLineWidth=null;cachedGlobalAlpha=null;cachedTextAlign=null;cachedTextBaseline=null;cachedLineCap=null;cachedLineJoin=null;cachedMiterLimit=null;dpr;constructor(t,e,s,i=a.Au.XY.IDENTITY){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 C(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,n,h,o,p){this.wrapped.drawImage(t,e,s,i,r,n!=null?this.scale_.x.pos(n):n,h!=null?this.scale_.y.pos(h):h,o!=null?this.scale_.x.dim(o):o,p!=null?this.scale_.y.dim(p):p)}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,n){return this.wrapped.createRadialGradient(t,e,s,i,r,n)}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,n,h){this.wrapped.putImageData(t,e,s,i,r,n,h)}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,n){this.wrapped.arc(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),i,r,n)}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,n){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(n))}closePath(){this.wrapped.closePath()}ellipse(t,e,s,i,r,n,h,o){this.wrapped.ellipse(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i),r,n,h,o)}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[n,h]=this.checkAtlasFillStyle(r.useAtlas);if(n){this.atlasRegistry.get({font:this.font,textColor:h}).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):F.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.Nu.ZERO){const s=new X(this.scale_);return t=y(t,e),s.rect(...a.Nu.couple(a.vu.topLeft(t)),...a.Mu.couple(a.vu.dims(t))),this.save(),this.clip(s.getPath()),()=>this.restore()}setTransform(t,e,s,i,r,n){this.wrapped.setTransform(t,e,s,i,r,n)}transform(t,e,s,i,r,n){this.wrapped.transform(t,e,s,i,r,n)}translate(t,e){this.wrapped.translate(t,e)}}class X{scale_;path;constructor(t=a.Au.XY.IDENTITY,e){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,n){this.path.arc(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),i,r,n)}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,n){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(n))}closePath(){this.path.closePath()}ellipse(t,e,s,i,r,n,h,o){this.path.ellipse(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i),r,n,h,o)}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 n=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),n)}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 K=`precision mediump float;
|
|
2
|
+
|
|
3
|
+
void main(void) {
|
|
4
|
+
gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
|
|
5
|
+
}
|
|
6
|
+
`,W=`attribute vec4 a_position;
|
|
7
|
+
|
|
8
|
+
void main(void) {
|
|
9
|
+
gl_Position = a_position;
|
|
10
|
+
}
|
|
11
|
+
`,b=l=>new Error(`failed to compile webgl program: ${l}`),Z=new Error("null shader encountered");let k=class{renderCtx;prog;vertShader;fragShader;uniformLocCache=new Map;constructor(t,e,s){this.renderCtx=t;const i=t.gl.createProgram();if(i==null)throw b("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.Nu.couple(e))}uniformColor(t,e){this.renderCtx.gl.uniform4fv(this.getUniformLoc(t),a.Pu.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 Z;if(s.shaderSource(i,t),s.compileShader(i),!s.getShaderParameter(i,s.COMPILE_STATUS)){const n=s.getShaderInfoLog(i);throw s.deleteShader(i),b(n??"unknown")}s.attachShader(this.prog,i)}};const H=new Float32Array([0,0,0,0,0,0]);class V extends k{positionBuffer;constructor(t){super(t,W,K);const e=t.gl.createBuffer();if(e==null)throw new d.Ut("webgl: failed to create buffer");this.positionBuffer=e,t.gl.bindBuffer(t.gl.ARRAY_BUFFER,this.positionBuffer),t.gl.bufferData(t.gl.ARRAY_BUFFER,H,t.gl.STATIC_DRAW)}exec(){const{gl:t}=this.renderCtx,e=t.getAttribLocation(this.prog,"a_position");t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer);const s=t.createVertexArray();t.bindVertexArray(s),t.enableVertexAttribArray(e),t.vertexAttribPointer(e,2,t.FLOAT,!1,0,0),this.setAsActive(),t.drawArrays(t.TRIANGLES,0,3)}}const O={high:1,low:0};class G{requests=new Map;cleanup=new Map;afterRender;instrumentation;handleError;constructor({afterRender:t,instrumentation:e=d.g.Instrumentation.NOOP,handleError:s}){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=O[t.priority]>=O[e.priority],i=t.canvases.length>=e.canvases.length;s&&i&&this.requests.set(t.key,t)}}render(){const{requests:t}=this;t.size!==0&&(this.runCleanupsSync(),this.renderSync(),this.requests.clear(),this.afterRender?.())}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 x=2,g=2;class A{atlas;charDims;charMap;static DEFAULT_CHARS="0123456789.:-µmsNa∞ᴇABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz%";constructor(t){const{font:e,characters:s=A.DEFAULT_CHARS,textColor:i}=t;this.charMap=new Map;const r=a.yu.unique(Array.from(s)),h=new OffscreenCanvas(1,1).getContext("2d");h.font=e;const o=h.measureText("0");this.charDims=F.dimensionsFromMetrics(o),this.charDims.width+=x,this.charDims.height+=x;const p=r.length,u=this.charDims.width,m=this.charDims.height,c=Math.ceil(Math.sqrt(p)),S=Math.ceil(p/c);this.atlas=new OffscreenCanvas(u*c*g,m*(S+1)*g);const w=this.atlas.getContext("2d");w.scale(g,g),w.font=e,w.textBaseline="alphabetic",w.textAlign="left",w.fillStyle=a.Pu.hex(i),w.clearRect(0,0,this.atlas.width,this.atlas.height),r.forEach((L,T)=>{const N=T%c,Y=Math.floor(T/c),z=N*u,q=(Y+1)*m;w.fillText(L,z,q),this.charMap.set(L,T)})}fillText(t,e,s,i){const{width:r,height:n}=this.charDims,h=Math.ceil(Math.sqrt(this.charMap.size));t.textAlign==="center"&&(s-=r*e.length/2),t.textBaseline==="middle"&&(i+=n/2);for(let o=0;o<e.length;o++){const p=e[o],u=this.charMap.get(p);if(u===void 0)continue;const m=u%h,c=Math.floor(u/h);t.drawImage(this.atlas,m*r*g,c*n*g+x,r*g,n*g,s+o*r,i-n-x/g,r,n)}}measureText(t){return{width:t.length*this.charDims.width,height:this.charDims.height}}}class J{atlases;constructor(){this.atlases=new Map}get(t){const e=`${t.font}-${a.Pu.hex(t.textColor)}-${t.characters}`;if(this.atlases.has(e))return this.atlases.get(e);const s=new A(t);return this.atlases.set(e,s),s}}const P=l=>(l.textRendering="optimizeSpeed",l.imageSmoothingEnabled=!1,l);class f{glCanvas;upper2dCanvas;lower2dCanvas;gl;lower2d;upper2d;region;dpr;loop;clearProgram;os;static CONTEXT_KEY=a.CSS.B("render-context");instrumentation;static create(t,e,s,i,r){const n=B(t,"render_context"),h=new f(e,s,i,r,n,d.useAdder(t),d.useErrorHandler(t));return t.set(f.CONTEXT_KEY,h),h}constructor(t,e,s,i,r,n,h){this.upper2dCanvas=s,this.lower2dCanvas=e,this.glCanvas=t,this.os=i,this.instrumentation=r,this.dpr=1;const o=this.lower2dCanvas.getContext("2d");if(o==null)throw new Error("Could not get 2D context");const p=new J;this.lower2d=P(new C(o,p,this.dpr));const u=this.upper2dCanvas.getContext("2d");if(u==null)throw new Error("Could not get 2D context");this.upper2d=P(new C(u,p,this.dpr));const m={preserveDrawingBuffer:!0,powerPreference:"high-performance",stencil:!1,depth:!1},c=this.glCanvas.getContext("webgl2",m);if(c==null)throw new Error("Could not get WebGL context");c.disable(c.DEPTH_TEST),c.disable(c.STENCIL_TEST),c.disable(c.CULL_FACE),c.disable(c.DITHER),this.gl=c,this.glCanvas.oncontextlost=()=>n({variant:"error",message:"WebGL context lost"});const S=()=>{this.gl.flush(),this.gl.finish()};this.loop=new G({afterRender:S,instrumentation:this.instrumentation,handleError:h}),this.region=a.vu.ZERO,this.os==="Windows"&&(this.clearProgram=new V(this))}static useOptional(t){return t.getOptional(f.CONTEXT_KEY)}static use(t){return t.get(f.CONTEXT_KEY)}update(t){t.set(f.CONTEXT_KEY,this)}resize(t,e){a.vu.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.vu.width(t)*e,a.vu.height(t)*e))}resizeCanvas(t){t.width=a.vu.width(this.region)*this.dpr,t.height=a.vu.height(this.region)*this.dpr}get aspect(){return a.vu.aspect(this.region)}scaleRegion(t){return new a.Au.XY(a.Au.Scale.scale(0,1).scale(a.vu.width(t)).translate(a.vu.left(t)).reBound(a.vu.width(this.region)).scale(-1,1),a.Au.Scale.scale(0,1).scale(a.vu.height(t)).invert().translate(a.vu.top(t)).reBound(a.vu.height(this.region)).scale(-1,1).invert())}scissor(t,e=a.Nu.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.Nu.ZERO){return this.gl.enable(this.gl.SCISSOR_TEST),t=y(t,e),this.gl.scissor(a.vu.left(t)*this.dpr,(a.vu.height(this.region)-a.vu.bottom(t))*this.dpr,a.vu.width(t)*this.dpr,a.vu.height(t)*this.dpr),()=>this.gl.disable(this.gl.SCISSOR_TEST)}erase(t,e=a.Nu.ZERO,...s){e=a.Nu.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.Nu.ZERO){const{gl:s}=this,i=this.scissorGL(y(t,e));s.clearColor(...a.Pu.rgba1(a.Pu.ZERO)),s.clear(s.COLOR_BUFFER_BIT),this.os==="Windows"&&this.clearProgram?.exec(),i()}eraseCanvas(t,e,s=a.Nu.ZERO){const i=y(e,s);t.clearRect(...a.Nu.couple(a.vu.topLeft(i)),...a.Mu.couple(a.vu.dims(i)))}}const M=_.z.object({region:a.vu.box,enabled:_.z.boolean().default(!1)}),D=["gl","lower2d","upper2d"];class v extends d.Leaf{static TYPE="eraser";schema=M;afterUpdate(t){this.deleted||(this.internal.renderCtx=f.use(t),this.renderOnLifecycleChange())}afterDelete(){this.renderOnLifecycleChange()}renderOnLifecycleChange(){this.internal.renderCtx.loop.set({key:`${this.type}-${this.key}`,render:this.render.bind(this),priority:"high",canvases:D})}render(){this.deleted||!this.state.enabled||this.internal.renderCtx.erase(this.state.region,a.Nu.construct(0),...D)}}const $={[v.TYPE]:v};exports.Context=f;exports.Eraser=v;exports.GLProgram=k;exports.Loop=G;exports.Provider=E;exports.REGISTRY=$;exports.REGISTRY$1=U;exports.eraserStateZ=M;exports.providerStateZ=I;exports.useInstrumentation=B;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { v as h, A as y, N as d, M as k, P as C, y as X, C as q } from "./css-bahPRiQI.js";
|
|
2
2
|
import { z as _ } from "zod";
|
|
3
|
-
import {
|
|
4
|
-
import { a as G } from "./dimensions-
|
|
3
|
+
import { g as x, C as z, U as K, h as W, j as H, L as V } from "./provider-ClhgBr_F.js";
|
|
4
|
+
import { a as G } from "./dimensions-qcyzaTKI.js";
|
|
5
5
|
const Z = _.object({
|
|
6
6
|
include: _.string().array().optional(),
|
|
7
7
|
exclude: _.string().array().optional(),
|
|
8
|
-
level: _.enum(x.LOG_LEVELS).
|
|
8
|
+
level: _.enum(x.LOG_LEVELS).default("info")
|
|
9
9
|
}), L = "alamos-provider";
|
|
10
|
-
class v extends
|
|
10
|
+
class v extends z {
|
|
11
11
|
static TYPE = "alamos.Provider";
|
|
12
12
|
schema = Z;
|
|
13
13
|
afterUpdate(t) {
|
|
@@ -46,7 +46,7 @@ class R {
|
|
|
46
46
|
cachedLineJoin = null;
|
|
47
47
|
cachedMiterLimit = null;
|
|
48
48
|
dpr;
|
|
49
|
-
constructor(t, e, s, i =
|
|
49
|
+
constructor(t, e, s, i = y.XY.IDENTITY) {
|
|
50
50
|
this.wrapped = t, this.scale_ = i, this.atlasRegistry = e, this.dpr = s;
|
|
51
51
|
}
|
|
52
52
|
get fontStretch() {
|
|
@@ -438,7 +438,7 @@ class R {
|
|
|
438
438
|
}
|
|
439
439
|
scissor(t, e = d.ZERO) {
|
|
440
440
|
const s = new $(this.scale_);
|
|
441
|
-
return t = T(t, e), s.rect(...d.couple(h.topLeft(t)), ...
|
|
441
|
+
return t = T(t, e), s.rect(...d.couple(h.topLeft(t)), ...k.couple(h.dims(t))), this.save(), this.clip(s.getPath()), () => this.restore();
|
|
442
442
|
}
|
|
443
443
|
setTransform(t, e, s, i, r, a) {
|
|
444
444
|
this.wrapped.setTransform(t, e, s, i, r, a);
|
|
@@ -453,7 +453,7 @@ class R {
|
|
|
453
453
|
class $ {
|
|
454
454
|
scale_;
|
|
455
455
|
path;
|
|
456
|
-
constructor(t =
|
|
456
|
+
constructor(t = y.XY.IDENTITY, e) {
|
|
457
457
|
this.scale_ = t, e instanceof Path2D || typeof e == "string" ? this.path = new Path2D(e) : this.path = new Path2D();
|
|
458
458
|
}
|
|
459
459
|
addPath(t, e) {
|
|
@@ -548,17 +548,17 @@ class $ {
|
|
|
548
548
|
return this.path;
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
const
|
|
551
|
+
const Q = `precision mediump float;
|
|
552
552
|
|
|
553
553
|
void main(void) {
|
|
554
554
|
gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
|
|
555
555
|
}
|
|
556
|
-
`,
|
|
556
|
+
`, j = `attribute vec4 a_position;
|
|
557
557
|
|
|
558
558
|
void main(void) {
|
|
559
559
|
gl_Position = a_position;
|
|
560
560
|
}
|
|
561
|
-
`,
|
|
561
|
+
`, P = (l) => new Error(`failed to compile webgl program: ${l}`), tt = new Error("null shader encountered");
|
|
562
562
|
let et = class {
|
|
563
563
|
/** The render context used by this program. */
|
|
564
564
|
renderCtx;
|
|
@@ -580,7 +580,7 @@ let et = class {
|
|
|
580
580
|
constructor(t, e, s) {
|
|
581
581
|
this.renderCtx = t;
|
|
582
582
|
const i = t.gl.createProgram();
|
|
583
|
-
if (i == null) throw
|
|
583
|
+
if (i == null) throw P("failed to create program");
|
|
584
584
|
this.prog = i, this.vertShader = e, this.fragShader = s, this.compile();
|
|
585
585
|
}
|
|
586
586
|
/** Sets the current program as the active program used by the context. */
|
|
@@ -603,7 +603,7 @@ let et = class {
|
|
|
603
603
|
* @param value - The value to set.
|
|
604
604
|
*/
|
|
605
605
|
uniformColor(t, e) {
|
|
606
|
-
this.renderCtx.gl.uniform4fv(this.getUniformLoc(t),
|
|
606
|
+
this.renderCtx.gl.uniform4fv(this.getUniformLoc(t), C.rgba1(e));
|
|
607
607
|
}
|
|
608
608
|
getUniformLoc(t) {
|
|
609
609
|
const e = this.uniformLocCache.get(t);
|
|
@@ -621,7 +621,7 @@ let et = class {
|
|
|
621
621
|
if (i == null) throw tt;
|
|
622
622
|
if (s.shaderSource(i, t), s.compileShader(i), !s.getShaderParameter(i, s.COMPILE_STATUS)) {
|
|
623
623
|
const a = s.getShaderInfoLog(i);
|
|
624
|
-
throw s.deleteShader(i),
|
|
624
|
+
throw s.deleteShader(i), P(a ?? "unknown");
|
|
625
625
|
}
|
|
626
626
|
s.attachShader(this.prog, i);
|
|
627
627
|
}
|
|
@@ -630,7 +630,7 @@ const st = new Float32Array([0, 0, 0, 0, 0, 0]);
|
|
|
630
630
|
class it extends et {
|
|
631
631
|
positionBuffer;
|
|
632
632
|
constructor(t) {
|
|
633
|
-
super(t,
|
|
633
|
+
super(t, j, Q);
|
|
634
634
|
const e = t.gl.createBuffer();
|
|
635
635
|
if (e == null) throw new K("webgl: failed to create buffer");
|
|
636
636
|
this.positionBuffer = e, t.gl.bindBuffer(t.gl.ARRAY_BUFFER, this.positionBuffer), t.gl.bufferData(t.gl.ARRAY_BUFFER, st, t.gl.STATIC_DRAW);
|
|
@@ -642,7 +642,7 @@ class it extends et {
|
|
|
642
642
|
t.bindVertexArray(s), t.enableVertexAttribArray(e), t.vertexAttribPointer(e, 2, t.FLOAT, !1, 0, 0), this.setAsActive(), t.drawArrays(t.TRIANGLES, 0, 3);
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
|
-
const
|
|
645
|
+
const D = { high: 1, low: 0 };
|
|
646
646
|
class rt {
|
|
647
647
|
/** Stores the current requests for rendering. */
|
|
648
648
|
requests = /* @__PURE__ */ new Map();
|
|
@@ -675,7 +675,7 @@ class rt {
|
|
|
675
675
|
const e = this.requests.get(t.key);
|
|
676
676
|
if (e == null) this.requests.set(t.key, t);
|
|
677
677
|
else {
|
|
678
|
-
const s =
|
|
678
|
+
const s = D[t.priority] >= D[e.priority], i = t.canvases.length >= e.canvases.length;
|
|
679
679
|
s && i && this.requests.set(t.key, t);
|
|
680
680
|
}
|
|
681
681
|
}
|
|
@@ -728,7 +728,7 @@ class b {
|
|
|
728
728
|
constructor(t) {
|
|
729
729
|
const { font: e, characters: s = b.DEFAULT_CHARS, textColor: i } = t;
|
|
730
730
|
this.charMap = /* @__PURE__ */ new Map();
|
|
731
|
-
const r =
|
|
731
|
+
const r = X.unique(Array.from(s)), n = new OffscreenCanvas(1, 1).getContext("2d");
|
|
732
732
|
n.font = e;
|
|
733
733
|
const o = n.measureText("0");
|
|
734
734
|
this.charDims = G(o), this.charDims.width += S, this.charDims.height += S;
|
|
@@ -738,9 +738,9 @@ class b {
|
|
|
738
738
|
m * (E + 1) * g
|
|
739
739
|
);
|
|
740
740
|
const f = this.atlas.getContext("2d");
|
|
741
|
-
f.scale(g, g), f.font = e, f.textBaseline = "alphabetic", f.textAlign = "left", f.fillStyle =
|
|
742
|
-
const M = A % c, Y = Math.floor(A / c), N = M * u,
|
|
743
|
-
f.fillText(O, N,
|
|
741
|
+
f.scale(g, g), f.font = e, f.textBaseline = "alphabetic", f.textAlign = "left", f.fillStyle = C.hex(i), f.clearRect(0, 0, this.atlas.width, this.atlas.height), r.forEach((O, A) => {
|
|
742
|
+
const M = A % c, Y = Math.floor(A / c), N = M * u, U = (Y + 1) * m;
|
|
743
|
+
f.fillText(O, N, U), this.charMap.set(O, A);
|
|
744
744
|
});
|
|
745
745
|
}
|
|
746
746
|
fillText(t, e, s, i) {
|
|
@@ -777,7 +777,7 @@ class at {
|
|
|
777
777
|
* atlas does not exist in the registry, it is created and added to the registry.
|
|
778
778
|
*/
|
|
779
779
|
get(t) {
|
|
780
|
-
const e = `${t.font}-${
|
|
780
|
+
const e = `${t.font}-${C.hex(t.textColor)}-${t.characters}`;
|
|
781
781
|
if (this.atlases.has(e)) return this.atlases.get(e);
|
|
782
782
|
const s = new b(t);
|
|
783
783
|
return this.atlases.set(e, s), s;
|
|
@@ -806,7 +806,7 @@ class w {
|
|
|
806
806
|
/** See the @link{clear.Program} for why this is necessary. */
|
|
807
807
|
clearProgram;
|
|
808
808
|
os;
|
|
809
|
-
static CONTEXT_KEY =
|
|
809
|
+
static CONTEXT_KEY = q.B("render-context");
|
|
810
810
|
instrumentation;
|
|
811
811
|
static create(t, e, s, i, r) {
|
|
812
812
|
const a = J(t, "render_context"), n = new w(
|
|
@@ -882,11 +882,11 @@ class w {
|
|
|
882
882
|
* in the canvas.
|
|
883
883
|
*/
|
|
884
884
|
scaleRegion(t) {
|
|
885
|
-
return new
|
|
885
|
+
return new y.XY(
|
|
886
886
|
// Accept a value in decimal.
|
|
887
|
-
|
|
887
|
+
y.Scale.scale(0, 1).scale(h.width(t)).translate(h.left(t)).reBound(h.width(this.region)).scale(-1, 1),
|
|
888
888
|
// Accept a value in decimal.
|
|
889
|
-
|
|
889
|
+
y.Scale.scale(0, 1).scale(h.height(t)).invert().translate(h.top(t)).reBound(h.height(this.region)).scale(-1, 1).invert()
|
|
890
890
|
);
|
|
891
891
|
}
|
|
892
892
|
scissor(t, e = d.ZERO, s) {
|
|
@@ -906,18 +906,18 @@ class w {
|
|
|
906
906
|
}
|
|
907
907
|
eraseGL(t, e = d.ZERO) {
|
|
908
908
|
const { gl: s } = this, i = this.scissorGL(T(t, e));
|
|
909
|
-
s.clearColor(...
|
|
909
|
+
s.clearColor(...C.rgba1(C.ZERO)), s.clear(s.COLOR_BUFFER_BIT), this.os === "Windows" && this.clearProgram?.exec(), i();
|
|
910
910
|
}
|
|
911
911
|
eraseCanvas(t, e, s = d.ZERO) {
|
|
912
912
|
const i = T(e, s);
|
|
913
|
-
t.clearRect(...d.couple(h.topLeft(i)), ...
|
|
913
|
+
t.clearRect(...d.couple(h.topLeft(i)), ...k.couple(h.dims(i)));
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
916
|
const ht = _.object({
|
|
917
917
|
region: h.box,
|
|
918
|
-
enabled: _.boolean().
|
|
918
|
+
enabled: _.boolean().default(!1)
|
|
919
919
|
}), I = ["gl", "lower2d", "upper2d"];
|
|
920
|
-
class
|
|
920
|
+
class B extends V {
|
|
921
921
|
static TYPE = "eraser";
|
|
922
922
|
schema = ht;
|
|
923
923
|
afterUpdate(t) {
|
|
@@ -939,11 +939,11 @@ class k extends V {
|
|
|
939
939
|
}
|
|
940
940
|
}
|
|
941
941
|
const ut = {
|
|
942
|
-
[
|
|
942
|
+
[B.TYPE]: B
|
|
943
943
|
};
|
|
944
944
|
export {
|
|
945
945
|
w as C,
|
|
946
|
-
|
|
946
|
+
B as E,
|
|
947
947
|
et as G,
|
|
948
948
|
rt as L,
|
|
949
949
|
v as P,
|
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-DHDqgF1B.cjs"),e=require("./value-QHhF9WPA.cjs"),i=require("./css-BVgFAmaj.cjs"),r=require("./eraser-Cbfc1frM.cjs");require("react");require("./types-8-Mr79SF.cjs");const s=require("./fontString-62eEvw4b.cjs"),E=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:s.fontString,themeZ:t.themeZ,use:t.use},Symbol.toStringTag,{value:"Module"})),l=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"})),u=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"})),T={[e.FLUX_STORE_KEY$2]:e.FLUX_STORE_CONFIG$2,[e.RELATIONSHIPS_FLUX_STORE_KEY]:e.RELATIONSHIP_FLUX_STORE_CONFIG,[e.RESOURCES_FLUX_STORE_KEY]:e.RESOURCE_FLUX_STORE_CONFIG,[e.FLUX_STORE_KEY$1]:e.FLUX_STORE_CONFIG$1,[e.FLUX_STORE_KEY]:e.FLUX_STORE_CONFIG},a=()=>{const o=new i.ln((S,n)=>postMessage(S,n));onmessage=o.handle.bind(o);const R={...r.REGISTRY$1,...e.REGISTRY$19,...e.REGISTRY$18,...e.REGISTRY$17,...e.REGISTRY$16,...r.REGISTRY,...e.REGISTRY$15,...e.REGISTRY$14,...e.REGISTRY$13,...e.REGISTRY,...e.REGISTRY$12,...e.REGISTRY$11,...e.REGISTRY$10,...e.REGISTRY$9,...t.REGISTRY$1,...e.REGISTRY$8,...e.REGISTRY$7,...t.REGISTRY,...e.REGISTRY$6,...e.REGISTRY$5,...e.REGISTRY$4,...e.REGISTRY$3,...e.REGISTRY$2,...e.REGISTRY$1,...e.createRegistry({storeConfig:T})};t.render({comms:o.route("vis"),registry:R,instrumentation:new t.O({logger:new t._({filters:[t.be("info")]})})})},_=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=u;exports.pluto=_;exports.render=l;exports.theming=E;
|
package/dist/ether.js
CHANGED
|
@@ -1,100 +1,102 @@
|
|
|
1
|
-
import { P as R, R as a, S, a as n, b as E, f as
|
|
2
|
-
import {
|
|
3
|
-
import { c as $, r as
|
|
4
|
-
import {
|
|
5
|
-
import "./css-
|
|
6
|
-
import { C as
|
|
1
|
+
import { P as R, R as a, S, a as n, b as E, f as T, t as _, u as i, c as l, r as I, O as G, _ as Y, d as O } from "./provider-ClhgBr_F.js";
|
|
2
|
+
import { e as Fe } from "./provider-ClhgBr_F.js";
|
|
3
|
+
import { c as $, r as m, u, a as p, B as c, L as f, R as s, X as g, Y as d, b as L, l as b, x as F, y as N, d as X, e as x, f as y, g as P, h as U, i as C, j as A, k as j, m as v, n as K, o as M, p as h, q as Z, s as w, t as z, v as H, w as q, z as Q, A as k, C as B, F as D, D as J, E as V, G as W, H as ee, I as ae, J as se, K as te, M as oe, N as re } from "./value-CzFrd9p6.js";
|
|
4
|
+
import { S as Xe, T as xe, U as ye, V as Pe, P as Ue, Q as Ce, O as Ae, W as je } from "./value-CzFrd9p6.js";
|
|
5
|
+
import { l as Re } from "./css-bahPRiQI.js";
|
|
6
|
+
import { C as Se, G as ne, L as Ee, R as Te, a as _e } from "./eraser-Dz6nZuPp.js";
|
|
7
7
|
import "react";
|
|
8
|
-
import "./types-
|
|
9
|
-
import { f as
|
|
10
|
-
const
|
|
8
|
+
import "./types-DGaZ_JZb.js";
|
|
9
|
+
import { f as ie } from "./fontString-qfWSw62X.js";
|
|
10
|
+
const ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11
11
|
__proto__: null,
|
|
12
12
|
Provider: R,
|
|
13
13
|
REGISTRY: a,
|
|
14
14
|
SYNNAX_DARK: S,
|
|
15
15
|
SYNNAX_LIGHT: n,
|
|
16
16
|
SYNNAX_THEMES: E,
|
|
17
|
-
fontSpecZ:
|
|
18
|
-
fontString:
|
|
19
|
-
themeZ:
|
|
20
|
-
use:
|
|
21
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
17
|
+
fontSpecZ: T,
|
|
18
|
+
fontString: ie,
|
|
19
|
+
themeZ: _,
|
|
20
|
+
use: i
|
|
21
|
+
}, Symbol.toStringTag, { value: "Module" })), fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
22
22
|
__proto__: null,
|
|
23
|
-
Context:
|
|
24
|
-
GLProgram:
|
|
25
|
-
Loop:
|
|
23
|
+
Context: Se,
|
|
24
|
+
GLProgram: ne,
|
|
25
|
+
Loop: Ee,
|
|
26
26
|
control: $,
|
|
27
|
-
request:
|
|
28
|
-
useOptionalRequestor:
|
|
29
|
-
useRequestor:
|
|
30
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
27
|
+
request: m,
|
|
28
|
+
useOptionalRequestor: u,
|
|
29
|
+
useRequestor: p
|
|
30
|
+
}, Symbol.toStringTag, { value: "Module" })), ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
31
31
|
__proto__: null,
|
|
32
|
-
BoundQuerier:
|
|
33
|
-
LinePlot:
|
|
32
|
+
BoundQuerier: c,
|
|
33
|
+
LinePlot: f,
|
|
34
34
|
REGISTRY: s,
|
|
35
|
-
XAxis:
|
|
36
|
-
YAxis:
|
|
35
|
+
XAxis: g,
|
|
36
|
+
YAxis: d,
|
|
37
37
|
boundQuerierStateZ: L,
|
|
38
|
-
linePlotStateZ:
|
|
39
|
-
xAxisStateZ:
|
|
38
|
+
linePlotStateZ: b,
|
|
39
|
+
xAxisStateZ: F,
|
|
40
40
|
yAxisStateZ: N
|
|
41
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
42
|
-
[
|
|
43
|
-
[
|
|
44
|
-
[
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
}, Symbol.toStringTag, { value: "Module" })), le = {
|
|
42
|
+
[re]: ee,
|
|
43
|
+
[oe]: W,
|
|
44
|
+
[te]: V,
|
|
45
|
+
[se]: J,
|
|
46
|
+
[ae]: D
|
|
47
|
+
}, Ie = () => {
|
|
48
|
+
const e = new Re((o, r) => postMessage(o, r));
|
|
47
49
|
onmessage = e.handle.bind(e);
|
|
48
50
|
const t = {
|
|
49
|
-
...
|
|
50
|
-
...B,
|
|
51
|
+
..._e,
|
|
51
52
|
...k,
|
|
52
53
|
...Q,
|
|
53
54
|
...q,
|
|
54
|
-
...Re,
|
|
55
|
-
...K,
|
|
56
55
|
...H,
|
|
56
|
+
...Te,
|
|
57
57
|
...z,
|
|
58
|
-
...s,
|
|
59
58
|
...w,
|
|
60
59
|
...Z,
|
|
60
|
+
...s,
|
|
61
61
|
...h,
|
|
62
62
|
...M,
|
|
63
|
-
...
|
|
64
|
-
...U,
|
|
65
|
-
...C,
|
|
66
|
-
...a,
|
|
63
|
+
...K,
|
|
67
64
|
...v,
|
|
65
|
+
...l,
|
|
68
66
|
...j,
|
|
69
|
-
...X,
|
|
70
|
-
...F,
|
|
71
67
|
...A,
|
|
68
|
+
...a,
|
|
69
|
+
...C,
|
|
70
|
+
...U,
|
|
72
71
|
...P,
|
|
73
|
-
...
|
|
72
|
+
...y,
|
|
73
|
+
...x,
|
|
74
|
+
...X,
|
|
75
|
+
...B({ storeConfig: le })
|
|
74
76
|
};
|
|
75
|
-
|
|
77
|
+
I({
|
|
76
78
|
comms: e.route("vis"),
|
|
77
79
|
registry: t,
|
|
78
|
-
instrumentation: new
|
|
79
|
-
logger: new
|
|
80
|
+
instrumentation: new G({
|
|
81
|
+
logger: new Y({ filters: [O("info")] })
|
|
80
82
|
})
|
|
81
83
|
});
|
|
82
|
-
},
|
|
84
|
+
}, de = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
83
85
|
__proto__: null,
|
|
84
|
-
render:
|
|
86
|
+
render: Ie
|
|
85
87
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
86
88
|
export {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
89
|
+
Fe as aether,
|
|
90
|
+
Xe as canvas,
|
|
91
|
+
xe as diagram,
|
|
92
|
+
ge as lineplot,
|
|
93
|
+
ye as measure,
|
|
94
|
+
de as pluto,
|
|
95
|
+
fe as render,
|
|
96
|
+
Pe as rule,
|
|
97
|
+
Ue as synnax,
|
|
98
|
+
Ce as telem,
|
|
99
|
+
ce as theming,
|
|
98
100
|
Ae as tooltip,
|
|
99
|
-
|
|
101
|
+
je as value
|
|
100
102
|
};
|