@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.
@@ -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
- const offset = new Vector316();
16496
- offset.setFromMatrixColumn(this.camera.matrix, 1);
16497
- offset.normalize();
16498
- offset.multiplyScalar(offsetY / this.camera.zoom);
16499
- target.add(offset);
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
  }