@realsee/dnalogel 3.41.6 → 3.41.7

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.
@@ -33,9 +33,9 @@ import _ from "../Components/Tag/index.js";
33
33
  import { loadGLTF as L } from "../../shared-utils/three/GLTFLoader.js";
34
34
  import { isMediaModelTag as y, isStickModelTag as W } from "../utils/tag/tagCheck.js";
35
35
  import { VideoPlane as q, ImagePlane as w } from "../utils/model/mediaPlane.js";
36
- import { centerPoint as $ } from "../../shared-utils/three/centerPoint.js";
36
+ import { centerPoint as U } from "../../shared-utils/three/centerPoint.js";
37
37
  import { arrayPositionToVector3 as S } from "../../shared-utils/positionToVector3.js";
38
- import { debounceByKey as B } from "../utils/debounce.js";
38
+ import { debounceByKey as $ } from "../utils/debounce.js";
39
39
  import { toArray as v } from "../../shared-utils/util.js";
40
40
  import "../utils/tagPosition.js";
41
41
  import "../utils/checkRange.js";
@@ -164,7 +164,7 @@ import "../Components/Tag/LinkTag.js";
164
164
  import "../Components/Tag/PanoramaTag.js";
165
165
  import "../Components/Tag/CustomTag.js";
166
166
  import "@realsee/five/gltf-loader";
167
- const N = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map();
167
+ const B = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map();
168
168
  class Si extends E {
169
169
  constructor(e) {
170
170
  super(e);
@@ -250,7 +250,7 @@ class Si extends E {
250
250
  */
251
251
  h(this, "updateRenderPointTag", (e) => {
252
252
  const o = e ? v(e) : this.filterPointTag;
253
- this.setTagZIndex(o), this.setPointTagPosition(), B("updateDomView", this.updateDomView)();
253
+ this.setTagZIndex(o), this.setPointTagPosition(), $("updateDomView", this.updateDomView)();
254
254
  });
255
255
  /** 加载外部模型 */
256
256
  h(this, "loadModel", (e) => M(this, null, function* () {
@@ -340,7 +340,7 @@ class Si extends E {
340
340
  this.tags.length && (this.tags.forEach((o) => {
341
341
  var t, i;
342
342
  (i = (t = o.mediaPlane) == null ? void 0 : t.parent) == null || i.remove(o.mediaPlane);
343
- }), this.tags = [], (e = this.TagContainerSvelte) == null || e.$destroy(), this.TagContainerSvelte = void 0, this.disposeAllCSS3DContainer(), this.updateRenderAllTags()), this.enabledModelTagSet.clear(), this.clearCache(), this.tagsLengthWillUpdate = !0;
343
+ }), this.tags = [], this.tagsLengthWillUpdate = !0, (e = this.TagContainerSvelte) == null || e.$destroy(), this.TagContainerSvelte = void 0, this.disposeAllCSS3DContainer(), this.updateRenderAllTags()), this.enabledModelTagSet.clear(), this.clearCache(), this.tagsLengthWillUpdate = !0;
344
344
  }
345
345
  /**
346
346
  * @description 更新所有标签
@@ -373,8 +373,8 @@ class Si extends E {
373
373
  playButton: t.data.playIcon,
374
374
  paused: !((m = t.data.autoplayConfig) != null && m.autoplayVideo),
375
375
  objectFit: t.data.objectFit,
376
- videoTextureMap: N,
377
- ImageTextureMap: U,
376
+ videoTextureMap: B,
377
+ ImageTextureMap: N,
378
378
  domEvents: this.domEvents
379
379
  });
380
380
  d.onVideoReady = (T) => {
@@ -443,7 +443,7 @@ class Si extends E {
443
443
  if (!r || r.length !== 4 || !Array.isArray(r[0]) || !Array.isArray(r[2]))
444
444
  return;
445
445
  o.updateWorldMatrix(!1, !1);
446
- const n = o.matrixWorld, s = new D().fromArray(r[0]), a = new D().fromArray(r[2]), c = $(s, a).add(new D(0, 0, 5e-4)), m = new g().setPosition(c), f = new g().makeScale(t, t, t), d = new g().multiply(n).multiply(m).multiply(f);
446
+ const n = o.matrixWorld, s = new D().fromArray(r[0]), a = new D().fromArray(r[2]), c = U(s, a).add(new D(0, 0, 5e-4)), m = new g().setPosition(c), f = new g().makeScale(t, t, t), d = new g().multiply(n).multiply(m).multiply(f);
447
447
  d.decompose(i.position, i.quaternion, i.scale);
448
448
  const p = i.opacityMesh;
449
449
  p && d.decompose(p.position, p.quaternion, p.scale);
@@ -80,6 +80,7 @@ declare abstract class Controller<PluginState extends State = State, PluginEvent
80
80
  */
81
81
  abstract state: PluginState;
82
82
  constructor(five: Five, config?: Config);
83
+ updateFive(five: Five): void;
83
84
  /**
84
85
  * 获取当前的插件状态,如果当初插件内存在需要通过动画变更的 state 值,则通过此方法可以得到中间状态
85
86
  */
@@ -10,12 +10,12 @@ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
10
10
  import "animejs";
11
11
  import { absoluteUrl as a } from "../shared-utils/url/absoluteUrl.js";
12
12
  import { FiveUtil as h } from "../shared-utils/Utils/FiveUtil.js";
13
- let c = class {
13
+ let v = class {
14
14
  constructor(t, r) {
15
15
  /**
16
16
  * @realsee/dnalogel 版本号
17
17
  */
18
- e(this, "VERSION", "3.41.6");
18
+ e(this, "VERSION", "3.41.7");
19
19
  e(this, "NAME");
20
20
  e(this, "five");
21
21
  e(this, "workUtil");
@@ -25,7 +25,7 @@ let c = class {
25
25
  */
26
26
  e(this, "hooks", new l());
27
27
  e(this, "staticPrefix", "//vr-image-4.realsee-cdn.cn");
28
- this.five = t, this.fiveUtil = new h(t), this.workUtil = this.fiveUtil.workUtil, r != null && r.staticPrefix && (this.staticPrefix = r.staticPrefix);
28
+ this.updateFive(t), r != null && r.staticPrefix && (this.staticPrefix = r.staticPrefix);
29
29
  }
30
30
  set workCode(t) {
31
31
  this.workUtil.workCode = t, this.onWorkCodeChange();
@@ -33,6 +33,9 @@ let c = class {
33
33
  get workCode() {
34
34
  return this.workUtil.workCode;
35
35
  }
36
+ updateFive(t) {
37
+ this.five = t, this.fiveUtil = new h(t), this.workUtil = this.fiveUtil.workUtil;
38
+ }
36
39
  /**
37
40
  * 获取当前的插件状态,如果当初插件内存在需要通过动画变更的 state 值,则通过此方法可以得到中间状态
38
41
  */
@@ -49,5 +52,5 @@ let c = class {
49
52
  }
50
53
  };
51
54
  export {
52
- c as Controller
55
+ v as Controller
53
56
  };
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.41.6",
3
+ "%c %c@realsee/dnalogel %cv3.41.7",
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.41.6",
3
+ "version": "3.41.7",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",