@rm-graph/core 0.1.10 → 0.1.12
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/README.md +3 -52
- package/dist/{chunk-KATRK3C3.js → chunk-4JQVY6S5.js} +2 -10
- package/dist/chunk-4JQVY6S5.js.map +1 -0
- package/dist/{chunk-Q2ZHY445.mjs → chunk-7GF5X23V.mjs} +3 -10
- package/dist/chunk-7GF5X23V.mjs.map +1 -0
- package/dist/chunk-BJTO5JO5.mjs +10 -0
- package/dist/chunk-BJTO5JO5.mjs.map +1 -0
- package/dist/chunk-DGUM43GV.js +12 -0
- package/dist/chunk-DGUM43GV.js.map +1 -0
- package/dist/chunk-PKJHVSFI.mjs +199 -0
- package/dist/chunk-PKJHVSFI.mjs.map +1 -0
- package/dist/chunk-RLQMHQEV.js +218 -0
- package/dist/chunk-RLQMHQEV.js.map +1 -0
- package/dist/index.d.mts +208 -17
- package/dist/index.d.ts +208 -17
- package/dist/index.js +135 -36
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +51 -27
- package/dist/index.mjs.map +1 -1
- package/dist/license-MTK7WNNA.mjs +4 -0
- package/dist/license-MTK7WNNA.mjs.map +1 -0
- package/dist/license-U7ZNTU6D.js +81 -0
- package/dist/license-U7ZNTU6D.js.map +1 -0
- package/dist/themes/index.js +8 -7
- package/dist/themes/index.mjs +2 -1
- package/package.json +14 -12
- package/dist/chunk-KATRK3C3.js.map +0 -1
- package/dist/chunk-Q2ZHY445.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { ThemeManager, darkTheme, getThemeManager, lightTheme, midnightTheme, modernTheme } from './chunk-
|
|
1
|
+
import { ThemeManager } from './chunk-7GF5X23V.mjs';
|
|
2
|
+
export { ThemeManager, darkTheme, getThemeManager, lightTheme, midnightTheme, modernTheme } from './chunk-7GF5X23V.mjs';
|
|
3
|
+
export { applyLicenseKey, clearStoredLicense, configureLicenseEncryption, decryptLicense, encryptLicense, getCurrentPassphrase, getLicenseStatus, getLicenseStorageKey, hasEncryptedLicense, hasStoredLicense, isLicenseApplied, loadEncryptedLicense, loadLicense, removeLicense, resetPassphrase, saveEncryptedLicense, setLicense, validateLicenseFormat } from './chunk-PKJHVSFI.mjs';
|
|
4
|
+
import { __require } from './chunk-BJTO5JO5.mjs';
|
|
3
5
|
import { SciChart3DSurface, NumericAxis3D, MouseWheelZoomModifier3D, OrbitModifier3D, CameraController, Vector3, UniformGridDataSeries3D, GradientColorPalette, SurfaceMeshRenderableSeries3D, EDrawMeshAs, SciChartJSLightTheme, ResetCamera3DModifier, NumberRange, XyzDataSeries3D, ColumnRenderableSeries3D, CylinderPointMarker3D, PointLineRenderableSeries3D, TooltipModifier3D, SciChartSurface, NumericAxis, EAxisAlignment, ENumericFormat, EAutoRange, CursorModifier, RubberBandXyZoomModifier, ZoomExtentsModifier, HeatmapColorMap, UniformHeatmapDataSeries, UniformHeatmapRenderableSeries, XyDataSeries, FastLineRenderableSeries, HeatmapLegend, NumericLabelProvider } from 'scichart';
|
|
4
6
|
export { SciChartSurface } from 'scichart';
|
|
5
7
|
import { SciChartJSLightTheme as SciChartJSLightTheme$1 } from 'scichart/Charting/Themes/SciChartJSLightTheme';
|
|
@@ -800,12 +802,13 @@ var Column3DChart = class {
|
|
|
800
802
|
this.addTooltip();
|
|
801
803
|
}
|
|
802
804
|
/**
|
|
803
|
-
* Setup camera clamping to restrict camera movement
|
|
804
|
-
*
|
|
805
|
-
* Pitch clamped to [0, 89]. Radius clamped to [495, 805].
|
|
805
|
+
* Setup camera clamping to restrict camera movement
|
|
806
|
+
* Matches the original ThreeDGraph.jsx behavior
|
|
806
807
|
*/
|
|
807
808
|
setupCameraClamping() {
|
|
808
809
|
if (!this.surface) return;
|
|
810
|
+
const maxCameraRadius = this.config.maxCameraRadius ?? 805;
|
|
811
|
+
const minCameraRadius = this.config.minCameraRadius ?? 575;
|
|
809
812
|
let isClamping = false;
|
|
810
813
|
this.surface.camera.propertyChanged.subscribe(() => {
|
|
811
814
|
if (isClamping) return;
|
|
@@ -815,8 +818,6 @@ var Column3DChart = class {
|
|
|
815
818
|
let yaw = this.surface.camera.orbitalYaw;
|
|
816
819
|
let pitch = this.surface.camera.orbitalPitch;
|
|
817
820
|
let cameraRadius = this.surface.camera.radius;
|
|
818
|
-
const maxCameraRadius = this.config.maxCameraRadius ?? 805;
|
|
819
|
-
const minCameraRadius = this.config.minCameraRadius ?? 495;
|
|
820
821
|
if (Math.floor(yaw) > 100) {
|
|
821
822
|
yaw = -180;
|
|
822
823
|
} else if (Math.floor(yaw) >= 0) {
|
|
@@ -825,7 +826,7 @@ var Column3DChart = class {
|
|
|
825
826
|
if (pitch <= 0) {
|
|
826
827
|
pitch = 0;
|
|
827
828
|
} else if (pitch >= 89) {
|
|
828
|
-
pitch =
|
|
829
|
+
pitch = 88;
|
|
829
830
|
}
|
|
830
831
|
if (cameraRadius >= maxCameraRadius) {
|
|
831
832
|
cameraRadius = maxCameraRadius;
|
|
@@ -842,7 +843,9 @@ var Column3DChart = class {
|
|
|
842
843
|
this.surface.camera.radius = cameraRadius;
|
|
843
844
|
}
|
|
844
845
|
} finally {
|
|
845
|
-
|
|
846
|
+
setTimeout(() => {
|
|
847
|
+
isClamping = false;
|
|
848
|
+
}, 0);
|
|
846
849
|
}
|
|
847
850
|
});
|
|
848
851
|
}
|
|
@@ -869,8 +872,8 @@ var Column3DChart = class {
|
|
|
869
872
|
flippedCoordinates: true,
|
|
870
873
|
axisBandsFill: "#d2d2d2",
|
|
871
874
|
planeBorderThickness: 3,
|
|
872
|
-
axisTitleStyle: { color: "#000000"
|
|
873
|
-
labelStyle: { color: "#000000"
|
|
875
|
+
axisTitleStyle: { color: "#000000" },
|
|
876
|
+
labelStyle: { color: "#000000" }
|
|
874
877
|
});
|
|
875
878
|
this.surface.yAxis = new NumericAxis3D(wasmContext, {
|
|
876
879
|
axisTitle: yAxisTitle,
|
|
@@ -879,8 +882,8 @@ var Column3DChart = class {
|
|
|
879
882
|
drawMinorGridLines: false,
|
|
880
883
|
majorGridLineStyle: { color: "#7e7e7e" },
|
|
881
884
|
axisBandsFill: "#b1b1b1",
|
|
882
|
-
axisTitleStyle: { color: "#000000"
|
|
883
|
-
labelStyle: { color: "#000000"
|
|
885
|
+
axisTitleStyle: { color: "#000000" },
|
|
886
|
+
labelStyle: { color: "#000000" }
|
|
884
887
|
});
|
|
885
888
|
this.surface.zAxis = new NumericAxis3D(wasmContext, {
|
|
886
889
|
axisTitle: this.config.zAxisTitle ?? "Cycle",
|
|
@@ -892,8 +895,8 @@ var Column3DChart = class {
|
|
|
892
895
|
axisBandsFill: "#d0d0d0",
|
|
893
896
|
planeBorderThickness: 3,
|
|
894
897
|
labelPrecision: 0,
|
|
895
|
-
axisTitleStyle: { color: "#000000"
|
|
896
|
-
labelStyle: { color: "#000000"
|
|
898
|
+
axisTitleStyle: { color: "#000000" },
|
|
899
|
+
labelStyle: { color: "#000000" }
|
|
897
900
|
});
|
|
898
901
|
if (wasmContext.eSCRTTextAlignement) {
|
|
899
902
|
this.surface.yAxis.labelStyle.alignment = wasmContext.eSCRTTextAlignement.SCRT_TEXT_ALIGNEMENT_SCREEN_AUTOROTATED;
|
|
@@ -1115,17 +1118,6 @@ var Column3DChart = class {
|
|
|
1115
1118
|
getSurface() {
|
|
1116
1119
|
return this.surface;
|
|
1117
1120
|
}
|
|
1118
|
-
/**
|
|
1119
|
-
* Notify SciChart that the container has resized so the WebGL canvas
|
|
1120
|
-
* adjusts to the new dimensions. Call after maximize / minimize.
|
|
1121
|
-
*/
|
|
1122
|
-
resize() {
|
|
1123
|
-
if (!this.surface || this.isDestroyed) return;
|
|
1124
|
-
try {
|
|
1125
|
-
this.surface.invalidateElement?.();
|
|
1126
|
-
} catch {
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
1121
|
/**
|
|
1130
1122
|
* Destroy and clean up
|
|
1131
1123
|
*/
|
|
@@ -1763,6 +1755,38 @@ async function createPRPDChart(container, config) {
|
|
|
1763
1755
|
await chart.init(container);
|
|
1764
1756
|
return chart;
|
|
1765
1757
|
}
|
|
1758
|
+
async function setupSciChartLicense(options) {
|
|
1759
|
+
const { loadLicense: loadLicense2 } = await import('./license-MTK7WNNA.mjs');
|
|
1760
|
+
const { SciChartSurface: SciChartSurface4 } = await import('scichart');
|
|
1761
|
+
let licenseKey;
|
|
1762
|
+
if (options.fromEnv) {
|
|
1763
|
+
if (typeof import.meta !== "undefined" && import.meta.env?.VITE_SCICHART_LICENSE_KEY) {
|
|
1764
|
+
licenseKey = import.meta.env.VITE_SCICHART_LICENSE_KEY;
|
|
1765
|
+
} else if (typeof process !== "undefined" && process.env?.SCICHART_LICENSE_KEY) {
|
|
1766
|
+
licenseKey = process.env.SCICHART_LICENSE_KEY;
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
if (!licenseKey && options.fromLocalStorage) {
|
|
1770
|
+
const loaded = await loadLicense2();
|
|
1771
|
+
if (loaded) {
|
|
1772
|
+
return true;
|
|
1773
|
+
}
|
|
1774
|
+
}
|
|
1775
|
+
if (!licenseKey && options.licenseKey) {
|
|
1776
|
+
licenseKey = options.licenseKey;
|
|
1777
|
+
}
|
|
1778
|
+
if (licenseKey) {
|
|
1779
|
+
SciChartSurface4.setRuntimeLicenseKey(licenseKey);
|
|
1780
|
+
return true;
|
|
1781
|
+
}
|
|
1782
|
+
return false;
|
|
1783
|
+
}
|
|
1784
|
+
function configureSciChartLicense(licenseKey) {
|
|
1785
|
+
if (licenseKey) {
|
|
1786
|
+
const { SciChartSurface: SciChartSurface4 } = __require("scichart");
|
|
1787
|
+
SciChartSurface4.setRuntimeLicenseKey(licenseKey);
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1766
1790
|
var VERSION = "0.1.1";
|
|
1767
1791
|
var SCICHART_VERSION5 = "4.0.933";
|
|
1768
1792
|
var DEFAULT_WASM_URL = `https://cdn.jsdelivr.net/npm/scichart@${SCICHART_VERSION5}/_wasm/scichart2d.wasm`;
|
|
@@ -1790,6 +1814,6 @@ function configureSciChart(options) {
|
|
|
1790
1814
|
}
|
|
1791
1815
|
}
|
|
1792
1816
|
|
|
1793
|
-
export { BaseChart, Column3DChart, DEFAULT_CAMERA_PRESETS, PRPDChart, Surface3DChart, UOM_LABELS, VERSION, calculateDataRange, clamp, configureSciChart, createColumn3DChart, createPRPDChart, createSurface3DChart, debounce, deepMerge, extractXValues, extractYValues, formatNumber, generateId, hexToRgba, lerp, mVpToDb, mVrmsToDbm, normalizeDataPoints, parseSize, throttle };
|
|
1817
|
+
export { BaseChart, Column3DChart, DEFAULT_CAMERA_PRESETS, PRPDChart, Surface3DChart, UOM_LABELS, VERSION, calculateDataRange, clamp, configureSciChart, configureSciChartLicense, createColumn3DChart, createPRPDChart, createSurface3DChart, debounce, deepMerge, extractXValues, extractYValues, formatNumber, generateId, hexToRgba, lerp, mVpToDb, mVrmsToDbm, normalizeDataPoints, parseSize, setupSciChartLicense, throttle };
|
|
1794
1818
|
//# sourceMappingURL=index.mjs.map
|
|
1795
1819
|
//# sourceMappingURL=index.mjs.map
|