@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.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.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
  */
@@ -13206,6 +13206,7 @@ var CustomElement = /*#__PURE__*/function (_DisplayObject) {
13206
13206
  _inherits(CustomElement, _DisplayObject);
13207
13207
  return _createClass(CustomElement);
13208
13208
  }(DisplayObject);
13209
+ CustomElement.PARSED_STYLE_LIST = new Set(['class', 'className', 'clipPath', 'cursor', 'draggable', 'droppable', 'opacity', 'pointerEvents', 'transform', 'transformOrigin', 'zIndex', 'visibility']);
13209
13210
 
13210
13211
  var Ellipse = /*#__PURE__*/function (_DisplayObject) {
13211
13212
  function Ellipse() {
@@ -13239,6 +13240,7 @@ var Fragment = /*#__PURE__*/function (_DisplayObject) {
13239
13240
  _inherits(Fragment, _DisplayObject);
13240
13241
  return _createClass(Fragment);
13241
13242
  }(DisplayObject);
13243
+ Fragment.PARSED_STYLE_LIST = new Set(['class', 'className']);
13242
13244
 
13243
13245
  /**
13244
13246
  * its attributes are inherited by its children.
@@ -15548,14 +15550,14 @@ var Canvas = /*#__PURE__*/function (_EventTarget) {
15548
15550
  }
15549
15551
 
15550
15552
  /**
15551
- * `cleanUp` means clean all the internal services of Canvas which happens when calling `canvas.destroy()`.
15553
+ * @param cleanUp - whether to clean up all the internal services of Canvas
15554
+ * @param skipTriggerEvent - whether to skip trigger destroy event
15552
15555
  */
15553
15556
  }, {
15554
15557
  key: "destroy",
15555
15558
  value: function destroy() {
15556
15559
  var cleanUp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
15557
15560
  var skipTriggerEvent = arguments.length > 1 ? arguments[1] : undefined;
15558
- if (skipTriggerEvent === undefined) skipTriggerEvent = this.getConfig().fastCleanExistingCanvas;
15559
15561
  if (!skipTriggerEvent) {
15560
15562
  this.dispatchEvent(new CustomEvent(CanvasEvent.BEFORE_DESTROY));
15561
15563
  }
@@ -15565,8 +15567,8 @@ var Canvas = /*#__PURE__*/function (_EventTarget) {
15565
15567
 
15566
15568
  // unmount all children
15567
15569
  var root = this.getRoot();
15568
- this.unmountChildren(root);
15569
15570
  if (cleanUp) {
15571
+ this.unmountChildren(root);
15570
15572
  // destroy Document
15571
15573
  this.document.destroy();
15572
15574
  this.getEventService().destroy();
@@ -15576,8 +15578,8 @@ var Canvas = /*#__PURE__*/function (_EventTarget) {
15576
15578
  this.getRenderingService().destroy();
15577
15579
  this.getContextService().destroy();
15578
15580
 
15579
- // clear root after renderservice destroyed
15580
- if (cleanUp && this.context.rBushRoot) {
15581
+ // clear root after render service destroyed
15582
+ if (this.context.rBushRoot) {
15581
15583
  // clear rbush
15582
15584
  this.context.rBushRoot.clear();
15583
15585
  this.context.rBushRoot = null;