@synnaxlabs/pluto 0.12.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/LICENSE +4 -0
- package/README.md +34 -0
- package/dist/Center-ZAcURh-3.cjs +148 -0
- package/dist/Center-ZAcURh-3.cjs.map +1 -0
- package/dist/Center-gEKkAkdh.js +149 -0
- package/dist/Center-gEKkAkdh.js.map +1 -0
- package/dist/Header-5YX6FUn6.cjs +35 -0
- package/dist/Header-5YX6FUn6.cjs.map +1 -0
- package/dist/Header-7x6367IV.js +36 -0
- package/dist/Header-7x6367IV.js.map +1 -0
- package/dist/Item-EDdYN2NK.js +171 -0
- package/dist/Item-EDdYN2NK.js.map +1 -0
- package/dist/Item-HWzX7RK2.cjs +170 -0
- package/dist/Item-HWzX7RK2.cjs.map +1 -0
- package/dist/Item-owLU4Xop.js +97 -0
- package/dist/Item-owLU4Xop.js.map +1 -0
- package/dist/Item-rkSKzZoh.cjs +96 -0
- package/dist/Item-rkSKzZoh.cjs.map +1 -0
- package/dist/Keyboard-mE03PKwA.js +14 -0
- package/dist/Keyboard-mE03PKwA.js.map +1 -0
- package/dist/Keyboard-w372197S.cjs +13 -0
- package/dist/Keyboard-w372197S.cjs.map +1 -0
- package/dist/Link-laNlv47N.js +13 -0
- package/dist/Link-laNlv47N.js.map +1 -0
- package/dist/Link-xlTZan29.cjs +12 -0
- package/dist/Link-xlTZan29.cjs.map +1 -0
- package/dist/SelectLevel-bGb0dRXh.cjs +152 -0
- package/dist/SelectLevel-bGb0dRXh.cjs.map +1 -0
- package/dist/SelectLevel-cewIWtOv.js +153 -0
- package/dist/SelectLevel-cewIWtOv.js.map +1 -0
- package/dist/Selector-R3lL41_i.js +267 -0
- package/dist/Selector-R3lL41_i.js.map +1 -0
- package/dist/Selector-hQLSIYum.cjs +266 -0
- package/dist/Selector-hQLSIYum.cjs.map +1 -0
- package/dist/TimeRangeChip-XXXLMCrf.cjs +9316 -0
- package/dist/TimeRangeChip-XXXLMCrf.cjs.map +1 -0
- package/dist/TimeRangeChip-eDCX5pUC.js +9301 -0
- package/dist/TimeRangeChip-eDCX5pUC.js.map +1 -0
- package/dist/Toggle-eOKYw1OT.cjs +13664 -0
- package/dist/Toggle-eOKYw1OT.cjs.map +1 -0
- package/dist/Toggle-kLunfJtR.js +13665 -0
- package/dist/Toggle-kLunfJtR.js.map +1 -0
- package/dist/Video-Vpwp5ao1.js +12 -0
- package/dist/Video-Vpwp5ao1.js.map +1 -0
- package/dist/Video-a7BUKvzF.cjs +11 -0
- package/dist/Video-a7BUKvzF.cjs.map +1 -0
- package/dist/Video-k52RqIHf.cjs +2 -0
- package/dist/Video-k52RqIHf.cjs.map +1 -0
- package/dist/Video-w40geAFS.js +2 -0
- package/dist/Video-w40geAFS.js.map +1 -0
- package/dist/accordion/Accordion.d.ts +38 -0
- package/dist/accordion/Accordion.spec.d.ts +1 -0
- package/dist/accordion/Accordion.stories.d.ts +5 -0
- package/dist/accordion/index.d.ts +1 -0
- package/dist/aether/aether/aether.d.ts +247 -0
- package/dist/aether/aether/index.d.ts +2 -0
- package/dist/aether/aether/worker.spec.d.ts +8 -0
- package/dist/aether/index.d.ts +1 -0
- package/dist/aether/main.d.ts +96 -0
- package/dist/aether/main.spec.d.ts +8 -0
- package/dist/aether/message.d.ts +17 -0
- package/dist/aether.cjs +90 -0
- package/dist/aether.cjs.map +1 -0
- package/dist/aether.js +93 -0
- package/dist/aether.js.map +1 -0
- package/dist/aetherIndex.d.ts +14 -0
- package/dist/alamos/Provider.d.ts +12 -0
- package/dist/alamos/aether/alamos.d.ts +39 -0
- package/dist/alamos/aether/index.d.ts +1 -0
- package/dist/alamos/index.d.ts +1 -0
- package/dist/align/Center.d.ts +8 -0
- package/dist/align/Pack.d.ts +23 -0
- package/dist/align/Pack.stories.d.ts +8 -0
- package/dist/align/Space.d.ts +54 -0
- package/dist/align/Space.spec.d.ts +1 -0
- package/dist/align/Space.stories.d.ts +5 -0
- package/dist/align/external.d.ts +3 -0
- package/dist/align/index.d.ts +1 -0
- package/dist/align.cjs +10 -0
- package/dist/align.cjs.map +1 -0
- package/dist/align.js +10 -0
- package/dist/align.js.map +1 -0
- package/dist/button/Button.d.ts +46 -0
- package/dist/button/Button.spec.d.ts +1 -0
- package/dist/button/Button.stories.d.ts +9 -0
- package/dist/button/Icon.d.ts +19 -0
- package/dist/button/Link.d.ts +16 -0
- package/dist/button/Toggle.d.ts +34 -0
- package/dist/button/color.d.ts +3 -0
- package/dist/button/external.d.ts +4 -0
- package/dist/button/index.d.ts +1 -0
- package/dist/button.cjs +15 -0
- package/dist/button.cjs.map +1 -0
- package/dist/button.js +15 -0
- package/dist/button.js.map +1 -0
- package/dist/channel/AliasProvider.d.ts +24 -0
- package/dist/channel/ChannelSelect.stories.d.ts +7 -0
- package/dist/channel/LinePlot.d.ts +72 -0
- package/dist/channel/LinePlot.stories.d.ts +6 -0
- package/dist/channel/Select.d.ts +11 -0
- package/dist/channel/external.d.ts +3 -0
- package/dist/channel/index.d.ts +1 -0
- package/dist/channel/types.d.ts +1 -0
- package/dist/color/Picker/Picker.d.ts +6 -0
- package/dist/color/Picker/Picker.stories.d.ts +6 -0
- package/dist/color/Picker/index.d.ts +1 -0
- package/dist/color/Swatch/Swatch.d.ts +8 -0
- package/dist/color/Swatch/index.d.ts +1 -0
- package/dist/color/core/color.d.ts +128 -0
- package/dist/color/core/color.spec.d.ts +1 -0
- package/dist/color/core/index.d.ts +2 -0
- package/dist/color/external.d.ts +4 -0
- package/dist/color/index.d.ts +1 -0
- package/dist/component-joFaJiQW.cjs +24719 -0
- package/dist/component-joFaJiQW.cjs.map +1 -0
- package/dist/component-k78Jq9I7.js +24720 -0
- package/dist/component-k78Jq9I7.js.map +1 -0
- package/dist/css/bem.d.ts +14 -0
- package/dist/css/bem.spec.d.ts +1 -0
- package/dist/css/color.d.ts +10 -0
- package/dist/css/css.d.ts +27 -0
- package/dist/css/grid.d.ts +14 -0
- package/dist/css/index.d.ts +4 -0
- package/dist/css/units.d.ts +1 -0
- package/dist/css/vars.d.ts +1 -0
- package/dist/css-NTD4Xm8x.js +9206 -0
- package/dist/css-NTD4Xm8x.js.map +1 -0
- package/dist/css-V3VUT_Js.cjs +9204 -0
- package/dist/css-V3VUT_Js.cjs.map +1 -0
- package/dist/cursor/cursor.d.ts +3 -0
- package/dist/cursor/index.d.ts +1 -0
- package/dist/dimensions-Sej0Zly9.cjs +26 -0
- package/dist/dimensions-Sej0Zly9.cjs.map +1 -0
- package/dist/dimensions-guJ5PHmb.js +27 -0
- package/dist/dimensions-guJ5PHmb.js.map +1 -0
- package/dist/divider/Divider.d.ts +14 -0
- package/dist/divider/index.d.ts +2 -0
- package/dist/dropdown/Dropdown.d.ts +49 -0
- package/dist/dropdown/Dropdown.spec.d.ts +1 -0
- package/dist/dropdown/Dropdown.stories.d.ts +5 -0
- package/dist/dropdown/index.d.ts +2 -0
- package/dist/dropdown.cjs +13 -0
- package/dist/dropdown.cjs.map +1 -0
- package/dist/dropdown.js +13 -0
- package/dist/dropdown.js.map +1 -0
- package/dist/external-2Aicsb3l.js +88 -0
- package/dist/external-2Aicsb3l.js.map +1 -0
- package/dist/external-9Ncn2J9B.cjs +93 -0
- package/dist/external-9Ncn2J9B.cjs.map +1 -0
- package/dist/external-9RCzxzgZ.js +30 -0
- package/dist/external-9RCzxzgZ.js.map +1 -0
- package/dist/external-9pS8-DvV.js +15 -0
- package/dist/external-9pS8-DvV.js.map +1 -0
- package/dist/external-KxlyA74C.js +20 -0
- package/dist/external-KxlyA74C.js.map +1 -0
- package/dist/external-OSLzuRs1.cjs +14 -0
- package/dist/external-OSLzuRs1.cjs.map +1 -0
- package/dist/external-PS3nzqUn.cjs +23 -0
- package/dist/external-PS3nzqUn.cjs.map +1 -0
- package/dist/external-QRmqSjV0.js +18 -0
- package/dist/external-QRmqSjV0.js.map +1 -0
- package/dist/external-QuVTCnGl.js +71 -0
- package/dist/external-QuVTCnGl.js.map +1 -0
- package/dist/external-U5HRPaDI.cjs +17 -0
- package/dist/external-U5HRPaDI.cjs.map +1 -0
- package/dist/external-_CtRDtih.js +17 -0
- package/dist/external-_CtRDtih.js.map +1 -0
- package/dist/external-eQU48hM4.cjs +87 -0
- package/dist/external-eQU48hM4.cjs.map +1 -0
- package/dist/external-kbDFnfuk.js +24 -0
- package/dist/external-kbDFnfuk.js.map +1 -0
- package/dist/external-oX1JmOFf.js +17 -0
- package/dist/external-oX1JmOFf.js.map +1 -0
- package/dist/external-oZe6tF4A.cjs +14 -0
- package/dist/external-oZe6tF4A.cjs.map +1 -0
- package/dist/external-tVcmKSsT.cjs +19 -0
- package/dist/external-tVcmKSsT.cjs.map +1 -0
- package/dist/external-up1sE3F6.js +94 -0
- package/dist/external-up1sE3F6.js.map +1 -0
- package/dist/external-uvx0b-Jw.cjs +16 -0
- package/dist/external-uvx0b-Jw.cjs.map +1 -0
- package/dist/external-vXBQOmKv.js +15 -0
- package/dist/external-vXBQOmKv.js.map +1 -0
- package/dist/external-yiqRIIvW.cjs +16 -0
- package/dist/external-yiqRIIvW.cjs.map +1 -0
- package/dist/external-zBiIxeDG.cjs +70 -0
- package/dist/external-zBiIxeDG.cjs.map +1 -0
- package/dist/external-zw9fckWT.cjs +29 -0
- package/dist/external-zw9fckWT.cjs.map +1 -0
- package/dist/font-t7KoGNFX.js +17 -0
- package/dist/font-t7KoGNFX.js.map +1 -0
- package/dist/font-wlgaMRYN.cjs +16 -0
- package/dist/font-wlgaMRYN.cjs.map +1 -0
- package/dist/fontString-RKvYIr5H.js +13 -0
- package/dist/fontString-RKvYIr5H.js.map +1 -0
- package/dist/fontString-i24UxKCQ.cjs +12 -0
- package/dist/fontString-i24UxKCQ.cjs.map +1 -0
- package/dist/generic/Generic.d.ts +13 -0
- package/dist/generic/index.d.ts +1 -0
- package/dist/haul/Haul.d.ts +60 -0
- package/dist/haul/index.d.ts +1 -0
- package/dist/header/Actions.d.ts +15 -0
- package/dist/header/ButtonTitle.d.ts +13 -0
- package/dist/header/Header.d.ts +28 -0
- package/dist/header/Header.spec.d.ts +1 -0
- package/dist/header/Header.stories.d.ts +6 -0
- package/dist/header/Title.d.ts +13 -0
- package/dist/header/external.d.ts +4 -0
- package/dist/header/index.d.ts +1 -0
- package/dist/header.cjs +15 -0
- package/dist/header.cjs.map +1 -0
- package/dist/header.js +15 -0
- package/dist/header.js.map +1 -0
- package/dist/hooks/effect.d.ts +14 -0
- package/dist/hooks/index.d.ts +8 -0
- package/dist/hooks/ref.d.ts +31 -0
- package/dist/hooks/useClickOutside.d.ts +9 -0
- package/dist/hooks/useCursorDrag/index.d.ts +2 -0
- package/dist/hooks/useCursorDrag/types.d.ts +5 -0
- package/dist/hooks/useCursorDrag/useCursorDrag.d.ts +10 -0
- package/dist/hooks/useCursorDrag/useVirtualCursorDrag.d.ts +1 -0
- package/dist/hooks/useCursorDrag/useVirtualCursorDragWebKit.d.ts +2 -0
- package/dist/hooks/useCursorDrag/useVirtualCursorDragWebView.d.ts +2 -0
- package/dist/hooks/useDebouncedCallback.d.ts +2 -0
- package/dist/hooks/useFilter.d.ts +21 -0
- package/dist/hooks/useResize.d.ts +24 -0
- package/dist/hooks/useSelectMultiple.d.ts +51 -0
- package/dist/hooks/useTransforms.d.ts +15 -0
- package/dist/hooks/useUniqueKey.d.ts +6 -0
- package/dist/index.cjs +1175 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.js +1182 -0
- package/dist/index.js.map +1 -0
- package/dist/input/Date.d.ts +28 -0
- package/dist/input/DragButton.d.ts +14 -0
- package/dist/input/HelpText.d.ts +19 -0
- package/dist/input/Input.spec.d.ts +1 -0
- package/dist/input/Input.stories.d.ts +9 -0
- package/dist/input/Item.d.ts +23 -0
- package/dist/input/Label.d.ts +13 -0
- package/dist/input/Number.d.ts +30 -0
- package/dist/input/Switch.d.ts +15 -0
- package/dist/input/Text.d.ts +18 -0
- package/dist/input/Time.d.ts +30 -0
- package/dist/input/Time.spec.d.ts +1 -0
- package/dist/input/external.d.ts +10 -0
- package/dist/input/index.d.ts +1 -0
- package/dist/input/types.d.ts +19 -0
- package/dist/input.cjs +15 -0
- package/dist/input.cjs.map +1 -0
- package/dist/input.js +15 -0
- package/dist/input.js.map +1 -0
- package/dist/jsx-runtime-N1ikfypN.cjs +931 -0
- package/dist/jsx-runtime-N1ikfypN.cjs.map +1 -0
- package/dist/jsx-runtime-rX5tAIG2.js +932 -0
- package/dist/jsx-runtime-rX5tAIG2.js.map +1 -0
- package/dist/list/Column.d.ts +24 -0
- package/dist/list/Context.d.ts +45 -0
- package/dist/list/Core.d.ts +40 -0
- package/dist/list/Filter.d.ts +22 -0
- package/dist/list/KeyHover.d.ts +4 -0
- package/dist/list/List.d.ts +19 -0
- package/dist/list/List.spec.d.ts +1 -0
- package/dist/list/List.stories.d.ts +7 -0
- package/dist/list/Search.d.ts +12 -0
- package/dist/list/Selector.d.ts +11 -0
- package/dist/list/external.d.ts +9 -0
- package/dist/list/index.d.ts +1 -0
- package/dist/list/types.d.ts +38 -0
- package/dist/list.cjs +27 -0
- package/dist/list.cjs.map +1 -0
- package/dist/list.js +27 -0
- package/dist/list.js.map +1 -0
- package/dist/memo/index.d.ts +2 -0
- package/dist/memo/proxyMemo.d.ts +2 -0
- package/dist/memo/useMemoCompare.d.ts +5 -0
- package/dist/menu/ContextMenu.d.ts +78 -0
- package/dist/menu/Item.d.ts +35 -0
- package/dist/menu/Menu.d.ts +26 -0
- package/dist/menu/external.d.ts +3 -0
- package/dist/menu/index.d.ts +1 -0
- package/dist/menu.cjs +16 -0
- package/dist/menu.cjs.map +1 -0
- package/dist/menu.js +16 -0
- package/dist/menu.js.map +1 -0
- package/dist/mock/MockGLBufferController.d.ts +20 -0
- package/dist/mock/setuptests.d.ts +1 -0
- package/dist/mosaic/Mosaic.d.ts +35 -0
- package/dist/mosaic/Mosaic.spec.d.ts +1 -0
- package/dist/mosaic/Mosaic.stories.d.ts +5 -0
- package/dist/mosaic/external.d.ts +4 -0
- package/dist/mosaic/index.d.ts +1 -0
- package/dist/mosaic/tree.d.ts +70 -0
- package/dist/mosaic/types.d.ts +50 -0
- package/dist/mosaic/use.d.ts +24 -0
- package/dist/nav/Bar.d.ts +25 -0
- package/dist/nav/Drawer.d.ts +24 -0
- package/dist/nav/Nav.spec.d.ts +1 -0
- package/dist/nav/Nav.stories.d.ts +6 -0
- package/dist/nav/external.d.ts +2 -0
- package/dist/nav/index.d.ts +1 -0
- package/dist/os/Controls/Controls.d.ts +7 -0
- package/dist/os/Controls/Controls.stories.d.ts +6 -0
- package/dist/os/Controls/Mac.d.ts +8 -0
- package/dist/os/Controls/Windows.d.ts +3 -0
- package/dist/os/Controls/index.d.ts +3 -0
- package/dist/os/Controls/types.d.ts +12 -0
- package/dist/os/external.d.ts +2 -0
- package/dist/os/index.d.ts +1 -0
- package/dist/os/use.d.ts +2 -0
- package/dist/pluto/Pluto.d.ts +18 -0
- package/dist/pluto/aether/ pluto.d.ts +1 -0
- package/dist/pluto/aether/index.d.ts +1 -0
- package/dist/pluto/defaultWorker.d.ts +1 -0
- package/dist/pluto/index.d.ts +1 -0
- package/dist/ranger/SelectLabel.d.ts +6 -0
- package/dist/ranger/TimeRangeChip.d.ts +6 -0
- package/dist/ranger/TimeRangeChip.stories.d.ts +6 -0
- package/dist/ranger/external.d.ts +2 -0
- package/dist/ranger/index.d.ts +1 -0
- package/dist/resize/Core.d.ts +10 -0
- package/dist/resize/Multiple.d.ts +63 -0
- package/dist/resize/Single.d.ts +23 -0
- package/dist/resize/Single.spec.d.ts +1 -0
- package/dist/resize/Single.stories.d.ts +6 -0
- package/dist/resize/external.d.ts +3 -0
- package/dist/resize/index.d.ts +1 -0
- package/dist/select/Button.d.ts +18 -0
- package/dist/select/ClearButton.d.ts +3 -0
- package/dist/select/Direction.d.ts +11 -0
- package/dist/select/List.d.ts +7 -0
- package/dist/select/Multiple.d.ts +45 -0
- package/dist/select/Select.spec.d.ts +1 -0
- package/dist/select/Select.stories.d.ts +14 -0
- package/dist/select/Single.d.ts +37 -0
- package/dist/select/external.d.ts +4 -0
- package/dist/select/index.d.ts +1 -0
- package/dist/state/index.d.ts +1 -0
- package/dist/state/state.d.ts +27 -0
- package/dist/status/Aggregator.d.ts +27 -0
- package/dist/status/Circle.d.ts +6 -0
- package/dist/status/Text.d.ts +21 -0
- package/dist/status/aether/aggregator.d.ts +86 -0
- package/dist/status/aether/external.d.ts +2 -0
- package/dist/status/aether/index.d.ts +1 -0
- package/dist/status/aether/types.d.ts +26 -0
- package/dist/status/colors.d.ts +2 -0
- package/dist/status/external.d.ts +4 -0
- package/dist/status/index.d.ts +1 -0
- package/dist/style.css +3119 -0
- package/dist/synnax/Provider.d.ts +10 -0
- package/dist/synnax/aether/index.d.ts +1 -0
- package/dist/synnax/aether/provider.d.ts +225 -0
- package/dist/synnax/index.d.ts +1 -0
- package/dist/table-8MFXzE4C.js +13664 -0
- package/dist/table-8MFXzE4C.js.map +1 -0
- package/dist/table-VNkSG_Cj.cjs +13661 -0
- package/dist/table-VNkSG_Cj.cjs.map +1 -0
- package/dist/tabs/Selector.d.ts +23 -0
- package/dist/tabs/Tabs.d.ts +40 -0
- package/dist/tabs/Tabs.spec.d.ts +1 -0
- package/dist/tabs/Tabs.stories.d.ts +5 -0
- package/dist/tabs/external.d.ts +2 -0
- package/dist/tabs/index.d.ts +1 -0
- package/dist/tabs.cjs +15 -0
- package/dist/tabs.cjs.map +1 -0
- package/dist/tabs.js +15 -0
- package/dist/tabs.js.map +1 -0
- package/dist/tag/Tag.d.ts +12 -0
- package/dist/tag/Tag.spec.d.ts +1 -0
- package/dist/tag/Tag.stories.d.ts +5 -0
- package/dist/tag/index.d.ts +1 -0
- package/dist/telem/Pipeline.d.ts +2 -0
- package/dist/telem/Provider.d.ts +6 -0
- package/dist/telem/aether/context.d.ts +16 -0
- package/dist/telem/aether/convertSeries.d.ts +9 -0
- package/dist/telem/aether/external.d.ts +9 -0
- package/dist/telem/aether/factory.d.ts +14 -0
- package/dist/telem/aether/index.d.ts +1 -0
- package/dist/telem/aether/noop.d.ts +12 -0
- package/dist/telem/aether/pipeline.d.ts +263 -0
- package/dist/telem/aether/provider.d.ts +24 -0
- package/dist/telem/aether/remote.d.ts +154 -0
- package/dist/telem/aether/remote.spec.d.ts +1 -0
- package/dist/telem/aether/static.d.ts +98 -0
- package/dist/telem/aether/telem.d.ts +376 -0
- package/dist/telem/aether/telem.spec.d.ts +1 -0
- package/dist/telem/aether/transformers.d.ts +197 -0
- package/dist/telem/client/cache/cache.d.ts +14 -0
- package/dist/telem/client/cache/dynamic.d.ts +32 -0
- package/dist/telem/client/cache/dynamic.spec.d.ts +1 -0
- package/dist/telem/client/cache/external.d.ts +1 -0
- package/dist/telem/client/cache/index.d.ts +2 -0
- package/dist/telem/client/cache/static.d.ts +31 -0
- package/dist/telem/client/cache/static.spec.d.ts +1 -0
- package/dist/telem/client/client.d.ts +104 -0
- package/dist/telem/client/index.d.ts +1 -0
- package/dist/telem/control/Chip.d.ts +8 -0
- package/dist/telem/control/Controller.d.ts +15 -0
- package/dist/telem/control/Indicator.d.ts +8 -0
- package/dist/telem/control/Legend.d.ts +7 -0
- package/dist/telem/control/StateProvider.d.ts +8 -0
- package/dist/telem/control/aether/chip.d.ts +229 -0
- package/dist/telem/control/aether/controller.d.ts +166 -0
- package/dist/telem/control/aether/external.d.ts +6 -0
- package/dist/telem/control/aether/index.d.ts +1 -0
- package/dist/telem/control/aether/indicator.d.ts +248 -0
- package/dist/telem/control/aether/legend.d.ts +216 -0
- package/dist/telem/control/aether/registry.d.ts +2 -0
- package/dist/telem/control/aether/state.d.ts +113 -0
- package/dist/telem/control/external.d.ts +6 -0
- package/dist/telem/control/index.d.ts +1 -0
- package/dist/telem/index.d.ts +1 -0
- package/dist/testutil/dom.d.ts +2 -0
- package/dist/text/DateTime.d.ts +19 -0
- package/dist/text/Editable.d.ts +15 -0
- package/dist/text/Keyboard.d.ts +5 -0
- package/dist/text/Link.d.ts +17 -0
- package/dist/text/SelectLevel.d.ts +11 -0
- package/dist/text/Text.d.ts +12 -0
- package/dist/text/Text.spec.d.ts +1 -0
- package/dist/text/Text.stories.d.ts +8 -0
- package/dist/text/WithIcon.d.ts +13 -0
- package/dist/text/dimensions.d.ts +2 -0
- package/dist/text/external.d.ts +10 -0
- package/dist/text/index.d.ts +1 -0
- package/dist/text/symbols.d.ts +5 -0
- package/dist/text/types.d.ts +24 -0
- package/dist/text.cjs +17 -0
- package/dist/text.cjs.map +1 -0
- package/dist/text.js +17 -0
- package/dist/text.js.map +1 -0
- package/dist/theming/aether/external.d.ts +3 -0
- package/dist/theming/aether/index.d.ts +2 -0
- package/dist/theming/aether/provider.d.ts +9808 -0
- package/dist/theming/context.d.ts +22 -0
- package/dist/theming/core/fontString.d.ts +4 -0
- package/dist/theming/core/theme.d.ts +3830 -0
- package/dist/theming/css.d.ts +2 -0
- package/dist/theming/external.d.ts +5 -0
- package/dist/theming/font.d.ts +8 -0
- package/dist/theming/index.d.ts +1 -0
- package/dist/theming/theming.spec.d.ts +1 -0
- package/dist/theming.cjs +16 -0
- package/dist/theming.cjs.map +1 -0
- package/dist/theming.js +16 -0
- package/dist/theming.js.map +1 -0
- package/dist/tooltip/Config.d.ts +29 -0
- package/dist/tooltip/Dialog.d.ts +36 -0
- package/dist/tooltip/Tooltip.stories.d.ts +5 -0
- package/dist/tooltip/external.d.ts +3 -0
- package/dist/tooltip/index.d.ts +1 -0
- package/dist/tooltip/wrap.d.ts +29 -0
- package/dist/tree/Tree.d.ts +73 -0
- package/dist/tree/Tree.stories.d.ts +5 -0
- package/dist/tree/index.d.ts +1 -0
- package/dist/tree.cjs +26 -0
- package/dist/tree.cjs.map +1 -0
- package/dist/tree.js +26 -0
- package/dist/tree.js.map +1 -0
- package/dist/triggers/Provider.d.ts +13 -0
- package/dist/triggers/Status.d.ts +5 -0
- package/dist/triggers/Text.d.ts +7 -0
- package/dist/triggers/Triggers.spec.d.ts +1 -0
- package/dist/triggers/Triggers.stories.d.ts +6 -0
- package/dist/triggers/external.d.ts +6 -0
- package/dist/triggers/hooks.d.ts +25 -0
- package/dist/triggers/index.d.ts +1 -0
- package/dist/triggers/triggers.d.ts +130 -0
- package/dist/triggers/useDrag.d.ts +17 -0
- package/dist/triggers.cjs +16 -0
- package/dist/triggers.cjs.map +1 -0
- package/dist/triggers.js +16 -0
- package/dist/triggers.js.map +1 -0
- package/dist/useDrag-KRQ7DTg1.cjs +48 -0
- package/dist/useDrag-KRQ7DTg1.cjs.map +1 -0
- package/dist/useDrag-rQt5hv4R.js +49 -0
- package/dist/useDrag-rQt5hv4R.js.map +1 -0
- package/dist/util/case.d.ts +1 -0
- package/dist/util/children.d.ts +3 -0
- package/dist/util/component.d.ts +5 -0
- package/dist/util/event.d.ts +6 -0
- package/dist/util/renderProp.d.ts +7 -0
- package/dist/util/zod.d.ts +2 -0
- package/dist/video/Video.d.ts +5 -0
- package/dist/video/Video.stories.d.ts +5 -0
- package/dist/video/index.d.ts +1 -0
- package/dist/video.cjs +10 -0
- package/dist/video.cjs.map +1 -0
- package/dist/video.js +10 -0
- package/dist/video.js.map +1 -0
- package/dist/viewport/Mask.d.ts +7 -0
- package/dist/viewport/SelectMode.d.ts +8 -0
- package/dist/viewport/Viewport.stories.d.ts +6 -0
- package/dist/viewport/external.d.ts +3 -0
- package/dist/viewport/index.d.ts +1 -0
- package/dist/viewport/use.d.ts +35 -0
- package/dist/vis/axis/axis.d.ts +97 -0
- package/dist/vis/axis/canvas.d.ts +18 -0
- package/dist/vis/axis/external.d.ts +3 -0
- package/dist/vis/axis/index.d.ts +1 -0
- package/dist/vis/axis/ticks.d.ts +33 -0
- package/dist/vis/button/aether/button.d.ts +94 -0
- package/dist/vis/button/aether/index.d.ts +1 -0
- package/dist/vis/button/index.d.ts +1 -0
- package/dist/vis/button/use.d.ts +9 -0
- package/dist/vis/canvas/Canvas.d.ts +11 -0
- package/dist/vis/canvas/aether/canvas.d.ts +230 -0
- package/dist/vis/canvas/aether/index.d.ts +1 -0
- package/dist/vis/canvas/index.d.ts +1 -0
- package/dist/vis/diagram/Diagram.d.ts +52 -0
- package/dist/vis/diagram/Diagram.stories.d.ts +5 -0
- package/dist/vis/diagram/aether/Diagram.d.ts +587 -0
- package/dist/vis/diagram/aether/index.d.ts +1 -0
- package/dist/vis/diagram/align.d.ts +3 -0
- package/dist/vis/diagram/align.spec.d.ts +1 -0
- package/dist/vis/diagram/edge/Edge.d.ts +14 -0
- package/dist/vis/diagram/edge/connector/connector.d.ts +59 -0
- package/dist/vis/diagram/edge/connector/connector.spec.d.ts +1 -0
- package/dist/vis/diagram/edge/connector/index.d.ts +1 -0
- package/dist/vis/diagram/edge/index.d.ts +1 -0
- package/dist/vis/diagram/external.d.ts +4 -0
- package/dist/vis/diagram/index.d.ts +1 -0
- package/dist/vis/diagram/types.d.ts +71 -0
- package/dist/vis/diagram/util.d.ts +21 -0
- package/dist/vis/draw2d/canvas.d.ts +106 -0
- package/dist/vis/draw2d/index.d.ts +60 -0
- package/dist/vis/eraser/aether/eraser.d.ts +194 -0
- package/dist/vis/eraser/aether/index.d.ts +1 -0
- package/dist/vis/eraser/index.d.ts +1 -0
- package/dist/vis/eraser/use.d.ts +11 -0
- package/dist/vis/legend/Container.d.ts +11 -0
- package/dist/vis/legend/Simple.d.ts +16 -0
- package/dist/vis/legend/external.d.ts +2 -0
- package/dist/vis/legend/index.d.ts +1 -0
- package/dist/vis/line/Line.d.ts +8 -0
- package/dist/vis/line/aether/index.d.ts +1 -0
- package/dist/vis/line/aether/line.d.ts +184 -0
- package/dist/vis/line/index.d.ts +1 -0
- package/dist/vis/lineplot/Axis.d.ts +17 -0
- package/dist/vis/lineplot/Legend.d.ts +7 -0
- package/dist/vis/lineplot/Line.d.ts +7 -0
- package/dist/vis/lineplot/LinePlot.d.ts +32 -0
- package/dist/vis/lineplot/LinePlot.stories.d.ts +5 -0
- package/dist/vis/lineplot/Title.d.ts +4 -0
- package/dist/vis/lineplot/Viewport.d.ts +6 -0
- package/dist/vis/lineplot/aether/LinePlot.d.ts +622 -0
- package/dist/vis/lineplot/aether/XAxis.d.ts +211 -0
- package/dist/vis/lineplot/aether/YAxis.d.ts +218 -0
- package/dist/vis/lineplot/aether/axis.d.ts +144 -0
- package/dist/vis/lineplot/aether/external.d.ts +3 -0
- package/dist/vis/lineplot/aether/grid.d.ts +22 -0
- package/dist/vis/lineplot/aether/index.d.ts +2 -0
- package/dist/vis/lineplot/external.d.ts +6 -0
- package/dist/vis/lineplot/index.d.ts +1 -0
- package/dist/vis/lineplot/tooltip/Tooltip.d.ts +8 -0
- package/dist/vis/lineplot/tooltip/aether/index.d.ts +1 -0
- package/dist/vis/lineplot/tooltip/aether/tooltip.d.ts +185 -0
- package/dist/vis/lineplot/tooltip/index.d.ts +1 -0
- package/dist/vis/measure/Measure.d.ts +6 -0
- package/dist/vis/measure/aether/index.d.ts +1 -0
- package/dist/vis/measure/aether/measure.d.ts +307 -0
- package/dist/vis/measure/index.d.ts +1 -0
- package/dist/vis/pid/Forms.d.ts +32 -0
- package/dist/vis/pid/Labeled.d.ts +15 -0
- package/dist/vis/pid/SelectOrientation.d.ts +15 -0
- package/dist/vis/pid/SelectOrientation.stories.d.ts +5 -0
- package/dist/vis/pid/Symbols.d.ts +205 -0
- package/dist/vis/pid/index.d.ts +1 -0
- package/dist/vis/pid/primitives/Primitives.d.ts +98 -0
- package/dist/vis/pid/primitives/Primitives.stories.d.ts +5 -0
- package/dist/vis/pid/primitives/index.d.ts +1 -0
- package/dist/vis/pid/registry.d.ts +17 -0
- package/dist/vis/render/GLProgram.d.ts +44 -0
- package/dist/vis/render/clear/index.d.ts +1 -0
- package/dist/vis/render/clear/program.d.ts +14 -0
- package/dist/vis/render/context.d.ts +61 -0
- package/dist/vis/render/controller.d.ts +14 -0
- package/dist/vis/render/eraser.d.ts +19 -0
- package/dist/vis/render/external.d.ts +5 -0
- package/dist/vis/render/index.d.ts +1 -0
- package/dist/vis/render/loop.d.ts +73 -0
- package/dist/vis/rule/Rule.d.ts +12 -0
- package/dist/vis/rule/aether/aether.d.ts +121 -0
- package/dist/vis/rule/aether/index.d.ts +1 -0
- package/dist/vis/rule/index.d.ts +1 -0
- package/dist/vis/table/Table.d.ts +25 -0
- package/dist/vis/table/Table.stories.d.ts +5 -0
- package/dist/vis/table/aether/index.d.ts +1 -0
- package/dist/vis/table/aether/table.d.ts +353 -0
- package/dist/vis/table/cell/Label.d.ts +7 -0
- package/dist/vis/table/cell/element.d.ts +18 -0
- package/dist/vis/table/cell/external.d.ts +3 -0
- package/dist/vis/table/cell/index.d.ts +1 -0
- package/dist/vis/table/cell/registry.d.ts +2 -0
- package/dist/vis/table/cell/value.d.ts +9 -0
- package/dist/vis/table/external.d.ts +2 -0
- package/dist/vis/table/index.d.ts +1 -0
- package/dist/vis/table/use.d.ts +101 -0
- package/dist/vis/toggle/aether/index.d.ts +1 -0
- package/dist/vis/toggle/aether/toggle.d.ts +170 -0
- package/dist/vis/toggle/index.d.ts +1 -0
- package/dist/vis/toggle/use.d.ts +9 -0
- package/dist/vis/value/aether/index.d.ts +1 -0
- package/dist/vis/value/aether/value.d.ts +462 -0
- package/dist/vis/value/external.d.ts +1 -0
- package/dist/vis/value/index.d.ts +1 -0
- package/dist/vis/value/use.d.ts +151 -0
- package/dist/worker/Context.d.ts +15 -0
- package/dist/worker/index.d.ts +1 -0
- package/package.json +181 -0
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import { type xy, location, type UnknownRecord } from "@synnaxlabs/x";
|
|
3
|
+
import { Align } from '../../align';
|
|
4
|
+
import { type Color } from '../../color';
|
|
5
|
+
import { Control } from '../../telem/control';
|
|
6
|
+
import { Button as CoreButton } from '../../vis/button';
|
|
7
|
+
import { type LabelExtensionProps } from '../../vis/pid/Labeled';
|
|
8
|
+
import { Primitives } from '../../vis/pid/primitives';
|
|
9
|
+
import { Toggle } from '../../vis/toggle';
|
|
10
|
+
import { Value as CoreValue } from '../../vis/value';
|
|
11
|
+
export interface ControlStateProps extends Omit<Align.SpaceProps, "direction"> {
|
|
12
|
+
showChip?: boolean;
|
|
13
|
+
showIndicator?: boolean;
|
|
14
|
+
chip?: Control.ChipProps;
|
|
15
|
+
indicator?: Control.IndicatorProps;
|
|
16
|
+
orientation?: location.Outer;
|
|
17
|
+
}
|
|
18
|
+
export declare const ControlState: ({ showChip, showIndicator, indicator, orientation, chip, children, ...props }: ControlStateProps) => ReactElement;
|
|
19
|
+
export type SymbolProps<P extends object = UnknownRecord> = P & {
|
|
20
|
+
symbolKey: string;
|
|
21
|
+
position: xy.XY;
|
|
22
|
+
selected: boolean;
|
|
23
|
+
onChange: (value: P) => void;
|
|
24
|
+
};
|
|
25
|
+
export interface ThreeWayValveProps extends Primitives.ThreeWayValveProps, Omit<Toggle.UseProps, "aetherKey"> {
|
|
26
|
+
label?: LabelExtensionProps;
|
|
27
|
+
control?: ControlStateProps;
|
|
28
|
+
}
|
|
29
|
+
export declare const ThreeWayValve: import("react").FC<ThreeWayValveProps & {
|
|
30
|
+
symbolKey: string;
|
|
31
|
+
position: xy.XY;
|
|
32
|
+
selected: boolean;
|
|
33
|
+
onChange: (value: ThreeWayValveProps) => void;
|
|
34
|
+
} & {
|
|
35
|
+
aetherKey?: string | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
export declare const ThreeWayValvePreview: (props: ThreeWayValveProps) => ReactElement;
|
|
38
|
+
export interface ValveProps extends Primitives.ValveProps, Omit<Toggle.UseProps, "aetherKey"> {
|
|
39
|
+
label?: LabelExtensionProps;
|
|
40
|
+
control?: ControlStateProps;
|
|
41
|
+
}
|
|
42
|
+
export declare const Valve: import("react").FC<ValveProps & {
|
|
43
|
+
symbolKey: string;
|
|
44
|
+
position: xy.XY;
|
|
45
|
+
selected: boolean;
|
|
46
|
+
onChange: (value: ValveProps) => void;
|
|
47
|
+
} & {
|
|
48
|
+
aetherKey?: string | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
export declare const ValvePreview: (props: ValveProps) => ReactElement;
|
|
51
|
+
export interface SolenoidValveProps extends Primitives.SolenoidValveProps, Omit<Toggle.UseProps, "aetherKey"> {
|
|
52
|
+
label?: LabelExtensionProps;
|
|
53
|
+
control?: ControlStateProps;
|
|
54
|
+
}
|
|
55
|
+
export declare const SolenoidValve: import("react").FC<SolenoidValveProps & {
|
|
56
|
+
symbolKey: string;
|
|
57
|
+
position: xy.XY;
|
|
58
|
+
selected: boolean;
|
|
59
|
+
onChange: (value: SolenoidValveProps) => void;
|
|
60
|
+
} & {
|
|
61
|
+
aetherKey?: string | undefined;
|
|
62
|
+
}>;
|
|
63
|
+
export declare const SolenoidValvePreview: (props: SolenoidValveProps) => ReactElement;
|
|
64
|
+
export interface FourWayValveProps extends Primitives.FourWayValveProps, Omit<Toggle.UseProps, "aetherKey"> {
|
|
65
|
+
label?: LabelExtensionProps;
|
|
66
|
+
control?: ControlStateProps;
|
|
67
|
+
}
|
|
68
|
+
export declare const FourWayValve: import("react").FC<FourWayValveProps & {
|
|
69
|
+
symbolKey: string;
|
|
70
|
+
position: xy.XY;
|
|
71
|
+
selected: boolean;
|
|
72
|
+
onChange: (value: FourWayValveProps) => void;
|
|
73
|
+
} & {
|
|
74
|
+
aetherKey?: string | undefined;
|
|
75
|
+
}>;
|
|
76
|
+
export declare const FourWayValvePreview: (props: FourWayValveProps) => ReactElement;
|
|
77
|
+
export interface AngledValveProps extends Primitives.AngledValveProps, Omit<Toggle.UseProps, "aetherKey"> {
|
|
78
|
+
label?: LabelExtensionProps;
|
|
79
|
+
control?: ControlStateProps;
|
|
80
|
+
}
|
|
81
|
+
export declare const AngledValve: import("react").FC<AngledValveProps & {
|
|
82
|
+
symbolKey: string;
|
|
83
|
+
position: xy.XY;
|
|
84
|
+
selected: boolean;
|
|
85
|
+
onChange: (value: AngledValveProps) => void;
|
|
86
|
+
} & {
|
|
87
|
+
aetherKey?: string | undefined;
|
|
88
|
+
}>;
|
|
89
|
+
export declare const AngledValvePreview: (props: AngledValveProps) => ReactElement;
|
|
90
|
+
export interface PumpProps extends Primitives.PumpProps, Omit<Toggle.UseProps, "aetherKey"> {
|
|
91
|
+
label?: LabelExtensionProps;
|
|
92
|
+
control?: ControlStateProps;
|
|
93
|
+
}
|
|
94
|
+
export declare const Pump: import("react").FC<PumpProps & {
|
|
95
|
+
symbolKey: string;
|
|
96
|
+
position: xy.XY;
|
|
97
|
+
selected: boolean;
|
|
98
|
+
onChange: (value: PumpProps) => void;
|
|
99
|
+
} & {
|
|
100
|
+
aetherKey?: string | undefined;
|
|
101
|
+
}>;
|
|
102
|
+
export declare const PumpPreview: (props: PumpProps) => ReactElement;
|
|
103
|
+
export interface TankProps extends Primitives.TankProps {
|
|
104
|
+
label?: LabelExtensionProps;
|
|
105
|
+
}
|
|
106
|
+
export declare const Tank: import("react").FC<TankProps & {
|
|
107
|
+
symbolKey: string;
|
|
108
|
+
position: xy.XY;
|
|
109
|
+
selected: boolean;
|
|
110
|
+
onChange: (value: TankProps) => void;
|
|
111
|
+
} & {
|
|
112
|
+
aetherKey?: string | undefined;
|
|
113
|
+
}>;
|
|
114
|
+
export declare const TankPreview: (props: TankProps) => ReactElement;
|
|
115
|
+
export interface ReliefValveProps extends Primitives.ReliefValveProps {
|
|
116
|
+
label?: LabelExtensionProps;
|
|
117
|
+
}
|
|
118
|
+
export declare const ReliefValve: ({ label, onChange, orientation, color, }: SymbolProps<ReliefValveProps>) => ReactElement;
|
|
119
|
+
export declare const ReliefValvePreview: (props: ReliefValveProps) => ReactElement;
|
|
120
|
+
export interface RegulatorProps extends Primitives.RegulatorProps {
|
|
121
|
+
label?: LabelExtensionProps;
|
|
122
|
+
}
|
|
123
|
+
export declare const Regulator: ({ label, onChange, orientation, color, }: SymbolProps<RegulatorProps>) => ReactElement;
|
|
124
|
+
export declare const RegulatorPreview: (props: RegulatorProps) => ReactElement;
|
|
125
|
+
export interface BurstDiscProps extends Primitives.BurstDiscProps {
|
|
126
|
+
label?: LabelExtensionProps;
|
|
127
|
+
}
|
|
128
|
+
export declare const BurstDisc: ({ label, onChange, orientation, color, }: SymbolProps<BurstDiscProps>) => ReactElement;
|
|
129
|
+
export declare const BurstDiscPreview: (props: BurstDiscProps) => ReactElement;
|
|
130
|
+
export interface CapProps extends Primitives.CapProps {
|
|
131
|
+
label?: LabelExtensionProps;
|
|
132
|
+
}
|
|
133
|
+
export declare const Cap: ({ label, onChange, orientation, color, }: SymbolProps<CapProps>) => ReactElement;
|
|
134
|
+
export declare const CapPreview: (props: CapProps) => ReactElement;
|
|
135
|
+
export interface ManualValveProps extends Primitives.ManualValveProps {
|
|
136
|
+
label?: LabelExtensionProps;
|
|
137
|
+
}
|
|
138
|
+
export declare const ManualValve: ({ label, onChange, orientation, color, }: SymbolProps<ManualValveProps>) => ReactElement;
|
|
139
|
+
export declare const ManualValvePreview: (props: ManualValveProps) => ReactElement;
|
|
140
|
+
export interface FilterProps extends Primitives.FilterProps {
|
|
141
|
+
label?: LabelExtensionProps;
|
|
142
|
+
}
|
|
143
|
+
export declare const Filter: ({ label, onChange, orientation, color, }: SymbolProps<FilterProps>) => ReactElement;
|
|
144
|
+
export declare const FilterPreview: (props: FilterProps) => ReactElement;
|
|
145
|
+
export interface NeedleValveProps extends Primitives.NeedleValveProps {
|
|
146
|
+
label?: LabelExtensionProps;
|
|
147
|
+
}
|
|
148
|
+
export declare const NeedleValve: ({ label, onChange, orientation, color, }: SymbolProps<NeedleValveProps>) => ReactElement;
|
|
149
|
+
export declare const NeedleValvePreview: (props: NeedleValveProps) => ReactElement;
|
|
150
|
+
export interface CheckValveProps extends Primitives.CheckValveProps {
|
|
151
|
+
label?: LabelExtensionProps;
|
|
152
|
+
}
|
|
153
|
+
export declare const CheckValve: ({ label, onChange, orientation, color, }: SymbolProps<CheckValveProps>) => ReactElement;
|
|
154
|
+
export declare const CheckValvePreview: (props: CheckValveProps) => ReactElement;
|
|
155
|
+
export interface OrificeProps extends Primitives.OrificeProps {
|
|
156
|
+
label?: LabelExtensionProps;
|
|
157
|
+
}
|
|
158
|
+
export declare const Orifice: ({ label, onChange, orientation, color, }: SymbolProps<OrificeProps>) => ReactElement;
|
|
159
|
+
export declare const OrificePreview: (props: OrificeProps) => ReactElement;
|
|
160
|
+
export interface AngledReliefValveProps extends Primitives.AngledReliefValveProps {
|
|
161
|
+
label?: LabelExtensionProps;
|
|
162
|
+
}
|
|
163
|
+
export declare const AngledReliefValve: ({ label, onChange, orientation, color, }: SymbolProps<AngledReliefValveProps>) => ReactElement;
|
|
164
|
+
export declare const AngledReliefValvePreview: (props: Primitives.AngledReliefValveProps) => ReactElement;
|
|
165
|
+
export interface ValueProps extends Omit<CoreValue.UseProps, "box" | "aetherKey">, Primitives.ValueProps {
|
|
166
|
+
position?: xy.XY;
|
|
167
|
+
label?: LabelExtensionProps;
|
|
168
|
+
color?: Color.Crude;
|
|
169
|
+
textColor?: Color.Crude;
|
|
170
|
+
}
|
|
171
|
+
export declare const Value: import("react").FC<ValueProps & {
|
|
172
|
+
symbolKey: string;
|
|
173
|
+
position: xy.XY;
|
|
174
|
+
selected: boolean;
|
|
175
|
+
onChange: (value: ValueProps) => void;
|
|
176
|
+
} & {
|
|
177
|
+
aetherKey?: string | undefined;
|
|
178
|
+
}>;
|
|
179
|
+
export declare const ValuePreview: ({ color }: ValueProps) => ReactElement;
|
|
180
|
+
export interface SwitchProps extends Primitives.SwitchProps, Omit<Toggle.UseProps, "aetherKey"> {
|
|
181
|
+
label?: LabelExtensionProps;
|
|
182
|
+
control?: ControlStateProps;
|
|
183
|
+
}
|
|
184
|
+
export declare const Switch: import("react").FC<SwitchProps & {
|
|
185
|
+
symbolKey: string;
|
|
186
|
+
position: xy.XY;
|
|
187
|
+
selected: boolean;
|
|
188
|
+
onChange: (value: SwitchProps) => void;
|
|
189
|
+
} & {
|
|
190
|
+
aetherKey?: string | undefined;
|
|
191
|
+
}>;
|
|
192
|
+
export declare const SwitchPreview: (props: SwitchProps) => ReactElement;
|
|
193
|
+
export interface ButtonProps extends Omit<Primitives.ButtonProps, "label">, Omit<CoreButton.UseProps, "aetherKey"> {
|
|
194
|
+
label?: LabelExtensionProps;
|
|
195
|
+
control?: ControlStateProps;
|
|
196
|
+
}
|
|
197
|
+
export declare const Button: import("react").FC<ButtonProps & {
|
|
198
|
+
symbolKey: string;
|
|
199
|
+
position: xy.XY;
|
|
200
|
+
selected: boolean;
|
|
201
|
+
onChange: (value: ButtonProps) => void;
|
|
202
|
+
} & {
|
|
203
|
+
aetherKey?: string | undefined;
|
|
204
|
+
}>;
|
|
205
|
+
export declare const ButtonPreview: ({ label: _, ...props }: SwitchProps) => ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as PID from '../../vis/pid/registry';
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactElement, type PropsWithChildren } from "react";
|
|
2
|
+
import { dimensions, type location, direction, xy } from "@synnaxlabs/x";
|
|
3
|
+
import { Color } from '../../../color';
|
|
4
|
+
export interface OrientableProps {
|
|
5
|
+
orientation?: location.Outer;
|
|
6
|
+
}
|
|
7
|
+
export interface SVGBasedPrimitiveProps extends OrientableProps {
|
|
8
|
+
color?: Color.Crude;
|
|
9
|
+
scale?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface DivProps extends Omit<ComponentPropsWithoutRef<"div">, "color">, OrientableProps {
|
|
12
|
+
}
|
|
13
|
+
interface ToggleProps extends Omit<ComponentPropsWithoutRef<"button">, "color" | "value"> {
|
|
14
|
+
triggered?: boolean;
|
|
15
|
+
enabled?: boolean;
|
|
16
|
+
color?: Color.Crude;
|
|
17
|
+
}
|
|
18
|
+
export interface SmartHandlesProps extends PropsWithChildren<{}>, OrientableProps {
|
|
19
|
+
}
|
|
20
|
+
export interface InternalSVGProps extends SVGBasedPrimitiveProps, Omit<ComponentPropsWithoutRef<"svg">, "direction" | "color" | "orientation"> {
|
|
21
|
+
dimensions: dimensions.Dimensions;
|
|
22
|
+
color?: Color.Crude;
|
|
23
|
+
scale?: number;
|
|
24
|
+
}
|
|
25
|
+
export interface FourWayValveProps extends ToggleProps, SVGBasedPrimitiveProps {
|
|
26
|
+
}
|
|
27
|
+
export declare const FourWayValve: ({ className, orientation, scale, color, ...props }: FourWayValveProps) => ReactElement;
|
|
28
|
+
export interface ThreeWayValveProps extends ToggleProps, SVGBasedPrimitiveProps {
|
|
29
|
+
}
|
|
30
|
+
export declare const ThreeWayValve: ({ color, orientation, scale, ...props }: ThreeWayValveProps) => ReactElement;
|
|
31
|
+
export interface ValveProps extends ToggleProps, SVGBasedPrimitiveProps {
|
|
32
|
+
}
|
|
33
|
+
export declare const Valve: ({ orientation, color, scale, ...props }: ValveProps) => ReactElement;
|
|
34
|
+
export interface SolenoidValveProps extends ToggleProps, SVGBasedPrimitiveProps {
|
|
35
|
+
normallyOpen?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export declare const SolenoidValve: ({ className, color, orientation, normallyOpen, scale, ...props }: SolenoidValveProps) => ReactElement;
|
|
38
|
+
export interface ReliefValveProps extends DivProps, SVGBasedPrimitiveProps {
|
|
39
|
+
}
|
|
40
|
+
export declare const ReliefValve: ({ className, orientation, color, scale, ...props }: ReliefValveProps) => ReactElement;
|
|
41
|
+
export interface CheckValveProps extends DivProps, SVGBasedPrimitiveProps {
|
|
42
|
+
}
|
|
43
|
+
export declare const CheckValve: ({ className, orientation, color, scale, ...props }: CheckValveProps) => ReactElement;
|
|
44
|
+
export interface AngledValveProps extends ToggleProps, SVGBasedPrimitiveProps {
|
|
45
|
+
}
|
|
46
|
+
export declare const AngledValve: ({ color, className, orientation, scale, ...props }: AngledValveProps) => ReactElement;
|
|
47
|
+
export declare const Tag: () => ReactElement;
|
|
48
|
+
export interface ReduceFittingProps extends DivProps, SVGBasedPrimitiveProps {
|
|
49
|
+
}
|
|
50
|
+
export declare const ReduceFitting: ({ className, orientation, color, scale, ...props }: ReduceFittingProps) => ReactElement;
|
|
51
|
+
export interface PumpProps extends ToggleProps, SVGBasedPrimitiveProps {
|
|
52
|
+
}
|
|
53
|
+
export declare const Pump: ({ color, className, orientation, scale, ...props }: PumpProps) => ReactElement;
|
|
54
|
+
export interface BurstDiscProps extends DivProps, SVGBasedPrimitiveProps {
|
|
55
|
+
}
|
|
56
|
+
export declare const BurstDisc: ({ className, color, orientation, scale, ...props }: BurstDiscProps) => ReactElement;
|
|
57
|
+
export interface CapProps extends SVGBasedPrimitiveProps, DivProps {
|
|
58
|
+
}
|
|
59
|
+
export declare const Cap: ({ className, orientation, color, scale, ...props }: CapProps) => ReactElement;
|
|
60
|
+
export interface ManualValveProps extends SVGBasedPrimitiveProps, DivProps {
|
|
61
|
+
}
|
|
62
|
+
export declare const ManualValve: ({ className, orientation, color, scale, ...props }: ManualValveProps) => ReactElement;
|
|
63
|
+
export interface FilterProps extends SVGBasedPrimitiveProps, DivProps {
|
|
64
|
+
}
|
|
65
|
+
export declare const Filter: ({ className, orientation, color, scale, ...props }: FilterProps) => ReactElement;
|
|
66
|
+
type DetailedBorderRadius = Record<location.CornerXYString, xy.XY>;
|
|
67
|
+
type BorderRadius = number | Record<direction.Direction, number> | Record<location.CornerXYString, number> | DetailedBorderRadius;
|
|
68
|
+
export interface TankProps extends DivProps {
|
|
69
|
+
dimensions?: dimensions.Dimensions;
|
|
70
|
+
borderRadius?: BorderRadius;
|
|
71
|
+
color?: Color.Crude;
|
|
72
|
+
}
|
|
73
|
+
export declare const Tank: ({ className, dimensions, borderRadius, color, ...props }: TankProps) => ReactElement;
|
|
74
|
+
export interface RegulatorProps extends DivProps, SVGBasedPrimitiveProps {
|
|
75
|
+
}
|
|
76
|
+
export declare const Regulator: ({ className, orientation, color, scale, ...props }: RegulatorProps) => ReactElement;
|
|
77
|
+
export interface OrificeProps extends DivProps, SVGBasedPrimitiveProps {
|
|
78
|
+
}
|
|
79
|
+
export declare const Orifice: ({ className, orientation, scale, color, ...props }: OrificeProps) => ReactElement;
|
|
80
|
+
export interface NeedleValveProps extends DivProps, SVGBasedPrimitiveProps {
|
|
81
|
+
}
|
|
82
|
+
export declare const NeedleValve: ({ className, orientation, color, scale, ...props }: NeedleValveProps) => ReactElement;
|
|
83
|
+
export interface AngledReliefValveProps extends DivProps, SVGBasedPrimitiveProps {
|
|
84
|
+
}
|
|
85
|
+
export declare const AngledReliefValve: ({ className, orientation, color, scale, ...props }: AngledReliefValveProps) => ReactElement;
|
|
86
|
+
export interface ValueProps extends DivProps {
|
|
87
|
+
dimensions?: dimensions.Dimensions;
|
|
88
|
+
color?: Color.Crude;
|
|
89
|
+
}
|
|
90
|
+
export declare const Value: ({ className, color, dimensions, orientation, ...props }: ValueProps) => ReactElement;
|
|
91
|
+
export interface SwitchProps extends ToggleProps, DivProps {
|
|
92
|
+
}
|
|
93
|
+
export declare const Switch: ({ triggered, enabled, color, onClick, orientation, ...props }: SwitchProps) => ReactElement;
|
|
94
|
+
export interface ButtonProps extends DivProps {
|
|
95
|
+
label?: string;
|
|
96
|
+
}
|
|
97
|
+
export declare const Button: ({ onClick, orientation, label, }: ButtonProps) => ReactElement;
|
|
98
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Primitives from '../../../vis/pid/primitives/Primitives';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type FC } from "react";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { type Theming } from '../../theming';
|
|
4
|
+
import { type SymbolFormProps } from '../../vis/pid/Forms';
|
|
5
|
+
import { type SymbolProps } from '../../vis/pid/Symbols';
|
|
6
|
+
export interface Spec<P extends object> {
|
|
7
|
+
name: string;
|
|
8
|
+
variant: string;
|
|
9
|
+
Form: FC<SymbolFormProps<P>>;
|
|
10
|
+
Symbol: FC<SymbolProps<P>>;
|
|
11
|
+
defaultProps: (t: Theming.Theme) => P;
|
|
12
|
+
Preview: FC<SymbolProps<P>>;
|
|
13
|
+
}
|
|
14
|
+
declare const typeZ: z.ZodEnum<["threeWayValve", "valve", "solenoidValve", "fourWayValve", "angledValve", "pump", "tank", "reliefValve", "regulator", "burstDisc", "cap", "manualValve", "filter", "needleValve", "checkValve", "orifice", "angledReliefValve", "value", "button", "switch"]>;
|
|
15
|
+
export type Variant = z.infer<typeof typeZ>;
|
|
16
|
+
export declare const SYMBOLS: Record<Variant, Spec<any>>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type Destructor, xy } from "@synnaxlabs/x";
|
|
2
|
+
import { type color } from '../../color/core';
|
|
3
|
+
import { type Context } from '../../vis/render/context';
|
|
4
|
+
/**
|
|
5
|
+
* A general purpose compiler and utility container for workign with WebGL programs.
|
|
6
|
+
*/
|
|
7
|
+
export declare class GLProgram {
|
|
8
|
+
/** The render context used by this program. */
|
|
9
|
+
readonly ctx: Context;
|
|
10
|
+
/** The underlying webgl program. */
|
|
11
|
+
readonly prog: WebGLProgram;
|
|
12
|
+
/** The code for the vertex shader. */
|
|
13
|
+
private readonly vertShader;
|
|
14
|
+
/** The code for the fragment shader. */
|
|
15
|
+
private readonly fragShader;
|
|
16
|
+
/**
|
|
17
|
+
* @constructor compiles the given vertex and fragment shaders under the given
|
|
18
|
+
* render context into a program.
|
|
19
|
+
*
|
|
20
|
+
* @param ctx - The render context to use.
|
|
21
|
+
* @param vertShader - The vertex shader code.
|
|
22
|
+
* @param fragShader - The fragment shader code.
|
|
23
|
+
*/
|
|
24
|
+
constructor(ctx: Context, vertShader: string, fragShader: string);
|
|
25
|
+
/** Sets the current program as the active program used by the context. */
|
|
26
|
+
setAsActive(): Destructor;
|
|
27
|
+
/**
|
|
28
|
+
* Sets a uniform XY coordinate value.
|
|
29
|
+
*
|
|
30
|
+
* @param name - The name of the uniform.
|
|
31
|
+
* @param value - The value to set.
|
|
32
|
+
*/
|
|
33
|
+
uniformXY(name: string, value: xy.Crude): void;
|
|
34
|
+
/**
|
|
35
|
+
* Sets a uniform color value.
|
|
36
|
+
*
|
|
37
|
+
* @param name - The name of the uniform.
|
|
38
|
+
* @param value - The value to set.
|
|
39
|
+
*/
|
|
40
|
+
uniformColor(name: string, value: color.Color): void;
|
|
41
|
+
private getUniformLoc;
|
|
42
|
+
private compile;
|
|
43
|
+
private compileShader;
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as clear from '../../../vis/render/clear/program';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Context } from '../../../vis/render/context';
|
|
2
|
+
import { GLProgram } from '../../../vis/render/GLProgram';
|
|
3
|
+
/**
|
|
4
|
+
* You may be wondering, why does this program that draws a colorless, zero-footprint
|
|
5
|
+
* triangle exist? It turns out that the WeBGL implementation on windows doesn't actually
|
|
6
|
+
* clear a scissored region of the screen when you call `gl.clear`, you actually need
|
|
7
|
+
* to make a draw call to replace what's currently in the framebuffer. This is a
|
|
8
|
+
* workaround that does exactly that.
|
|
9
|
+
*/
|
|
10
|
+
export declare class Program extends GLProgram {
|
|
11
|
+
private readonly positionBuffer;
|
|
12
|
+
constructor(ctx: Context);
|
|
13
|
+
exec(): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { type Destructor, box, scale, xy, type runtime } from "@synnaxlabs/x";
|
|
2
|
+
import { type aether } from '../../aether/aether';
|
|
3
|
+
import { SugaredOffscreenCanvasRenderingContext2D } from '../../vis/draw2d/canvas';
|
|
4
|
+
import { Loop } from '../../vis/render/loop';
|
|
5
|
+
export type CanvasVariant = "upper2d" | "lower2d" | "gl";
|
|
6
|
+
/**
|
|
7
|
+
* A hybrid rendering context containing both 2D and WebGL canvases and contexts.
|
|
8
|
+
* Implements several utility methods for correctly scaling the canvas, restricting
|
|
9
|
+
* drawing to a region, and erasing portions of the canvas.
|
|
10
|
+
*/
|
|
11
|
+
export declare class Context {
|
|
12
|
+
readonly glCanvas: OffscreenCanvas;
|
|
13
|
+
/** The canvas element used by the 2D canvas. */
|
|
14
|
+
readonly upper2dCanvas: OffscreenCanvas;
|
|
15
|
+
/** The canvas element used by the 2D canvas. */
|
|
16
|
+
readonly lower2dCanvas: OffscreenCanvas;
|
|
17
|
+
/** The WebGL rendering context. */
|
|
18
|
+
readonly gl: WebGL2RenderingContext;
|
|
19
|
+
/** A 2D canvas that sits below the WebGL canvas. */
|
|
20
|
+
lower2d: SugaredOffscreenCanvasRenderingContext2D;
|
|
21
|
+
/** A 2D canvas that sits above the WebGL canvas. */
|
|
22
|
+
upper2d: SugaredOffscreenCanvasRenderingContext2D;
|
|
23
|
+
/** The region the canvas occupies in pixel space */
|
|
24
|
+
region: box.Box;
|
|
25
|
+
/** The device pixel ratio of the canvas */
|
|
26
|
+
dpr: number;
|
|
27
|
+
/** queue render transitions onto the stack */
|
|
28
|
+
readonly loop: Loop;
|
|
29
|
+
/** See the @link{clear.Program} for why this is necessary. */
|
|
30
|
+
private readonly clearProgram?;
|
|
31
|
+
private readonly os;
|
|
32
|
+
private static readonly CONTEXT_KEY;
|
|
33
|
+
static create(ctx: aether.Context, glCanvas: OffscreenCanvas, lower2dCanvas: OffscreenCanvas, upper2dCanvas: OffscreenCanvas, os: runtime.OS): Context;
|
|
34
|
+
private constructor();
|
|
35
|
+
static useOptional(ctx: aether.Context): Context | null;
|
|
36
|
+
static use(ctx: aether.Context): Context;
|
|
37
|
+
update(ctx: aether.Context): void;
|
|
38
|
+
/**
|
|
39
|
+
* Resizes the canvas to the given region and device pixel ratio. Ensuring
|
|
40
|
+
* that all drawing operations and viewports are scaled correctly.
|
|
41
|
+
*/
|
|
42
|
+
resize(region: box.Box, dpr: number): void;
|
|
43
|
+
private resizeCanvas;
|
|
44
|
+
/** @returns the aspect ratio of the canvas. */
|
|
45
|
+
get aspect(): number;
|
|
46
|
+
/**
|
|
47
|
+
* Takes the given box in PIXEL space and produces a transform
|
|
48
|
+
* in CLIP space representing the sub-region represented by the box
|
|
49
|
+
* in the canvas.
|
|
50
|
+
*/
|
|
51
|
+
scaleRegion(b: box.Box): scale.XY;
|
|
52
|
+
scissor(region: box.Box, overscan: {
|
|
53
|
+
x: number;
|
|
54
|
+
y: number;
|
|
55
|
+
} | undefined, canvases: CanvasVariant[]): Destructor;
|
|
56
|
+
private scissorCanvas;
|
|
57
|
+
private scissorGL;
|
|
58
|
+
erase(region: box.Box, overscan?: xy.Crude, ...canvases: CanvasVariant[]): void;
|
|
59
|
+
private eraseGL;
|
|
60
|
+
private eraseCanvas;
|
|
61
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type aether } from '../../aether/aether';
|
|
2
|
+
export type RequestF = (reason: string) => void;
|
|
3
|
+
export declare const REASON_LAYOUT = "layout";
|
|
4
|
+
export declare const REASON_DATA = "data";
|
|
5
|
+
export declare const REASON_TOOL = "tool";
|
|
6
|
+
export declare class Controller {
|
|
7
|
+
f: RequestF;
|
|
8
|
+
static readonly CONTEXT_KEY = "pluto-vis-renderer";
|
|
9
|
+
private constructor();
|
|
10
|
+
static control(ctx: aether.Context, f: RequestF): void;
|
|
11
|
+
static useRequest(ctx: aether.Context): RequestF;
|
|
12
|
+
static useOptionalRequest(ctx: aether.Context): RequestF | null;
|
|
13
|
+
static requestRender(ctx: aether.Context, reason: string): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { box, type xy } from "@synnaxlabs/x";
|
|
2
|
+
import { type CanvasVariant, type Context } from '../../vis/render/context';
|
|
3
|
+
export declare class Eraser {
|
|
4
|
+
prevErase: {
|
|
5
|
+
one: {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
};
|
|
9
|
+
two: {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
};
|
|
13
|
+
root: {
|
|
14
|
+
x: "left" | "right";
|
|
15
|
+
y: "bottom" | "top";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
erase(ctx: Context, next: box.Box, prev: box.Box, overscan: xy.Crude, canvases: CanvasVariant[]): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as render from '../../vis/render/external';
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { type CanvasVariant } from '../../vis/render/context';
|
|
2
|
+
/**
|
|
3
|
+
* An async function that executes the render in the loop. This function can return an
|
|
4
|
+
* optional cleanup that is executed before the next render. This cleanup function will
|
|
5
|
+
* be passed the signature of the previous render request.
|
|
6
|
+
*/
|
|
7
|
+
export type Func = () => Promise<Cleanup | undefined>;
|
|
8
|
+
/**
|
|
9
|
+
* A request to render a component in the aether visualization tree. Submit a complete
|
|
10
|
+
* version of this request to the {@link Loop} to render a component.
|
|
11
|
+
*/
|
|
12
|
+
export interface Request {
|
|
13
|
+
/**
|
|
14
|
+
* A key identifying the component requesting the render. This helps to prevent
|
|
15
|
+
* duplicate renders for the same component from being executed.
|
|
16
|
+
*/
|
|
17
|
+
key: string;
|
|
18
|
+
/**
|
|
19
|
+
* A priority ("high" or "low") for the render. High priority renders that have
|
|
20
|
+
* an equal or greater number of canvases will replace low priority renders already
|
|
21
|
+
* requested.
|
|
22
|
+
*/
|
|
23
|
+
priority: Priority;
|
|
24
|
+
/**
|
|
25
|
+
* A list of canvases that the component is requesting to render to. This provides
|
|
26
|
+
* information to cleanup functions about which canvases to clear. The component should
|
|
27
|
+
* ONLY render to these canvases, otherwise the cleanup function may unnecessarily
|
|
28
|
+
* clear canvases that should persist.
|
|
29
|
+
*/
|
|
30
|
+
canvases: CanvasVariant[];
|
|
31
|
+
/**
|
|
32
|
+
* An async function that performs the render. This function can return an optional
|
|
33
|
+
* cleanup that is executed before the next render. This cleanup function will be
|
|
34
|
+
* passed the signature of the previous render request.
|
|
35
|
+
*/
|
|
36
|
+
render: Func;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* A cleanup function that receives the request from the previous render. Cleanup
|
|
40
|
+
* functions should clear canvases and other resources that need to be freed from
|
|
41
|
+
* the previous render.
|
|
42
|
+
*/
|
|
43
|
+
export type Cleanup = (req: Request) => void;
|
|
44
|
+
export type Priority = "high" | "low";
|
|
45
|
+
/**
|
|
46
|
+
* Implements the core rendering loop for Synnax's aether components, accepting requests
|
|
47
|
+
* into a queue and rendering them in sync with the browser animation frame.
|
|
48
|
+
*/
|
|
49
|
+
export declare class Loop {
|
|
50
|
+
/** Protect concurrent access on the requests map. */
|
|
51
|
+
private readonly mutex;
|
|
52
|
+
/** Stores the current requests for rendering. */
|
|
53
|
+
private readonly requests;
|
|
54
|
+
/** Stores render cleanup functions for clearing canvases and other resources. */
|
|
55
|
+
private readonly cleanup;
|
|
56
|
+
constructor();
|
|
57
|
+
/**
|
|
58
|
+
* Sets a new request in the queue according to a set of rules:
|
|
59
|
+
*
|
|
60
|
+
* 1. If no request with the same key exists, add the request to the queue.
|
|
61
|
+
* 2. If a request with the same key exists, replace it if the new request has a
|
|
62
|
+
* greater or equal priority and a greater or equal number of canvases that are
|
|
63
|
+
* being rendered to.
|
|
64
|
+
*
|
|
65
|
+
* @param req - The request to set.
|
|
66
|
+
*/
|
|
67
|
+
set(req: Request): Promise<void>;
|
|
68
|
+
/** Execute the render. */
|
|
69
|
+
private render;
|
|
70
|
+
/** Starts the rendering loop. */
|
|
71
|
+
private start;
|
|
72
|
+
private sleep;
|
|
73
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type z } from "zod";
|
|
3
|
+
import { rule } from '../../vis/rule/aether';
|
|
4
|
+
export interface RuleProps extends Omit<z.input<typeof rule.ruleStateZ>, "dragging" | "pixelPosition"> {
|
|
5
|
+
label?: string;
|
|
6
|
+
onLabelChange?: (label: string) => void;
|
|
7
|
+
units?: string;
|
|
8
|
+
onPositionChange?: (position: number) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const Rule: import("react").FC<RuleProps & {
|
|
11
|
+
aetherKey?: string | undefined;
|
|
12
|
+
}>;
|