@aibee/crc-bmap 0.8.71 → 0.8.72
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/index.cjs +2 -2
- package/lib/index.esm.js +9 -8
- package/lib/index.esm.min.js +2 -2
- package/lib/index.js +2 -2
- package/lib/platform/wrapper.cjs +2 -2
- package/lib/platform/wrapper.esm.js +9 -8
- package/lib/platform/wrapper.esm.min.js +2 -2
- package/lib/platform/wrapper.js +2 -2
- package/lib/src/context/control.js +7 -8
- package/lib/src/plugins/navigation/navigation.js +2 -0
- package/package.json +1 -1
|
@@ -16488,15 +16488,14 @@ var Control = class extends OrbitControls {
|
|
|
16488
16488
|
}
|
|
16489
16489
|
setTargetByOffset(offsetY, target) {
|
|
16490
16490
|
if (target === void 0) target = this.target.clone();
|
|
16491
|
-
if (!offsetY) {
|
|
16492
|
-
return;
|
|
16493
|
-
}
|
|
16494
16491
|
this.camera.updateMatrix();
|
|
16495
|
-
|
|
16496
|
-
|
|
16497
|
-
|
|
16498
|
-
|
|
16499
|
-
|
|
16492
|
+
if (offsetY) {
|
|
16493
|
+
const offset = new Vector316();
|
|
16494
|
+
offset.setFromMatrixColumn(this.camera.matrix, 1);
|
|
16495
|
+
offset.normalize();
|
|
16496
|
+
offset.multiplyScalar(offsetY / this.camera.zoom);
|
|
16497
|
+
target.add(offset);
|
|
16498
|
+
}
|
|
16500
16499
|
this.setCameraPositionByTarget(target, 0);
|
|
16501
16500
|
}
|
|
16502
16501
|
clearTween() {
|
|
@@ -20534,9 +20533,11 @@ var Navigation = class extends Plugin {
|
|
|
20534
20533
|
const translatePos = this.translatePoints([
|
|
20535
20534
|
pos
|
|
20536
20535
|
])[0];
|
|
20536
|
+
console.log("\u79FB\u52A8\u4F4D\u7F6E");
|
|
20537
20537
|
if (this.startPoi) {
|
|
20538
20538
|
this.setStartPoiPosition(translatePos[0], translatePos[1]);
|
|
20539
20539
|
if (!this.options.disablePathAnimation) {
|
|
20540
|
+
console.log("\u79FB\u52A8\u76F8\u673A");
|
|
20540
20541
|
this.bmap.context.control.setTargetByOffset(this.options.offsetY, this.startPoi.position.clone());
|
|
20541
20542
|
}
|
|
20542
20543
|
}
|