@realsee/dnalogel 3.77.7 → 3.77.9-alpha.0
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 +6 -0
- package/dist/index.cjs.js +62 -62
- package/dist/index.js +1985 -1978
- package/dist/index.umd.js +55 -55
- package/dist/shared-utils/five/getFiveFromParentChain.d.ts +1 -0
- package/libs/GuideLinePlugin/Controller.js +2 -2
- package/libs/GuideLinePlugin/GuideLineItem.js +2 -2
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +51 -48
- package/libs/GuideLinePlugin/GuideLineModeItem.js +4 -2
- package/libs/base/BasePlugin.js +5 -5
- package/libs/shared-utils/five/getFiveFromParentChain.d.ts +1 -0
- package/libs/shared-utils/five/getFiveFromParentChain.js +10 -5
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -3,5 +3,6 @@ import type { Object3D } from 'three';
|
|
|
3
3
|
/**
|
|
4
4
|
* 从 Object3D 的父级链向上遍历,查找 __five__ 或 __sculpt__.five
|
|
5
5
|
* 用于在场景树中正确获取渲染该对象的 Five 实例
|
|
6
|
+
* 兜底:父链未找到时回退到 window.globalModules.five / window.$five,保证单 VR 场景兼容
|
|
6
7
|
*/
|
|
7
8
|
export declare function getFiveFromParentChain(object: Object3D): Five | undefined;
|
|
@@ -420,7 +420,7 @@ class be extends k {
|
|
|
420
420
|
return G({}, h, { id: (T = u.id) != null ? T : H(), pano_group: u.panoIndexList });
|
|
421
421
|
})) != null ? L : [], S = (w = (D = o.lines) == null ? void 0 : D.map((u) => G({}, h, u))) != null ? w : [], M = [...O, ...S];
|
|
422
422
|
yield $(this.five), this.clear(), M.forEach((u) => {
|
|
423
|
-
this.addGuideLineItem(
|
|
423
|
+
this.addGuideLineItem(u);
|
|
424
424
|
}), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: s }), this.hooks.emit("dataLoaded", o), console.debug(`${E} loaded`, o);
|
|
425
425
|
});
|
|
426
426
|
}
|
|
@@ -465,7 +465,7 @@ class be extends k {
|
|
|
465
465
|
const i = t.render_id || t.id, s = this.itemMap.get(i);
|
|
466
466
|
s && this.removeGuideLineItem(s);
|
|
467
467
|
const e = new C({ five: this.five, id: i, plugin: this });
|
|
468
|
-
return this.itemMap.set(i, e), t && e.setData(t), this.heightOffset += 1e-4, e.modelItem.setHeightOffset(this.heightOffset), e.panoramaItem.setHeightOffset(this.heightOffset), e;
|
|
468
|
+
return this.itemMap.set(i, e), t && e.setData(this.processItemUrls(t)), this.heightOffset += 1e-4, e.modelItem.setHeightOffset(this.heightOffset), e.panoramaItem.setHeightOffset(this.heightOffset), e;
|
|
469
469
|
}
|
|
470
470
|
processItemUrls(t) {
|
|
471
471
|
var e, o, r, m;
|
|
@@ -83,6 +83,8 @@ import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
|
83
83
|
import "../Sculpt/utils/three/rayOnLine.js";
|
|
84
84
|
import "../shared-utils/five/mode.js";
|
|
85
85
|
import "../shared-utils/url/defaultUrls.js";
|
|
86
|
+
import "../shared-utils/url/replace-static-prefix.js";
|
|
87
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
86
88
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
87
89
|
import "../shared-utils/animationFrame/index.js";
|
|
88
90
|
import "../shared-utils/three/loadTexture.js";
|
|
@@ -336,8 +338,6 @@ import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
|
336
338
|
import "./index.js";
|
|
337
339
|
import "./Controller.js";
|
|
338
340
|
import "../base/BasePluginWithData.js";
|
|
339
|
-
import "../shared-utils/url/replace-static-prefix.js";
|
|
340
|
-
import "../shared-utils/url/absoluteUrl.js";
|
|
341
341
|
import "../CruisePlugin/utils/coordinatesAngle.js";
|
|
342
342
|
import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
343
343
|
import "../CruisePlugin/utils/safeCall.js";
|
|
@@ -28,17 +28,18 @@ import { blink as O } from "../../shared-utils/three/blink.js";
|
|
|
28
28
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
29
29
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
30
30
|
import "../../vendor/earcut/src/earcut.js";
|
|
31
|
-
import { GUIDELINE_DEFAULT_ARROW_TEXTURE as
|
|
32
|
-
import {
|
|
31
|
+
import { GUIDELINE_DEFAULT_ARROW_TEXTURE as U } from "../../shared-utils/url/defaultUrls.js";
|
|
32
|
+
import { replaceStaticPrefix as E } from "../../shared-utils/url/replace-static-prefix.js";
|
|
33
|
+
import { BetterTween as A } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
33
34
|
import "../../shared-utils/five/FivePuppet.js";
|
|
34
|
-
import { loadTexture as
|
|
35
|
+
import { loadTexture as G } from "../../shared-utils/three/loadTexture.js";
|
|
35
36
|
import k from "../../PanoTagPlugin/controller/index.js";
|
|
36
|
-
import
|
|
37
|
-
import { filterAdjacentDistinct as
|
|
38
|
-
import { objectAssignDeepExports as
|
|
39
|
-
import { createPath as
|
|
40
|
-
import { getGlobalResponsiveFontSize as
|
|
41
|
-
const
|
|
37
|
+
import B from "../Components/Tag.js";
|
|
38
|
+
import { filterAdjacentDistinct as R } from "../utils/index.js";
|
|
39
|
+
import { objectAssignDeepExports as I } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
40
|
+
import { createPath as W } from "../utils/createPath.js";
|
|
41
|
+
import { getGlobalResponsiveFontSize as z, getCurrentFontSize as N } from "../../shared-utils/fontSize.js";
|
|
42
|
+
const D = (
|
|
42
43
|
/* glsl */
|
|
43
44
|
`
|
|
44
45
|
varying vec2 vUv;
|
|
@@ -51,7 +52,7 @@ const N = (
|
|
|
51
52
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
52
53
|
}
|
|
53
54
|
`
|
|
54
|
-
),
|
|
55
|
+
), H = (
|
|
55
56
|
/* glsl */
|
|
56
57
|
`
|
|
57
58
|
precision highp float;
|
|
@@ -170,7 +171,7 @@ const N = (
|
|
|
170
171
|
}
|
|
171
172
|
`
|
|
172
173
|
);
|
|
173
|
-
class
|
|
174
|
+
class j {
|
|
174
175
|
constructor(e, t) {
|
|
175
176
|
i(this, "name", "");
|
|
176
177
|
i(this, "startTagContainer");
|
|
@@ -206,15 +207,15 @@ class H {
|
|
|
206
207
|
i(this, "plugin");
|
|
207
208
|
i(this, "textureHasLoaded", !1);
|
|
208
209
|
i(this, "disposed", !1);
|
|
209
|
-
i(this, "flowAnime", new
|
|
210
|
+
i(this, "flowAnime", new A({ progress: 0 }).to({ progress: 1 }).duration(1500).repeat(1 / 0));
|
|
210
211
|
/** 缓存 panoGroup 中每个点距离起点的长度 */
|
|
211
212
|
i(this, "cacheLengths", []);
|
|
212
213
|
/** 为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
|
|
213
214
|
i(this, "heightOffset", 0);
|
|
214
215
|
/** 响应式字体大小管理器 */
|
|
215
|
-
i(this, "fontSizeManager",
|
|
216
|
+
i(this, "fontSizeManager", z());
|
|
216
217
|
/** 当前字体大小 */
|
|
217
|
-
i(this, "currentFontSize",
|
|
218
|
+
i(this, "currentFontSize", N());
|
|
218
219
|
/** 字体大小订阅取消函数 */
|
|
219
220
|
i(this, "unsubscribeFontSize", null);
|
|
220
221
|
i(this, "dispose", () => {
|
|
@@ -254,8 +255,8 @@ class H {
|
|
|
254
255
|
var a, o;
|
|
255
256
|
this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.group.name = "GuideLineModeItem";
|
|
256
257
|
const s = new n.BufferGeometry(), r = new n.ShaderMaterial({
|
|
257
|
-
vertexShader:
|
|
258
|
-
fragmentShader:
|
|
258
|
+
vertexShader: D,
|
|
259
|
+
fragmentShader: H,
|
|
259
260
|
transparent: !0,
|
|
260
261
|
uniforms: {
|
|
261
262
|
map: { value: null },
|
|
@@ -323,37 +324,39 @@ class H {
|
|
|
323
324
|
return this.logError("disposed");
|
|
324
325
|
if (!this.five.work)
|
|
325
326
|
return this.logError("setPathByPanoGroup: work is not ready");
|
|
326
|
-
const s =
|
|
327
|
+
const s = R(e);
|
|
327
328
|
if (this._panoGroup = s, (t == null ? void 0 : t.skipPanoGroup) !== void 0) {
|
|
328
|
-
const
|
|
329
|
-
this.skippedPositions =
|
|
329
|
+
const d = t.skipPanoGroup ? s.map((m) => this.plugin.workUtil.getObserverStandingPosition(m)).filter(_) : null;
|
|
330
|
+
this.skippedPositions = d;
|
|
330
331
|
}
|
|
331
|
-
const r = this.five.getCurrentState(), a = this.plugin.workUtil.workCode || r.workCode, o = this.five.works.getWork(a), h =
|
|
332
|
+
const r = this.five.getCurrentState(), a = this.plugin.workUtil.workCode || r.workCode, o = this.five.works.getWork(a), h = W(s, o, t);
|
|
332
333
|
this.path = h, this.setGeometryByPath(h, t);
|
|
333
334
|
}
|
|
334
335
|
/** 通过路径设置线条形状 */
|
|
335
336
|
setGeometryByPath(e, t) {
|
|
336
|
-
var
|
|
337
|
+
var g, f, u;
|
|
337
338
|
if (this.disposed)
|
|
338
339
|
return this.logError("disposed");
|
|
339
|
-
const s = (
|
|
340
|
+
const s = (g = t == null ? void 0 : t.scale) != null ? g : this.scale, r = (f = t == null ? void 0 : t.width) != null ? f : this.width, a = (u = t == null ? void 0 : t.unit_length) != null ? u : this.unitLength;
|
|
340
341
|
this.scale = s, this.width = r, this.unitLength = a;
|
|
341
|
-
const { geometry: o, maxV: h, curvePath:
|
|
342
|
+
const { geometry: o, maxV: h, curvePath: d, curvePoints: m } = x({
|
|
342
343
|
path: e,
|
|
343
344
|
width: r * s,
|
|
344
345
|
unitLength: a * s,
|
|
345
346
|
skipPositions: this.skippedPositions
|
|
346
347
|
});
|
|
347
|
-
this._curvePath =
|
|
348
|
+
this._curvePath = d, this._curvePoints = m, this.mesh.geometry.copy(o), this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxV.value = h, this.five.needsRender = !0, this.path = e, this.geometryStyle = p(p({}, this.geometryStyle), t);
|
|
348
349
|
}
|
|
349
350
|
/** 设置线条材质 */
|
|
350
351
|
setMartial(e) {
|
|
351
|
-
var
|
|
352
|
+
var r, a, o, h, d;
|
|
352
353
|
if (this.disposed)
|
|
353
354
|
return this.logError("disposed");
|
|
354
|
-
this.setDefaultVisible((
|
|
355
|
-
const t =
|
|
356
|
-
this.
|
|
355
|
+
this.setDefaultVisible((r = e == null ? void 0 : e.visible) != null ? r : !1), this.setColor((a = e == null ? void 0 : e.color) != null ? a : "#ffffff"), this.setOpacity((o = e == null ? void 0 : e.opacity) != null ? o : 0.5);
|
|
356
|
+
const t = E(this.plugin.staticPrefix, U);
|
|
357
|
+
this.setTextureUrl((d = (h = e == null ? void 0 : e.texture) == null ? void 0 : h.url) != null ? d : t), (e == null ? void 0 : e.background_color) !== void 0 && this.setBackgroundColor(e.background_color), (e == null ? void 0 : e.background_opacity) !== void 0 && this.setBackgroundOpacity(e.background_opacity), (e == null ? void 0 : e.border_color) !== void 0 && this.setBorderColor(e.border_color), (e == null ? void 0 : e.border_opacity) !== void 0 && this.setBorderOpacity(e.border_opacity), (e == null ? void 0 : e.border_width) !== void 0 && this.setBorderWidth(e.border_width), (e == null ? void 0 : e.background_clip) !== void 0 && this.setBackgroundClip(e.background_clip);
|
|
358
|
+
const s = p(p({}, this.materialStyle), e);
|
|
359
|
+
this.materialStyle = s;
|
|
357
360
|
}
|
|
358
361
|
/** 设置模型状态 */
|
|
359
362
|
setMeshStyle(e) {
|
|
@@ -436,7 +439,7 @@ class H {
|
|
|
436
439
|
setTextureUrl(e) {
|
|
437
440
|
if (this.disposed)
|
|
438
441
|
return this.logError("disposed");
|
|
439
|
-
this.textureUrl = e,
|
|
442
|
+
this.textureUrl = e, G(e).then((t) => {
|
|
440
443
|
this.disposed || this.textureUrl === e && (t.wrapT = n.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.uniforms.map.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.mesh.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
|
|
441
444
|
});
|
|
442
445
|
}
|
|
@@ -474,43 +477,43 @@ class H {
|
|
|
474
477
|
return this.disposed ? this.logError("disposed") : this.cacheLengths.length !== 0 ? this.cacheLengths[e] : (this.cacheLengths = this.getPanoGroupLengths(), this.cacheLengths[e]);
|
|
475
478
|
}
|
|
476
479
|
getPanoGroupLengths() {
|
|
477
|
-
var
|
|
480
|
+
var d, m, g, f;
|
|
478
481
|
if (!this.curvePoints || !this.curvePath)
|
|
479
482
|
return [];
|
|
480
|
-
const e = this.curvePoints.length, t = (m = (
|
|
483
|
+
const e = this.curvePoints.length, t = (m = (d = this.curvePath) == null ? void 0 : d.getLength()) != null ? m : 0, s = e - 1, r = t / s, a = (f = (g = this.curvePath) == null ? void 0 : g.getLengths(s)) != null ? f : [], o = [];
|
|
481
484
|
let h = 0;
|
|
482
|
-
for (let
|
|
483
|
-
const v = this.curvePoints[
|
|
485
|
+
for (let u = 0; u < e; u++) {
|
|
486
|
+
const v = this.curvePoints[u], c = this.plugin.workUtil.getObserverStandingPosition(h);
|
|
484
487
|
if (!c)
|
|
485
488
|
break;
|
|
486
|
-
c.clone().setY(0).distanceTo(v.clone().setY(0)) < r && (o.push(a[
|
|
489
|
+
c.clone().setY(0).distanceTo(v.clone().setY(0)) < r && (o.push(a[u]), h += 1);
|
|
487
490
|
}
|
|
488
491
|
return o;
|
|
489
492
|
}
|
|
490
493
|
setTag(e, t) {
|
|
491
|
-
var
|
|
494
|
+
var d, m;
|
|
492
495
|
const s = this.curvePath;
|
|
493
496
|
if (!(t != null && t.data))
|
|
494
497
|
return;
|
|
495
|
-
const r = e === "start" ? (
|
|
498
|
+
const r = e === "start" ? (d = this.startTagContainer) != null ? d : (() => (this.startTagContainer = { tag: null, plugin: new k(this.five, { containerZIndex: 10 }) }, this.startTagContainer))() : (m = this.endTagContainer) != null ? m : (() => (this.endTagContainer = { tag: null, plugin: new k(this.five, { containerZIndex: 10 }) }, this.endTagContainer))(), o = I({}, {
|
|
496
499
|
contentType: "Custom",
|
|
497
500
|
stickType: "2DPoint",
|
|
498
501
|
config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
|
|
499
502
|
style: { point: { enabled: !1 } },
|
|
500
503
|
data: {}
|
|
501
504
|
}, t);
|
|
502
|
-
r.tag = o,
|
|
505
|
+
r.tag = o, $(o) && (r.tag.element = (g) => {
|
|
503
506
|
var v, c;
|
|
504
507
|
(v = r.app) == null || v.$destroy();
|
|
505
|
-
const f = e === "start" ? C(p({}, o.data), { name: this.name, distance: Math.round((c = s == null ? void 0 : s.getLength()) != null ? c : 0), i18n: this.plugin.config.i18n }) : o.data,
|
|
506
|
-
return r.app =
|
|
508
|
+
const f = e === "start" ? C(p({}, o.data), { name: this.name, distance: Math.round((c = s == null ? void 0 : s.getLength()) != null ? c : 0), i18n: this.plugin.config.i18n }) : o.data, u = new B({ target: g, intro: !0, props: p({ fontSize: this.currentFontSize }, f) });
|
|
509
|
+
return r.app = u, () => u.$destroy();
|
|
507
510
|
}), r.plugin.load({ tagList: [r.tag] });
|
|
508
511
|
const h = this.meshStyle.translate;
|
|
509
512
|
if (h && o.position) {
|
|
510
|
-
const
|
|
511
|
-
|
|
512
|
-
const
|
|
513
|
-
r.plugin.changeTagById(r.tag.id, { position:
|
|
513
|
+
const g = new n.Vector3().fromArray(o.position), f = new n.Vector3().fromArray(h);
|
|
514
|
+
g.add(f), g.y += this.heightOffset;
|
|
515
|
+
const u = g.toArray();
|
|
516
|
+
r.plugin.changeTagById(r.tag.id, { position: u });
|
|
514
517
|
}
|
|
515
518
|
}
|
|
516
519
|
doShow() {
|
|
@@ -522,14 +525,14 @@ class H {
|
|
|
522
525
|
this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.group), (e = this.startTagContainer) == null || e.plugin.hide(), (t = this.endTagContainer) == null || t.plugin.hide(), this.five.needsRender = !0;
|
|
523
526
|
}
|
|
524
527
|
}
|
|
525
|
-
function
|
|
528
|
+
function $(l) {
|
|
526
529
|
return l.contentType === "Custom";
|
|
527
530
|
}
|
|
528
|
-
const
|
|
531
|
+
const we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
529
532
|
__proto__: null,
|
|
530
|
-
GuideLineModeItem:
|
|
533
|
+
GuideLineModeItem: j
|
|
531
534
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
532
535
|
export {
|
|
533
|
-
|
|
534
|
-
|
|
536
|
+
j as GuideLineModeItem,
|
|
537
|
+
we as GuideLineModeItem$1
|
|
535
538
|
};
|
|
@@ -16,6 +16,7 @@ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
16
16
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
17
17
|
import "../vendor/earcut/src/earcut.js";
|
|
18
18
|
import "../shared-utils/url/defaultUrls.js";
|
|
19
|
+
import "../shared-utils/url/replace-static-prefix.js";
|
|
19
20
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
20
21
|
import "../shared-utils/five/FivePuppet.js";
|
|
21
22
|
import "../shared-utils/three/loadTexture.js";
|
|
@@ -25,7 +26,7 @@ import "./utils/index.js";
|
|
|
25
26
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
26
27
|
import "./utils/createPath.js";
|
|
27
28
|
import "../shared-utils/fontSize.js";
|
|
28
|
-
import { GuideLineModeItem as
|
|
29
|
+
import { GuideLineModeItem as pp } from "./GuideLineModeItem/index.js";
|
|
29
30
|
import "../vendor/polyline-normals/index.js";
|
|
30
31
|
import "../vendor/polyline-miter-util/index.js";
|
|
31
32
|
import "../vendor/gl-vec2/add.js";
|
|
@@ -86,6 +87,7 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
86
87
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
87
88
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
88
89
|
import "@realsee/five";
|
|
90
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
89
91
|
import "../shared-utils/animationFrame/index.js";
|
|
90
92
|
import "../PanoTagPlugin/utils/tag/tagCheck.js";
|
|
91
93
|
import "../PanoTagPlugin/utils/debounce.js";
|
|
@@ -324,5 +326,5 @@ import "../PanoTagPlugin/Components/Common/TagPopover/ShareIcon.js";
|
|
|
324
326
|
import "../PanoTagPlugin/utils/popoverContainer.js";
|
|
325
327
|
import "../shared-utils/px2rem.js";
|
|
326
328
|
export {
|
|
327
|
-
|
|
329
|
+
pp as GuideLineModeItem
|
|
328
330
|
};
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var e = Object.defineProperty;
|
|
2
2
|
var s = (o, t, i) => t in o ? e(o, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[t] = i;
|
|
3
3
|
var r = (o, t, i) => (s(o, typeof t != "symbol" ? t + "" : t, i), i);
|
|
4
|
-
import { Subscribe as
|
|
4
|
+
import { Subscribe as l } from "../shared-utils/Subscribe.js";
|
|
5
5
|
import "../shared-utils/tag.js";
|
|
6
6
|
import "three";
|
|
7
7
|
import "../vendor/hammerjs/hammer.js";
|
|
@@ -15,7 +15,7 @@ import "../shared-utils/three/blink.js";
|
|
|
15
15
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
16
16
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
17
17
|
import "../vendor/earcut/src/earcut.js";
|
|
18
|
-
import { FiveUtil as
|
|
18
|
+
import { FiveUtil as m } from "../shared-utils/Utils/FiveUtil.js";
|
|
19
19
|
import { DEFAULT_STATIC_PREFIX as p } from "../shared-utils/url/defaultUrls.js";
|
|
20
20
|
import "../shared-utils/five/FivePuppet.js";
|
|
21
21
|
let I = class {
|
|
@@ -23,7 +23,7 @@ let I = class {
|
|
|
23
23
|
/**
|
|
24
24
|
* @realsee/dnalogel 版本号
|
|
25
25
|
*/
|
|
26
|
-
r(this, "VERSION", "3.77.
|
|
26
|
+
r(this, "VERSION", "3.77.9-alpha.0");
|
|
27
27
|
r(this, "NAME");
|
|
28
28
|
r(this, "five");
|
|
29
29
|
r(this, "workUtil");
|
|
@@ -31,9 +31,9 @@ let I = class {
|
|
|
31
31
|
/**
|
|
32
32
|
* @description: 插件事件钩子
|
|
33
33
|
*/
|
|
34
|
-
r(this, "hooks", new
|
|
34
|
+
r(this, "hooks", new l());
|
|
35
35
|
r(this, "staticPrefix", p);
|
|
36
|
-
this.five = t, this.fiveUtil = new
|
|
36
|
+
this.five = t, this.fiveUtil = new m(t), this.workUtil = this.fiveUtil.workUtil, i != null && i.staticPrefix && (this.staticPrefix = i.staticPrefix);
|
|
37
37
|
}
|
|
38
38
|
set workCode(t) {
|
|
39
39
|
this.workUtil.workCode = t, this.onWorkCodeChange();
|
|
@@ -3,5 +3,6 @@ import type { Object3D } from 'three';
|
|
|
3
3
|
/**
|
|
4
4
|
* 从 Object3D 的父级链向上遍历,查找 __five__ 或 __sculpt__.five
|
|
5
5
|
* 用于在场景树中正确获取渲染该对象的 Five 实例
|
|
6
|
+
* 兜底:父链未找到时回退到 window.globalModules.five / window.$five,保证单 VR 场景兼容
|
|
6
7
|
*/
|
|
7
8
|
export declare function getFiveFromParentChain(object: Object3D): Five | undefined;
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
function
|
|
1
|
+
function r() {
|
|
2
|
+
var i, e;
|
|
3
|
+
return (e = (i = window.globalModules) == null ? void 0 : i.five) != null ? e : window.$five;
|
|
4
|
+
}
|
|
5
|
+
function f(i) {
|
|
2
6
|
let e = i;
|
|
3
7
|
for (; e; ) {
|
|
4
8
|
const t = e.__five__;
|
|
5
9
|
if (t)
|
|
6
10
|
return t;
|
|
7
|
-
const
|
|
8
|
-
if (
|
|
9
|
-
return
|
|
11
|
+
const n = e.__sculpt__;
|
|
12
|
+
if (n != null && n.five)
|
|
13
|
+
return n.five;
|
|
10
14
|
e = e.parent;
|
|
11
15
|
}
|
|
16
|
+
return r();
|
|
12
17
|
}
|
|
13
18
|
export {
|
|
14
|
-
|
|
19
|
+
f as getFiveFromParentChain
|
|
15
20
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.77.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.77.9-alpha.0",
|
|
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",
|