@realsee/dnalogel 2.9.0-alpha.3 → 2.9.0-alpha.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.
- package/dist/index.cjs.js +14 -14
- package/dist/index.js +168 -168
- package/dist/index.umd.js +15 -15
- package/docs/classes/CSS3DRender.html +4 -4
- package/docs/classes/CruisePluginController.html +4 -4
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/classes/Object3DHelperController.html +4 -4
- package/docs/classes/PaintBrush.html +4 -4
- package/docs/classes/PanoMeasurePluginLine.html +4 -4
- package/docs/classes/PanoMeasurePluginModel.html +4 -4
- package/docs/classes/PanoMeasurePluginPoint.html +4 -4
- package/docs/classes/PanoMeasurePluginPolyline.html +4 -4
- package/docs/classes/PanoTagPluginController.html +4 -4
- package/docs/classes/Util.BetterTween.html +4 -4
- package/docs/classes/Util.FivePointSelector.html +4 -4
- package/docs/classes/Util.Interval.html +4 -4
- package/docs/classes/Util.Magnifier.html +4 -4
- package/docs/classes/Util.PointDomHelper.html +4 -4
- package/docs/classes/Util.PointHelper.html +4 -4
- package/docs/classes/Util.Rectangle.html +4 -4
- package/docs/enums/CameraMovementEffect.html +4 -4
- package/docs/enums/ContentType.html +4 -4
- package/docs/enums/DIRECTION.html +4 -4
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +4 -4
- package/docs/enums/DimensionType.html +4 -4
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -4
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +4 -4
- package/docs/enums/PaintBrushTypeEnum.html +4 -4
- package/docs/enums/PointType.html +4 -4
- package/docs/enums/Rotation.html +4 -4
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +4 -4
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
- package/docs/interfaces/CameraMovementPluginExportType.html +4 -4
- package/docs/interfaces/EventMap.html +4 -4
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +4 -4
- package/docs/interfaces/FloorplanEntrance.html +4 -4
- package/docs/interfaces/FloorplanExtraObject.html +4 -4
- package/docs/interfaces/FloorplanExtraObject3D.html +4 -4
- package/docs/interfaces/FloorplanFloorData.html +4 -4
- package/docs/interfaces/FloorplanImagePosition.html +4 -4
- package/docs/interfaces/FloorplanObserver.html +4 -4
- package/docs/interfaces/FloorplanOutlineItem.html +4 -4
- package/docs/interfaces/FloorplanPosition.html +4 -4
- package/docs/interfaces/FloorplanRoomItem.html +4 -4
- package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +4 -4
- package/docs/interfaces/FloorplanServerData.html +4 -4
- package/docs/interfaces/FloorplanServerDoorItem.html +4 -4
- package/docs/interfaces/FloorplanServerDoorPosition.html +4 -4
- package/docs/interfaces/FloorplanServerEntrance.html +4 -4
- package/docs/interfaces/FloorplanServerFloorData.html +4 -4
- package/docs/interfaces/FloorplanServerImagePosition.html +4 -4
- package/docs/interfaces/FloorplanServerObserver.html +4 -4
- package/docs/interfaces/FloorplanServerOutlineItem.html +4 -4
- package/docs/interfaces/FloorplanServerPosition.html +4 -4
- package/docs/interfaces/FloorplanServerRoomItem.html +4 -4
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
- package/docs/interfaces/HelperOffset.html +4 -4
- package/docs/interfaces/ItemLabelPluginData.html +4 -4
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +4 -4
- package/docs/interfaces/ItemLabelPluginParametersType.html +4 -4
- package/docs/interfaces/MinMax.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginData.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +4 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginData.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +4 -4
- package/docs/interfaces/ModelRoomLabelPluginData.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginData.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +4 -4
- package/docs/interfaces/ModelViewPluginExportType.html +4 -4
- package/docs/interfaces/Object3DHelperState.html +4 -4
- package/docs/interfaces/ObjectHelperControllers.html +4 -4
- package/docs/interfaces/PaintBrushAction.html +4 -4
- package/docs/interfaces/PaintBrushConfigs.html +4 -4
- package/docs/interfaces/PaintBrushState.html +4 -4
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +4 -4
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +4 -4
- package/docs/interfaces/PanoMeasurePluginLineJson.html +4 -4
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +4 -4
- package/docs/interfaces/PanoMeasurePluginPointJson.html +4 -4
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +4 -4
- package/docs/interfaces/PanoRulerPluginExportType.html +4 -4
- package/docs/interfaces/PanoRulerPluginOptions.html +4 -4
- package/docs/interfaces/PanoRulerPluginParameterType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginExportType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginOptions.html +4 -4
- package/docs/interfaces/PanoRulerProPluginParameterType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginState.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +4 -4
- package/docs/interfaces/Point.html +4 -4
- package/docs/interfaces/Room.html +4 -4
- package/docs/interfaces/RoomInfo.html +4 -4
- package/docs/interfaces/RoomLabel.html +4 -4
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +4 -4
- package/docs/interfaces/State.html +4 -4
- package/docs/interfaces/TagCache.html +4 -4
- package/docs/interfaces/TagConfig.html +4 -4
- package/docs/interfaces/TagIconUrl.html +4 -4
- package/docs/interfaces/Tags.html +4 -4
- package/docs/interfaces/TemporaryState.html +4 -4
- package/docs/interfaces/Util.MagnifierParameter.html +4 -4
- package/docs/interfaces/Util.MouseGroupParameter.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/AudioAppearance.html +4 -4
- package/docs/types/AudioTagTypeConfigKey.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/ClassFunctionParameters.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeySplit.html +4 -4
- package/docs/types/ContentTypeMap.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/LoadTagConfig.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/MediaStore.html +4 -4
- package/docs/types/ModelElement.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoIndex.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/PlaneTagElement.html +4 -4
- package/docs/types/Point2DElement.html +4 -4
- package/docs/types/Point2DTag.html +4 -4
- package/docs/types/Point3DElement.html +4 -4
- package/docs/types/Point3DTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/PointTagElement.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/StickType.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagContentType.html +4 -4
- package/docs/types/TagDimensionType.html +4 -4
- package/docs/types/TagElement.html +4 -4
- package/docs/types/TagEvents.html +4 -4
- package/docs/types/TagGLTFObject.html +4 -4
- package/docs/types/TagHooks.html +4 -4
- package/docs/types/TagIconSize.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TagPointType.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/WorkCode.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/VERSION.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/libs/PanoTagPlugin/utils/tagPosition.js +8 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,15 +2,15 @@ var Hl = Object.defineProperty, Gl = Object.defineProperties;
|
|
|
2
2
|
var Wl = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Do = Object.getOwnPropertySymbols;
|
|
4
4
|
var Nl = Object.prototype.hasOwnProperty, _l = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var yi = (i, t, e) => t in i ? Hl(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, Q = (i, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
|
-
Nl.call(t, e) &&
|
|
7
|
+
Nl.call(t, e) && yi(i, e, t[e]);
|
|
8
8
|
if (Do)
|
|
9
9
|
for (var e of Do(t))
|
|
10
|
-
_l.call(t, e) &&
|
|
10
|
+
_l.call(t, e) && yi(i, e, t[e]);
|
|
11
11
|
return i;
|
|
12
12
|
}, pe = (i, t) => Gl(i, Wl(t));
|
|
13
|
-
var m = (i, t, e) => (
|
|
13
|
+
var m = (i, t, e) => (yi(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
14
|
var F = (i, t, e) => new Promise((n, o) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
@@ -27,12 +27,12 @@ var F = (i, t, e) => new Promise((n, o) => {
|
|
|
27
27
|
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, r);
|
|
28
28
|
a((e = e.apply(i, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import * as
|
|
30
|
+
import * as ci from "@tweenjs/tween.js";
|
|
31
31
|
import An, { Tween as Xl, Easing as Yl } from "@tweenjs/tween.js";
|
|
32
32
|
import { Camera as Ul, Five as Ve, Subscribe as Ye } from "@realsee/five";
|
|
33
33
|
import * as I from "three";
|
|
34
34
|
import { Vector3 as K, Group as vn, Raycaster as Tt, MeshBasicMaterial as bn, CanvasTexture as Jl, AnimationMixer as Zl, Color as En, TextureLoader as da, Vector2 as Ne, PlaneGeometry as ql, sRGBEncoding as Kl, Mesh as Un, CurvePath as $l, LineCurve3 as ec, TubeGeometry as tc, ShaderMaterial as nc, SphereGeometry as ic, DoubleSide as fa, RingGeometry as oc, Quaternion as ha, Euler as Lo, Matrix4 as cn, Object3D as sc } from "three";
|
|
35
|
-
import { CSS3DRenderer as rc, CSS3DObject as
|
|
35
|
+
import { CSS3DRenderer as rc, CSS3DObject as Fi } from "three/examples/jsm/renderers/CSS3DRenderer";
|
|
36
36
|
import { Line as ma } from "@realsee/five/line";
|
|
37
37
|
import { FBXLoader as pa } from "three/examples/jsm/loaders/FBXLoader";
|
|
38
38
|
import In from "hammerjs";
|
|
@@ -56,7 +56,7 @@ function Mn(i, t, e) {
|
|
|
56
56
|
const n = i.x, o = i.y, s = Math.floor(n / t * 1e4) / 1e4, r = Math.floor(o / e * 1e4) / 1e4;
|
|
57
57
|
return { x: s, y: r };
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function wi(i, t, e) {
|
|
60
60
|
const { x: n, y: o } = i, s = n * t, r = o * e;
|
|
61
61
|
return { x: s, y: r };
|
|
62
62
|
}
|
|
@@ -484,7 +484,7 @@ class vc extends gc {
|
|
|
484
484
|
const a = this.canvas[e].getContext("2d");
|
|
485
485
|
if (!a)
|
|
486
486
|
return;
|
|
487
|
-
const { line: l = [], color: c = "black", duration: u = 0, uuid: f } = n, d =
|
|
487
|
+
const { line: l = [], color: c = "black", duration: u = 0, uuid: f } = n, d = wi(n.move || {}, this.clientWidth, this.clientHeight);
|
|
488
488
|
let h = [d];
|
|
489
489
|
if (a.strokeStyle = c, a.beginPath(), a.moveTo(d.x, d.y), u && !o) {
|
|
490
490
|
let g = [];
|
|
@@ -495,7 +495,7 @@ class vc extends gc {
|
|
|
495
495
|
return a.clearRect(0, 0, A.canvas[f].width, A.canvas[f].height), (y = A.tween) == null ? void 0 : y.stop();
|
|
496
496
|
const v = Math.floor(p);
|
|
497
497
|
if (!g.find((w) => w === v)) {
|
|
498
|
-
if (g.push(v), h.push(
|
|
498
|
+
if (g.push(v), h.push(wi(l[v], A.clientWidth, A.clientHeight)), h.length < 3)
|
|
499
499
|
return;
|
|
500
500
|
const { control: w, end: P } = Tn(h);
|
|
501
501
|
if (!w || !P)
|
|
@@ -507,7 +507,7 @@ class vc extends gc {
|
|
|
507
507
|
});
|
|
508
508
|
} else {
|
|
509
509
|
for (let g = 0; g < l.length; g++) {
|
|
510
|
-
if (h.push(
|
|
510
|
+
if (h.push(wi(l[g], this.clientWidth, this.clientHeight)), h.length < 3)
|
|
511
511
|
continue;
|
|
512
512
|
const { control: A, end: p } = Tn(h);
|
|
513
513
|
!A || !p || a.quadraticCurveTo(A.x, A.y, p.x, p.y);
|
|
@@ -804,7 +804,7 @@ class Pc extends I.Mesh {
|
|
|
804
804
|
}
|
|
805
805
|
}
|
|
806
806
|
const Aa = 1, Ec = `CSS3DObjectPlus@${Aa}`, Ic = 216e-5, kc = 3e-3;
|
|
807
|
-
class xc extends
|
|
807
|
+
class xc extends Fi {
|
|
808
808
|
constructor(e) {
|
|
809
809
|
var k, C, S;
|
|
810
810
|
const n = e.container, o = e.cornerPoints, s = (k = e.ratio) != null ? k : kc, r = (C = e.dpr) != null ? C : 1, a = (S = e.pointerEvents) != null ? S : "auto", l = Math.max(Ic, s), c = o[0].distanceTo(o[1]), u = o[1].distanceTo(o[2]), f = $n(c / s * r), d = $n(u / s * r), h = io(...o);
|
|
@@ -978,7 +978,7 @@ class Mc extends va {
|
|
|
978
978
|
}), super.add(...e), this;
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
|
-
const Tc = 3,
|
|
981
|
+
const Tc = 3, Hi = "CSS3DRenderer", un = `${Hi}@${Tc}`, Vt = () => {
|
|
982
982
|
console.error(`${un} is disposed`);
|
|
983
983
|
}, Le = {
|
|
984
984
|
css3DObjects: [],
|
|
@@ -1066,7 +1066,7 @@ class wn {
|
|
|
1066
1066
|
});
|
|
1067
1067
|
m(this, "createObject", (t, e) => {
|
|
1068
1068
|
const n = new xc(Q({ cornerPoints: t }, e));
|
|
1069
|
-
return n.element.classList.add(`${
|
|
1069
|
+
return n.element.classList.add(`${Hi}__container`), n.element.id = `${Hi}__container--${n.uuid}`, n;
|
|
1070
1070
|
});
|
|
1071
1071
|
t && this.setScene(t);
|
|
1072
1072
|
}
|
|
@@ -1198,9 +1198,9 @@ class wn {
|
|
|
1198
1198
|
handleDisable() {
|
|
1199
1199
|
var t, e, n;
|
|
1200
1200
|
this.store.frontModeGroup.children.forEach((o) => {
|
|
1201
|
-
o instanceof
|
|
1201
|
+
o instanceof Fi && o.element instanceof Element && o.element.parentNode !== null && o.element.remove();
|
|
1202
1202
|
}), (t = this.store.behindModeGroup) == null || t.children.forEach((o) => {
|
|
1203
|
-
o instanceof
|
|
1203
|
+
o instanceof Fi && o.element instanceof Element && o.element.parentNode !== null && o.element.remove();
|
|
1204
1204
|
}), (e = this.getFrontCSS3DScene()) == null || e.remove(this.store.frontModeGroup), this.store.behindModeGroup && ((n = this.getBehindCSS3DScene()) == null || n.remove(this.store.behindModeGroup));
|
|
1205
1205
|
}
|
|
1206
1206
|
handleDispose() {
|
|
@@ -1230,14 +1230,14 @@ at.style.height = "100%";
|
|
|
1230
1230
|
at.style.pointerEvents = "none";
|
|
1231
1231
|
function ya(i) {
|
|
1232
1232
|
var e, n, o, s, r;
|
|
1233
|
-
const t = (r = (n =
|
|
1233
|
+
const t = (r = (n = Ci(i.getElement())) != null ? n : Ci((e = i.getElement()) == null ? void 0 : e.parentElement)) != null ? r : Ci((s = (o = i.getElement()) == null ? void 0 : o.parentElement) == null ? void 0 : s.parentElement);
|
|
1234
1234
|
if (t != null && t.parentElement)
|
|
1235
1235
|
return t.parentElement.insertBefore(at, t), at;
|
|
1236
1236
|
console.error(
|
|
1237
1237
|
"Can not find a valid element to insert behindFiveElement. How to fix it: https://github.com/realsee-developer/dnalogel/tree/main/plugins/src/CSS3DRenderPlugin/README.md"
|
|
1238
1238
|
);
|
|
1239
1239
|
}
|
|
1240
|
-
function
|
|
1240
|
+
function Ci(i) {
|
|
1241
1241
|
var a;
|
|
1242
1242
|
if (!i)
|
|
1243
1243
|
return;
|
|
@@ -1248,7 +1248,7 @@ function Pi(i) {
|
|
|
1248
1248
|
if (!(n !== "transparent" && n !== "rgba(0, 0, 0, 0)" && n !== "" || o !== "none" && o !== ""))
|
|
1249
1249
|
return i;
|
|
1250
1250
|
}
|
|
1251
|
-
const jc = "v2.0.1",
|
|
1251
|
+
const jc = "v2.0.1", Pi = `CSS3DRenderPlugin@${jc}`;
|
|
1252
1252
|
class Vc extends wn {
|
|
1253
1253
|
constructor(e) {
|
|
1254
1254
|
super();
|
|
@@ -1260,7 +1260,7 @@ class Vc extends wn {
|
|
|
1260
1260
|
return;
|
|
1261
1261
|
const o = (() => {
|
|
1262
1262
|
var f;
|
|
1263
|
-
(n == null ? void 0 : n.dpr) !== void 0 && console.warn(`${
|
|
1263
|
+
(n == null ? void 0 : n.dpr) !== void 0 && console.warn(`${Pi}: please use "config.devicePixelRatio" replace "config.dpr"`);
|
|
1264
1264
|
const u = {
|
|
1265
1265
|
ratio: 216e-5,
|
|
1266
1266
|
devicePixelRatio: (f = n == null ? void 0 : n.dpr) != null ? f : 1,
|
|
@@ -1270,7 +1270,7 @@ class Vc extends wn {
|
|
|
1270
1270
|
return Object.assign(u, n, (n == null ? void 0 : n.mode) === "behind" ? { scene: this.five.scene } : void 0);
|
|
1271
1271
|
})(), s = this.five.getElement();
|
|
1272
1272
|
if (!s) {
|
|
1273
|
-
console.error(`${
|
|
1273
|
+
console.error(`${Pi}: five.getElement() is ${s}`);
|
|
1274
1274
|
return;
|
|
1275
1275
|
}
|
|
1276
1276
|
const { autoRender: r } = o;
|
|
@@ -1281,7 +1281,7 @@ class Vc extends wn {
|
|
|
1281
1281
|
const l = () => {
|
|
1282
1282
|
const u = a.css3DObject.mode === "front" ? s.parentElement : this.getBehindFiveElement();
|
|
1283
1283
|
if (!u)
|
|
1284
|
-
return console.error(`${
|
|
1284
|
+
return console.error(`${Pi}: wrapper is ${u}`);
|
|
1285
1285
|
a.appendToElement(u), a.render();
|
|
1286
1286
|
}, c = () => {
|
|
1287
1287
|
a.css3DObject.mode === "front" && l(), a.css3DObject.mode === "behind" && ba(this.five).then(() => {
|
|
@@ -1304,7 +1304,7 @@ class Vc extends wn {
|
|
|
1304
1304
|
}
|
|
1305
1305
|
}
|
|
1306
1306
|
const kn = (i) => new Vc(i);
|
|
1307
|
-
function
|
|
1307
|
+
function Ei(i, t, e = new K(1, 1, 1), n = !1) {
|
|
1308
1308
|
const o = new ma(i, t);
|
|
1309
1309
|
return o.setMaterial({ dashed: n, color: e, linewidth: 1 }), o.remove(o.points), o;
|
|
1310
1310
|
}
|
|
@@ -1325,17 +1325,17 @@ const P1 = (i) => {
|
|
|
1325
1325
|
const o = (u, f = 2, d = 0.1) => {
|
|
1326
1326
|
const h = f / 2, A = c(u, d), p = new vn();
|
|
1327
1327
|
p.add(
|
|
1328
|
-
|
|
1328
|
+
Ei(
|
|
1329
1329
|
new K(A.x + h, A.y, A.z),
|
|
1330
1330
|
new K(A.x - h, A.y, A.z),
|
|
1331
1331
|
new K(1, 0, 0)
|
|
1332
1332
|
),
|
|
1333
|
-
|
|
1333
|
+
Ei(
|
|
1334
1334
|
new K(A.x, A.y + h, A.z),
|
|
1335
1335
|
new K(A.x, A.y - h, A.z),
|
|
1336
1336
|
new K(0, 1, 0)
|
|
1337
1337
|
),
|
|
1338
|
-
|
|
1338
|
+
Ei(
|
|
1339
1339
|
new K(A.x, A.y, A.z + h),
|
|
1340
1340
|
new K(A.x, A.y, A.z - h),
|
|
1341
1341
|
new K(0, 0, 1)
|
|
@@ -1436,7 +1436,7 @@ function en(i) {
|
|
|
1436
1436
|
function Me(i) {
|
|
1437
1437
|
return i == null ? "" : i;
|
|
1438
1438
|
}
|
|
1439
|
-
function
|
|
1439
|
+
function Ii(i) {
|
|
1440
1440
|
return i && Zt(i.destroy) ? i.destroy : X;
|
|
1441
1441
|
}
|
|
1442
1442
|
const Pa = typeof window != "undefined";
|
|
@@ -1610,7 +1610,7 @@ function Sa(i, t, e, n, o, s, r, a = 0) {
|
|
|
1610
1610
|
const A = i.style.animation || "";
|
|
1611
1611
|
return i.style.animation = `${A ? `${A}, ` : ""}${f} ${n}ms linear ${o}ms 1 both`, ni += 1, f;
|
|
1612
1612
|
}
|
|
1613
|
-
function
|
|
1613
|
+
function Gi(i, t) {
|
|
1614
1614
|
const e = (i.style.animation || "").split(", "), n = e.filter(
|
|
1615
1615
|
t ? (s) => s.indexOf(t) < 0 : (s) => s.indexOf("__svelte") === -1
|
|
1616
1616
|
), o = e.length - n.length;
|
|
@@ -1645,7 +1645,7 @@ function _c(i) {
|
|
|
1645
1645
|
function Et(i) {
|
|
1646
1646
|
Pt().$$.on_destroy.push(i);
|
|
1647
1647
|
}
|
|
1648
|
-
function
|
|
1648
|
+
function ui() {
|
|
1649
1649
|
const i = Pt();
|
|
1650
1650
|
return (t, e, { cancelable: n = !1 } = {}) => {
|
|
1651
1651
|
const o = i.$$.callbacks[t];
|
|
@@ -1658,7 +1658,7 @@ function di() {
|
|
|
1658
1658
|
return !0;
|
|
1659
1659
|
};
|
|
1660
1660
|
}
|
|
1661
|
-
function
|
|
1661
|
+
function Wi(i, t) {
|
|
1662
1662
|
return Pt().$$.context.set(i, t), t;
|
|
1663
1663
|
}
|
|
1664
1664
|
function St(i) {
|
|
@@ -1668,10 +1668,10 @@ function xn(i, t) {
|
|
|
1668
1668
|
const e = i.$$.callbacks[t.type];
|
|
1669
1669
|
e && e.slice().forEach((n) => n.call(this, t));
|
|
1670
1670
|
}
|
|
1671
|
-
const dn = [], Qe = [], Zn = [],
|
|
1672
|
-
let
|
|
1671
|
+
const dn = [], Qe = [], Zn = [], Ni = [], Ta = Promise.resolve();
|
|
1672
|
+
let _i = !1;
|
|
1673
1673
|
function za() {
|
|
1674
|
-
|
|
1674
|
+
_i || (_i = !0, Ta.then(ro));
|
|
1675
1675
|
}
|
|
1676
1676
|
function Qo() {
|
|
1677
1677
|
return za(), Ta;
|
|
@@ -1680,9 +1680,9 @@ function ke(i) {
|
|
|
1680
1680
|
Zn.push(i);
|
|
1681
1681
|
}
|
|
1682
1682
|
function Xc(i) {
|
|
1683
|
-
|
|
1683
|
+
Ni.push(i);
|
|
1684
1684
|
}
|
|
1685
|
-
const
|
|
1685
|
+
const ki = /* @__PURE__ */ new Set();
|
|
1686
1686
|
let Qn = 0;
|
|
1687
1687
|
function ro() {
|
|
1688
1688
|
const i = Cn;
|
|
@@ -1695,13 +1695,13 @@ function ro() {
|
|
|
1695
1695
|
Qe.pop()();
|
|
1696
1696
|
for (let t = 0; t < Zn.length; t += 1) {
|
|
1697
1697
|
const e = Zn[t];
|
|
1698
|
-
|
|
1698
|
+
ki.has(e) || (ki.add(e), e());
|
|
1699
1699
|
}
|
|
1700
1700
|
Zn.length = 0;
|
|
1701
1701
|
} while (dn.length);
|
|
1702
|
-
for (;
|
|
1703
|
-
|
|
1704
|
-
|
|
1702
|
+
for (; Ni.length; )
|
|
1703
|
+
Ni.pop()();
|
|
1704
|
+
_i = !1, ki.clear(), rt(i);
|
|
1705
1705
|
}
|
|
1706
1706
|
function Yc(i) {
|
|
1707
1707
|
if (i.fragment !== null) {
|
|
@@ -1748,7 +1748,7 @@ const ja = { duration: 0 };
|
|
|
1748
1748
|
function zt(i, t, e) {
|
|
1749
1749
|
let n = t(i, e), o = !1, s, r, a = 0;
|
|
1750
1750
|
function l() {
|
|
1751
|
-
s &&
|
|
1751
|
+
s && Gi(i, s);
|
|
1752
1752
|
}
|
|
1753
1753
|
function c() {
|
|
1754
1754
|
const { delay: f = 0, duration: d = 300, easing: h = vt, tick: g = X, css: A } = n || ja;
|
|
@@ -1769,7 +1769,7 @@ function zt(i, t, e) {
|
|
|
1769
1769
|
let u = !1;
|
|
1770
1770
|
return {
|
|
1771
1771
|
start() {
|
|
1772
|
-
u || (u = !0,
|
|
1772
|
+
u || (u = !0, Gi(i), Zt(n) ? (n = n(), Ba().then(c)) : c());
|
|
1773
1773
|
},
|
|
1774
1774
|
invalidate() {
|
|
1775
1775
|
u = !1;
|
|
@@ -1803,7 +1803,7 @@ function tn(i, t, e) {
|
|
|
1803
1803
|
n = n(), a();
|
|
1804
1804
|
}) : a(), {
|
|
1805
1805
|
end(l) {
|
|
1806
|
-
l && n.tick && n.tick(1, 0), o && (s &&
|
|
1806
|
+
l && n.tick && n.tick(1, 0), o && (s && Gi(i, s), o = !1);
|
|
1807
1807
|
}
|
|
1808
1808
|
};
|
|
1809
1809
|
}
|
|
@@ -2240,7 +2240,7 @@ function oi(i) {
|
|
|
2240
2240
|
function si(i) {
|
|
2241
2241
|
return Object.prototype.toString.call(i) === "[object Object]";
|
|
2242
2242
|
}
|
|
2243
|
-
function
|
|
2243
|
+
function di(i, t) {
|
|
2244
2244
|
return i === t ? !0 : typeof i != typeof t ? !1 : !!(Number.isNaN(i) && Number.isNaN(t));
|
|
2245
2245
|
}
|
|
2246
2246
|
function uu(i, t) {
|
|
@@ -2249,7 +2249,7 @@ function uu(i, t) {
|
|
|
2249
2249
|
return !1;
|
|
2250
2250
|
for (let o = 0, s = e.length; o < s; o++) {
|
|
2251
2251
|
const r = e[o];
|
|
2252
|
-
if (!
|
|
2252
|
+
if (!di(i[r], t[r]))
|
|
2253
2253
|
return !1;
|
|
2254
2254
|
}
|
|
2255
2255
|
return !0;
|
|
@@ -2258,15 +2258,15 @@ function du(i, t) {
|
|
|
2258
2258
|
if (i.length !== t.length)
|
|
2259
2259
|
return !1;
|
|
2260
2260
|
for (let e = 0, n = i.length; e < n; e++)
|
|
2261
|
-
if (!
|
|
2261
|
+
if (!di(i[e], t[e]))
|
|
2262
2262
|
return !1;
|
|
2263
2263
|
return !0;
|
|
2264
2264
|
}
|
|
2265
2265
|
function fu(i, t) {
|
|
2266
|
-
return
|
|
2266
|
+
return di(i, t) ? !0 : si(i) && si(t) ? uu(i, t) : Array.isArray(i) && Array.isArray(t) ? du(i, t) : !1;
|
|
2267
2267
|
}
|
|
2268
2268
|
function lo(i, t) {
|
|
2269
|
-
return
|
|
2269
|
+
return di(i, t) ? !0 : si(i) && si(t) ? mu(i, t) : Array.isArray(i) && Array.isArray(t) ? hu(i, t) : !1;
|
|
2270
2270
|
}
|
|
2271
2271
|
function hu(i, t) {
|
|
2272
2272
|
if (i.length !== t.length)
|
|
@@ -3263,7 +3263,7 @@ class id extends oe {
|
|
|
3263
3263
|
);
|
|
3264
3264
|
}
|
|
3265
3265
|
}
|
|
3266
|
-
function
|
|
3266
|
+
function fi(i, t = {}) {
|
|
3267
3267
|
let e = "";
|
|
3268
3268
|
const { needZ: n, needA: o } = t;
|
|
3269
3269
|
return (n ? i.slice().concat(i[0]) : i.slice()).forEach((r, a) => {
|
|
@@ -3315,7 +3315,7 @@ function ld(i, t, e) {
|
|
|
3315
3315
|
return i.$$set = (s) => {
|
|
3316
3316
|
"path" in s && e(1, o = s.path);
|
|
3317
3317
|
}, i.$$.update = () => {
|
|
3318
|
-
i.$$.dirty & 2 && e(0, n =
|
|
3318
|
+
i.$$.dirty & 2 && e(0, n = fi(o, { needZ: !0 }));
|
|
3319
3319
|
}, [n, o];
|
|
3320
3320
|
}
|
|
3321
3321
|
class cd extends oe {
|
|
@@ -3342,14 +3342,14 @@ function ud(i) {
|
|
|
3342
3342
|
}
|
|
3343
3343
|
};
|
|
3344
3344
|
}
|
|
3345
|
-
const
|
|
3345
|
+
const xi = 6;
|
|
3346
3346
|
function dd(i, t, e) {
|
|
3347
3347
|
let n, { path: o } = t;
|
|
3348
|
-
const s =
|
|
3348
|
+
const s = xi * 2, r = `M0 ${xi} h ${s} M${xi} 0 v ${s}`;
|
|
3349
3349
|
return i.$$set = (a) => {
|
|
3350
3350
|
"path" in a && e(3, o = a.path);
|
|
3351
3351
|
}, i.$$.update = () => {
|
|
3352
|
-
i.$$.dirty & 8 && e(0, n =
|
|
3352
|
+
i.$$.dirty & 8 && e(0, n = fi(o, { needZ: !0 }));
|
|
3353
3353
|
}, [n, s, r, o];
|
|
3354
3354
|
}
|
|
3355
3355
|
class fd extends oe {
|
|
@@ -3381,7 +3381,7 @@ function md(i, t, e) {
|
|
|
3381
3381
|
return i.$$set = (s) => {
|
|
3382
3382
|
"path" in s && e(1, o = s.path);
|
|
3383
3383
|
}, i.$$.update = () => {
|
|
3384
|
-
i.$$.dirty & 2 && e(0, n =
|
|
3384
|
+
i.$$.dirty & 2 && e(0, n = fi(o, { needZ: !0 }));
|
|
3385
3385
|
}, [n, o];
|
|
3386
3386
|
}
|
|
3387
3387
|
class pd extends oe {
|
|
@@ -3596,7 +3596,7 @@ function Id(i, t, e) {
|
|
|
3596
3596
|
function a() {
|
|
3597
3597
|
s.set(void 0);
|
|
3598
3598
|
}
|
|
3599
|
-
const { bounding: l } = o, c =
|
|
3599
|
+
const { bounding: l } = o, c = fi(n.path, {
|
|
3600
3600
|
needZ: !0,
|
|
3601
3601
|
format: (u) => Fa(u, l)
|
|
3602
3602
|
});
|
|
@@ -4330,7 +4330,7 @@ function Wd(i, t, e) {
|
|
|
4330
4330
|
function Nd(i, t) {
|
|
4331
4331
|
return t(i), i;
|
|
4332
4332
|
}
|
|
4333
|
-
function
|
|
4333
|
+
function hi(i, t) {
|
|
4334
4334
|
return Nd({}, (e) => {
|
|
4335
4335
|
for (const n in i)
|
|
4336
4336
|
t.indexOf(n) === -1 && (e[n] = i[n]);
|
|
@@ -4350,7 +4350,7 @@ function ho(i, t, e, n) {
|
|
|
4350
4350
|
const o = fo(i, e, n == null ? void 0 : n.attachedTo), s = new I.Vector3(0, o, 0), r = new I.Vector3(1, o, 0), a = s.clone().project(i.camera), l = r.clone().project(i.camera);
|
|
4351
4351
|
return Math.abs((l.x - a.x) / 1e3) * (t.getBoundingClientRect().width / 2);
|
|
4352
4352
|
}
|
|
4353
|
-
class
|
|
4353
|
+
class mi {
|
|
4354
4354
|
constructor(t, e) {
|
|
4355
4355
|
m(this, "five");
|
|
4356
4356
|
m(this, "hooks", new Jt());
|
|
@@ -4361,11 +4361,11 @@ class pi {
|
|
|
4361
4361
|
return this.state;
|
|
4362
4362
|
}
|
|
4363
4363
|
}
|
|
4364
|
-
class Bt extends
|
|
4364
|
+
class Bt extends mi {
|
|
4365
4365
|
}
|
|
4366
4366
|
var We = /* @__PURE__ */ ((i) => (i.UnknownError = "UnknownError", i.DataNotLoaded = "DataNotLoaded", i.BreakOffByHide = "BreakOffByHide", i.BreakOffByDisable = "BreakOffByDisable", i.ModelNotLoaded = "ModelNotLoaded", i.ChangeModeError = "ChangeModeError", i.UpdateCameraError = "UpdateCameraError", i))(We || {});
|
|
4367
4367
|
const Ga = 500, _d = 80;
|
|
4368
|
-
function
|
|
4368
|
+
function Xi(i, t, e = 4) {
|
|
4369
4369
|
return Math.floor(i * Math.pow(10, e)) === Math.floor(t * Math.pow(10, e));
|
|
4370
4370
|
}
|
|
4371
4371
|
function Wa(i, t) {
|
|
@@ -4380,7 +4380,7 @@ function Wa(i, t) {
|
|
|
4380
4380
|
if (u === void 0)
|
|
4381
4381
|
return !0;
|
|
4382
4382
|
const f = l[c];
|
|
4383
|
-
return typeof u == "number" && typeof f == "number" ?
|
|
4383
|
+
return typeof u == "number" && typeof f == "number" ? Xi(u, f, 2) : u === f;
|
|
4384
4384
|
}) : !0;
|
|
4385
4385
|
})() || n(new Error("five pose \u4E0E\u9884\u671F\u4E0D\u7B26")), e();
|
|
4386
4386
|
});
|
|
@@ -4391,7 +4391,7 @@ function mo(i, t) {
|
|
|
4391
4391
|
if (i.currentMode !== t.mode)
|
|
4392
4392
|
return !1;
|
|
4393
4393
|
const { latitude: e, longitude: n, fov: o } = t, { latitude: s, longitude: r } = i.getCurrentState(), a = i.camera.fov;
|
|
4394
|
-
return !(!
|
|
4394
|
+
return !(!Xi(e, s, 2) || !Xi(n, r, 2) || o !== a);
|
|
4395
4395
|
}
|
|
4396
4396
|
function Na(i, t, e = !0) {
|
|
4397
4397
|
return F(this, null, function* () {
|
|
@@ -4610,7 +4610,7 @@ class Ud extends Bt {
|
|
|
4610
4610
|
getLabelElement: void 0,
|
|
4611
4611
|
getRoomAreaText: (l) => (l / 1e6).toFixed(1) + "\u33A1",
|
|
4612
4612
|
getRuleDistanceText: (l) => l.toString()
|
|
4613
|
-
}, s = n ?
|
|
4613
|
+
}, s = n ? hi(n, ["selector", "scale"]) : {}, r = Q(Q({}, o), s);
|
|
4614
4614
|
this.state = {
|
|
4615
4615
|
enabled: !0,
|
|
4616
4616
|
visible: !1,
|
|
@@ -4882,7 +4882,7 @@ class qd extends Bt {
|
|
|
4882
4882
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
4883
4883
|
getRoomAreaText: (a) => (a / 1e6).toFixed(1) + "\u33A1",
|
|
4884
4884
|
getRuleDistanceText: (a) => a.toString()
|
|
4885
|
-
}, s = n ?
|
|
4885
|
+
}, s = n ? hi(n, ["selector", "scale"]) : {}, r = Q(Q({}, o), s);
|
|
4886
4886
|
this.state = {
|
|
4887
4887
|
enabled: !0,
|
|
4888
4888
|
visible: !1,
|
|
@@ -5069,7 +5069,7 @@ class Kd extends Bt {
|
|
|
5069
5069
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
5070
5070
|
getRoomAreaText: (a) => (a / 1e6).toFixed(1) + "\u33A1",
|
|
5071
5071
|
getRuleDistanceText: (a) => a.toString()
|
|
5072
|
-
}, s = n ?
|
|
5072
|
+
}, s = n ? hi(n, ["selector", "scale"]) : {}, r = Q(Q({}, o), s);
|
|
5073
5073
|
this.state = {
|
|
5074
5074
|
enabled: !0,
|
|
5075
5075
|
visible: !1,
|
|
@@ -5888,7 +5888,7 @@ const L1 = (i, t) => new gf(i, t), S1 = [
|
|
|
5888
5888
|
{ roomType: "100900000013", description: "\u8863" },
|
|
5889
5889
|
{ roomType: "100900000015", description: "\u5546\u94FA" },
|
|
5890
5890
|
{ roomType: "100900000016", description: "\u5199\u5B57\u697C" }
|
|
5891
|
-
],
|
|
5891
|
+
], Di = (i, t, e) => {
|
|
5892
5892
|
const n = new I.Matrix4(), o = new I.Euler(i, t, e, "YXZ");
|
|
5893
5893
|
return n.makeRotationFromEuler(o), n;
|
|
5894
5894
|
}, Af = (i, {
|
|
@@ -5898,7 +5898,7 @@ const L1 = (i, t) => new gf(i, t), S1 = [
|
|
|
5898
5898
|
}) => {
|
|
5899
5899
|
if (t && i.scale.set(t, t, t), e) {
|
|
5900
5900
|
const [o, s, r] = e;
|
|
5901
|
-
o && i.applyMatrix4(
|
|
5901
|
+
o && i.applyMatrix4(Di(o, 0, 0)), s && i.applyMatrix4(Di(0, s, 0)), r && i.applyMatrix4(Di(0, 0, r));
|
|
5902
5902
|
}
|
|
5903
5903
|
return n && i.position.set(n.x, n.y, n.z), i;
|
|
5904
5904
|
};
|
|
@@ -6026,7 +6026,7 @@ class go extends An.Tween {
|
|
|
6026
6026
|
m(this, "disposeMethods", []);
|
|
6027
6027
|
m(this, "animationFrameDisposer");
|
|
6028
6028
|
m(this, "onDispose", (e) => (this.disposeMethods.push(e), this));
|
|
6029
|
-
m(this, "play", () => (this.start(0), this.animationFrameDisposer =
|
|
6029
|
+
m(this, "play", () => (this.start(0), this.animationFrameDisposer = gi((e) => this.update(e)), this));
|
|
6030
6030
|
m(this, "dispose", () => {
|
|
6031
6031
|
var e;
|
|
6032
6032
|
this.stop(), (e = this.animationFrameDisposer) == null || e.call(this), this.disposeMethods.forEach((n) => n()), this.disposeMethods = [], An.remove(this);
|
|
@@ -6038,10 +6038,10 @@ function Xa(i, t = An.Easing.Linear.None) {
|
|
|
6038
6038
|
return i !== void 0 && e.duration(i), t !== void 0 && e.easing(t), e;
|
|
6039
6039
|
}
|
|
6040
6040
|
const Pn = window.requestAnimationFrame || ((i) => setTimeout(i, 16)), yf = window.cancelAnimationFrame || clearTimeout;
|
|
6041
|
-
function
|
|
6042
|
-
t <= 0 ? Pn(i) : Pn(() =>
|
|
6041
|
+
function pi(i, t = 0) {
|
|
6042
|
+
t <= 0 ? Pn(i) : Pn(() => pi(i, t - 1));
|
|
6043
6043
|
}
|
|
6044
|
-
function
|
|
6044
|
+
function gi(i, t = 60) {
|
|
6045
6045
|
let e = -1, n = 0, o = -1;
|
|
6046
6046
|
const s = 1e3 / t;
|
|
6047
6047
|
function r(a) {
|
|
@@ -6059,11 +6059,11 @@ function wf() {
|
|
|
6059
6059
|
});
|
|
6060
6060
|
});
|
|
6061
6061
|
}
|
|
6062
|
-
const Cf =
|
|
6062
|
+
const Cf = ci.Easing;
|
|
6063
6063
|
function Pf(i, t, e, n = Cf.Linear.None) {
|
|
6064
|
-
const o = new
|
|
6065
|
-
|
|
6066
|
-
const s =
|
|
6064
|
+
const o = new ci.Tween(i).to(t, e).easing(n);
|
|
6065
|
+
pi(() => o.start(0));
|
|
6066
|
+
const s = gi((a) => {
|
|
6067
6067
|
o.update(a) === !1 && s();
|
|
6068
6068
|
}), r = [];
|
|
6069
6069
|
return o.onDestroy = (a) => (r.push(a), o), o.destroy = function() {
|
|
@@ -6090,12 +6090,12 @@ function vs(i) {
|
|
|
6090
6090
|
function bs(i) {
|
|
6091
6091
|
return i % Kn;
|
|
6092
6092
|
}
|
|
6093
|
-
function
|
|
6093
|
+
function Li(i, t, e) {
|
|
6094
6094
|
return i + (t - i) * e;
|
|
6095
6095
|
}
|
|
6096
|
-
const
|
|
6096
|
+
const Yi = (i, t, e) => {
|
|
6097
6097
|
const n = Math.PI, o = n * 2;
|
|
6098
|
-
return i = vs(i), t = vs(t), e === st.Anticlockwise && i < t && (i += o), e === st.Clockwise && t < i && (t += o), e === st.Loop && t - i > n ?
|
|
6098
|
+
return i = vs(i), t = vs(t), e === st.Anticlockwise && i < t && (i += o), e === st.Clockwise && t < i && (t += o), e === st.Loop && t - i > n ? Yi(i, t, st.Anticlockwise) : e === st.Loop && i - t > n ? Yi(i, t, st.Clockwise) : { from: i, to: t };
|
|
6099
6099
|
}, j1 = (i) => {
|
|
6100
6100
|
const t = {}, e = (l, c, ...u) => F(void 0, [l, c, ...u], function* (s, r, a = { preload: !0 }) {
|
|
6101
6101
|
return t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), s.mode && s.mode !== i.currentMode && (yield i.changeMode(s.mode)), a.preload && s.panoIndex !== void 0 && s.panoIndex !== i.panoIndex && (yield i.preloadPano(s.panoIndex)), a.asyncEndCallback && (yield a.asyncEndCallback()), s.panoIndex === void 0 && s.fov === void 0 && s.latitude === void 0 && s.longitude === void 0 ? !0 : yield new Promise((f, d) => {
|
|
@@ -6113,7 +6113,7 @@ const Ui = (i, t, e) => {
|
|
|
6113
6113
|
) : d(!1);
|
|
6114
6114
|
});
|
|
6115
6115
|
}), n = (s) => {
|
|
6116
|
-
const r = i.state, a = bs(r.latitude), l = bs(s.latitude), { from: c, to: u } =
|
|
6116
|
+
const r = i.state, a = bs(r.latitude), l = bs(s.latitude), { from: c, to: u } = Yi(
|
|
6117
6117
|
r.longitude,
|
|
6118
6118
|
s.longitude,
|
|
6119
6119
|
s.rotation || st.Loop
|
|
@@ -6140,12 +6140,12 @@ const Ui = (i, t, e) => {
|
|
|
6140
6140
|
return yield new Promise((h) => {
|
|
6141
6141
|
const g = ({ progress: w }) => {
|
|
6142
6142
|
const P = {};
|
|
6143
|
-
P.longitude =
|
|
6143
|
+
P.longitude = Li(f.longitude, d.longitude, w), P.latitude = Li(f.latitude, d.latitude, w), P.fov = Li(f.fov, d.fov, w), i.setState(P, !0);
|
|
6144
6144
|
}, A = () => {
|
|
6145
6145
|
h(!0);
|
|
6146
6146
|
}, p = () => {
|
|
6147
6147
|
h(!1);
|
|
6148
|
-
}, v = s.rotateSpeed ? Math.ceil(Math.abs(d.longitude - f.longitude) / s.rotateSpeed * 1e3) : r, y = Ef(v,
|
|
6148
|
+
}, v = s.rotateSpeed ? Math.ceil(Math.abs(d.longitude - f.longitude) / s.rotateSpeed * 1e3) : r, y = Ef(v, ci.Easing.Linear.None).onUpdate(g).onComplete(A).onDestroy(p);
|
|
6149
6149
|
s.rotation === st.Loop && y.repeat(1 / 0).yoyo(!0), t.interruptCallback = (w = !0) => {
|
|
6150
6150
|
y.destroy(), t.interruptCallback = void 0, t.timeoutId && (clearTimeout(t.timeoutId), t.timeoutId = void 0), h(w);
|
|
6151
6151
|
}, t.timeoutId = setTimeout(() => {
|
|
@@ -6785,7 +6785,7 @@ function Qf(i, t, e) {
|
|
|
6785
6785
|
};
|
|
6786
6786
|
});
|
|
6787
6787
|
e(0, r = N);
|
|
6788
|
-
}, h = () =>
|
|
6788
|
+
}, h = () => pi(d), g = po(d, 80);
|
|
6789
6789
|
return Je(() => {
|
|
6790
6790
|
d(), n.on("panoArrived", d), n.on("modeChange", d), n.on("cameraDirectionUpdate", h), n.on("movingToPano", h), n.on("mouseWheel", () => g()), n.on("pinchGesture", () => g());
|
|
6791
6791
|
}), Et(() => {
|
|
@@ -7573,7 +7573,7 @@ class vo {
|
|
|
7573
7573
|
}
|
|
7574
7574
|
}
|
|
7575
7575
|
const Gn = (i) => i.preventDefault();
|
|
7576
|
-
class
|
|
7576
|
+
class Ai {
|
|
7577
7577
|
constructor(t) {
|
|
7578
7578
|
m(this, "model");
|
|
7579
7579
|
m(this, "five");
|
|
@@ -7617,15 +7617,15 @@ class vi {
|
|
|
7617
7617
|
t && (t.removeEventListener("touchstart", Gn), t.removeEventListener("contextmenu", Gn));
|
|
7618
7618
|
}
|
|
7619
7619
|
}
|
|
7620
|
-
function
|
|
7620
|
+
function Ui(i) {
|
|
7621
7621
|
const { x: t, y: e } = i.center, { clientWidth: n, clientHeight: o } = i.target, s = i.target.getBoundingClientRect(), r = new Ne(t, e).sub(new Ne(s.left, s.top)), a = new Ne(r.x / n * 2 - 1, -(r.y / o) * 2 + 1);
|
|
7622
7622
|
return { point: r, ndcPoint: a };
|
|
7623
7623
|
}
|
|
7624
|
-
function
|
|
7625
|
-
const e =
|
|
7624
|
+
function Si(i, t) {
|
|
7625
|
+
const e = Ui(t).ndcPoint, n = new Tt();
|
|
7626
7626
|
return n.setFromCamera(e, i.camera), i.model.intersectRaycaster(n);
|
|
7627
7627
|
}
|
|
7628
|
-
class Wn extends
|
|
7628
|
+
class Wn extends Ai {
|
|
7629
7629
|
constructor(e) {
|
|
7630
7630
|
var o;
|
|
7631
7631
|
super(e);
|
|
@@ -7660,7 +7660,7 @@ class Wn extends vi {
|
|
|
7660
7660
|
this.hook.emit("editedPolylineChange", this.polyline);
|
|
7661
7661
|
});
|
|
7662
7662
|
m(this, "onPress", (e) => {
|
|
7663
|
-
const [n] =
|
|
7663
|
+
const [n] = Si(this.five, e);
|
|
7664
7664
|
if (!(n != null && n.face))
|
|
7665
7665
|
return;
|
|
7666
7666
|
const o = new tt(n.point);
|
|
@@ -7669,7 +7669,7 @@ class Wn extends vi {
|
|
|
7669
7669
|
m(this, "onPan", (e) => {
|
|
7670
7670
|
if (!this.pressPoint)
|
|
7671
7671
|
return;
|
|
7672
|
-
const [n] =
|
|
7672
|
+
const [n] = Si(this.five, e);
|
|
7673
7673
|
!(n != null && n.face) || this.onIntersectionUpdate(n);
|
|
7674
7674
|
});
|
|
7675
7675
|
m(this, "onPanEnd", (e) => {
|
|
@@ -7677,7 +7677,7 @@ class Wn extends vi {
|
|
|
7677
7677
|
});
|
|
7678
7678
|
m(this, "onTap", (e) => {
|
|
7679
7679
|
this.hasAppendDashed || (this.dashed.distanceItem.appendTo(this.container), this.group.add(this.dashed.mesh)), this.hasAppendDashed = !0;
|
|
7680
|
-
const [n] =
|
|
7680
|
+
const [n] = Si(this.five, e);
|
|
7681
7681
|
this.updateMouseGroup(n);
|
|
7682
7682
|
const o = new tt(this.mouseGroup.position), s = this.lastPoint;
|
|
7683
7683
|
if (o && (this.lastPoint = o), o && s) {
|
|
@@ -7712,7 +7712,7 @@ class Wn extends vi {
|
|
|
7712
7712
|
return this.polyline.lines;
|
|
7713
7713
|
}
|
|
7714
7714
|
}
|
|
7715
|
-
class xs extends
|
|
7715
|
+
class xs extends Ai {
|
|
7716
7716
|
constructor(e) {
|
|
7717
7717
|
super(e);
|
|
7718
7718
|
m(this, "type", "view");
|
|
@@ -7853,7 +7853,7 @@ function fh(i, t, e, n) {
|
|
|
7853
7853
|
}).sort((a, l) => a.distance - l.distance);
|
|
7854
7854
|
return typeof n == "number" && r[0].distance > n ? null : r[0];
|
|
7855
7855
|
}
|
|
7856
|
-
function
|
|
7856
|
+
function Ji(i) {
|
|
7857
7857
|
const t = (s, r, a) => {
|
|
7858
7858
|
const l = s.lines.find((u) => u.points.findIndex(({ id: d }) => d === s.id) !== r);
|
|
7859
7859
|
if (!l)
|
|
@@ -7863,7 +7863,7 @@ function Zi(i) {
|
|
|
7863
7863
|
}, e = t(i.points[0], 1, []), n = t(i.points[0], 0, []);
|
|
7864
7864
|
return e.concat(n);
|
|
7865
7865
|
}
|
|
7866
|
-
class Ls extends
|
|
7866
|
+
class Ls extends Ai {
|
|
7867
7867
|
constructor(e) {
|
|
7868
7868
|
super(e);
|
|
7869
7869
|
m(this, "type", "watch");
|
|
@@ -7876,14 +7876,14 @@ class Ls extends vi {
|
|
|
7876
7876
|
var a;
|
|
7877
7877
|
if (this.model.getAllLines().length === 0 || !this.fiveElement)
|
|
7878
7878
|
return;
|
|
7879
|
-
const n =
|
|
7879
|
+
const n = Ui(e).point, o = (a = fh(this.five, this.model.getAllPoints(), n, 20)) == null ? void 0 : a.point;
|
|
7880
7880
|
if (!o) {
|
|
7881
7881
|
this.editPointState = void 0;
|
|
7882
7882
|
return;
|
|
7883
7883
|
}
|
|
7884
7884
|
const s = {
|
|
7885
7885
|
point: o,
|
|
7886
|
-
associatedLines:
|
|
7886
|
+
associatedLines: Ji(o.lines[0])
|
|
7887
7887
|
};
|
|
7888
7888
|
this.hook.emit("wantsDragLine", {
|
|
7889
7889
|
point: o.id,
|
|
@@ -7896,7 +7896,7 @@ class Ls extends vi {
|
|
|
7896
7896
|
m(this, "onPan", (e) => {
|
|
7897
7897
|
if (!this.editPointState || !this.fiveElement)
|
|
7898
7898
|
return;
|
|
7899
|
-
const n =
|
|
7899
|
+
const n = Ui(e).ndcPoint, o = new Tt();
|
|
7900
7900
|
o.setFromCamera(n, this.five.camera);
|
|
7901
7901
|
const [s] = this.five.model.intersectRaycaster(o);
|
|
7902
7902
|
!s || this.onIntersectionUpdate(s);
|
|
@@ -7945,7 +7945,7 @@ class Ls extends vi {
|
|
|
7945
7945
|
return this.chooseLine(d), !1;
|
|
7946
7946
|
});
|
|
7947
7947
|
m(this, "chooseLine", (e) => {
|
|
7948
|
-
const n =
|
|
7948
|
+
const n = Ji(e);
|
|
7949
7949
|
this.highlightLines(n), this.five.needsRender = !0, this.hook.emit(
|
|
7950
7950
|
"selectedChange",
|
|
7951
7951
|
n.map((o) => o)
|
|
@@ -8194,7 +8194,7 @@ class Ch {
|
|
|
8194
8194
|
}).onComplete(() => {
|
|
8195
8195
|
o();
|
|
8196
8196
|
});
|
|
8197
|
-
o =
|
|
8197
|
+
o = gi((r) => {
|
|
8198
8198
|
s.update(r);
|
|
8199
8199
|
});
|
|
8200
8200
|
}
|
|
@@ -8218,7 +8218,7 @@ class Ch {
|
|
|
8218
8218
|
return this.mouseGroup;
|
|
8219
8219
|
}
|
|
8220
8220
|
}
|
|
8221
|
-
class rn extends
|
|
8221
|
+
class rn extends Ai {
|
|
8222
8222
|
constructor(e) {
|
|
8223
8223
|
super(e);
|
|
8224
8224
|
m(this, "state", "watching");
|
|
@@ -8290,7 +8290,7 @@ class rn extends vi {
|
|
|
8290
8290
|
this.state = n, this.state === "watching" ? this.five.helperVisible = !0 : this.five.helperVisible = !1;
|
|
8291
8291
|
});
|
|
8292
8292
|
m(this, "chooseLine", (e) => {
|
|
8293
|
-
const n =
|
|
8293
|
+
const n = Ji(e);
|
|
8294
8294
|
this.highlightLines(n), this.five.needsRender = !0, this.hook.emit(
|
|
8295
8295
|
"selectedChange",
|
|
8296
8296
|
n.map((o) => o)
|
|
@@ -8870,7 +8870,7 @@ class Rh {
|
|
|
8870
8870
|
this.controller = new e[t](n), this.hook.emit("modeChange", t);
|
|
8871
8871
|
});
|
|
8872
8872
|
var o, s, r, a;
|
|
8873
|
-
this.five = t, this.params = e, this.config =
|
|
8873
|
+
this.five = t, this.params = e, this.config = hi(e, ["openParams", "magnifierParams"]), this.model = new vo(this.config), this.fiveHelper = new Xf(t), this.isMobile = (s = (o = e == null ? void 0 : e.openParams) == null ? void 0 : o.isMobile) != null ? s : !1, this.magnifier = new _f(t, (r = e.magnifierParams) != null ? r : { width: 190, height: 190, scale: 2 }), this.group = new vn(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
|
|
8874
8874
|
const n = (a = this.params.openParams) != null ? a : {};
|
|
8875
8875
|
if (this.params.useUIController !== !1) {
|
|
8876
8876
|
const l = Q({
|
|
@@ -9326,7 +9326,7 @@ class Kh {
|
|
|
9326
9326
|
}
|
|
9327
9327
|
}
|
|
9328
9328
|
}
|
|
9329
|
-
const
|
|
9329
|
+
const Mi = 1e-3, Os = 0.01, $h = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png", F1 = (i, t) => {
|
|
9330
9330
|
var W, ae, fe, ue, me, Ce, De, Te;
|
|
9331
9331
|
let e = t == null ? void 0 : t.container, n = 1.4;
|
|
9332
9332
|
const o = (W = t == null ? void 0 : t.wait) != null ? W : 200, s = (ae = t == null ? void 0 : t.maxNumberOnScreen) != null ? ae : 3, r = (fe = t == null ? void 0 : t.minRad) != null ? fe : Math.PI / 4, a = (ue = t == null ? void 0 : t.nearTolerance) != null ? ue : 100, l = (me = t == null ? void 0 : t.upsideHeight) != null ? me : 1.6, c = (Ce = t == null ? void 0 : t.minDistance) != null ? Ce : 1.2, u = (De = t == null ? void 0 : t.maxDistance) != null ? De : 3.5, f = kn(i), d = document.createElement("div");
|
|
@@ -9476,11 +9476,11 @@ const Ti = 1e-3, Os = 0.01, $h = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9476
9476
|
Ke.distance + Os
|
|
9477
9477
|
), [kt] = A.intersectObjects ? jt.intersectObjects(A.intersectObjects, !0) : i.model.bvhs.loaded ? i.model.intersectRaycaster(jt) : jt.intersectObjects(i.model.children, !0);
|
|
9478
9478
|
if (!!kt && Ke.distance - kt.distance < Os) {
|
|
9479
|
-
const { position: xe, normal: ze, id: xt, replacement: Ln } = Ke, jl = new I.Plane().setFromNormalAndCoplanarPoint(ze, xe), xo = xe.clone().sub(de.position).cross(new I.Vector3(0, 1, 0)).setLength(
|
|
9479
|
+
const { position: xe, normal: ze, id: xt, replacement: Ln } = Ke, jl = new I.Plane().setFromNormalAndCoplanarPoint(ze, xe), xo = xe.clone().sub(de.position).cross(new I.Vector3(0, 1, 0)).setLength(Mi), Vl = [
|
|
9480
9480
|
xe.clone(),
|
|
9481
9481
|
xe.clone().add(xo),
|
|
9482
|
-
xe.clone().add(new I.Vector3(0,
|
|
9483
|
-
xe.clone().add(new I.Vector3(0,
|
|
9482
|
+
xe.clone().add(new I.Vector3(0, Mi, 0)).add(xo),
|
|
9483
|
+
xe.clone().add(new I.Vector3(0, Mi, 0))
|
|
9484
9484
|
].map((Fl) => jl.projectPoint(Fl, new I.Vector3())), { container: Ql, dispose: Ol } = f.create3DDomContainer(Vl) || {}, Rl = new Yh({
|
|
9485
9485
|
target: Ql,
|
|
9486
9486
|
props: {
|
|
@@ -10522,7 +10522,7 @@ const km = void 0, _1 = (i, t) => {
|
|
|
10522
10522
|
name: "ItemLabelPlugin",
|
|
10523
10523
|
version: 0
|
|
10524
10524
|
};
|
|
10525
|
-
class xm extends
|
|
10525
|
+
class xm extends mi {
|
|
10526
10526
|
constructor(e) {
|
|
10527
10527
|
super(e);
|
|
10528
10528
|
m(this, "state");
|
|
@@ -10909,7 +10909,7 @@ function Nm(i) {
|
|
|
10909
10909
|
function wt(i) {
|
|
10910
10910
|
return i != null;
|
|
10911
10911
|
}
|
|
10912
|
-
const ll = "v1.1.0", cl = "GuideLinePlugin",
|
|
10912
|
+
const ll = "v1.1.0", cl = "GuideLinePlugin", Zi = `${cl}@${ll}`, Js = (i) => `${Zi}--${i}`;
|
|
10913
10913
|
class ul extends Bt {
|
|
10914
10914
|
constructor(e, n) {
|
|
10915
10915
|
super(e, n);
|
|
@@ -10921,7 +10921,7 @@ class ul extends Bt {
|
|
|
10921
10921
|
m(this, "data");
|
|
10922
10922
|
m(this, "linesGroup");
|
|
10923
10923
|
m(this, "disposedErrorLog", () => {
|
|
10924
|
-
console.error(`${
|
|
10924
|
+
console.error(`${Zi} is disposed`);
|
|
10925
10925
|
});
|
|
10926
10926
|
m(this, "actionWhenEnabled", (e) => {
|
|
10927
10927
|
if (this.state.enabled)
|
|
@@ -10934,7 +10934,7 @@ class ul extends Bt {
|
|
|
10934
10934
|
const s = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, r = yield this.formatData(e);
|
|
10935
10935
|
this.hooks.emit("dataChange", r, s), this.data = r, this.linesGroup && this.five.scene.remove(this.linesGroup);
|
|
10936
10936
|
const a = this.getLinesGroup(r.routes, r.config);
|
|
10937
|
-
!a || (this.linesGroup = a, yield this.waitFiveModelLoaded(), this.five.scene.add(a), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), n && this.setState(n), this.five.needsRender = !0, this.hooks.emit("dataLoaded", r), console.info(`${
|
|
10937
|
+
!a || (this.linesGroup = a, yield this.waitFiveModelLoaded(), this.five.scene.add(a), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), n && this.setState(n), this.five.needsRender = !0, this.hooks.emit("dataLoaded", r), console.info(`${Zi} loaded`, r));
|
|
10938
10938
|
});
|
|
10939
10939
|
}
|
|
10940
10940
|
formatData(e) {
|
|
@@ -11059,13 +11059,13 @@ function qm(i) {
|
|
|
11059
11059
|
}, i);
|
|
11060
11060
|
});
|
|
11061
11061
|
}
|
|
11062
|
-
const dl = "v1.0.6", fl = "CruisePlugin",
|
|
11063
|
-
console.error(`${
|
|
11062
|
+
const dl = "v1.0.6", fl = "CruisePlugin", vi = `${fl}@${dl}`, qs = () => {
|
|
11063
|
+
console.error(`${vi} is disposed`);
|
|
11064
11064
|
}, Km = () => {
|
|
11065
|
-
console.warn(`${
|
|
11065
|
+
console.warn(`${vi} is disabled`);
|
|
11066
11066
|
}, $m = () => {
|
|
11067
|
-
console.error(`${
|
|
11068
|
-
},
|
|
11067
|
+
console.error(`${vi} is disabled`);
|
|
11068
|
+
}, Ti = /* @__PURE__ */ new Map();
|
|
11069
11069
|
class hl extends Bt {
|
|
11070
11070
|
constructor(e, n) {
|
|
11071
11071
|
super(e, n);
|
|
@@ -11126,7 +11126,7 @@ class hl extends Bt {
|
|
|
11126
11126
|
const w = a.length;
|
|
11127
11127
|
a[w] = [A];
|
|
11128
11128
|
}
|
|
11129
|
-
}), this.GuideLine || (this.GuideLine = _m(this.five, this.config)), (g = this.GuideLine) == null || g.load({ routes: a.map((A) => ({ panoIndexList: A })), config: r.guildPluginOptions }), this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed), n && this.setState(n, { userAction: o }), console.info(`${
|
|
11129
|
+
}), this.GuideLine || (this.GuideLine = _m(this.five, this.config)), (g = this.GuideLine) == null || g.load({ routes: a.map((A) => ({ panoIndexList: A })), config: r.guildPluginOptions }), this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed), n && this.setState(n, { userAction: o }), console.info(`${vi} loaded`, r), this.hooks.emit("dataLoaded", r);
|
|
11130
11130
|
});
|
|
11131
11131
|
}
|
|
11132
11132
|
play(e) {
|
|
@@ -11456,12 +11456,12 @@ class hl extends Bt {
|
|
|
11456
11456
|
getPauseData() {
|
|
11457
11457
|
var e, n;
|
|
11458
11458
|
if ((e = this.data) != null && e.keyframesId)
|
|
11459
|
-
return
|
|
11459
|
+
return Ti.get((n = this.data) == null ? void 0 : n.keyframesId);
|
|
11460
11460
|
}
|
|
11461
11461
|
setPauseData() {
|
|
11462
11462
|
var e, n, o, s;
|
|
11463
11463
|
if ((e = this.data) != null && e.keyframesId)
|
|
11464
|
-
return
|
|
11464
|
+
return Ti.set((n = this.data) == null ? void 0 : n.keyframesId, {
|
|
11465
11465
|
keyframeId: (o = this.privateState.currentPlayKeyframe) == null ? void 0 : o.keyframe.id,
|
|
11466
11466
|
fiveState: this.five.getCurrentState(),
|
|
11467
11467
|
duration: (s = this.privateState.currentPlayKeyframe) == null ? void 0 : s.originDuration,
|
|
@@ -11471,7 +11471,7 @@ class hl extends Bt {
|
|
|
11471
11471
|
clearPauseData() {
|
|
11472
11472
|
var e, n;
|
|
11473
11473
|
if ((e = this.data) != null && e.keyframesId)
|
|
11474
|
-
return
|
|
11474
|
+
return Ti.delete((n = this.data) == null ? void 0 : n.keyframesId);
|
|
11475
11475
|
}
|
|
11476
11476
|
clear() {
|
|
11477
11477
|
this.clearPauseData(), this.privateState.currentPlayKeyframe = null;
|
|
@@ -11771,7 +11771,7 @@ function rp(i, t) {
|
|
|
11771
11771
|
});
|
|
11772
11772
|
}
|
|
11773
11773
|
const Re = (i) => i;
|
|
11774
|
-
function
|
|
11774
|
+
function qi(i) {
|
|
11775
11775
|
if (i.length < 3)
|
|
11776
11776
|
return;
|
|
11777
11777
|
const t = i.map(yn), e = t[1].clone().sub(t[0]), n = t[2].clone().sub(t[1]);
|
|
@@ -11784,8 +11784,8 @@ function up(i) {
|
|
|
11784
11784
|
function He(i) {
|
|
11785
11785
|
return i.stickType === "Model" && i.contentType === "MediaModel";
|
|
11786
11786
|
}
|
|
11787
|
-
function
|
|
11788
|
-
if (!!
|
|
11787
|
+
function Ki(i) {
|
|
11788
|
+
if (!!i)
|
|
11789
11789
|
if (Array.isArray(i) && i.length === 4) {
|
|
11790
11790
|
const e = i.map(yn);
|
|
11791
11791
|
return io(e[0], e[2]);
|
|
@@ -11797,7 +11797,7 @@ function tr(i) {
|
|
|
11797
11797
|
const t = new cn().fromArray(i.matrix), e = i.data.mediaPosition.map((n) => new K().fromArray(n).applyMatrix4(t));
|
|
11798
11798
|
return io(e[0], e[2]);
|
|
11799
11799
|
} else
|
|
11800
|
-
return
|
|
11800
|
+
return Ki(i.position);
|
|
11801
11801
|
}
|
|
11802
11802
|
function an(i, t) {
|
|
11803
11803
|
if (i === void 0)
|
|
@@ -11866,7 +11866,7 @@ function ir(i, t) {
|
|
|
11866
11866
|
function pp() {
|
|
11867
11867
|
return Math.random().toString(36).slice(-6);
|
|
11868
11868
|
}
|
|
11869
|
-
const
|
|
11869
|
+
const zi = pp();
|
|
11870
11870
|
function gp(i) {
|
|
11871
11871
|
ce(i, "svelte-1b2n9wi", ".text-char.svelte-1b2n9wi{display:inline-block;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}");
|
|
11872
11872
|
}
|
|
@@ -11965,7 +11965,7 @@ function bp(i) {
|
|
|
11965
11965
|
}
|
|
11966
11966
|
function yp(i, t, e) {
|
|
11967
11967
|
let n, { inDelay: o = 0 } = t, { outDelay: s = 0 } = t, { content: r } = t, { unfolded: a } = t, { isFistUnfoldedUpdate: l = !0 } = t;
|
|
11968
|
-
const c = `__EMOJI_SPLIT_${
|
|
11968
|
+
const c = `__EMOJI_SPLIT_${zi}__`, u = `__EMOJI_${zi}__`, f = `__SPACE_${zi}__`;
|
|
11969
11969
|
let d, h, g = [];
|
|
11970
11970
|
function A(k) {
|
|
11971
11971
|
const C = [], S = new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)", "gu"));
|
|
@@ -12984,7 +12984,7 @@ function ag(i) {
|
|
|
12984
12984
|
};
|
|
12985
12985
|
}
|
|
12986
12986
|
function lg(i, t, e) {
|
|
12987
|
-
const n =
|
|
12987
|
+
const n = ui();
|
|
12988
12988
|
let { pagesCount: o = 1 } = t, { currentPageIndex: s = 0 } = t;
|
|
12989
12989
|
function r(l) {
|
|
12990
12990
|
n("pageChange", l);
|
|
@@ -13100,7 +13100,7 @@ function wo(i) {
|
|
|
13100
13100
|
};
|
|
13101
13101
|
}
|
|
13102
13102
|
const wg = 110, Cg = 9, Pg = 111, Eg = 20;
|
|
13103
|
-
function
|
|
13103
|
+
function Bi(i) {
|
|
13104
13104
|
if ("TouchEvent" in window && i instanceof TouchEvent) {
|
|
13105
13105
|
const t = i.touches[0];
|
|
13106
13106
|
return {
|
|
@@ -13121,13 +13121,13 @@ function Ig(i, { thresholdProvider: t }) {
|
|
|
13121
13121
|
}
|
|
13122
13122
|
function c(d) {
|
|
13123
13123
|
r = Date.now(), s = 0, a = !0;
|
|
13124
|
-
const h =
|
|
13124
|
+
const h = Bi(d);
|
|
13125
13125
|
n = h.x, o = h.y, e("swipeStart", { x: n, y: o }), yg(window, u), bg(window, f);
|
|
13126
13126
|
}
|
|
13127
13127
|
function u(d) {
|
|
13128
13128
|
if (!a)
|
|
13129
13129
|
return;
|
|
13130
|
-
const h =
|
|
13130
|
+
const h = Bi(d), g = h.x - n, A = h.y - o;
|
|
13131
13131
|
n = h.x, o = h.y, e("swipeMove", { x: n, y: o, dx: g, dy: A }), g !== 0 && Math.sign(g) !== Math.sign(s) && (s = 0), s += g, Math.abs(s) > t() && (e("swipeThresholdReached", { direction: s > 0 ? Yt : Ct }), vr(window, f), br(window, u));
|
|
13132
13132
|
}
|
|
13133
13133
|
function f(d) {
|
|
@@ -13135,7 +13135,7 @@ function Ig(i, { thresholdProvider: t }) {
|
|
|
13135
13135
|
e("swipeFailed");
|
|
13136
13136
|
return;
|
|
13137
13137
|
}
|
|
13138
|
-
const h =
|
|
13138
|
+
const h = Bi(d);
|
|
13139
13139
|
e("swipeEnd", { x: h.x, y: h.y });
|
|
13140
13140
|
}
|
|
13141
13141
|
return Ag(i, c), {
|
|
@@ -13313,7 +13313,7 @@ function Hg({
|
|
|
13313
13313
|
e - 1
|
|
13314
13314
|
);
|
|
13315
13315
|
}
|
|
13316
|
-
function
|
|
13316
|
+
function ji({
|
|
13317
13317
|
infinite: i,
|
|
13318
13318
|
pageIndex: t,
|
|
13319
13319
|
clonesCountHead: e,
|
|
@@ -13672,7 +13672,7 @@ function o0(i) {
|
|
|
13672
13672
|
},
|
|
13673
13673
|
methods: {
|
|
13674
13674
|
_prev({ data: r }) {
|
|
13675
|
-
r.currentParticleIndex =
|
|
13675
|
+
r.currentParticleIndex = ji({
|
|
13676
13676
|
infinite: r.infinite,
|
|
13677
13677
|
pageIndex: r.currentPageIndex - 1,
|
|
13678
13678
|
clonesCountHead: r.clonesCountHead,
|
|
@@ -13683,7 +13683,7 @@ function o0(i) {
|
|
|
13683
13683
|
});
|
|
13684
13684
|
},
|
|
13685
13685
|
_next({ data: r }) {
|
|
13686
|
-
r.currentParticleIndex =
|
|
13686
|
+
r.currentParticleIndex = ji({
|
|
13687
13687
|
infinite: r.infinite,
|
|
13688
13688
|
pageIndex: r.currentPageIndex + 1,
|
|
13689
13689
|
clonesCountHead: r.clonesCountHead,
|
|
@@ -13761,7 +13761,7 @@ function o0(i) {
|
|
|
13761
13761
|
});
|
|
13762
13762
|
},
|
|
13763
13763
|
_getParticleIndexByPageIndex({ data: r }, a) {
|
|
13764
|
-
return
|
|
13764
|
+
return ji({
|
|
13765
13765
|
infinite: r.infinite,
|
|
13766
13766
|
pageIndex: a,
|
|
13767
13767
|
clonesCountHead: r.clonesCountHead,
|
|
@@ -14042,7 +14042,7 @@ function h0(i) {
|
|
|
14042
14042
|
},
|
|
14043
14043
|
m(w, P) {
|
|
14044
14044
|
T(w, t, P), B(t, e), h && h.m(e, null), B(e, n), B(e, o), B(o, s), A && A.m(s, null), i[39](s), B(o, a), p && p.m(o, null), i[40](o), B(e, l), v && v.m(e, null), B(t, c), y && y.m(t, null), u = !0, f || (d = [
|
|
14045
|
-
|
|
14045
|
+
Ii(r = Ig.call(null, s, {
|
|
14046
14046
|
thresholdProvider: i[38]
|
|
14047
14047
|
})),
|
|
14048
14048
|
we(s, "swipeStart", i[16]),
|
|
@@ -14050,9 +14050,9 @@ function h0(i) {
|
|
|
14050
14050
|
we(s, "swipeEnd", i[19]),
|
|
14051
14051
|
we(s, "swipeFailed", i[20]),
|
|
14052
14052
|
we(s, "swipeThresholdReached", i[17]),
|
|
14053
|
-
|
|
14053
|
+
Ii(Lg.call(null, o)),
|
|
14054
14054
|
we(o, "hovered", i[21]),
|
|
14055
|
-
|
|
14055
|
+
Ii(Bg.call(null, o)),
|
|
14056
14056
|
we(o, "tapped", i[22])
|
|
14057
14057
|
], f = !0);
|
|
14058
14058
|
},
|
|
@@ -14098,7 +14098,7 @@ function m0(i, t, e) {
|
|
|
14098
14098
|
pagesCount: () => e(10, u = Ae),
|
|
14099
14099
|
loaded: () => e(6, s = Ae)
|
|
14100
14100
|
})(te);
|
|
14101
|
-
}), A =
|
|
14101
|
+
}), A = ui();
|
|
14102
14102
|
let { timingFunction: p = "ease-in-out" } = t, { arrows: v = !0 } = t, { infinite: y = !0 } = t, { initialPageIndex: w = 0 } = t, { duration: P = 500 } = t, { autoplay: k = !1 } = t, { autoplayDuration: C = 3e3 } = t, { autoplayDirection: S = Ct } = t, { pauseOnFocus: x = !1 } = t, { autoplayProgressVisible: V = !1 } = t, { dots: N = !0 } = t, { swiping: O = !0 } = t, { particlesToShow: Y = 1 } = t, { particlesToScroll: j = 1 } = t;
|
|
14103
14103
|
function R(te, Ae) {
|
|
14104
14104
|
return F(this, null, function* () {
|
|
@@ -15207,7 +15207,7 @@ class El {
|
|
|
15207
15207
|
}
|
|
15208
15208
|
doAnimation() {
|
|
15209
15209
|
var t;
|
|
15210
|
-
(t = this.animeIns) == null || t.dispose(), new go({ progress: 0 }).to({ progress: [1, 0] }).duration(500).easing(
|
|
15210
|
+
(t = this.animeIns) == null || t.dispose(), new go({ progress: 0 }).to({ progress: [1, 0] }).duration(500).easing(ci.Easing.Quadratic.InOut).onUpdate(({ progress: e }) => {
|
|
15211
15211
|
}).play();
|
|
15212
15212
|
}
|
|
15213
15213
|
dispose() {
|
|
@@ -15269,8 +15269,8 @@ const J1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
15269
15269
|
notNil: wt,
|
|
15270
15270
|
BetterTween: go,
|
|
15271
15271
|
tweenProgress: Xa,
|
|
15272
|
-
nextFrame:
|
|
15273
|
-
requestAnimationFrameInterval:
|
|
15272
|
+
nextFrame: pi,
|
|
15273
|
+
requestAnimationFrameInterval: gi,
|
|
15274
15274
|
getFrameTime: wf
|
|
15275
15275
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
15276
15276
|
function _0(i) {
|
|
@@ -15534,7 +15534,7 @@ class U0 extends oe {
|
|
|
15534
15534
|
}
|
|
15535
15535
|
}
|
|
15536
15536
|
const Ut = "data:audio/mpeg;base64,//uQxAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAADAAAGhgBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr///////////////////////////////////////////8AAAA5TEFNRTMuOThyAc0AAAAAAAAAABSAJAiqQgAAgAAABobxtI73AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//uQxAACFEII9ACZ/sJZwWEoEb8w/////N//////JcxjHjf+7/v/H2PzCCFAiDtGeyBCIx7bJJ1mmEEMy6g8mm2c8nrGABB4h2Mkmn//4z/73u773R5qHHu/j/w7Kxkzh5lWRWdsifCkNAnY9Zc1HvDAhjhSHdFkHFzLmabt/AQxSg2wwzLhHIJOBnAWwVY4zrhIYhhc2kvhYDfQ4hDi2Gmh5KyFn8EcGIrHAngNgIwVIEMf5bzbAiTRoAD///8z/KVhkkWEle6IX+d/z4fvH3BShK1e5kmjkCMoxVmXhd4ROlTKo3iipasvTilY21q19ta30/v/0/idPX1v8PNxJL6ramnOVsdvMv2akO0iSYIzdJFirtzWXCZicS9vHqvSKyqm5XJBdqBwPxyfJdykhWTZ0G0ZyTZGpLKxsNwwoRhsx3tZfhwmeOBVISm3impAC/IT/8hP/EKEM1KMdVdVKM2rHV4x7HVXZvbVVKN/qq8CiV9VL9jjH/6l6qf7MBCjZmOqsAibjcP+qqqv0oxqpa/NVW286hPo1nz2L/h8+jXt//uSxCmDU2IK/ECN98KKtE5IYzNoCfbw+u9i5r8PoadUMFPKqWL4LK3T/LCraMSHGkW4bpLXR/E6LlHOVQxmslKVJ8IULktMN06N0FKCpHCoYsjC4F+Z0NVqdNFoGSTjSiyjzLdnZ2fNqTi2eHKONONKLMPMKLONKLMPQRJGlFxZRoKcJFAYEeIFiRQkUWUeYfef//Ko04soswso40UJAgMw8wosososy0EalnZyjQUGBRQGIFggOWUacWUeYmuadrZziQKKEgQsQLAhQkUJAgMQDghltLO1onp0cpkNInSFMqlYeSEJ5AHsqFdOwy1DA2sRmRJKxdKRfLhfLw5BzUxBTUUzLjk4LjJVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk4LjJVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/7ksRRA8AAAaQAAAAgAAA0gAAABFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVU=", gn = {};
|
|
15537
|
-
var
|
|
15537
|
+
var li = /* @__PURE__ */ ((i) => (i.Default = "default", i.GetAudioDuration = "getAudioDuration", i.PlayAudio = "playAudio", i))(li || {});
|
|
15538
15538
|
function Il(i, t) {
|
|
15539
15539
|
const e = (t == null ? void 0 : t.namespace) || "default", n = gn[e] || (gn[e] = []);
|
|
15540
15540
|
let o = n.find((s) => !s.realSrc || s.realSrc === Ut);
|
|
@@ -15610,7 +15610,7 @@ class q0 extends Audio {
|
|
|
15610
15610
|
play() {
|
|
15611
15611
|
return F(this, null, function* () {
|
|
15612
15612
|
var e, n, o;
|
|
15613
|
-
this.tryplaying || (this.tryplaying = !0, (!this.audioInstance || ((e = this.audioInstance) == null ? void 0 : e.realSrc) !== this.sharedAudioSrc) && (this.audioInstance = Il(this.sharedAudioSrc, { namespace:
|
|
15613
|
+
this.tryplaying || (this.tryplaying = !0, (!this.audioInstance || ((e = this.audioInstance) == null ? void 0 : e.realSrc) !== this.sharedAudioSrc) && (this.audioInstance = Il(this.sharedAudioSrc, { namespace: li.PlayAudio })), this.audioInstance.currentTime = (n = this.currentTime) != null ? n : 0, (o = this.eventListenerDisposer) == null || o.call(this), this.eventListenerDisposer = this.addEventListeners(), this.audioInstance.play().then(() => {
|
|
15614
15614
|
this.sharedAudioPaused = !1;
|
|
15615
15615
|
}).catch((s) => {
|
|
15616
15616
|
this.pause(), console.warn(s);
|
|
@@ -15709,7 +15709,7 @@ function $0(i) {
|
|
|
15709
15709
|
}
|
|
15710
15710
|
function eA(i, t, e) {
|
|
15711
15711
|
let { $$slots: n = {}, $$scope: o } = t, { url: s } = t, { enable: r = !0 } = t, { style: a = "" } = t, { hooksInfo: l } = t;
|
|
15712
|
-
const c =
|
|
15712
|
+
const c = ui(), u = St("hooks"), f = St("mediaStore");
|
|
15713
15713
|
let d, h = !0;
|
|
15714
15714
|
function g() {
|
|
15715
15715
|
e(
|
|
@@ -16618,7 +16618,7 @@ function TA(i) {
|
|
|
16618
16618
|
}
|
|
16619
16619
|
function zA(i, t, e) {
|
|
16620
16620
|
let n, { width: o = null } = t, { icon: s = null } = t, { shadow: r = !1 } = t;
|
|
16621
|
-
const a =
|
|
16621
|
+
const a = ui();
|
|
16622
16622
|
function l(c) {
|
|
16623
16623
|
return F(this, null, function* () {
|
|
16624
16624
|
const u = yield IA(c);
|
|
@@ -17077,7 +17077,7 @@ function KA(i) {
|
|
|
17077
17077
|
}
|
|
17078
17078
|
function $A(i, t, e) {
|
|
17079
17079
|
let n, o, s, r, a, l, { withAnimation: c = !1 } = t, { tag: u } = t, { hooks: f } = t, { state: d } = t, { mediaStore: h } = t, { temporaryState: g } = t;
|
|
17080
|
-
|
|
17080
|
+
Wi("hooks", f), Wi("mediaStore", h);
|
|
17081
17081
|
let A, p;
|
|
17082
17082
|
function v(P) {
|
|
17083
17083
|
P ? f.emit("exposure", { id: r, type: "start" }) : f.emit("exposure", { id: r, type: "end" });
|
|
@@ -17488,7 +17488,7 @@ function hv(i) {
|
|
|
17488
17488
|
}
|
|
17489
17489
|
function mv(i, t, e) {
|
|
17490
17490
|
let { withAnimation: n = !1 } = t, { tags: o = [] } = t, { hooks: s } = t, { mediaStore: r } = t, { state: a } = t, { temporaryState: l } = t;
|
|
17491
|
-
return
|
|
17491
|
+
return Wi("hooks", s), i.$$set = (c) => {
|
|
17492
17492
|
"withAnimation" in c && e(0, n = c.withAnimation), "tags" in c && e(1, o = c.tags), "hooks" in c && e(5, s = c.hooks), "mediaStore" in c && e(2, r = c.mediaStore), "state" in c && e(3, a = c.state), "temporaryState" in c && e(4, l = c.temporaryState);
|
|
17493
17493
|
}, [n, o, r, a, l, s];
|
|
17494
17494
|
}
|
|
@@ -17577,7 +17577,7 @@ const gv = {
|
|
|
17577
17577
|
}
|
|
17578
17578
|
}
|
|
17579
17579
|
};
|
|
17580
|
-
class Av extends
|
|
17580
|
+
class Av extends mi {
|
|
17581
17581
|
constructor(e) {
|
|
17582
17582
|
super(e);
|
|
17583
17583
|
m(this, "tagCacheByPanoIndex", {});
|
|
@@ -17804,10 +17804,10 @@ class vv extends Av {
|
|
|
17804
17804
|
const c = (l = (a = this.five.work) == null ? void 0 : a.observers[o]) == null ? void 0 : l.position;
|
|
17805
17805
|
if (c === void 0)
|
|
17806
17806
|
throw new Error(`getAngleRange(): observerPosition is ${c}`);
|
|
17807
|
-
const u = (() => e.stickType === "3DPoint" ? yn(e.normal) :
|
|
17807
|
+
const u = (() => e.stickType === "3DPoint" ? yn(e.normal) : qi(e.position))();
|
|
17808
17808
|
if (!u)
|
|
17809
17809
|
return;
|
|
17810
|
-
const f = new I.Vector3().copy(c).sub(
|
|
17810
|
+
const f = new I.Vector3().copy(c).sub(Ki(e.position)), d = u.angleTo(f) * 180 / Math.PI;
|
|
17811
17811
|
return s.angle = d, s.angle;
|
|
17812
17812
|
}
|
|
17813
17813
|
}
|
|
@@ -17912,7 +17912,7 @@ class vv extends Av {
|
|
|
17912
17912
|
getTagProject(e) {
|
|
17913
17913
|
if (!this.getVisibleByPanoIndex(e) || !e.position)
|
|
17914
17914
|
return;
|
|
17915
|
-
const o =
|
|
17915
|
+
const o = Ki(e.position), { x: s, y: r, z: a } = o.project(this.five.camera);
|
|
17916
17916
|
if (!(a > 1))
|
|
17917
17917
|
return { x: s, y: r, z: a };
|
|
17918
17918
|
}
|
|
@@ -18051,7 +18051,7 @@ class Pv extends vv {
|
|
|
18051
18051
|
const a = this.gltfObjectGroup.children.find((c) => c.customID === e.id);
|
|
18052
18052
|
return a && this.gltfObjectGroup.remove(a), this.gltfObjectGroup.add(s), this.updateTagCss3DObjectMatrix(e, s), s;
|
|
18053
18053
|
}));
|
|
18054
|
-
this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.group.add(this.gltfObjectGroup), this.params = Q({ debug: !1, config: this.config }, n), this.debug = this.params.debug, this.config = this.params.config, Zr(1, { namespace:
|
|
18054
|
+
this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.group.add(this.gltfObjectGroup), this.params = Q({ debug: !1, config: this.config }, n), this.debug = this.params.debug, this.config = this.params.config, Zr(1, { namespace: li.GetAudioDuration }), Zr(1, { namespace: li.PlayAudio }), Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this }), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this }), this.state.enabled && this.five.scene.add(this.group);
|
|
18055
18055
|
}
|
|
18056
18056
|
load(e, n) {
|
|
18057
18057
|
return F(this, null, function* () {
|
|
@@ -18370,9 +18370,9 @@ class Pv extends vv {
|
|
|
18370
18370
|
if (n.normal)
|
|
18371
18371
|
return mt(n.normal);
|
|
18372
18372
|
if (n.stickType === "Plane")
|
|
18373
|
-
return
|
|
18373
|
+
return qi(n.position);
|
|
18374
18374
|
if (n.contentType === "MediaModel")
|
|
18375
|
-
return
|
|
18375
|
+
return qi(o);
|
|
18376
18376
|
}();
|
|
18377
18377
|
if (!s)
|
|
18378
18378
|
return;
|
|
@@ -18840,7 +18840,7 @@ class Iv extends sc {
|
|
|
18840
18840
|
return t !== null && t.remove(this), this;
|
|
18841
18841
|
}
|
|
18842
18842
|
}
|
|
18843
|
-
class
|
|
18843
|
+
class bi extends Iv {
|
|
18844
18844
|
constructor(e, n) {
|
|
18845
18845
|
var o;
|
|
18846
18846
|
super();
|
|
@@ -18893,13 +18893,13 @@ class yi extends Iv {
|
|
|
18893
18893
|
this.removeFromParent();
|
|
18894
18894
|
}
|
|
18895
18895
|
}
|
|
18896
|
-
class kv extends
|
|
18896
|
+
class kv extends bi {
|
|
18897
18897
|
}
|
|
18898
|
-
class xv extends
|
|
18898
|
+
class xv extends bi {
|
|
18899
18899
|
}
|
|
18900
|
-
class Dv extends
|
|
18900
|
+
class Dv extends bi {
|
|
18901
18901
|
}
|
|
18902
|
-
class zl extends
|
|
18902
|
+
class zl extends bi {
|
|
18903
18903
|
}
|
|
18904
18904
|
class Lv extends zl {
|
|
18905
18905
|
}
|
|
@@ -18936,7 +18936,7 @@ function Eo(i, t, e) {
|
|
|
18936
18936
|
function Tv(i, t) {
|
|
18937
18937
|
return !(Math.abs(i.x - t.x) > 1e-5 || Math.abs(i.y - t.y) > 1e-5 || Math.abs(i.z - t.z) > 1e-5);
|
|
18938
18938
|
}
|
|
18939
|
-
class
|
|
18939
|
+
class Vi extends Sv {
|
|
18940
18940
|
constructor(e) {
|
|
18941
18941
|
var u;
|
|
18942
18942
|
super(e.direction);
|
|
@@ -18963,28 +18963,28 @@ class Qi extends Sv {
|
|
|
18963
18963
|
this.line.geometry.translate(0, this.lineHeight / 2, 0), this.direction === "x" ? (this.line.geometry.rotateX(Math.PI / 2), this.line.geometry.rotateY(Math.PI / 2)) : this.direction === "z" && this.line.geometry.rotateX(Math.PI / 2);
|
|
18964
18964
|
}
|
|
18965
18965
|
}
|
|
18966
|
-
const
|
|
18966
|
+
const Qi = {
|
|
18967
18967
|
X: 15618642,
|
|
18968
18968
|
Y: 4765519,
|
|
18969
18969
|
Z: 4227839
|
|
18970
18970
|
};
|
|
18971
18971
|
class Nt {
|
|
18972
18972
|
static get X() {
|
|
18973
|
-
return new I.Color(
|
|
18973
|
+
return new I.Color(Qi.X).convertSRGBToLinear().clone();
|
|
18974
18974
|
}
|
|
18975
18975
|
static get Y() {
|
|
18976
|
-
return new I.Color(
|
|
18976
|
+
return new I.Color(Qi.Y).convertSRGBToLinear().clone();
|
|
18977
18977
|
}
|
|
18978
18978
|
static get Z() {
|
|
18979
|
-
return new I.Color(
|
|
18979
|
+
return new I.Color(Qi.Z).convertSRGBToLinear().clone();
|
|
18980
18980
|
}
|
|
18981
18981
|
}
|
|
18982
18982
|
class zv extends kv {
|
|
18983
18983
|
constructor(e) {
|
|
18984
18984
|
super(e);
|
|
18985
|
-
m(this, "xArrow", new
|
|
18986
|
-
m(this, "yArrow", new
|
|
18987
|
-
m(this, "zArrow", new
|
|
18985
|
+
m(this, "xArrow", new Vi({ direction: "x", color: Nt.X }));
|
|
18986
|
+
m(this, "yArrow", new Vi({ direction: "y", color: Nt.Y }));
|
|
18987
|
+
m(this, "zArrow", new Vi({ direction: "z", color: Nt.Z }));
|
|
18988
18988
|
this.add(this.xArrow), this.add(this.yArrow), this.add(this.zArrow);
|
|
18989
18989
|
}
|
|
18990
18990
|
show() {
|
|
@@ -19042,7 +19042,7 @@ class Vv extends Dv {
|
|
|
19042
19042
|
m(this, "children", []);
|
|
19043
19043
|
m(this, "angleTips");
|
|
19044
19044
|
m(this, "container");
|
|
19045
|
-
(n == null ? void 0 : n.yzCircleEnable) !== !1 && (this.xCircle = new
|
|
19045
|
+
(n == null ? void 0 : n.yzCircleEnable) !== !1 && (this.xCircle = new Oi({ direction: "x", color: Nt.X })), (n == null ? void 0 : n.xzCircleEnable) !== !1 && (this.yCircle = new Oi({ direction: "y", color: Nt.Y })), (n == null ? void 0 : n.xyCircleEnable) !== !1 && (this.zCircle = new Oi({ direction: "z", color: Nt.Z })), (n == null ? void 0 : n.container) && (n == null ? void 0 : n.angleTipsEnable) !== !1 && (this.container = n == null ? void 0 : n.container, this.angleTips = jv({ display: "none" }), this.container.appendChild(this.angleTips.element)), this.add(...[this.xCircle, this.yCircle, this.zCircle].filter(Boolean)), this.show();
|
|
19046
19046
|
}
|
|
19047
19047
|
hide() {
|
|
19048
19048
|
this.children.forEach((e) => e.hide());
|
|
@@ -19060,7 +19060,7 @@ class Vv extends Dv {
|
|
|
19060
19060
|
this.removeFromParent(), (n = (e = this.angleTips) == null ? void 0 : e.element) == null || n.remove();
|
|
19061
19061
|
}
|
|
19062
19062
|
}
|
|
19063
|
-
class
|
|
19063
|
+
class Oi extends I.Group {
|
|
19064
19064
|
constructor(e) {
|
|
19065
19065
|
super();
|
|
19066
19066
|
m(this, "direction");
|
|
@@ -19620,7 +19620,7 @@ class Jv {
|
|
|
19620
19620
|
e != null && e.warnLog && Yv();
|
|
19621
19621
|
}
|
|
19622
19622
|
}
|
|
19623
|
-
function
|
|
19623
|
+
function Ri(i) {
|
|
19624
19624
|
return i * Math.PI / 180;
|
|
19625
19625
|
}
|
|
19626
19626
|
class Zv extends Dn {
|
|
@@ -19644,7 +19644,7 @@ class Zv extends Dn {
|
|
|
19644
19644
|
this.helperObject3D.applyHelperQuaternion(this.originObject3D.quaternion);
|
|
19645
19645
|
}
|
|
19646
19646
|
setRotateAngle(e) {
|
|
19647
|
-
const { x: n = 0, y: o = 0, z: s = 0 } = e, r = new I.Euler(
|
|
19647
|
+
const { x: n = 0, y: o = 0, z: s = 0 } = e, r = new I.Euler(Ri(n), Ri(o), Ri(s)), a = new I.Quaternion().setFromEuler(r);
|
|
19648
19648
|
if (this.hooks.emit("wantToRotate", a))
|
|
19649
19649
|
return;
|
|
19650
19650
|
const { originObject3D: c, rotateCenter: u } = this;
|
|
@@ -19900,7 +19900,7 @@ const Bl = "v1.0.0", no = "Object3DHelperPlugin", ko = `${no}@${Bl}`, t1 = () =>
|
|
|
19900
19900
|
}, i1 = () => {
|
|
19901
19901
|
console.error(`${ko} is disabled`);
|
|
19902
19902
|
};
|
|
19903
|
-
class o1 extends
|
|
19903
|
+
class o1 extends mi {
|
|
19904
19904
|
constructor(e) {
|
|
19905
19905
|
super(e);
|
|
19906
19906
|
m(this, "version", Bl);
|