velo-plot 1.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +119 -0
- package/dist/EventEmitter-DAbs2K1C.js +60 -0
- package/dist/EventEmitter-DAbs2K1C.js.map +1 -0
- package/dist/core/Chart.d.ts +15 -0
- package/dist/core/ChartControls.d.ts +41 -0
- package/dist/core/ChartInitQueue.d.ts +50 -0
- package/dist/core/ChartLegend.d.ts +74 -0
- package/dist/core/ChartStatistics.d.ts +18 -0
- package/dist/core/EventEmitter.d.ts +30 -0
- package/dist/core/InteractionManager.d.ts +96 -0
- package/dist/core/OverlayRenderer.d.ts +89 -0
- package/dist/core/Series.d.ts +4 -0
- package/dist/core/animation/AnimationEngine.d.ts +156 -0
- package/dist/core/animation/index.d.ts +6 -0
- package/dist/core/annotations/AnnotationManager.d.ts +61 -0
- package/dist/core/annotations/index.d.ts +5 -0
- package/dist/core/annotations/types.d.ts +159 -0
- package/dist/core/chart/ChartAnimatedNavigation.d.ts +53 -0
- package/dist/core/chart/ChartAxisManager.d.ts +61 -0
- package/dist/core/chart/ChartCore.d.ts +336 -0
- package/dist/core/chart/ChartExporter.d.ts +18 -0
- package/dist/core/chart/ChartNavigation.d.ts +33 -0
- package/dist/core/chart/ChartPluginBridge.d.ts +34 -0
- package/dist/core/chart/ChartRenderLoop.d.ts +100 -0
- package/dist/core/chart/ChartRenderer.d.ts +52 -0
- package/dist/core/chart/ChartScaling.d.ts +31 -0
- package/dist/core/chart/ChartSeries.d.ts +4 -0
- package/dist/core/chart/ChartSetup.d.ts +67 -0
- package/dist/core/chart/ChartStateManager.d.ts +54 -0
- package/dist/core/chart/ChartUI.d.ts +40 -0
- package/dist/core/chart/exporter/SVGExporter.d.ts +6 -0
- package/dist/core/chart/exporter/index.d.ts +5 -0
- package/dist/core/chart/index.d.ts +14 -0
- package/dist/core/chart/series/SeriesActions.d.ts +7 -0
- package/dist/core/chart/series/SeriesBuffer.d.ts +4 -0
- package/dist/core/chart/series/index.d.ts +6 -0
- package/dist/core/chart/series/types.d.ts +22 -0
- package/dist/core/chart/types.d.ts +188 -0
- package/dist/core/clipboard/index.d.ts +137 -0
- package/dist/core/debug/index.d.ts +143 -0
- package/dist/core/index.d.ts +17 -0
- package/dist/core/keybindings/index.d.ts +157 -0
- package/dist/core/layout/index.d.ts +12 -0
- package/dist/core/layout/types.d.ts +165 -0
- package/dist/core/loading/index.d.ts +104 -0
- package/dist/core/locale/index.d.ts +91 -0
- package/dist/core/responsive/ResponsiveManager.d.ts +133 -0
- package/dist/core/responsive/index.d.ts +4 -0
- package/dist/core/selection/SelectionManager.d.ts +165 -0
- package/dist/core/selection/index.d.ts +4 -0
- package/dist/core/series/Series.d.ts +73 -0
- package/dist/core/series/SeriesBounds.d.ts +3 -0
- package/dist/core/series/SeriesDataUtils.d.ts +7 -0
- package/dist/core/series/index.d.ts +6 -0
- package/dist/core/sync/index.d.ts +147 -0
- package/dist/core/theme-editor/index.d.ts +122 -0
- package/dist/examples/PluginDemonstration.d.ts +20 -0
- package/dist/examples.d.ts +25 -0
- package/dist/gpu/adapter/gpuRenderer.d.ts +135 -0
- package/dist/gpu/adapter/index.d.ts +7 -0
- package/dist/gpu/adapter/seriesAdapter.d.ts +88 -0
- package/dist/gpu/backends/webgl/WebGLBackend.d.ts +42 -0
- package/dist/gpu/backends/webgl/index.d.ts +5 -0
- package/dist/gpu/backends/webgl/programFactory.d.ts +30 -0
- package/dist/gpu/backends/webgl/shaders.d.ts +14 -0
- package/dist/gpu/backends/webgpu/MassiveDataRenderer.d.ts +111 -0
- package/dist/gpu/backends/webgpu/WebGPUBackend.d.ts +58 -0
- package/dist/gpu/backends/webgpu/pipelines/bandPipeline.d.ts +24 -0
- package/dist/gpu/backends/webgpu/pipelines/heatmapPipeline.d.ts +28 -0
- package/dist/gpu/backends/webgpu/pipelines/index.d.ts +10 -0
- package/dist/gpu/backends/webgpu/pipelines/instancedLinePipeline.d.ts +23 -0
- package/dist/gpu/backends/webgpu/pipelines/instancedPointPipeline.d.ts +25 -0
- package/dist/gpu/backends/webgpu/pipelines/linePipeline.d.ts +23 -0
- package/dist/gpu/backends/webgpu/pipelines/pointPipeline.d.ts +28 -0
- package/dist/gpu/backends/webgpu/pipelines/trianglePipeline.d.ts +5 -0
- package/dist/gpu/backends/webgpu/pipelines/triangleShader.d.ts +1 -0
- package/dist/gpu/backends/webgpu/shaders/heatmap.wgsl.d.ts +8 -0
- package/dist/gpu/backends/webgpu/shaders/index.d.ts +8 -0
- package/dist/gpu/backends/webgpu/shaders/instanced.wgsl.d.ts +16 -0
- package/dist/gpu/backends/webgpu/shaders/line.wgsl.d.ts +8 -0
- package/dist/gpu/backends/webgpu/shaders/point.wgsl.d.ts +9 -0
- package/dist/gpu/benchmark/benchmark.d.ts +74 -0
- package/dist/gpu/benchmark/index.d.ts +5 -0
- package/dist/gpu/compute/gpuCompute.d.ts +72 -0
- package/dist/gpu/compute/index.d.ts +6 -0
- package/dist/gpu/compute/shaders.d.ts +9 -0
- package/dist/gpu/drawList.d.ts +77 -0
- package/dist/gpu/examples/gallery.d.ts +20 -0
- package/dist/gpu/examples/index.d.ts +3 -0
- package/dist/gpu/examples/webgpu-line-demo.d.ts +8 -0
- package/dist/gpu/examples/webgpu-triangle.d.ts +1 -0
- package/dist/gpu/frame.d.ts +25 -0
- package/dist/gpu/index.d.ts +24 -0
- package/dist/gpu/resources/bufferStore.d.ts +40 -0
- package/dist/gpu/resources/index.d.ts +9 -0
- package/dist/gpu/resources/pipelineCache.d.ts +33 -0
- package/dist/gpu/resources/textureStore.d.ts +41 -0
- package/dist/gpu/types.d.ts +47 -0
- package/dist/index-BMiZoKmm.js +536 -0
- package/dist/index-BMiZoKmm.js.map +1 -0
- package/dist/index-Ce2JgkH_.js +282 -0
- package/dist/index-Ce2JgkH_.js.map +1 -0
- package/dist/index-D8ifudJH.js +2431 -0
- package/dist/index-D8ifudJH.js.map +1 -0
- package/dist/index-Dag88bW4.js +499 -0
- package/dist/index-Dag88bW4.js.map +1 -0
- package/dist/index-qhscKTDy.js +309 -0
- package/dist/index-qhscKTDy.js.map +1 -0
- package/dist/index-x4stH3jD.js +282 -0
- package/dist/index-x4stH3jD.js.map +1 -0
- package/dist/index.core-CYu3tydL.js +7252 -0
- package/dist/index.core-CYu3tydL.js.map +1 -0
- package/dist/index.core.d.ts +20 -0
- package/dist/index.d.ts +51 -0
- package/dist/overlay/CanvasOverlay.d.ts +102 -0
- package/dist/overlay/index.d.ts +4 -0
- package/dist/plugins/3d/Area3DRenderer.d.ts +122 -0
- package/dist/plugins/3d/Axes3D.d.ts +104 -0
- package/dist/plugins/3d/Bubble3DRenderer.d.ts +198 -0
- package/dist/plugins/3d/Impulse3DRenderer.d.ts +130 -0
- package/dist/plugins/3d/Line3DRenderer.d.ts +118 -0
- package/dist/plugins/3d/PointCloud3DRenderer.d.ts +84 -0
- package/dist/plugins/3d/Raycaster3D.d.ts +137 -0
- package/dist/plugins/3d/Ribbon3DRenderer.d.ts +83 -0
- package/dist/plugins/3d/SurfaceBar3DRenderer.d.ts +92 -0
- package/dist/plugins/3d/SurfaceMesh3DRenderer.d.ts +130 -0
- package/dist/plugins/3d/Tooltip3D.d.ts +71 -0
- package/dist/plugins/3d/VectorField3DRenderer.d.ts +86 -0
- package/dist/plugins/3d/Voxel3DRenderer.d.ts +89 -0
- package/dist/plugins/3d/Waterfall3DRenderer.d.ts +94 -0
- package/dist/plugins/3d/camera/OrbitCamera.d.ts +99 -0
- package/dist/plugins/3d/camera/index.d.ts +1 -0
- package/dist/plugins/3d/colorThemes.d.ts +39 -0
- package/dist/plugins/3d/controls/OrbitController.d.ts +69 -0
- package/dist/plugins/3d/controls/index.d.ts +1 -0
- package/dist/plugins/3d/index.d.ts +50 -0
- package/dist/plugins/3d/math/Mat4.d.ts +33 -0
- package/dist/plugins/3d/math/Vec3.d.ts +37 -0
- package/dist/plugins/3d/math/index.d.ts +4 -0
- package/dist/plugins/3d/mesh/InstancedMesh.d.ts +42 -0
- package/dist/plugins/3d/mesh/geometry.d.ts +34 -0
- package/dist/plugins/3d/mesh/index.d.ts +2 -0
- package/dist/plugins/3d/series/Area3D.d.ts +17 -0
- package/dist/plugins/3d/series/Column3D.d.ts +20 -0
- package/dist/plugins/3d/series/Heatmap3D.d.ts +17 -0
- package/dist/plugins/3d/series/Impulse3D.d.ts +16 -0
- package/dist/plugins/3d/series/PointLine3D.d.ts +20 -0
- package/dist/plugins/3d/series/Ribbon3D.d.ts +17 -0
- package/dist/plugins/3d/series/Scatter3D.d.ts +21 -0
- package/dist/plugins/3d/series/SurfaceMesh3D.d.ts +35 -0
- package/dist/plugins/3d/series/Waterfall3D.d.ts +38 -0
- package/dist/plugins/3d/series/index.d.ts +13 -0
- package/dist/plugins/3d/series/types.d.ts +143 -0
- package/dist/plugins/3d/shader/index.d.ts +2 -0
- package/dist/plugins/3d/shader/programs.d.ts +24 -0
- package/dist/plugins/3d/shader/sources.d.ts +27 -0
- package/dist/plugins/3d/types.d.ts +71 -0
- package/dist/plugins/3d.d.ts +3 -0
- package/dist/plugins/3d.js +5498 -0
- package/dist/plugins/3d.js.map +1 -0
- package/dist/plugins/PluginContext.d.ts +53 -0
- package/dist/plugins/PluginManager.d.ts +129 -0
- package/dist/plugins/PluginRegistry.d.ts +38 -0
- package/dist/plugins/analysis/SeriesFit.d.ts +3 -0
- package/dist/plugins/analysis/contours.d.ts +20 -0
- package/dist/plugins/analysis/fft.d.ts +138 -0
- package/dist/plugins/analysis/filters.d.ts +76 -0
- package/dist/plugins/analysis/fitting.d.ts +24 -0
- package/dist/plugins/analysis/index.d.ts +29 -0
- package/dist/plugins/analysis/indicators.d.ts +148 -0
- package/dist/plugins/analysis/math.d.ts +32 -0
- package/dist/plugins/analysis/statistics.d.ts +78 -0
- package/dist/plugins/analysis/utils.d.ts +150 -0
- package/dist/plugins/analysis.d.ts +3 -0
- package/dist/plugins/analysis.js +1202 -0
- package/dist/plugins/analysis.js.map +1 -0
- package/dist/plugins/annotations/index.d.ts +16 -0
- package/dist/plugins/annotations.d.ts +3 -0
- package/dist/plugins/annotations.js +438 -0
- package/dist/plugins/annotations.js.map +1 -0
- package/dist/plugins/anomaly-detection/algorithms.d.ts +38 -0
- package/dist/plugins/anomaly-detection/index.d.ts +16 -0
- package/dist/plugins/anomaly-detection/types.d.ts +57 -0
- package/dist/plugins/broken-axis/BrokenAxisScale.d.ts +24 -0
- package/dist/plugins/broken-axis/exports.d.ts +6 -0
- package/dist/plugins/broken-axis/index.d.ts +6 -0
- package/dist/plugins/broken-axis/types.d.ts +50 -0
- package/dist/plugins/builtins/crosshair/CrosshairPlugin.d.ts +40 -0
- package/dist/plugins/builtins/crosshair/index.d.ts +1 -0
- package/dist/plugins/builtins/data-logger/DataLoggerPlugin.d.ts +11 -0
- package/dist/plugins/builtins/data-logger/index.d.ts +1 -0
- package/dist/plugins/builtins/direction-indicator/DirectionIndicatorPlugin.d.ts +17 -0
- package/dist/plugins/builtins/direction-indicator/index.d.ts +2 -0
- package/dist/plugins/builtins/grid-highlight/GridHighlightPlugin.d.ts +17 -0
- package/dist/plugins/builtins/grid-highlight/index.d.ts +1 -0
- package/dist/plugins/builtins/index.d.ts +25 -0
- package/dist/plugins/builtins/stats/StatsPlugin.d.ts +11 -0
- package/dist/plugins/builtins/stats/index.d.ts +1 -0
- package/dist/plugins/builtins/watermark/WatermarkPlugin.d.ts +15 -0
- package/dist/plugins/builtins/watermark/index.d.ts +1 -0
- package/dist/plugins/caching/exports.d.ts +6 -0
- package/dist/plugins/caching/index.d.ts +6 -0
- package/dist/plugins/caching/types.d.ts +120 -0
- package/dist/plugins/clipboard/index.d.ts +20 -0
- package/dist/plugins/clipboard.d.ts +3 -0
- package/dist/plugins/clipboard.js +270 -0
- package/dist/plugins/clipboard.js.map +1 -0
- package/dist/plugins/context-menu/index.d.ts +12 -0
- package/dist/plugins/context-menu/renderer.d.ts +43 -0
- package/dist/plugins/context-menu/types.d.ts +202 -0
- package/dist/plugins/context-menu.d.ts +3 -0
- package/dist/plugins/context-menu.js +621 -0
- package/dist/plugins/context-menu.js.map +1 -0
- package/dist/plugins/data-export/formatters.d.ts +34 -0
- package/dist/plugins/data-export/index.d.ts +15 -0
- package/dist/plugins/data-export/types.d.ts +166 -0
- package/dist/plugins/data-export.d.ts +3 -0
- package/dist/plugins/data-export.js +463 -0
- package/dist/plugins/data-export.js.map +1 -0
- package/dist/plugins/data-transform/index.d.ts +6 -0
- package/dist/plugins/data-transform/types.d.ts +34 -0
- package/dist/plugins/debug/index.d.ts +24 -0
- package/dist/plugins/debug.d.ts +3 -0
- package/dist/plugins/debug.js +330 -0
- package/dist/plugins/debug.js.map +1 -0
- package/dist/plugins/drag-edit/exports.d.ts +6 -0
- package/dist/plugins/drag-edit/index.d.ts +6 -0
- package/dist/plugins/drag-edit/types.d.ts +118 -0
- package/dist/plugins/forecasting/algorithms.d.ts +6 -0
- package/dist/plugins/forecasting/exports.d.ts +3 -0
- package/dist/plugins/forecasting/index.d.ts +11 -0
- package/dist/plugins/forecasting/types.d.ts +88 -0
- package/dist/plugins/gpu/index.d.ts +24 -0
- package/dist/plugins/gpu.d.ts +3 -0
- package/dist/plugins/gpu.js +2430 -0
- package/dist/plugins/gpu.js.map +1 -0
- package/dist/plugins/i18n/index.d.ts +22 -0
- package/dist/plugins/i18n.d.ts +3 -0
- package/dist/plugins/i18n.js +37 -0
- package/dist/plugins/i18n.js.map +1 -0
- package/dist/plugins/index.d.ts +110 -0
- package/dist/plugins/keyboard/index.d.ts +15 -0
- package/dist/plugins/keyboard.d.ts +3 -0
- package/dist/plugins/keyboard.js +8 -0
- package/dist/plugins/keyboard.js.map +1 -0
- package/dist/plugins/latex/exports.d.ts +6 -0
- package/dist/plugins/latex/index.d.ts +8 -0
- package/dist/plugins/latex/parser.d.ts +6 -0
- package/dist/plugins/latex/renderer.d.ts +6 -0
- package/dist/plugins/latex/symbols.d.ts +28 -0
- package/dist/plugins/latex/types.d.ts +88 -0
- package/dist/plugins/lazy-load/exports.d.ts +6 -0
- package/dist/plugins/lazy-load/index.d.ts +6 -0
- package/dist/plugins/lazy-load/types.d.ts +121 -0
- package/dist/plugins/loading/index.d.ts +15 -0
- package/dist/plugins/loading.d.ts +3 -0
- package/dist/plugins/loading.js +7 -0
- package/dist/plugins/loading.js.map +1 -0
- package/dist/plugins/ml-integration/exports.d.ts +11 -0
- package/dist/plugins/ml-integration/index.d.ts +6 -0
- package/dist/plugins/ml-integration/native-algorithms.d.ts +69 -0
- package/dist/plugins/ml-integration/types.d.ts +74 -0
- package/dist/plugins/offscreen/exports.d.ts +6 -0
- package/dist/plugins/offscreen/index.d.ts +6 -0
- package/dist/plugins/offscreen/pool.d.ts +32 -0
- package/dist/plugins/offscreen/types.d.ts +35 -0
- package/dist/plugins/pattern-recognition/index.d.ts +6 -0
- package/dist/plugins/pattern-recognition/patterns.d.ts +3 -0
- package/dist/plugins/pattern-recognition/types.d.ts +245 -0
- package/dist/plugins/radar/index.d.ts +6 -0
- package/dist/plugins/radar/types.d.ts +40 -0
- package/dist/plugins/regression/algorithms.d.ts +6 -0
- package/dist/plugins/regression/index.d.ts +6 -0
- package/dist/plugins/regression/types.d.ts +261 -0
- package/dist/plugins/roi/exports.d.ts +6 -0
- package/dist/plugins/roi/index.d.ts +49 -0
- package/dist/plugins/roi/types.d.ts +60 -0
- package/dist/plugins/snapshot/index.d.ts +11 -0
- package/dist/plugins/snapshot/types.d.ts +38 -0
- package/dist/plugins/streaming/index.d.ts +32 -0
- package/dist/plugins/streaming.d.ts +3 -0
- package/dist/plugins/streaming.js +13 -0
- package/dist/plugins/streaming.js.map +1 -0
- package/dist/plugins/sync/index.d.ts +22 -0
- package/dist/plugins/sync.d.ts +3 -0
- package/dist/plugins/sync.js +261 -0
- package/dist/plugins/sync.js.map +1 -0
- package/dist/plugins/theme-editor/index.d.ts +18 -0
- package/dist/plugins/theme-editor.d.ts +3 -0
- package/dist/plugins/theme-editor.js +7 -0
- package/dist/plugins/theme-editor.js.map +1 -0
- package/dist/plugins/tools/delta-tool/index.d.ts +159 -0
- package/dist/plugins/tools/index.d.ts +21 -0
- package/dist/plugins/tools/peak-tool/index.d.ts +159 -0
- package/dist/plugins/tools/tooltip/TooltipManager.d.ts +213 -0
- package/dist/plugins/tools/tooltip/TooltipPositioner.d.ts +83 -0
- package/dist/plugins/tools/tooltip/TooltipRenderer.d.ts +64 -0
- package/dist/plugins/tools/tooltip/index.d.ts +18 -0
- package/dist/plugins/tools/tooltip/templates/AnnotationTemplate.d.ts +18 -0
- package/dist/plugins/tools/tooltip/templates/CrosshairTemplate.d.ts +39 -0
- package/dist/plugins/tools/tooltip/templates/DefaultTemplate.d.ts +30 -0
- package/dist/plugins/tools/tooltip/templates/HeatmapTemplate.d.ts +34 -0
- package/dist/plugins/tools/tooltip/templates/MinimalTemplate.d.ts +26 -0
- package/dist/plugins/tools/tooltip/templates/RangeTemplate.d.ts +18 -0
- package/dist/plugins/tools/tooltip/templates/ScientificTemplate.d.ts +34 -0
- package/dist/plugins/tools/tooltip/templates/index.d.ts +27 -0
- package/dist/plugins/tools/tooltip/themes.d.ts +48 -0
- package/dist/plugins/tools/tooltip/types.d.ts +396 -0
- package/dist/plugins/tools.d.ts +3 -0
- package/dist/plugins/tools.js +9 -0
- package/dist/plugins/tools.js.map +1 -0
- package/dist/plugins/types.d.ts +451 -0
- package/dist/plugins/video-recorder/exports.d.ts +6 -0
- package/dist/plugins/video-recorder/index.d.ts +6 -0
- package/dist/plugins/video-recorder/types.d.ts +55 -0
- package/dist/plugins/virtualization/exports.d.ts +6 -0
- package/dist/plugins/virtualization/index.d.ts +6 -0
- package/dist/plugins/virtualization/types.d.ts +48 -0
- package/dist/react/SciPlot.d.ts +60 -0
- package/dist/react/index.d.ts +5 -0
- package/dist/react/useSciPlot.d.ts +56 -0
- package/dist/renderer/BarRenderer.d.ts +14 -0
- package/dist/renderer/CandlestickRenderer.d.ts +12 -0
- package/dist/renderer/GaugeRenderer.d.ts +3 -0
- package/dist/renderer/HeatmapRenderer.d.ts +15 -0
- package/dist/renderer/NativeWebGLRenderer.d.ts +16 -0
- package/dist/renderer/PolarRenderer.d.ts +64 -0
- package/dist/renderer/RendererInterface.d.ts +70 -0
- package/dist/renderer/SankeyRenderer.d.ts +3 -0
- package/dist/renderer/WebGPURenderer.d.ts +16 -0
- package/dist/renderer/index.d.ts +13 -0
- package/dist/renderer/native/NativeWebGLRenderer.d.ts +31 -0
- package/dist/renderer/native/bufferStore.d.ts +11 -0
- package/dist/renderer/native/draw.d.ts +47 -0
- package/dist/renderer/native/programFactory.d.ts +3 -0
- package/dist/renderer/native/renderFrame.d.ts +3 -0
- package/dist/renderer/native/shaderSources.d.ts +6 -0
- package/dist/renderer/native/textureStore.d.ts +8 -0
- package/dist/renderer/native/types.d.ts +77 -0
- package/dist/renderer/native/utils.d.ts +31 -0
- package/dist/renderer/radar/RadarRenderer.d.ts +71 -0
- package/dist/renderer/radar/index.d.ts +10 -0
- package/dist/renderer/shaders.d.ts +77 -0
- package/dist/renderer/ternary/TernaryRenderer.d.ts +39 -0
- package/dist/renderer/ternary/index.d.ts +6 -0
- package/dist/renderer/ternary/types.d.ts +56 -0
- package/dist/scales/index.d.ts +54 -0
- package/dist/serialization/index.d.ts +153 -0
- package/dist/streaming/backpressure.d.ts +179 -0
- package/dist/streaming/index.d.ts +7 -0
- package/dist/streaming/mock.d.ts +12 -0
- package/dist/streaming/types.d.ts +57 -0
- package/dist/streaming/utils.d.ts +19 -0
- package/dist/streaming/websocket.d.ts +6 -0
- package/dist/testing/index.d.ts +225 -0
- package/dist/theme/colorSchemes.d.ts +56 -0
- package/dist/theme/index.d.ts +138 -0
- package/dist/types.d.ts +753 -0
- package/dist/utils-Dbro9-qM.js +254 -0
- package/dist/utils-Dbro9-qM.js.map +1 -0
- package/dist/velo-plot.d.ts +1 -0
- package/dist/velo-plot.full.d.ts +1 -0
- package/dist/velo-plot.full.js +5804 -0
- package/dist/velo-plot.full.js.map +1 -0
- package/dist/velo-plot.js +31 -0
- package/dist/velo-plot.js.map +1 -0
- package/dist/workers/downsample.d.ts +34 -0
- package/dist/workers/downsample.worker.d.ts +46 -0
- package/package.json +185 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mathematical utilities for numerical analysis and regression.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Solve a system of linear equations Ax = B using Gaussian elimination with partial pivoting.
|
|
6
|
+
*
|
|
7
|
+
* @param A - Matrix coefficients
|
|
8
|
+
* @param B - Right hand side vector
|
|
9
|
+
* @returns Solution vector x
|
|
10
|
+
*/
|
|
11
|
+
export declare function solveLinearSystem(A: number[][], B: number[]): number[];
|
|
12
|
+
/**
|
|
13
|
+
* Calculate R² (coefficient of determination)
|
|
14
|
+
*/
|
|
15
|
+
export declare function calculateR2(x: number[] | Float32Array, y: number[] | Float32Array, fitFn: (x: number) => number): number;
|
|
16
|
+
/**
|
|
17
|
+
* Numerical integration using the trapezoidal rule.
|
|
18
|
+
*
|
|
19
|
+
* @param x - X values (must be sorted)
|
|
20
|
+
* @param y - Y values
|
|
21
|
+
* @param xMin - Optional start of integration range
|
|
22
|
+
* @param xMax - Optional end of integration range
|
|
23
|
+
*/
|
|
24
|
+
export declare function integrate(x: number[] | Float32Array, y: number[] | Float32Array, xMin?: number, xMax?: number): number;
|
|
25
|
+
/**
|
|
26
|
+
* Calculate numerical derivative dy/dx
|
|
27
|
+
*/
|
|
28
|
+
export declare function derivative(x: number[] | Float32Array, y: number[] | Float32Array): Float32Array;
|
|
29
|
+
/**
|
|
30
|
+
* Calculate cumulative integral (area array)
|
|
31
|
+
*/
|
|
32
|
+
export declare function cumulativeIntegral(x: number[] | Float32Array, y: number[] | Float32Array): Float32Array;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Advanced Statistical Analysis
|
|
3
|
+
*
|
|
4
|
+
* Provides:
|
|
5
|
+
* - Cross-correlation
|
|
6
|
+
* - Auto-correlation
|
|
7
|
+
* - Anomaly detection
|
|
8
|
+
* - Statistical tests
|
|
9
|
+
* - Numerical integration (Simpson, trapezoidal)
|
|
10
|
+
*/
|
|
11
|
+
/** Cross-correlation result */
|
|
12
|
+
export interface CorrelationResult {
|
|
13
|
+
/** Correlation values at each lag */
|
|
14
|
+
correlation: Float32Array;
|
|
15
|
+
/** Lag values */
|
|
16
|
+
lags: Float32Array;
|
|
17
|
+
/** Maximum correlation value */
|
|
18
|
+
maxCorrelation: number;
|
|
19
|
+
/** Lag at maximum correlation */
|
|
20
|
+
lagAtMax: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Compute cross-correlation between two signals
|
|
24
|
+
*/
|
|
25
|
+
export declare function crossCorrelation(signal1: Float32Array | Float64Array, signal2: Float32Array | Float64Array, maxLag?: number): CorrelationResult;
|
|
26
|
+
/**
|
|
27
|
+
* Compute auto-correlation of a signal
|
|
28
|
+
*/
|
|
29
|
+
export declare function autoCorrelation(signal: Float32Array | Float64Array, maxLag?: number): CorrelationResult;
|
|
30
|
+
/** Anomaly detection result */
|
|
31
|
+
export interface AnomalyResult {
|
|
32
|
+
/** Indices of anomalous points */
|
|
33
|
+
indices: number[];
|
|
34
|
+
/** Anomaly scores for all points */
|
|
35
|
+
scores: Float32Array;
|
|
36
|
+
/** Threshold used for detection */
|
|
37
|
+
threshold: number;
|
|
38
|
+
}
|
|
39
|
+
/** Anomaly detection options */
|
|
40
|
+
export interface AnomalyOptions {
|
|
41
|
+
/** Detection method */
|
|
42
|
+
method?: 'zscore' | 'mad' | 'iqr' | 'isolation';
|
|
43
|
+
/** Threshold multiplier (default: 3 for zscore, 2.5 for mad, 1.5 for iqr) */
|
|
44
|
+
threshold?: number;
|
|
45
|
+
/** Window size for local anomaly detection (default: use global) */
|
|
46
|
+
windowSize?: number;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Detect anomalies in a signal
|
|
50
|
+
*/
|
|
51
|
+
export declare function detectAnomalies(data: Float32Array | Float64Array, options?: AnomalyOptions): AnomalyResult;
|
|
52
|
+
/**
|
|
53
|
+
* Trapezoidal integration
|
|
54
|
+
*/
|
|
55
|
+
export declare function trapezoidalIntegration(y: Float32Array | Float64Array, x?: Float32Array | Float64Array | number): number;
|
|
56
|
+
/**
|
|
57
|
+
* Simpson's rule integration (requires odd number of points)
|
|
58
|
+
*/
|
|
59
|
+
export declare function simpsonsIntegration(y: Float32Array | Float64Array, x?: Float32Array | Float64Array | number): number;
|
|
60
|
+
/**
|
|
61
|
+
* Cumulative integration (returns running integral)
|
|
62
|
+
*/
|
|
63
|
+
export declare function cumulativeIntegration(y: Float32Array | Float64Array, x?: Float32Array | Float64Array | number): Float32Array;
|
|
64
|
+
/** T-test result */
|
|
65
|
+
export interface TTestResult {
|
|
66
|
+
/** T-statistic */
|
|
67
|
+
tStatistic: number;
|
|
68
|
+
/** Degrees of freedom */
|
|
69
|
+
degreesOfFreedom: number;
|
|
70
|
+
/** Approximate p-value (two-tailed) */
|
|
71
|
+
pValue: number;
|
|
72
|
+
/** Whether the difference is significant at 0.05 level */
|
|
73
|
+
significant: boolean;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Two-sample t-test (Welch's t-test)
|
|
77
|
+
*/
|
|
78
|
+
export declare function tTest(sample1: Float32Array | Float64Array | number[], sample2: Float32Array | Float64Array | number[]): TTestResult;
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Data Analysis Utilities
|
|
3
|
+
*
|
|
4
|
+
* General-purpose utilities for scientific data formatting,
|
|
5
|
+
* cycle detection, peak detection, and data validation.
|
|
6
|
+
*/
|
|
7
|
+
type SIPrefix = 'p' | 'n' | 'µ' | 'm' | '' | 'k' | 'M' | 'G';
|
|
8
|
+
export interface PrefixInfo {
|
|
9
|
+
symbol: SIPrefix;
|
|
10
|
+
factor: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Find the best SI prefix for a value
|
|
14
|
+
*/
|
|
15
|
+
export declare function getBestPrefix(value: number): PrefixInfo;
|
|
16
|
+
/**
|
|
17
|
+
* Format a value with automatic SI prefix
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* formatWithPrefix(0.000001, 'A') // "1.00 µA"
|
|
21
|
+
* formatWithPrefix(0.5, 'V') // "500 mV"
|
|
22
|
+
* formatWithPrefix(1500, 'm') // "1.50 km"
|
|
23
|
+
*/
|
|
24
|
+
export declare function formatWithPrefix(value: number, unit: string, decimals?: number): string;
|
|
25
|
+
/**
|
|
26
|
+
* Format a numeric value with specified decimals
|
|
27
|
+
* Automatically switches to scientific notation for very large/small values
|
|
28
|
+
*/
|
|
29
|
+
export declare function formatValue(value: number, decimals?: number): string;
|
|
30
|
+
/**
|
|
31
|
+
* Format value in scientific notation
|
|
32
|
+
*/
|
|
33
|
+
export declare function formatScientific(value: number, decimals?: number): string;
|
|
34
|
+
export interface CycleInfo {
|
|
35
|
+
/** Cycle number (1-indexed) */
|
|
36
|
+
number: number;
|
|
37
|
+
/** Start index in data array */
|
|
38
|
+
startIndex: number;
|
|
39
|
+
/** End index in data array */
|
|
40
|
+
endIndex: number;
|
|
41
|
+
/** Direction at start: 1 = forward, -1 = reverse */
|
|
42
|
+
direction: 1 | -1;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Detect cycles in oscillating data
|
|
46
|
+
*
|
|
47
|
+
* A cycle is complete when the signal returns to its starting value
|
|
48
|
+
* after going through both sweep directions. Useful for:
|
|
49
|
+
* - Cyclic voltammetry data
|
|
50
|
+
* - Periodic signals
|
|
51
|
+
* - Oscillation analysis
|
|
52
|
+
*
|
|
53
|
+
* @param signal - The signal data (e.g., potential, position, etc.)
|
|
54
|
+
* @param tolerance - How close to starting value to consider a cycle complete
|
|
55
|
+
*/
|
|
56
|
+
export declare function detectCycles(signal: Float32Array | Float64Array | number[], tolerance?: number): CycleInfo[];
|
|
57
|
+
/**
|
|
58
|
+
* Generate distinct colors for cycles/series
|
|
59
|
+
*
|
|
60
|
+
* Uses HSL color space to generate evenly distributed hues
|
|
61
|
+
*/
|
|
62
|
+
export declare function generateCycleColors(count: number): string[];
|
|
63
|
+
export interface Peak {
|
|
64
|
+
/** Index in data array */
|
|
65
|
+
index: number;
|
|
66
|
+
/** X value at peak */
|
|
67
|
+
x: number;
|
|
68
|
+
/** Y value at peak */
|
|
69
|
+
y: number;
|
|
70
|
+
/** Peak type */
|
|
71
|
+
type: 'max' | 'min';
|
|
72
|
+
/** Prominence of the peak */
|
|
73
|
+
prominence: number;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Detect peaks (local maxima and minima) in data
|
|
77
|
+
*
|
|
78
|
+
* Uses simple local extrema detection with optional prominence filtering.
|
|
79
|
+
* Useful for:
|
|
80
|
+
* - Signal peak detection
|
|
81
|
+
* - Finding local maxima/minima
|
|
82
|
+
* - Feature extraction
|
|
83
|
+
*
|
|
84
|
+
* @param x - X values (independent variable)
|
|
85
|
+
* @param y - Y values (dependent variable)
|
|
86
|
+
* @param options - Detection options
|
|
87
|
+
*/
|
|
88
|
+
export declare function detectPeaks(x: Float32Array | Float64Array | number[], y: Float32Array | Float64Array | number[], options?: {
|
|
89
|
+
/** Minimum prominence to be considered a peak */
|
|
90
|
+
minProminence?: number;
|
|
91
|
+
/** Only return 'max' or 'min' peaks */
|
|
92
|
+
type?: 'max' | 'min' | 'both';
|
|
93
|
+
}): Peak[];
|
|
94
|
+
export interface ValidationResult {
|
|
95
|
+
/** Whether all data is valid */
|
|
96
|
+
valid: boolean;
|
|
97
|
+
/** Number of invalid values (NaN, Infinity, etc.) */
|
|
98
|
+
invalidCount: number;
|
|
99
|
+
/** Index of first invalid value (-1 if all valid) */
|
|
100
|
+
firstInvalidIndex: number;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Validate that data contains only finite numbers
|
|
104
|
+
*
|
|
105
|
+
* Checks for NaN, Infinity, and -Infinity values.
|
|
106
|
+
* Useful for data quality checks before rendering.
|
|
107
|
+
*/
|
|
108
|
+
export declare function validateData(data: Float32Array | Float64Array | number[]): ValidationResult;
|
|
109
|
+
export interface DataStats {
|
|
110
|
+
min: number;
|
|
111
|
+
max: number;
|
|
112
|
+
mean: number;
|
|
113
|
+
stdDev: number;
|
|
114
|
+
count: number;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Calculate basic statistics for a dataset
|
|
118
|
+
*/
|
|
119
|
+
export declare function calculateStats(data: Float32Array | Float64Array | number[]): DataStats;
|
|
120
|
+
/**
|
|
121
|
+
* Apply moving average smoothing to data
|
|
122
|
+
*
|
|
123
|
+
* @param data - Input data array
|
|
124
|
+
* @param windowSize - Number of points to average (must be odd)
|
|
125
|
+
*/
|
|
126
|
+
export declare function movingAverage(data: Float32Array | Float64Array | number[], windowSize: number): Float32Array;
|
|
127
|
+
/**
|
|
128
|
+
* Downsample data using LTTB (Largest Triangle Three Buckets) algorithm
|
|
129
|
+
*
|
|
130
|
+
* Preserves visual characteristics while reducing point count.
|
|
131
|
+
* Ideal for rendering large datasets efficiently.
|
|
132
|
+
*
|
|
133
|
+
* @param x - X values
|
|
134
|
+
* @param y - Y values
|
|
135
|
+
* @param targetPoints - Desired number of output points
|
|
136
|
+
*/
|
|
137
|
+
export declare function downsampleLTTB(x: Float32Array | Float64Array, y: Float32Array | Float64Array, targetPoints: number): {
|
|
138
|
+
x: Float32Array;
|
|
139
|
+
y: Float32Array;
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Subtract a linear baseline from data
|
|
143
|
+
*
|
|
144
|
+
* @param x - X data
|
|
145
|
+
* @param y - Y data
|
|
146
|
+
* @param x1 - Start of baseline segment
|
|
147
|
+
* @param x2 - End of baseline segment
|
|
148
|
+
*/
|
|
149
|
+
export declare function subtractBaseline(x: Float32Array | number[], y: Float32Array | number[], x1: number, x2: number): Float32Array;
|
|
150
|
+
export {};
|