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.
Files changed (370) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +119 -0
  3. package/dist/EventEmitter-DAbs2K1C.js +60 -0
  4. package/dist/EventEmitter-DAbs2K1C.js.map +1 -0
  5. package/dist/core/Chart.d.ts +15 -0
  6. package/dist/core/ChartControls.d.ts +41 -0
  7. package/dist/core/ChartInitQueue.d.ts +50 -0
  8. package/dist/core/ChartLegend.d.ts +74 -0
  9. package/dist/core/ChartStatistics.d.ts +18 -0
  10. package/dist/core/EventEmitter.d.ts +30 -0
  11. package/dist/core/InteractionManager.d.ts +96 -0
  12. package/dist/core/OverlayRenderer.d.ts +89 -0
  13. package/dist/core/Series.d.ts +4 -0
  14. package/dist/core/animation/AnimationEngine.d.ts +156 -0
  15. package/dist/core/animation/index.d.ts +6 -0
  16. package/dist/core/annotations/AnnotationManager.d.ts +61 -0
  17. package/dist/core/annotations/index.d.ts +5 -0
  18. package/dist/core/annotations/types.d.ts +159 -0
  19. package/dist/core/chart/ChartAnimatedNavigation.d.ts +53 -0
  20. package/dist/core/chart/ChartAxisManager.d.ts +61 -0
  21. package/dist/core/chart/ChartCore.d.ts +336 -0
  22. package/dist/core/chart/ChartExporter.d.ts +18 -0
  23. package/dist/core/chart/ChartNavigation.d.ts +33 -0
  24. package/dist/core/chart/ChartPluginBridge.d.ts +34 -0
  25. package/dist/core/chart/ChartRenderLoop.d.ts +100 -0
  26. package/dist/core/chart/ChartRenderer.d.ts +52 -0
  27. package/dist/core/chart/ChartScaling.d.ts +31 -0
  28. package/dist/core/chart/ChartSeries.d.ts +4 -0
  29. package/dist/core/chart/ChartSetup.d.ts +67 -0
  30. package/dist/core/chart/ChartStateManager.d.ts +54 -0
  31. package/dist/core/chart/ChartUI.d.ts +40 -0
  32. package/dist/core/chart/exporter/SVGExporter.d.ts +6 -0
  33. package/dist/core/chart/exporter/index.d.ts +5 -0
  34. package/dist/core/chart/index.d.ts +14 -0
  35. package/dist/core/chart/series/SeriesActions.d.ts +7 -0
  36. package/dist/core/chart/series/SeriesBuffer.d.ts +4 -0
  37. package/dist/core/chart/series/index.d.ts +6 -0
  38. package/dist/core/chart/series/types.d.ts +22 -0
  39. package/dist/core/chart/types.d.ts +188 -0
  40. package/dist/core/clipboard/index.d.ts +137 -0
  41. package/dist/core/debug/index.d.ts +143 -0
  42. package/dist/core/index.d.ts +17 -0
  43. package/dist/core/keybindings/index.d.ts +157 -0
  44. package/dist/core/layout/index.d.ts +12 -0
  45. package/dist/core/layout/types.d.ts +165 -0
  46. package/dist/core/loading/index.d.ts +104 -0
  47. package/dist/core/locale/index.d.ts +91 -0
  48. package/dist/core/responsive/ResponsiveManager.d.ts +133 -0
  49. package/dist/core/responsive/index.d.ts +4 -0
  50. package/dist/core/selection/SelectionManager.d.ts +165 -0
  51. package/dist/core/selection/index.d.ts +4 -0
  52. package/dist/core/series/Series.d.ts +73 -0
  53. package/dist/core/series/SeriesBounds.d.ts +3 -0
  54. package/dist/core/series/SeriesDataUtils.d.ts +7 -0
  55. package/dist/core/series/index.d.ts +6 -0
  56. package/dist/core/sync/index.d.ts +147 -0
  57. package/dist/core/theme-editor/index.d.ts +122 -0
  58. package/dist/examples/PluginDemonstration.d.ts +20 -0
  59. package/dist/examples.d.ts +25 -0
  60. package/dist/gpu/adapter/gpuRenderer.d.ts +135 -0
  61. package/dist/gpu/adapter/index.d.ts +7 -0
  62. package/dist/gpu/adapter/seriesAdapter.d.ts +88 -0
  63. package/dist/gpu/backends/webgl/WebGLBackend.d.ts +42 -0
  64. package/dist/gpu/backends/webgl/index.d.ts +5 -0
  65. package/dist/gpu/backends/webgl/programFactory.d.ts +30 -0
  66. package/dist/gpu/backends/webgl/shaders.d.ts +14 -0
  67. package/dist/gpu/backends/webgpu/MassiveDataRenderer.d.ts +111 -0
  68. package/dist/gpu/backends/webgpu/WebGPUBackend.d.ts +58 -0
  69. package/dist/gpu/backends/webgpu/pipelines/bandPipeline.d.ts +24 -0
  70. package/dist/gpu/backends/webgpu/pipelines/heatmapPipeline.d.ts +28 -0
  71. package/dist/gpu/backends/webgpu/pipelines/index.d.ts +10 -0
  72. package/dist/gpu/backends/webgpu/pipelines/instancedLinePipeline.d.ts +23 -0
  73. package/dist/gpu/backends/webgpu/pipelines/instancedPointPipeline.d.ts +25 -0
  74. package/dist/gpu/backends/webgpu/pipelines/linePipeline.d.ts +23 -0
  75. package/dist/gpu/backends/webgpu/pipelines/pointPipeline.d.ts +28 -0
  76. package/dist/gpu/backends/webgpu/pipelines/trianglePipeline.d.ts +5 -0
  77. package/dist/gpu/backends/webgpu/pipelines/triangleShader.d.ts +1 -0
  78. package/dist/gpu/backends/webgpu/shaders/heatmap.wgsl.d.ts +8 -0
  79. package/dist/gpu/backends/webgpu/shaders/index.d.ts +8 -0
  80. package/dist/gpu/backends/webgpu/shaders/instanced.wgsl.d.ts +16 -0
  81. package/dist/gpu/backends/webgpu/shaders/line.wgsl.d.ts +8 -0
  82. package/dist/gpu/backends/webgpu/shaders/point.wgsl.d.ts +9 -0
  83. package/dist/gpu/benchmark/benchmark.d.ts +74 -0
  84. package/dist/gpu/benchmark/index.d.ts +5 -0
  85. package/dist/gpu/compute/gpuCompute.d.ts +72 -0
  86. package/dist/gpu/compute/index.d.ts +6 -0
  87. package/dist/gpu/compute/shaders.d.ts +9 -0
  88. package/dist/gpu/drawList.d.ts +77 -0
  89. package/dist/gpu/examples/gallery.d.ts +20 -0
  90. package/dist/gpu/examples/index.d.ts +3 -0
  91. package/dist/gpu/examples/webgpu-line-demo.d.ts +8 -0
  92. package/dist/gpu/examples/webgpu-triangle.d.ts +1 -0
  93. package/dist/gpu/frame.d.ts +25 -0
  94. package/dist/gpu/index.d.ts +24 -0
  95. package/dist/gpu/resources/bufferStore.d.ts +40 -0
  96. package/dist/gpu/resources/index.d.ts +9 -0
  97. package/dist/gpu/resources/pipelineCache.d.ts +33 -0
  98. package/dist/gpu/resources/textureStore.d.ts +41 -0
  99. package/dist/gpu/types.d.ts +47 -0
  100. package/dist/index-BMiZoKmm.js +536 -0
  101. package/dist/index-BMiZoKmm.js.map +1 -0
  102. package/dist/index-Ce2JgkH_.js +282 -0
  103. package/dist/index-Ce2JgkH_.js.map +1 -0
  104. package/dist/index-D8ifudJH.js +2431 -0
  105. package/dist/index-D8ifudJH.js.map +1 -0
  106. package/dist/index-Dag88bW4.js +499 -0
  107. package/dist/index-Dag88bW4.js.map +1 -0
  108. package/dist/index-qhscKTDy.js +309 -0
  109. package/dist/index-qhscKTDy.js.map +1 -0
  110. package/dist/index-x4stH3jD.js +282 -0
  111. package/dist/index-x4stH3jD.js.map +1 -0
  112. package/dist/index.core-CYu3tydL.js +7252 -0
  113. package/dist/index.core-CYu3tydL.js.map +1 -0
  114. package/dist/index.core.d.ts +20 -0
  115. package/dist/index.d.ts +51 -0
  116. package/dist/overlay/CanvasOverlay.d.ts +102 -0
  117. package/dist/overlay/index.d.ts +4 -0
  118. package/dist/plugins/3d/Area3DRenderer.d.ts +122 -0
  119. package/dist/plugins/3d/Axes3D.d.ts +104 -0
  120. package/dist/plugins/3d/Bubble3DRenderer.d.ts +198 -0
  121. package/dist/plugins/3d/Impulse3DRenderer.d.ts +130 -0
  122. package/dist/plugins/3d/Line3DRenderer.d.ts +118 -0
  123. package/dist/plugins/3d/PointCloud3DRenderer.d.ts +84 -0
  124. package/dist/plugins/3d/Raycaster3D.d.ts +137 -0
  125. package/dist/plugins/3d/Ribbon3DRenderer.d.ts +83 -0
  126. package/dist/plugins/3d/SurfaceBar3DRenderer.d.ts +92 -0
  127. package/dist/plugins/3d/SurfaceMesh3DRenderer.d.ts +130 -0
  128. package/dist/plugins/3d/Tooltip3D.d.ts +71 -0
  129. package/dist/plugins/3d/VectorField3DRenderer.d.ts +86 -0
  130. package/dist/plugins/3d/Voxel3DRenderer.d.ts +89 -0
  131. package/dist/plugins/3d/Waterfall3DRenderer.d.ts +94 -0
  132. package/dist/plugins/3d/camera/OrbitCamera.d.ts +99 -0
  133. package/dist/plugins/3d/camera/index.d.ts +1 -0
  134. package/dist/plugins/3d/colorThemes.d.ts +39 -0
  135. package/dist/plugins/3d/controls/OrbitController.d.ts +69 -0
  136. package/dist/plugins/3d/controls/index.d.ts +1 -0
  137. package/dist/plugins/3d/index.d.ts +50 -0
  138. package/dist/plugins/3d/math/Mat4.d.ts +33 -0
  139. package/dist/plugins/3d/math/Vec3.d.ts +37 -0
  140. package/dist/plugins/3d/math/index.d.ts +4 -0
  141. package/dist/plugins/3d/mesh/InstancedMesh.d.ts +42 -0
  142. package/dist/plugins/3d/mesh/geometry.d.ts +34 -0
  143. package/dist/plugins/3d/mesh/index.d.ts +2 -0
  144. package/dist/plugins/3d/series/Area3D.d.ts +17 -0
  145. package/dist/plugins/3d/series/Column3D.d.ts +20 -0
  146. package/dist/plugins/3d/series/Heatmap3D.d.ts +17 -0
  147. package/dist/plugins/3d/series/Impulse3D.d.ts +16 -0
  148. package/dist/plugins/3d/series/PointLine3D.d.ts +20 -0
  149. package/dist/plugins/3d/series/Ribbon3D.d.ts +17 -0
  150. package/dist/plugins/3d/series/Scatter3D.d.ts +21 -0
  151. package/dist/plugins/3d/series/SurfaceMesh3D.d.ts +35 -0
  152. package/dist/plugins/3d/series/Waterfall3D.d.ts +38 -0
  153. package/dist/plugins/3d/series/index.d.ts +13 -0
  154. package/dist/plugins/3d/series/types.d.ts +143 -0
  155. package/dist/plugins/3d/shader/index.d.ts +2 -0
  156. package/dist/plugins/3d/shader/programs.d.ts +24 -0
  157. package/dist/plugins/3d/shader/sources.d.ts +27 -0
  158. package/dist/plugins/3d/types.d.ts +71 -0
  159. package/dist/plugins/3d.d.ts +3 -0
  160. package/dist/plugins/3d.js +5498 -0
  161. package/dist/plugins/3d.js.map +1 -0
  162. package/dist/plugins/PluginContext.d.ts +53 -0
  163. package/dist/plugins/PluginManager.d.ts +129 -0
  164. package/dist/plugins/PluginRegistry.d.ts +38 -0
  165. package/dist/plugins/analysis/SeriesFit.d.ts +3 -0
  166. package/dist/plugins/analysis/contours.d.ts +20 -0
  167. package/dist/plugins/analysis/fft.d.ts +138 -0
  168. package/dist/plugins/analysis/filters.d.ts +76 -0
  169. package/dist/plugins/analysis/fitting.d.ts +24 -0
  170. package/dist/plugins/analysis/index.d.ts +29 -0
  171. package/dist/plugins/analysis/indicators.d.ts +148 -0
  172. package/dist/plugins/analysis/math.d.ts +32 -0
  173. package/dist/plugins/analysis/statistics.d.ts +78 -0
  174. package/dist/plugins/analysis/utils.d.ts +150 -0
  175. package/dist/plugins/analysis.d.ts +3 -0
  176. package/dist/plugins/analysis.js +1202 -0
  177. package/dist/plugins/analysis.js.map +1 -0
  178. package/dist/plugins/annotations/index.d.ts +16 -0
  179. package/dist/plugins/annotations.d.ts +3 -0
  180. package/dist/plugins/annotations.js +438 -0
  181. package/dist/plugins/annotations.js.map +1 -0
  182. package/dist/plugins/anomaly-detection/algorithms.d.ts +38 -0
  183. package/dist/plugins/anomaly-detection/index.d.ts +16 -0
  184. package/dist/plugins/anomaly-detection/types.d.ts +57 -0
  185. package/dist/plugins/broken-axis/BrokenAxisScale.d.ts +24 -0
  186. package/dist/plugins/broken-axis/exports.d.ts +6 -0
  187. package/dist/plugins/broken-axis/index.d.ts +6 -0
  188. package/dist/plugins/broken-axis/types.d.ts +50 -0
  189. package/dist/plugins/builtins/crosshair/CrosshairPlugin.d.ts +40 -0
  190. package/dist/plugins/builtins/crosshair/index.d.ts +1 -0
  191. package/dist/plugins/builtins/data-logger/DataLoggerPlugin.d.ts +11 -0
  192. package/dist/plugins/builtins/data-logger/index.d.ts +1 -0
  193. package/dist/plugins/builtins/direction-indicator/DirectionIndicatorPlugin.d.ts +17 -0
  194. package/dist/plugins/builtins/direction-indicator/index.d.ts +2 -0
  195. package/dist/plugins/builtins/grid-highlight/GridHighlightPlugin.d.ts +17 -0
  196. package/dist/plugins/builtins/grid-highlight/index.d.ts +1 -0
  197. package/dist/plugins/builtins/index.d.ts +25 -0
  198. package/dist/plugins/builtins/stats/StatsPlugin.d.ts +11 -0
  199. package/dist/plugins/builtins/stats/index.d.ts +1 -0
  200. package/dist/plugins/builtins/watermark/WatermarkPlugin.d.ts +15 -0
  201. package/dist/plugins/builtins/watermark/index.d.ts +1 -0
  202. package/dist/plugins/caching/exports.d.ts +6 -0
  203. package/dist/plugins/caching/index.d.ts +6 -0
  204. package/dist/plugins/caching/types.d.ts +120 -0
  205. package/dist/plugins/clipboard/index.d.ts +20 -0
  206. package/dist/plugins/clipboard.d.ts +3 -0
  207. package/dist/plugins/clipboard.js +270 -0
  208. package/dist/plugins/clipboard.js.map +1 -0
  209. package/dist/plugins/context-menu/index.d.ts +12 -0
  210. package/dist/plugins/context-menu/renderer.d.ts +43 -0
  211. package/dist/plugins/context-menu/types.d.ts +202 -0
  212. package/dist/plugins/context-menu.d.ts +3 -0
  213. package/dist/plugins/context-menu.js +621 -0
  214. package/dist/plugins/context-menu.js.map +1 -0
  215. package/dist/plugins/data-export/formatters.d.ts +34 -0
  216. package/dist/plugins/data-export/index.d.ts +15 -0
  217. package/dist/plugins/data-export/types.d.ts +166 -0
  218. package/dist/plugins/data-export.d.ts +3 -0
  219. package/dist/plugins/data-export.js +463 -0
  220. package/dist/plugins/data-export.js.map +1 -0
  221. package/dist/plugins/data-transform/index.d.ts +6 -0
  222. package/dist/plugins/data-transform/types.d.ts +34 -0
  223. package/dist/plugins/debug/index.d.ts +24 -0
  224. package/dist/plugins/debug.d.ts +3 -0
  225. package/dist/plugins/debug.js +330 -0
  226. package/dist/plugins/debug.js.map +1 -0
  227. package/dist/plugins/drag-edit/exports.d.ts +6 -0
  228. package/dist/plugins/drag-edit/index.d.ts +6 -0
  229. package/dist/plugins/drag-edit/types.d.ts +118 -0
  230. package/dist/plugins/forecasting/algorithms.d.ts +6 -0
  231. package/dist/plugins/forecasting/exports.d.ts +3 -0
  232. package/dist/plugins/forecasting/index.d.ts +11 -0
  233. package/dist/plugins/forecasting/types.d.ts +88 -0
  234. package/dist/plugins/gpu/index.d.ts +24 -0
  235. package/dist/plugins/gpu.d.ts +3 -0
  236. package/dist/plugins/gpu.js +2430 -0
  237. package/dist/plugins/gpu.js.map +1 -0
  238. package/dist/plugins/i18n/index.d.ts +22 -0
  239. package/dist/plugins/i18n.d.ts +3 -0
  240. package/dist/plugins/i18n.js +37 -0
  241. package/dist/plugins/i18n.js.map +1 -0
  242. package/dist/plugins/index.d.ts +110 -0
  243. package/dist/plugins/keyboard/index.d.ts +15 -0
  244. package/dist/plugins/keyboard.d.ts +3 -0
  245. package/dist/plugins/keyboard.js +8 -0
  246. package/dist/plugins/keyboard.js.map +1 -0
  247. package/dist/plugins/latex/exports.d.ts +6 -0
  248. package/dist/plugins/latex/index.d.ts +8 -0
  249. package/dist/plugins/latex/parser.d.ts +6 -0
  250. package/dist/plugins/latex/renderer.d.ts +6 -0
  251. package/dist/plugins/latex/symbols.d.ts +28 -0
  252. package/dist/plugins/latex/types.d.ts +88 -0
  253. package/dist/plugins/lazy-load/exports.d.ts +6 -0
  254. package/dist/plugins/lazy-load/index.d.ts +6 -0
  255. package/dist/plugins/lazy-load/types.d.ts +121 -0
  256. package/dist/plugins/loading/index.d.ts +15 -0
  257. package/dist/plugins/loading.d.ts +3 -0
  258. package/dist/plugins/loading.js +7 -0
  259. package/dist/plugins/loading.js.map +1 -0
  260. package/dist/plugins/ml-integration/exports.d.ts +11 -0
  261. package/dist/plugins/ml-integration/index.d.ts +6 -0
  262. package/dist/plugins/ml-integration/native-algorithms.d.ts +69 -0
  263. package/dist/plugins/ml-integration/types.d.ts +74 -0
  264. package/dist/plugins/offscreen/exports.d.ts +6 -0
  265. package/dist/plugins/offscreen/index.d.ts +6 -0
  266. package/dist/plugins/offscreen/pool.d.ts +32 -0
  267. package/dist/plugins/offscreen/types.d.ts +35 -0
  268. package/dist/plugins/pattern-recognition/index.d.ts +6 -0
  269. package/dist/plugins/pattern-recognition/patterns.d.ts +3 -0
  270. package/dist/plugins/pattern-recognition/types.d.ts +245 -0
  271. package/dist/plugins/radar/index.d.ts +6 -0
  272. package/dist/plugins/radar/types.d.ts +40 -0
  273. package/dist/plugins/regression/algorithms.d.ts +6 -0
  274. package/dist/plugins/regression/index.d.ts +6 -0
  275. package/dist/plugins/regression/types.d.ts +261 -0
  276. package/dist/plugins/roi/exports.d.ts +6 -0
  277. package/dist/plugins/roi/index.d.ts +49 -0
  278. package/dist/plugins/roi/types.d.ts +60 -0
  279. package/dist/plugins/snapshot/index.d.ts +11 -0
  280. package/dist/plugins/snapshot/types.d.ts +38 -0
  281. package/dist/plugins/streaming/index.d.ts +32 -0
  282. package/dist/plugins/streaming.d.ts +3 -0
  283. package/dist/plugins/streaming.js +13 -0
  284. package/dist/plugins/streaming.js.map +1 -0
  285. package/dist/plugins/sync/index.d.ts +22 -0
  286. package/dist/plugins/sync.d.ts +3 -0
  287. package/dist/plugins/sync.js +261 -0
  288. package/dist/plugins/sync.js.map +1 -0
  289. package/dist/plugins/theme-editor/index.d.ts +18 -0
  290. package/dist/plugins/theme-editor.d.ts +3 -0
  291. package/dist/plugins/theme-editor.js +7 -0
  292. package/dist/plugins/theme-editor.js.map +1 -0
  293. package/dist/plugins/tools/delta-tool/index.d.ts +159 -0
  294. package/dist/plugins/tools/index.d.ts +21 -0
  295. package/dist/plugins/tools/peak-tool/index.d.ts +159 -0
  296. package/dist/plugins/tools/tooltip/TooltipManager.d.ts +213 -0
  297. package/dist/plugins/tools/tooltip/TooltipPositioner.d.ts +83 -0
  298. package/dist/plugins/tools/tooltip/TooltipRenderer.d.ts +64 -0
  299. package/dist/plugins/tools/tooltip/index.d.ts +18 -0
  300. package/dist/plugins/tools/tooltip/templates/AnnotationTemplate.d.ts +18 -0
  301. package/dist/plugins/tools/tooltip/templates/CrosshairTemplate.d.ts +39 -0
  302. package/dist/plugins/tools/tooltip/templates/DefaultTemplate.d.ts +30 -0
  303. package/dist/plugins/tools/tooltip/templates/HeatmapTemplate.d.ts +34 -0
  304. package/dist/plugins/tools/tooltip/templates/MinimalTemplate.d.ts +26 -0
  305. package/dist/plugins/tools/tooltip/templates/RangeTemplate.d.ts +18 -0
  306. package/dist/plugins/tools/tooltip/templates/ScientificTemplate.d.ts +34 -0
  307. package/dist/plugins/tools/tooltip/templates/index.d.ts +27 -0
  308. package/dist/plugins/tools/tooltip/themes.d.ts +48 -0
  309. package/dist/plugins/tools/tooltip/types.d.ts +396 -0
  310. package/dist/plugins/tools.d.ts +3 -0
  311. package/dist/plugins/tools.js +9 -0
  312. package/dist/plugins/tools.js.map +1 -0
  313. package/dist/plugins/types.d.ts +451 -0
  314. package/dist/plugins/video-recorder/exports.d.ts +6 -0
  315. package/dist/plugins/video-recorder/index.d.ts +6 -0
  316. package/dist/plugins/video-recorder/types.d.ts +55 -0
  317. package/dist/plugins/virtualization/exports.d.ts +6 -0
  318. package/dist/plugins/virtualization/index.d.ts +6 -0
  319. package/dist/plugins/virtualization/types.d.ts +48 -0
  320. package/dist/react/SciPlot.d.ts +60 -0
  321. package/dist/react/index.d.ts +5 -0
  322. package/dist/react/useSciPlot.d.ts +56 -0
  323. package/dist/renderer/BarRenderer.d.ts +14 -0
  324. package/dist/renderer/CandlestickRenderer.d.ts +12 -0
  325. package/dist/renderer/GaugeRenderer.d.ts +3 -0
  326. package/dist/renderer/HeatmapRenderer.d.ts +15 -0
  327. package/dist/renderer/NativeWebGLRenderer.d.ts +16 -0
  328. package/dist/renderer/PolarRenderer.d.ts +64 -0
  329. package/dist/renderer/RendererInterface.d.ts +70 -0
  330. package/dist/renderer/SankeyRenderer.d.ts +3 -0
  331. package/dist/renderer/WebGPURenderer.d.ts +16 -0
  332. package/dist/renderer/index.d.ts +13 -0
  333. package/dist/renderer/native/NativeWebGLRenderer.d.ts +31 -0
  334. package/dist/renderer/native/bufferStore.d.ts +11 -0
  335. package/dist/renderer/native/draw.d.ts +47 -0
  336. package/dist/renderer/native/programFactory.d.ts +3 -0
  337. package/dist/renderer/native/renderFrame.d.ts +3 -0
  338. package/dist/renderer/native/shaderSources.d.ts +6 -0
  339. package/dist/renderer/native/textureStore.d.ts +8 -0
  340. package/dist/renderer/native/types.d.ts +77 -0
  341. package/dist/renderer/native/utils.d.ts +31 -0
  342. package/dist/renderer/radar/RadarRenderer.d.ts +71 -0
  343. package/dist/renderer/radar/index.d.ts +10 -0
  344. package/dist/renderer/shaders.d.ts +77 -0
  345. package/dist/renderer/ternary/TernaryRenderer.d.ts +39 -0
  346. package/dist/renderer/ternary/index.d.ts +6 -0
  347. package/dist/renderer/ternary/types.d.ts +56 -0
  348. package/dist/scales/index.d.ts +54 -0
  349. package/dist/serialization/index.d.ts +153 -0
  350. package/dist/streaming/backpressure.d.ts +179 -0
  351. package/dist/streaming/index.d.ts +7 -0
  352. package/dist/streaming/mock.d.ts +12 -0
  353. package/dist/streaming/types.d.ts +57 -0
  354. package/dist/streaming/utils.d.ts +19 -0
  355. package/dist/streaming/websocket.d.ts +6 -0
  356. package/dist/testing/index.d.ts +225 -0
  357. package/dist/theme/colorSchemes.d.ts +56 -0
  358. package/dist/theme/index.d.ts +138 -0
  359. package/dist/types.d.ts +753 -0
  360. package/dist/utils-Dbro9-qM.js +254 -0
  361. package/dist/utils-Dbro9-qM.js.map +1 -0
  362. package/dist/velo-plot.d.ts +1 -0
  363. package/dist/velo-plot.full.d.ts +1 -0
  364. package/dist/velo-plot.full.js +5804 -0
  365. package/dist/velo-plot.full.js.map +1 -0
  366. package/dist/velo-plot.js +31 -0
  367. package/dist/velo-plot.js.map +1 -0
  368. package/dist/workers/downsample.d.ts +34 -0
  369. package/dist/workers/downsample.worker.d.ts +46 -0
  370. package/package.json +185 -0
