@antv/g-lite 2.2.3 → 2.2.4

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.3
5
- * @date 11/14/2024, 8:16:02 AM
4
+ * @version 2.2.4
5
+ * @date 11/15/2024, 6:16:33 AM
6
6
  * @author AntVis
7
7
  * @docs https://g.antv.antgroup.com/
8
8
  */
@@ -12460,15 +12460,9 @@ var DisplayObject = /*#__PURE__*/function (_Element) {
12460
12460
  clonedStyle[attributeName] = customCloneFunc(attributeName, attribute);
12461
12461
  }
12462
12462
  }
12463
- var cloned = new this.constructor({
12464
- // copy id & name
12465
- // @see https://developer.mozilla.org/en-US/docs/Web/API/Node/cloneNode#notes
12466
- id: this.id,
12467
- name: this.name,
12468
- className: this.name,
12469
- interactive: this.interactive,
12463
+ var cloned = new this.constructor(_objectSpread(_objectSpread({}, this.config), {}, {
12470
12464
  style: clonedStyle
12471
- });
12465
+ }));
12472
12466
 
12473
12467
  // apply transform
12474
12468
  cloned.setLocalTransform(this.getLocalTransform());