@aibee/crc-bmap 0.1.4 → 0.1.5
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 +6 -6
- package/lib/bmap.cjs.min.js.map +2 -2
- package/lib/bmap.esm.js +12 -12
- package/lib/bmap.esm.js.map +3 -3
- package/lib/bmap.esm.min.js +4 -4
- package/lib/bmap.esm.min.js.map +3 -3
- package/lib/bmap.min.js +7 -3722
- package/lib/bmap.min.js.map +3 -3
- package/lib/src/config.d.ts +1 -0
- package/lib/src/context/renderer.d.ts +3 -1
- package/lib/src/plugins/navigation/navigation.d.ts +1 -0
- package/package.json +1 -1
package/lib/bmap.esm.js
CHANGED
|
@@ -2273,7 +2273,7 @@ import {
|
|
|
2273
2273
|
Vector2 as Vector211,
|
|
2274
2274
|
Raycaster as Raycaster4,
|
|
2275
2275
|
Box3 as Box39,
|
|
2276
|
-
Color as
|
|
2276
|
+
Color as Color7,
|
|
2277
2277
|
AmbientLight as AmbientLight2
|
|
2278
2278
|
} from "three";
|
|
2279
2279
|
|
|
@@ -5777,7 +5777,7 @@ var Selection = class extends EventDispatcher4 {
|
|
|
5777
5777
|
return this._list;
|
|
5778
5778
|
}
|
|
5779
5779
|
enableBoxSelection() {
|
|
5780
|
-
if (this.isMultipleSelect) {
|
|
5780
|
+
if (this.isMultipleSelect || !this.context.config.enableBoxSelect) {
|
|
5781
5781
|
return;
|
|
5782
5782
|
}
|
|
5783
5783
|
this.isMultipleSelect = true;
|
|
@@ -6306,11 +6306,10 @@ var Renderer = class extends WebGLRenderer {
|
|
|
6306
6306
|
constructor(options) {
|
|
6307
6307
|
super({
|
|
6308
6308
|
antialias: true,
|
|
6309
|
+
alpha: true,
|
|
6309
6310
|
...options
|
|
6310
6311
|
});
|
|
6311
6312
|
this.autoClear = true;
|
|
6312
|
-
this.setClearAlpha(1);
|
|
6313
|
-
this.setClearColor(16777215);
|
|
6314
6313
|
this.setPixelRatio(window.devicePixelRatio);
|
|
6315
6314
|
this.shadowMap.enabled = true;
|
|
6316
6315
|
this.shadowMap.autoUpdate = true;
|
|
@@ -6349,11 +6348,10 @@ var Renderer = class extends WebGLRenderer {
|
|
|
6349
6348
|
};
|
|
6350
6349
|
|
|
6351
6350
|
// src/context/scene.ts
|
|
6352
|
-
import {
|
|
6351
|
+
import { Scene } from "three";
|
|
6353
6352
|
var ContextScene = class extends Scene {
|
|
6354
6353
|
constructor() {
|
|
6355
6354
|
super();
|
|
6356
|
-
this.background = new Color5(16777215);
|
|
6357
6355
|
}
|
|
6358
6356
|
};
|
|
6359
6357
|
|
|
@@ -6444,7 +6442,7 @@ var Context = class extends EventDispatcher7 {
|
|
|
6444
6442
|
changeAmbientLightColor(color) {
|
|
6445
6443
|
this.lights.children.forEach((item) => {
|
|
6446
6444
|
if (item instanceof AmbientLight2) {
|
|
6447
|
-
item.color = new
|
|
6445
|
+
item.color = new Color7(color);
|
|
6448
6446
|
}
|
|
6449
6447
|
});
|
|
6450
6448
|
}
|
|
@@ -6678,6 +6676,7 @@ var defaultConfig = {
|
|
|
6678
6676
|
equipmentList: "/api/inception-map/equipment/get",
|
|
6679
6677
|
roadNetwork: "/api/inception-map/road_network/get"
|
|
6680
6678
|
},
|
|
6679
|
+
enableBoxSelect: true,
|
|
6681
6680
|
resizeObserver: false,
|
|
6682
6681
|
initTransToMark: false,
|
|
6683
6682
|
heatMap: {
|
|
@@ -7266,7 +7265,7 @@ import {
|
|
|
7266
7265
|
Mesh as Mesh11,
|
|
7267
7266
|
Object3D as Object3D18,
|
|
7268
7267
|
TextureLoader as TextureLoader2,
|
|
7269
|
-
Color as
|
|
7268
|
+
Color as Color9,
|
|
7270
7269
|
Vector2 as Vector213,
|
|
7271
7270
|
Vector3 as Vector324,
|
|
7272
7271
|
NormalBlending,
|
|
@@ -7285,7 +7284,7 @@ import {
|
|
|
7285
7284
|
ShaderChunk,
|
|
7286
7285
|
ShaderMaterial as ShaderMaterial5,
|
|
7287
7286
|
UniformsLib,
|
|
7288
|
-
Color as
|
|
7287
|
+
Color as Color8,
|
|
7289
7288
|
Vector2 as Vector212
|
|
7290
7289
|
} from "three";
|
|
7291
7290
|
var MeshLine = class extends BufferGeometry6 {
|
|
@@ -7718,7 +7717,7 @@ var MeshLineMaterial = class extends ShaderMaterial5 {
|
|
|
7718
7717
|
useMap: { value: 0 },
|
|
7719
7718
|
alphaMap: { value: null },
|
|
7720
7719
|
useAlphaMap: { value: 0 },
|
|
7721
|
-
color: { value: new
|
|
7720
|
+
color: { value: new Color8(16777215) },
|
|
7722
7721
|
opacity: { value: 1 },
|
|
7723
7722
|
resolution: { value: new Vector212(1, 1) },
|
|
7724
7723
|
sizeAttenuation: { value: 1 },
|
|
@@ -8040,7 +8039,7 @@ var Path2 = class extends Object3D18 {
|
|
|
8040
8039
|
}
|
|
8041
8040
|
const material = this.material = new MeshLineMaterial({
|
|
8042
8041
|
useMap: true,
|
|
8043
|
-
color: new
|
|
8042
|
+
color: new Color9(this.config.color),
|
|
8044
8043
|
transparent: true,
|
|
8045
8044
|
resolution: new Vector213(
|
|
8046
8045
|
this.navigation.bmap.context.clientSize.width,
|
|
@@ -8593,7 +8592,8 @@ var Navigation = class extends Plugin {
|
|
|
8593
8592
|
type: "navigation-info",
|
|
8594
8593
|
dir,
|
|
8595
8594
|
distance: remainDistance,
|
|
8596
|
-
nextDirDistance: distance
|
|
8595
|
+
nextDirDistance: distance,
|
|
8596
|
+
pos: this.currentPathPosition
|
|
8597
8597
|
});
|
|
8598
8598
|
}
|
|
8599
8599
|
setStartPoiRotate(rotate) {
|