@realsee/dnalogel 3.50.15 → 3.50.16
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/CHANGELOG.md +3 -0
- package/dist/index.cjs.js +26 -26
- package/dist/index.js +515 -515
- package/dist/index.umd.js +25 -25
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/index.js +17 -17
- package/package.json +1 -1
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.50.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.50.16",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var S = Object.defineProperty, w = Object.defineProperties;
|
|
2
|
+
var b = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var f = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var p = (n, s, e) => s in n ?
|
|
4
|
+
var E = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var p = (n, s, e) => s in n ? S(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e, l = (n, s) => {
|
|
6
6
|
for (var e in s || (s = {}))
|
|
7
|
-
|
|
7
|
+
E.call(s, e) && p(n, e, s[e]);
|
|
8
8
|
if (f)
|
|
9
9
|
for (var e of f(s))
|
|
10
|
-
|
|
10
|
+
I.call(s, e) && p(n, e, s[e]);
|
|
11
11
|
return n;
|
|
12
|
-
}, v = (n, s) =>
|
|
12
|
+
}, v = (n, s) => w(n, b(s));
|
|
13
13
|
var i = (n, s, e) => (p(n, typeof s != "symbol" ? s + "" : s, e), e);
|
|
14
|
-
import { PointSelectorHelper as
|
|
15
|
-
import { isTouchDevice as
|
|
14
|
+
import { PointSelectorHelper as H } from "./utils/PointSelectorHelper.js";
|
|
15
|
+
import { isTouchDevice as y } from "../../isTouchDevice.js";
|
|
16
16
|
import * as d from "three";
|
|
17
17
|
import { Subscribe as M } from "../../Subscribe.js";
|
|
18
18
|
import { getIntersectByRaycaster as T, getVirtualIntersectByRaycaster as L } from "../../five/getPosition.js";
|
|
19
19
|
import { getRaycasterByNdcPosition as N } from "../../five/getRaycasterByNdcPosition.js";
|
|
20
|
-
import { CURSOR_NOT_ALLOW_URL as
|
|
20
|
+
import { CURSOR_NOT_ALLOW_URL as m } from "./utils/contents.js";
|
|
21
21
|
const F = new d.Vector3(), u = () => !1;
|
|
22
22
|
class V extends M {
|
|
23
23
|
constructor(e, t) {
|
|
@@ -148,7 +148,7 @@ class V extends M {
|
|
|
148
148
|
*/
|
|
149
149
|
i(this, "updatePointSelectorHelperIntersect", (e) => {
|
|
150
150
|
if (!e) {
|
|
151
|
-
this.onLeave(), this.five.getElement().style.cursor =
|
|
151
|
+
this.onLeave(), this.five.getElement().style.cursor = m;
|
|
152
152
|
return;
|
|
153
153
|
}
|
|
154
154
|
this.onEnter(), this.cursorError || (this.five.getElement().style.cursor = "");
|
|
@@ -167,10 +167,10 @@ class V extends M {
|
|
|
167
167
|
const t = this.five.getElement();
|
|
168
168
|
if (!t)
|
|
169
169
|
return null;
|
|
170
|
-
const { top: r, left: h, width: a, height: o } = t.getBoundingClientRect(), { clientX: c, clientY:
|
|
170
|
+
const { top: r, left: h, width: a, height: o } = t.getBoundingClientRect(), { clientX: c, clientY: P } = e;
|
|
171
171
|
return {
|
|
172
172
|
x: (c - h) / a,
|
|
173
|
-
y: 1 - (
|
|
173
|
+
y: 1 - (P - r) / o
|
|
174
174
|
};
|
|
175
175
|
});
|
|
176
176
|
i(this, "onFiveWantsPanGesture", () => {
|
|
@@ -185,12 +185,12 @@ class V extends M {
|
|
|
185
185
|
});
|
|
186
186
|
this.five = e, this.config = l(l({}, this.config), t), this.actionIfNoModelUnderMouse = (a = t == null ? void 0 : t.actionIfNoModelUnderMouse) != null ? a : "virtualPoint";
|
|
187
187
|
const r = (o = t == null ? void 0 : t.mode) != null ? o : "auto";
|
|
188
|
-
r === "auto" ? this.mode =
|
|
188
|
+
r === "auto" ? this.mode = y ? "fixed" : "cursor" : this.mode = r;
|
|
189
189
|
const h = {
|
|
190
190
|
autoFixPCPosition: this.mode === "cursor",
|
|
191
191
|
initialPosition: this.mode === "fixed" ? { left: "35%", top: "20%" } : void 0
|
|
192
192
|
};
|
|
193
|
-
this.pointSelectorHelper = new
|
|
193
|
+
this.pointSelectorHelper = new H(this.five, v(l({}, t == null ? void 0 : t.helper), {
|
|
194
194
|
magnifierParams: l(l({}, h), (c = t == null ? void 0 : t.helper) == null ? void 0 : c.magnifierParams)
|
|
195
195
|
})), this.pointSelectorHelper.hide();
|
|
196
196
|
}
|
|
@@ -210,7 +210,7 @@ class V extends M {
|
|
|
210
210
|
return this._cursorError;
|
|
211
211
|
}
|
|
212
212
|
set cursorError(e) {
|
|
213
|
-
this._cursorError = e, this.five.getElement().style.cursor = e ?
|
|
213
|
+
this._cursorError = e, this.five.getElement().style.cursor = e ? m : "", e ? this.pointSelectorHelper.hide() : this.pointSelectorHelper.show();
|
|
214
214
|
}
|
|
215
215
|
set outOfFive(e) {
|
|
216
216
|
this._outOfFive = e;
|
|
@@ -228,7 +228,7 @@ class V extends M {
|
|
|
228
228
|
const e = this.five.getElement();
|
|
229
229
|
if (!e)
|
|
230
230
|
throw new Error("five element not found");
|
|
231
|
-
this.mode === "cursor" ? (this.five.on("wantsMoveToPano", u), this.five.on("wantsChangeMode", u), this.five.on("wantsTapGesture", u),
|
|
231
|
+
this.mode === "cursor" ? (this.five.on("wantsMoveToPano", u), this.five.on("wantsChangeMode", u), this.five.on("wantsTapGesture", u), e.addEventListener("touchstart", this.onTouchStart, { passive: !0 }), e.addEventListener("touchmove", this.onTouchMove), e.addEventListener("touchend", this.onTouchEnd), e.addEventListener("click", this.onClick), e.addEventListener("mousemove", this.updateByMousePosition), e.addEventListener("wheel", this.onMouseWheel), e.addEventListener("mouseenter", this.onEnter), e.addEventListener("mouseout", this.onLeave), this.five.on("wantsPanGesture", this.onFiveWantsPanGesture)) : this.mode === "fixed" && (this.five.on("panoArrived", this.renderScreenCenter), this.five.on("panGesture", this.renderScreenCenter), this.five.on("interiaPan", this.renderScreenCenter), this.renderScreenCenter(), this.pointSelectorHelper.show()), this.pointSelectorHelper.hooks.on("intersectionUpdate", this.emitIntersectionUpdate), this.lastFiveHelperVisible = this.five.helperVisible, this.five.helperVisible = !1, this.emit("enable");
|
|
232
232
|
}
|
|
233
233
|
disable() {
|
|
234
234
|
if (!this.enabled)
|