@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/example/src/main.ts +39 -27
- package/lib/bmap.cjs.min.js +2 -2
- package/lib/bmap.cjs.min.js.map +3 -3
- package/lib/bmap.esm.js +8 -0
- package/lib/bmap.esm.js.map +2 -2
- package/lib/bmap.esm.min.js +2 -2
- package/lib/bmap.esm.min.js.map +3 -3
- package/lib/bmap.min.js +2 -2
- package/lib/bmap.min.js.map +3 -3
- package/package.json +1 -1
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
|
}
|