@realsee/dnalogel 3.50.2 → 3.50.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.
@@ -1,4 +1,4 @@
1
- import { SvelteComponent as v, init as w, safe_not_equal as T, append_styles as q, empty as z, insert as _, transition_in as c, transition_out as u, check_outros as M, detach as d, setContext as I, element as C, attr as N, toggle_class as h, set_style as g, group_outros as S, update_keyed_each as j, outro_and_destroy_block as A, add_render_callback as B, create_in_transition as D, create_component as E, mount_component as F, destroy_component as G } from "../../vendor/svelte/internal/index.js";
1
+ import { SvelteComponent as w, init as T, safe_not_equal as q, append_styles as I, empty as M, insert as _, transition_in as c, transition_out as u, check_outros as S, detach as d, setContext as C, element as N, attr as h, toggle_class as g, set_style as k, group_outros as v, update_keyed_each as j, outro_and_destroy_block as A, add_render_callback as B, create_in_transition as D, create_component as E, mount_component as F, destroy_component as G } from "../../vendor/svelte/internal/index.js";
2
2
  import H from "./TagItem.js";
3
3
  import { fade as J } from "../../vendor/svelte/transition/index.js";
4
4
  import "./Tag/index.js";
@@ -129,13 +129,13 @@ import "../../shared-utils/safeObj.js";
129
129
  import "../utils/Cache.js";
130
130
  import "./Common/TagPoint.js";
131
131
  function K(a) {
132
- q(a, "svelte-1owzhnq", ".tag--container.svelte-1owzhnq{box-sizing:border-box;position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;opacity:1;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform:translate3d(0, 0, 0);transition:opacity 0.2s linear}.tag--container.hide.svelte-1owzhnq{opacity:0;pointer-events:none}.tag--container.hide.svelte-1owzhnq *{pointer-events:none !important}");
132
+ I(a, "svelte-1owzhnq", ".tag--container.svelte-1owzhnq{box-sizing:border-box;position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;opacity:1;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform:translate3d(0, 0, 0);transition:opacity 0.2s linear}.tag--container.hide.svelte-1owzhnq{opacity:0;pointer-events:none}.tag--container.hide.svelte-1owzhnq *{pointer-events:none !important}");
133
133
  }
