@antv/g-lite 2.0.11-alpha.3 → 2.0.11-alpha.4
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/Canvas.d.ts.map +1 -1
- package/dist/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15091,8 +15091,9 @@ var Canvas = /** @class */ (function (_super) {
|
|
|
15091
15091
|
*/
|
|
15092
15092
|
Canvas.prototype.destroy = function (cleanUp, skipTriggerEvent) {
|
|
15093
15093
|
if (cleanUp === void 0) { cleanUp = true; }
|
|
15094
|
+
var fastCleanExistingCanvas = this.getConfig().fastCleanExistingCanvas;
|
|
15094
15095
|
if (skipTriggerEvent === undefined)
|
|
15095
|
-
skipTriggerEvent =
|
|
15096
|
+
skipTriggerEvent = fastCleanExistingCanvas;
|
|
15096
15097
|
if (!skipTriggerEvent) {
|
|
15097
15098
|
this.dispatchEvent(new CustomEvent(exports.CanvasEvent.BEFORE_DESTROY));
|
|
15098
15099
|
}
|
|
@@ -15103,7 +15104,7 @@ var Canvas = /** @class */ (function (_super) {
|
|
|
15103
15104
|
// unmount all children
|
|
15104
15105
|
var root = this.getRoot();
|
|
15105
15106
|
this.unmountChildren(root);
|
|
15106
|
-
if (cleanUp) {
|
|
15107
|
+
if (cleanUp && !fastCleanExistingCanvas) {
|
|
15107
15108
|
// destroy Document
|
|
15108
15109
|
this.document.destroy();
|
|
15109
15110
|
this.getEventService().destroy();
|