@realsee/dnalogel 2.13.0 → 2.13.1
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 +4 -4
- package/dist/index.js +162 -162
- package/dist/index.umd.js +4 -4
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +25 -25
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +23 -23
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +45 -45
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +19 -19
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- 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 +5 -5
- 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/PanoVideoPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +15 -15
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/HelperOffset.html +8 -8
- package/docs/interfaces/ImagePlaneGroup.html +6 -6
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/MinMax.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/ObjectHelperControllers.html +9 -9
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +14 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCacheInterface.html +12 -12
- package/docs/interfaces/TagConfig.html +11 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +6 -6
- package/docs/interfaces/TagStyle.html +6 -6
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/PanoVideoPluginType.html +5 -5
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/AudioAppearance.html +5 -5
- package/docs/types/AudioTagTypeConfigKey.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/ClassFunctionParameters.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeySplit.html +5 -5
- package/docs/types/ContentTypeMap.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/LoadTagConfig.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/MediaStore.html +5 -5
- package/docs/types/ModelElement.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoIndex.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PanoVideoPluginParameterType.html +5 -5
- package/docs/types/PanoVideoPluginReturnType.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PlaneTagElement.html +5 -5
- package/docs/types/Point2DElement.html +5 -5
- package/docs/types/Point2DTag.html +5 -5
- package/docs/types/Point3DElement.html +5 -5
- package/docs/types/Point3DTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/PointTagElement.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/StickType.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagContentType.html +5 -5
- package/docs/types/TagDimensionType.html +5 -5
- package/docs/types/TagElement.html +5 -5
- package/docs/types/TagEvents.html +5 -5
- package/docs/types/TagGLTFObject.html +5 -5
- package/docs/types/TagHooks.html +5 -5
- package/docs/types/TagIconSize.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TagPointType.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/WorkCode.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/GuideLinePlugin/utils/getArrowMaterial.js +5 -5
- package/libs/PanoMeasurePlugin/utils/mouseGroup.js +21 -21
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/three/PointHelper.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var ql = Object.defineProperty, Jl = Object.defineProperties;
|
|
2
2
|
var Zl = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var To = Object.getOwnPropertySymbols;
|
|
4
4
|
var Kl = Object.prototype.hasOwnProperty, $l = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var Ci = (i, t, e) => t in i ? ql(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, R = (i, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
7
|
Kl.call(t, e) && Ci(i, e, t[e]);
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
8
|
+
if (To)
|
|
9
|
+
for (var e of To(t))
|
|
10
10
|
$l.call(t, e) && Ci(i, e, t[e]);
|
|
11
11
|
return i;
|
|
12
12
|
}, fe = (i, t) => Jl(i, Zl(t));
|
|
@@ -31,8 +31,8 @@ import * as hi from "@tweenjs/tween.js";
|
|
|
31
31
|
import yn, { Tween as ec, Easing as tc } from "@tweenjs/tween.js";
|
|
32
32
|
import { Camera as nc, Five as Ve, Subscribe as Xe } from "@realsee/five";
|
|
33
33
|
import * as I from "three";
|
|
34
|
-
import { Vector3 as U, Group as Gt, Raycaster as Mt, MeshBasicMaterial as wn, CanvasTexture as ic, AnimationMixer as oc, Color as xn, TextureLoader as ma, Vector2 as We, PlaneGeometry as sc, sRGBEncoding as rc, Mesh as gn, CurvePath as ac, LineCurve3 as lc, TubeGeometry as cc, ShaderMaterial as ga, SphereGeometry as uc, DoubleSide as pa, RingGeometry as dc, Quaternion as
|
|
35
|
-
import { CSS3DRenderer as pc, CSS3DObject as
|
|
34
|
+
import { Vector3 as U, Group as Gt, Raycaster as Mt, MeshBasicMaterial as wn, CanvasTexture as ic, AnimationMixer as oc, Color as xn, TextureLoader as ma, Vector2 as We, PlaneGeometry as sc, sRGBEncoding as rc, LinearFilter as Wi, Mesh as gn, CurvePath as ac, LineCurve3 as lc, TubeGeometry as cc, ShaderMaterial as ga, SphereGeometry as uc, DoubleSide as pa, RingGeometry as dc, Quaternion as ro, Euler as zo, Matrix4 as dn, Object3D as hc, VideoTexture as fc, Vector4 as mc, SphereBufferGeometry as gc } from "three";
|
|
35
|
+
import { CSS3DRenderer as pc, CSS3DObject as Ni } from "three/examples/jsm/renderers/CSS3DRenderer";
|
|
36
36
|
import { Line as Aa } from "@realsee/five/line";
|
|
37
37
|
import { FBXLoader as va } from "three/examples/jsm/loaders/FBXLoader";
|
|
38
38
|
import Dn from "hammerjs";
|
|
@@ -804,7 +804,7 @@ function fi(...i) {
|
|
|
804
804
|
}), t.divideScalar(i.length), t;
|
|
805
805
|
}
|
|
806
806
|
const ya = 1, Bc = `CSS3DObjectPlus@${ya}`, jc = 216e-5, Vc = 3e-3;
|
|
807
|
-
class Qc extends
|
|
807
|
+
class Qc extends Ni {
|
|
808
808
|
constructor(e) {
|
|
809
809
|
var k, C, L;
|
|
810
810
|
const n = e.container, o = e.cornerPoints, s = (k = e.ratio) != null ? k : Vc, r = (C = e.dpr) != null ? C : 1, a = (L = e.pointerEvents) != null ? L : "auto", l = Math.max(jc, s), c = o[0].distanceTo(o[1]), u = o[1].distanceTo(o[2]), d = ni(c / s * r), h = ni(u / s * r), f = fi(...o);
|
|
@@ -978,7 +978,7 @@ class Hc extends wa {
|
|
|
978
978
|
}), super.add(...e), this;
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
|
-
const Gc = 3,
|
|
981
|
+
const Gc = 3, _i = "CSS3DRenderer", hn = `${_i}@${Gc}`, jt = () => {
|
|
982
982
|
console.error(`${hn} is disposed`);
|
|
983
983
|
}, Le = {
|
|
984
984
|
css3DObjects: [],
|
|
@@ -1066,7 +1066,7 @@ class En {
|
|
|
1066
1066
|
});
|
|
1067
1067
|
m(this, "createObject", (t, e) => {
|
|
1068
1068
|
const n = new Qc(R({ cornerPoints: t }, e));
|
|
1069
|
-
return n.element.classList.add(`${
|
|
1069
|
+
return n.element.classList.add(`${_i}__container`), n.element.id = `${_i}__container--${n.uuid}`, n;
|
|
1070
1070
|
});
|
|
1071
1071
|
t && this.setScene(t);
|
|
1072
1072
|
}
|
|
@@ -1198,9 +1198,9 @@ class En {
|
|
|
1198
1198
|
handleDisable() {
|
|
1199
1199
|
var t, e, n;
|
|
1200
1200
|
this.store.frontModeGroup.children.forEach((o) => {
|
|
1201
|
-
o instanceof
|
|
1201
|
+
o instanceof Ni && 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 Ni && 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() {
|
|
@@ -1441,16 +1441,16 @@ function xi(i) {
|
|
|
1441
1441
|
return i && Zt(i.destroy) ? i.destroy : X;
|
|
1442
1442
|
}
|
|
1443
1443
|
const xa = typeof window != "undefined";
|
|
1444
|
-
let Da = xa ? () => window.performance.now() : () => Date.now(),
|
|
1444
|
+
let Da = xa ? () => window.performance.now() : () => Date.now(), ao = xa ? (i) => requestAnimationFrame(i) : X;
|
|
1445
1445
|
const Wt = /* @__PURE__ */ new Set();
|
|
1446
1446
|
function La(i) {
|
|
1447
1447
|
Wt.forEach((t) => {
|
|
1448
1448
|
t.c(i) || (Wt.delete(t), t.f());
|
|
1449
|
-
}), Wt.size !== 0 &&
|
|
1449
|
+
}), Wt.size !== 0 && ao(La);
|
|
1450
1450
|
}
|
|
1451
1451
|
function Sa(i) {
|
|
1452
1452
|
let t;
|
|
1453
|
-
return Wt.size === 0 &&
|
|
1453
|
+
return Wt.size === 0 && ao(La), {
|
|
1454
1454
|
promise: new Promise((e) => {
|
|
1455
1455
|
Wt.add(t = { c: i, f: e });
|
|
1456
1456
|
}),
|
|
@@ -1463,13 +1463,13 @@ function B(i, t) {
|
|
|
1463
1463
|
i.appendChild(t);
|
|
1464
1464
|
}
|
|
1465
1465
|
function ce(i, t, e) {
|
|
1466
|
-
const n =
|
|
1466
|
+
const n = lo(i);
|
|
1467
1467
|
if (!n.getElementById(t)) {
|
|
1468
1468
|
const o = z("style");
|
|
1469
1469
|
o.id = t, o.textContent = e, Ma(n, o);
|
|
1470
1470
|
}
|
|
1471
1471
|
}
|
|
1472
|
-
function
|
|
1472
|
+
function lo(i) {
|
|
1473
1473
|
if (!i)
|
|
1474
1474
|
return document;
|
|
1475
1475
|
const t = i.getRootNode ? i.getRootNode() : i.ownerDocument;
|
|
@@ -1477,7 +1477,7 @@ function ao(i) {
|
|
|
1477
1477
|
}
|
|
1478
1478
|
function Uc(i) {
|
|
1479
1479
|
const t = z("style");
|
|
1480
|
-
return Ma(
|
|
1480
|
+
return Ma(lo(i), t), t.sheet;
|
|
1481
1481
|
}
|
|
1482
1482
|
function Ma(i, t) {
|
|
1483
1483
|
return B(i.head || i, t), t.sheet;
|
|
@@ -1606,19 +1606,19 @@ function Ba(i, t, e, n, o, s, r, a = 0) {
|
|
|
1606
1606
|
`;
|
|
1607
1607
|
}
|
|
1608
1608
|
const u = c + `100% {${r(e, 1 - e)}}
|
|
1609
|
-
}`, d = `__svelte_${Zc(u)}_${a}`, h =
|
|
1609
|
+
}`, d = `__svelte_${Zc(u)}_${a}`, h = lo(i), { stylesheet: f, rules: p } = oi.get(h) || Kc(h, i);
|
|
1610
1610
|
p[d] || (p[d] = !0, f.insertRule(`@keyframes ${d} ${u}`, f.cssRules.length));
|
|
1611
1611
|
const v = i.style.animation || "";
|
|
1612
1612
|
return i.style.animation = `${v ? `${v}, ` : ""}${d} ${n}ms linear ${o}ms 1 both`, si += 1, d;
|
|
1613
1613
|
}
|
|
1614
|
-
function
|
|
1614
|
+
function Xi(i, t) {
|
|
1615
1615
|
const e = (i.style.animation || "").split(", "), n = e.filter(
|
|
1616
1616
|
t ? (s) => s.indexOf(t) < 0 : (s) => s.indexOf("__svelte") === -1
|
|
1617
1617
|
), o = e.length - n.length;
|
|
1618
1618
|
o && (i.style.animation = n.join(", "), si -= o, si || $c());
|
|
1619
1619
|
}
|
|
1620
1620
|
function $c() {
|
|
1621
|
-
|
|
1621
|
+
ao(() => {
|
|
1622
1622
|
si || (oi.forEach((i) => {
|
|
1623
1623
|
const { ownerNode: t } = i.stylesheet;
|
|
1624
1624
|
t && S(t);
|
|
@@ -1659,7 +1659,7 @@ function mi() {
|
|
|
1659
1659
|
return !0;
|
|
1660
1660
|
};
|
|
1661
1661
|
}
|
|
1662
|
-
function
|
|
1662
|
+
function Yi(i, t) {
|
|
1663
1663
|
return Ct().$$.context.set(i, t), t;
|
|
1664
1664
|
}
|
|
1665
1665
|
function Lt(i) {
|
|
@@ -1669,10 +1669,10 @@ function nn(i, t) {
|
|
|
1669
1669
|
const e = i.$$.callbacks[t.type];
|
|
1670
1670
|
e && e.slice().forEach((n) => n.call(this, t));
|
|
1671
1671
|
}
|
|
1672
|
-
const fn = [], Qe = [], $n = [],
|
|
1673
|
-
let
|
|
1672
|
+
const fn = [], Qe = [], $n = [], Ui = [], Qa = Promise.resolve();
|
|
1673
|
+
let qi = !1;
|
|
1674
1674
|
function Oa() {
|
|
1675
|
-
|
|
1675
|
+
qi || (qi = !0, Qa.then(co));
|
|
1676
1676
|
}
|
|
1677
1677
|
function Ho() {
|
|
1678
1678
|
return Oa(), Qa;
|
|
@@ -1681,11 +1681,11 @@ function Ie(i) {
|
|
|
1681
1681
|
$n.push(i);
|
|
1682
1682
|
}
|
|
1683
1683
|
function eu(i) {
|
|
1684
|
-
|
|
1684
|
+
Ui.push(i);
|
|
1685
1685
|
}
|
|
1686
1686
|
const Di = /* @__PURE__ */ new Set();
|
|
1687
1687
|
let Hn = 0;
|
|
1688
|
-
function
|
|
1688
|
+
function co() {
|
|
1689
1689
|
const i = Pn;
|
|
1690
1690
|
do {
|
|
1691
1691
|
for (; Hn < fn.length; ) {
|
|
@@ -1700,9 +1700,9 @@ function lo() {
|
|
|
1700
1700
|
}
|
|
1701
1701
|
$n.length = 0;
|
|
1702
1702
|
} while (fn.length);
|
|
1703
|
-
for (;
|
|
1704
|
-
|
|
1705
|
-
|
|
1703
|
+
for (; Ui.length; )
|
|
1704
|
+
Ui.pop()();
|
|
1705
|
+
qi = !1, Di.clear(), at(i);
|
|
1706
1706
|
}
|
|
1707
1707
|
function tu(i) {
|
|
1708
1708
|
if (i.fragment !== null) {
|
|
@@ -1749,7 +1749,7 @@ const Fa = { duration: 0 };
|
|
|
1749
1749
|
function Tt(i, t, e) {
|
|
1750
1750
|
let n = t(i, e), o = !1, s, r, a = 0;
|
|
1751
1751
|
function l() {
|
|
1752
|
-
s &&
|
|
1752
|
+
s && Xi(i, s);
|
|
1753
1753
|
}
|
|
1754
1754
|
function c() {
|
|
1755
1755
|
const { delay: d = 0, duration: h = 300, easing: f = At, tick: p = X, css: v } = n || Fa;
|
|
@@ -1770,7 +1770,7 @@ function Tt(i, t, e) {
|
|
|
1770
1770
|
let u = !1;
|
|
1771
1771
|
return {
|
|
1772
1772
|
start() {
|
|
1773
|
-
u || (u = !0,
|
|
1773
|
+
u || (u = !0, Xi(i), Zt(n) ? (n = n(), Ra().then(c)) : c());
|
|
1774
1774
|
},
|
|
1775
1775
|
invalidate() {
|
|
1776
1776
|
u = !1;
|
|
@@ -1804,7 +1804,7 @@ function on(i, t, e) {
|
|
|
1804
1804
|
n = n(), a();
|
|
1805
1805
|
}) : a(), {
|
|
1806
1806
|
end(l) {
|
|
1807
|
-
l && n.tick && n.tick(1, 0), o && (s &&
|
|
1807
|
+
l && n.tick && n.tick(1, 0), o && (s && Xi(i, s), o = !1);
|
|
1808
1808
|
}
|
|
1809
1809
|
};
|
|
1810
1810
|
}
|
|
@@ -1822,7 +1822,7 @@ function ai(i, t) {
|
|
|
1822
1822
|
h !== s && d && (se(), D(d, 1, 1, () => {
|
|
1823
1823
|
t.blocks[h] === d && (t.blocks[h] = null);
|
|
1824
1824
|
}), re());
|
|
1825
|
-
}) : t.block.d(1), c.c(), P(c, 1), c.m(t.mount(), t.anchor), u = !0), t.block = c, t.blocks && (t.blocks[s] = c), u &&
|
|
1825
|
+
}) : t.block.d(1), c.c(), P(c, 1), c.m(t.mount(), t.anchor), u = !0), t.block = c, t.blocks && (t.blocks[s] = c), u && co();
|
|
1826
1826
|
}
|
|
1827
1827
|
if (Xc(i)) {
|
|
1828
1828
|
const o = Ct();
|
|
@@ -1844,7 +1844,7 @@ function Ha(i, t, e) {
|
|
|
1844
1844
|
i.current === i.then && (n[i.value] = o), i.current === i.catch && (n[i.error] = o), i.block.p(n, e);
|
|
1845
1845
|
}
|
|
1846
1846
|
const nu = typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : global;
|
|
1847
|
-
function
|
|
1847
|
+
function uo(i, t) {
|
|
1848
1848
|
i.d(1), t.delete(i.key);
|
|
1849
1849
|
}
|
|
1850
1850
|
function Pt(i, t) {
|
|
@@ -1954,7 +1954,7 @@ function ie(i, t, e, n, o, s, r, a = [-1]) {
|
|
|
1954
1954
|
c.fragment && c.fragment.l(d), d.forEach(S);
|
|
1955
1955
|
} else
|
|
1956
1956
|
c.fragment && c.fragment.c();
|
|
1957
|
-
t.intro && P(i.$$.fragment), J(i, t.target, t.anchor, t.customElement),
|
|
1957
|
+
t.intro && P(i.$$.fragment), J(i, t.target, t.anchor, t.customElement), co();
|
|
1958
1958
|
}
|
|
1959
1959
|
at(l);
|
|
1960
1960
|
}
|
|
@@ -2271,14 +2271,14 @@ function vu(i, t) {
|
|
|
2271
2271
|
function bu(i, t) {
|
|
2272
2272
|
return gi(i, t) ? !0 : ci(i) && ci(t) ? Au(i, t) : Array.isArray(i) && Array.isArray(t) ? vu(i, t) : !1;
|
|
2273
2273
|
}
|
|
2274
|
-
function
|
|
2274
|
+
function ho(i, t) {
|
|
2275
2275
|
return gi(i, t) ? !0 : ci(i) && ci(t) ? wu(i, t) : Array.isArray(i) && Array.isArray(t) ? yu(i, t) : !1;
|
|
2276
2276
|
}
|
|
2277
2277
|
function yu(i, t) {
|
|
2278
2278
|
if (i.length !== t.length)
|
|
2279
2279
|
return !1;
|
|
2280
2280
|
for (let e = 0, n = i.length; e < n; e++)
|
|
2281
|
-
if (!
|
|
2281
|
+
if (!ho(i[e], t[e]))
|
|
2282
2282
|
return !1;
|
|
2283
2283
|
return !0;
|
|
2284
2284
|
}
|
|
@@ -2288,13 +2288,13 @@ function wu(i, t) {
|
|
|
2288
2288
|
return !1;
|
|
2289
2289
|
for (let o = 0, s = e.length; o < s; o++) {
|
|
2290
2290
|
const r = e[o];
|
|
2291
|
-
if (!
|
|
2291
|
+
if (!ho(i[r], t[r]))
|
|
2292
2292
|
return !1;
|
|
2293
2293
|
}
|
|
2294
2294
|
return !0;
|
|
2295
2295
|
}
|
|
2296
2296
|
function $e(i, t, e = { deep: !1 }) {
|
|
2297
|
-
return e.deep ?
|
|
2297
|
+
return e.deep ? ho(i, t) : bu(i, t);
|
|
2298
2298
|
}
|
|
2299
2299
|
function Xt(i) {
|
|
2300
2300
|
return i < 0.5 ? 4 * i * i * i : 0.5 * Math.pow(2 * i - 2, 3) + 1;
|
|
@@ -2450,7 +2450,7 @@ class Tu extends oe {
|
|
|
2450
2450
|
}
|
|
2451
2451
|
}
|
|
2452
2452
|
const Vt = [];
|
|
2453
|
-
function
|
|
2453
|
+
function fo(i, t = X) {
|
|
2454
2454
|
let e;
|
|
2455
2455
|
const n = /* @__PURE__ */ new Set();
|
|
2456
2456
|
function o(a) {
|
|
@@ -3090,7 +3090,7 @@ function od(i) {
|
|
|
3090
3090
|
d[g].d(1);
|
|
3091
3091
|
d.length = u.length;
|
|
3092
3092
|
}
|
|
3093
|
-
v & 22 && (h = p[4], a = qe(a, v, f, 1, p, h, l, r,
|
|
3093
|
+
v & 22 && (h = p[4], a = qe(a, v, f, 1, p, h, l, r, uo, $o, null, Jo)), v & 1 && c !== (c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + p[0] + " svelte-djlmk4") && b(t, "class", c), v & 5 && q(t, "is-row", p[2]);
|
|
3094
3094
|
},
|
|
3095
3095
|
i: X,
|
|
3096
3096
|
o: X,
|
|
@@ -3973,7 +3973,7 @@ function Od(i) {
|
|
|
3973
3973
|
}
|
|
3974
3974
|
function Rd(i, t, e) {
|
|
3975
3975
|
let { isCurrent: n } = t, { floorIndex: o } = t, { highlightEnable: s } = t, { hoverEnable: r } = t, { roomLabelsEnable: a } = t, { roomAreaEnable: l } = t, { roomNameEnable: c } = t, { ruleLabelsEnable: u } = t, { floorplanData: d } = t, { getRoomAreaText: h } = t, { getLabelElement: f } = t, { getRuleDistanceText: p } = t, { adaptiveRoomLabelVisibleEnable: v } = t, { highlightData: g } = t;
|
|
3976
|
-
const A =
|
|
3976
|
+
const A = fo(void 0);
|
|
3977
3977
|
return i.$$set = (y) => {
|
|
3978
3978
|
"isCurrent" in y && e(0, n = y.isCurrent), "floorIndex" in y && e(1, o = y.floorIndex), "highlightEnable" in y && e(2, s = y.highlightEnable), "hoverEnable" in y && e(3, r = y.hoverEnable), "roomLabelsEnable" in y && e(4, a = y.roomLabelsEnable), "roomAreaEnable" in y && e(5, l = y.roomAreaEnable), "roomNameEnable" in y && e(6, c = y.roomNameEnable), "ruleLabelsEnable" in y && e(7, u = y.ruleLabelsEnable), "floorplanData" in y && e(8, d = y.floorplanData), "getRoomAreaText" in y && e(9, h = y.getRoomAreaText), "getLabelElement" in y && e(10, f = y.getLabelElement), "getRuleDistanceText" in y && e(11, p = y.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in y && e(12, v = y.adaptiveRoomLabelVisibleEnable), "highlightData" in y && e(13, g = y.highlightData);
|
|
3979
3979
|
}, [
|
|
@@ -4285,7 +4285,7 @@ function Wd(i, t, e) {
|
|
|
4285
4285
|
L
|
|
4286
4286
|
];
|
|
4287
4287
|
}
|
|
4288
|
-
class
|
|
4288
|
+
class mo extends oe {
|
|
4289
4289
|
constructor(t) {
|
|
4290
4290
|
super(), ie(
|
|
4291
4291
|
this,
|
|
@@ -4418,17 +4418,17 @@ function ps(i, t) {
|
|
|
4418
4418
|
...i.work.observers.filter((n) => n.floorIndex === t).map((n) => n.standingPosition.y)
|
|
4419
4419
|
);
|
|
4420
4420
|
}
|
|
4421
|
-
function
|
|
4421
|
+
function go(i, t, e = xt.BOUNDING_CENTER) {
|
|
4422
4422
|
const n = ps(i, t), o = ps(i, t + 1);
|
|
4423
4423
|
return e === xt.BOUNDING_CENTER ? (i.model.bounding.max.y + i.model.bounding.min.y) / 2 : e === xt.CEILING ? o : n;
|
|
4424
4424
|
}
|
|
4425
|
-
function
|
|
4426
|
-
const o =
|
|
4425
|
+
function po(i, t, e, n) {
|
|
4426
|
+
const o = go(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);
|
|
4427
4427
|
return Math.abs((l.x - a.x) / 1e3) * (t.getBoundingClientRect().width / 2);
|
|
4428
4428
|
}
|
|
4429
4429
|
class Sn {
|
|
4430
4430
|
constructor(t, e) {
|
|
4431
|
-
m(this, "VERSION", "2.13.
|
|
4431
|
+
m(this, "VERSION", "2.13.1");
|
|
4432
4432
|
m(this, "five");
|
|
4433
4433
|
m(this, "hooks", new Jt());
|
|
4434
4434
|
m(this, "staticPrefix", "//vrlab-static.ljcdn.com");
|
|
@@ -4442,7 +4442,7 @@ class zt extends Sn {
|
|
|
4442
4442
|
}
|
|
4443
4443
|
var Ge = /* @__PURE__ */ ((i) => (i.UnknownError = "UnknownError", i.DataNotLoaded = "DataNotLoaded", i.BreakOffByHide = "BreakOffByHide", i.BreakOffByDisable = "BreakOffByDisable", i.ModelNotLoaded = "ModelNotLoaded", i.ChangeModeError = "ChangeModeError", i.UpdateCameraError = "UpdateCameraError", i))(Ge || {});
|
|
4444
4444
|
const Ua = 500, Kd = 80;
|
|
4445
|
-
function
|
|
4445
|
+
function Ji(i, t, e = 4) {
|
|
4446
4446
|
return Math.floor(i * Math.pow(10, e)) === Math.floor(t * Math.pow(10, e));
|
|
4447
4447
|
}
|
|
4448
4448
|
function qa(i, t) {
|
|
@@ -4457,22 +4457,22 @@ function qa(i, t) {
|
|
|
4457
4457
|
if (u === void 0)
|
|
4458
4458
|
return !0;
|
|
4459
4459
|
const d = l[c];
|
|
4460
|
-
return typeof u == "number" && typeof d == "number" ?
|
|
4460
|
+
return typeof u == "number" && typeof d == "number" ? Ji(u, d, 2) : u === d;
|
|
4461
4461
|
}) : !0;
|
|
4462
4462
|
})() || n(new Error("five pose \u4E0E\u9884\u671F\u4E0D\u7B26")), e();
|
|
4463
4463
|
});
|
|
4464
4464
|
});
|
|
4465
4465
|
});
|
|
4466
4466
|
}
|
|
4467
|
-
function
|
|
4467
|
+
function Ao(i, t) {
|
|
4468
4468
|
if (i.currentMode !== t.mode)
|
|
4469
4469
|
return !1;
|
|
4470
4470
|
const { latitude: e, longitude: n, fov: o } = t, { latitude: s, longitude: r } = i.getCurrentState(), a = i.camera.fov;
|
|
4471
|
-
return !(!
|
|
4471
|
+
return !(!Ji(e, s, 2) || !Ji(n, r, 2) || o !== a);
|
|
4472
4472
|
}
|
|
4473
4473
|
function Ja(i, t, e = !0) {
|
|
4474
4474
|
return W(this, null, function* () {
|
|
4475
|
-
if (
|
|
4475
|
+
if (Ao(i, t) === !0)
|
|
4476
4476
|
return;
|
|
4477
4477
|
const o = i.getCurrentState();
|
|
4478
4478
|
if (o.mode !== t.mode) {
|
|
@@ -4546,9 +4546,9 @@ class th extends zt {
|
|
|
4546
4546
|
!this.state.enabled || (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, e.userAction || !0), this._hide(e)));
|
|
4547
4547
|
}));
|
|
4548
4548
|
m(this, "updateSize", () => {
|
|
4549
|
-
if (!this.data || !
|
|
4549
|
+
if (!this.data || !Ao(this.five, this.showState) || !this.container || !this.wrapper)
|
|
4550
4550
|
return;
|
|
4551
|
-
const { min: e, max: n } = this.data.bounding, o = n.x - e.x, s = n.y - e.y, r = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, a =
|
|
4551
|
+
const { min: e, max: n } = this.data.bounding, o = n.x - e.x, s = n.y - e.y, r = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, a = po(this.five, this.wrapper, this.floorIndex, r), l = Math.ceil(o * a), c = Math.ceil(s * a);
|
|
4552
4552
|
this.size.width === l && this.size.height === c || (this.container.style.width = l + "px", this.container.style.height = c + "px", this.size = { width: l, height: c });
|
|
4553
4553
|
});
|
|
4554
4554
|
m(this, "highlight", (e) => {
|
|
@@ -4784,7 +4784,7 @@ class th extends zt {
|
|
|
4784
4784
|
});
|
|
4785
4785
|
if (this.app)
|
|
4786
4786
|
return this.app.$set(n);
|
|
4787
|
-
this.app = new
|
|
4787
|
+
this.app = new mo({ target: this.container, intro: !0, props: n });
|
|
4788
4788
|
}
|
|
4789
4789
|
}
|
|
4790
4790
|
const N1 = (i, t) => new th(i, t);
|
|
@@ -4830,9 +4830,9 @@ class oh extends zt {
|
|
|
4830
4830
|
!this.state.enabled || (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, e.userAction || !0), this._hide(e)));
|
|
4831
4831
|
}));
|
|
4832
4832
|
m(this, "updateSize", () => {
|
|
4833
|
-
if (!this.data || !
|
|
4833
|
+
if (!this.data || !Ao(this.five, this.showState) || !this.container || !this.wrapper)
|
|
4834
4834
|
return;
|
|
4835
|
-
const { min: e, max: n } = this.data.bounding, o = n.x - e.x, s = n.y - e.y, r = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, a =
|
|
4835
|
+
const { min: e, max: n } = this.data.bounding, o = n.x - e.x, s = n.y - e.y, r = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, a = po(this.five, this.wrapper, this.floorIndex, r), l = Math.ceil(o * a), c = Math.ceil(s * a);
|
|
4836
4836
|
this.size.width === l && this.size.height === c || (this.container.style.width = l + "px", this.container.style.height = c + "px", this.size = { width: l, height: c });
|
|
4837
4837
|
});
|
|
4838
4838
|
m(this, "highlight", (e) => {
|
|
@@ -5024,7 +5024,7 @@ class oh extends zt {
|
|
|
5024
5024
|
}
|
|
5025
5025
|
updatePosition() {
|
|
5026
5026
|
var a;
|
|
5027
|
-
const e =
|
|
5027
|
+
const e = go(this.five, this.floorIndex, this.state.config.attachedTo), n = (a = this.five.model) == null ? void 0 : a.bounding.getCenter(new I.Vector3()).setY(e);
|
|
5028
5028
|
if (!n)
|
|
5029
5029
|
return;
|
|
5030
5030
|
const o = n.clone().project(this.five.camera), s = (o.x + 1) / 2, r = -(o.y - 1) / 2;
|
|
@@ -5073,7 +5073,7 @@ class oh extends zt {
|
|
|
5073
5073
|
});
|
|
5074
5074
|
if (this.app)
|
|
5075
5075
|
return this.app.$set(n);
|
|
5076
|
-
this.app = new
|
|
5076
|
+
this.app = new mo({ target: this.container, intro: !0, props: n });
|
|
5077
5077
|
}
|
|
5078
5078
|
}
|
|
5079
5079
|
const _1 = (i, t) => new oh(i, t);
|
|
@@ -5097,7 +5097,7 @@ class sh extends zt {
|
|
|
5097
5097
|
m(this, "updateSize", () => {
|
|
5098
5098
|
if (!this.data || !this.container || !this.wrapper || this.five.getCurrentState().mode !== "Topview")
|
|
5099
5099
|
return;
|
|
5100
|
-
const { min: e, max: n } = this.data.bounding, o = n.x - e.x, s = n.y - e.y, r = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, a =
|
|
5100
|
+
const { min: e, max: n } = this.data.bounding, o = n.x - e.x, s = n.y - e.y, r = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, a = po(this.five, this.wrapper, this.floorIndex, r), l = Math.ceil(o * a), c = Math.ceil(s * a);
|
|
5101
5101
|
this.size.width === l && this.size.height === c || (this.container.style.width = l + "px", this.container.style.height = c + "px", this.size = { width: l, height: c });
|
|
5102
5102
|
});
|
|
5103
5103
|
m(this, "dispose", () => {
|
|
@@ -5195,7 +5195,7 @@ class sh extends zt {
|
|
|
5195
5195
|
}
|
|
5196
5196
|
updatePosition() {
|
|
5197
5197
|
var a;
|
|
5198
|
-
const e =
|
|
5198
|
+
const e = go(this.five, this.floorIndex, this.state.config.attachedTo), n = (a = this.five.model) == null ? void 0 : a.bounding.getCenter(new I.Vector3()).setY(e);
|
|
5199
5199
|
if (!n)
|
|
5200
5200
|
return;
|
|
5201
5201
|
const o = n.clone().project(this.five.camera), s = (o.x + 1) / 2, r = -(o.y - 1) / 2;
|
|
@@ -5316,11 +5316,11 @@ class sh extends zt {
|
|
|
5316
5316
|
});
|
|
5317
5317
|
if (this.app)
|
|
5318
5318
|
return this.app.$set(n);
|
|
5319
|
-
this.app = new
|
|
5319
|
+
this.app = new mo({ target: this.container, intro: !0, props: n });
|
|
5320
5320
|
}
|
|
5321
5321
|
}
|
|
5322
5322
|
const X1 = (i, t) => new sh(i, t);
|
|
5323
|
-
function
|
|
5323
|
+
function vo(i, t = 200) {
|
|
5324
5324
|
let e;
|
|
5325
5325
|
return function(...n) {
|
|
5326
5326
|
e || (i(...n), e = setTimeout(function() {
|
|
@@ -5365,7 +5365,7 @@ function ch(i, t, e) {
|
|
|
5365
5365
|
function h(p) {
|
|
5366
5366
|
e(6, c = p);
|
|
5367
5367
|
}
|
|
5368
|
-
const f =
|
|
5368
|
+
const f = vo(
|
|
5369
5369
|
(p) => {
|
|
5370
5370
|
e(7, u = p.longitude);
|
|
5371
5371
|
},
|
|
@@ -5452,7 +5452,7 @@ function hh(i) {
|
|
|
5452
5452
|
e[l].m(t, null);
|
|
5453
5453
|
},
|
|
5454
5454
|
p(r, [a]) {
|
|
5455
|
-
a & 1 && (o = r[0], e = qe(e, a, s, 1, r, o, n, t,
|
|
5455
|
+
a & 1 && (o = r[0], e = qe(e, a, s, 1, r, o, n, t, uo, vs, null, As));
|
|
5456
5456
|
},
|
|
5457
5457
|
i: X,
|
|
5458
5458
|
o: X,
|
|
@@ -6127,7 +6127,7 @@ const Ih = ({ x: i, y: t, z: e }) => new U(i, t, e), K1 = (i, t) => {
|
|
|
6127
6127
|
}, h = (y) => y === "Floorplan" ? u() : d();
|
|
6128
6128
|
return { load: l, enable: (y) => (e.enabled || (e.enabled = !0, h(i.currentMode), i.on("modeChange", h), u(y)), !0), disable: () => (e.enabled && (e.enabled = !1, d(), i.off("modeChange", h)), !0) };
|
|
6129
6129
|
};
|
|
6130
|
-
class
|
|
6130
|
+
class bo extends yn.Tween {
|
|
6131
6131
|
constructor() {
|
|
6132
6132
|
super(...arguments);
|
|
6133
6133
|
m(this, "disposeMethods", []);
|
|
@@ -6141,7 +6141,7 @@ class vo extends yn.Tween {
|
|
|
6141
6141
|
}
|
|
6142
6142
|
}
|
|
6143
6143
|
function Ka(i, t = yn.Easing.Linear.None) {
|
|
6144
|
-
const e = new
|
|
6144
|
+
const e = new bo({ progress: 0 }).to({ progress: 1 });
|
|
6145
6145
|
return i !== void 0 && e.duration(i), t !== void 0 && e.easing(t), e;
|
|
6146
6146
|
}
|
|
6147
6147
|
const In = window.requestAnimationFrame || ((i) => setTimeout(i, 16)), kh = window.cancelAnimationFrame || clearTimeout;
|
|
@@ -6200,9 +6200,9 @@ function Es(i) {
|
|
|
6200
6200
|
function Mi(i, t, e) {
|
|
6201
6201
|
return i + (t - i) * e;
|
|
6202
6202
|
}
|
|
6203
|
-
const
|
|
6203
|
+
const Zi = (i, t, e) => {
|
|
6204
6204
|
const n = Math.PI, o = n * 2;
|
|
6205
|
-
return i = Cs(i), t = Cs(t), e === st.Anticlockwise && i < t && (i += o), e === st.Clockwise && t < i && (t += o), e === st.Loop && t - i > n ?
|
|
6205
|
+
return i = Cs(i), t = Cs(t), e === st.Anticlockwise && i < t && (i += o), e === st.Clockwise && t < i && (t += o), e === st.Loop && t - i > n ? Zi(i, t, st.Anticlockwise) : e === st.Loop && i - t > n ? Zi(i, t, st.Clockwise) : { from: i, to: t };
|
|
6206
6206
|
}, $1 = (i) => {
|
|
6207
6207
|
const t = {}, e = (l, c, ...u) => W(void 0, [l, c, ...u], function* (s, r, a = { preload: !0 }) {
|
|
6208
6208
|
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((d, h) => {
|
|
@@ -6220,7 +6220,7 @@ const Ji = (i, t, e) => {
|
|
|
6220
6220
|
) : h(!1);
|
|
6221
6221
|
});
|
|
6222
6222
|
}), n = (s) => {
|
|
6223
|
-
const r = i.state, a = Es(r.latitude), l = Es(s.latitude), { from: c, to: u } =
|
|
6223
|
+
const r = i.state, a = Es(r.latitude), l = Es(s.latitude), { from: c, to: u } = Zi(
|
|
6224
6224
|
r.longitude,
|
|
6225
6225
|
s.longitude,
|
|
6226
6226
|
s.rotation || st.Loop
|
|
@@ -6892,7 +6892,7 @@ function Wh(i, t, e) {
|
|
|
6892
6892
|
};
|
|
6893
6893
|
});
|
|
6894
6894
|
e(0, r = G);
|
|
6895
|
-
}, f = () => vi(h), p =
|
|
6895
|
+
}, f = () => vi(h), p = vo(h, 80);
|
|
6896
6896
|
return Ue(() => {
|
|
6897
6897
|
h(), n.on("panoArrived", h), n.on("modeChange", h), n.on("cameraDirectionUpdate", f), n.on("movingToPano", f), n.on("mouseWheel", () => p()), n.on("pinchGesture", () => p());
|
|
6898
6898
|
}), Et(() => {
|
|
@@ -6989,7 +6989,7 @@ function Yh() {
|
|
|
6989
6989
|
};
|
|
6990
6990
|
}
|
|
6991
6991
|
const Uh = new I.TextureLoader();
|
|
6992
|
-
function
|
|
6992
|
+
function Ki(i) {
|
|
6993
6993
|
return W(this, null, function* () {
|
|
6994
6994
|
return new Promise((t, e) => {
|
|
6995
6995
|
Uh.load(i, t, void 0, e);
|
|
@@ -7147,7 +7147,7 @@ class qh extends zt {
|
|
|
7147
7147
|
}
|
|
7148
7148
|
loadCompassMesh() {
|
|
7149
7149
|
return W(this, null, function* () {
|
|
7150
|
-
const e = this.state.config.compassImageUrl, n = yield
|
|
7150
|
+
const e = this.state.config.compassImageUrl, n = yield Ki(e), o = new I.CircleGeometry(0.7, 32), s = new I.MeshBasicMaterial({
|
|
7151
7151
|
map: n,
|
|
7152
7152
|
transparent: !0,
|
|
7153
7153
|
opacity: 0,
|
|
@@ -7158,7 +7158,7 @@ class qh extends zt {
|
|
|
7158
7158
|
}
|
|
7159
7159
|
loadEntryDoorMesh() {
|
|
7160
7160
|
return W(this, null, function* () {
|
|
7161
|
-
const e = this.state.config.entryDoorImageUrl, n = yield
|
|
7161
|
+
const e = this.state.config.entryDoorImageUrl, n = yield Ki(e), o = new I.PlaneGeometry(0.2, 0.16), s = new I.MeshBasicMaterial({
|
|
7162
7162
|
map: n,
|
|
7163
7163
|
transparent: !0,
|
|
7164
7164
|
opacity: 0.8,
|
|
@@ -7370,7 +7370,7 @@ class tt {
|
|
|
7370
7370
|
return new tt(this.position);
|
|
7371
7371
|
}
|
|
7372
7372
|
}
|
|
7373
|
-
class
|
|
7373
|
+
class yo {
|
|
7374
7374
|
constructor(t) {
|
|
7375
7375
|
m(this, "id", He());
|
|
7376
7376
|
m(this, "lines", []);
|
|
@@ -7625,7 +7625,7 @@ class sn {
|
|
|
7625
7625
|
return t.text = this.text, t;
|
|
7626
7626
|
}
|
|
7627
7627
|
}
|
|
7628
|
-
class
|
|
7628
|
+
class wo {
|
|
7629
7629
|
constructor(t) {
|
|
7630
7630
|
m(this, "config");
|
|
7631
7631
|
m(this, "polylines", []);
|
|
@@ -7675,7 +7675,7 @@ class yo {
|
|
|
7675
7675
|
getClosestPoint() {
|
|
7676
7676
|
}
|
|
7677
7677
|
parse(t) {
|
|
7678
|
-
this.clear(), this.polylines.push(...t.polylines.map((e) => new
|
|
7678
|
+
this.clear(), this.polylines.push(...t.polylines.map((e) => new yo({ model: this }).fromJson(e))), this.polylines.forEach((e) => this.hook.emit("polylineAdded", e));
|
|
7679
7679
|
}
|
|
7680
7680
|
toJson() {
|
|
7681
7681
|
return {
|
|
@@ -7728,12 +7728,12 @@ class bi {
|
|
|
7728
7728
|
t && (t.removeEventListener("touchstart", Xn), t.removeEventListener("contextmenu", Xn));
|
|
7729
7729
|
}
|
|
7730
7730
|
}
|
|
7731
|
-
function
|
|
7731
|
+
function $i(i) {
|
|
7732
7732
|
const { x: t, y: e } = i.center, { clientWidth: n, clientHeight: o } = i.target, s = i.target.getBoundingClientRect(), r = new We(t, e).sub(new We(s.left, s.top)), a = new We(r.x / n * 2 - 1, -(r.y / o) * 2 + 1);
|
|
7733
7733
|
return { point: r, ndcPoint: a };
|
|
7734
7734
|
}
|
|
7735
7735
|
function zi(i, t) {
|
|
7736
|
-
const e =
|
|
7736
|
+
const e = $i(t).ndcPoint, n = new Mt();
|
|
7737
7737
|
return n.setFromCamera(e, i.camera), i.model.intersectRaycaster(n);
|
|
7738
7738
|
}
|
|
7739
7739
|
class Yn extends bi {
|
|
@@ -7748,7 +7748,7 @@ class Yn extends bi {
|
|
|
7748
7748
|
m(this, "fiveElement");
|
|
7749
7749
|
m(this, "lastPoint", null);
|
|
7750
7750
|
m(this, "hammer");
|
|
7751
|
-
m(this, "onIntersectionUpdate",
|
|
7751
|
+
m(this, "onIntersectionUpdate", vo((e, n) => {
|
|
7752
7752
|
var s;
|
|
7753
7753
|
this.hasAppendMouseGroup === !1 && (this.group.add(this.mouseGroup), this.magnifier.appendTo(this.container), this.magnifier.enable(), this.hasAppendMouseGroup = !0);
|
|
7754
7754
|
const o = this.updateMouseGroup(e, n).position;
|
|
@@ -7806,7 +7806,7 @@ class Yn extends bi {
|
|
|
7806
7806
|
m(this, "updateDashed", () => {
|
|
7807
7807
|
!this.lastPoint || (this.dashed.points[0].position.copy(this.lastPoint.position), this.dashed.points[1].position.copy(this.mouseGroup.position), this.dashed.mesh.setPoints(this.lastPoint.position, this.mouseGroup.position), this.dashed.distanceItem.update(this.five), this.hook.emit("editedDashedLineChange", this.dashed));
|
|
7808
7808
|
});
|
|
7809
|
-
this.model = new
|
|
7809
|
+
this.model = new wo(this.config), this.polyline = new yo({ model: this.model }), this.model.addPolyline(this.polyline), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsPanGesture", this.onWantsPanGesture), this.five.on("wantsTapGesture", this.onWantsTapGesture), this.five.on("wantsToMoveToPano", this.onWantsToMoveToPano), this.five.on("intersectionOnModelUpdate", this.onIntersectionUpdate), this.polyline.hook.on("lineAdded", this.onLineChanged), this.polyline.hook.on("lineRemoved", this.onLineChanged);
|
|
7810
7810
|
const n = this.five.getElement();
|
|
7811
7811
|
if (n) {
|
|
7812
7812
|
this.fiveElement = n;
|
|
@@ -7965,7 +7965,7 @@ function bf(i, t, e, n) {
|
|
|
7965
7965
|
}).sort((a, l) => a.distance - l.distance);
|
|
7966
7966
|
return typeof n == "number" && r[0].distance > n ? null : r[0];
|
|
7967
7967
|
}
|
|
7968
|
-
function
|
|
7968
|
+
function eo(i) {
|
|
7969
7969
|
const t = (s, r, a) => {
|
|
7970
7970
|
const l = s.lines.find((u) => u.points.findIndex(({ id: h }) => h === s.id) !== r);
|
|
7971
7971
|
if (!l)
|
|
@@ -7988,14 +7988,14 @@ class Ts extends bi {
|
|
|
7988
7988
|
var a;
|
|
7989
7989
|
if (this.model.getAllLines().length === 0 || !this.fiveElement)
|
|
7990
7990
|
return;
|
|
7991
|
-
const n =
|
|
7991
|
+
const n = $i(e).point, o = (a = bf(this.five, this.model.getAllPoints(), n, 20)) == null ? void 0 : a.point;
|
|
7992
7992
|
if (!o) {
|
|
7993
7993
|
this.editPointState = void 0;
|
|
7994
7994
|
return;
|
|
7995
7995
|
}
|
|
7996
7996
|
const s = {
|
|
7997
7997
|
point: o,
|
|
7998
|
-
associatedLines:
|
|
7998
|
+
associatedLines: eo(o.lines[0])
|
|
7999
7999
|
};
|
|
8000
8000
|
this.hook.emit("wantsDragLine", {
|
|
8001
8001
|
point: o.id,
|
|
@@ -8008,7 +8008,7 @@ class Ts extends bi {
|
|
|
8008
8008
|
m(this, "onPan", (e) => {
|
|
8009
8009
|
if (!this.editPointState || !this.fiveElement)
|
|
8010
8010
|
return;
|
|
8011
|
-
const n =
|
|
8011
|
+
const n = $i(e).ndcPoint, o = new Mt();
|
|
8012
8012
|
o.setFromCamera(n, this.five.camera);
|
|
8013
8013
|
const [s] = this.five.model.intersectRaycaster(o);
|
|
8014
8014
|
!s || this.onIntersectionUpdate(s);
|
|
@@ -8057,7 +8057,7 @@ class Ts extends bi {
|
|
|
8057
8057
|
return this.chooseLine(h), !1;
|
|
8058
8058
|
});
|
|
8059
8059
|
m(this, "chooseLine", (e) => {
|
|
8060
|
-
const n =
|
|
8060
|
+
const n = eo(e);
|
|
8061
8061
|
this.highlightLines(n), this.five.needsRender = !0, this.hook.emit(
|
|
8062
8062
|
"selectedChange",
|
|
8063
8063
|
n.map((o) => o)
|
|
@@ -8204,7 +8204,7 @@ function al(i) {
|
|
|
8204
8204
|
let n = 10349931;
|
|
8205
8205
|
e && i.ballColor >= 0 && (n = i.ballColor);
|
|
8206
8206
|
const o = new Gt(), s = new sc(0.3, 0.3), r = t ? If : kf, a = new ma().load(r);
|
|
8207
|
-
a.encoding = rc;
|
|
8207
|
+
a.encoding = rc, a.minFilter = Wi;
|
|
8208
8208
|
const l = new wn({
|
|
8209
8209
|
map: a,
|
|
8210
8210
|
transparent: !0,
|
|
@@ -8403,7 +8403,7 @@ class ln extends bi {
|
|
|
8403
8403
|
this.state = n, this.state === "watching" ? this.five.helperVisible = !0 : this.five.helperVisible = !1;
|
|
8404
8404
|
});
|
|
8405
8405
|
m(this, "chooseLine", (e) => {
|
|
8406
|
-
const n =
|
|
8406
|
+
const n = eo(e);
|
|
8407
8407
|
this.highlightLines(n), this.five.needsRender = !0, this.hook.emit(
|
|
8408
8408
|
"selectedChange",
|
|
8409
8409
|
n.map((o) => o)
|
|
@@ -8417,7 +8417,7 @@ class ln extends bi {
|
|
|
8417
8417
|
m(this, "cancelDeleteClickCallback", () => {
|
|
8418
8418
|
this.clearHighlightLines();
|
|
8419
8419
|
});
|
|
8420
|
-
this.model = new
|
|
8420
|
+
this.model = new wo(this.config), this.polyline = new yo({ model: this.model }), this.model.addPolyline(this.polyline), this.rangePieceController = new Lf(e), this.deleteDom = new ol(this.five, {
|
|
8421
8421
|
i18n: this.config.i18n,
|
|
8422
8422
|
onClick: this.deleteDomClickCallback,
|
|
8423
8423
|
cancelDelete: this.cancelDeleteClickCallback
|
|
@@ -8984,7 +8984,7 @@ class Xf {
|
|
|
8984
8984
|
this.controller = new e[t](n), this.hook.emit("modeChange", t);
|
|
8985
8985
|
});
|
|
8986
8986
|
var o, s, r, a;
|
|
8987
|
-
this.five = t, this.params = e, this.config = Ai(e, ["openParams", "magnifierParams"]), this.model = new
|
|
8987
|
+
this.five = t, this.params = e, this.config = Ai(e, ["openParams", "magnifierParams"]), this.model = new wo(this.config), this.fiveHelper = new Kh(t), this.isMobile = (s = (o = e == null ? void 0 : e.openParams) == null ? void 0 : o.isMobile) != null ? s : !1, this.magnifier = new Zh(t, (r = e.magnifierParams) != null ? r : { width: 190, height: 190, scale: 2 }), this.group = new Gt(), 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";
|
|
8988
8988
|
const n = (a = this.params.openParams) != null ? a : {};
|
|
8989
8989
|
if (this.params.useUIController !== !1) {
|
|
8990
8990
|
const l = R({
|
|
@@ -9104,7 +9104,7 @@ class Xf {
|
|
|
9104
9104
|
}
|
|
9105
9105
|
const ib = function(t, e) {
|
|
9106
9106
|
return new Xf(t, e);
|
|
9107
|
-
}, hl =
|
|
9107
|
+
}, hl = fo(null);
|
|
9108
9108
|
function Yf(i) {
|
|
9109
9109
|
ce(i, "svelte-19zi46m", ".PanoSpatialTagPlugin__tag-origin.svelte-19zi46m{position:absolute;width:0.5rem;height:0.5rem;border-radius:50%;background:#fff;box-shadow:0 0 .6rem #fff;transform:translate(-50%, -50%) scale(1);transform-origin:center center;animation:svelte-19zi46m-PanoSpatialTagPlugin__tag-origin 1.2s forwards;pointer-events:auto}.PanoSpatialTagPlugin__tag-origin.svelte-19zi46m:after{content:'';position:absolute;top:50%;height:50%;width:2rem;height:2rem;transform:translate(-50%, -50%)}.PanoSpatialTagPlugin__tag-origin-destroy.svelte-19zi46m{transform:translate(-50%, -50%) scale(0.6);animation:svelte-19zi46m-PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s}@keyframes svelte-19zi46m-PanoSpatialTagPlugin__tag-origin{0%{transform:translate(-50%, -50%) scale(1);opacity:0}100%{transform:translate(-50%, -50%) scale(0.6);opacity:1 }}@keyframes svelte-19zi46m-PanoSpatialTagPlugin__tag-origin-destroy{0%{transform:translate(-50%, -50%) scale(0.6);opacity:1}10%{transform:translate(-50%, -50%) scale(1);opacity:0.9}100%{transform:translate(-50%, -50%) scale(1);opacity:0}}");
|
|
9110
9110
|
}
|
|
@@ -9590,10 +9590,10 @@ const Bi = 1e-3, Hs = 0.01, rm = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9590
9590
|
Ze.distance + Hs
|
|
9591
9591
|
), [It] = v.intersectObjects ? Bt.intersectObjects(v.intersectObjects, !0) : i.model.bvhs.loaded ? i.model.intersectRaycaster(Bt) : Bt.intersectObjects(i.model.children, !0);
|
|
9592
9592
|
if (!!It && Ze.distance - It.distance < Hs) {
|
|
9593
|
-
const { position: ke, normal: ze, id: kt, replacement: zn } = Ze, Wl = new I.Plane().setFromNormalAndCoplanarPoint(ze, ke),
|
|
9593
|
+
const { position: ke, normal: ze, id: kt, replacement: zn } = Ze, Wl = new I.Plane().setFromNormalAndCoplanarPoint(ze, ke), Mo = ke.clone().sub(de.position).cross(new I.Vector3(0, 1, 0)).setLength(Bi), Nl = [
|
|
9594
9594
|
ke.clone(),
|
|
9595
|
-
ke.clone().add(
|
|
9596
|
-
ke.clone().add(new I.Vector3(0, Bi, 0)).add(
|
|
9595
|
+
ke.clone().add(Mo),
|
|
9596
|
+
ke.clone().add(new I.Vector3(0, Bi, 0)).add(Mo),
|
|
9597
9597
|
ke.clone().add(new I.Vector3(0, Bi, 0))
|
|
9598
9598
|
].map((Ul) => Wl.projectPoint(Ul, new I.Vector3())), { container: _l, dispose: Xl } = d.create3DDomContainer(Nl) || {}, Yl = new em({
|
|
9599
9599
|
target: _l,
|
|
@@ -10866,9 +10866,9 @@ class Nm extends Bm {
|
|
|
10866
10866
|
if (r !== null && s !== null) {
|
|
10867
10867
|
const l = {};
|
|
10868
10868
|
if (a > 0) {
|
|
10869
|
-
const u = new U(0, 0, -1), d = r.clone(), h = new
|
|
10869
|
+
const u = new U(0, 0, -1), d = r.clone(), h = new ro();
|
|
10870
10870
|
h.setFromUnitVectors(u, d);
|
|
10871
|
-
const f = new
|
|
10871
|
+
const f = new zo();
|
|
10872
10872
|
f.setFromQuaternion(h, "YXZ"), l.longitude = f.y;
|
|
10873
10873
|
}
|
|
10874
10874
|
this.five.emit("wantsToMoveToPano", s, {}, !0) || this.five.moveToPano(s, { longitude: l.longitude });
|
|
@@ -10893,7 +10893,7 @@ class Nm extends Bm {
|
|
|
10893
10893
|
y < h && (h = y, f = A);
|
|
10894
10894
|
}), f && (d.y = f.y + 0.01);
|
|
10895
10895
|
const p = new U(d.x, d.y, d.z);
|
|
10896
|
-
p.add(new U(-0.2, 1.8, 0).applyEuler(new
|
|
10896
|
+
p.add(new U(-0.2, 1.8, 0).applyEuler(new zo(0, u.rad, 0))), this.doorLabels.push({
|
|
10897
10897
|
roomName: r.name,
|
|
10898
10898
|
name: u.name,
|
|
10899
10899
|
position: p,
|
|
@@ -11010,7 +11010,7 @@ function Zs(i, t, e) {
|
|
|
11010
11010
|
}
|
|
11011
11011
|
function Jm(i) {
|
|
11012
11012
|
const t = new I.TextureLoader().load(i.textureUrl);
|
|
11013
|
-
return t.wrapS = t.wrapT = I.RepeatWrapping, t.encoding = I.sRGBEncoding, new I.MeshBasicMaterial({
|
|
11013
|
+
return t.wrapS = t.wrapT = I.RepeatWrapping, t.encoding = I.sRGBEncoding, t.minFilter = I.LinearFilter, new I.MeshBasicMaterial({
|
|
11014
11014
|
color: 16777215,
|
|
11015
11015
|
map: t,
|
|
11016
11016
|
transparent: !0,
|
|
@@ -11023,7 +11023,7 @@ function Zm(i) {
|
|
|
11023
11023
|
function yt(i) {
|
|
11024
11024
|
return i != null;
|
|
11025
11025
|
}
|
|
11026
|
-
const ml = "v1.1.0", gl = "GuideLinePlugin",
|
|
11026
|
+
const ml = "v1.1.0", gl = "GuideLinePlugin", to = `${gl}@${ml}`, Ks = (i) => `${to}--${i}`;
|
|
11027
11027
|
class pl extends zt {
|
|
11028
11028
|
constructor(e, n) {
|
|
11029
11029
|
super(e, n);
|
|
@@ -11035,7 +11035,7 @@ class pl extends zt {
|
|
|
11035
11035
|
m(this, "data");
|
|
11036
11036
|
m(this, "linesGroup");
|
|
11037
11037
|
m(this, "disposedErrorLog", () => {
|
|
11038
|
-
console.error(`${
|
|
11038
|
+
console.error(`${to} is disposed`);
|
|
11039
11039
|
});
|
|
11040
11040
|
m(this, "actionWhenEnabled", (e) => {
|
|
11041
11041
|
if (this.state.enabled)
|
|
@@ -11048,7 +11048,7 @@ class pl extends zt {
|
|
|
11048
11048
|
const s = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, r = yield this.formatData(e);
|
|
11049
11049
|
this.hooks.emit("dataChange", r, s), this.data = r, this.linesGroup && this.five.scene.remove(this.linesGroup);
|
|
11050
11050
|
const a = this.getLinesGroup(r.routes, r.config);
|
|
11051
|
-
!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(`${
|
|
11051
|
+
!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(`${to} loaded`, r));
|
|
11052
11052
|
});
|
|
11053
11053
|
}
|
|
11054
11054
|
formatData(e) {
|
|
@@ -11647,7 +11647,7 @@ function ag(i, t) {
|
|
|
11647
11647
|
});
|
|
11648
11648
|
}
|
|
11649
11649
|
const xe = (i) => i;
|
|
11650
|
-
function
|
|
11650
|
+
function no(i) {
|
|
11651
11651
|
if (i.length < 3)
|
|
11652
11652
|
return;
|
|
11653
11653
|
const t = i.map(Cn), e = t[1].clone().sub(t[0]), n = t[2].clone().sub(t[1]);
|
|
@@ -11659,7 +11659,7 @@ function lg(i) {
|
|
|
11659
11659
|
function Fe(i) {
|
|
11660
11660
|
return i.stickType === "Model" && i.contentType === "MediaModel";
|
|
11661
11661
|
}
|
|
11662
|
-
function
|
|
11662
|
+
function Co(i) {
|
|
11663
11663
|
if (!!i)
|
|
11664
11664
|
if (Array.isArray(i) && i.length === 4) {
|
|
11665
11665
|
const e = i.map(Cn);
|
|
@@ -11672,7 +11672,7 @@ function yl(i) {
|
|
|
11672
11672
|
const t = new dn().fromArray(i.matrix), e = i.data.mediaPosition.map((n) => new U().fromArray(n).applyMatrix4(t));
|
|
11673
11673
|
return fi(e[0], e[2]);
|
|
11674
11674
|
} else
|
|
11675
|
-
return
|
|
11675
|
+
return Co(i.position);
|
|
11676
11676
|
}
|
|
11677
11677
|
function cn(i, t) {
|
|
11678
11678
|
if (i === void 0)
|
|
@@ -11754,7 +11754,7 @@ function fg(i) {
|
|
|
11754
11754
|
return i;
|
|
11755
11755
|
}
|
|
11756
11756
|
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=", vn = {};
|
|
11757
|
-
var
|
|
11757
|
+
var Eo = /* @__PURE__ */ ((i) => (i.Default = "default", i.GetAudioDuration = "getAudioDuration", i.PlayAudio = "playAudio", i))(Eo || {});
|
|
11758
11758
|
function mg(i, t) {
|
|
11759
11759
|
const e = (t == null ? void 0 : t.namespace) || "default", n = vn[e] || (vn[e] = []);
|
|
11760
11760
|
let o = n.find((s) => !s.realSrc || s.realSrc === Ut);
|
|
@@ -11804,7 +11804,7 @@ class wl extends Audio {
|
|
|
11804
11804
|
function pg(i) {
|
|
11805
11805
|
!i || i.inited || (i.src && (i.inited = !0, i.removeDocumentEventListener()), i.src === Ut && i.play());
|
|
11806
11806
|
}
|
|
11807
|
-
class
|
|
11807
|
+
class io {
|
|
11808
11808
|
constructor(t = 0, e = 0) {
|
|
11809
11809
|
m(this, "min");
|
|
11810
11810
|
m(this, "max");
|
|
@@ -11828,7 +11828,7 @@ class Ag {
|
|
|
11828
11828
|
m(this, "xInterval");
|
|
11829
11829
|
m(this, "yInterval");
|
|
11830
11830
|
m(this, "isRectangle", !0);
|
|
11831
|
-
this.min = t, this.max = e, this.xInterval = new
|
|
11831
|
+
this.min = t, this.max = e, this.xInterval = new io(this.min.x, this.max.x), this.yInterval = new io(this.min.y, this.max.y);
|
|
11832
11832
|
}
|
|
11833
11833
|
isOverlapWithRectangle(t) {
|
|
11834
11834
|
return !this.xInterval.isOverlap(t.xInterval) && !this.yInterval.isOverlap(t.yInterval);
|
|
@@ -11969,7 +11969,7 @@ void main() {
|
|
|
11969
11969
|
`;
|
|
11970
11970
|
function Ig() {
|
|
11971
11971
|
const i = new I.PlaneGeometry(0.4, 0.4), t = Cg, e = new I.TextureLoader().load(t);
|
|
11972
|
-
e.encoding = I.sRGBEncoding;
|
|
11972
|
+
e.encoding = I.sRGBEncoding, e.minFilter = I.LinearFilter;
|
|
11973
11973
|
const n = new I.MeshBasicMaterial({
|
|
11974
11974
|
map: e,
|
|
11975
11975
|
transparent: !0,
|
|
@@ -12055,7 +12055,7 @@ class Il {
|
|
|
12055
12055
|
}
|
|
12056
12056
|
doAnimation() {
|
|
12057
12057
|
var t;
|
|
12058
|
-
(t = this.animeIns) == null || t.dispose(), new
|
|
12058
|
+
(t = this.animeIns) == null || t.dispose(), new bo({ progress: 0 }).to({ progress: [1, 0] }).duration(500).easing(hi.Easing.Quadratic.InOut).onUpdate(({ progress: e }) => {
|
|
12059
12059
|
}).play();
|
|
12060
12060
|
}
|
|
12061
12061
|
dispose() {
|
|
@@ -12103,7 +12103,7 @@ class Dg {
|
|
|
12103
12103
|
}
|
|
12104
12104
|
const fb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12105
12105
|
__proto__: null,
|
|
12106
|
-
Interval:
|
|
12106
|
+
Interval: io,
|
|
12107
12107
|
Rectangle: Ag,
|
|
12108
12108
|
Magnifier: Cl,
|
|
12109
12109
|
getCoordsFromClient: bg,
|
|
@@ -12115,7 +12115,7 @@ const fb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12115
12115
|
FivePointSelector: Dg,
|
|
12116
12116
|
isNil: Zm,
|
|
12117
12117
|
notNil: yt,
|
|
12118
|
-
BetterTween:
|
|
12118
|
+
BetterTween: bo,
|
|
12119
12119
|
tweenProgress: Ka,
|
|
12120
12120
|
nextFrame: vi,
|
|
12121
12121
|
requestAnimationFrameInterval: Mn,
|
|
@@ -12217,7 +12217,7 @@ class Tg extends Sg {
|
|
|
12217
12217
|
super(e);
|
|
12218
12218
|
m(this, "config", Lg);
|
|
12219
12219
|
m(this, "tags", []);
|
|
12220
|
-
m(this, "mediaStore",
|
|
12220
|
+
m(this, "mediaStore", fo({
|
|
12221
12221
|
currentMediaElement: null
|
|
12222
12222
|
}));
|
|
12223
12223
|
m(this, "css3DRenderPlugin");
|
|
@@ -12316,10 +12316,10 @@ class Tg extends Sg {
|
|
|
12316
12316
|
const c = (l = (a = this.five.work) == null ? void 0 : a.observers[o]) == null ? void 0 : l.position;
|
|
12317
12317
|
if (c === void 0)
|
|
12318
12318
|
throw new Error(`getAngleRange(): observerPosition is ${c}`);
|
|
12319
|
-
const u = (() => e.stickType === "3DPoint" ? Cn(e.normal) :
|
|
12319
|
+
const u = (() => e.stickType === "3DPoint" ? Cn(e.normal) : no(e.position))();
|
|
12320
12320
|
if (!u)
|
|
12321
12321
|
return;
|
|
12322
|
-
const d = new I.Vector3().copy(c).sub(
|
|
12322
|
+
const d = new I.Vector3().copy(c).sub(Co(e.position)), h = u.angleTo(d) * 180 / Math.PI;
|
|
12323
12323
|
return s.angle = h, s.angle;
|
|
12324
12324
|
}
|
|
12325
12325
|
}
|
|
@@ -12572,7 +12572,7 @@ class zg extends Tg {
|
|
|
12572
12572
|
getTagProject(e) {
|
|
12573
12573
|
if (!this.getVisibleByPanoIndex(e) || !e.position)
|
|
12574
12574
|
return;
|
|
12575
|
-
const o =
|
|
12575
|
+
const o = Co(e.position), { x: s, y: r, z: a } = o.project(this.five.camera);
|
|
12576
12576
|
if (!(a > 1))
|
|
12577
12577
|
return { x: s, y: r, z: a };
|
|
12578
12578
|
}
|
|
@@ -12702,7 +12702,7 @@ function Vg(i, t, e) {
|
|
|
12702
12702
|
h
|
|
12703
12703
|
];
|
|
12704
12704
|
}
|
|
12705
|
-
class
|
|
12705
|
+
class Po extends oe {
|
|
12706
12706
|
constructor(t) {
|
|
12707
12707
|
super(), ie(
|
|
12708
12708
|
this,
|
|
@@ -12932,7 +12932,7 @@ function Ng(i) {
|
|
|
12932
12932
|
M(r, n, a);
|
|
12933
12933
|
},
|
|
12934
12934
|
p(r, [a]) {
|
|
12935
|
-
a & 14 && (o = r[2], t = qe(t, a, s, 1, r, o, e, n.parentNode,
|
|
12935
|
+
a & 14 && (o = r[2], t = qe(t, a, s, 1, r, o, e, n.parentNode, uo, ar, n, rr));
|
|
12936
12936
|
},
|
|
12937
12937
|
i: X,
|
|
12938
12938
|
o: X,
|
|
@@ -13283,7 +13283,7 @@ function dr(i) {
|
|
|
13283
13283
|
blurRadius: 120,
|
|
13284
13284
|
spreadRadius: 60
|
|
13285
13285
|
}
|
|
13286
|
-
}), n = new
|
|
13286
|
+
}), n = new Po({
|
|
13287
13287
|
props: {
|
|
13288
13288
|
unfolded: i[2],
|
|
13289
13289
|
length: i[3],
|
|
@@ -13533,7 +13533,7 @@ function fp(i, t, e) {
|
|
|
13533
13533
|
i.$$.dirty & 8 && e(4, n = (c == null ? void 0 : c.placeholder) || (c == null ? void 0 : c.inputting));
|
|
13534
13534
|
}, [r, a, l, c, n, s, o];
|
|
13535
13535
|
}
|
|
13536
|
-
class
|
|
13536
|
+
class Io extends oe {
|
|
13537
13537
|
constructor(t) {
|
|
13538
13538
|
super(), ie(
|
|
13539
13539
|
this,
|
|
@@ -13557,7 +13557,7 @@ function mp(i) {
|
|
|
13557
13557
|
function mr(i) {
|
|
13558
13558
|
var d, h;
|
|
13559
13559
|
let t, e, n, o, s, r, a, l, c;
|
|
13560
|
-
t = new
|
|
13560
|
+
t = new Po({
|
|
13561
13561
|
props: {
|
|
13562
13562
|
unfolded: i[1],
|
|
13563
13563
|
direction: "vertical",
|
|
@@ -13566,7 +13566,7 @@ function mr(i) {
|
|
|
13566
13566
|
inDelay: 200,
|
|
13567
13567
|
useLinearColor: !0
|
|
13568
13568
|
}
|
|
13569
|
-
}), a = new
|
|
13569
|
+
}), a = new Io({
|
|
13570
13570
|
props: {
|
|
13571
13571
|
text: i[2],
|
|
13572
13572
|
edit: (d = i[0].data.edit) == null ? void 0 : d.title
|
|
@@ -13603,7 +13603,7 @@ function mr(i) {
|
|
|
13603
13603
|
function gr(i) {
|
|
13604
13604
|
var o;
|
|
13605
13605
|
let t, e, n;
|
|
13606
|
-
return e = new
|
|
13606
|
+
return e = new Io({
|
|
13607
13607
|
props: {
|
|
13608
13608
|
text: i[0].data.description,
|
|
13609
13609
|
edit: (o = i[0].data.edit) == null ? void 0 : o.description,
|
|
@@ -14079,7 +14079,7 @@ function _p(i, t) {
|
|
|
14079
14079
|
function wr(i, t) {
|
|
14080
14080
|
i.removeEventListener("mousemove", t), i.removeEventListener("touchmove", t);
|
|
14081
14081
|
}
|
|
14082
|
-
function
|
|
14082
|
+
function ko(i) {
|
|
14083
14083
|
return function(t, e) {
|
|
14084
14084
|
i.dispatchEvent(
|
|
14085
14085
|
new CustomEvent(t, {
|
|
@@ -14103,7 +14103,7 @@ function Qi(i) {
|
|
|
14103
14103
|
};
|
|
14104
14104
|
}
|
|
14105
14105
|
function Jp(i, { thresholdProvider: t }) {
|
|
14106
|
-
const e =
|
|
14106
|
+
const e = ko(i);
|
|
14107
14107
|
let n, o, s = 0, r, a = !1;
|
|
14108
14108
|
function l() {
|
|
14109
14109
|
return Date.now() - r >= Up && Math.abs(s) >= qp;
|
|
@@ -14146,7 +14146,7 @@ function Cr(i, t) {
|
|
|
14146
14146
|
i.removeEventListener("mouseleave", t);
|
|
14147
14147
|
}
|
|
14148
14148
|
function e0(i) {
|
|
14149
|
-
const t =
|
|
14149
|
+
const t = ko(i);
|
|
14150
14150
|
function e() {
|
|
14151
14151
|
$p(i, n), t("hovered", { value: !0 });
|
|
14152
14152
|
}
|
|
@@ -14179,7 +14179,7 @@ function Er(i, t) {
|
|
|
14179
14179
|
i.removeEventListener("touchend", t);
|
|
14180
14180
|
}
|
|
14181
14181
|
function s0(i) {
|
|
14182
|
-
const t =
|
|
14182
|
+
const t = ko(i);
|
|
14183
14183
|
let e = 0, n = { x: 0, y: 0 };
|
|
14184
14184
|
function o({
|
|
14185
14185
|
tapEndedAt: a,
|
|
@@ -14400,7 +14400,7 @@ const bn = (i, t, e) => {
|
|
|
14400
14400
|
if (e === void 0)
|
|
14401
14401
|
throw new Error(`Required arg "${t}" was not provided`);
|
|
14402
14402
|
return e;
|
|
14403
|
-
},
|
|
14403
|
+
}, oo = (i) => (t) => {
|
|
14404
14404
|
i[t] && i[t]();
|
|
14405
14405
|
}, v0 = (i, t) => bc(i, t), b0 = (i) => Object.keys(i || {}), y0 = (i, t) => {
|
|
14406
14406
|
const e = {};
|
|
@@ -14699,7 +14699,7 @@ function L0(i) {
|
|
|
14699
14699
|
return;
|
|
14700
14700
|
}
|
|
14701
14701
|
if (r.autoplay) {
|
|
14702
|
-
const c = () =>
|
|
14702
|
+
const c = () => oo({
|
|
14703
14703
|
[wt]: () => W(this, null, function* () {
|
|
14704
14704
|
return a.showNextPage();
|
|
14705
14705
|
}),
|
|
@@ -15079,7 +15079,7 @@ function O0(i) {
|
|
|
15079
15079
|
function R0(i, t, e) {
|
|
15080
15080
|
let { $$slots: n = {}, $$scope: o } = t, s = [], r, a, l = 0, c = 0, u = 1;
|
|
15081
15081
|
const [{ data: d, progressManager: h }, f, p] = L0((te, Ae) => {
|
|
15082
|
-
|
|
15082
|
+
oo({
|
|
15083
15083
|
currentPageIndex: () => e(5, r = Ae),
|
|
15084
15084
|
progressValue: () => e(7, a = Ae),
|
|
15085
15085
|
offset: () => e(8, l = Ae),
|
|
@@ -15145,7 +15145,7 @@ function R0(i, t, e) {
|
|
|
15145
15145
|
}
|
|
15146
15146
|
function Ce(te) {
|
|
15147
15147
|
return W(this, null, function* () {
|
|
15148
|
-
!O || (yield
|
|
15148
|
+
!O || (yield oo({
|
|
15149
15149
|
[wt]: f.showNextPage,
|
|
15150
15150
|
[qt]: f.showPrevPage
|
|
15151
15151
|
})(te.detail.direction));
|
|
@@ -16033,7 +16033,7 @@ function Nr(i) {
|
|
|
16033
16033
|
let t, e = i[0] + "", n;
|
|
16034
16034
|
return {
|
|
16035
16035
|
c() {
|
|
16036
|
-
t = z("div"), n = Pe(e), b(t, "class", "tag primary-tag svelte-sezqcq"), T(t, "min-width",
|
|
16036
|
+
t = z("div"), n = Pe(e), b(t, "class", "tag primary-tag svelte-sezqcq"), T(t, "min-width", xo);
|
|
16037
16037
|
},
|
|
16038
16038
|
m(o, s) {
|
|
16039
16039
|
M(o, t, s), B(t, n);
|
|
@@ -16050,7 +16050,7 @@ function _r(i) {
|
|
|
16050
16050
|
let t, e = i[0] + "", n;
|
|
16051
16051
|
return {
|
|
16052
16052
|
c() {
|
|
16053
|
-
t = z("div"), n = Pe(e), b(t, "class", "tag secondary-tag svelte-sezqcq"), T(t, "min-width",
|
|
16053
|
+
t = z("div"), n = Pe(e), b(t, "class", "tag secondary-tag svelte-sezqcq"), T(t, "min-width", xo);
|
|
16054
16054
|
},
|
|
16055
16055
|
m(o, s) {
|
|
16056
16056
|
M(o, t, s), B(t, n);
|
|
@@ -16168,7 +16168,7 @@ function sA(i) {
|
|
|
16168
16168
|
}
|
|
16169
16169
|
};
|
|
16170
16170
|
}
|
|
16171
|
-
const
|
|
16171
|
+
const xo = 40, Jn = 400, Jr = 500, Zn = 180, Zr = 500;
|
|
16172
16172
|
function rA(i, t, e) {
|
|
16173
16173
|
let n, o, s, r, a, l, c, u;
|
|
16174
16174
|
var d, h, f, p, v, g;
|
|
@@ -16187,7 +16187,7 @@ function rA(i, t, e) {
|
|
|
16187
16187
|
"tag" in k && e(0, A = k.tag);
|
|
16188
16188
|
}, i.$$.update = () => {
|
|
16189
16189
|
i.$$.dirty & 3073 && e(4, n = e(11, h = e(10, d = A.state) === null || d === void 0 ? void 0 : d.unfolded) !== null && h !== void 0 ? h : !1), i.$$.dirty & 16 && e(8, o = !n), i.$$.dirty & 1 && e(3, s = A.data), i.$$.dirty & 12296 && e(7, r = yt(e(12, f = s.price) === null || f === void 0 ? void 0 : f.value) && (e(13, p = s.price) === null || p === void 0 ? void 0 : p.value) !== ""), i.$$.dirty & 1 && e(6, a = A.data.theme || "light"), i.$$.dirty & 65538 && y > 40 && e(16, l = l - 1), i.$$.dirty & 81928 && e(2, c = (e(14, v = s.brandTags) === null || v === void 0 ? void 0 : v.slice(0, l).filter(Boolean)) || []), i.$$.dirty & 98316 && e(5, u = (e(15, g = s.tags) === null || g === void 0 ? void 0 : g.slice(0, l - c.length).filter(Boolean)) || []);
|
|
16190
|
-
}, e(16, l = (w - 20) /
|
|
16190
|
+
}, e(16, l = (w - 20) / xo), [
|
|
16191
16191
|
A,
|
|
16192
16192
|
y,
|
|
16193
16193
|
c,
|
|
@@ -16236,7 +16236,7 @@ class lA extends Audio {
|
|
|
16236
16236
|
var n, o, s;
|
|
16237
16237
|
if (this.tryplaying)
|
|
16238
16238
|
return;
|
|
16239
|
-
this.tryplaying = !0, (!this.audioInstance || ((n = this.audioInstance) == null ? void 0 : n.realSrc) !== this.sharedAudioSrc) && (this.audioInstance = mg(this.sharedAudioSrc, { namespace:
|
|
16239
|
+
this.tryplaying = !0, (!this.audioInstance || ((n = this.audioInstance) == null ? void 0 : n.realSrc) !== this.sharedAudioSrc) && (this.audioInstance = mg(this.sharedAudioSrc, { namespace: Eo.PlayAudio })), (o = this.eventListenerDisposer) == null || o.call(this), this.eventListenerDisposer = this.addEventListeners(), this.audioInstance.currentTime = (s = this.currentTime) != null ? s : 0;
|
|
16240
16240
|
const e = this.audioInstance.currentTime !== this.currentTime;
|
|
16241
16241
|
this.audioInstance.play().then(() => {
|
|
16242
16242
|
var r;
|
|
@@ -16571,7 +16571,7 @@ function $r(i) {
|
|
|
16571
16571
|
textUnfolded: i[1],
|
|
16572
16572
|
content: i[5]
|
|
16573
16573
|
}
|
|
16574
|
-
}), h = new
|
|
16574
|
+
}), h = new Po({
|
|
16575
16575
|
props: {
|
|
16576
16576
|
unfolded: i[6],
|
|
16577
16577
|
length: i[3],
|
|
@@ -16809,7 +16809,7 @@ function wA(i) {
|
|
|
16809
16809
|
}
|
|
16810
16810
|
function CA(i) {
|
|
16811
16811
|
let t, e, n, o, s, r, a;
|
|
16812
|
-
return n = new Bl({ props: { playing: i[3] } }), r = new
|
|
16812
|
+
return n = new Bl({ props: { playing: i[3] } }), r = new Io({
|
|
16813
16813
|
props: {
|
|
16814
16814
|
maxWidth: 72,
|
|
16815
16815
|
$$slots: { default: [wA] },
|
|
@@ -17915,7 +17915,7 @@ function fv(i, t, e) {
|
|
|
17915
17915
|
let n, o, s, r, a, l;
|
|
17916
17916
|
var c, u, d, h, f, p, v, g, A, y, w;
|
|
17917
17917
|
let { withAnimation: x = !1 } = t, { tag: k } = t, { hooks: C } = t, { state: L } = t, { mediaStore: E } = t, { temporaryState: V } = t;
|
|
17918
|
-
|
|
17918
|
+
Yi("hooks", C), Yi("mediaStore", E);
|
|
17919
17919
|
let G, O;
|
|
17920
17920
|
function Y(Q) {
|
|
17921
17921
|
Q ? C.emit("exposure", { id: r, type: "start" }) : C.emit("exposure", { id: r, type: "end" });
|
|
@@ -18373,7 +18373,7 @@ function xv(i) {
|
|
|
18373
18373
|
}
|
|
18374
18374
|
function Dv(i, t, e) {
|
|
18375
18375
|
let { withAnimation: n = !1 } = t, { tags: o = [] } = t, { hooks: s } = t, { mediaStore: r } = t, { state: a } = t, { temporaryState: l } = t;
|
|
18376
|
-
return
|
|
18376
|
+
return Yi("hooks", s), i.$$set = (c) => {
|
|
18377
18377
|
"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);
|
|
18378
18378
|
}, [n, o, r, a, l, s];
|
|
18379
18379
|
}
|
|
@@ -18414,7 +18414,7 @@ class Tv extends I.Mesh {
|
|
|
18414
18414
|
super();
|
|
18415
18415
|
m(this, "name", "ImageModel");
|
|
18416
18416
|
m(this, "imageSrc");
|
|
18417
|
-
this.imageSrc = e,
|
|
18417
|
+
this.imageSrc = e, Ki(e).then((o) => {
|
|
18418
18418
|
const s = o.image.width, r = o.image.height, a = new I.MeshBasicMaterial({ map: o, transparent: !0 }), l = new I.PlaneGeometry(s, r);
|
|
18419
18419
|
this.geometry = l, this.material = a;
|
|
18420
18420
|
const c = new U().subVectors(n[1], n[0]), u = new U().subVectors(n[3], n[0]), d = fi(...n), h = new U().crossVectors(c, u).normalize();
|
|
@@ -18477,7 +18477,7 @@ class zv extends zg {
|
|
|
18477
18477
|
if (Fe(n) && ((l = n.model) == null ? void 0 : l.object) && this.updateTagCss3DObjectMatrix(n, (c = n.model) == null ? void 0 : c.object), n.tag3DContentSvelte) {
|
|
18478
18478
|
const { svelteApp: d, domContainer: h, initialNormal: f, currentNormal: p } = n.tag3DContentSvelte;
|
|
18479
18479
|
if (this.updateTagCss3DObjectVisible(n), d.$set({ tag: n, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !f.equals(p)) {
|
|
18480
|
-
const v = new
|
|
18480
|
+
const v = new ro().setFromUnitVectors(f, p);
|
|
18481
18481
|
h.css3DObject.setRotationFromQuaternion(v);
|
|
18482
18482
|
}
|
|
18483
18483
|
return;
|
|
@@ -18504,9 +18504,9 @@ class zv extends zg {
|
|
|
18504
18504
|
if (n.normal)
|
|
18505
18505
|
return rt(n.normal);
|
|
18506
18506
|
if (n.stickType === "Plane")
|
|
18507
|
-
return
|
|
18507
|
+
return no(n.position);
|
|
18508
18508
|
if (n.contentType === "MediaModel")
|
|
18509
|
-
return
|
|
18509
|
+
return no(o);
|
|
18510
18510
|
}();
|
|
18511
18511
|
if (!s)
|
|
18512
18512
|
return;
|
|
@@ -18632,7 +18632,7 @@ class Bv extends zv {
|
|
|
18632
18632
|
!Fe(e) || (e.state.visible = this.getVisible(e));
|
|
18633
18633
|
}), this.updateRenderAllTags();
|
|
18634
18634
|
});
|
|
18635
|
-
this.params = R({ debug: !1, config: this.config }, n), this.debug = this.params.debug, this.config = this.params.config, gg(1, { namespace:
|
|
18635
|
+
this.params = R({ debug: !1, config: this.config }, n), this.debug = this.params.debug, this.config = this.params.config, gg(1, { namespace: Eo.PlayAudio });
|
|
18636
18636
|
try {
|
|
18637
18637
|
Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ = this;
|
|
18638
18638
|
} catch (o) {
|
|
@@ -19371,7 +19371,7 @@ function _v(i, t) {
|
|
|
19371
19371
|
y: -(i.y - o) / n * 2 + 1
|
|
19372
19372
|
});
|
|
19373
19373
|
}
|
|
19374
|
-
function
|
|
19374
|
+
function Do(i, t, e) {
|
|
19375
19375
|
if (!t || !e || !i)
|
|
19376
19376
|
return;
|
|
19377
19377
|
const n = _v(t, e);
|
|
@@ -19925,7 +19925,7 @@ class i1 extends Tn {
|
|
|
19925
19925
|
dragging(e) {
|
|
19926
19926
|
if (!this.isDragging || !this.startInfo)
|
|
19927
19927
|
return;
|
|
19928
|
-
const n =
|
|
19928
|
+
const n = Do(this.camera, e, this.container);
|
|
19929
19929
|
return n ? (this.move(n), !1) : this.dragEnd();
|
|
19930
19930
|
}
|
|
19931
19931
|
move(e) {
|
|
@@ -19978,12 +19978,12 @@ class un {
|
|
|
19978
19978
|
this.five.off("wantsTapGesture", this.onFiveWantsTapGesture), this.five.off("wantsGesture", this.onFiveWantsGesture), this.five.off("intersectionOnModelUpdate", this.onFiveIntersectionOnModelUpdate), (t = this.helperController) == null || t.dispose();
|
|
19979
19979
|
}
|
|
19980
19980
|
}
|
|
19981
|
-
const o1 = "v1.0.1", s1 = "Object3DHelper",
|
|
19982
|
-
console.error(`${
|
|
19981
|
+
const o1 = "v1.0.1", s1 = "Object3DHelper", Lo = `${s1}@${o1}`, r1 = () => {
|
|
19982
|
+
console.error(`${Lo} is disposed`);
|
|
19983
19983
|
}, a1 = () => {
|
|
19984
|
-
console.warn(`${
|
|
19984
|
+
console.warn(`${Lo} is disabled`);
|
|
19985
19985
|
}, l1 = () => {
|
|
19986
|
-
console.error(`${
|
|
19986
|
+
console.error(`${Lo} is disabled`);
|
|
19987
19987
|
};
|
|
19988
19988
|
class c1 {
|
|
19989
19989
|
constructor(t) {
|
|
@@ -20131,7 +20131,7 @@ class u1 extends Tn {
|
|
|
20131
20131
|
dragging(e) {
|
|
20132
20132
|
if (!this.isDragging)
|
|
20133
20133
|
return;
|
|
20134
|
-
const n =
|
|
20134
|
+
const n = Do(this.camera, e, this.container);
|
|
20135
20135
|
return n ? (this.rotate(n), !1) : this.dragEnd();
|
|
20136
20136
|
}
|
|
20137
20137
|
rotate(e) {
|
|
@@ -20249,7 +20249,7 @@ class d1 extends Tn {
|
|
|
20249
20249
|
dragging(e) {
|
|
20250
20250
|
if (!this.isDragging)
|
|
20251
20251
|
return;
|
|
20252
|
-
const n =
|
|
20252
|
+
const n = Do(this.camera, e, this.container);
|
|
20253
20253
|
if (!n)
|
|
20254
20254
|
return this.dragEnd();
|
|
20255
20255
|
this.scale(n);
|
|
@@ -20340,18 +20340,18 @@ class m1 extends Hl {
|
|
|
20340
20340
|
super(t);
|
|
20341
20341
|
}
|
|
20342
20342
|
}
|
|
20343
|
-
const Gl = "v1.0.0",
|
|
20344
|
-
console.error(`${
|
|
20343
|
+
const Gl = "v1.0.0", so = "Object3DHelperPlugin", So = `${so}@${Gl}`, g1 = () => {
|
|
20344
|
+
console.error(`${So} is disposed`);
|
|
20345
20345
|
}, p1 = () => {
|
|
20346
|
-
console.warn(`${
|
|
20346
|
+
console.warn(`${So} is disabled`);
|
|
20347
20347
|
}, A1 = () => {
|
|
20348
|
-
console.error(`${
|
|
20348
|
+
console.error(`${So} is disabled`);
|
|
20349
20349
|
};
|
|
20350
20350
|
class v1 extends Sn {
|
|
20351
20351
|
constructor(e) {
|
|
20352
20352
|
super(e);
|
|
20353
20353
|
m(this, "version", Gl);
|
|
20354
|
-
m(this, "name",
|
|
20354
|
+
m(this, "name", so);
|
|
20355
20355
|
m(this, "state", {
|
|
20356
20356
|
visible: !0,
|
|
20357
20357
|
enabled: !0,
|
|
@@ -20360,7 +20360,7 @@ class v1 extends Sn {
|
|
|
20360
20360
|
m(this, "objectHelperMap", /* @__PURE__ */ new Map());
|
|
20361
20361
|
m(this, "css3DObjectParentMap", /* @__PURE__ */ new Map());
|
|
20362
20362
|
m(this, "css3DRender");
|
|
20363
|
-
this.five = e, this.css3DRender = new En(this.five.scene), console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\uFF0C\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${
|
|
20363
|
+
this.five = e, this.css3DRender = new En(this.five.scene), console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\uFF0C\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${so.toUpperCase()}_DEBUG__`]: this });
|
|
20364
20364
|
}
|
|
20365
20365
|
show(e) {
|
|
20366
20366
|
return W(this, null, function* () {
|
|
@@ -20533,7 +20533,7 @@ class fa {
|
|
|
20533
20533
|
if (!t)
|
|
20534
20534
|
return this.logWarning(`\u70B9\u4F4D ${this.panoIndex} \u4E0D\u5B58\u5728\uFF0C\u8BF7\u68C0\u67E5 Five \u6570\u636E\u662F\u5426\u6B63\u5E38\u3002`);
|
|
20535
20535
|
this.observer = t;
|
|
20536
|
-
const { x: e, y: n, z: o, w: s } = t.quaternion, r = new
|
|
20536
|
+
const { x: e, y: n, z: o, w: s } = t.quaternion, r = new ro(e, n, o, s), a = t.position;
|
|
20537
20537
|
this.videoMesh.position.fromArray([a.x, a.y, a.z]), this.videoMesh.quaternion.set(0, 0, 0, 1), this.videoMesh.rotateOnAxis(new U(0, 1, 0), Math.PI / 2), this.videoMesh.applyQuaternion(r);
|
|
20538
20538
|
});
|
|
20539
20539
|
m(this, "onFiveWantsMoveToPano", (t) => {
|
|
@@ -20601,7 +20601,7 @@ class fa {
|
|
|
20601
20601
|
const n = document.createElement("video");
|
|
20602
20602
|
n.crossOrigin = "anonymous", n.autoplay = !1, n.muted = !0, n.loop = !0, n.playsInline = !0, this.video = n;
|
|
20603
20603
|
const o = new fc(this.video);
|
|
20604
|
-
o.minFilter =
|
|
20604
|
+
o.minFilter = Wi, o.magFilter = Wi;
|
|
20605
20605
|
const s = new ga({
|
|
20606
20606
|
vertexShader: b1,
|
|
20607
20607
|
fragmentShader: y1,
|
|
@@ -20824,7 +20824,7 @@ export {
|
|
|
20824
20824
|
F1 as ModelViewPlugin,
|
|
20825
20825
|
v1 as Object3DHelperController,
|
|
20826
20826
|
pb as Object3DHelperPlugin,
|
|
20827
|
-
|
|
20827
|
+
So as PLUGIN,
|
|
20828
20828
|
R1 as PaintBrush,
|
|
20829
20829
|
mt as PaintBrushTypeEnum,
|
|
20830
20830
|
nb as PanoCompassPlugin,
|
|
@@ -20833,9 +20833,9 @@ export {
|
|
|
20833
20833
|
Y1 as PanoFloorplanRadarPlugin,
|
|
20834
20834
|
ib as PanoMeasurePlugin,
|
|
20835
20835
|
sn as PanoMeasurePluginLine,
|
|
20836
|
-
|
|
20836
|
+
wo as PanoMeasurePluginModel,
|
|
20837
20837
|
tt as PanoMeasurePluginPoint,
|
|
20838
|
-
|
|
20838
|
+
yo as PanoMeasurePluginPolyline,
|
|
20839
20839
|
eb as PanoRulerPlugin,
|
|
20840
20840
|
tb as PanoRulerProPlugin,
|
|
20841
20841
|
ob as PanoSpatialTagPlugin,
|