@antv/g-lite 2.2.6 → 2.2.8

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 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.6
5
- * @date 11/25/2024, 1:44:49 PM
4
+ * @version 2.2.8
5
+ * @date 11/27/2024, 12:17:33 PM
6
6
  * @author AntVis
7
7
  * @docs https://g.antv.antgroup.com/
8
8
  */
@@ -13227,6 +13227,7 @@ var CustomElement = /*#__PURE__*/function (_DisplayObject) {
13227
13227
  _inherits(CustomElement, _DisplayObject);
13228
13228
  return _createClass(CustomElement);
13229
13229
  }(DisplayObject);
13230
+ CustomElement.PARSED_STYLE_LIST = new Set(['class', 'className', 'clipPath', 'cursor', 'draggable', 'droppable', 'opacity', 'pointerEvents', 'transform', 'transformOrigin', 'zIndex', 'visibility']);
13230
13231
 
13231
13232
  var Ellipse = /*#__PURE__*/function (_DisplayObject) {
13232
13233
  function Ellipse() {
@@ -13260,6 +13261,7 @@ var Fragment = /*#__PURE__*/function (_DisplayObject) {
13260
13261
  _inherits(Fragment, _DisplayObject);
13261
13262
  return _createClass(Fragment);
13262
13263
  }(DisplayObject);
13264
+ Fragment.PARSED_STYLE_LIST = new Set(['class', 'className']);
13263
13265
 
13264
13266
  /**
13265
13267
  * its attributes are inherited by its children.
@@ -15569,14 +15571,14 @@ var Canvas = /*#__PURE__*/function (_EventTarget) {
15569
15571
  }
15570
15572
 
15571
15573
  /**
15572
- * `cleanUp` means clean all the internal services of Canvas which happens when calling `canvas.destroy()`.
15574
+ * @param cleanUp - whether to clean up all the internal services of Canvas
15575
+ * @param skipTriggerEvent - whether to skip trigger destroy event
15573
15576
  */
15574
15577
  }, {
15575
15578
  key: "destroy",
15576
15579
  value: function destroy() {
15577
15580
  var cleanUp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
15578
15581
  var skipTriggerEvent = arguments.length > 1 ? arguments[1] : undefined;
15579
- if (skipTriggerEvent === undefined) skipTriggerEvent = this.getConfig().fastCleanExistingCanvas;
15580
15582
  if (!skipTriggerEvent) {
15581
15583
  this.dispatchEvent(new CustomEvent(CanvasEvent.BEFORE_DESTROY));
15582
15584
  }
@@ -15586,8 +15588,8 @@ var Canvas = /*#__PURE__*/function (_EventTarget) {
15586
15588
 
15587
15589
  // unmount all children
15588
15590
  var root = this.getRoot();
15589
- this.unmountChildren(root);
15590
15591
  if (cleanUp) {
15592
+ this.unmountChildren(root);
15591
15593
  // destroy Document
15592
15594
  this.document.destroy();
15593
15595
  this.getEventService().destroy();
@@ -15597,8 +15599,8 @@ var Canvas = /*#__PURE__*/function (_EventTarget) {
15597
15599
  this.getRenderingService().destroy();
15598
15600
  this.getContextService().destroy();
15599
15601
 
15600
- // clear root after renderservice destroyed
15601
- if (cleanUp && this.context.rBushRoot) {
15602
+ // clear root after render service destroyed
15603
+ if (this.context.rBushRoot) {
15602
15604
  // clear rbush
15603
15605
  this.context.rBushRoot.clear();
15604
15606
  this.context.rBushRoot = null;