@aibee/crc-bmap 0.0.119 → 0.0.120
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.cjs.min.js +1 -1
- package/lib/bmap.cjs.min.js.map +2 -2
- package/lib/bmap.esm.js +7 -7
- package/lib/bmap.esm.js.map +2 -2
- package/lib/bmap.esm.min.js +2 -2
- package/lib/bmap.esm.min.js.map +2 -2
- package/lib/bmap.min.js +2 -2
- package/lib/bmap.min.js.map +2 -2
- package/package.json +1 -1
package/lib/bmap.esm.js
CHANGED
|
@@ -1622,7 +1622,7 @@ import {
|
|
|
1622
1622
|
Vector3 as Vector317,
|
|
1623
1623
|
Vector2 as Vector26,
|
|
1624
1624
|
Raycaster as Raycaster3,
|
|
1625
|
-
Box3 as
|
|
1625
|
+
Box3 as Box39,
|
|
1626
1626
|
Color as Color6,
|
|
1627
1627
|
AmbientLight as AmbientLight2
|
|
1628
1628
|
} from "three";
|
|
@@ -3710,9 +3710,9 @@ var GlbModel = class extends Object3D11 {
|
|
|
3710
3710
|
|
|
3711
3711
|
// src/elements/lane.ts
|
|
3712
3712
|
import { BufferGeometry as BufferGeometry3, ExtrudeGeometry as ExtrudeGeometry4, LineSegments as LineSegments3, Mesh as Mesh6, Object3D as Object3D12, Vector3 as Vector313 } from "three";
|
|
3713
|
-
import { mergeGeometries as mergeGeometries2 } from "three/examples/jsm/utils/BufferGeometryUtils";
|
|
3714
|
-
import { Line2 } from "three/examples/jsm/lines/line2";
|
|
3715
|
-
import { LineGeometry } from "three/examples/jsm/lines/lineGeometry";
|
|
3713
|
+
import { mergeGeometries as mergeGeometries2 } from "three/examples/jsm/utils/BufferGeometryUtils.js";
|
|
3714
|
+
import { Line2 } from "three/examples/jsm/lines/line2.js";
|
|
3715
|
+
import { LineGeometry } from "three/examples/jsm/lines/lineGeometry.js";
|
|
3716
3716
|
var Lane = class extends Object3D12 {
|
|
3717
3717
|
constructor(context, options) {
|
|
3718
3718
|
super();
|
|
@@ -4419,7 +4419,7 @@ var MaterialFactory = class {
|
|
|
4419
4419
|
};
|
|
4420
4420
|
|
|
4421
4421
|
// src/utils/camera-bound.ts
|
|
4422
|
-
import { Box3 as
|
|
4422
|
+
import { Box3 as Box38, Vector3 as Vector316 } from "three";
|
|
4423
4423
|
var CameraBound = class {
|
|
4424
4424
|
constructor(context) {
|
|
4425
4425
|
this.context = context;
|
|
@@ -4466,7 +4466,7 @@ var CameraBound = class {
|
|
|
4466
4466
|
if (!floors.length) {
|
|
4467
4467
|
return null;
|
|
4468
4468
|
}
|
|
4469
|
-
const box = new
|
|
4469
|
+
const box = new Box38().setFromObject(this.context.scene);
|
|
4470
4470
|
const { camera, clientSize: { width: w, height: h } } = this.context;
|
|
4471
4471
|
const { min, max } = box;
|
|
4472
4472
|
const lb = vector3ToDevice(min, camera, w, h);
|
|
@@ -4855,7 +4855,7 @@ var Context = class extends EventDispatcher6 {
|
|
|
4855
4855
|
if (force2DView) {
|
|
4856
4856
|
this.setPolarAngle(0, 0);
|
|
4857
4857
|
}
|
|
4858
|
-
const boundingBox = new
|
|
4858
|
+
const boundingBox = new Box39().setFromObject(object);
|
|
4859
4859
|
this.setPolarAngle(polar, 0);
|
|
4860
4860
|
const { max, min } = boundingBox;
|
|
4861
4861
|
const leftTop = new Vector317(min.x, max.y, max.z);
|