@aibee/crc-bmap 0.8.66 → 0.8.68
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
|
@@ -15008,8 +15008,11 @@ var LineElement = class extends Object3D14 {
|
|
|
15008
15008
|
registryEvent() {
|
|
15009
15009
|
this.context.addEventListener("resize", this.onResize);
|
|
15010
15010
|
}
|
|
15011
|
+
unRegistryEvent() {
|
|
15012
|
+
this.context.removeEventListener("resize", this.onResize);
|
|
15013
|
+
}
|
|
15011
15014
|
setPosition(point1, point22) {
|
|
15012
|
-
this.
|
|
15015
|
+
this.lineGeometry.setPositions([
|
|
15013
15016
|
point1.x,
|
|
15014
15017
|
point1.y,
|
|
15015
15018
|
point1.z,
|
|
@@ -15022,29 +15025,31 @@ var LineElement = class extends Object3D14 {
|
|
|
15022
15025
|
}
|
|
15023
15026
|
}
|
|
15024
15027
|
createLine() {
|
|
15025
|
-
this.line = new Line22(this.
|
|
15028
|
+
this.line = new Line22(this.lineGeometry, this.lineMaterial);
|
|
15026
15029
|
this.line.renderOrder = 100003;
|
|
15027
15030
|
this.add(this.line);
|
|
15028
15031
|
}
|
|
15029
15032
|
dispose() {
|
|
15030
15033
|
var _this_line;
|
|
15034
|
+
this.unRegistryEvent();
|
|
15031
15035
|
if (this.line) {
|
|
15032
15036
|
dispose(this.line);
|
|
15033
15037
|
}
|
|
15034
|
-
this.
|
|
15035
|
-
this.
|
|
15038
|
+
this.lineGeometry = null;
|
|
15039
|
+
this.lineMaterial = null;
|
|
15040
|
+
this.clear();
|
|
15036
15041
|
(_this_line = this.line) == null ? void 0 : _this_line.clear();
|
|
15037
15042
|
this.line = null;
|
|
15038
15043
|
}
|
|
15039
15044
|
constructor(context, point1, point22) {
|
|
15040
|
-
super(), this.context = context, this.
|
|
15045
|
+
super(), this.context = context, this.lineGeometry = new LineGeometry2(), this.lineMaterial = new LineMaterial2({
|
|
15041
15046
|
color: 0,
|
|
15042
15047
|
transparent: true,
|
|
15043
15048
|
depthTest: false,
|
|
15044
15049
|
linewidth: 2
|
|
15045
15050
|
}), this.line = null, this.onResize = () => {
|
|
15046
15051
|
const { width, height } = this.context.clientSize;
|
|
15047
|
-
this.
|
|
15052
|
+
this.lineMaterial.resolution.set(width, height);
|
|
15048
15053
|
};
|
|
15049
15054
|
this.onResize();
|
|
15050
15055
|
this.registryEvent();
|
|
@@ -20425,7 +20430,7 @@ var Navigation = class extends Plugin {
|
|
|
20425
20430
|
}
|
|
20426
20431
|
// 根据定位 实时导航
|
|
20427
20432
|
toPosition(floor, pos) {
|
|
20428
|
-
if (this.paths[this.curPathIndex].floor === floor && this.detachStartPoi) {
|
|
20433
|
+
if (this.paths[this.curPathIndex] && this.paths[this.curPathIndex].floor === floor && this.detachStartPoi) {
|
|
20429
20434
|
const res = this.translatePoints([
|
|
20430
20435
|
pos
|
|
20431
20436
|
]);
|