@asymmetric-effort/specifyjs 0.2.98 → 0.2.100
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/specifyjs-build.cjs.js +160 -1
- package/dist/specifyjs-build.cjs.js.map +7 -1
- package/dist/specifyjs-build.d.ts +1 -110
- package/dist/specifyjs-build.esm.js +160 -1
- package/dist/specifyjs-build.esm.js.map +7 -1
- package/dist/specifyjs-client.cjs.js +2 -1
- package/dist/specifyjs-client.cjs.js.map +7 -1
- package/dist/specifyjs-client.d.ts +1 -159
- package/dist/specifyjs-client.esm.js +2 -1
- package/dist/specifyjs-client.esm.js.map +7 -1
- package/dist/specifyjs-components.cjs.js +8 -1
- package/dist/specifyjs-components.cjs.js.map +7 -1
- package/dist/specifyjs-components.d.ts +1 -3334
- package/dist/specifyjs-components.esm.js +8 -1
- package/dist/specifyjs-components.esm.js.map +7 -1
- package/dist/specifyjs-dom.cjs.js +2 -1
- package/dist/specifyjs-dom.cjs.js.map +7 -1
- package/dist/specifyjs-dom.d.ts +1 -107
- package/dist/specifyjs-dom.esm.js +2 -1
- package/dist/specifyjs-dom.esm.js.map +7 -1
- package/dist/specifyjs-jsx-dev-runtime.cjs.js +2 -1
- package/dist/specifyjs-jsx-dev-runtime.cjs.js.map +7 -1
- package/dist/specifyjs-jsx-dev-runtime.esm.js +2 -1
- package/dist/specifyjs-jsx-dev-runtime.esm.js.map +7 -1
- package/dist/specifyjs-jsx-runtime.cjs.js +2 -1
- package/dist/specifyjs-jsx-runtime.cjs.js.map +7 -1
- package/dist/specifyjs-jsx-runtime.esm.js +2 -1
- package/dist/specifyjs-jsx-runtime.esm.js.map +7 -1
- package/dist/specifyjs-server.cjs.js +2 -1
- package/dist/specifyjs-server.cjs.js.map +7 -1
- package/dist/specifyjs-server.d.ts +1 -136
- package/dist/specifyjs-server.esm.js +2 -1
- package/dist/specifyjs-server.esm.js.map +7 -1
- package/dist/specifyjs-telemetry.cjs.js +2 -1
- package/dist/specifyjs-telemetry.cjs.js.map +7 -1
- package/dist/specifyjs-telemetry.d.ts +1 -165
- package/dist/specifyjs-telemetry.esm.js +2 -1
- package/dist/specifyjs-telemetry.esm.js.map +7 -1
- package/dist/specifyjs.cjs.js +2 -1
- package/dist/specifyjs.cjs.js.map +7 -1
- package/dist/specifyjs.d.ts +1 -581
- package/dist/specifyjs.esm.js +2 -1
- package/dist/specifyjs.esm.js.map +7 -1
- package/dist/types/build/index.d.ts +5 -0
- package/dist/types/build/index.d.ts.map +1 -0
- package/dist/types/build/noscript-plugin.d.ts +63 -0
- package/dist/types/build/noscript-plugin.d.ts.map +1 -0
- package/dist/types/build/seo-plugin.d.ts +43 -0
- package/dist/types/build/seo-plugin.d.ts.map +1 -0
- package/dist/types/client/graphql.d.ts +64 -0
- package/dist/types/client/graphql.d.ts.map +1 -0
- package/dist/types/client/index.d.ts +4 -0
- package/dist/types/client/index.d.ts.map +1 -0
- package/dist/types/client/protobuf.d.ts +40 -0
- package/dist/types/client/protobuf.d.ts.map +1 -0
- package/dist/types/client/rest.d.ts +61 -0
- package/dist/types/client/rest.d.ts.map +1 -0
- package/dist/types/components/ad/adsense/src/AdSense.d.ts +19 -0
- package/dist/types/components/ad/adsense/src/index.d.ts +2 -0
- package/dist/types/components/analytics/google-analytics/src/GoogleAnalytics.d.ts +13 -0
- package/dist/types/components/analytics/google-analytics/src/index.d.ts +2 -0
- package/dist/types/components/component.d.ts +39 -0
- package/dist/types/components/component.d.ts.map +1 -0
- package/dist/types/components/data/analog-clock/src/AnalogClock.d.ts +17 -0
- package/dist/types/components/data/analog-clock/src/index.d.ts +2 -0
- package/dist/types/components/data/avatar/src/Avatar.d.ts +19 -0
- package/dist/types/components/data/avatar/src/index.d.ts +2 -0
- package/dist/types/components/data/badge/src/Badge.d.ts +17 -0
- package/dist/types/components/data/badge/src/index.d.ts +2 -0
- package/dist/types/components/data/data-grid/src/DataGrid.d.ts +47 -0
- package/dist/types/components/data/data-grid/src/index.d.ts +2 -0
- package/dist/types/components/data/digital-clock/src/DigitalClock.d.ts +15 -0
- package/dist/types/components/data/digital-clock/src/index.d.ts +2 -0
- package/dist/types/components/data/list-view/src/ListView.d.ts +23 -0
- package/dist/types/components/data/list-view/src/index.d.ts +2 -0
- package/dist/types/components/data/tag/src/Tag.d.ts +21 -0
- package/dist/types/components/data/tag/src/index.d.ts +2 -0
- package/dist/types/components/data/virtual-scroll/src/VirtualScroll.d.ts +13 -0
- package/dist/types/components/data/virtual-scroll/src/index.d.ts +2 -0
- package/dist/types/components/error-boundary.d.ts +23 -0
- package/dist/types/components/error-boundary.d.ts.map +1 -0
- package/dist/types/components/errors/_shared/src/HttpErrorPage.d.ts +15 -0
- package/dist/types/components/errors/_shared/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-400/src/Http400.d.ts +9 -0
- package/dist/types/components/errors/http-400/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-401/src/Http401.d.ts +9 -0
- package/dist/types/components/errors/http-401/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-403/src/Http403.d.ts +9 -0
- package/dist/types/components/errors/http-403/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-404/src/Http404.d.ts +9 -0
- package/dist/types/components/errors/http-404/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-405/src/Http405.d.ts +9 -0
- package/dist/types/components/errors/http-405/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-408/src/Http408.d.ts +9 -0
- package/dist/types/components/errors/http-408/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-429/src/Http429.d.ts +9 -0
- package/dist/types/components/errors/http-429/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-500/src/Http500.d.ts +9 -0
- package/dist/types/components/errors/http-500/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-502/src/Http502.d.ts +9 -0
- package/dist/types/components/errors/http-502/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-503/src/Http503.d.ts +9 -0
- package/dist/types/components/errors/http-503/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-504/src/Http504.d.ts +9 -0
- package/dist/types/components/errors/http-504/src/index.d.ts +2 -0
- package/dist/types/components/feedback/alert/src/Alert.d.ts +25 -0
- package/dist/types/components/feedback/alert/src/index.d.ts +2 -0
- package/dist/types/components/feedback/empty-state/src/EmptyState.d.ts +17 -0
- package/dist/types/components/feedback/empty-state/src/index.d.ts +2 -0
- package/dist/types/components/feedback/progress-bar/src/ProgressBar.d.ts +23 -0
- package/dist/types/components/feedback/progress-bar/src/index.d.ts +2 -0
- package/dist/types/components/feedback/skeleton/src/Skeleton.d.ts +15 -0
- package/dist/types/components/feedback/skeleton/src/index.d.ts +2 -0
- package/dist/types/components/feedback/spinner/src/Spinner.d.ts +13 -0
- package/dist/types/components/feedback/spinner/src/index.d.ts +2 -0
- package/dist/types/components/form/button/src/Button.d.ts +25 -0
- package/dist/types/components/form/button/src/index.d.ts +2 -0
- package/dist/types/components/form/checkbox/src/Checkbox.d.ts +19 -0
- package/dist/types/components/form/checkbox/src/index.d.ts +2 -0
- package/dist/types/components/form/color-picker/src/ColorPicker.d.ts +19 -0
- package/dist/types/components/form/color-picker/src/index.d.ts +2 -0
- package/dist/types/components/form/color-wheel/src/ColorWheel.d.ts +17 -0
- package/dist/types/components/form/color-wheel/src/index.d.ts +2 -0
- package/dist/types/components/form/datepicker/src/DatePicker.d.ts +23 -0
- package/dist/types/components/form/datepicker/src/index.d.ts +2 -0
- package/dist/types/components/form/file-upload/src/FileUpload.d.ts +19 -0
- package/dist/types/components/form/file-upload/src/index.d.ts +2 -0
- package/dist/types/components/form/multiline/src/MultilineField.d.ts +41 -0
- package/dist/types/components/form/multiline/src/index.d.ts +2 -0
- package/dist/types/components/form/number-spinner/src/NumberSpinner.d.ts +25 -0
- package/dist/types/components/form/number-spinner/src/index.d.ts +2 -0
- package/dist/types/components/form/radio/src/RadioGroup.d.ts +26 -0
- package/dist/types/components/form/radio/src/index.d.ts +2 -0
- package/dist/types/components/form/select/src/Select.d.ts +33 -0
- package/dist/types/components/form/select/src/index.d.ts +2 -0
- package/dist/types/components/form/slider/src/Slider.d.ts +33 -0
- package/dist/types/components/form/slider/src/index.d.ts +2 -0
- package/dist/types/components/form/texteditor/src/TextEditor.d.ts +46 -0
- package/dist/types/components/form/texteditor/src/index.d.ts +2 -0
- package/dist/types/components/form/textfield/src/TextField.d.ts +48 -0
- package/dist/types/components/form/textfield/src/index.d.ts +2 -0
- package/dist/types/components/form/timepicker/src/TimePicker.d.ts +29 -0
- package/dist/types/components/form/timepicker/src/index.d.ts +2 -0
- package/dist/types/components/form/toggle/src/Toggle.d.ts +19 -0
- package/dist/types/components/form/toggle/src/index.d.ts +2 -0
- package/dist/types/components/form/wrapper/src/FormFieldWrapper.d.ts +67 -0
- package/dist/types/components/form/wrapper/src/index.d.ts +2 -0
- package/dist/types/components/layout/card/src/Card.d.ts +31 -0
- package/dist/types/components/layout/card/src/index.d.ts +2 -0
- package/dist/types/components/layout/desktop-background/src/DesktopBackground.d.ts +23 -0
- package/dist/types/components/layout/desktop-background/src/index.d.ts +2 -0
- package/dist/types/components/layout/draggable-window/src/DraggableWindow.d.ts +59 -0
- package/dist/types/components/layout/draggable-window/src/index.d.ts +2 -0
- package/dist/types/components/layout/flex-container/src/FlexContainer.d.ts +42 -0
- package/dist/types/components/layout/flex-container/src/index.d.ts +2 -0
- package/dist/types/components/layout/footer/src/Footer.d.ts +25 -0
- package/dist/types/components/layout/footer/src/index.d.ts +2 -0
- package/dist/types/components/layout/grid/src/Grid.d.ts +54 -0
- package/dist/types/components/layout/grid/src/index.d.ts +2 -0
- package/dist/types/components/layout/panel/src/Panel.d.ts +23 -0
- package/dist/types/components/layout/panel/src/index.d.ts +2 -0
- package/dist/types/components/layout/scroll-container/src/ScrollContainer.d.ts +21 -0
- package/dist/types/components/layout/scroll-container/src/index.d.ts +2 -0
- package/dist/types/components/layout/splitter/src/Splitter.d.ts +19 -0
- package/dist/types/components/layout/splitter/src/index.d.ts +2 -0
- package/dist/types/components/layout/tabs/src/Tabs.d.ts +29 -0
- package/dist/types/components/layout/tabs/src/index.d.ts +2 -0
- package/dist/types/components/layout/window-manager/src/WindowManager.d.ts +106 -0
- package/dist/types/components/layout/window-manager/src/index.d.ts +2 -0
- package/dist/types/components/math/src/index.d.ts +5 -0
- package/dist/types/components/math/src/mat.d.ts +71 -0
- package/dist/types/components/math/src/mat4.d.ts +101 -0
- package/dist/types/components/math/src/quaternion.d.ts +62 -0
- package/dist/types/components/math/src/solver.d.ts +55 -0
- package/dist/types/components/math/src/vec.d.ts +54 -0
- package/dist/types/components/media/carousel/src/Carousel.d.ts +23 -0
- package/dist/types/components/media/carousel/src/index.d.ts +2 -0
- package/dist/types/components/media/image/src/Image.d.ts +23 -0
- package/dist/types/components/media/image/src/index.d.ts +2 -0
- package/dist/types/components/media/video-player/src/VideoPlayer.d.ts +27 -0
- package/dist/types/components/media/video-player/src/index.d.ts +2 -0
- package/dist/types/components/nav/accordion/src/Accordion.d.ts +52 -0
- package/dist/types/components/nav/accordion/src/index.d.ts +2 -0
- package/dist/types/components/nav/breadcrumb/src/Breadcrumb.d.ts +20 -0
- package/dist/types/components/nav/breadcrumb/src/index.d.ts +2 -0
- package/dist/types/components/nav/dock/src/Dock.d.ts +46 -0
- package/dist/types/components/nav/dock/src/index.d.ts +2 -0
- package/dist/types/components/nav/dropdown/src/Dropdown.d.ts +36 -0
- package/dist/types/components/nav/dropdown/src/index.d.ts +2 -0
- package/dist/types/components/nav/menubar/src/Menubar.d.ts +27 -0
- package/dist/types/components/nav/menubar/src/index.d.ts +2 -0
- package/dist/types/components/nav/pagination/src/Pagination.d.ts +19 -0
- package/dist/types/components/nav/pagination/src/index.d.ts +2 -0
- package/dist/types/components/nav/sidebar/src/Sidebar.d.ts +29 -0
- package/dist/types/components/nav/sidebar/src/index.d.ts +2 -0
- package/dist/types/components/nav/stepper/src/Stepper.d.ts +25 -0
- package/dist/types/components/nav/stepper/src/index.d.ts +2 -0
- package/dist/types/components/nav/system-tray/src/SystemTray.d.ts +47 -0
- package/dist/types/components/nav/system-tray/src/index.d.ts +2 -0
- package/dist/types/components/nav/toolbar/src/Toolbar.d.ts +27 -0
- package/dist/types/components/nav/toolbar/src/index.d.ts +2 -0
- package/dist/types/components/nav/treenav/src/TreeNav.d.ts +34 -0
- package/dist/types/components/nav/treenav/src/TreeNode.d.ts +74 -0
- package/dist/types/components/nav/treenav/src/index.d.ts +4 -0
- package/dist/types/components/nav/wrapper/src/NavWrapper.d.ts +73 -0
- package/dist/types/components/nav/wrapper/src/index.d.ts +2 -0
- package/dist/types/components/overlay/context-menu/src/ContextMenu.d.ts +21 -0
- package/dist/types/components/overlay/context-menu/src/index.d.ts +2 -0
- package/dist/types/components/overlay/drawer/src/Drawer.d.ts +22 -0
- package/dist/types/components/overlay/drawer/src/index.d.ts +2 -0
- package/dist/types/components/overlay/modal/src/Modal.d.ts +22 -0
- package/dist/types/components/overlay/modal/src/index.d.ts +2 -0
- package/dist/types/components/overlay/popover/src/Popover.d.ts +20 -0
- package/dist/types/components/overlay/popover/src/index.d.ts +2 -0
- package/dist/types/components/overlay/toast/src/Toast.d.ts +59 -0
- package/dist/types/components/overlay/toast/src/index.d.ts +2 -0
- package/dist/types/components/overlay/tooltip/src/Tooltip.d.ts +14 -0
- package/dist/types/components/overlay/tooltip/src/index.d.ts +2 -0
- package/dist/types/components/page/ide/src/IDE.d.ts +5 -0
- package/dist/types/components/page/ide/src/index.d.ts +2 -0
- package/dist/types/components/page/trading-dashboard/src/TradingDashboard.d.ts +5 -0
- package/dist/types/components/page/trading-dashboard/src/index.d.ts +2 -0
- package/dist/types/components/page/unity-desktop/src/UnityApp.d.ts +30 -0
- package/dist/types/components/page/unity-desktop/src/UnityDesktop.d.ts +30 -0
- package/dist/types/components/page/unity-desktop/src/index.d.ts +4 -0
- package/dist/types/components/page/word-processor/src/WordProcessor.d.ts +7 -0
- package/dist/types/components/page/word-processor/src/index.d.ts +2 -0
- package/dist/types/components/profiler.d.ts +6 -0
- package/dist/types/components/profiler.d.ts.map +1 -0
- package/dist/types/components/strict-mode.d.ts +6 -0
- package/dist/types/components/strict-mode.d.ts.map +1 -0
- package/dist/types/components/suspense.d.ts +6 -0
- package/dist/types/components/suspense.d.ts.map +1 -0
- package/dist/types/components/viz/2D-bar-graph/src/BarGraph.d.ts +61 -0
- package/dist/types/components/viz/2D-bar-graph/src/index.d.ts +2 -0
- package/dist/types/components/viz/2D-cartesian-raw/src/CartesianGraph2D.d.ts +40 -0
- package/dist/types/components/viz/2D-cartesian-raw/src/index.d.ts +2 -0
- package/dist/types/components/viz/2D-complex-graph/src/ComplexGraph2D.d.ts +33 -0
- package/dist/types/components/viz/2D-complex-graph/src/index.d.ts +2 -0
- package/dist/types/components/viz/2D-discrete-cartesian/src/DiscreteCartesian2D.d.ts +31 -0
- package/dist/types/components/viz/2D-discrete-cartesian/src/index.d.ts +2 -0
- package/dist/types/components/viz/2D-line-graph/src/LineGraph.d.ts +53 -0
- package/dist/types/components/viz/2D-line-graph/src/index.d.ts +2 -0
- package/dist/types/components/viz/2D-pie-graph/src/PieGraph.d.ts +49 -0
- package/dist/types/components/viz/2D-pie-graph/src/index.d.ts +3 -0
- package/dist/types/components/viz/2D-polar-graph/src/PolarGraph2D.d.ts +35 -0
- package/dist/types/components/viz/2D-polar-graph/src/index.d.ts +2 -0
- package/dist/types/components/viz/3d-layers/src/ThreeDLayers.d.ts +35 -0
- package/dist/types/components/viz/3d-layers/src/index.d.ts +2 -0
- package/dist/types/components/viz/3dSpace/src/Space3D.d.ts +63 -0
- package/dist/types/components/viz/3dSpace/src/animation.d.ts +75 -0
- package/dist/types/components/viz/3dSpace/src/bounds.d.ts +36 -0
- package/dist/types/components/viz/3dSpace/src/camera-controller.d.ts +59 -0
- package/dist/types/components/viz/3dSpace/src/camera.d.ts +43 -0
- package/dist/types/components/viz/3dSpace/src/collision.d.ts +54 -0
- package/dist/types/components/viz/3dSpace/src/cpu-pipeline.d.ts +47 -0
- package/dist/types/components/viz/3dSpace/src/index.d.ts +32 -0
- package/dist/types/components/viz/3dSpace/src/light.d.ts +23 -0
- package/dist/types/components/viz/3dSpace/src/lighting-model.d.ts +34 -0
- package/dist/types/components/viz/3dSpace/src/material.d.ts +12 -0
- package/dist/types/components/viz/3dSpace/src/mesh.d.ts +35 -0
- package/dist/types/components/viz/3dSpace/src/picking.d.ts +51 -0
- package/dist/types/components/viz/3dSpace/src/render-pipeline.d.ts +12 -0
- package/dist/types/components/viz/3dSpace/src/scene-graph.d.ts +20 -0
- package/dist/types/components/viz/3dSpace/src/scene-object.d.ts +31 -0
- package/dist/types/components/viz/3dSpace/src/terrain.d.ts +34 -0
- package/dist/types/components/viz/3dSpace/src/texture.d.ts +22 -0
- package/dist/types/components/viz/3dSpace/src/types.d.ts +42 -0
- package/dist/types/components/viz/3dSpace/src/viewport.d.ts +19 -0
- package/dist/types/components/viz/3dSpace/src/webgl-pipeline.d.ts +54 -0
- package/dist/types/components/viz/big-number/src/BigNumber.d.ts +29 -0
- package/dist/types/components/viz/big-number/src/index.d.ts +2 -0
- package/dist/types/components/viz/bloch-sphere/src/BlochSphere.d.ts +73 -0
- package/dist/types/components/viz/bloch-sphere/src/index.d.ts +2 -0
- package/dist/types/components/viz/box-plot/src/BoxPlot.d.ts +47 -0
- package/dist/types/components/viz/box-plot/src/index.d.ts +2 -0
- package/dist/types/components/viz/bubble-chart/src/BubbleChart.d.ts +38 -0
- package/dist/types/components/viz/bubble-chart/src/index.d.ts +2 -0
- package/dist/types/components/viz/calendar-heat-map/src/CalendarHeatMap.d.ts +29 -0
- package/dist/types/components/viz/calendar-heat-map/src/index.d.ts +2 -0
- package/dist/types/components/viz/chord/src/ChordDiagram.d.ts +25 -0
- package/dist/types/components/viz/chord/src/index.d.ts +2 -0
- package/dist/types/components/viz/decomposition-tree/src/DecompositionTree.d.ts +33 -0
- package/dist/types/components/viz/decomposition-tree/src/index.d.ts +2 -0
- package/dist/types/components/viz/earth-globe/src/EarthGlobe.d.ts +62 -0
- package/dist/types/components/viz/earth-globe/src/globe-data.d.ts +23 -0
- package/dist/types/components/viz/earth-globe/src/index.d.ts +5 -0
- package/dist/types/components/viz/force-graph/src/ForceGraph.d.ts +99 -0
- package/dist/types/components/viz/force-graph/src/index.d.ts +2 -0
- package/dist/types/components/viz/funnel/src/FunnelChart.d.ts +28 -0
- package/dist/types/components/viz/funnel/src/index.d.ts +2 -0
- package/dist/types/components/viz/gantt-chart/src/GanttChart.d.ts +33 -0
- package/dist/types/components/viz/gantt-chart/src/index.d.ts +2 -0
- package/dist/types/components/viz/gauge/src/Gauge.d.ts +37 -0
- package/dist/types/components/viz/gauge/src/index.d.ts +2 -0
- package/dist/types/components/viz/graph/src/HypercubeGraph.d.ts +43 -0
- package/dist/types/components/viz/graph/src/hypercube.d.ts +78 -0
- package/dist/types/components/viz/graph/src/index.d.ts +4 -0
- package/dist/types/components/viz/heat-map/src/HeatMap.d.ts +29 -0
- package/dist/types/components/viz/heat-map/src/index.d.ts +2 -0
- package/dist/types/components/viz/histogram/src/Histogram.d.ts +27 -0
- package/dist/types/components/viz/histogram/src/index.d.ts +2 -0
- package/dist/types/components/viz/lollipop/src/LollipopChart.d.ts +32 -0
- package/dist/types/components/viz/lollipop/src/index.d.ts +2 -0
- package/dist/types/components/viz/matrix/src/Matrix.d.ts +29 -0
- package/dist/types/components/viz/matrix/src/index.d.ts +2 -0
- package/dist/types/components/viz/partition/src/Partition.d.ts +31 -0
- package/dist/types/components/viz/partition/src/index.d.ts +2 -0
- package/dist/types/components/viz/pivot-table/src/PivotTable.d.ts +25 -0
- package/dist/types/components/viz/pivot-table/src/index.d.ts +2 -0
- package/dist/types/components/viz/radar-chart/src/RadarChart.d.ts +35 -0
- package/dist/types/components/viz/radar-chart/src/index.d.ts +2 -0
- package/dist/types/components/viz/sankey/src/SankeyDiagram.d.ts +38 -0
- package/dist/types/components/viz/sankey/src/index.d.ts +2 -0
- package/dist/types/components/viz/sunburst/src/Sunburst.d.ts +27 -0
- package/dist/types/components/viz/sunburst/src/index.d.ts +2 -0
- package/dist/types/components/viz/tree-map/src/TreeMap.d.ts +29 -0
- package/dist/types/components/viz/tree-map/src/index.d.ts +2 -0
- package/dist/types/components/viz/us-state-map/src/USStateMap.d.ts +23 -0
- package/dist/types/components/viz/us-state-map/src/index.d.ts +4 -0
- package/dist/types/components/viz/us-state-map/src/us-state-paths.d.ts +10 -0
- package/dist/types/components/viz/vector-field/src/VectorField.d.ts +61 -0
- package/dist/types/components/viz/vector-field/src/index.d.ts +2 -0
- package/dist/types/components/viz/waterfall/src/WaterfallChart.d.ts +32 -0
- package/dist/types/components/viz/waterfall/src/index.d.ts +2 -0
- package/dist/types/components/viz/word-cloud/src/WordCloud.d.ts +30 -0
- package/dist/types/components/viz/word-cloud/src/index.d.ts +2 -0
- package/dist/types/components/viz/wrapper/src/VizWrapper.d.ts +60 -0
- package/dist/types/components/viz/wrapper/src/index.d.ts +2 -0
- package/dist/types/compute/context.d.ts +20 -0
- package/dist/types/compute/context.d.ts.map +1 -0
- package/dist/types/compute/cpu-backend.d.ts +15 -0
- package/dist/types/compute/cpu-backend.d.ts.map +1 -0
- package/dist/types/compute/index.d.ts +3 -0
- package/dist/types/compute/index.d.ts.map +1 -0
- package/dist/types/compute/types.d.ts +57 -0
- package/dist/types/compute/types.d.ts.map +1 -0
- package/dist/types/compute/webgl-backend.d.ts +33 -0
- package/dist/types/compute/webgl-backend.d.ts.map +1 -0
- package/dist/types/compute/webgpu-backend.d.ts +50 -0
- package/dist/types/compute/webgpu-backend.d.ts.map +1 -0
- package/dist/types/context/create-context.d.ts +15 -0
- package/dist/types/context/create-context.d.ts.map +1 -0
- package/dist/types/core/children.d.ts +15 -0
- package/dist/types/core/children.d.ts.map +1 -0
- package/dist/types/core/clone-element.d.ts +10 -0
- package/dist/types/core/clone-element.d.ts.map +1 -0
- package/dist/types/core/create-element.d.ts +20 -0
- package/dist/types/core/create-element.d.ts.map +1 -0
- package/dist/types/core/create-ref.d.ts +7 -0
- package/dist/types/core/create-ref.d.ts.map +1 -0
- package/dist/types/core/fiber.d.ts +30 -0
- package/dist/types/core/fiber.d.ts.map +1 -0
- package/dist/types/core/forward-ref.d.ts +16 -0
- package/dist/types/core/forward-ref.d.ts.map +1 -0
- package/dist/types/core/fragment.d.ts +6 -0
- package/dist/types/core/fragment.d.ts.map +1 -0
- package/dist/types/core/is-valid-element.d.ts +7 -0
- package/dist/types/core/is-valid-element.d.ts.map +1 -0
- package/dist/types/core/lanes.d.ts +47 -0
- package/dist/types/core/lanes.d.ts.map +1 -0
- package/dist/types/core/lazy.d.ts +20 -0
- package/dist/types/core/lazy.d.ts.map +1 -0
- package/dist/types/core/memo.d.ts +13 -0
- package/dist/types/core/memo.d.ts.map +1 -0
- package/dist/types/core/reconciler.d.ts +12 -0
- package/dist/types/core/reconciler.d.ts.map +1 -0
- package/dist/types/core/scheduler-host-config.d.ts +37 -0
- package/dist/types/core/scheduler-host-config.d.ts.map +1 -0
- package/dist/types/core/scheduler.d.ts +29 -0
- package/dist/types/core/scheduler.d.ts.map +1 -0
- package/dist/types/core/src/build/index.d.ts +4 -0
- package/dist/types/core/src/build/noscript-plugin.d.ts +62 -0
- package/dist/types/core/src/build/seo-plugin.d.ts +42 -0
- package/dist/types/core/src/client/graphql.d.ts +63 -0
- package/dist/types/core/src/client/index.d.ts +3 -0
- package/dist/types/core/src/client/protobuf.d.ts +39 -0
- package/dist/types/core/src/client/rest.d.ts +60 -0
- package/dist/types/core/src/components/component.d.ts +38 -0
- package/dist/types/core/src/components/error-boundary.d.ts +22 -0
- package/dist/types/core/src/components/profiler.d.ts +5 -0
- package/dist/types/core/src/components/strict-mode.d.ts +5 -0
- package/dist/types/core/src/components/suspense.d.ts +5 -0
- package/dist/types/core/src/components-barrel.d.ts +100 -0
- package/dist/types/core/src/compute/context.d.ts +19 -0
- package/dist/types/core/src/compute/cpu-backend.d.ts +14 -0
- package/dist/types/core/src/compute/index.d.ts +2 -0
- package/dist/types/core/src/compute/types.d.ts +56 -0
- package/dist/types/core/src/compute/webgl-backend.d.ts +32 -0
- package/dist/types/core/src/compute/webgpu-backend.d.ts +49 -0
- package/dist/types/core/src/context/create-context.d.ts +14 -0
- package/dist/types/core/src/core/children.d.ts +14 -0
- package/dist/types/core/src/core/clone-element.d.ts +9 -0
- package/dist/types/core/src/core/create-element.d.ts +19 -0
- package/dist/types/core/src/core/create-ref.d.ts +6 -0
- package/dist/types/core/src/core/fiber.d.ts +29 -0
- package/dist/types/core/src/core/forward-ref.d.ts +15 -0
- package/dist/types/core/src/core/fragment.d.ts +5 -0
- package/dist/types/core/src/core/is-valid-element.d.ts +6 -0
- package/dist/types/core/src/core/lanes.d.ts +46 -0
- package/dist/types/core/src/core/lazy.d.ts +19 -0
- package/dist/types/core/src/core/memo.d.ts +12 -0
- package/dist/types/core/src/core/reconciler.d.ts +11 -0
- package/dist/types/core/src/core/scheduler-host-config.d.ts +36 -0
- package/dist/types/core/src/core/scheduler.d.ts +28 -0
- package/dist/types/core/src/core/transitions.d.ts +31 -0
- package/dist/types/core/src/devtools/index.d.ts +21 -0
- package/dist/types/core/src/dom/create-portal.d.ts +6 -0
- package/dist/types/core/src/dom/create-root.d.ts +23 -0
- package/dist/types/core/src/dom/flush-sync.d.ts +1 -0
- package/dist/types/core/src/dom/index.d.ts +4 -0
- package/dist/types/core/src/dom/legacy.d.ts +16 -0
- package/dist/types/core/src/dom/synthetic-event.d.ts +90 -0
- package/dist/types/core/src/dom/work-loop.d.ts +34 -0
- package/dist/types/core/src/features/feature-flags.d.ts +38 -0
- package/dist/types/core/src/features/index.d.ts +27 -0
- package/dist/types/core/src/hooks/dispatcher.d.ts +26 -0
- package/dist/types/core/src/hooks/hook-state.d.ts +46 -0
- package/dist/types/core/src/hooks/index.d.ts +47 -0
- package/dist/types/core/src/hooks/install-dispatcher.d.ts +2 -0
- package/dist/types/core/src/hooks/use-head.d.ts +54 -0
- package/dist/types/core/src/index.d.ts +23 -0
- package/dist/types/core/src/jsx-dev-runtime.d.ts +1 -0
- package/dist/types/core/src/jsx-runtime.d.ts +7 -0
- package/dist/types/core/src/router/index.d.ts +12 -0
- package/dist/types/core/src/router/link-component.d.ts +16 -0
- package/dist/types/core/src/router/match-path.d.ts +28 -0
- package/dist/types/core/src/router/route-component.d.ts +12 -0
- package/dist/types/core/src/router/router-component.d.ts +5 -0
- package/dist/types/core/src/router/router-context.d.ts +13 -0
- package/dist/types/core/src/router/router-store.d.ts +22 -0
- package/dist/types/core/src/router/use-navigate.d.ts +4 -0
- package/dist/types/core/src/router/use-params.d.ts +2 -0
- package/dist/types/core/src/router/use-router.d.ts +3 -0
- package/dist/types/core/src/server/index.d.ts +3 -0
- package/dist/types/core/src/server/render-to-pipeable-stream.d.ts +31 -0
- package/dist/types/core/src/server/render-to-readable-stream.d.ts +19 -0
- package/dist/types/core/src/server/render-to-string.d.ts +25 -0
- package/dist/types/core/src/shared/act.d.ts +1 -0
- package/dist/types/core/src/shared/aria-warnings.d.ts +1 -0
- package/dist/types/core/src/shared/async-compute.d.ts +63 -0
- package/dist/types/core/src/shared/component-registry.d.ts +53 -0
- package/dist/types/core/src/shared/render-guard.d.ts +47 -0
- package/dist/types/core/src/shared/secure-fetch.d.ts +21 -0
- package/dist/types/core/src/shared/types.d.ts +127 -0
- package/dist/types/core/src/shared/warnings.d.ts +19 -0
- package/dist/types/core/src/telemetry/index.d.ts +2 -0
- package/dist/types/core/src/telemetry/metrics.d.ts +67 -0
- package/dist/types/core/src/telemetry/tracing.d.ts +95 -0
- package/dist/types/core/transitions.d.ts +32 -0
- package/dist/types/core/transitions.d.ts.map +1 -0
- package/dist/types/devtools/index.d.ts +22 -0
- package/dist/types/devtools/index.d.ts.map +1 -0
- package/dist/types/dom/create-portal.d.ts +7 -0
- package/dist/types/dom/create-portal.d.ts.map +1 -0
- package/dist/types/dom/create-root.d.ts +24 -0
- package/dist/types/dom/create-root.d.ts.map +1 -0
- package/dist/types/dom/flush-sync.d.ts +2 -0
- package/dist/types/dom/flush-sync.d.ts.map +1 -0
- package/dist/types/dom/index.d.ts +5 -0
- package/dist/types/dom/index.d.ts.map +1 -0
- package/dist/types/dom/legacy.d.ts +17 -0
- package/dist/types/dom/legacy.d.ts.map +1 -0
- package/dist/types/dom/synthetic-event.d.ts +91 -0
- package/dist/types/dom/synthetic-event.d.ts.map +1 -0
- package/dist/types/dom/work-loop.d.ts +35 -0
- package/dist/types/dom/work-loop.d.ts.map +1 -0
- package/dist/types/features/feature-flags.d.ts +39 -0
- package/dist/types/features/feature-flags.d.ts.map +1 -0
- package/dist/types/features/index.d.ts +28 -0
- package/dist/types/features/index.d.ts.map +1 -0
- package/dist/types/hooks/dispatcher.d.ts +27 -0
- package/dist/types/hooks/dispatcher.d.ts.map +1 -0
- package/dist/types/hooks/hook-state.d.ts +47 -0
- package/dist/types/hooks/hook-state.d.ts.map +1 -0
- package/dist/types/hooks/index.d.ts +48 -0
- package/dist/types/hooks/index.d.ts.map +1 -0
- package/dist/types/hooks/install-dispatcher.d.ts +3 -0
- package/dist/types/hooks/install-dispatcher.d.ts.map +1 -0
- package/dist/types/hooks/use-head.d.ts +55 -0
- package/dist/types/hooks/use-head.d.ts.map +1 -0
- package/dist/types/index.d.ts +24 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/jsx-dev-runtime.d.ts +2 -0
- package/dist/types/jsx-dev-runtime.d.ts.map +1 -0
- package/dist/types/jsx-runtime.d.ts +8 -0
- package/dist/types/jsx-runtime.d.ts.map +1 -0
- package/dist/types/router/index.d.ts +13 -0
- package/dist/types/router/index.d.ts.map +1 -0
- package/dist/types/router/link-component.d.ts +17 -0
- package/dist/types/router/link-component.d.ts.map +1 -0
- package/dist/types/router/match-path.d.ts +29 -0
- package/dist/types/router/match-path.d.ts.map +1 -0
- package/dist/types/router/route-component.d.ts +13 -0
- package/dist/types/router/route-component.d.ts.map +1 -0
- package/dist/types/router/router-component.d.ts +6 -0
- package/dist/types/router/router-component.d.ts.map +1 -0
- package/dist/types/router/router-context.d.ts +14 -0
- package/dist/types/router/router-context.d.ts.map +1 -0
- package/dist/types/router/router-store.d.ts +23 -0
- package/dist/types/router/router-store.d.ts.map +1 -0
- package/dist/types/router/use-navigate.d.ts +5 -0
- package/dist/types/router/use-navigate.d.ts.map +1 -0
- package/dist/types/router/use-params.d.ts +3 -0
- package/dist/types/router/use-params.d.ts.map +1 -0
- package/dist/types/router/use-router.d.ts +4 -0
- package/dist/types/router/use-router.d.ts.map +1 -0
- package/dist/types/server/index.d.ts +4 -0
- package/dist/types/server/index.d.ts.map +1 -0
- package/dist/types/server/render-to-pipeable-stream.d.ts +32 -0
- package/dist/types/server/render-to-pipeable-stream.d.ts.map +1 -0
- package/dist/types/server/render-to-readable-stream.d.ts +20 -0
- package/dist/types/server/render-to-readable-stream.d.ts.map +1 -0
- package/dist/types/server/render-to-string.d.ts +26 -0
- package/dist/types/server/render-to-string.d.ts.map +1 -0
- package/dist/types/shared/act.d.ts +2 -0
- package/dist/types/shared/act.d.ts.map +1 -0
- package/dist/types/shared/aria-warnings.d.ts +2 -0
- package/dist/types/shared/aria-warnings.d.ts.map +1 -0
- package/dist/types/shared/async-compute.d.ts +64 -0
- package/dist/types/shared/async-compute.d.ts.map +1 -0
- package/dist/types/shared/component-registry.d.ts +54 -0
- package/dist/types/shared/component-registry.d.ts.map +1 -0
- package/dist/types/shared/render-guard.d.ts +48 -0
- package/dist/types/shared/render-guard.d.ts.map +1 -0
- package/dist/types/shared/secure-fetch.d.ts +22 -0
- package/dist/types/shared/secure-fetch.d.ts.map +1 -0
- package/dist/types/shared/types.d.ts +128 -0
- package/dist/types/shared/types.d.ts.map +1 -0
- package/dist/types/shared/warnings.d.ts +20 -0
- package/dist/types/shared/warnings.d.ts.map +1 -0
- package/dist/types/telemetry/index.d.ts +3 -0
- package/dist/types/telemetry/index.d.ts.map +1 -0
- package/dist/types/telemetry/metrics.d.ts +68 -0
- package/dist/types/telemetry/metrics.d.ts.map +1 -0
- package/dist/types/telemetry/tracing.d.ts +96 -0
- package/dist/types/telemetry/tracing.d.ts.map +1 -0
- package/package.json +8 -17
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type { Color, Vertex, ShadeParams, Texture, ObjectPicker, Mat4, Quaternion } from './types';
|
|
2
|
+
export { DefaultObjectPicker } from './types';
|
|
3
|
+
export { Mesh } from './mesh';
|
|
4
|
+
export type { Material } from './material';
|
|
5
|
+
export { createMaterial } from './material';
|
|
6
|
+
export type { LightType } from './light';
|
|
7
|
+
export { Light } from './light';
|
|
8
|
+
export type { ProjectionMode } from './camera';
|
|
9
|
+
export { Camera } from './camera';
|
|
10
|
+
export { Viewport } from './viewport';
|
|
11
|
+
export { SceneObject } from './scene-object';
|
|
12
|
+
export type { LightingModel } from './lighting-model';
|
|
13
|
+
export { FlatShading, LambertianShading } from './lighting-model';
|
|
14
|
+
export { SceneGraph } from './scene-graph';
|
|
15
|
+
export type { RenderPipeline } from './render-pipeline';
|
|
16
|
+
export { WebGLPipeline, toFloat32, compileShader, linkProgram, setUniform } from './webgl-pipeline';
|
|
17
|
+
export { CpuPipeline } from './cpu-pipeline';
|
|
18
|
+
export type { SpaceBounds, BoundaryMode } from './bounds';
|
|
19
|
+
export { clampToBounds, isInBounds, boundsCenter, boundsSize, applyBoundary } from './bounds';
|
|
20
|
+
export { solidTexture, checkerboardTexture, gradientTexture, noiseTexture } from './texture';
|
|
21
|
+
export { Space3D } from './Space3D';
|
|
22
|
+
export type { Space3DProps } from './Space3D';
|
|
23
|
+
export type { CameraControllerFn, InputState } from './camera-controller';
|
|
24
|
+
export { createInputTracker, resetFrameDeltas, orbitController, flyController } from './camera-controller';
|
|
25
|
+
export type { HeightFunction, TerrainColorFunction } from './terrain';
|
|
26
|
+
export { generateTerrain, sineTerrain, heightGradientColor } from './terrain';
|
|
27
|
+
export type { Ray, PickResult } from './picking';
|
|
28
|
+
export { screenToRay, rayIntersectSphere, rayIntersectAABB, BoundingSpherePicker, pickAtScreen } from './picking';
|
|
29
|
+
export type { AnimationFn, AnimationBinding } from './animation';
|
|
30
|
+
export { AnimationManager, rotateY, bob, orbit, compose } from './animation';
|
|
31
|
+
export type { ColliderType, CollisionInfo, CollisionResponse, AABB } from './collision';
|
|
32
|
+
export { CollisionManager, computeBoundingSphereRadius, computeAABB, sphereSphereTest, aabbTest } from './collision';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Vec3 } from '../../../math/src/vec';
|
|
2
|
+
import type { Color } from './types';
|
|
3
|
+
/** Types of light source. */
|
|
4
|
+
export type LightType = 'directional' | 'point' | 'spot';
|
|
5
|
+
/** A light source in the scene. */
|
|
6
|
+
export declare class Light {
|
|
7
|
+
type: LightType;
|
|
8
|
+
position: Vec3;
|
|
9
|
+
direction: Vec3;
|
|
10
|
+
color: Color;
|
|
11
|
+
intensity: number;
|
|
12
|
+
range: number;
|
|
13
|
+
spotAngle: number;
|
|
14
|
+
constructor(options: {
|
|
15
|
+
type: LightType;
|
|
16
|
+
position?: Vec3;
|
|
17
|
+
direction?: Vec3;
|
|
18
|
+
color?: Color;
|
|
19
|
+
intensity?: number;
|
|
20
|
+
range?: number;
|
|
21
|
+
spotAngle?: number;
|
|
22
|
+
});
|
|
23
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Color, ShadeParams } from './types';
|
|
2
|
+
import type { Light } from './light';
|
|
3
|
+
import type { Material } from './material';
|
|
4
|
+
/** Pluggable lighting model interface. */
|
|
5
|
+
export interface LightingModel {
|
|
6
|
+
name: string;
|
|
7
|
+
vertexShaderSource(): string;
|
|
8
|
+
fragmentShaderSource(): string;
|
|
9
|
+
shade(params: ShadeParams): Color;
|
|
10
|
+
uniforms(lights: Light[], material: Material): Record<string, unknown>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Flat shading: returns the material color unchanged.
|
|
14
|
+
* No diffuse/specular computation.
|
|
15
|
+
*/
|
|
16
|
+
export declare class FlatShading implements LightingModel {
|
|
17
|
+
readonly name = "FlatShading";
|
|
18
|
+
vertexShaderSource(): string;
|
|
19
|
+
fragmentShaderSource(): string;
|
|
20
|
+
shade(params: ShadeParams): Color;
|
|
21
|
+
uniforms(_lights: Light[], material: Material): Record<string, unknown>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Lambertian diffuse shading.
|
|
25
|
+
* Computes intensity as max(dot(normal, lightDir), 0) and combines
|
|
26
|
+
* an ambient term with a diffuse term.
|
|
27
|
+
*/
|
|
28
|
+
export declare class LambertianShading implements LightingModel {
|
|
29
|
+
readonly name = "lambertian";
|
|
30
|
+
vertexShaderSource(): string;
|
|
31
|
+
fragmentShaderSource(): string;
|
|
32
|
+
shade(params: ShadeParams): Color;
|
|
33
|
+
uniforms(lights: Light[], material: Material): Record<string, unknown>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Color, Texture } from './types';
|
|
2
|
+
/** Material definition for a scene object. */
|
|
3
|
+
export interface Material {
|
|
4
|
+
color: Color;
|
|
5
|
+
texture?: Texture;
|
|
6
|
+
wireframe: boolean;
|
|
7
|
+
}
|
|
8
|
+
/** Create a default material with the given color. */
|
|
9
|
+
export declare function createMaterial(color: Color, options?: {
|
|
10
|
+
texture?: Texture;
|
|
11
|
+
wireframe?: boolean;
|
|
12
|
+
}): Material;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** Mesh geometry with packed vertex data. */
|
|
2
|
+
export declare class Mesh {
|
|
3
|
+
readonly vertices: Float32Array;
|
|
4
|
+
readonly normals: Float32Array;
|
|
5
|
+
readonly indices: Uint32Array;
|
|
6
|
+
readonly uvs?: Float32Array;
|
|
7
|
+
readonly colors?: Float32Array;
|
|
8
|
+
constructor(vertices: Float32Array, normals: Float32Array, indices: Uint32Array, uvs?: Float32Array, colors?: Float32Array);
|
|
9
|
+
/** Number of vertices (each vertex is 3 floats: x, y, z). */
|
|
10
|
+
get vertexCount(): number;
|
|
11
|
+
/** Number of indices. */
|
|
12
|
+
get indexCount(): number;
|
|
13
|
+
/**
|
|
14
|
+
* Create a box mesh centered at the origin.
|
|
15
|
+
* @param width - Size along x axis.
|
|
16
|
+
* @param height - Size along y axis.
|
|
17
|
+
* @param depth - Size along z axis.
|
|
18
|
+
*/
|
|
19
|
+
static createBox(width: number, height: number, depth: number): Mesh;
|
|
20
|
+
/**
|
|
21
|
+
* Create a plane mesh on the XZ plane centered at the origin.
|
|
22
|
+
* @param width - Size along x axis.
|
|
23
|
+
* @param depth - Size along z axis.
|
|
24
|
+
* @param segmentsX - Number of segments along x.
|
|
25
|
+
* @param segmentsZ - Number of segments along z.
|
|
26
|
+
*/
|
|
27
|
+
static createPlane(width: number, depth: number, segmentsX?: number, segmentsZ?: number): Mesh;
|
|
28
|
+
/**
|
|
29
|
+
* Create a UV sphere.
|
|
30
|
+
* @param radius - Sphere radius.
|
|
31
|
+
* @param stacks - Number of horizontal slices (latitude). Default 16.
|
|
32
|
+
* @param slices - Number of vertical slices (longitude). Default 24.
|
|
33
|
+
*/
|
|
34
|
+
static createSphere(radius: number, stacks?: number, slices?: number): Mesh;
|
|
35
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { Vec3 } from '../../../math/src/vec';
|
|
2
|
+
import type { Camera } from './camera';
|
|
3
|
+
import type { Viewport } from './viewport';
|
|
4
|
+
import type { SceneObject } from './scene-object';
|
|
5
|
+
import type { ObjectPicker } from './types';
|
|
6
|
+
/**
|
|
7
|
+
* A ray in 3D space defined by an origin point and a direction vector.
|
|
8
|
+
*/
|
|
9
|
+
export interface Ray {
|
|
10
|
+
origin: Vec3;
|
|
11
|
+
direction: Vec3;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Result of a pick/raycast operation.
|
|
15
|
+
*/
|
|
16
|
+
export interface PickResult {
|
|
17
|
+
/** The object that was hit */
|
|
18
|
+
object: SceneObject;
|
|
19
|
+
/** Distance from the ray origin to the hit point */
|
|
20
|
+
distance: number;
|
|
21
|
+
/** World-space position of the hit */
|
|
22
|
+
hitPoint: Vec3;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Convert a screen-space mouse position to a world-space ray.
|
|
26
|
+
* Uses the camera's view and projection matrices to unproject.
|
|
27
|
+
*/
|
|
28
|
+
export declare function screenToRay(screenX: number, screenY: number, camera: Camera, viewport: Viewport): Ray;
|
|
29
|
+
/**
|
|
30
|
+
* Test if a ray intersects an axis-aligned bounding sphere.
|
|
31
|
+
* Returns distance to intersection or null if no hit.
|
|
32
|
+
*/
|
|
33
|
+
export declare function rayIntersectSphere(ray: Ray, center: Vec3, radius: number): number | null;
|
|
34
|
+
/**
|
|
35
|
+
* Test if a ray intersects an axis-aligned bounding box (AABB).
|
|
36
|
+
* Returns distance to intersection or null if no hit.
|
|
37
|
+
*/
|
|
38
|
+
export declare function rayIntersectAABB(ray: Ray, min: Vec3, max: Vec3): number | null;
|
|
39
|
+
/**
|
|
40
|
+
* Built-in bounding-sphere object picker.
|
|
41
|
+
* Tests each object's bounding sphere (computed from mesh extents)
|
|
42
|
+
* against the ray. Returns the closest hit.
|
|
43
|
+
*/
|
|
44
|
+
export declare class BoundingSpherePicker implements ObjectPicker {
|
|
45
|
+
pick(origin: Vec3, direction: Vec3, objects: SceneObject[]): SceneObject | null;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Pick the nearest scene object at the given screen coordinates.
|
|
49
|
+
* Convenience function that combines screenToRay + picker.pick.
|
|
50
|
+
*/
|
|
51
|
+
export declare function pickAtScreen(screenX: number, screenY: number, camera: Camera, viewport: Viewport, objects: SceneObject[], picker: ObjectPicker): SceneObject | null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SceneGraph } from './scene-graph';
|
|
2
|
+
import type { Camera } from './camera';
|
|
3
|
+
import type { Viewport } from './viewport';
|
|
4
|
+
import type { LightingModel } from './lighting-model';
|
|
5
|
+
import type { Light } from './light';
|
|
6
|
+
/** Pluggable render pipeline interface. */
|
|
7
|
+
export interface RenderPipeline {
|
|
8
|
+
name: string;
|
|
9
|
+
initialize(canvas: HTMLCanvasElement): void;
|
|
10
|
+
dispose(): void;
|
|
11
|
+
render(scene: SceneGraph, camera: Camera, viewport: Viewport, lighting: LightingModel, lights?: Light[]): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SceneObject } from './scene-object';
|
|
2
|
+
/** Scene graph that manages a hierarchy of scene objects. */
|
|
3
|
+
export declare class SceneGraph {
|
|
4
|
+
/** Invisible root node. All registered objects are children of root. */
|
|
5
|
+
readonly root: SceneObject;
|
|
6
|
+
constructor();
|
|
7
|
+
/** Register a scene object by adding it as a child of the root. */
|
|
8
|
+
register(obj: SceneObject): void;
|
|
9
|
+
/** Unregister a scene object by id. Removes it from its parent. */
|
|
10
|
+
unregister(id: string): void;
|
|
11
|
+
/**
|
|
12
|
+
* Depth-first traversal of all objects in the scene graph.
|
|
13
|
+
* Uses an iterative approach with an explicit stack.
|
|
14
|
+
*/
|
|
15
|
+
traverse(callback: (obj: SceneObject) => void): void;
|
|
16
|
+
/** Return all visible objects via depth-first traversal. */
|
|
17
|
+
getVisibleObjects(): SceneObject[];
|
|
18
|
+
/** Find an object by id using depth-first search. Returns null if not found. */
|
|
19
|
+
private findById;
|
|
20
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Vec3 } from '../../../math/src/vec';
|
|
2
|
+
import type { Mat4, Quaternion } from './types';
|
|
3
|
+
import type { Mesh } from './mesh';
|
|
4
|
+
import type { Material } from './material';
|
|
5
|
+
/**
|
|
6
|
+
* Base scene object that consumers can extend.
|
|
7
|
+
* Maintains a transform (position, rotation, scale) and a parent/child hierarchy.
|
|
8
|
+
*/
|
|
9
|
+
export declare class SceneObject {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
position: Vec3;
|
|
12
|
+
rotation: Quaternion;
|
|
13
|
+
scale: Vec3;
|
|
14
|
+
mesh?: Mesh;
|
|
15
|
+
material?: Material;
|
|
16
|
+
children: SceneObject[];
|
|
17
|
+
parent: SceneObject | null;
|
|
18
|
+
visible: boolean;
|
|
19
|
+
/** Render order: lower values draw first (background). Default: 0. */
|
|
20
|
+
renderOrder: number;
|
|
21
|
+
constructor(id: string);
|
|
22
|
+
/** Add a child object. Sets the child's parent reference. */
|
|
23
|
+
addChild(obj: SceneObject): void;
|
|
24
|
+
/** Remove a child object by reference. Clears the child's parent reference. */
|
|
25
|
+
removeChild(obj: SceneObject): void;
|
|
26
|
+
/**
|
|
27
|
+
* Compute the world matrix by composing own transform with parent chain.
|
|
28
|
+
* Uses iterative traversal up the parent chain.
|
|
29
|
+
*/
|
|
30
|
+
getWorldMatrix(): Mat4;
|
|
31
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Mesh } from './mesh';
|
|
2
|
+
import type { Color } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Consumer-provided terrain height function.
|
|
5
|
+
* Returns the height (Y value) at a given (x, z) world position.
|
|
6
|
+
*/
|
|
7
|
+
export type HeightFunction = (x: number, z: number) => number;
|
|
8
|
+
/**
|
|
9
|
+
* Consumer-provided terrain color function.
|
|
10
|
+
* Returns the color at a given (x, z) world position based on height.
|
|
11
|
+
* If not provided, a default green-brown gradient based on height is used.
|
|
12
|
+
*/
|
|
13
|
+
export type TerrainColorFunction = (x: number, z: number, height: number) => Color;
|
|
14
|
+
/**
|
|
15
|
+
* Generate a terrain mesh from a consumer-provided height function.
|
|
16
|
+
* Creates a grid of vertices in the XZ plane with Y values from the height function.
|
|
17
|
+
*
|
|
18
|
+
* @param width - Total width of the terrain in world units (X axis)
|
|
19
|
+
* @param depth - Total depth of the terrain in world units (Z axis)
|
|
20
|
+
* @param segmentsX - Number of segments along X
|
|
21
|
+
* @param segmentsZ - Number of segments along Z
|
|
22
|
+
* @param heightFn - Function that returns height at (x, z)
|
|
23
|
+
* @param colorFn - Optional function that returns color at (x, z, height)
|
|
24
|
+
*/
|
|
25
|
+
export declare function generateTerrain(width: number, depth: number, segmentsX: number, segmentsZ: number, heightFn: HeightFunction, colorFn?: TerrainColorFunction): Mesh;
|
|
26
|
+
/**
|
|
27
|
+
* Simple procedural terrain using sine waves (no external noise library).
|
|
28
|
+
* Returns height values between -amplitude and +amplitude.
|
|
29
|
+
*/
|
|
30
|
+
export declare function sineTerrain(amplitude?: number, frequency?: number): HeightFunction;
|
|
31
|
+
/**
|
|
32
|
+
* Default terrain coloring: green at low elevation, brown at mid, white at peaks.
|
|
33
|
+
*/
|
|
34
|
+
export declare function heightGradientColor(minH: number, maxH: number): TerrainColorFunction;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Texture, Color } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Create a solid color texture (single color everywhere).
|
|
4
|
+
*/
|
|
5
|
+
export declare function solidTexture(color: Color): Texture;
|
|
6
|
+
/**
|
|
7
|
+
* Create a checkerboard texture.
|
|
8
|
+
* @param color1 - First color (e.g., white)
|
|
9
|
+
* @param color2 - Second color (e.g., black)
|
|
10
|
+
* @param tilesU - Number of tiles along U axis (default 8)
|
|
11
|
+
* @param tilesV - Number of tiles along V axis (default 8)
|
|
12
|
+
*/
|
|
13
|
+
export declare function checkerboardTexture(color1: Color, color2: Color, tilesU?: number, tilesV?: number): Texture;
|
|
14
|
+
/**
|
|
15
|
+
* Create a smooth gradient texture from one color to another along U axis.
|
|
16
|
+
*/
|
|
17
|
+
export declare function gradientTexture(colorA: Color, colorB: Color): Texture;
|
|
18
|
+
/**
|
|
19
|
+
* Create a procedural noise texture (smooth random patterns).
|
|
20
|
+
* Uses value noise with bilinear interpolation.
|
|
21
|
+
*/
|
|
22
|
+
export declare function noiseTexture(baseColor: Color, noiseColor: Color, resolution?: number): Texture;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { Vec2, Vec3 } from '../../../math/src/vec';
|
|
2
|
+
import type { Mat4 } from '../../../math/src/mat4';
|
|
3
|
+
import type { Quaternion } from '../../../math/src/quaternion';
|
|
4
|
+
import type { SceneObject } from './scene-object';
|
|
5
|
+
export type { Mat4, Quaternion };
|
|
6
|
+
/** RGBA color with channels in the 0-1 range. */
|
|
7
|
+
export interface Color {
|
|
8
|
+
r: number;
|
|
9
|
+
g: number;
|
|
10
|
+
b: number;
|
|
11
|
+
a: number;
|
|
12
|
+
}
|
|
13
|
+
/** Vertex data for a mesh. */
|
|
14
|
+
export interface Vertex {
|
|
15
|
+
position: Vec3;
|
|
16
|
+
normal: Vec3;
|
|
17
|
+
uv?: Vec2;
|
|
18
|
+
color?: Color;
|
|
19
|
+
}
|
|
20
|
+
/** Parameters passed to a lighting model's shade function. */
|
|
21
|
+
export interface ShadeParams {
|
|
22
|
+
normal: Vec3;
|
|
23
|
+
lightDir: Vec3;
|
|
24
|
+
viewDir: Vec3;
|
|
25
|
+
lightColor: Color;
|
|
26
|
+
materialColor: Color;
|
|
27
|
+
ambientStrength: number;
|
|
28
|
+
}
|
|
29
|
+
/** Pluggable texture interface. */
|
|
30
|
+
export interface Texture {
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
sample(u: number, v: number): Color;
|
|
34
|
+
}
|
|
35
|
+
/** Pluggable object picking interface. */
|
|
36
|
+
export interface ObjectPicker {
|
|
37
|
+
pick(origin: Vec3, direction: Vec3, objects: SceneObject[]): SceneObject | null;
|
|
38
|
+
}
|
|
39
|
+
/** No-op default picker that always returns null. */
|
|
40
|
+
export declare class DefaultObjectPicker implements ObjectPicker {
|
|
41
|
+
pick(): SceneObject | null;
|
|
42
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Camera } from './camera';
|
|
2
|
+
import type { Color } from './types';
|
|
3
|
+
/** A viewport defines the screen rectangle and associated camera. */
|
|
4
|
+
export declare class Viewport {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
camera: Camera;
|
|
10
|
+
clearColor: Color;
|
|
11
|
+
constructor(options: {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
camera: Camera;
|
|
17
|
+
clearColor?: Color;
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { RenderPipeline } from './render-pipeline';
|
|
2
|
+
import type { SceneGraph } from './scene-graph';
|
|
3
|
+
import type { Camera } from './camera';
|
|
4
|
+
import type { Viewport } from './viewport';
|
|
5
|
+
import type { LightingModel } from './lighting-model';
|
|
6
|
+
import type { Light } from './light';
|
|
7
|
+
/**
|
|
8
|
+
* Convert a Float64Array to Float32Array for WebGL uniform uploads.
|
|
9
|
+
* WebGL expects Float32Array for matrix uniforms.
|
|
10
|
+
*/
|
|
11
|
+
export declare function toFloat32(src: Float64Array): Float32Array;
|
|
12
|
+
/**
|
|
13
|
+
* Compile a WebGL shader from source.
|
|
14
|
+
* @param gl - The WebGL rendering context.
|
|
15
|
+
* @param type - gl.VERTEX_SHADER or gl.FRAGMENT_SHADER.
|
|
16
|
+
* @param source - GLSL source code.
|
|
17
|
+
* @returns The compiled shader.
|
|
18
|
+
* @throws Error if compilation fails.
|
|
19
|
+
*/
|
|
20
|
+
export declare function compileShader(gl: WebGLRenderingContext, type: number, source: string): WebGLShader;
|
|
21
|
+
/**
|
|
22
|
+
* Link a vertex and fragment shader into a program.
|
|
23
|
+
* @param gl - The WebGL rendering context.
|
|
24
|
+
* @param vertexShader - Compiled vertex shader.
|
|
25
|
+
* @param fragmentShader - Compiled fragment shader.
|
|
26
|
+
* @returns The linked program.
|
|
27
|
+
* @throws Error if linking fails.
|
|
28
|
+
*/
|
|
29
|
+
export declare function linkProgram(gl: WebGLRenderingContext, vertexShader: WebGLShader, fragmentShader: WebGLShader): WebGLProgram;
|
|
30
|
+
/**
|
|
31
|
+
* Set a uniform value on a WebGL program. Supports vec4 (number[]) and mat4 (Float32Array).
|
|
32
|
+
* @param gl - The WebGL rendering context.
|
|
33
|
+
* @param program - The active WebGL program.
|
|
34
|
+
* @param name - Uniform name.
|
|
35
|
+
* @param value - Uniform value.
|
|
36
|
+
*/
|
|
37
|
+
export declare function setUniform(gl: WebGLRenderingContext, program: WebGLProgram, name: string, value: unknown): void;
|
|
38
|
+
/** WebGL-based render pipeline implementing the RenderPipeline interface. */
|
|
39
|
+
export declare class WebGLPipeline implements RenderPipeline {
|
|
40
|
+
name: string;
|
|
41
|
+
private gl;
|
|
42
|
+
private shaderCache;
|
|
43
|
+
initialize(canvas: HTMLCanvasElement): void;
|
|
44
|
+
dispose(): void;
|
|
45
|
+
render(scene: SceneGraph, camera: Camera, viewport: Viewport, lighting: LightingModel, lights?: Light[]): void;
|
|
46
|
+
/**
|
|
47
|
+
* Get a cached shader program or compile a new one from the lighting model's source.
|
|
48
|
+
*/
|
|
49
|
+
private getOrCompileProgram;
|
|
50
|
+
/**
|
|
51
|
+
* Render a single scene object.
|
|
52
|
+
*/
|
|
53
|
+
private renderObject;
|
|
54
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface BigNumberProps {
|
|
2
|
+
/** The main value to display */
|
|
3
|
+
value: number | string;
|
|
4
|
+
/** Descriptive label beneath the value */
|
|
5
|
+
label?: string;
|
|
6
|
+
/** Prefix before the value (e.g. '$') */
|
|
7
|
+
prefix?: string;
|
|
8
|
+
/** Suffix after the value (e.g. '%') */
|
|
9
|
+
suffix?: string;
|
|
10
|
+
/** Trend value — positive = up, negative = down */
|
|
11
|
+
trend?: number;
|
|
12
|
+
/** Trend context label (e.g. 'vs last week') */
|
|
13
|
+
trendLabel?: string;
|
|
14
|
+
/** Small line chart data points */
|
|
15
|
+
sparkline?: number[];
|
|
16
|
+
/** SVG width in pixels (default: 280) */
|
|
17
|
+
width?: number;
|
|
18
|
+
/** SVG height in pixels (default: 160) */
|
|
19
|
+
height?: number;
|
|
20
|
+
/** Main value text color (default: 'currentColor') */
|
|
21
|
+
valueColor?: string;
|
|
22
|
+
/** Trend arrow color when positive (default: '#22c55e') */
|
|
23
|
+
trendUpColor?: string;
|
|
24
|
+
/** Trend arrow color when negative (default: '#ef4444') */
|
|
25
|
+
trendDownColor?: string;
|
|
26
|
+
/** Card background color (default: '#ffffff') */
|
|
27
|
+
backgroundColor?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare function BigNumber(props: BigNumberProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/** Qubit state in Bloch sphere coordinates */
|
|
2
|
+
export interface BlochState {
|
|
3
|
+
/** Polar angle from |0⟩ (north pole) in radians [0, π] */
|
|
4
|
+
theta: number;
|
|
5
|
+
/** Azimuthal angle in the XY plane in radians [0, 2π) */
|
|
6
|
+
phi: number;
|
|
7
|
+
}
|
|
8
|
+
/** A point on the sphere trail */
|
|
9
|
+
export interface TrailPoint {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
z: number;
|
|
13
|
+
}
|
|
14
|
+
/** Standard quantum gate names */
|
|
15
|
+
export type GateName = 'X' | 'Y' | 'Z' | 'H' | 'S' | 'T' | 'Rx' | 'Ry' | 'Rz';
|
|
16
|
+
/** Gate to apply with optional rotation angle */
|
|
17
|
+
export interface GateOp {
|
|
18
|
+
gate: GateName;
|
|
19
|
+
/** Rotation angle in radians (for Rx, Ry, Rz gates) */
|
|
20
|
+
angle?: number;
|
|
21
|
+
}
|
|
22
|
+
export interface BlochSphereProps {
|
|
23
|
+
/** Current qubit state (default: |0⟩ = {theta: 0, phi: 0}) */
|
|
24
|
+
state?: BlochState;
|
|
25
|
+
/** Sequence of gates to animate (applied one per frame) */
|
|
26
|
+
gates?: GateOp[];
|
|
27
|
+
/** SVG viewBox width (default: 400) */
|
|
28
|
+
width?: number;
|
|
29
|
+
/** SVG viewBox height (default: 400) */
|
|
30
|
+
height?: number;
|
|
31
|
+
/** Initial rotation around Y axis in degrees (default: -25) */
|
|
32
|
+
rotateY?: number;
|
|
33
|
+
/** Initial rotation around X axis in degrees (default: 15) */
|
|
34
|
+
rotateX?: number;
|
|
35
|
+
/** Zoom level (default: 1.0, range 0.5–3.0) */
|
|
36
|
+
zoom?: number;
|
|
37
|
+
/** Allow interactive rotation via drag (default: true) */
|
|
38
|
+
interactive?: boolean;
|
|
39
|
+
/** Allow zoom via scroll (default: true) */
|
|
40
|
+
zoomable?: boolean;
|
|
41
|
+
/** Show state vector arrow (default: true) */
|
|
42
|
+
showVector?: boolean;
|
|
43
|
+
/** Show axis labels (default: true) */
|
|
44
|
+
showLabels?: boolean;
|
|
45
|
+
/** Show wireframe circles (default: true) */
|
|
46
|
+
showWireframe?: boolean;
|
|
47
|
+
/** Show trajectory trail (default: true) */
|
|
48
|
+
showTrail?: boolean;
|
|
49
|
+
/** Max trail points (default: 200) */
|
|
50
|
+
trailMaxPoints?: number;
|
|
51
|
+
/** Trail color (default: '#ef4444') */
|
|
52
|
+
trailColor?: string;
|
|
53
|
+
/** Sphere wireframe color (default: '#cbd5e1') */
|
|
54
|
+
wireframeColor?: string;
|
|
55
|
+
/** State vector color (default: '#3b82f6') */
|
|
56
|
+
vectorColor?: string;
|
|
57
|
+
/** Background color (default: transparent) */
|
|
58
|
+
backgroundColor?: string;
|
|
59
|
+
/** Sphere radius in viewBox units (default: 130) */
|
|
60
|
+
sphereRadius?: number;
|
|
61
|
+
/** Title text */
|
|
62
|
+
title?: string;
|
|
63
|
+
/** Called when state changes (from gates or interaction) */
|
|
64
|
+
onStateChange?: (state: BlochState) => void;
|
|
65
|
+
}
|
|
66
|
+
export declare function blochToCartesian(state: BlochState): {
|
|
67
|
+
x: number;
|
|
68
|
+
y: number;
|
|
69
|
+
z: number;
|
|
70
|
+
};
|
|
71
|
+
export declare function cartesianToBloch(x: number, y: number, z: number): BlochState;
|
|
72
|
+
export declare function applyGate(state: BlochState, op: GateOp): BlochState;
|
|
73
|
+
export declare function BlochSphere(props: BlochSphereProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export interface BoxPlotDatum {
|
|
2
|
+
/** Category label */
|
|
3
|
+
label: string;
|
|
4
|
+
/** Raw numeric values to compute statistics from */
|
|
5
|
+
values: number[];
|
|
6
|
+
/** Optional box fill color */
|
|
7
|
+
color?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface BoxPlotProps {
|
|
10
|
+
/** Array of box plot data */
|
|
11
|
+
data: BoxPlotDatum[];
|
|
12
|
+
/** SVG width in pixels (default: 600) */
|
|
13
|
+
width?: number;
|
|
14
|
+
/** SVG height in pixels (default: 400) */
|
|
15
|
+
height?: number;
|
|
16
|
+
/** Plot orientation (default: 'vertical') */
|
|
17
|
+
orientation?: 'horizontal' | 'vertical';
|
|
18
|
+
/** Show outlier circles (default: true) */
|
|
19
|
+
showOutliers?: boolean;
|
|
20
|
+
/** Show mean marker (default: false) */
|
|
21
|
+
showMean?: boolean;
|
|
22
|
+
/** Whisker line color (default: '#374151') */
|
|
23
|
+
whiskerColor?: string;
|
|
24
|
+
/** Box width as fraction of available space (default: 0.6) */
|
|
25
|
+
boxWidth?: number;
|
|
26
|
+
/** Show grid lines (default: true) */
|
|
27
|
+
showGrid?: boolean;
|
|
28
|
+
/** Chart title */
|
|
29
|
+
title?: string;
|
|
30
|
+
/** Padding around chart area in px (default: 60) */
|
|
31
|
+
padding?: number;
|
|
32
|
+
}
|
|
33
|
+
export interface BoxStats {
|
|
34
|
+
q1: number;
|
|
35
|
+
median: number;
|
|
36
|
+
q3: number;
|
|
37
|
+
iqr: number;
|
|
38
|
+
whiskerLow: number;
|
|
39
|
+
whiskerHigh: number;
|
|
40
|
+
mean: number;
|
|
41
|
+
outliers: number[];
|
|
42
|
+
min: number;
|
|
43
|
+
max: number;
|
|
44
|
+
}
|
|
45
|
+
/** Compute box-plot statistics from raw values. */
|
|
46
|
+
export declare function computeBoxStats(values: number[]): BoxStats | null;
|
|
47
|
+
export declare function BoxPlot(props: BoxPlotProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface BubbleDatum {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
r: number;
|
|
5
|
+
label?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface BubbleChartProps {
|
|
9
|
+
/** Array of bubble data points */
|
|
10
|
+
data: BubbleDatum[];
|
|
11
|
+
/** SVG width in pixels (default: 600) */
|
|
12
|
+
width?: number;
|
|
13
|
+
/** SVG height in pixels (default: 400) */
|
|
14
|
+
height?: number;
|
|
15
|
+
/** X-axis label */
|
|
16
|
+
xLabel?: string;
|
|
17
|
+
/** Y-axis label */
|
|
18
|
+
yLabel?: string;
|
|
19
|
+
/** Show grid lines (default: true) */
|
|
20
|
+
showGrid?: boolean;
|
|
21
|
+
/** Show axes (default: true) */
|
|
22
|
+
showAxes?: boolean;
|
|
23
|
+
/** Show datum labels (default: false) */
|
|
24
|
+
showLabels?: boolean;
|
|
25
|
+
/** Maximum rendered bubble radius in px (default: 40) */
|
|
26
|
+
maxBubbleRadius?: number;
|
|
27
|
+
/** Minimum rendered bubble radius in px (default: 4) */
|
|
28
|
+
minBubbleRadius?: number;
|
|
29
|
+
/** Default bubble fill color (default: '#3b82f6') */
|
|
30
|
+
defaultColor?: string;
|
|
31
|
+
/** Bubble fill opacity (default: 0.7) */
|
|
32
|
+
opacity?: number;
|
|
33
|
+
/** Chart title */
|
|
34
|
+
title?: string;
|
|
35
|
+
/** Padding around chart area in px (default: 60) */
|
|
36
|
+
padding?: number;
|
|
37
|
+
}
|
|
38
|
+
export declare function BubbleChart(props: BubbleChartProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
|