@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.js CHANGED
@@ -11151,6 +11151,9 @@ var DefaultSceneGraphService = /** @class */ (function () {
11151
11151
  }
11152
11152
  }
11153
11153
  });
11154
+ if (!aabb) {
11155
+ aabb = new AABB();
11156
+ }
11154
11157
  if (render) {
11155
11158
  // FIXME: account for clip path
11156
11159
  var clipped = findClosestClipPathTarget(element);
@@ -11158,28 +11161,19 @@ var DefaultSceneGraphService = /** @class */ (function () {
11158
11161
  // use bounds under world space
11159
11162
  var clipPathBounds = clipped.parsedStyle.clipPath.getBounds(render);
11160
11163
  if (!aabb) {
11161
- aabb = clipPathBounds;
11164
+ aabb.update(clipPathBounds.center, clipPathBounds.halfExtents);
11162
11165
  }
11163
11166
  else if (clipPathBounds) {
11164
11167
  aabb = clipPathBounds.intersection(aabb);
11165
11168
  }
11166
11169
  }
11167
11170
  }
11168
- if (!aabb) {
11169
- aabb = new AABB();
11170
- }
11171
- if (aabb) {
11172
- if (render) {
11173
- renderable.renderBounds = aabb;
11174
- }
11175
- else {
11176
- renderable.bounds = aabb;
11177
- }
11178
- }
11179
11171
  if (render) {
11172
+ renderable.renderBounds = aabb;
11180
11173
  renderable.renderBoundsDirty = false;
11181
11174
  }
11182
11175
  else {
11176
+ renderable.bounds = aabb;
11183
11177
  renderable.boundsDirty = false;
11184
11178
  }
11185
11179
  return aabb;