@rm-graph/core 0.1.4 → 0.1.5
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 +38 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +38 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1381,30 +1381,49 @@ var PRPDChart = class {
|
|
|
1381
1381
|
*/
|
|
1382
1382
|
destroy() {
|
|
1383
1383
|
if (this.isDestroyed) return;
|
|
1384
|
-
this.
|
|
1385
|
-
|
|
1386
|
-
this.
|
|
1387
|
-
|
|
1388
|
-
this.sineLineSeries = null;
|
|
1384
|
+
this.isDestroyed = true;
|
|
1385
|
+
try {
|
|
1386
|
+
this.clearHeatmapLegend();
|
|
1387
|
+
} catch (e) {
|
|
1389
1388
|
}
|
|
1390
|
-
|
|
1391
|
-
this.
|
|
1392
|
-
|
|
1389
|
+
try {
|
|
1390
|
+
if (this.sineLineSeries && this.surface) {
|
|
1391
|
+
this.surface.renderableSeries.remove(this.sineLineSeries);
|
|
1392
|
+
this.sineLineSeries.delete();
|
|
1393
|
+
}
|
|
1394
|
+
} catch (e) {
|
|
1393
1395
|
}
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
this.
|
|
1397
|
-
|
|
1396
|
+
this.sineLineSeries = null;
|
|
1397
|
+
try {
|
|
1398
|
+
if (this.sineDataSeries) {
|
|
1399
|
+
this.sineDataSeries.delete();
|
|
1400
|
+
}
|
|
1401
|
+
} catch (e) {
|
|
1398
1402
|
}
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
this.
|
|
1403
|
+
this.sineDataSeries = null;
|
|
1404
|
+
try {
|
|
1405
|
+
if (this.heatmapSeries && this.surface) {
|
|
1406
|
+
this.surface.renderableSeries.remove(this.heatmapSeries);
|
|
1407
|
+
this.heatmapSeries.delete();
|
|
1408
|
+
}
|
|
1409
|
+
} catch (e) {
|
|
1402
1410
|
}
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
this.
|
|
1411
|
+
this.heatmapSeries = null;
|
|
1412
|
+
try {
|
|
1413
|
+
if (this.heatmapDataSeries) {
|
|
1414
|
+
this.heatmapDataSeries.delete();
|
|
1415
|
+
}
|
|
1416
|
+
} catch (e) {
|
|
1406
1417
|
}
|
|
1407
|
-
this.
|
|
1418
|
+
this.heatmapDataSeries = null;
|
|
1419
|
+
try {
|
|
1420
|
+
if (this.surface) {
|
|
1421
|
+
this.surface.chartModifiers.clear();
|
|
1422
|
+
this.surface.delete();
|
|
1423
|
+
}
|
|
1424
|
+
} catch (e) {
|
|
1425
|
+
}
|
|
1426
|
+
this.surface = null;
|
|
1408
1427
|
}
|
|
1409
1428
|
};
|
|
1410
1429
|
async function createPRPDChart(container, config) {
|