@aibee/crc-bmap 0.0.24 → 0.0.26

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
@@ -157,8 +157,6 @@ function initControl(camera, domElement) {
157
157
  control.enableDamping = false;
158
158
  control.maxPolarAngle = 0;
159
159
  control.minPolarAngle = 0;
160
- control.maxAzimuthAngle = 0;
161
- control.minAzimuthAngle = 0;
162
160
  return control;
163
161
  }
164
162
  function initShape(path, holePath = []) {
@@ -1594,8 +1592,9 @@ var BoxSelection = class extends BaseSvg {
1594
1592
  const width = Math.abs(endPoint.x - startPoint.x);
1595
1593
  const height = Math.abs(endPoint.y - startPoint.y);
1596
1594
  setRectPosition(this.rect, leftTop.x, leftTop.y, width, height);
1595
+ } else {
1596
+ setRectPosition(this.rect, 0, 0, 0, 0);
1597
1597
  }
1598
- setRectPosition(this.rect, 0, 0, 0, 0);
1599
1598
  });
1600
1599
  const { config: { selectBox: { fill, stroke } } } = context;
1601
1600
  this.rect = createRect(stroke, fill);
@@ -1683,8 +1682,21 @@ var Selection = class extends EventDispatcher3 {
1683
1682
  __publicField(this, "_list", /* @__PURE__ */ new Set());
1684
1683
  __publicField(this, "boxSelection");
1685
1684
  __publicField(this, "prevPanStatus");
1685
+ __publicField(this, "prevRotateStatus");
1686
1686
  __publicField(this, "onPointerDown", (e) => {
1687
1687
  const { graphics } = this.context.getGraphicsByDeviceXy(e.offsetX, e.offsetY);
1688
+ const graphicIdSet = new Set(graphics.map((item) => item.options.id));
1689
+ const pois = this.context.getPoisByDeviceXy(e.clientX, e.clientY);
1690
+ pois.forEach((item) => {
1691
+ var _a;
1692
+ if (!graphicIdSet.has(item.options.id)) {
1693
+ const graphic = ((_a = this.context.currentFloor) == null ? void 0 : _a.graphicLayer.graphicMap.get(item.options.id)) || null;
1694
+ if (graphic) {
1695
+ graphics.push(graphic);
1696
+ graphicIdSet.add(item.options.id);
1697
+ }
1698
+ }
1699
+ });
1688
1700
  if (!e.ctrlKey) {
1689
1701
  this._list.clear();
1690
1702
  }
@@ -1695,13 +1707,16 @@ var Selection = class extends EventDispatcher3 {
1695
1707
  if (e.key === "Control") {
1696
1708
  this.boxSelection.setEnable(true);
1697
1709
  this.prevPanStatus = this.context.control.enablePan;
1710
+ this.prevRotateStatus = this.context.control.enableRotate;
1698
1711
  this.context.control.enablePan = false;
1712
+ this.context.control.enableRotate = false;
1699
1713
  }
1700
1714
  });
1701
1715
  __publicField(this, "onKeyUp", (e) => {
1702
1716
  if (e.key === "Control") {
1703
1717
  this.boxSelection.setEnable(false);
1704
1718
  this.context.control.enablePan = !!this.prevPanStatus;
1719
+ this.context.control.enableRotate = !!this.prevRotateStatus;
1705
1720
  }
1706
1721
  });
1707
1722
  __publicField(this, "onBoxSelected", ({ list }) => {