@realsee/dnalogel 3.77.4-alpha.2 → 3.77.4-alpha.3
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/dist/DigitalPerformancePlugin/core/DigitalHuman.d.ts +1 -0
- package/dist/index.cjs.js +3 -3
- package/dist/index.js +8 -7
- package/dist/index.umd.js +3 -3
- package/libs/DigitalPerformancePlugin/core/DigitalHuman.d.ts +1 -0
- package/libs/DigitalPerformancePlugin/core/DigitalHuman.js +23 -22
- package/libs/DigitalPerformancePlugin/mock.js +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -43,7 +43,7 @@ import { LineGeometry as kb, LineMaterial as xb, THREE_Line2 as Sb, Line as S0 }
|
|
|
43
43
|
import { GLTFLoader as T0 } from "@realsee/five/gltf-loader";
|
|
44
44
|
function Tb() {
|
|
45
45
|
console.debug(
|
|
46
|
-
"%c %c@realsee/dnalogel %cv3.77.4-alpha.
|
|
46
|
+
"%c %c@realsee/dnalogel %cv3.77.4-alpha.3",
|
|
47
47
|
[
|
|
48
48
|
"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=')",
|
|
49
49
|
"background-repeat: no-repeat",
|
|
@@ -13506,7 +13506,7 @@ let ys = class {
|
|
|
13506
13506
|
/**
|
|
13507
13507
|
* @realsee/dnalogel 版本号
|
|
13508
13508
|
*/
|
|
13509
|
-
f(this, "VERSION", "3.77.4-alpha.
|
|
13509
|
+
f(this, "VERSION", "3.77.4-alpha.3");
|
|
13510
13510
|
f(this, "NAME");
|
|
13511
13511
|
f(this, "five");
|
|
13512
13512
|
f(this, "workUtil");
|
|
@@ -58793,6 +58793,7 @@ class mD {
|
|
|
58793
58793
|
this.model = t, this.model.visible = !1, this.model.mixer = null, this.mixer = new b.AnimationMixer(this.model), this.action = null, this.keyframesManager = new uD(), this.keyframes = [], this.items = [], this.effects = [], this.digitalPlayground = e, this.state = {
|
|
58794
58794
|
currentTime: 0,
|
|
58795
58795
|
currentAnimation: null,
|
|
58796
|
+
currentAnimationRepeat: !1,
|
|
58796
58797
|
playing: !1
|
|
58797
58798
|
}, this.animationFrameId = null, this.itemMatrixMap = /* @__PURE__ */ new Map(), this.trace = new fD(), this.curveLine = new b.Line(), this.curveLine.material = new b.LineBasicMaterial({ color: 14467195, linewidth: 5 }), this.effectsGroup = new b.Group(), this.effectObjects = /* @__PURE__ */ new Map(), this.container = new b.Group(), this.container.add(this.model), this.container.add(this.curveLine), this.container.add(this.effectsGroup);
|
|
58798
58799
|
}
|
|
@@ -58800,7 +58801,7 @@ class mD {
|
|
|
58800
58801
|
const s = this.action;
|
|
58801
58802
|
t.tracks = t.tracks.filter((r) => r);
|
|
58802
58803
|
const o = this.mixer.clipAction(t);
|
|
58803
|
-
o.reset(), e
|
|
58804
|
+
o.reset(), e ? (o.setLoop(b.LoopRepeat, 1 / 0), o.clampWhenFinished = !1) : (o.setLoop(b.LoopOnce, 1), o.clampWhenFinished = !0), s && (o.enabled = !0, o.setEffectiveTimeScale(1), o.crossFadeFrom(s, i / 1e3, !0)), o.play(), s && s !== o && setTimeout(() => {
|
|
58804
58805
|
s.stop();
|
|
58805
58806
|
}, i), this.action = o;
|
|
58806
58807
|
}
|
|
@@ -58825,7 +58826,7 @@ class mD {
|
|
|
58825
58826
|
return ee(this, null, function* () {
|
|
58826
58827
|
this.clearProcessedNeedRenderKeyframeIndices();
|
|
58827
58828
|
const { keyframes: e, items: i, effects: s } = t || {};
|
|
58828
|
-
return this.keyframes = e || this.keyframes, this.items = i || this.items, this.effects = s || this.effects, this.state.currentAnimation = null, this.state.playing = !0, new Promise((o, r) => {
|
|
58829
|
+
return this.keyframes = e || this.keyframes, this.items = i || this.items, this.effects = s || this.effects, this.state.currentAnimation = null, this.state.currentAnimationRepeat = !1, this.state.playing = !0, new Promise((o, r) => {
|
|
58829
58830
|
this.state.currentTime || this.init();
|
|
58830
58831
|
let a = null;
|
|
58831
58832
|
for (let u = 0; u < this.items.length; u++) {
|
|
@@ -58867,8 +58868,8 @@ class mD {
|
|
|
58867
58868
|
this.model.visible = !1, this.container.visible = !1, this.stopAnimation(), this.model.needsRender = !0, o(!0), this.animationFrameId !== null && (cancelAnimationFrame(this.animationFrameId), this.animationFrameId = null);
|
|
58868
58869
|
return;
|
|
58869
58870
|
} else if (p.animation) {
|
|
58870
|
-
const A = this.digitalPlayground.getAnimation(p.animation.url), w = p.animation.needRender;
|
|
58871
|
-
(A !== this.state.currentAnimation || w && !this.hasProcessedNeedRenderForTimestamp(p.keyframeIndex)) && (w && A === this.state.currentAnimation && this.markNeedRenderProcessedForTimestamp(p.keyframeIndex), this.state.currentAnimation = A, this.playAnimation({
|
|
58871
|
+
const A = this.digitalPlayground.getAnimation(p.animation.url), w = p.animation.needRender, I = p.animation.repeat !== this.state.currentAnimationRepeat;
|
|
58872
|
+
(A !== this.state.currentAnimation || I || w && !this.hasProcessedNeedRenderForTimestamp(p.keyframeIndex)) && (w && A === this.state.currentAnimation && this.markNeedRenderProcessedForTimestamp(p.keyframeIndex), this.state.currentAnimation = A, this.state.currentAnimationRepeat = p.animation.repeat, this.playAnimation({
|
|
58872
58873
|
animation: A,
|
|
58873
58874
|
repeat: p.animation.repeat,
|
|
58874
58875
|
switchDuration: (g = p.animation.switchDuration) != null ? g : pD
|
|
@@ -59182,7 +59183,7 @@ function yD(n, t = 0, e = 300) {
|
|
|
59182
59183
|
scale: i.scale,
|
|
59183
59184
|
animation: {
|
|
59184
59185
|
url: D ? x.animationUrl : n.animationUrl,
|
|
59185
|
-
repeat: !D
|
|
59186
|
+
repeat: !D || (x == null ? void 0 : x.repeat),
|
|
59186
59187
|
needRender: D
|
|
59187
59188
|
}
|
|
59188
59189
|
}), E += x.duration * 1e3;
|