@antv/g-lite 2.5.0 → 2.5.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.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.5.
|
|
5
|
-
* @date 12/
|
|
4
|
+
* @version 2.5.1
|
|
5
|
+
* @date 12/12/2025, 3:28:41 AM
|
|
6
6
|
* @author AntVis
|
|
7
7
|
* @docs https://g.antv.antgroup.com/
|
|
8
8
|
*/
|
|
@@ -11216,18 +11216,26 @@ var DefaultSceneGraphService = /*#__PURE__*/function () {
|
|
|
11216
11216
|
}, {
|
|
11217
11217
|
key: "notifyMutationObservers",
|
|
11218
11218
|
value: function notifyMutationObservers(canvas) {
|
|
11219
|
-
var mutations =
|
|
11219
|
+
var mutations = new Set();
|
|
11220
11220
|
canvas.getRoot().forEach(function (item) {
|
|
11221
11221
|
(item.mutations || []).forEach(function (mutation) {
|
|
11222
11222
|
if (mutation.type === 'attributes' && mutation._boundsChangeData) {
|
|
11223
|
-
|
|
11223
|
+
if (mutation._boundsChangeData.affectChildren) {
|
|
11224
|
+
item.forEach(function (node) {
|
|
11225
|
+
var newMutation = _objectSpread({}, mutation);
|
|
11226
|
+
newMutation.target = node;
|
|
11227
|
+
mutations.add(newMutation);
|
|
11228
|
+
});
|
|
11229
|
+
} else {
|
|
11230
|
+
mutations.add(mutation);
|
|
11231
|
+
}
|
|
11224
11232
|
}
|
|
11225
11233
|
});
|
|
11226
11234
|
item.mutations = undefined;
|
|
11227
11235
|
});
|
|
11228
|
-
if (mutations.
|
|
11236
|
+
if (mutations.size > 0) {
|
|
11229
11237
|
var event = new CustomEvent(ElementEvent.BOUNDS_CHANGED, {
|
|
11230
|
-
detail: mutations
|
|
11238
|
+
detail: Array.from(mutations)
|
|
11231
11239
|
});
|
|
11232
11240
|
canvas.dispatchEvent(event, true, true);
|
|
11233
11241
|
}
|