@rm-graph/core 0.1.7 → 0.1.8
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.js +20 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1187,24 +1187,34 @@ var PRPDChart = class {
|
|
|
1187
1187
|
visibleRange: yRange,
|
|
1188
1188
|
visibleRangeLimit: yRange
|
|
1189
1189
|
});
|
|
1190
|
+
if (this.isDestroyed) return;
|
|
1190
1191
|
sciChartSurface.xAxes.add(this.xAxis);
|
|
1191
1192
|
sciChartSurface.yAxes.add(this.yAxis);
|
|
1193
|
+
if (this.isDestroyed) return;
|
|
1192
1194
|
this.createHeatmap(zValues, multiplier, verticalResolution, isUnipolar);
|
|
1193
|
-
if (this.config.showSineWave) {
|
|
1195
|
+
if (this.config.showSineWave && !this.isDestroyed) {
|
|
1194
1196
|
this.createSineWave(yAxisRange, isUnipolar);
|
|
1195
1197
|
}
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
cursorModifier
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1198
|
+
if (this.isDestroyed) return;
|
|
1199
|
+
try {
|
|
1200
|
+
const cursorModifier = new scichart.CursorModifier();
|
|
1201
|
+
cursorModifier.axisLabelFill = "#FFFFFF";
|
|
1202
|
+
cursorModifier.axisLabelStroke = "#000000";
|
|
1203
|
+
sciChartSurface.chartModifiers.add(
|
|
1204
|
+
cursorModifier,
|
|
1205
|
+
new scichart.RubberBandXyZoomModifier(),
|
|
1206
|
+
new scichart.ZoomExtentsModifier()
|
|
1207
|
+
);
|
|
1208
|
+
} catch (e) {
|
|
1209
|
+
console.warn("PRPDChart: Failed to add modifiers", e);
|
|
1210
|
+
}
|
|
1211
|
+
if (this.isDestroyed) return;
|
|
1204
1212
|
if (this.config.showColorPalette) {
|
|
1205
1213
|
await this.createHeatmapLegend();
|
|
1206
1214
|
}
|
|
1207
|
-
|
|
1215
|
+
if (!this.isDestroyed) {
|
|
1216
|
+
this.onStatsChange?.(this.stats);
|
|
1217
|
+
}
|
|
1208
1218
|
}
|
|
1209
1219
|
createHeatmap(zValues, multiplier, verticalResolution, isUnipolar) {
|
|
1210
1220
|
if (!this.surface || !this.wasmContext) return;
|