@realsee/dnalogel 2.9.0-alpha.1 → 2.9.0-alpha.2
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 +177 -173
- 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 +6 -6
- 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/controller/TagComputer.js +4 -1
- package/libs/PanoTagPlugin/utils/tagPosition.js +18 -17
- 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 wi = (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) && wi(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) && wi(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) => (wi(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 ui 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 Hi } 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 Ci(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 = Ci(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(Ci(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(Ci(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 Hi {
|
|
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, Gi = "CSS3DRenderer", un = `${Gi}@${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(`${Gi}__container`), n.element.id = `${Gi}__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 Hi && 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 Hi && 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 @@ lt.style.height = "100%";
|
|
|
1230
1230
|
lt.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 = Pi(i.getElement())) != null ? n : Pi((e = i.getElement()) == null ? void 0 : e.parentElement)) != null ? r : Pi((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(lt, t), lt;
|
|
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 Pi(i) {
|
|
1241
1241
|
var a;
|
|
1242
1242
|
if (!i)
|
|
1243
1243
|
return;
|
|
@@ -1248,7 +1248,7 @@ function Ci(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", Ei = `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(`${Ei}: 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(`${Ei}: 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(`${Ei}: 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 Ii(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 E1 = (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
|
+
Ii(
|
|
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
|
+
Ii(
|
|
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
|
+
Ii(
|
|
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 ki(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 Wi(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 di() {
|
|
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 ui() {
|
|
|
1658
1658
|
return !0;
|
|
1659
1659
|
};
|
|
1660
1660
|
}
|
|
1661
|
-
function
|
|
1661
|
+
function Ni(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 = [], _i = [], Ta = Promise.resolve();
|
|
1672
|
+
let Xi = !1;
|
|
1673
1673
|
function za() {
|
|
1674
|
-
|
|
1674
|
+
Xi || (Xi = !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
|
+
_i.push(i);
|
|
1684
1684
|
}
|
|
1685
|
-
const
|
|
1685
|
+
const xi = /* @__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
|
+
xi.has(e) || (xi.add(e), e());
|
|
1699
1699
|
}
|
|
1700
1700
|
Zn.length = 0;
|
|
1701
1701
|
} while (dn.length);
|
|
1702
|
-
for (;
|
|
1703
|
-
|
|
1704
|
-
|
|
1702
|
+
for (; _i.length; )
|
|
1703
|
+
_i.pop()();
|
|
1704
|
+
Xi = !1, xi.clear(), at(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 && Wi(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, Wi(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 && Wi(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 fi(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 (!fi(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 (!fi(i[e], t[e]))
|
|
2262
2262
|
return !1;
|
|
2263
2263
|
return !0;
|
|
2264
2264
|
}
|
|
2265
2265
|
function fu(i, t) {
|
|
2266
|
-
return
|
|
2266
|
+
return fi(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 fi(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 hi(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 = hi(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 Di = 6;
|
|
3346
3346
|
function dd(i, t, e) {
|
|
3347
3347
|
let n, { path: o } = t;
|
|
3348
|
-
const s =
|
|
3348
|
+
const s = Di * 2, r = `M0 ${Di} h ${s} M${Di} 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 = hi(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 = hi(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 = hi(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 mi(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 pi {
|
|
4354
4354
|
constructor(t, e) {
|
|
4355
4355
|
m(this, "five");
|
|
4356
4356
|
m(this, "hooks", new Jt());
|
|
@@ -4361,11 +4361,11 @@ class mi {
|
|
|
4361
4361
|
return this.state;
|
|
4362
4362
|
}
|
|
4363
4363
|
}
|
|
4364
|
-
class Bt extends
|
|
4364
|
+
class Bt extends pi {
|
|
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 Yi(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" ? Yi(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 !(!Yi(e, s, 2) || !Yi(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 ? mi(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 ? mi(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 ? mi(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 S1 = (i, t) => new gf(i, t), M1 = [
|
|
|
5888
5888
|
{ roomType: "100900000013", description: "\u8863" },
|
|
5889
5889
|
{ roomType: "100900000015", description: "\u5546\u94FA" },
|
|
5890
5890
|
{ roomType: "100900000016", description: "\u5199\u5B57\u697C" }
|
|
5891
|
-
],
|
|
5891
|
+
], Li = (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 S1 = (i, t) => new gf(i, t), M1 = [
|
|
|
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(Li(o, 0, 0)), s && i.applyMatrix4(Li(0, s, 0)), r && i.applyMatrix4(Li(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 = Ai((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 gi(i, t = 0) {
|
|
6042
|
+
t <= 0 ? Pn(i) : Pn(() => gi(i, t - 1));
|
|
6043
6043
|
}
|
|
6044
|
-
function
|
|
6044
|
+
function Ai(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 = ui.Easing;
|
|
6063
6063
|
function Pf(i, t, e, n = Cf.Linear.None) {
|
|
6064
|
-
const o = new
|
|
6065
|
-
|
|
6066
|
-
const s =
|
|
6064
|
+
const o = new ui.Tween(i).to(t, e).easing(n);
|
|
6065
|
+
gi(() => o.start(0));
|
|
6066
|
+
const s = Ai((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 Si(i, t, e) {
|
|
6094
6094
|
return i + (t - i) * e;
|
|
6095
6095
|
}
|
|
6096
|
-
const
|
|
6096
|
+
const Ui = (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 ? Ui(i, t, st.Anticlockwise) : e === st.Loop && i - t > n ? Ui(i, t, st.Clockwise) : { from: i, to: t };
|
|
6099
6099
|
}, V1 = (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 Yi = (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 } = Ui(
|
|
6117
6117
|
r.longitude,
|
|
6118
6118
|
s.longitude,
|
|
6119
6119
|
s.rotation || st.Loop
|
|
@@ -6140,12 +6140,12 @@ const Yi = (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 = Si(f.longitude, d.longitude, w), P.latitude = Si(f.latitude, d.latitude, w), P.fov = Si(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, ui.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 = () => gi(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 vi {
|
|
7577
7577
|
constructor(t) {
|
|
7578
7578
|
m(this, "model");
|
|
7579
7579
|
m(this, "five");
|
|
@@ -7617,15 +7617,15 @@ class Ai {
|
|
|
7617
7617
|
t && (t.removeEventListener("touchstart", Gn), t.removeEventListener("contextmenu", Gn));
|
|
7618
7618
|
}
|
|
7619
7619
|
}
|
|
7620
|
-
function
|
|
7620
|
+
function Ji(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 Mi(i, t) {
|
|
7625
|
+
const e = Ji(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 vi {
|
|
7629
7629
|
constructor(e) {
|
|
7630
7630
|
var o;
|
|
7631
7631
|
super(e);
|
|
@@ -7660,7 +7660,7 @@ class Wn extends Ai {
|
|
|
7660
7660
|
this.hook.emit("editedPolylineChange", this.polyline);
|
|
7661
7661
|
});
|
|
7662
7662
|
m(this, "onPress", (e) => {
|
|
7663
|
-
const [n] =
|
|
7663
|
+
const [n] = Mi(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 Ai {
|
|
|
7669
7669
|
m(this, "onPan", (e) => {
|
|
7670
7670
|
if (!this.pressPoint)
|
|
7671
7671
|
return;
|
|
7672
|
-
const [n] =
|
|
7672
|
+
const [n] = Mi(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 Ai {
|
|
|
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] = Mi(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 Ai {
|
|
|
7712
7712
|
return this.polyline.lines;
|
|
7713
7713
|
}
|
|
7714
7714
|
}
|
|
7715
|
-
class xs extends
|
|
7715
|
+
class xs extends vi {
|
|
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 Zi(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 Ji(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 vi {
|
|
7867
7867
|
constructor(e) {
|
|
7868
7868
|
super(e);
|
|
7869
7869
|
m(this, "type", "watch");
|
|
@@ -7876,14 +7876,14 @@ class Ls extends Ai {
|
|
|
7876
7876
|
var a;
|
|
7877
7877
|
if (this.model.getAllLines().length === 0 || !this.fiveElement)
|
|
7878
7878
|
return;
|
|
7879
|
-
const n =
|
|
7879
|
+
const n = Ji(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: Zi(o.lines[0])
|
|
7887
7887
|
};
|
|
7888
7888
|
this.hook.emit("wantsDragLine", {
|
|
7889
7889
|
point: o.id,
|
|
@@ -7896,7 +7896,7 @@ class Ls extends Ai {
|
|
|
7896
7896
|
m(this, "onPan", (e) => {
|
|
7897
7897
|
if (!this.editPointState || !this.fiveElement)
|
|
7898
7898
|
return;
|
|
7899
|
-
const n =
|
|
7899
|
+
const n = Ji(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 Ai {
|
|
|
7945
7945
|
return this.chooseLine(d), !1;
|
|
7946
7946
|
});
|
|
7947
7947
|
m(this, "chooseLine", (e) => {
|
|
7948
|
-
const n =
|
|
7948
|
+
const n = Zi(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 = Ai((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 vi {
|
|
8222
8222
|
constructor(e) {
|
|
8223
8223
|
super(e);
|
|
8224
8224
|
m(this, "state", "watching");
|
|
@@ -8290,7 +8290,7 @@ class rn extends Ai {
|
|
|
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 = Zi(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 = mi(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 Ti = 1e-3, Os = 0.01, $h = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png", H1 = (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 Mi = 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(Ti), 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, Ti, 0)).add(xo),
|
|
9483
|
+
xe.clone().add(new I.Vector3(0, Ti, 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, X1 = (i, t) => {
|
|
|
10522
10522
|
name: "ItemLabelPlugin",
|
|
10523
10523
|
version: 0
|
|
10524
10524
|
};
|
|
10525
|
-
class xm extends
|
|
10525
|
+
class xm extends pi {
|
|
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", qi = `${cl}@${ll}`, Js = (i) => `${qi}--${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(`${qi} 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(`${qi} 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", bi = `${fl}@${dl}`, qs = () => {
|
|
11063
|
+
console.error(`${bi} is disposed`);
|
|
11064
11064
|
}, Km = () => {
|
|
11065
|
-
console.warn(`${
|
|
11065
|
+
console.warn(`${bi} is disabled`);
|
|
11066
11066
|
}, $m = () => {
|
|
11067
|
-
console.error(`${
|
|
11068
|
-
},
|
|
11067
|
+
console.error(`${bi} is disabled`);
|
|
11068
|
+
}, zi = /* @__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(`${bi} 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 zi.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 zi.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 zi.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 Ki(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]);
|
|
@@ -11787,12 +11787,13 @@ function dp(i) {
|
|
|
11787
11787
|
function He(i) {
|
|
11788
11788
|
return i.stickType === "Model" && i.contentType === "MediaModel";
|
|
11789
11789
|
}
|
|
11790
|
-
function
|
|
11791
|
-
if (
|
|
11792
|
-
|
|
11793
|
-
|
|
11794
|
-
|
|
11795
|
-
|
|
11790
|
+
function li(i) {
|
|
11791
|
+
if (!!li)
|
|
11792
|
+
if (Array.isArray(i) && i.length === 4) {
|
|
11793
|
+
const e = i.map(yn);
|
|
11794
|
+
return io(e[0], e[2]);
|
|
11795
|
+
} else
|
|
11796
|
+
return yn(i);
|
|
11796
11797
|
}
|
|
11797
11798
|
function tr(i) {
|
|
11798
11799
|
if (up(i))
|
|
@@ -11801,7 +11802,7 @@ function tr(i) {
|
|
|
11801
11802
|
const t = new cn().fromArray(i.matrix), e = i.data.mediaPosition.map((n) => new K().fromArray(n).applyMatrix4(t));
|
|
11802
11803
|
return io(e[0], e[2]);
|
|
11803
11804
|
} else
|
|
11804
|
-
return
|
|
11805
|
+
return li(i.position);
|
|
11805
11806
|
}
|
|
11806
11807
|
function an(i, t) {
|
|
11807
11808
|
if (i === void 0)
|
|
@@ -11870,7 +11871,7 @@ function ir(i, t) {
|
|
|
11870
11871
|
function gp() {
|
|
11871
11872
|
return Math.random().toString(36).slice(-6);
|
|
11872
11873
|
}
|
|
11873
|
-
const
|
|
11874
|
+
const Bi = gp();
|
|
11874
11875
|
function Ap(i) {
|
|
11875
11876
|
ce(i, "svelte-1b2n9wi", ".text-char.svelte-1b2n9wi{display:inline-block;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}");
|
|
11876
11877
|
}
|
|
@@ -11969,7 +11970,7 @@ function yp(i) {
|
|
|
11969
11970
|
}
|
|
11970
11971
|
function wp(i, t, e) {
|
|
11971
11972
|
let n, { inDelay: o = 0 } = t, { outDelay: s = 0 } = t, { content: r } = t, { unfolded: a } = t, { isFistUnfoldedUpdate: l = !0 } = t;
|
|
11972
|
-
const c = `__EMOJI_SPLIT_${
|
|
11973
|
+
const c = `__EMOJI_SPLIT_${Bi}__`, u = `__EMOJI_${Bi}__`, f = `__SPACE_${Bi}__`;
|
|
11973
11974
|
let d, h, g = [];
|
|
11974
11975
|
function A(k) {
|
|
11975
11976
|
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"));
|
|
@@ -12988,7 +12989,7 @@ function lg(i) {
|
|
|
12988
12989
|
};
|
|
12989
12990
|
}
|
|
12990
12991
|
function cg(i, t, e) {
|
|
12991
|
-
const n =
|
|
12992
|
+
const n = di();
|
|
12992
12993
|
let { pagesCount: o = 1 } = t, { currentPageIndex: s = 0 } = t;
|
|
12993
12994
|
function r(l) {
|
|
12994
12995
|
n("pageChange", l);
|
|
@@ -13104,7 +13105,7 @@ function wo(i) {
|
|
|
13104
13105
|
};
|
|
13105
13106
|
}
|
|
13106
13107
|
const Cg = 110, Pg = 9, Eg = 111, Ig = 20;
|
|
13107
|
-
function
|
|
13108
|
+
function ji(i) {
|
|
13108
13109
|
if ("TouchEvent" in window && i instanceof TouchEvent) {
|
|
13109
13110
|
const t = i.touches[0];
|
|
13110
13111
|
return {
|
|
@@ -13125,13 +13126,13 @@ function kg(i, { thresholdProvider: t }) {
|
|
|
13125
13126
|
}
|
|
13126
13127
|
function c(d) {
|
|
13127
13128
|
r = Date.now(), s = 0, a = !0;
|
|
13128
|
-
const h =
|
|
13129
|
+
const h = ji(d);
|
|
13129
13130
|
n = h.x, o = h.y, e("swipeStart", { x: n, y: o }), wg(window, u), yg(window, f);
|
|
13130
13131
|
}
|
|
13131
13132
|
function u(d) {
|
|
13132
13133
|
if (!a)
|
|
13133
13134
|
return;
|
|
13134
|
-
const h =
|
|
13135
|
+
const h = ji(d), g = h.x - n, A = h.y - o;
|
|
13135
13136
|
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));
|
|
13136
13137
|
}
|
|
13137
13138
|
function f(d) {
|
|
@@ -13139,7 +13140,7 @@ function kg(i, { thresholdProvider: t }) {
|
|
|
13139
13140
|
e("swipeFailed");
|
|
13140
13141
|
return;
|
|
13141
13142
|
}
|
|
13142
|
-
const h =
|
|
13143
|
+
const h = ji(d);
|
|
13143
13144
|
e("swipeEnd", { x: h.x, y: h.y });
|
|
13144
13145
|
}
|
|
13145
13146
|
return vg(i, c), {
|
|
@@ -13317,7 +13318,7 @@ function Gg({
|
|
|
13317
13318
|
e - 1
|
|
13318
13319
|
);
|
|
13319
13320
|
}
|
|
13320
|
-
function
|
|
13321
|
+
function Vi({
|
|
13321
13322
|
infinite: i,
|
|
13322
13323
|
pageIndex: t,
|
|
13323
13324
|
clonesCountHead: e,
|
|
@@ -13676,7 +13677,7 @@ function s0(i) {
|
|
|
13676
13677
|
},
|
|
13677
13678
|
methods: {
|
|
13678
13679
|
_prev({ data: r }) {
|
|
13679
|
-
r.currentParticleIndex =
|
|
13680
|
+
r.currentParticleIndex = Vi({
|
|
13680
13681
|
infinite: r.infinite,
|
|
13681
13682
|
pageIndex: r.currentPageIndex - 1,
|
|
13682
13683
|
clonesCountHead: r.clonesCountHead,
|
|
@@ -13687,7 +13688,7 @@ function s0(i) {
|
|
|
13687
13688
|
});
|
|
13688
13689
|
},
|
|
13689
13690
|
_next({ data: r }) {
|
|
13690
|
-
r.currentParticleIndex =
|
|
13691
|
+
r.currentParticleIndex = Vi({
|
|
13691
13692
|
infinite: r.infinite,
|
|
13692
13693
|
pageIndex: r.currentPageIndex + 1,
|
|
13693
13694
|
clonesCountHead: r.clonesCountHead,
|
|
@@ -13765,7 +13766,7 @@ function s0(i) {
|
|
|
13765
13766
|
});
|
|
13766
13767
|
},
|
|
13767
13768
|
_getParticleIndexByPageIndex({ data: r }, a) {
|
|
13768
|
-
return
|
|
13769
|
+
return Vi({
|
|
13769
13770
|
infinite: r.infinite,
|
|
13770
13771
|
pageIndex: a,
|
|
13771
13772
|
clonesCountHead: r.clonesCountHead,
|
|
@@ -14046,7 +14047,7 @@ function m0(i) {
|
|
|
14046
14047
|
},
|
|
14047
14048
|
m(w, P) {
|
|
14048
14049
|
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 = [
|
|
14049
|
-
|
|
14050
|
+
ki(r = kg.call(null, s, {
|
|
14050
14051
|
thresholdProvider: i[38]
|
|
14051
14052
|
})),
|
|
14052
14053
|
we(s, "swipeStart", i[16]),
|
|
@@ -14054,9 +14055,9 @@ function m0(i) {
|
|
|
14054
14055
|
we(s, "swipeEnd", i[19]),
|
|
14055
14056
|
we(s, "swipeFailed", i[20]),
|
|
14056
14057
|
we(s, "swipeThresholdReached", i[17]),
|
|
14057
|
-
|
|
14058
|
+
ki(Sg.call(null, o)),
|
|
14058
14059
|
we(o, "hovered", i[21]),
|
|
14059
|
-
|
|
14060
|
+
ki(jg.call(null, o)),
|
|
14060
14061
|
we(o, "tapped", i[22])
|
|
14061
14062
|
], f = !0);
|
|
14062
14063
|
},
|
|
@@ -14102,7 +14103,7 @@ function p0(i, t, e) {
|
|
|
14102
14103
|
pagesCount: () => e(10, u = Ae),
|
|
14103
14104
|
loaded: () => e(6, s = Ae)
|
|
14104
14105
|
})(te);
|
|
14105
|
-
}), A =
|
|
14106
|
+
}), A = di();
|
|
14106
14107
|
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;
|
|
14107
14108
|
function R(te, Ae) {
|
|
14108
14109
|
return F(this, null, function* () {
|
|
@@ -15211,7 +15212,7 @@ class El {
|
|
|
15211
15212
|
}
|
|
15212
15213
|
doAnimation() {
|
|
15213
15214
|
var t;
|
|
15214
|
-
(t = this.animeIns) == null || t.dispose(), new go({ progress: 0 }).to({ progress: [1, 0] }).duration(500).easing(
|
|
15215
|
+
(t = this.animeIns) == null || t.dispose(), new go({ progress: 0 }).to({ progress: [1, 0] }).duration(500).easing(ui.Easing.Quadratic.InOut).onUpdate(({ progress: e }) => {
|
|
15215
15216
|
}).play();
|
|
15216
15217
|
}
|
|
15217
15218
|
dispose() {
|
|
@@ -15273,8 +15274,8 @@ const Z1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
15273
15274
|
notNil: wt,
|
|
15274
15275
|
BetterTween: go,
|
|
15275
15276
|
tweenProgress: Xa,
|
|
15276
|
-
nextFrame:
|
|
15277
|
-
requestAnimationFrameInterval:
|
|
15277
|
+
nextFrame: gi,
|
|
15278
|
+
requestAnimationFrameInterval: Ai,
|
|
15278
15279
|
getFrameTime: wf
|
|
15279
15280
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
15280
15281
|
function X0(i) {
|
|
@@ -15538,7 +15539,7 @@ class J0 extends oe {
|
|
|
15538
15539
|
}
|
|
15539
15540
|
}
|
|
15540
15541
|
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 = {};
|
|
15541
|
-
var
|
|
15542
|
+
var ci = /* @__PURE__ */ ((i) => (i.Default = "default", i.GetAudioDuration = "getAudioDuration", i.PlayAudio = "playAudio", i))(ci || {});
|
|
15542
15543
|
function Il(i, t) {
|
|
15543
15544
|
const e = (t == null ? void 0 : t.namespace) || "default", n = gn[e] || (gn[e] = []);
|
|
15544
15545
|
let o = n.find((s) => !s.realSrc || s.realSrc === Ut);
|
|
@@ -15614,7 +15615,7 @@ class K0 extends Audio {
|
|
|
15614
15615
|
play() {
|
|
15615
15616
|
return F(this, null, function* () {
|
|
15616
15617
|
var e, n, o;
|
|
15617
|
-
this.tryplaying || (this.tryplaying = !0, (!this.audioInstance || ((e = this.audioInstance) == null ? void 0 : e.realSrc) !== this.sharedAudioSrc) && (this.audioInstance = Il(this.sharedAudioSrc, { namespace:
|
|
15618
|
+
this.tryplaying || (this.tryplaying = !0, (!this.audioInstance || ((e = this.audioInstance) == null ? void 0 : e.realSrc) !== this.sharedAudioSrc) && (this.audioInstance = Il(this.sharedAudioSrc, { namespace: ci.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(() => {
|
|
15618
15619
|
this.sharedAudioPaused = !1;
|
|
15619
15620
|
}).catch((s) => {
|
|
15620
15621
|
this.pause(), console.warn(s);
|
|
@@ -15713,7 +15714,7 @@ function eA(i) {
|
|
|
15713
15714
|
}
|
|
15714
15715
|
function tA(i, t, e) {
|
|
15715
15716
|
let { $$slots: n = {}, $$scope: o } = t, { url: s } = t, { enable: r = !0 } = t, { style: a = "" } = t, { hooksInfo: l } = t;
|
|
15716
|
-
const c =
|
|
15717
|
+
const c = di(), u = St("hooks"), f = St("mediaStore");
|
|
15717
15718
|
let d, h = !0;
|
|
15718
15719
|
function g() {
|
|
15719
15720
|
e(
|
|
@@ -16622,7 +16623,7 @@ function zA(i) {
|
|
|
16622
16623
|
}
|
|
16623
16624
|
function BA(i, t, e) {
|
|
16624
16625
|
let n, { width: o = null } = t, { icon: s = null } = t, { shadow: r = !1 } = t;
|
|
16625
|
-
const a =
|
|
16626
|
+
const a = di();
|
|
16626
16627
|
function l(c) {
|
|
16627
16628
|
return F(this, null, function* () {
|
|
16628
16629
|
const u = yield kA(c);
|
|
@@ -17081,7 +17082,7 @@ function $A(i) {
|
|
|
17081
17082
|
}
|
|
17082
17083
|
function ev(i, t, e) {
|
|
17083
17084
|
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;
|
|
17084
|
-
|
|
17085
|
+
Ni("hooks", f), Ni("mediaStore", h);
|
|
17085
17086
|
let A, p;
|
|
17086
17087
|
function v(P) {
|
|
17087
17088
|
P ? f.emit("exposure", { id: r, type: "start" }) : f.emit("exposure", { id: r, type: "end" });
|
|
@@ -17492,7 +17493,7 @@ function mv(i) {
|
|
|
17492
17493
|
}
|
|
17493
17494
|
function pv(i, t, e) {
|
|
17494
17495
|
let { withAnimation: n = !1 } = t, { tags: o = [] } = t, { hooks: s } = t, { mediaStore: r } = t, { state: a } = t, { temporaryState: l } = t;
|
|
17495
|
-
return
|
|
17496
|
+
return Ni("hooks", s), i.$$set = (c) => {
|
|
17496
17497
|
"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);
|
|
17497
17498
|
}, [n, o, r, a, l, s];
|
|
17498
17499
|
}
|
|
@@ -17581,7 +17582,7 @@ const Av = {
|
|
|
17581
17582
|
}
|
|
17582
17583
|
}
|
|
17583
17584
|
};
|
|
17584
|
-
class vv extends
|
|
17585
|
+
class vv extends pi {
|
|
17585
17586
|
constructor(e) {
|
|
17586
17587
|
super(e);
|
|
17587
17588
|
m(this, "tagCacheByPanoIndex", {});
|
|
@@ -17789,7 +17790,10 @@ class bv extends vv {
|
|
|
17789
17790
|
const c = (l = (a = this.five.work) == null ? void 0 : a.observers[o]) == null ? void 0 : l.position;
|
|
17790
17791
|
if (c === void 0)
|
|
17791
17792
|
throw new Error(`getDistance(): observerPosition is ${c}`);
|
|
17792
|
-
const u = tr(e)
|
|
17793
|
+
const u = tr(e);
|
|
17794
|
+
if (!u)
|
|
17795
|
+
return -1;
|
|
17796
|
+
const f = c.distanceTo(u);
|
|
17793
17797
|
return s.distance = f, f;
|
|
17794
17798
|
}
|
|
17795
17799
|
}
|
|
@@ -17805,10 +17809,10 @@ class bv extends vv {
|
|
|
17805
17809
|
const c = (l = (a = this.five.work) == null ? void 0 : a.observers[o]) == null ? void 0 : l.position;
|
|
17806
17810
|
if (c === void 0)
|
|
17807
17811
|
throw new Error(`getAngleRange(): observerPosition is ${c}`);
|
|
17808
|
-
const u = (() => e.stickType === "3DPoint" ? yn(e.normal) :
|
|
17812
|
+
const u = (() => e.stickType === "3DPoint" ? yn(e.normal) : Ki(e.position))();
|
|
17809
17813
|
if (!u)
|
|
17810
17814
|
return;
|
|
17811
|
-
const f = new I.Vector3().copy(c).sub(
|
|
17815
|
+
const f = new I.Vector3().copy(c).sub(li(e.position)), d = u.angleTo(f) * 180 / Math.PI;
|
|
17812
17816
|
return s.angle = d, s.angle;
|
|
17813
17817
|
}
|
|
17814
17818
|
}
|
|
@@ -17913,7 +17917,7 @@ class bv extends vv {
|
|
|
17913
17917
|
getTagProject(e) {
|
|
17914
17918
|
if (!this.getVisibleByPanoIndex(e) || !e.position)
|
|
17915
17919
|
return;
|
|
17916
|
-
const o =
|
|
17920
|
+
const o = li(e.position), { x: s, y: r, z: a } = o.project(this.five.camera);
|
|
17917
17921
|
if (!(a > 1))
|
|
17918
17922
|
return { x: s, y: r, z: a };
|
|
17919
17923
|
}
|
|
@@ -18052,7 +18056,7 @@ class Ev extends bv {
|
|
|
18052
18056
|
const a = this.gltfObjectGroup.children.find((c) => c.customID === e.id);
|
|
18053
18057
|
return a && this.gltfObjectGroup.remove(a), this.gltfObjectGroup.add(s), this.updateTagCss3DObjectMatrix(e, s), s;
|
|
18054
18058
|
}));
|
|
18055
|
-
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:
|
|
18059
|
+
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: ci.GetAudioDuration }), Zr(1, { namespace: ci.PlayAudio }), Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this }), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this }), this.state.enabled && this.five.scene.add(this.group);
|
|
18056
18060
|
}
|
|
18057
18061
|
load(e, n) {
|
|
18058
18062
|
return F(this, null, function* () {
|
|
@@ -18371,9 +18375,9 @@ class Ev extends bv {
|
|
|
18371
18375
|
if (n.normal)
|
|
18372
18376
|
return rt(n.normal);
|
|
18373
18377
|
if (n.stickType === "Plane")
|
|
18374
|
-
return
|
|
18378
|
+
return Ki(n.position);
|
|
18375
18379
|
if (n.contentType === "MediaModel")
|
|
18376
|
-
return
|
|
18380
|
+
return Ki(o);
|
|
18377
18381
|
}();
|
|
18378
18382
|
if (!s)
|
|
18379
18383
|
return;
|
|
@@ -18841,7 +18845,7 @@ class kv extends sc {
|
|
|
18841
18845
|
return t !== null && t.remove(this), this;
|
|
18842
18846
|
}
|
|
18843
18847
|
}
|
|
18844
|
-
class
|
|
18848
|
+
class yi extends kv {
|
|
18845
18849
|
constructor(e, n) {
|
|
18846
18850
|
var o;
|
|
18847
18851
|
super();
|
|
@@ -18894,13 +18898,13 @@ class bi extends kv {
|
|
|
18894
18898
|
this.removeFromParent();
|
|
18895
18899
|
}
|
|
18896
18900
|
}
|
|
18897
|
-
class xv extends
|
|
18901
|
+
class xv extends yi {
|
|
18898
18902
|
}
|
|
18899
|
-
class Dv extends
|
|
18903
|
+
class Dv extends yi {
|
|
18900
18904
|
}
|
|
18901
|
-
class Lv extends
|
|
18905
|
+
class Lv extends yi {
|
|
18902
18906
|
}
|
|
18903
|
-
class zl extends
|
|
18907
|
+
class zl extends yi {
|
|
18904
18908
|
}
|
|
18905
18909
|
class Sv extends zl {
|
|
18906
18910
|
}
|
|
@@ -18937,7 +18941,7 @@ function Eo(i, t, e) {
|
|
|
18937
18941
|
function zv(i, t) {
|
|
18938
18942
|
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);
|
|
18939
18943
|
}
|
|
18940
|
-
class
|
|
18944
|
+
class Qi extends Mv {
|
|
18941
18945
|
constructor(e) {
|
|
18942
18946
|
var u;
|
|
18943
18947
|
super(e.direction);
|
|
@@ -18964,28 +18968,28 @@ class Vi extends Mv {
|
|
|
18964
18968
|
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);
|
|
18965
18969
|
}
|
|
18966
18970
|
}
|
|
18967
|
-
const
|
|
18971
|
+
const Oi = {
|
|
18968
18972
|
X: 15618642,
|
|
18969
18973
|
Y: 4765519,
|
|
18970
18974
|
Z: 4227839
|
|
18971
18975
|
};
|
|
18972
18976
|
class Nt {
|
|
18973
18977
|
static get X() {
|
|
18974
|
-
return new I.Color(
|
|
18978
|
+
return new I.Color(Oi.X).convertSRGBToLinear().clone();
|
|
18975
18979
|
}
|
|
18976
18980
|
static get Y() {
|
|
18977
|
-
return new I.Color(
|
|
18981
|
+
return new I.Color(Oi.Y).convertSRGBToLinear().clone();
|
|
18978
18982
|
}
|
|
18979
18983
|
static get Z() {
|
|
18980
|
-
return new I.Color(
|
|
18984
|
+
return new I.Color(Oi.Z).convertSRGBToLinear().clone();
|
|
18981
18985
|
}
|
|
18982
18986
|
}
|
|
18983
18987
|
class Bv extends xv {
|
|
18984
18988
|
constructor(e) {
|
|
18985
18989
|
super(e);
|
|
18986
|
-
m(this, "xArrow", new
|
|
18987
|
-
m(this, "yArrow", new
|
|
18988
|
-
m(this, "zArrow", new
|
|
18990
|
+
m(this, "xArrow", new Qi({ direction: "x", color: Nt.X }));
|
|
18991
|
+
m(this, "yArrow", new Qi({ direction: "y", color: Nt.Y }));
|
|
18992
|
+
m(this, "zArrow", new Qi({ direction: "z", color: Nt.Z }));
|
|
18989
18993
|
this.add(this.xArrow), this.add(this.yArrow), this.add(this.zArrow);
|
|
18990
18994
|
}
|
|
18991
18995
|
show() {
|
|
@@ -19043,7 +19047,7 @@ class Qv extends Lv {
|
|
|
19043
19047
|
m(this, "children", []);
|
|
19044
19048
|
m(this, "angleTips");
|
|
19045
19049
|
m(this, "container");
|
|
19046
|
-
(n == null ? void 0 : n.yzCircleEnable) !== !1 && (this.xCircle = new
|
|
19050
|
+
(n == null ? void 0 : n.yzCircleEnable) !== !1 && (this.xCircle = new Ri({ direction: "x", color: Nt.X })), (n == null ? void 0 : n.xzCircleEnable) !== !1 && (this.yCircle = new Ri({ direction: "y", color: Nt.Y })), (n == null ? void 0 : n.xyCircleEnable) !== !1 && (this.zCircle = new Ri({ 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 = Vv({ display: "none" }), this.container.appendChild(this.angleTips.element)), this.add(...[this.xCircle, this.yCircle, this.zCircle].filter(Boolean)), this.show();
|
|
19047
19051
|
}
|
|
19048
19052
|
hide() {
|
|
19049
19053
|
this.children.forEach((e) => e.hide());
|
|
@@ -19061,7 +19065,7 @@ class Qv extends Lv {
|
|
|
19061
19065
|
this.removeFromParent(), (n = (e = this.angleTips) == null ? void 0 : e.element) == null || n.remove();
|
|
19062
19066
|
}
|
|
19063
19067
|
}
|
|
19064
|
-
class
|
|
19068
|
+
class Ri extends I.Group {
|
|
19065
19069
|
constructor(e) {
|
|
19066
19070
|
super();
|
|
19067
19071
|
m(this, "direction");
|
|
@@ -19621,7 +19625,7 @@ class Zv {
|
|
|
19621
19625
|
e != null && e.warnLog && Uv();
|
|
19622
19626
|
}
|
|
19623
19627
|
}
|
|
19624
|
-
function
|
|
19628
|
+
function Fi(i) {
|
|
19625
19629
|
return i * Math.PI / 180;
|
|
19626
19630
|
}
|
|
19627
19631
|
class qv extends Dn {
|
|
@@ -19645,7 +19649,7 @@ class qv extends Dn {
|
|
|
19645
19649
|
this.helperObject3D.applyHelperQuaternion(this.originObject3D.quaternion);
|
|
19646
19650
|
}
|
|
19647
19651
|
setRotateAngle(e) {
|
|
19648
|
-
const { x: n = 0, y: o = 0, z: s = 0 } = e, r = new I.Euler(
|
|
19652
|
+
const { x: n = 0, y: o = 0, z: s = 0 } = e, r = new I.Euler(Fi(n), Fi(o), Fi(s)), a = new I.Quaternion().setFromEuler(r);
|
|
19649
19653
|
if (this.hooks.emit("wantToRotate", a))
|
|
19650
19654
|
return;
|
|
19651
19655
|
const { originObject3D: c, rotateCenter: u } = this;
|
|
@@ -19901,7 +19905,7 @@ const Bl = "v1.0.0", no = "Object3DHelperPlugin", ko = `${no}@${Bl}`, n1 = () =>
|
|
|
19901
19905
|
}, o1 = () => {
|
|
19902
19906
|
console.error(`${ko} is disabled`);
|
|
19903
19907
|
};
|
|
19904
|
-
class s1 extends
|
|
19908
|
+
class s1 extends pi {
|
|
19905
19909
|
constructor(e) {
|
|
19906
19910
|
super(e);
|
|
19907
19911
|
m(this, "version", Bl);
|