@aibee/crc-bmap 0.0.22 → 0.0.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/lib/bmap.esm.js CHANGED
@@ -1638,6 +1638,14 @@ var BoxSelection = class extends BaseSvg {
1638
1638
  const { context: { camera, container: { clientWidth: w, clientHeight: h } } } = this;
1639
1639
  if (!object)
1640
1640
  return false;
1641
+ if (!object.mesh) {
1642
+ const position = object.getPosition();
1643
+ if (position) {
1644
+ const position2d = vector3ToDevice(position, camera, w, h);
1645
+ return isContain(position2d, leftTop, rightBottom);
1646
+ }
1647
+ return false;
1648
+ }
1641
1649
  if (!object.mesh.geometry.boundingBox) {
1642
1650
  object.mesh.geometry.computeBoundingBox();
1643
1651
  }