@antv/g-lite 2.2.0 → 2.2.1

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.0
5
- * @date 11/4/2024, 9:35:22 AM
4
+ * @version 2.2.1
5
+ * @date 11/5/2024, 10:45:58 AM
6
6
  * @author AntVis
7
7
  * @docs https://g.antv.antgroup.com/
8
8
  */
@@ -9659,7 +9659,6 @@ var EventService = /*#__PURE__*/function () {
9659
9659
  key: "notifyListeners",
9660
9660
  value: function notifyListeners(e, type) {
9661
9661
  // hack EventEmitter, stops if the `propagationImmediatelyStopped` flag is set
9662
- // @ts-ignore
9663
9662
  var emitter = e.currentTarget.emitter;
9664
9663
  // @ts-ignore
9665
9664
  var listeners = emitter._events[type];
@@ -12137,6 +12136,9 @@ var Element = /*#__PURE__*/function (_Node) {
12137
12136
  }, {
12138
12137
  key: "destroy",
12139
12138
  value: function destroy() {
12139
+ // fix https://github.com/antvis/G/issues/1813
12140
+ this.destroyChildren();
12141
+
12140
12142
  // destroy itself before remove
12141
12143
  this.dispatchEvent(destroyEvent);
12142
12144