@smarterplan/ngx-smarterplan-core 1.1.9 → 1.1.10
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/esm2020/lib/services/matterport.service.mjs +27 -22
- package/fesm2015/smarterplan-ngx-smarterplan-core.mjs +26 -21
- package/fesm2015/smarterplan-ngx-smarterplan-core.mjs.map +1 -1
- package/fesm2020/smarterplan-ngx-smarterplan-core.mjs +26 -21
- package/fesm2020/smarterplan-ngx-smarterplan-core.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1672,28 +1672,30 @@ class MatterportService {
|
|
|
1672
1672
|
this.getCursorPositionButton.style.display = 'none';
|
|
1673
1673
|
};
|
|
1674
1674
|
this.config = config;
|
|
1675
|
-
// TODO: only for
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
}
|
|
1680
|
-
const nextShow = this.poseMatterport.time + 1000;
|
|
1681
|
-
if (new Date().getTime() > nextShow) {
|
|
1682
|
-
if (this.cursorPositionButtonDisplayed) {
|
|
1675
|
+
// TODO: only for dev!
|
|
1676
|
+
if (document.location.href.indexOf('-dev') !== -1) {
|
|
1677
|
+
this.intervalCursorPointerPosition = setInterval(() => {
|
|
1678
|
+
if (!this.poseMatterport) {
|
|
1683
1679
|
return;
|
|
1684
1680
|
}
|
|
1685
|
-
const
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1681
|
+
const nextShow = this.poseMatterport.time + 1000;
|
|
1682
|
+
if (new Date().getTime() > nextShow) {
|
|
1683
|
+
if (this.cursorPositionButtonDisplayed) {
|
|
1684
|
+
return;
|
|
1685
|
+
}
|
|
1686
|
+
const size = {
|
|
1687
|
+
w: this.container.clientWidth,
|
|
1688
|
+
h: this.container.clientHeight,
|
|
1689
|
+
};
|
|
1690
|
+
const coord = this.sdk.Conversion.worldToScreen(this.poseMatterport.position, this.poseCamera, size);
|
|
1691
|
+
this.getCursorPositionButton.style.left = `${coord.x - 25}px`;
|
|
1692
|
+
this.getCursorPositionButton.style.top = `${coord.y - 22}px`;
|
|
1693
|
+
this.getCursorPositionButton.style.display = 'block';
|
|
1694
|
+
// this.textDisplayCursorPositionPanel.style.display = 'none';
|
|
1695
|
+
this.cursorPositionButtonDisplayed = true;
|
|
1696
|
+
}
|
|
1697
|
+
}, 500);
|
|
1698
|
+
}
|
|
1697
1699
|
}
|
|
1698
1700
|
get currentSpaceID() {
|
|
1699
1701
|
return this._currentSpaceID;
|
|
@@ -2769,7 +2771,10 @@ class MatterportService {
|
|
|
2769
2771
|
if (this.getCursorPositionButton) {
|
|
2770
2772
|
this.getCursorPositionButton.removeEventListener('auxclick', this.pointerMiddleClickHandler);
|
|
2771
2773
|
}
|
|
2772
|
-
|
|
2774
|
+
// TODO: only for dev!
|
|
2775
|
+
if (document.location.href.indexOf('-dev') !== -1) {
|
|
2776
|
+
clearInterval(this.intervalCursorPointerPosition);
|
|
2777
|
+
}
|
|
2773
2778
|
});
|
|
2774
2779
|
}
|
|
2775
2780
|
removeForbiddenSweeps(forbiddenSweeps) {
|