@antv/g-lite 2.2.6 → 2.2.7
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.esm.js +7 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.umd.min.js +4 -4
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/types/Canvas.d.ts +2 -1
- package/types/Canvas.d.ts.map +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @antv/g-lite
|
|
3
3
|
* @description A core module for rendering engine implements DOM API.
|
|
4
|
-
* @version 2.2.
|
|
5
|
-
* @date 11/
|
|
4
|
+
* @version 2.2.7
|
|
5
|
+
* @date 11/27/2024, 9:20:36 AM
|
|
6
6
|
* @author AntVis
|
|
7
7
|
* @docs https://g.antv.antgroup.com/
|
|
8
8
|
*/
|
|
@@ -15548,14 +15548,14 @@ var Canvas = /*#__PURE__*/function (_EventTarget) {
|
|
|
15548
15548
|
}
|
|
15549
15549
|
|
|
15550
15550
|
/**
|
|
15551
|
-
*
|
|
15551
|
+
* @param cleanUp - whether to clean up all the internal services of Canvas
|
|
15552
|
+
* @param skipTriggerEvent - whether to skip trigger destroy event
|
|
15552
15553
|
*/
|
|
15553
15554
|
}, {
|
|
15554
15555
|
key: "destroy",
|
|
15555
15556
|
value: function destroy() {
|
|
15556
15557
|
var cleanUp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
15557
15558
|
var skipTriggerEvent = arguments.length > 1 ? arguments[1] : undefined;
|
|
15558
|
-
if (skipTriggerEvent === undefined) skipTriggerEvent = this.getConfig().fastCleanExistingCanvas;
|
|
15559
15559
|
if (!skipTriggerEvent) {
|
|
15560
15560
|
this.dispatchEvent(new CustomEvent(CanvasEvent.BEFORE_DESTROY));
|
|
15561
15561
|
}
|
|
@@ -15565,8 +15565,8 @@ var Canvas = /*#__PURE__*/function (_EventTarget) {
|
|
|
15565
15565
|
|
|
15566
15566
|
// unmount all children
|
|
15567
15567
|
var root = this.getRoot();
|
|
15568
|
-
this.unmountChildren(root);
|
|
15569
15568
|
if (cleanUp) {
|
|
15569
|
+
this.unmountChildren(root);
|
|
15570
15570
|
// destroy Document
|
|
15571
15571
|
this.document.destroy();
|
|
15572
15572
|
this.getEventService().destroy();
|
|
@@ -15576,8 +15576,8 @@ var Canvas = /*#__PURE__*/function (_EventTarget) {
|
|
|
15576
15576
|
this.getRenderingService().destroy();
|
|
15577
15577
|
this.getContextService().destroy();
|
|
15578
15578
|
|
|
15579
|
-
// clear root after
|
|
15580
|
-
if (
|
|
15579
|
+
// clear root after render service destroyed
|
|
15580
|
+
if (this.context.rBushRoot) {
|
|
15581
15581
|
// clear rbush
|
|
15582
15582
|
this.context.rBushRoot.clear();
|
|
15583
15583
|
this.context.rBushRoot = null;
|