@realsee/dnalogel 3.41.3 → 3.41.4

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.
@@ -15,7 +15,7 @@ let c = class {
15
15
  /**
16
16
  * @realsee/dnalogel 版本号
17
17
  */
18
- e(this, "VERSION", "3.41.3");
18
+ e(this, "VERSION", "3.41.4");
19
19
  e(this, "NAME");
20
20
  e(this, "five");
21
21
  e(this, "workUtil");
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.41.3",
3
+ "%c %c@realsee/dnalogel %cv3.41.4",
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",
@@ -2,7 +2,7 @@ var v = Object.defineProperty, S = Object.defineProperties;
2
2
  var H = Object.getOwnPropertyDescriptors;
3
3
  var c = Object.getOwnPropertySymbols;
4
4
  var b = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
5
- var f = (o, s, e) => s in o ? v(o, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[s] = e, p = (o, s) => {
5
+ var f = (o, s, e) => s in o ? v(o, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[s] = e, d = (o, s) => {
6
6
  for (var e in s || (s = {}))
7
7
  b.call(s, e) && f(o, e, s[e]);
8
8
  if (c)
@@ -15,7 +15,7 @@ import { PointSelectorHelper as E } from "./PointSelectorHelper.js";
15
15
  import { isTouchDevice as y } from "../isTouchDevice.js";
16
16
  import N from "hammerjs";
17
17
  import { Subscribe as F } from "../Subscribe.js";
18
- import { getIntersectByNdcPosition as d } from "../five/getPosition.js";
18
+ import { getIntersectByNdcPosition as p } from "../five/getPosition.js";
19
19
  const a = () => !1;
20
20
  class U extends F {
21
21
  constructor(e, t) {
@@ -67,7 +67,7 @@ class U extends F {
67
67
  clientY: e.center.y
68
68
  }), !this.mouseNdcPosition)
69
69
  return;
70
- const t = d(this.five, this.mouseNdcPosition);
70
+ const t = p(this.five, this.mouseNdcPosition);
71
71
  t != null && t.face && this.select(t);
72
72
  });
73
73
  /**
@@ -80,7 +80,7 @@ class U extends F {
80
80
  clientY: e.center.y
81
81
  }), !this.mouseNdcPosition))
82
82
  return;
83
- const t = d(this.five, this.mouseNdcPosition);
83
+ const t = p(this.five, this.mouseNdcPosition);
84
84
  t != null && t.face && this.updatePointSelectorHelperIntersect(t);
85
85
  });
86
86
  /**
@@ -92,7 +92,7 @@ class U extends F {
92
92
  clientY: e.center.y
93
93
  }), !this.mouseNdcPosition)
94
94
  return;
95
- const t = d(this.five, this.mouseNdcPosition);
95
+ const t = p(this.five, this.mouseNdcPosition);
96
96
  t != null && t.face && (this.pressDown = !0, this.updatePointSelectorHelperIntersect(t));
97
97
  });
98
98
  /**
@@ -108,7 +108,7 @@ class U extends F {
108
108
  * @description: 根据鼠标位置更新helper位置
109
109
  */
110
110
  i(this, "updateByNdcPosition", (e) => {
111
- const t = d(this.five, e);
111
+ const t = p(this.five, e);
112
112
  this.updatePointSelectorHelperIntersect(t);
113
113
  });
114
114
  /**
@@ -117,7 +117,7 @@ class U extends F {
117
117
  i(this, "updatePointSelectorHelperIntersect", (e) => {
118
118
  var h;
119
119
  this.pointSelectorHelper.show();
120
- const t = p({}, e);
120
+ const t = d({}, e);
121
121
  let n = !1;
122
122
  if (((h = this.adherePoints) == null ? void 0 : h.length) > 0 && typeof this.adherePointsRadius == "number") {
123
123
  for (const r of this.adherePoints(e))
@@ -155,8 +155,8 @@ class U extends F {
155
155
  autoFixPCPosition: this.mode === "cursor",
156
156
  initialPosition: this.mode === "fixed" ? { left: "35%", top: "20%" } : void 0
157
157
  };
158
- this.pointSelectorHelper = new E(e, u(p({}, t == null ? void 0 : t.pointSelectorHelperParams), {
159
- magnifierParams: p(p({}, h), (l = t == null ? void 0 : t.pointSelectorHelperParams) == null ? void 0 : l.magnifierParams)
158
+ this.pointSelectorHelper = new E(e, u(d({}, t == null ? void 0 : t.pointSelectorHelperParams), {
159
+ magnifierParams: d(d({}, h), (l = t == null ? void 0 : t.pointSelectorHelperParams) == null ? void 0 : l.magnifierParams)
160
160
  })), this.pointSelectorHelper.hide();
161
161
  }
162
162
  get position() {
@@ -172,14 +172,14 @@ class U extends F {
172
172
  const e = this.five.getElement();
173
173
  if (!e)
174
174
  throw new Error("five element not found");
175
- this.hammer || (this.hammer = new N(e)), this.mode === "cursor" ? (this.five.on("wantsPanGesture", this.onFiveWantsPanGesture), this.five.on("wantsMoveToPano", a), this.five.on("wantsChangeMode", a), this.five.on("wantsTapGesture", a), e.addEventListener("mousemove", this.updateByMousePosition), e.addEventListener("mouseenter", this.onEnter), e.addEventListener("mouseout", this.onLeave), this.hammer.on("tap", this.onTap), this.hammer.on("pan", this.onPan), this.hammer.on("press", this.onPress), this.hammer.on("panend", this.onPanEnd)) : this.mode === "fixed" && (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");
175
+ this.hammer || (this.hammer = new N(e)), this.mode === "cursor" ? (this.five.on("wantsPanGesture", this.onFiveWantsPanGesture), this.five.on("wantsMoveToPano", a), this.five.on("wantsChangeMode", a), this.five.on("wantsTapGesture", a), e.addEventListener("mousemove", this.updateByMousePosition), e.addEventListener("mouseenter", this.onEnter), e.addEventListener("mouseout", this.onLeave), this.hammer.on("tap", this.onTap), this.hammer.on("pan", this.onPan), this.hammer.on("press", this.onPress), this.hammer.on("panend", this.onPanEnd)) : 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");
176
176
  }
177
177
  disable() {
178
178
  if (!this.enabled)
179
179
  return;
180
180
  this.enabled = !1, this.pointSelectorHelper.disable();
181
181
  const e = this.five.getElement();
182
- this.five.off("wantsPanGesture", this.onFiveWantsPanGesture), this.five.off("wantsMoveToPano", a), this.five.off("wantsChangeMode", a), this.five.off("wantsTapGesture", a), this.five.helperVisible = this.lastFiveHelperVisible, e == null || e.removeEventListener("mousemove", this.updateByMousePosition), e == null || e.removeEventListener("mouseenter", this.onEnter), e == null || e.removeEventListener("mouseout", this.onLeave), this.hammer.off("tap", this.onTap), this.hammer.off("pan", this.onPan), this.hammer.off("press", this.onPress), this.hammer.off("panend", this.onPanEnd), this.five.off("panGesture", this.renderScreenCenter), this.five.off("interiaPan", this.renderScreenCenter), this.pointSelectorHelper.hooks.off("intersectionUpdate", this.emitIntersectionUpdate), this.emit("disable");
182
+ this.five.off("wantsPanGesture", this.onFiveWantsPanGesture), this.five.off("wantsMoveToPano", a), this.five.off("wantsChangeMode", a), this.five.off("wantsTapGesture", a), this.five.helperVisible = this.lastFiveHelperVisible, e == null || e.removeEventListener("mousemove", this.updateByMousePosition), e == null || e.removeEventListener("mouseenter", this.onEnter), e == null || e.removeEventListener("mouseout", this.onLeave), this.hammer.off("tap", this.onTap), this.hammer.off("pan", this.onPan), this.hammer.off("press", this.onPress), this.hammer.off("panend", this.onPanEnd), this.five.off("panoArrived", this.renderScreenCenter), this.five.off("panGesture", this.renderScreenCenter), this.five.off("interiaPan", this.renderScreenCenter), this.pointSelectorHelper.hooks.off("intersectionUpdate", this.emitIntersectionUpdate), this.emit("disable");
183
183
  }
184
184
  dispose() {
185
185
  this.disable(), this.pointSelectorHelper.dispose();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.41.3",
3
+ "version": "3.41.4",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",