@antv/g-lite 1.2.22 → 1.2.23
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 +6 -12
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -12
- package/dist/index.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -11130,6 +11130,9 @@ var DefaultSceneGraphService = /** @class */ (function () {
|
|
|
11130
11130
|
}
|
|
11131
11131
|
}
|
|
11132
11132
|
});
|
|
11133
|
+
if (!aabb) {
|
|
11134
|
+
aabb = new AABB();
|
|
11135
|
+
}
|
|
11133
11136
|
if (render) {
|
|
11134
11137
|
// FIXME: account for clip path
|
|
11135
11138
|
var clipped = findClosestClipPathTarget(element);
|
|
@@ -11137,28 +11140,19 @@ var DefaultSceneGraphService = /** @class */ (function () {
|
|
|
11137
11140
|
// use bounds under world space
|
|
11138
11141
|
var clipPathBounds = clipped.parsedStyle.clipPath.getBounds(render);
|
|
11139
11142
|
if (!aabb) {
|
|
11140
|
-
aabb
|
|
11143
|
+
aabb.update(clipPathBounds.center, clipPathBounds.halfExtents);
|
|
11141
11144
|
}
|
|
11142
11145
|
else if (clipPathBounds) {
|
|
11143
11146
|
aabb = clipPathBounds.intersection(aabb);
|
|
11144
11147
|
}
|
|
11145
11148
|
}
|
|
11146
11149
|
}
|
|
11147
|
-
if (!aabb) {
|
|
11148
|
-
aabb = new AABB();
|
|
11149
|
-
}
|
|
11150
|
-
if (aabb) {
|
|
11151
|
-
if (render) {
|
|
11152
|
-
renderable.renderBounds = aabb;
|
|
11153
|
-
}
|
|
11154
|
-
else {
|
|
11155
|
-
renderable.bounds = aabb;
|
|
11156
|
-
}
|
|
11157
|
-
}
|
|
11158
11150
|
if (render) {
|
|
11151
|
+
renderable.renderBounds = aabb;
|
|
11159
11152
|
renderable.renderBoundsDirty = false;
|
|
11160
11153
|
}
|
|
11161
11154
|
else {
|
|
11155
|
+
renderable.bounds = aabb;
|
|
11162
11156
|
renderable.boundsDirty = false;
|
|
11163
11157
|
}
|
|
11164
11158
|
return aabb;
|