134
- function k(a, t, i) {
134
+ function b(a, t, i) {
135
135
  const e = a.slice();
136
136
  return e[8] = t[i], e;
137
137
  }
138
- function b(a) {
138
+ function y(a) {
139
139
  let t, i = [], e = /* @__PURE__ */ new Map(), m, r, p = (
140
140
  /*tags*/
141
141
  a[0]
@@ -145,18 +145,18 @@ function b(a) {
145
145
  n[8].id
146
146
  );
147
147
  for (let n = 0; n < p.length; n += 1) {
148
- let o = k(a, p, n), s = f(o);
149
- e.set(s, i[n] = y(s, o));
148
+ let o = b(a, p, n), s = f(o);
149
+ e.set(s, i[n] = z(s, o));
150
150
  }
151
151
  return {
152
152
  c() {
153
153
  var n;
154
- t = C("div");
154
+ t = N("div");
155
155
  for (let o = 0; o < i.length; o += 1)
156
156
  i[o].c();
157
- N(t, "class", "tag--container svelte-1owzhnq"), h(t, "hide", !/*state*/
157
+ h(t, "class", "tag--container svelte-1owzhnq"), h(t, "data-infive", "1"), g(t, "hide", !/*state*/
158
158
  a[4].visible || !/*temporaryState*/
159
- a[5].visible), g(
159
+ a[5].visible), k(
160
160
  t,
161
161
  "z-index",
162
162
  /*zIndex*/
@@ -173,11 +173,11 @@ function b(a) {
173
173
  var s;
174
174
  o & /*state, temporaryState, tags, mediaStore, rendererMap, contentTypeMap*/
175
175
  63 && (p = /*tags*/
176
- n[0], S(), i = j(i, o, f, 1, n, p, e, t, A, y, null, k), M()), (!r || o & /*state, temporaryState*/
177
- 48) && h(t, "hide", !/*state*/
176
+ n[0], v(), i = j(i, o, f, 1, n, p, e, t, A, z, null, b), S()), (!r || o & /*state, temporaryState*/
177
+ 48) && g(t, "hide", !/*state*/
178
178
  n[4].visible || !/*temporaryState*/
179
179
  n[5].visible), o & /*zIndex*/
180
- 64 && g(
180
+ 64 && k(
181
181
  t,
182
182
  "z-index",
183
183
  /*zIndex*/
@@ -205,7 +205,7 @@ function b(a) {
205
205
  }
206
206
  };
207
207
  }
208
- function y(a, t) {
208
+ function z(a, t) {
209
209
  let i, e, m;
210
210
  return e = new H({
211
211
  props: {
@@ -238,7 +238,7 @@ function y(a, t) {
238
238
  key: a,
239
239
  first: null,
240
240
  c() {
241
- i = z(), E(e.$$.fragment), this.first = i;
241
+ i = M(), E(e.$$.fragment), this.first = i;
242
242
  },
243
243
  m(r, p) {
244
244
  _(r, i, p), F(e, r, p), m = !0;
@@ -274,11 +274,11 @@ function y(a, t) {
274
274
  function L(a) {
275
275
  let t, i, e = (
276
276
  /*state*/
277
- a[4].enabled && b(a)
277
+ a[4].enabled && y(a)
278
278
  );
279
279
  return {
280
280
  c() {
281
- e && e.c(), t = z();
281
+ e && e.c(), t = M();
282
282
  },
283
283
  m(m, r) {
284
284
  e && e.m(m, r), _(m, t, r), i = !0;
@@ -286,9 +286,9 @@ function L(a) {
286
286
  p(m, [r]) {
287
287
  /*state*/
288
288
  m[4].enabled ? e ? (e.p(m, r), r & /*state*/
289
- 16 && c(e, 1)) : (e = b(m), e.c(), c(e, 1), e.m(t.parentNode, t)) : e && (S(), u(e, 1, 1, () => {
289
+ 16 && c(e, 1)) : (e = y(m), e.c(), c(e, 1), e.m(t.parentNode, t)) : e && (v(), u(e, 1, 1, () => {
290
290
  e = null;
291
- }), M());
291
+ }), S());
292
292
  },
293
293
  i(m) {
294
294
  i || (c(e), i = !0);
@@ -303,7 +303,7 @@ function L(a) {
303
303
  }
304
304
  function O(a, t, i) {
305
305
  let { tags: e = [] } = t, { hooks: m } = t, { mediaStore: r } = t, { rendererMap: p } = t, { contentTypeMap: f } = t, { state: n } = t, { temporaryState: o } = t, { zIndex: s = void 0 } = t;
306
- return I("hooks", m), a.$$set = (l) => {
306
+ return C("hooks", m), a.$$set = (l) => {
307
307
  "tags" in l && i(0, e = l.tags), "hooks" in l && i(7, m = l.hooks), "mediaStore" in l && i(1, r = l.mediaStore), "rendererMap" in l && i(2, p = l.rendererMap), "contentTypeMap" in l && i(3, f = l.contentTypeMap), "state" in l && i(4, n = l.state), "temporaryState" in l && i(5, o = l.temporaryState), "zIndex" in l && i(6, s = l.zIndex);
308
308
  }, [
309
309
  e,
@@ -316,14 +316,14 @@ function O(a, t, i) {
316
316
  m
317
317
  ];
318
318
  }
319
- class si extends v {
319
+ class si extends w {
320
320
  constructor(t) {
321
- super(), w(
321
+ super(), T(
322
322
  this,
323
323
  t,
324
324
  O,
325
325
  L,
326
- T,
326
+ q,
327
327
  {
328
328
  tags: 0,
329
329
  hooks: 7,
@@ -18,7 +18,7 @@ let P = class {
18
18
  /**
19
19
  * @realsee/dnalogel 版本号
20
20
  */
21
- i(this, "VERSION", "3.50.2");
21
+ i(this, "VERSION", "3.50.4");
22
22
  i(this, "NAME");
23
23
  i(this, "five");
24
24
  i(this, "workUtil");
@@ -1,20 +1,20 @@
1
- var h = Object.defineProperty;
2
- var c = (i, s, t) => s in i ? h(i, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[s] = t;
3
- var n = (i, s, t) => (c(i, typeof s != "symbol" ? s + "" : s, t), t);
1
+ var c = Object.defineProperty;
2
+ var h = (e, s, t) => s in e ? c(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t;
3
+ var n = (e, s, t) => (h(e, typeof s != "symbol" ? s + "" : s, t), t);
4
4
  import * as l from "three";
5
5
  import { Vector3 as a } from "three";
6
6
  import { setObjectQuaternion as d } from "../utils/setObjectQuaternion.js";
7
7
  import { IObject3D as b } from "../../three/IObject3D.js";
8
8
  import { boundingBox as m, boundingSphere as u } from "../../three/boundingBox.js";
9
9
  class r extends b {
10
- constructor(t, e) {
10
+ constructor(t, i) {
11
11
  var o, p;
12
12
  super();
13
13
  n(this, "originObject3D");
14
14
  n(this, "onRender");
15
15
  n(this, "positionFrom");
16
- this.originObject3D = t, this.onRender = (o = e == null ? void 0 : e.onRender) != null ? o : () => {
17
- }, this.positionFrom = (p = e == null ? void 0 : e.positionFrom) != null ? p : "objectPosition";
16
+ this.originObject3D = t, this.onRender = (o = i == null ? void 0 : i.onRender) != null ? o : () => {
17
+ }, this.positionFrom = (p = i == null ? void 0 : i.positionFrom) != null ? p : "objectPosition";
18
18
  }
19
19
  get helperObject() {
20
20
  return this;
@@ -34,27 +34,27 @@ class r extends b {
34
34
  hide() {
35
35
  this.visible = !1, this.render();
36
36
  }
37
- raycasterIntersectObject(t, e = []) {
38
- return t.intersectObject(this, !0, e);
37
+ raycasterIntersectObject(t, i = []) {
38
+ return t.intersectObject(this, !0, i);
39
39
  }
40
40
  initialPosition(t) {
41
- var e, o;
42
- this.positionFrom === "objectPosition" ? this.position.copy(this.originObject3D.position) : this.positionFrom === "boundingBox" ? this.position.copy((e = m(this.originObject3D)) == null ? void 0 : e.getCenter(new l.Vector3())) : this.positionFrom === "boundingSphere" ? this.position.copy((o = u(this.originObject3D)) == null ? void 0 : o.center) : this.positionFrom instanceof a ? this.position.copy(this.positionFrom) : this.positionFrom instanceof Function && this.position.copy(this.positionFrom(this.originObject3D)), t && this.position.add(t);
41
+ var i, o;
42
+ this.positionFrom === "objectPosition" ? this.position.copy(this.originObject3D.position) : this.positionFrom === "boundingBox" ? this.position.copy((i = m(this.originObject3D)) == null ? void 0 : i.getCenter(new l.Vector3()).applyMatrix4(this.originObject3D.matrixWorld)) : this.positionFrom === "boundingSphere" ? this.position.copy((o = u(this.originObject3D)) == null ? void 0 : o.center.clone().applyMatrix4(this.originObject3D.matrixWorld)) : this.positionFrom instanceof a ? this.position.copy(this.positionFrom) : this.positionFrom instanceof Function && this.position.copy(this.positionFrom(this.originObject3D)), t && this.position.add(t);
43
43
  }
44
44
  setScaleByCamera(t) {
45
45
  }
46
46
  initQuaternion() {
47
47
  this.quaternion.copy(this.originObject3D.quaternion);
48
48
  }
49
- applyHelperScaleMatrix4(t, e) {
49
+ applyHelperScaleMatrix4(t, i) {
50
50
  this.scale.applyMatrix4(t);
51
51
  }
52
- setHelperQuaternion(t, e) {
53
- d(this, t, e);
52
+ setHelperQuaternion(t, i) {
53
+ d(this, t, i);
54
54
  }
55
- applyHelperQuaternion(t, e) {
56
- if (e) {
57
- const o = new a().subVectors(this.position, e).applyQuaternion(t).add(e);
55
+ applyHelperQuaternion(t, i) {
56
+ if (i) {
57
+ const o = new a().subVectors(this.position, i).applyQuaternion(t).add(i);
58
58
  this.position.copy(o);
59
59
  }
60
60
  this.applyQuaternion(t);
@@ -63,20 +63,20 @@ class r extends b {
63
63
  this.removeFromParent();
64
64
  }
65
65
  }
66
+ class D extends r {
67
+ }
66
68
  class H extends r {
67
69
  }
68
- class D extends r {
70
+ class g extends r {
69
71
  }
70
72
  class R extends r {
71
73
  }
72
74
  class v extends r {
73
75
  }
74
- class B extends r {
75
- }
76
76
  export {
77
- D as BoundingBoxHelperAbstract,
78
- H as MoveHelperAbstract,
79
- B as RectangleScaleHelperAbstract,
80
- R as RotateHelperAbstract,
81
- v as ScaleHelperAbstract
77
+ H as BoundingBoxHelperAbstract,
78
+ D as MoveHelperAbstract,
79
+ v as RectangleScaleHelperAbstract,
80
+ g as RotateHelperAbstract,
81
+ R as ScaleHelperAbstract
82
82
  };
@@ -1,12 +1,20 @@
1
- function o(i, s, n = 300) {
2
- const e = i.getElement();
3
- e && (e.style.opacity = s + "", e.style.transition = n === 0 ? "none" : `opacity ${n}ms linear`, n !== 0 && Promise.race([
4
- new Promise((t) => e.addEventListener("transitionend", t, { once: !0 })),
5
- new Promise((t) => setTimeout(t, n))
6
- ]).then(() => {
7
- e.style.transition = "none";
8
- }));
1
+ function a(o, s, t = 300) {
2
+ var r, l;
3
+ const e = o.getElement();
4
+ if (e) {
5
+ e.style.opacity = s + "";
6
+ for (let n = 0; n < ((l = (r = e.parentElement) == null ? void 0 : r.children) == null ? void 0 : l.length); n++) {
7
+ const i = e.parentElement.children[n];
8
+ i instanceof HTMLElement && i.dataset.infive === "1" && (i.style.opacity = s + "");
9
+ }
10
+ e.style.transition = t === 0 ? "none" : `opacity ${t}ms linear`, t !== 0 && Promise.race([
11
+ new Promise((n) => e.addEventListener("transitionend", n, { once: !0 })),
12
+ new Promise((n) => setTimeout(n, t))
13
+ ]).then(() => {
14
+ e.style.transition = "none";
15
+ });
16
+ }
9
17
  }
10
18
  export {
11
- o as changeModelCanvasOpacity
19
+ a as changeModelCanvasOpacity
12
20
  };
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.50.2",
3
+ "%c %c@realsee/dnalogel %cv3.50.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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.50.2",
3
+ "version": "3.50.4",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",