@antv/g-lite 2.2.5 → 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 -11
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +7 -11
- 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/types/css/StyleValueRegistry.d.ts +1 -1
- package/types/css/StyleValueRegistry.d.ts.map +1 -1
- package/types/global-runtime.d.ts +0 -5
- package/types/global-runtime.d.ts.map +1 -1
package/dist/index.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
|
*/
|
|
@@ -6655,10 +6655,6 @@ var DefaultStyleValueRegistry = /*#__PURE__*/function () {
|
|
|
6655
6655
|
}]);
|
|
6656
6656
|
}();
|
|
6657
6657
|
function assignParsedStyle(object, attributes) {
|
|
6658
|
-
if (!runtime.enableMassiveParsedStyleAssignOptimization) {
|
|
6659
|
-
Object.assign(object.parsedStyle, attributes);
|
|
6660
|
-
return;
|
|
6661
|
-
}
|
|
6662
6658
|
var list = getParsedStyleListOf(object);
|
|
6663
6659
|
for (var key in attributes) {
|
|
6664
6660
|
if (list.has(key)) {
|
|
@@ -15573,14 +15569,14 @@ var Canvas = /*#__PURE__*/function (_EventTarget) {
|
|
|
15573
15569
|
}
|
|
15574
15570
|
|
|
15575
15571
|
/**
|
|
15576
|
-
*
|
|
15572
|
+
* @param cleanUp - whether to clean up all the internal services of Canvas
|
|
15573
|
+
* @param skipTriggerEvent - whether to skip trigger destroy event
|
|
15577
15574
|
*/
|
|
15578
15575
|
}, {
|
|
15579
15576
|
key: "destroy",
|
|
15580
15577
|
value: function destroy() {
|
|
15581
15578
|
var cleanUp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
15582
15579
|
var skipTriggerEvent = arguments.length > 1 ? arguments[1] : undefined;
|
|
15583
|
-
if (skipTriggerEvent === undefined) skipTriggerEvent = this.getConfig().fastCleanExistingCanvas;
|
|
15584
15580
|
if (!skipTriggerEvent) {
|
|
15585
15581
|
this.dispatchEvent(new CustomEvent(CanvasEvent.BEFORE_DESTROY));
|
|
15586
15582
|
}
|
|
@@ -15590,8 +15586,8 @@ var Canvas = /*#__PURE__*/function (_EventTarget) {
|
|
|
15590
15586
|
|
|
15591
15587
|
// unmount all children
|
|
15592
15588
|
var root = this.getRoot();
|
|
15593
|
-
this.unmountChildren(root);
|
|
15594
15589
|
if (cleanUp) {
|
|
15590
|
+
this.unmountChildren(root);
|
|
15595
15591
|
// destroy Document
|
|
15596
15592
|
this.document.destroy();
|
|
15597
15593
|
this.getEventService().destroy();
|
|
@@ -15601,8 +15597,8 @@ var Canvas = /*#__PURE__*/function (_EventTarget) {
|
|
|
15601
15597
|
this.getRenderingService().destroy();
|
|
15602
15598
|
this.getContextService().destroy();
|
|
15603
15599
|
|
|
15604
|
-
// clear root after
|
|
15605
|
-
if (
|
|
15600
|
+
// clear root after render service destroyed
|
|
15601
|
+
if (this.context.rBushRoot) {
|
|
15606
15602
|
// clear rbush
|
|
15607
15603
|
this.context.rBushRoot.clear();
|
|
15608
15604
|
this.context.rBushRoot = null;
|