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,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sci Plot - Plugin System
|
|
3
|
+
*
|
|
4
|
+
* Comprehensive plugin architecture for extending chart functionality.
|
|
5
|
+
*
|
|
6
|
+
* Features:
|
|
7
|
+
* - Complete lifecycle hooks (init, render, data, view, interaction, destroy)
|
|
8
|
+
* - Rich plugin context with access to all chart internals
|
|
9
|
+
* - Plugin storage for persistent state
|
|
10
|
+
* - Dependency management between plugins
|
|
11
|
+
* - Global registry for third-party plugins
|
|
12
|
+
* - Built-in plugins for common use cases
|
|
13
|
+
*
|
|
14
|
+
* @packageDocumentation
|
|
15
|
+
* @module plugins
|
|
16
|
+
*/
|
|
17
|
+
export type { PluginVersion, PluginCapability, PluginManifest, PluginContext, RenderContext, CoordinateContext, DataContext, UIContext, EventContext, PluginStorage, PluginLogger, OverlayOptions, NotificationOptions, PickResult, BeforeRenderEvent, AfterRenderEvent, InteractionEvent, ViewChangeEvent, SeriesChangeEvent, DataUpdateEvent, ChartPlugin, PluginFactory, TypedPlugin, PluginManager, PluginRegistry, PluginRegistryEntry, } from './types';
|
|
18
|
+
export { createPluginContext } from './PluginContext';
|
|
19
|
+
export type { ContextDependencies } from './PluginContext';
|
|
20
|
+
export { PluginManagerImpl } from './PluginManager';
|
|
21
|
+
export { getPluginRegistry, registerPlugin, definePlugin, defineAndRegister, loadPlugin, listPluginsByCategory, validateManifest, checkPluginCompatibility, } from './PluginRegistry';
|
|
22
|
+
export { CrosshairPlugin, StatsPlugin, WatermarkPlugin, GridHighlightPlugin, DataLoggerPlugin, DirectionIndicatorPlugin, BuiltinPlugins, type CrosshairPluginConfig, type StatsPluginConfig, type WatermarkPluginConfig, type GridHighlightConfig, type DataLoggerConfig, type DirectionIndicatorConfig, } from './builtins';
|
|
23
|
+
export { Plugin3D, type Plugin3DConfig } from './3d';
|
|
24
|
+
export { PluginGpu, type PluginGpuConfig } from './gpu';
|
|
25
|
+
export { PluginAnalysis, type PluginAnalysisConfig } from './analysis';
|
|
26
|
+
export { PluginTools, type PluginToolsConfig } from './tools';
|
|
27
|
+
export { PluginAnnotations, type PluginAnnotationsConfig } from './annotations';
|
|
28
|
+
export { PluginStreaming, type PluginStreamingConfig } from './streaming';
|
|
29
|
+
export { PluginThemeEditor, type PluginThemeEditorConfig } from './theme-editor';
|
|
30
|
+
export { PluginI18n, type PluginI18nConfig } from './i18n';
|
|
31
|
+
export { PluginKeyboard, type PluginKeyboardConfig } from './keyboard';
|
|
32
|
+
export { PluginClipboard, type PluginClipboardConfig } from './clipboard';
|
|
33
|
+
export { PluginSync, type PluginSyncConfig } from './sync';
|
|
34
|
+
export { PluginDebug, type PluginDebugConfig } from './debug';
|
|
35
|
+
export { PluginLoading, type PluginLoadingConfig } from './loading';
|
|
36
|
+
export { PluginDataExport, type PluginDataExportConfig } from './data-export';
|
|
37
|
+
export { PluginContextMenu, type PluginContextMenuConfig } from './context-menu';
|
|
38
|
+
export { PluginAnomalyDetection, type PluginAnomalyDetectionConfig, type AnomalyDetectionResult, type AnomalyPoint, type AnomalyMethod } from './anomaly-detection';
|
|
39
|
+
export { PluginMLIntegration, type PluginMLIntegrationConfig, type MLIntegrationAPI, type MLModelAPI, type PredictionResult, type VisualizationConfig } from './ml-integration';
|
|
40
|
+
export { PluginPatternRecognition, type PluginPatternRecognitionConfig, type PatternRecognitionAPI, type PatternMatch, type PatternDetectionResult } from './pattern-recognition';
|
|
41
|
+
export { PluginRegression, type PluginRegressionConfig, type RegressionAPI, type RegressionResult, type RegressionData } from './regression';
|
|
42
|
+
export { PluginRadar, type PluginRadarConfig, type RadarAPI, type RadarSeriesData, type RadarPoint } from './radar';
|
|
43
|
+
export { PluginSnapshot, type PluginSnapshotConfig, type SnapshotExportAPI, type SnapshotExportOptions, type SnapshotResolution, type SnapshotFormat } from './snapshot';
|
|
44
|
+
export { PluginDataTransform, type PluginDataTransformConfig, type DataTransformAPI, type TransformOp, type TransformType } from './data-transform';
|
|
45
|
+
export { PluginLaTeX, type PluginLaTeXConfig, type LaTeXPluginAPI, type LaTeXDimensions } from './latex';
|
|
46
|
+
export * from './forecasting';
|
|
47
|
+
export { PluginDragEdit, type PluginDragEditConfig, type DragEditAPI, type DragEditEvent } from './drag-edit';
|
|
48
|
+
export { PluginCaching, type PluginCachingConfig, type CachingAPI, type CacheStats } from './caching';
|
|
49
|
+
export { PluginLazyLoad, type PluginLazyLoadConfig, type LazyLoadAPI, type DataProvider } from './lazy-load';
|
|
50
|
+
export { PluginBrokenAxis, type PluginBrokenAxisConfig, type BrokenAxisAPI, type AxisBreak } from './broken-axis';
|
|
51
|
+
export { PluginVideoRecorder, type PluginVideoRecorderConfig, type VideoRecorderAPI, type VideoRecorderOptions } from './video-recorder';
|
|
52
|
+
export { PluginOffscreen, type PluginOffscreenConfig, type OffscreenAPI, type OffscreenStats, type OffscreenMode, type OffscreenTransferMode, type OffscreenFallbackMode } from './offscreen';
|
|
53
|
+
export { PluginVirtualization, type PluginVirtualizationConfig, type VirtualizationAPI, type VirtualizationStats, type VirtualizationMode, type VirtualizationStrategy } from './virtualization';
|
|
54
|
+
export { PluginROI, type PluginROIConfig, type RoiAPI, type RoiRegion, type RoiPoint, type RoiMaskResult, type RoiTool, type RoiEvent, type RoiSelectedEvent } from './roi';
|
|
55
|
+
/**
|
|
56
|
+
* Helper function to create a plugin with proper typing
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```typescript
|
|
60
|
+
* const MyPlugin = createPlugin({
|
|
61
|
+
* manifest: {
|
|
62
|
+
* name: 'my-plugin',
|
|
63
|
+
* version: '1.0.0',
|
|
64
|
+
* provides: ['analysis'],
|
|
65
|
+
* },
|
|
66
|
+
* onInit(ctx) {
|
|
67
|
+
* ctx.log.info('Plugin initialized!');
|
|
68
|
+
* },
|
|
69
|
+
* onAfterRender(ctx, event) {
|
|
70
|
+
* // Custom rendering
|
|
71
|
+
* },
|
|
72
|
+
* api: {
|
|
73
|
+
* doSomething() { return 'done'; }
|
|
74
|
+
* }
|
|
75
|
+
* });
|
|
76
|
+
*
|
|
77
|
+
* chart.use(MyPlugin);
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
export declare function createPlugin<TConfig = void, TApi extends Record<string, unknown> = {}>(definition: import('./types').ChartPlugin<TConfig> & {
|
|
81
|
+
api?: TApi;
|
|
82
|
+
}): import('./types').ChartPlugin<TConfig> & {
|
|
83
|
+
api: TApi;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Helper function to create a configurable plugin factory
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```typescript
|
|
90
|
+
* interface MyConfig {
|
|
91
|
+
* color: string;
|
|
92
|
+
* enabled: boolean;
|
|
93
|
+
* }
|
|
94
|
+
*
|
|
95
|
+
* const MyPlugin = createConfigurablePlugin<MyConfig>(
|
|
96
|
+
* {
|
|
97
|
+
* name: 'my-plugin',
|
|
98
|
+
* version: '1.0.0',
|
|
99
|
+
* },
|
|
100
|
+
* (config) => ({
|
|
101
|
+
* onInit(ctx) {
|
|
102
|
+
* ctx.log.info(`Color: ${config?.color}`);
|
|
103
|
+
* }
|
|
104
|
+
* })
|
|
105
|
+
* );
|
|
106
|
+
*
|
|
107
|
+
* chart.use(MyPlugin({ color: 'red', enabled: true }));
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
export declare function createConfigurablePlugin<TConfig = void>(manifest: import('./types').PluginManifest, factory: (config?: TConfig) => Omit<import('./types').ChartPlugin<TConfig>, "manifest">): import('./types').PluginFactory<TConfig>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { KeyBindingManager, DEFAULT_KEY_BINDINGS, KeyBinding, KeyBindingManagerOptions } from '../../core/keybindings';
|
|
2
|
+
import { ChartPlugin } from '../types';
|
|
3
|
+
|
|
4
|
+
export interface PluginKeyboardConfig extends Partial<KeyBindingManagerOptions> {
|
|
5
|
+
/** Additional shortcuts to register */
|
|
6
|
+
extraShortcuts?: KeyBinding[];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* SciPlot Keyboard Plugin
|
|
10
|
+
*
|
|
11
|
+
* Adds support for keyboard shortcuts and hotkeys.
|
|
12
|
+
*/
|
|
13
|
+
export declare function PluginKeyboard(_config?: PluginKeyboardConfig): ChartPlugin<PluginKeyboardConfig>;
|
|
14
|
+
export { KeyBindingManager, DEFAULT_KEY_BINDINGS };
|
|
15
|
+
export default PluginKeyboard;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyboard.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ChartPlugin } from '../types';
|
|
2
|
+
import { PluginLaTeXConfig, LaTeXPluginAPI, LaTeXDimensions } from './types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* LaTeX rendering plugin
|
|
6
|
+
*/
|
|
7
|
+
export declare function PluginLaTeX(config?: PluginLaTeXConfig): ChartPlugin<PluginLaTeXConfig>;
|
|
8
|
+
export type { PluginLaTeXConfig, LaTeXPluginAPI, LaTeXDimensions };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Greek letters and mathematical symbols for LaTeX rendering
|
|
3
|
+
* @module plugins/latex/symbols
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Greek letters mapping (lowercase)
|
|
7
|
+
*/
|
|
8
|
+
export declare const GREEK_LOWERCASE: Record<string, string>;
|
|
9
|
+
/**
|
|
10
|
+
* Greek letters mapping (uppercase)
|
|
11
|
+
*/
|
|
12
|
+
export declare const GREEK_UPPERCASE: Record<string, string>;
|
|
13
|
+
/**
|
|
14
|
+
* Mathematical operators
|
|
15
|
+
*/
|
|
16
|
+
export declare const MATH_OPERATORS: Record<string, string>;
|
|
17
|
+
/**
|
|
18
|
+
* All symbols combined
|
|
19
|
+
*/
|
|
20
|
+
export declare const ALL_SYMBOLS: Record<string, string>;
|
|
21
|
+
/**
|
|
22
|
+
* Get Unicode symbol for a LaTeX command
|
|
23
|
+
*/
|
|
24
|
+
export declare function getSymbol(command: string): string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Check if a command is a known symbol
|
|
27
|
+
*/
|
|
28
|
+
export declare function isSymbol(command: string): boolean;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Types for the LaTeX rendering plugin
|
|
3
|
+
* @module plugins/latex/types
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Configuration for the LaTeX plugin
|
|
7
|
+
*/
|
|
8
|
+
export interface PluginLaTeXConfig {
|
|
9
|
+
/**
|
|
10
|
+
* Default font size for LaTeX text (in pixels)
|
|
11
|
+
* @default 14
|
|
12
|
+
*/
|
|
13
|
+
fontSize?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Default font family
|
|
16
|
+
* @default 'serif'
|
|
17
|
+
*/
|
|
18
|
+
fontFamily?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Default text color
|
|
21
|
+
* @default '#000000'
|
|
22
|
+
*/
|
|
23
|
+
color?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Enable caching of rendered LaTeX
|
|
26
|
+
* @default true
|
|
27
|
+
*/
|
|
28
|
+
enableCache?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Custom symbol mappings
|
|
31
|
+
*/
|
|
32
|
+
customSymbols?: Record<string, string>;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* LaTeX node types in the abstract syntax tree
|
|
36
|
+
*/
|
|
37
|
+
export type LaTeXNodeType = 'text' | 'textgroup' | 'superscript' | 'subscript' | 'fraction' | 'sqrt' | 'symbol' | 'operator' | 'group';
|
|
38
|
+
/**
|
|
39
|
+
* Base LaTeX node in the AST
|
|
40
|
+
*/
|
|
41
|
+
export interface LaTeXNode {
|
|
42
|
+
type: LaTeXNodeType;
|
|
43
|
+
content?: string;
|
|
44
|
+
children?: LaTeXNode[];
|
|
45
|
+
numerator?: LaTeXNode[];
|
|
46
|
+
denominator?: LaTeXNode[];
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Rendering context for LaTeX
|
|
50
|
+
*/
|
|
51
|
+
export interface LaTeXRenderContext {
|
|
52
|
+
ctx: CanvasRenderingContext2D;
|
|
53
|
+
x: number;
|
|
54
|
+
y: number;
|
|
55
|
+
fontSize: number;
|
|
56
|
+
fontFamily: string;
|
|
57
|
+
color: string;
|
|
58
|
+
scale: number;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Measured dimensions of rendered LaTeX
|
|
62
|
+
*/
|
|
63
|
+
export interface LaTeXDimensions {
|
|
64
|
+
width: number;
|
|
65
|
+
height: number;
|
|
66
|
+
baseline: number;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* API exposed by the LaTeX plugin
|
|
70
|
+
*/
|
|
71
|
+
export interface LaTeXPluginAPI {
|
|
72
|
+
/**
|
|
73
|
+
* Render LaTeX string to canvas at specified position
|
|
74
|
+
*/
|
|
75
|
+
render(latex: string, ctx: CanvasRenderingContext2D, x: number, y: number, options?: Partial<PluginLaTeXConfig>): LaTeXDimensions;
|
|
76
|
+
/**
|
|
77
|
+
* Measure LaTeX string dimensions without rendering
|
|
78
|
+
*/
|
|
79
|
+
measure(latex: string, options?: Partial<PluginLaTeXConfig>): LaTeXDimensions;
|
|
80
|
+
/**
|
|
81
|
+
* Clear the rendering cache
|
|
82
|
+
*/
|
|
83
|
+
clearCache(): void;
|
|
84
|
+
/**
|
|
85
|
+
* Index signature for compatibility
|
|
86
|
+
*/
|
|
87
|
+
[key: string]: any;
|
|
88
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PluginLazyLoadConfig } from './types';
|
|
2
|
+
import { ChartPlugin } from '../types';
|
|
3
|
+
|
|
4
|
+
export declare function PluginLazyLoad(userConfig?: Partial<PluginLazyLoadConfig>): ChartPlugin<PluginLazyLoadConfig>;
|
|
5
|
+
export default PluginLazyLoad;
|
|
6
|
+
export type { PluginLazyLoadConfig, LazyLoadAPI, DataProvider, DataChunk, LoadProgressEvent, } from './types';
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Types for lazy loading plugin
|
|
3
|
+
* @module plugins/lazy-load/types
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Data chunk for lazy loading
|
|
7
|
+
*/
|
|
8
|
+
export interface DataChunk {
|
|
9
|
+
/** Start index in full dataset */
|
|
10
|
+
startIndex: number;
|
|
11
|
+
/** End index in full dataset */
|
|
12
|
+
endIndex: number;
|
|
13
|
+
/** X data */
|
|
14
|
+
x: Float32Array | Float64Array;
|
|
15
|
+
/** Y data */
|
|
16
|
+
y: Float32Array | Float64Array;
|
|
17
|
+
/** Chunk loaded timestamp */
|
|
18
|
+
loadedAt: number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Data provider interface
|
|
22
|
+
*/
|
|
23
|
+
export interface DataProvider {
|
|
24
|
+
/** Total number of points */
|
|
25
|
+
getTotalCount(): number;
|
|
26
|
+
/** Load data chunk */
|
|
27
|
+
loadChunk(startIndex: number, endIndex: number): Promise<DataChunk>;
|
|
28
|
+
/** Optional: Get data range for optimization */
|
|
29
|
+
getRange?(): {
|
|
30
|
+
xMin: number;
|
|
31
|
+
xMax: number;
|
|
32
|
+
yMin: number;
|
|
33
|
+
yMax: number;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Loading progress event
|
|
38
|
+
*/
|
|
39
|
+
export interface LoadProgressEvent {
|
|
40
|
+
/** Series ID */
|
|
41
|
+
seriesId: string;
|
|
42
|
+
/** Loaded points so far */
|
|
43
|
+
loadedPoints: number;
|
|
44
|
+
/** Total points */
|
|
45
|
+
totalPoints: number;
|
|
46
|
+
/** Progress 0-1 */
|
|
47
|
+
progress: number;
|
|
48
|
+
/** Current chunk being loaded */
|
|
49
|
+
currentChunk: number;
|
|
50
|
+
/** Total chunks */
|
|
51
|
+
totalChunks: number;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Plugin configuration
|
|
55
|
+
*/
|
|
56
|
+
export interface PluginLazyLoadConfig {
|
|
57
|
+
/** Enable lazy loading (default: true) */
|
|
58
|
+
enabled?: boolean;
|
|
59
|
+
/** Chunk size in points (default: 10000) */
|
|
60
|
+
chunkSize?: number;
|
|
61
|
+
/** Viewport buffer multiplier (default: 2) - load 2x viewport */
|
|
62
|
+
viewportBuffer?: number;
|
|
63
|
+
/** Auto-load on zoom/pan (default: true) */
|
|
64
|
+
autoLoad?: boolean;
|
|
65
|
+
/** Unload distant chunks to save memory (default: true) */
|
|
66
|
+
autoUnload?: boolean;
|
|
67
|
+
/** Distance threshold for unloading (in viewports, default: 5) */
|
|
68
|
+
unloadThreshold?: number;
|
|
69
|
+
/** Preload adjacent chunks (default: true) */
|
|
70
|
+
preloadAdjacent?: boolean;
|
|
71
|
+
/** Maximum loaded chunks (default: 100) */
|
|
72
|
+
maxLoadedChunks?: number;
|
|
73
|
+
/** Callbacks */
|
|
74
|
+
onLoadStart?: (event: LoadProgressEvent) => void;
|
|
75
|
+
onLoadProgress?: (event: LoadProgressEvent) => void;
|
|
76
|
+
onLoadComplete?: (event: LoadProgressEvent) => void;
|
|
77
|
+
onLoadError?: (error: Error, seriesId: string) => void;
|
|
78
|
+
/** Enable debug logging (default: false) */
|
|
79
|
+
debug?: boolean;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Registered series info
|
|
83
|
+
*/
|
|
84
|
+
export interface LazyLoadedSeries {
|
|
85
|
+
/** Series ID */
|
|
86
|
+
id: string;
|
|
87
|
+
/** Data provider */
|
|
88
|
+
provider: DataProvider;
|
|
89
|
+
/** Loaded chunks */
|
|
90
|
+
chunks: Map<number, DataChunk>;
|
|
91
|
+
/** Currently loading chunks */
|
|
92
|
+
loading: Set<number>;
|
|
93
|
+
/** Total points */
|
|
94
|
+
totalPoints: number;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Plugin API
|
|
98
|
+
*/
|
|
99
|
+
export interface LazyLoadAPI {
|
|
100
|
+
/** Register a series for lazy loading */
|
|
101
|
+
registerSeries(seriesId: string, provider: DataProvider): void;
|
|
102
|
+
/** Unregister a series */
|
|
103
|
+
unregisterSeries(seriesId: string): void;
|
|
104
|
+
/** Force load specific range */
|
|
105
|
+
loadRange(seriesId: string, startIndex: number, endIndex: number): Promise<void>;
|
|
106
|
+
/** Load visible data for all series */
|
|
107
|
+
loadVisible(): Promise<void>;
|
|
108
|
+
/** Unload distant chunks */
|
|
109
|
+
unloadDistant(): number;
|
|
110
|
+
/** Get loading status */
|
|
111
|
+
getLoadingStatus(seriesId: string): {
|
|
112
|
+
loadedPoints: number;
|
|
113
|
+
totalPoints: number;
|
|
114
|
+
loadedChunks: number;
|
|
115
|
+
totalChunks: number;
|
|
116
|
+
} | null;
|
|
117
|
+
/** Clear all loaded data */
|
|
118
|
+
clear(): void;
|
|
119
|
+
/** Update configuration */
|
|
120
|
+
updateConfig(config: Partial<PluginLazyLoadConfig>): void;
|
|
121
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LoadingIndicator, LoadingIndicatorOptions } from '../../core/loading';
|
|
2
|
+
import { ChartPlugin } from '../types';
|
|
3
|
+
|
|
4
|
+
export interface PluginLoadingConfig extends Partial<LoadingIndicatorOptions> {
|
|
5
|
+
/** Auto-show on heavy data operations */
|
|
6
|
+
autoShow?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* SciPlot Loading Plugin
|
|
10
|
+
*
|
|
11
|
+
* Adds sleek loading indicators and progress trackers to the chart.
|
|
12
|
+
*/
|
|
13
|
+
export declare function PluginLoading(_config?: PluginLoadingConfig): ChartPlugin<PluginLoadingConfig>;
|
|
14
|
+
export { LoadingIndicator };
|
|
15
|
+
export default PluginLoading;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loading.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Native ML Integration Plugin - Exports
|
|
3
|
+
*
|
|
4
|
+
* Exports all types and functions for the native ML Integration plugin.
|
|
5
|
+
*
|
|
6
|
+
* @packageDocumentation
|
|
7
|
+
* @module plugins/ml-integration
|
|
8
|
+
*/
|
|
9
|
+
export { PluginMLIntegration, default } from './index';
|
|
10
|
+
export type { MLRuntime, ModelConfig, PredictionInput, PredictionResult, VisualizationConfig, PluginMLIntegrationConfig, ModelLoadedEvent, PredictionEvent, ModelErrorEvent, MLModelAPI, MLIntegrationAPI, NativeStatsAPI } from './types';
|
|
11
|
+
export { createNativeModel, nativeFFT, nativeMean, nativeStandardDeviation, nativeCorrelation } from './native-algorithms';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PluginMLIntegrationConfig } from './types';
|
|
2
|
+
import { ChartPlugin } from '../types';
|
|
3
|
+
|
|
4
|
+
export declare function PluginMLIntegration(userConfig?: Partial<PluginMLIntegrationConfig>): ChartPlugin<PluginMLIntegrationConfig>;
|
|
5
|
+
export default PluginMLIntegration;
|
|
6
|
+
export type { PluginMLIntegrationConfig, MLIntegrationAPI, MLModelAPI, PredictionResult, VisualizationConfig } from './types';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { MLModelAPI, ModelConfig, PredictionInput, PredictionResult } from './types';
|
|
2
|
+
|
|
3
|
+
export declare class SimpleNeuralNetwork implements MLModelAPI {
|
|
4
|
+
private network;
|
|
5
|
+
private config;
|
|
6
|
+
private ready;
|
|
7
|
+
constructor(config: ModelConfig);
|
|
8
|
+
get id(): string;
|
|
9
|
+
get name(): string;
|
|
10
|
+
get type(): string;
|
|
11
|
+
predict(input: PredictionInput): Promise<PredictionResult>;
|
|
12
|
+
private forwardPass;
|
|
13
|
+
private denseLayer;
|
|
14
|
+
private applyActivation;
|
|
15
|
+
getInfo(): ModelConfig;
|
|
16
|
+
isReady(): boolean;
|
|
17
|
+
warmup(): Promise<void>;
|
|
18
|
+
dispose(): void;
|
|
19
|
+
}
|
|
20
|
+
export declare class NativeLinearRegression implements MLModelAPI {
|
|
21
|
+
private config;
|
|
22
|
+
private coefficients;
|
|
23
|
+
private intercept;
|
|
24
|
+
private ready;
|
|
25
|
+
constructor(config: ModelConfig);
|
|
26
|
+
get id(): string;
|
|
27
|
+
get name(): string;
|
|
28
|
+
get type(): string;
|
|
29
|
+
predict(input: PredictionInput): Promise<PredictionResult>;
|
|
30
|
+
train(data: {
|
|
31
|
+
x: number[][];
|
|
32
|
+
y: number[];
|
|
33
|
+
}): void;
|
|
34
|
+
private transpose;
|
|
35
|
+
private matrixMultiply;
|
|
36
|
+
private matrixInverse;
|
|
37
|
+
getInfo(): ModelConfig;
|
|
38
|
+
isReady(): boolean;
|
|
39
|
+
warmup(): Promise<void>;
|
|
40
|
+
dispose(): void;
|
|
41
|
+
}
|
|
42
|
+
export declare class NativeSignalProcessor implements MLModelAPI {
|
|
43
|
+
private config;
|
|
44
|
+
private filterType;
|
|
45
|
+
private cutoffFrequency;
|
|
46
|
+
private sampleRate;
|
|
47
|
+
private ready;
|
|
48
|
+
constructor(config: ModelConfig);
|
|
49
|
+
get id(): string;
|
|
50
|
+
get name(): string;
|
|
51
|
+
get type(): string;
|
|
52
|
+
predict(input: PredictionInput): Promise<PredictionResult>;
|
|
53
|
+
private applyFilter;
|
|
54
|
+
private lowpassFilter;
|
|
55
|
+
private highpassFilter;
|
|
56
|
+
private bandpassFilter;
|
|
57
|
+
getInfo(): ModelConfig;
|
|
58
|
+
isReady(): boolean;
|
|
59
|
+
warmup(): Promise<void>;
|
|
60
|
+
dispose(): void;
|
|
61
|
+
}
|
|
62
|
+
export declare function createNativeModel(config: ModelConfig): MLModelAPI;
|
|
63
|
+
export declare function nativeFFT(data: number[]): {
|
|
64
|
+
real: number[];
|
|
65
|
+
imag: number[];
|
|
66
|
+
};
|
|
67
|
+
export declare function nativeMean(data: number[]): number;
|
|
68
|
+
export declare function nativeStandardDeviation(data: number[]): number;
|
|
69
|
+
export declare function nativeCorrelation(x: number[], y: number[]): number;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export type MLRuntime = 'native' | 'web-worker' | 'wasm';
|
|
2
|
+
export interface ModelConfig {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
type: 'regression' | 'classification' | 'anomaly' | 'forecasting' | 'neural-network' | 'linear-regression' | 'signal-processor' | string;
|
|
6
|
+
metadata?: Record<string, any>;
|
|
7
|
+
}
|
|
8
|
+
export interface PredictionInput {
|
|
9
|
+
data: number[] | Float32Array;
|
|
10
|
+
metadata?: Record<string, any>;
|
|
11
|
+
}
|
|
12
|
+
export interface PredictionResult {
|
|
13
|
+
modelId: string;
|
|
14
|
+
output: Float32Array;
|
|
15
|
+
xValues?: Float32Array | Float64Array;
|
|
16
|
+
outputShape: number[];
|
|
17
|
+
timestamp: number;
|
|
18
|
+
processingTime: number;
|
|
19
|
+
confidence?: number[];
|
|
20
|
+
metadata?: Record<string, any>;
|
|
21
|
+
}
|
|
22
|
+
export interface MLModelAPI {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
type: string;
|
|
26
|
+
predict(input: PredictionInput): Promise<PredictionResult>;
|
|
27
|
+
getInfo(): ModelConfig;
|
|
28
|
+
isReady(): boolean;
|
|
29
|
+
warmup(): Promise<void>;
|
|
30
|
+
dispose(): void;
|
|
31
|
+
}
|
|
32
|
+
export interface VisualizationConfig {
|
|
33
|
+
showConfidenceInterval?: boolean;
|
|
34
|
+
intervalOpacity?: number;
|
|
35
|
+
lineStyle?: {
|
|
36
|
+
color?: string;
|
|
37
|
+
width?: number;
|
|
38
|
+
dash?: number[];
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export interface PluginMLIntegrationConfig {
|
|
42
|
+
runtime?: MLRuntime;
|
|
43
|
+
models?: ModelConfig[];
|
|
44
|
+
defaultVisualization?: VisualizationConfig;
|
|
45
|
+
}
|
|
46
|
+
export interface MLIntegrationAPI {
|
|
47
|
+
registerModel(model: MLModelAPI): void;
|
|
48
|
+
runInference(modelId: string, seriesId: string): Promise<PredictionResult>;
|
|
49
|
+
visualizeResults(result: PredictionResult, config?: VisualizationConfig): string;
|
|
50
|
+
clearResults(visualizationId?: string): void;
|
|
51
|
+
stats: NativeStatsAPI;
|
|
52
|
+
}
|
|
53
|
+
export interface NativeStatsAPI {
|
|
54
|
+
fft(data: number[]): {
|
|
55
|
+
real: number[];
|
|
56
|
+
imag: number[];
|
|
57
|
+
};
|
|
58
|
+
mean(data: number[]): number;
|
|
59
|
+
standardDeviation(data: number[]): number;
|
|
60
|
+
correlation(x: number[], y: number[]): number;
|
|
61
|
+
}
|
|
62
|
+
export interface ModelLoadedEvent {
|
|
63
|
+
modelId: string;
|
|
64
|
+
config: ModelConfig;
|
|
65
|
+
}
|
|
66
|
+
export interface PredictionEvent {
|
|
67
|
+
modelId: string;
|
|
68
|
+
input: PredictionInput;
|
|
69
|
+
result: PredictionResult;
|
|
70
|
+
}
|
|
71
|
+
export interface ModelErrorEvent {
|
|
72
|
+
modelId: string;
|
|
73
|
+
error: string;
|
|
74
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Offscreen plugin exports
|
|
3
|
+
* @module plugins/offscreen
|
|
4
|
+
*/
|
|
5
|
+
export { PluginOffscreen, default } from './index';
|
|
6
|
+
export type { PluginOffscreenConfig, OffscreenAPI, OffscreenStats, OffscreenMode, OffscreenTransferMode, OffscreenFallbackMode, } from './types';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PluginOffscreenConfig } from './types';
|
|
2
|
+
import { ChartPlugin } from '../types';
|
|
3
|
+
|
|
4
|
+
export declare function PluginOffscreen(userConfig?: Partial<PluginOffscreenConfig>): ChartPlugin<PluginOffscreenConfig>;
|
|
5
|
+
export default PluginOffscreen;
|
|
6
|
+
export type { PluginOffscreenConfig, OffscreenAPI, OffscreenStats, OffscreenMode, OffscreenTransferMode, OffscreenFallbackMode, } from './types';
|