@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 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
5
- * @date 11/25/2024, 6:12:35 AM
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
  */
@@ -6634,10 +6634,6 @@ var DefaultStyleValueRegistry = /*#__PURE__*/function () {
6634
6634
  }]);
6635
6635
  }();
6636
6636
  function assignParsedStyle(object, attributes) {
6637
- if (!runtime.enableMassiveParsedStyleAssignOptimization) {
6638
- Object.assign(object.parsedStyle, attributes);
6639
- return;
6640
- }
6641
6637
  var list = getParsedStyleListOf(object);
6642
6638
  for (var key in attributes) {
6643
6639
  if (list.has(key)) {
@@ -15552,14 +15548,14 @@ var Canvas = /*#__PURE__*/function (_EventTarget) {
15552
15548
  }
15553
15549
 
15554
15550
  /**
15555
- * `cleanUp` means clean all the internal services of Canvas which happens when calling `canvas.destroy()`.
15551
+ * @param cleanUp - whether to clean up all the internal services of Canvas
15552
+ * @param skipTriggerEvent - whether to skip trigger destroy event
15556
15553
  */
15557
15554
  }, {
15558
15555
  key: "destroy",
15559
15556
  value: function destroy() {
15560
15557
  var cleanUp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
15561
15558
  var skipTriggerEvent = arguments.length > 1 ? arguments[1] : undefined;
15562
- if (skipTriggerEvent === undefined) skipTriggerEvent = this.getConfig().fastCleanExistingCanvas;
15563
15559
  if (!skipTriggerEvent) {
15564
15560
  this.dispatchEvent(new CustomEvent(CanvasEvent.BEFORE_DESTROY));
15565
15561
  }
@@ -15569,8 +15565,8 @@ var Canvas = /*#__PURE__*/function (_EventTarget) {
15569
15565
 
15570
15566
  // unmount all children
15571
15567
  var root = this.getRoot();
15572
- this.unmountChildren(root);
15573
15568
  if (cleanUp) {
15569
+ this.unmountChildren(root);
15574
15570
  // destroy Document
15575
15571
  this.document.destroy();
15576
15572
  this.getEventService().destroy();
@@ -15580,8 +15576,8 @@ var Canvas = /*#__PURE__*/function (_EventTarget) {
15580
15576
  this.getRenderingService().destroy();
15581
15577
  this.getContextService().destroy();
15582
15578
 
15583
- // clear root after renderservice destroyed
15584
- if (cleanUp && this.context.rBushRoot) {
15579
+ // clear root after render service destroyed
15580
+ if (this.context.rBushRoot) {
15585
15581
  // clear rbush
15586
15582
  this.context.rBushRoot.clear();
15587
15583
  this.context.rBushRoot = null;