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,396 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tooltip System - Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* This module defines all types and interfaces for the high-performance
|
|
5
|
+
* tooltip system in Sci Plot.
|
|
6
|
+
*
|
|
7
|
+
* @module tooltip/types
|
|
8
|
+
*/
|
|
9
|
+
/** Base type for all tooltip data */
|
|
10
|
+
export type TooltipType = 'datapoint' | 'crosshair' | 'range' | 'annotation' | 'heatmap' | 'axis';
|
|
11
|
+
/** Union type for all tooltip data structures */
|
|
12
|
+
export type TooltipData = DataPointTooltip | CrosshairTooltip | RangeTooltip | AnnotationTooltip | HeatmapTooltip | AxisTooltip;
|
|
13
|
+
/**
|
|
14
|
+
* Data Point Tooltip - Shows when hovering over data points
|
|
15
|
+
*/
|
|
16
|
+
export interface DataPointTooltip {
|
|
17
|
+
type: 'datapoint';
|
|
18
|
+
/** Related series ID */
|
|
19
|
+
seriesId: string;
|
|
20
|
+
/** Series display name */
|
|
21
|
+
seriesName: string;
|
|
22
|
+
/** Series color */
|
|
23
|
+
seriesColor: string;
|
|
24
|
+
/** Data point index */
|
|
25
|
+
dataIndex: number;
|
|
26
|
+
/** X value in data coordinates */
|
|
27
|
+
dataX: number;
|
|
28
|
+
/** Y value in data coordinates */
|
|
29
|
+
dataY: number;
|
|
30
|
+
/** X value in pixels (canvas coordinates) */
|
|
31
|
+
pixelX: number;
|
|
32
|
+
/** Y value in pixels (canvas coordinates) */
|
|
33
|
+
pixelY: number;
|
|
34
|
+
/** Y error if available [minus, plus] */
|
|
35
|
+
yError?: [number, number];
|
|
36
|
+
/** X error if available [minus, plus] */
|
|
37
|
+
xError?: [number, number];
|
|
38
|
+
/** Cycle number (for CV data) */
|
|
39
|
+
cycle?: number;
|
|
40
|
+
/** Custom metadata from series */
|
|
41
|
+
metadata?: Record<string, unknown>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Crosshair Tooltip - Shows interpolated values at cursor X position
|
|
45
|
+
*/
|
|
46
|
+
export interface CrosshairTooltip {
|
|
47
|
+
type: 'crosshair';
|
|
48
|
+
/** Cursor X in pixels */
|
|
49
|
+
cursorX: number;
|
|
50
|
+
/** Cursor Y in pixels */
|
|
51
|
+
cursorY: number;
|
|
52
|
+
/** X value in data coordinates */
|
|
53
|
+
dataX: number;
|
|
54
|
+
/** Interpolated values for each visible series */
|
|
55
|
+
interpolatedValues: CrosshairSeriesValue[];
|
|
56
|
+
}
|
|
57
|
+
export interface CrosshairSeriesValue {
|
|
58
|
+
/** Series ID */
|
|
59
|
+
seriesId: string;
|
|
60
|
+
/** Series display name */
|
|
61
|
+
seriesName: string;
|
|
62
|
+
/** Series color */
|
|
63
|
+
seriesColor: string;
|
|
64
|
+
/** Interpolated X value */
|
|
65
|
+
x: number;
|
|
66
|
+
/** Interpolated Y value */
|
|
67
|
+
y: number;
|
|
68
|
+
/** Whether this is an exact data point or interpolated */
|
|
69
|
+
isInterpolated: boolean;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Range Tooltip - Shows statistics for selected range
|
|
73
|
+
*/
|
|
74
|
+
export interface RangeTooltip {
|
|
75
|
+
type: 'range';
|
|
76
|
+
/** Start X value */
|
|
77
|
+
xMin: number;
|
|
78
|
+
/** End X value */
|
|
79
|
+
xMax: number;
|
|
80
|
+
/** Start Y value (for box selection) */
|
|
81
|
+
yMin?: number;
|
|
82
|
+
/** End Y value (for box selection) */
|
|
83
|
+
yMax?: number;
|
|
84
|
+
/** Statistics for the range */
|
|
85
|
+
statistics: RangeStatistics;
|
|
86
|
+
}
|
|
87
|
+
export interface RangeStatistics {
|
|
88
|
+
/** Number of points in range */
|
|
89
|
+
count: number;
|
|
90
|
+
/** Mean Y value */
|
|
91
|
+
mean?: number;
|
|
92
|
+
/** Minimum Y value */
|
|
93
|
+
min?: number;
|
|
94
|
+
/** Maximum Y value */
|
|
95
|
+
max?: number;
|
|
96
|
+
/** Standard deviation */
|
|
97
|
+
stdDev?: number;
|
|
98
|
+
/** Integrated area under curve */
|
|
99
|
+
area?: number;
|
|
100
|
+
/** X value at peak Y */
|
|
101
|
+
peakX?: number;
|
|
102
|
+
/** Peak Y value */
|
|
103
|
+
peakY?: number;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Annotation Tooltip - Shows when hovering over annotations
|
|
107
|
+
*/
|
|
108
|
+
export interface AnnotationTooltip {
|
|
109
|
+
type: 'annotation';
|
|
110
|
+
/** Annotation unique ID */
|
|
111
|
+
annotationId: string;
|
|
112
|
+
/** Type of annotation */
|
|
113
|
+
annotationType: 'horizontal-line' | 'vertical-line' | 'band' | 'text' | 'arrow';
|
|
114
|
+
/** Annotation label if any */
|
|
115
|
+
label?: string;
|
|
116
|
+
/** Position values */
|
|
117
|
+
value?: number;
|
|
118
|
+
valueX?: number;
|
|
119
|
+
valueY?: number;
|
|
120
|
+
/** Custom metadata */
|
|
121
|
+
metadata?: Record<string, unknown>;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Heatmap Tooltip - Shows Z values in heatmaps
|
|
125
|
+
*/
|
|
126
|
+
export interface HeatmapTooltip {
|
|
127
|
+
type: 'heatmap';
|
|
128
|
+
/** Related series ID */
|
|
129
|
+
seriesId: string;
|
|
130
|
+
/** Series display name */
|
|
131
|
+
seriesName: string;
|
|
132
|
+
/** Grid X index (column) */
|
|
133
|
+
xIndex: number;
|
|
134
|
+
/** Grid Y index (row) */
|
|
135
|
+
yIndex: number;
|
|
136
|
+
/** X value in data coordinates */
|
|
137
|
+
dataX: number;
|
|
138
|
+
/** Y value in data coordinates */
|
|
139
|
+
dataY: number;
|
|
140
|
+
/** Z value (intensity) */
|
|
141
|
+
zValue: number;
|
|
142
|
+
/** Mapped color (hex) */
|
|
143
|
+
mappedColor?: string;
|
|
144
|
+
/** X value in pixels (canvas coordinates) */
|
|
145
|
+
pixelX: number;
|
|
146
|
+
/** Y value in pixels (canvas coordinates) */
|
|
147
|
+
pixelY: number;
|
|
148
|
+
/** Color scale information if available */
|
|
149
|
+
colorScale?: {
|
|
150
|
+
name: string;
|
|
151
|
+
min: number;
|
|
152
|
+
max: number;
|
|
153
|
+
isLogScale?: boolean;
|
|
154
|
+
colors?: string[];
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Axis Tooltip - Shows values on axis hover
|
|
159
|
+
*/
|
|
160
|
+
export interface AxisTooltip {
|
|
161
|
+
type: 'axis';
|
|
162
|
+
/** Which axis */
|
|
163
|
+
axis: 'x' | 'y';
|
|
164
|
+
/** Axis ID (for multiple Y axes) */
|
|
165
|
+
axisId?: string;
|
|
166
|
+
/** Raw value */
|
|
167
|
+
value: number;
|
|
168
|
+
/** Formatted value string */
|
|
169
|
+
formattedValue: string;
|
|
170
|
+
/** Pixel position of value */
|
|
171
|
+
pixelPosition: number;
|
|
172
|
+
}
|
|
173
|
+
/** Position where tooltip arrow points */
|
|
174
|
+
export type ArrowPosition = 'top' | 'bottom' | 'left' | 'right' | 'none';
|
|
175
|
+
/** Preferred tooltip placement */
|
|
176
|
+
export type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right' | 'auto';
|
|
177
|
+
export interface TooltipPosition {
|
|
178
|
+
/** X position of tooltip (content corner) */
|
|
179
|
+
x: number;
|
|
180
|
+
/** Y position of tooltip */
|
|
181
|
+
y: number;
|
|
182
|
+
/** Where the arrow points */
|
|
183
|
+
arrowPosition: ArrowPosition;
|
|
184
|
+
/** Arrow offset from edge (pixels) */
|
|
185
|
+
arrowOffset: number;
|
|
186
|
+
/** Whether position was flipped due to constraints */
|
|
187
|
+
wasFlipped: boolean;
|
|
188
|
+
}
|
|
189
|
+
export interface TooltipMeasurement {
|
|
190
|
+
/** Content width */
|
|
191
|
+
width: number;
|
|
192
|
+
/** Content height */
|
|
193
|
+
height: number;
|
|
194
|
+
/** Padding around content */
|
|
195
|
+
padding: {
|
|
196
|
+
top: number;
|
|
197
|
+
right: number;
|
|
198
|
+
bottom: number;
|
|
199
|
+
left: number;
|
|
200
|
+
};
|
|
201
|
+
/** Arrow dimensions if applicable */
|
|
202
|
+
arrow?: {
|
|
203
|
+
width: number;
|
|
204
|
+
height: number;
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
export interface TooltipTheme {
|
|
208
|
+
backgroundColor: string;
|
|
209
|
+
backgroundGradient?: string;
|
|
210
|
+
borderColor: string;
|
|
211
|
+
borderWidth: number;
|
|
212
|
+
borderRadius: number;
|
|
213
|
+
backdropBlur: number;
|
|
214
|
+
shadow: TooltipShadow;
|
|
215
|
+
fontFamily: string;
|
|
216
|
+
textColor: string;
|
|
217
|
+
textSecondaryColor: string;
|
|
218
|
+
titleFontSize: number;
|
|
219
|
+
titleFontWeight: number | string;
|
|
220
|
+
contentFontSize: number;
|
|
221
|
+
lineHeight: number;
|
|
222
|
+
padding: {
|
|
223
|
+
top: number;
|
|
224
|
+
right: number;
|
|
225
|
+
bottom: number;
|
|
226
|
+
left: number;
|
|
227
|
+
};
|
|
228
|
+
itemGap: number;
|
|
229
|
+
headerGap: number;
|
|
230
|
+
showSeriesIndicator: boolean;
|
|
231
|
+
seriesIndicatorSize: number;
|
|
232
|
+
showHeaderSeparator: boolean;
|
|
233
|
+
separatorColor: string;
|
|
234
|
+
showArrow: boolean;
|
|
235
|
+
arrowSize: number;
|
|
236
|
+
}
|
|
237
|
+
export interface TooltipShadow {
|
|
238
|
+
color: string;
|
|
239
|
+
offsetX: number;
|
|
240
|
+
offsetY: number;
|
|
241
|
+
blur: number;
|
|
242
|
+
}
|
|
243
|
+
export interface TooltipOptions {
|
|
244
|
+
/** Enable tooltips globally (default: true) */
|
|
245
|
+
enabled?: boolean;
|
|
246
|
+
/** Delay before showing tooltip (ms) */
|
|
247
|
+
showDelay?: number;
|
|
248
|
+
/** Delay before hiding tooltip (ms) */
|
|
249
|
+
hideDelay?: number;
|
|
250
|
+
/** Follow cursor or snap to data point */
|
|
251
|
+
followCursor?: boolean;
|
|
252
|
+
/** Offset from cursor/point */
|
|
253
|
+
offset?: {
|
|
254
|
+
x: number;
|
|
255
|
+
y: number;
|
|
256
|
+
};
|
|
257
|
+
dataPoint?: DataPointTooltipOptions;
|
|
258
|
+
crosshair?: CrosshairTooltipOptions;
|
|
259
|
+
range?: RangeTooltipOptions;
|
|
260
|
+
annotation?: AnnotationTooltipOptions;
|
|
261
|
+
heatmap?: HeatmapTooltipOptions;
|
|
262
|
+
positioning?: 'auto' | 'fixed' | 'follow';
|
|
263
|
+
preferredPosition?: TooltipPlacement;
|
|
264
|
+
constrainToPlotArea?: boolean;
|
|
265
|
+
constrainToContainer?: boolean;
|
|
266
|
+
autoFlip?: boolean;
|
|
267
|
+
theme?: string | Partial<TooltipTheme>;
|
|
268
|
+
/**
|
|
269
|
+
* How to find the nearest data point.
|
|
270
|
+
* - 'nearest': Full euclidean distance (accurate but slower)
|
|
271
|
+
* - 'x-only': Only match by X coordinate (fast, best for large datasets)
|
|
272
|
+
* - 'auto': Automatically choose based on dataset size
|
|
273
|
+
* Default: 'auto'
|
|
274
|
+
*/
|
|
275
|
+
snapMode?: 'nearest' | 'x-only' | 'auto';
|
|
276
|
+
/**
|
|
277
|
+
* Number of data points above which to auto-enable X-only snap mode.
|
|
278
|
+
* Default: 50000
|
|
279
|
+
*/
|
|
280
|
+
largeDatasetThreshold?: number;
|
|
281
|
+
}
|
|
282
|
+
export interface DataPointTooltipOptions {
|
|
283
|
+
enabled?: boolean;
|
|
284
|
+
templateId?: string;
|
|
285
|
+
snapToPoint?: boolean;
|
|
286
|
+
hitRadius?: number;
|
|
287
|
+
formatter?: TooltipFormatter<DataPointTooltip>;
|
|
288
|
+
}
|
|
289
|
+
export interface CrosshairTooltipOptions {
|
|
290
|
+
enabled?: boolean;
|
|
291
|
+
templateId?: string;
|
|
292
|
+
interpolate?: boolean;
|
|
293
|
+
visibleSeriesOnly?: boolean;
|
|
294
|
+
formatter?: TooltipFormatter<CrosshairTooltip>;
|
|
295
|
+
}
|
|
296
|
+
export interface RangeTooltipOptions {
|
|
297
|
+
enabled?: boolean;
|
|
298
|
+
templateId?: string;
|
|
299
|
+
calculateStats?: boolean;
|
|
300
|
+
formatter?: TooltipFormatter<RangeTooltip>;
|
|
301
|
+
}
|
|
302
|
+
export interface AnnotationTooltipOptions {
|
|
303
|
+
enabled?: boolean;
|
|
304
|
+
templateId?: string;
|
|
305
|
+
formatter?: TooltipFormatter<AnnotationTooltip>;
|
|
306
|
+
}
|
|
307
|
+
export interface HeatmapTooltipOptions {
|
|
308
|
+
enabled?: boolean;
|
|
309
|
+
templateId?: string;
|
|
310
|
+
showColorInfo?: boolean;
|
|
311
|
+
formatter?: TooltipFormatter<HeatmapTooltip>;
|
|
312
|
+
}
|
|
313
|
+
/** Custom formatter function for tooltip content */
|
|
314
|
+
export type TooltipFormatter<T extends TooltipData> = (data: T, defaultFormat: string) => string | TooltipFormattedContent;
|
|
315
|
+
export interface TooltipFormattedContent {
|
|
316
|
+
/** Title/header line */
|
|
317
|
+
title?: string;
|
|
318
|
+
/** Content lines */
|
|
319
|
+
lines: TooltipLine[];
|
|
320
|
+
/** Footer line */
|
|
321
|
+
footer?: string;
|
|
322
|
+
}
|
|
323
|
+
export interface TooltipLine {
|
|
324
|
+
/** Label (left side) */
|
|
325
|
+
label: string;
|
|
326
|
+
/** Value (right side) */
|
|
327
|
+
value: string;
|
|
328
|
+
/** Optional color indicator */
|
|
329
|
+
color?: string;
|
|
330
|
+
/** Optional icon */
|
|
331
|
+
icon?: string;
|
|
332
|
+
}
|
|
333
|
+
export interface TooltipTemplate<T extends TooltipData = TooltipData> {
|
|
334
|
+
/** Unique template ID */
|
|
335
|
+
readonly id: string;
|
|
336
|
+
/** Display name */
|
|
337
|
+
readonly name: string;
|
|
338
|
+
/** Supported tooltip types */
|
|
339
|
+
readonly supportedTypes: TooltipType[];
|
|
340
|
+
/**
|
|
341
|
+
* Measure the tooltip dimensions
|
|
342
|
+
*/
|
|
343
|
+
measure(ctx: CanvasRenderingContext2D, data: T, theme: TooltipTheme): TooltipMeasurement;
|
|
344
|
+
/**
|
|
345
|
+
* Render the tooltip to canvas
|
|
346
|
+
*/
|
|
347
|
+
render(ctx: CanvasRenderingContext2D, data: T, position: TooltipPosition, measurement: TooltipMeasurement, theme: TooltipTheme): void;
|
|
348
|
+
}
|
|
349
|
+
export interface TooltipEventMap {
|
|
350
|
+
/** Before tooltip shows */
|
|
351
|
+
beforeShow: TooltipShowEvent;
|
|
352
|
+
/** After tooltip shows */
|
|
353
|
+
show: TooltipVisibilityEvent;
|
|
354
|
+
/** Before tooltip hides */
|
|
355
|
+
beforeHide: TooltipHideEvent;
|
|
356
|
+
/** After tooltip hides */
|
|
357
|
+
hide: TooltipVisibilityEvent;
|
|
358
|
+
/** Tooltip data updated */
|
|
359
|
+
update: TooltipUpdateEvent;
|
|
360
|
+
/** Tooltip position changed */
|
|
361
|
+
move: TooltipMoveEvent;
|
|
362
|
+
}
|
|
363
|
+
export interface TooltipShowEvent {
|
|
364
|
+
tooltipId: string;
|
|
365
|
+
data: TooltipData;
|
|
366
|
+
position: TooltipPosition;
|
|
367
|
+
cancel: () => void;
|
|
368
|
+
}
|
|
369
|
+
export interface TooltipHideEvent {
|
|
370
|
+
tooltipId: string;
|
|
371
|
+
cancel: () => void;
|
|
372
|
+
}
|
|
373
|
+
export interface TooltipVisibilityEvent {
|
|
374
|
+
tooltipId: string;
|
|
375
|
+
}
|
|
376
|
+
export interface TooltipUpdateEvent {
|
|
377
|
+
tooltipId: string;
|
|
378
|
+
previousData: TooltipData;
|
|
379
|
+
newData: TooltipData;
|
|
380
|
+
}
|
|
381
|
+
export interface TooltipMoveEvent {
|
|
382
|
+
tooltipId: string;
|
|
383
|
+
previousPosition: TooltipPosition;
|
|
384
|
+
newPosition: TooltipPosition;
|
|
385
|
+
}
|
|
386
|
+
export interface ShowTooltipOptions {
|
|
387
|
+
/** Custom position (overrides automatic) */
|
|
388
|
+
position?: {
|
|
389
|
+
x: number;
|
|
390
|
+
y: number;
|
|
391
|
+
};
|
|
392
|
+
/** Template to use */
|
|
393
|
+
templateId?: string;
|
|
394
|
+
/** Duration before auto-hide (0 = no auto-hide) */
|
|
395
|
+
duration?: number;
|
|
396
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|