@@ -0,0 +1,621 @@
1
+ var j = Object.defineProperty;
2
+ var K = (f, n, r) => n in f ? j(f, n, { enumerable: !0, configurable: !0, writable: !0, value: r }) : f[n] = r;
3
+ var y = (f, n, r) => K(f, typeof n != "symbol" ? n + "" : n, r);
4
+ const X = {
5
+ backgroundColor: "rgba(30, 30, 40, 0.95)",
6
+ textColor: "#e0e0e0",
7
+ borderColor: "rgba(100, 100, 120, 0.5)",
8
+ borderRadius: "8px",
9
+ boxShadow: "0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1)",
10
+ fontFamily: "system-ui, -apple-system, sans-serif",
11
+ fontSize: "13px",
12
+ itemPadding: "8px 16px",
13
+ hoverBackground: "rgba(0, 242, 255, 0.15)",
14
+ separatorColor: "rgba(100, 100, 120, 0.3)",
15
+ disabledOpacity: 0.4,
16
+ minWidth: "180px",
17
+ maxWidth: "300px",
18
+ animationDuration: "150ms"
19
+ };
20
+ class Q {
21
+ constructor(n, r, i, d) {
22
+ y(this, "_container");
23
+ y(this, "menuElement", null);
24
+ y(this, "style");
25
+ y(this, "onItemClick");
26
+ y(this, "zIndex");
27
+ y(this, "handleOutsideClick", (n) => {
28
+ this.menuElement && !this.menuElement.contains(n.target) && this.hide();
29
+ });
30
+ y(this, "handleKeyDown", (n) => {
31
+ n.key === "Escape" && this.hide();
32
+ });
33
+ this._container = n, this.style = { ...X, ...r }, this.zIndex = i, this.onItemClick = d;
34
+ }
35
+ /**
36
+ * Show the context menu
37
+ */
38
+ show(n) {
39
+ this.hide(), !(!n.items.length || !n.context) && (this.menuElement = this.createMenu(n.items, n.context), this.positionMenu(n.position), document.body.appendChild(this.menuElement), requestAnimationFrame(() => {
40
+ this.menuElement && (this.menuElement.style.opacity = "1", this.menuElement.style.transform = "scale(1)");
41
+ }), document.addEventListener("mousedown", this.handleOutsideClick), document.addEventListener("keydown", this.handleKeyDown));
42
+ }
43
+ /**
44
+ * Hide the context menu
45
+ */
46
+ hide() {
47
+ this.menuElement && (this.menuElement.style.opacity = "0", this.menuElement.style.transform = "scale(0.95)", setTimeout(() => {
48
+ var n;
49
+ (n = this.menuElement) != null && n.parentNode && this.menuElement.parentNode.removeChild(this.menuElement), this.menuElement = null;
50
+ }, 100)), document.removeEventListener("mousedown", this.handleOutsideClick), document.removeEventListener("keydown", this.handleKeyDown);
51
+ }
52
+ /**
53
+ * Check if menu is visible
54
+ */
55
+ isVisible() {
56
+ return this.menuElement !== null;
57
+ }
58
+ /**
59
+ * Destroy the renderer
60
+ */
61
+ destroy() {
62
+ this.hide();
63
+ }
64
+ /**
65
+ * Update styling
66
+ */
67
+ updateStyle(n) {
68
+ this.style = { ...X, ...n };
69
+ }
70
+ /**
71
+ * Get container reference
72
+ */
73
+ getContainer() {
74
+ return this._container;
75
+ }
76
+ // ============================================
77
+ // Private Methods
78
+ // ============================================
79
+ createMenu(n, r) {
80
+ const i = document.createElement("div");
81
+ return i.className = "velo-plot-context-menu", i.style.cssText = this.getMenuStyle(), n.forEach((d) => {
82
+ const h = this.createMenuItem(d, r);
83
+ h && i.appendChild(h);
84
+ }), i;
85
+ }
86
+ createMenuItem(n, r) {
87
+ if ("hidden" in n && n.hidden) return null;
88
+ if (n.type === "separator") {
89
+ const l = document.createElement("div");
90
+ return l.className = "velo-plot-menu-separator", l.style.cssText = `
91
+ height: 1px;
92
+ margin: 4px 8px;
93
+ background: ${this.style.separatorColor};
94
+ `, l;
95
+ }
96
+ const i = document.createElement("div");
97
+ i.className = "velo-plot-menu-item";
98
+ const d = "disabled" in n && !!n.disabled;
99
+ if (i.style.cssText = this.getItemStyle(d), "icon" in n && n.icon) {
100
+ const l = document.createElement("span");
101
+ l.className = "velo-plot-menu-icon", l.style.cssText = "margin-right: 12px; width: 16px; text-align: center;", l.textContent = n.icon, i.appendChild(l);
102
+ }
103
+ const h = document.createElement("span");
104
+ if (h.className = "velo-plot-menu-label", h.style.cssText = "flex: 1;", h.textContent = n.label, i.appendChild(h), n.type === "checkbox") {
105
+ const l = document.createElement("span");
106
+ l.style.cssText = "margin-left: 12px; width: 16px;", l.textContent = n.checked ? "✓" : "", i.appendChild(l);
107
+ }
108
+ if (n.type === "radio") {
109
+ const l = document.createElement("span");
110
+ l.style.cssText = "margin-left: 12px; width: 16px;", l.textContent = n.selected ? "●" : "○", i.appendChild(l);
111
+ }
112
+ if ("shortcut" in n && n.shortcut) {
113
+ const l = document.createElement("span");
114
+ l.className = "velo-plot-menu-shortcut", l.style.cssText = `
115
+ margin-left: 24px;
116
+ opacity: 0.5;
117
+ font-size: 11px;
118
+ `, l.textContent = n.shortcut, i.appendChild(l);
119
+ }
120
+ if (n.type === "submenu") {
121
+ const l = document.createElement("span");
122
+ l.style.cssText = "margin-left: 8px;", l.textContent = "▶", i.appendChild(l), i.addEventListener("mouseenter", () => {
123
+ this.showSubmenu(i, n.items, r);
124
+ }), i.addEventListener("mouseleave", (C) => {
125
+ this.hideSubmenu(i, C);
126
+ });
127
+ }
128
+ return d || (i.addEventListener("mouseenter", () => {
129
+ i.style.background = this.style.hoverBackground;
130
+ }), i.addEventListener("mouseleave", () => {
131
+ i.style.background = "transparent";
132
+ }), i.addEventListener("click", (l) => {
133
+ l.stopPropagation(), n.type !== "submenu" && this.onItemClick(n, r);
134
+ })), i;
135
+ }
136
+ showSubmenu(n, r, i) {
137
+ if (n.querySelector(".velo-plot-submenu")) return;
138
+ const h = document.createElement("div");
139
+ h.className = "velo-plot-submenu", h.style.cssText = `
140
+ ${this.getMenuStyle()}
141
+ position: absolute;
142
+ left: 100%;
143
+ top: 0;
144
+ margin-left: 4px;
145
+ `, r.forEach((l) => {
146
+ const C = this.createMenuItem(l, i);
147
+ C && h.appendChild(C);
148
+ }), n.style.position = "relative", n.appendChild(h);
149
+ }
150
+ hideSubmenu(n, r) {
151
+ const i = n.querySelector(".velo-plot-submenu");
152
+ if (!i) return;
153
+ const d = i.getBoundingClientRect();
154
+ r.clientX >= d.left && r.clientX <= d.right && r.clientY >= d.top && r.clientY <= d.bottom || setTimeout(() => {
155
+ i.remove();
156
+ }, 100);
157
+ }
158
+ positionMenu(n) {
159
+ if (!this.menuElement) return;
160
+ const r = window.innerWidth, i = window.innerHeight;
161
+ this.menuElement.style.left = `${n.x}px`, this.menuElement.style.top = `${n.y}px`;
162
+ const d = this.menuElement.getBoundingClientRect();
163
+ d.right > r && (this.menuElement.style.left = `${n.x - d.width}px`), d.bottom > i && (this.menuElement.style.top = `${n.y - d.height}px`);
164
+ }
165
+ getMenuStyle() {
166
+ return `
167
+ position: fixed;
168
+ z-index: ${this.zIndex};
169
+ background: ${this.style.backgroundColor};
170
+ color: ${this.style.textColor};
171
+ border: 1px solid ${this.style.borderColor};
172
+ border-radius: ${this.style.borderRadius};
173
+ box-shadow: ${this.style.boxShadow};
174
+ font-family: ${this.style.fontFamily};
175
+ font-size: ${this.style.fontSize};
176
+ min-width: ${this.style.minWidth};
177
+ max-width: ${this.style.maxWidth};
178
+ padding: 4px 0;
179
+ opacity: 0;
180
+ transform: scale(0.95);
181
+ transform-origin: top left;
182
+ transition: opacity ${this.style.animationDuration}, transform ${this.style.animationDuration};
183
+ backdrop-filter: blur(10px);
184
+ -webkit-backdrop-filter: blur(10px);
185
+ `;
186
+ }
187
+ getItemStyle(n) {
188
+ return `
189
+ display: flex;
190
+ align-items: center;
191
+ padding: ${this.style.itemPadding};
192
+ cursor: ${n ? "default" : "pointer"};
193
+ opacity: ${n ? this.style.disabledOpacity : 1};
194
+ user-select: none;
195
+ transition: background 100ms;
196
+ `;
197
+ }
198
+ }
199
+ const _ = [
200
+ {
201
+ label: "Zoom to Fit",
202
+ icon: "⊡",
203
+ action: "zoomToFit",
204
+ shortcut: "Home"
205
+ },
206
+ {
207
+ label: "Reset View",
208
+ icon: "↻",
209
+ action: "resetView",
210
+ shortcut: "R"
211
+ },
212
+ { type: "separator" },
213
+ {
214
+ label: "Interaction Mode",
215
+ icon: "✋",
216
+ type: "submenu",
217
+ items: [
218
+ { label: "Pan", icon: "✋", action: "panMode" },
219
+ { label: "Box Zoom", icon: "⬚", action: "boxZoomMode" },
220
+ { label: "Select", icon: "➤", action: "selectMode" }
221
+ ]
222
+ },
223
+ { type: "separator" },
224
+ {
225
+ label: "Export",
226
+ icon: "💾",
227
+ type: "submenu",
228
+ items: [
229
+ { label: "CSV", icon: "📄", action: "exportCSV" },
230
+ { label: "JSON", icon: "📋", action: "exportJSON" },
231
+ { label: "Image", icon: "🖼️", action: "exportImage" }
232
+ ]
233
+ },
234
+ {
235
+ label: "Copy to Clipboard",
236
+ icon: "📋",
237
+ action: "copyToClipboard",
238
+ shortcut: "Ctrl+C"
239
+ },
240
+ { type: "separator" },
241
+ {
242
+ label: "Annotations",
243
+ icon: "📝",
244
+ type: "submenu",
245
+ items: [
246
+ { label: "Add Horizontal Line", icon: "—", action: "addHorizontalLine" },
247
+ { label: "Add Vertical Line", icon: "|", action: "addVerticalLine" },
248
+ { label: "Add Text", icon: "T", action: "addTextAnnotation" },
249
+ { type: "separator" },
250
+ { label: "Clear All", icon: "🗑️", action: "clearAnnotations" }
251
+ ]
252
+ },
253
+ { type: "separator" },
254
+ {
255
+ label: "Toggle Legend",
256
+ icon: "☰",
257
+ action: "toggleLegend",
258
+ shortcut: "L"
259
+ },
260
+ {
261
+ label: "Toggle Grid",
262
+ icon: "#",
263
+ action: "toggleGrid",
264
+ shortcut: "G"
265
+ },
266
+ {
267
+ label: "Show Statistics",
268
+ icon: "📊",
269
+ action: "showStats",
270
+ shortcut: "S"
271
+ }
272
+ ], ee = {
273
+ name: "velo-plot-context-menu",
274
+ version: "1.0.0",
275
+ description: "Customizable right-click context menu for velo-plot",
276
+ author: "Sci Plot Team",
277
+ provides: ["interaction"],
278
+ tags: ["context-menu", "right-click", "menu", "ui"]
279
+ };
280
+ function ne(f = {}) {
281
+ const {
282
+ enabled: n = !0,
283
+ items: r = [],
284
+ templates: i = [],
285
+ useDefaults: d = !0,
286
+ style: h,
287
+ preventDefault: l = !0,
288
+ showOnRightClick: C = !0,
289
+ showOnLongPress: B = !0,
290
+ longPressDuration: G = 500,
291
+ beforeShow: M,
292
+ afterHide: L,
293
+ zIndex: U = 1e4
294
+ } = f;
295
+ let s = null, u = null, v = {
296
+ visible: !1,
297
+ position: { x: 0, y: 0 },
298
+ items: [],
299
+ submenuPath: [],
300
+ context: null
301
+ }, g = null, x = null;
302
+ function H(t, o) {
303
+ var a, c, m, p, b, E, w, S, k, R, F, Y;
304
+ if (!s) return;
305
+ const e = s.chart;
306
+ switch (t) {
307
+ case "zoomToFit":
308
+ (a = e.zoomToFit) == null || a.call(e);
309
+ break;
310
+ case "zoomIn":
311
+ (c = e.zoom) == null || c.call(e, 1.5);
312
+ break;
313
+ case "zoomOut":
314
+ (m = e.zoom) == null || m.call(e, 0.67);
315
+ break;
316
+ case "resetView":
317
+ (p = e.resetView) == null || p.call(e);
318
+ break;
319
+ case "panMode":
320
+ (b = e.setMode) == null || b.call(e, "pan");
321
+ break;
322
+ case "boxZoomMode":
323
+ (E = e.setMode) == null || E.call(e, "boxZoom");
324
+ break;
325
+ case "selectMode":
326
+ (w = e.setMode) == null || w.call(e, "select");
327
+ break;
328
+ case "exportCSV":
329
+ I("csv");
330
+ break;
331
+ case "exportJSON":
332
+ I("json");
333
+ break;
334
+ case "exportImage":
335
+ W();
336
+ break;
337
+ case "copyToClipboard":
338
+ Z();
339
+ break;
340
+ case "toggleLegend":
341
+ (k = e.setShowLegend) == null || k.call(e, !((S = e.getShowLegend) != null && S.call(e)));
342
+ break;
343
+ case "toggleGrid":
344
+ (F = e.setShowGrid) == null || F.call(e, !((R = e.getShowGrid) != null && R.call(e)));
345
+ break;
346
+ case "toggleCrosshair":
347
+ break;
348
+ case "addHorizontalLine":
349
+ T("hline", o);
350
+ break;
351
+ case "addVerticalLine":
352
+ T("vline", o);
353
+ break;
354
+ case "addTextAnnotation":
355
+ T("text", o);
356
+ break;
357
+ case "clearAnnotations":
358
+ (Y = e.clearAnnotations) == null || Y.call(e);
359
+ break;
360
+ }
361
+ }
362
+ function I(t) {
363
+ var a, c, m, p;
364
+ const o = s == null ? void 0 : s.chart, e = (c = (a = o == null ? void 0 : o.plugins) == null ? void 0 : a.get("velo-plot-data-export")) == null ? void 0 : c.api;
365
+ if (e)
366
+ e.download(t);
367
+ else {
368
+ const b = ((m = o.toCSV) == null ? void 0 : m.call(o)) || ((p = o.toJSON) == null ? void 0 : p.call(o));
369
+ b && J(b, `chart.${t}`, `text/${t}`);
370
+ }
371
+ }
372
+ function W() {
373
+ var e;
374
+ const t = s == null ? void 0 : s.chart, o = (e = t.toImage) == null ? void 0 : e.call(t, "png");
375
+ if (o) {
376
+ const a = document.createElement("a");
377
+ a.href = o, a.download = "chart.png", a.click();
378
+ }
379
+ }
380
+ function Z() {
381
+ var e;
382
+ const t = s == null ? void 0 : s.chart, o = (e = t.toCSV) == null ? void 0 : e.call(t);
383
+ o && navigator.clipboard.writeText(o).catch(console.error);
384
+ }
385
+ function T(t, o) {
386
+ var m, p, b;
387
+ if (!o.dataPosition) return;
388
+ const e = s == null ? void 0 : s.chart, { x: a, y: c } = o.dataPosition;
389
+ switch (t) {
390
+ case "hline":
391
+ (m = e.addAnnotation) == null || m.call(e, {
392
+ type: "horizontalLine",
393
+ y: c,
394
+ color: "#ff6b6b",
395
+ label: `Y = ${c.toFixed(4)}`
396
+ });
397
+ break;
398
+ case "vline":
399
+ (p = e.addAnnotation) == null || p.call(e, {
400
+ type: "verticalLine",
401
+ x: a,
402
+ color: "#4ecdc4",
403
+ label: `X = ${a.toFixed(4)}`
404
+ });
405
+ break;
406
+ case "text":
407
+ (b = e.addAnnotation) == null || b.call(e, {
408
+ type: "text",
409
+ x: a,
410
+ y: c,
411
+ text: "Annotation",
412
+ color: "#ffffff"
413
+ });
414
+ break;
415
+ }
416
+ }
417
+ function J(t, o, e) {
418
+ const a = new Blob([t], { type: e }), c = URL.createObjectURL(a), m = document.createElement("a");
419
+ m.href = c, m.download = o, m.click(), URL.revokeObjectURL(c);
420
+ }
421
+ function z(t) {
422
+ const o = s == null ? void 0 : s.chart, e = s == null ? void 0 : s.ui.container;
423
+ if (!e)
424
+ return {
425
+ chart: o,
426
+ event: t,
427
+ pixelPosition: { x: t.clientX, y: t.clientY },
428
+ dataPosition: null,
429
+ seriesId: null,
430
+ annotationId: null,
431
+ pointIndex: null,
432
+ area: "outside"
433
+ };
434
+ const a = e.getBoundingClientRect(), c = t.clientX - a.left, m = t.clientY - a.top, p = s == null ? void 0 : s.render.plotArea;
435
+ let b = "outside";
436
+ p && (c >= p.x && c <= p.x + p.width && m >= p.y && m <= p.y + p.height ? b = "plot" : m > p.y + p.height ? b = "xAxis" : c < p.x && (b = "yAxis"));
437
+ let E = null;
438
+ b === "plot" && s && (E = {
439
+ x: s.coords.pixelToDataX(c),
440
+ y: s.coords.pixelToDataY(m)
441
+ });
442
+ let w = null, S = null;
443
+ if (E && s) {
444
+ const k = s.coords.pickPoint(c, m, 10);
445
+ k && (w = k.seriesId, S = k.index);
446
+ }
447
+ return {
448
+ chart: o,
449
+ event: t,
450
+ pixelPosition: { x: c, y: m },
451
+ dataPosition: E,
452
+ seriesId: w,
453
+ annotationId: null,
454
+ pointIndex: S,
455
+ area: b
456
+ };
457
+ }
458
+ function A(t) {
459
+ var e;
460
+ for (const a of i)
461
+ if ((e = a.condition) != null && e.call(a, t))
462
+ return [...a.items];
463
+ let o = [];
464
+ if (d && (o = [..._]), r.length > 0 && (o.length > 0 && o.push({ type: "separator" }), o.push(...r)), M) {
465
+ const a = M(t);
466
+ if (a === !1)
467
+ return [];
468
+ o = a;
469
+ }
470
+ return o;
471
+ }
472
+ function $(t) {
473
+ if (!n || !s) return;
474
+ const o = z(t), e = A(o);
475
+ e.length !== 0 && (v = {
476
+ visible: !0,
477
+ position: { x: t.clientX, y: t.clientY },
478
+ items: e,
479
+ submenuPath: [],
480
+ context: o
481
+ }, u == null || u.show(v));
482
+ }
483
+ function P() {
484
+ v = {
485
+ ...v,
486
+ visible: !1,
487
+ context: null
488
+ }, u == null || u.hide(), L == null || L();
489
+ }
490
+ function q(t, o) {
491
+ if (P(), t.type === "separator" || t.type === "submenu")
492
+ return;
493
+ if (t.type === "checkbox" && t.onChange) {
494
+ t.onChange(!t.checked, o);
495
+ return;
496
+ }
497
+ if (t.type === "radio" && t.onChange) {
498
+ t.onChange(t.value, o);
499
+ return;
500
+ }
501
+ const e = t;
502
+ e.onClick ? e.onClick(o) : e.action && H(e.action, o);
503
+ }
504
+ function V(t) {
505
+ C && (l && t.preventDefault(), $(t));
506
+ }
507
+ function O(t) {
508
+ if (!B) return;
509
+ const o = t.touches[0];
510
+ x = { x: o.clientX, y: o.clientY }, g = setTimeout(() => {
511
+ if (x) {
512
+ const e = new MouseEvent("contextmenu", {
513
+ clientX: x.x,
514
+ clientY: x.y
515
+ });
516
+ $(e);
517
+ }
518
+ }, G);
519
+ }
520
+ function D(t) {
521
+ if (!x || !g) return;
522
+ const o = t.touches[0], e = o.clientX - x.x, a = o.clientY - x.y;
523
+ Math.sqrt(e * e + a * a) > 10 && (clearTimeout(g), g = null, x = null);
524
+ }
525
+ function N() {
526
+ g && (clearTimeout(g), g = null), x = null;
527
+ }
528
+ return {
529
+ manifest: ee,
530
+ onInit(t) {
531
+ s = t;
532
+ const o = t.ui.container;
533
+ u = new Q(
534
+ o,
535
+ h,
536
+ U,
537
+ q
538
+ ), o.addEventListener("contextmenu", V), o.addEventListener("touchstart", O, { passive: !0 }), o.addEventListener("touchmove", D, { passive: !0 }), o.addEventListener("touchend", N), t.log.info("ContextMenu plugin initialized");
539
+ },
540
+ onDestroy() {
541
+ const t = s == null ? void 0 : s.ui.container;
542
+ t && (t.removeEventListener("contextmenu", V), t.removeEventListener("touchstart", O), t.removeEventListener("touchmove", D), t.removeEventListener("touchend", N)), u == null || u.destroy(), u = null, s = null;
543
+ },
544
+ api: {
545
+ /**
546
+ * Show the context menu programmatically
547
+ */
548
+ show(t, o, e) {
549
+ const a = new MouseEvent("contextmenu", { clientX: t, clientY: o }), c = z(a);
550
+ v = {
551
+ visible: !0,
552
+ position: { x: t, y: o },
553
+ items: e || A(c),
554
+ submenuPath: [],
555
+ context: c
556
+ }, u == null || u.show(v);
557
+ },
558
+ /**
559
+ * Hide the context menu
560
+ */
561
+ hide() {
562
+ P();
563
+ },
564
+ /**
565
+ * Check if menu is visible
566
+ */
567
+ isVisible() {
568
+ return (u == null ? void 0 : u.isVisible()) ?? !1;
569
+ },
570
+ /**
571
+ * Update menu items dynamically
572
+ */
573
+ setItems(t) {
574
+ f.items = t;
575
+ },
576
+ /**
577
+ * Enable/disable the menu
578
+ */
579
+ setEnabled(t) {
580
+ f.enabled = t;
581
+ },
582
+ /**
583
+ * Update styling
584
+ */
585
+ setStyle(t) {
586
+ u == null || u.updateStyle(t || {});
587
+ },
588
+ /**
589
+ * Get available built-in actions
590
+ */
591
+ getBuiltinActions() {
592
+ return [
593
+ "zoomToFit",
594
+ "zoomIn",
595
+ "zoomOut",
596
+ "resetView",
597
+ "panMode",
598
+ "boxZoomMode",
599
+ "selectMode",
600
+ "exportCSV",
601
+ "exportJSON",
602
+ "exportImage",
603
+ "copyToClipboard",
604
+ "toggleLegend",
605
+ "toggleGrid",
606
+ "toggleCrosshair",
607
+ "addHorizontalLine",
608
+ "addVerticalLine",
609
+ "addTextAnnotation",
610
+ "clearAnnotations",
611
+ "showStats"
612
+ ];
613
+ }
614
+ }
615
+ };
616
+ }
617
+ export {
618
+ ne as PluginContextMenu,
619
+ ne as default
620
+ };
621
+ //# sourceMappingURL=context-menu.js.map