@zhangdali1996/lr-map-viewer 0.0.179 → 0.0.180
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/lr-map-viewer.js +46 -26
- package/package.json +1 -1
package/dist/lr-map-viewer.js
CHANGED
|
@@ -21,7 +21,7 @@ var le = Object.create, ue = Object.defineProperty, H = Object.getOwnPropertyDes
|
|
|
21
21
|
}) : n, e)), U = {
|
|
22
22
|
name: "@zhangdali1996/lr-map-viewer",
|
|
23
23
|
private: !1,
|
|
24
|
-
version: "0.0.
|
|
24
|
+
version: "0.0.179",
|
|
25
25
|
type: "module",
|
|
26
26
|
files: ["dist"],
|
|
27
27
|
main: "./dist/lr-map-viewer.js",
|
|
@@ -68311,47 +68311,65 @@ function NJ(e = {}) {
|
|
|
68311
68311
|
};
|
|
68312
68312
|
}
|
|
68313
68313
|
function Oe(e = {}) {
|
|
68314
|
-
let t = Array.isArray(e.personSceneIds) ? e.personSceneIds : [], n = Array.isArray(e.carSceneIds) ? e.carSceneIds : [], r = Math.max(0, Number(e.sceneMoveDuration) || 0), i = [], a =
|
|
68314
|
+
let t = Array.isArray(e.personSceneIds) ? e.personSceneIds : [], n = Array.isArray(e.carSceneIds) ? e.carSceneIds : [], r = Math.max(0, Number(e.sceneMoveDuration) || 0), i = [], a = [], o = 0, s = 0, c = 0, l = 0;
|
|
68315
68315
|
if (r <= 0) return {
|
|
68316
|
-
adjustedPersonCount:
|
|
68317
|
-
adjustedCarCount:
|
|
68316
|
+
adjustedPersonCount: o,
|
|
68317
|
+
adjustedCarCount: s,
|
|
68318
|
+
fullDurationPersonCount: c,
|
|
68319
|
+
fullDurationCarCount: l,
|
|
68318
68320
|
maxPathLength: 0,
|
|
68319
68321
|
referencePathLength: 0,
|
|
68320
68322
|
usedPathLengthFallback: !1
|
|
68321
68323
|
};
|
|
68322
68324
|
t.forEach((e) => {
|
|
68323
68325
|
let t = y.get(e);
|
|
68324
|
-
t
|
|
68326
|
+
if (!t) return;
|
|
68327
|
+
let n = {
|
|
68325
68328
|
entityType: "person",
|
|
68326
68329
|
moveState: t
|
|
68327
|
-
}
|
|
68330
|
+
};
|
|
68331
|
+
if (i.push(n), t.sceneWellheadEndInside === !0) a.push(n);
|
|
68332
|
+
else {
|
|
68333
|
+
let e = r, n = t.useScenePlaybackSpeed === !0 ? e / g.value : e;
|
|
68334
|
+
t.baseMoveDuration = e, t.moveDuration = n, t.playbackSpeed = t.useScenePlaybackSpeed === !0 ? g.value : null, o += 1, c += 1;
|
|
68335
|
+
}
|
|
68328
68336
|
}), n.forEach((e) => {
|
|
68329
68337
|
let t = R.get(e);
|
|
68330
|
-
t
|
|
68338
|
+
if (!t) return;
|
|
68339
|
+
let n = {
|
|
68331
68340
|
entityType: "car",
|
|
68332
68341
|
moveState: t
|
|
68333
|
-
}
|
|
68342
|
+
};
|
|
68343
|
+
if (i.push(n), t.sceneWellheadEndInside === !0) a.push(n);
|
|
68344
|
+
else {
|
|
68345
|
+
let e = r, n = t.useScenePlaybackSpeed === !0 ? e / g.value : e;
|
|
68346
|
+
t.baseMoveDuration = e, t.moveDuration = n, t.playbackSpeed = t.useScenePlaybackSpeed === !0 ? g.value : null, s += 1, l += 1;
|
|
68347
|
+
}
|
|
68334
68348
|
});
|
|
68335
|
-
let { maxPathLength:
|
|
68336
|
-
return
|
|
68337
|
-
adjustedPersonCount:
|
|
68338
|
-
adjustedCarCount:
|
|
68339
|
-
|
|
68349
|
+
let { maxPathLength: u, referencePathLength: d, usedPathLengthFallback: f } = De(a);
|
|
68350
|
+
return d <= 0 ? {
|
|
68351
|
+
adjustedPersonCount: o,
|
|
68352
|
+
adjustedCarCount: s,
|
|
68353
|
+
fullDurationPersonCount: c,
|
|
68354
|
+
fullDurationCarCount: l,
|
|
68355
|
+
maxPathLength: u,
|
|
68340
68356
|
referencePathLength: 0,
|
|
68341
|
-
usedPathLengthFallback:
|
|
68342
|
-
} : (
|
|
68343
|
-
let t = e.moveState, n = Math.max(0, Number(t?.totalLength) || 0), i = Math.min(n,
|
|
68344
|
-
if (t.baseMoveDuration = i, t.moveDuration =
|
|
68345
|
-
|
|
68357
|
+
usedPathLengthFallback: f
|
|
68358
|
+
} : (a.forEach((e) => {
|
|
68359
|
+
let t = e.moveState, n = Math.max(0, Number(t?.totalLength) || 0), i = Math.min(n, d) / d * r, a = t.useScenePlaybackSpeed === !0 ? i / g.value : i, c = t.useScenePlaybackSpeed === !0 ? r / g.value : r, l = a > 0 ? Math.min(c, Math.max(AJ, a)) : 0;
|
|
68360
|
+
if (t.baseMoveDuration = i, t.moveDuration = l, t.playbackSpeed = t.useScenePlaybackSpeed === !0 ? g.value : null, e.entityType === "person") {
|
|
68361
|
+
o += 1;
|
|
68346
68362
|
return;
|
|
68347
68363
|
}
|
|
68348
|
-
|
|
68364
|
+
s += 1;
|
|
68349
68365
|
}), {
|
|
68350
|
-
adjustedPersonCount:
|
|
68351
|
-
adjustedCarCount:
|
|
68352
|
-
|
|
68353
|
-
|
|
68354
|
-
|
|
68366
|
+
adjustedPersonCount: o,
|
|
68367
|
+
adjustedCarCount: s,
|
|
68368
|
+
fullDurationPersonCount: c,
|
|
68369
|
+
fullDurationCarCount: l,
|
|
68370
|
+
maxPathLength: u,
|
|
68371
|
+
referencePathLength: d,
|
|
68372
|
+
usedPathLengthFallback: f
|
|
68355
68373
|
});
|
|
68356
68374
|
}
|
|
68357
68375
|
function ke(t) {
|
|
@@ -69943,7 +69961,8 @@ function NJ(e = {}) {
|
|
|
69943
69961
|
pathPoints: f,
|
|
69944
69962
|
accumulatedLengths: p,
|
|
69945
69963
|
totalLength: m,
|
|
69946
|
-
targetPoint: a
|
|
69964
|
+
targetPoint: a,
|
|
69965
|
+
sceneWellheadEndInside: e.sceneWellheadEndInside === !0
|
|
69947
69966
|
}), ye.value = !1, Se(), l || vn(), !0;
|
|
69948
69967
|
}
|
|
69949
69968
|
function lr(e, t = fJ, n = {}) {
|
|
@@ -70675,7 +70694,8 @@ function NJ(e = {}) {
|
|
|
70675
70694
|
pathPoints: f,
|
|
70676
70695
|
accumulatedLengths: p,
|
|
70677
70696
|
totalLength: m,
|
|
70678
|
-
targetPoint: a
|
|
70697
|
+
targetPoint: a,
|
|
70698
|
+
sceneWellheadEndInside: e.sceneWellheadEndInside === !0
|
|
70679
70699
|
}), ye.value = !1, Se(), l || X(), !0;
|
|
70680
70700
|
}
|
|
70681
70701
|
function ni(e, t = pJ, n = {}) {
|