@rm-graph/core 0.1.0 → 0.1.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/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { ThemeManager, __require } from './chunk-Q2ZHY445.mjs';
1
+ import { __require, ThemeManager } from './chunk-Q2ZHY445.mjs';
2
2
  export { ThemeManager, darkTheme, getThemeManager, lightTheme, midnightTheme, modernTheme } from './chunk-Q2ZHY445.mjs';
3
3
  import { SciChartSurface, NumericAxis, EAutoRange, NumberRange, RolloverModifier, ZoomPanModifier, MouseWheelZoomModifier, XyDataSeries, FastLineRenderableSeries, EllipsePointMarker, SweepAnimation, FastColumnRenderableSeries, WaveAnimation, GradientParams, Point, FastMountainRenderableSeries, UniformHeatmapDataSeries, UniformHeatmapRenderableSeries, HeatmapColorMap, SciChart3DSurface, NumericAxis3D, MouseWheelZoomModifier3D, OrbitModifier3D, CameraController, Vector3, UniformGridDataSeries3D, GradientColorPalette, SurfaceMeshRenderableSeries3D, EDrawMeshAs, XyzDataSeries3D, ColumnRenderableSeries3D, PointLineRenderableSeries3D, TooltipModifier3D, SciChartJSDarkTheme, SciChartJSLightTheme } from 'scichart';
4
4
  export { SciChartSurface } from 'scichart';
@@ -1584,14 +1584,33 @@ async function createColumn3DChart(container, config) {
1584
1584
  await chart.init(container);
1585
1585
  return chart;
1586
1586
  }
1587
- var VERSION = "0.1.0";
1587
+ var VERSION = "0.1.1";
1588
+ var SCICHART_VERSION = "3.5.750";
1589
+ var DEFAULT_WASM_URL = `https://cdn.jsdelivr.net/npm/scichart@${SCICHART_VERSION}/_wasm/scichart2d.wasm`;
1590
+ var DEFAULT_DATA_URL = `https://cdn.jsdelivr.net/npm/scichart@${SCICHART_VERSION}/_wasm/scichart2d.data`;
1591
+ var isConfigured = false;
1592
+ function autoConfigureSciChart() {
1593
+ if (isConfigured) return;
1594
+ try {
1595
+ const { SciChartSurface: SciChartSurface6 } = __require("scichart");
1596
+ SciChartSurface6.configure({
1597
+ wasmUrl: DEFAULT_WASM_URL,
1598
+ dataUrl: DEFAULT_DATA_URL
1599
+ });
1600
+ isConfigured = true;
1601
+ } catch {
1602
+ }
1603
+ }
1604
+ autoConfigureSciChart();
1588
1605
  function configureSciChart(options) {
1589
- if (options.wasmUrl || options.dataUrl) {
1606
+ try {
1590
1607
  const { SciChartSurface: SciChartSurface6 } = __require("scichart");
1591
1608
  SciChartSurface6.configure({
1592
- wasmUrl: options.wasmUrl,
1593
- dataUrl: options.dataUrl
1609
+ wasmUrl: options.wasmUrl || DEFAULT_WASM_URL,
1610
+ dataUrl: options.dataUrl || DEFAULT_DATA_URL
1594
1611
  });
1612
+ isConfigured = true;
1613
+ } catch {
1595
1614
  }
1596
1615
  }
1597
1616