@realsee/dnalogel 2.6.7-dev.1 → 2.6.7-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +2 -1
- package/dist/index.cjs.js +15 -15
- package/dist/index.js +227 -220
- package/dist/index.umd.js +9 -9
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +1 -0
- package/dist/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +2 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- 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 +123 -51
- 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 +18 -18
- 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/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/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 +12 -12
- 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/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/TagCache.html +12 -12
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/TagIconUrl.html +9 -9
- 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/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/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/PanoTagPlugin/controller/TagComputer.d.ts +2 -1
- package/libs/PanoTagPlugin/controller/TagComputer.js +26 -22
- package/libs/PanoTagPlugin/controller/index.js +26 -27
- package/libs/PanoTagPlugin/index.js +11 -12
- package/libs/index.js +100 -101
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +38 -38
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +1 -0
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +26 -23
- package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +2 -0
- package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js +28 -22
- package/package.json +1 -1
- package/dist/PanoTagPlugin/utils/tag/index.d.ts +0 -2
- package/libs/PanoTagPlugin/utils/tag/index.d.ts +0 -2
- package/libs/PanoTagPlugin/utils/tag/index.js +0 -11
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ import * as li from "@tweenjs/tween.js";
|
|
|
31
31
|
import mn, { Tween as zl, Easing as Bl } from "@tweenjs/tween.js";
|
|
32
32
|
import { Camera as jl, Five as je, Subscribe as Ye } from "@realsee/five";
|
|
33
33
|
import * as k from "three";
|
|
34
|
-
import { Vector3 as Z, Group as pn, Raycaster as Vt, MeshBasicMaterial as gn, CanvasTexture as Vl, AnimationMixer as Ql, Color as wn, TextureLoader as na, Vector2 as We, PlaneGeometry as Rl, sRGBEncoding as Ol, Mesh as Wn, CurvePath as Hl, LineCurve3 as Fl, TubeGeometry as Gl, ShaderMaterial as Wl, SphereGeometry as Nl, DoubleSide as ia, RingGeometry as _l, Quaternion as oa, Euler as Lo, Matrix4 as
|
|
34
|
+
import { Vector3 as Z, Group as pn, Raycaster as Vt, MeshBasicMaterial as gn, CanvasTexture as Vl, AnimationMixer as Ql, Color as wn, TextureLoader as na, Vector2 as We, PlaneGeometry as Rl, sRGBEncoding as Ol, Mesh as Wn, CurvePath as Hl, LineCurve3 as Fl, TubeGeometry as Gl, ShaderMaterial as Wl, SphereGeometry as Nl, DoubleSide as ia, RingGeometry as _l, Quaternion as oa, Euler as Lo, Matrix4 as an, Object3D as Xl } from "three";
|
|
35
35
|
import { CSS3DRenderer as Yl, CSS3DObject as Ri } from "three/examples/jsm/renderers/CSS3DRenderer";
|
|
36
36
|
import { Line as sa } from "@realsee/five/line";
|
|
37
37
|
import { FBXLoader as ra } from "three/examples/jsm/loaders/FBXLoader";
|
|
@@ -535,7 +535,7 @@ class oc extends nc {
|
|
|
535
535
|
this.closeBrush(), this.ready = !1, this.emit("readyChange", !0);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
class
|
|
538
|
+
class uv {
|
|
539
539
|
constructor(t = {}) {
|
|
540
540
|
m(this, "controller");
|
|
541
541
|
const e = Object.assign({
|
|
@@ -573,7 +573,7 @@ class fv {
|
|
|
573
573
|
this.controller.updateCurrentColor(t);
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
const
|
|
576
|
+
const fv = (i, t) => {
|
|
577
577
|
var X, V;
|
|
578
578
|
let e = (V = (X = t == null ? void 0 : t.initialState) == null ? void 0 : X.enabled) != null ? V : !0, n = !1, o = !0, s = null;
|
|
579
579
|
const a = F(F({}, {
|
|
@@ -748,7 +748,7 @@ function Ln(i) {
|
|
|
748
748
|
function ac(i) {
|
|
749
749
|
i[fn] || delete i[fn];
|
|
750
750
|
}
|
|
751
|
-
class
|
|
751
|
+
class Kt {
|
|
752
752
|
hasListener(t) {
|
|
753
753
|
const e = Ln(this);
|
|
754
754
|
return Boolean((e == null ? void 0 : e[t]) && e[t].length > 0);
|
|
@@ -829,7 +829,7 @@ class hc extends Ri {
|
|
|
829
829
|
m(this, "centerPosition");
|
|
830
830
|
m(this, "ratio");
|
|
831
831
|
m(this, "mode", "front");
|
|
832
|
-
m(this, "hooks", new
|
|
832
|
+
m(this, "hooks", new Kt());
|
|
833
833
|
m(this, "opacityMesh");
|
|
834
834
|
m(this, "selfVisible", !0);
|
|
835
835
|
m(this, "parentVisibleListenerDisposer");
|
|
@@ -941,7 +941,7 @@ class ca extends k.Group {
|
|
|
941
941
|
m(this, "isCSS3DGroup", !0);
|
|
942
942
|
m(this, "mode");
|
|
943
943
|
m(this, "CSS3DObjectLength", 0);
|
|
944
|
-
m(this, "hooks", new
|
|
944
|
+
m(this, "hooks", new Kt());
|
|
945
945
|
this.mode = e;
|
|
946
946
|
}
|
|
947
947
|
add(...e) {
|
|
@@ -1000,7 +1000,7 @@ function yc(i) {
|
|
|
1000
1000
|
}
|
|
1001
1001
|
class vn {
|
|
1002
1002
|
constructor(t) {
|
|
1003
|
-
m(this, "hooks", new
|
|
1003
|
+
m(this, "hooks", new Kt());
|
|
1004
1004
|
m(this, "state", {
|
|
1005
1005
|
enabled: !0,
|
|
1006
1006
|
visible: !0,
|
|
@@ -1308,7 +1308,7 @@ function Pi(i, t, e = new Z(1, 1, 1), n = !1) {
|
|
|
1308
1308
|
const o = new sa(i, t);
|
|
1309
1309
|
return o.setMaterial({ dashed: n, color: e, linewidth: 1 }), o.remove(o.points), o;
|
|
1310
1310
|
}
|
|
1311
|
-
const
|
|
1311
|
+
const hv = (i) => {
|
|
1312
1312
|
const t = {
|
|
1313
1313
|
intersection: null,
|
|
1314
1314
|
disposers: []
|
|
@@ -1451,20 +1451,20 @@ function Ve(i) {
|
|
|
1451
1451
|
}
|
|
1452
1452
|
const pa = typeof window != "undefined";
|
|
1453
1453
|
let ga = pa ? () => window.performance.now() : () => Date.now(), io = pa ? (i) => requestAnimationFrame(i) : J;
|
|
1454
|
-
const
|
|
1454
|
+
const Ut = /* @__PURE__ */ new Set();
|
|
1455
1455
|
function Aa(i) {
|
|
1456
|
-
|
|
1457
|
-
t.c(i) || (
|
|
1458
|
-
}),
|
|
1456
|
+
Ut.forEach((t) => {
|
|
1457
|
+
t.c(i) || (Ut.delete(t), t.f());
|
|
1458
|
+
}), Ut.size !== 0 && io(Aa);
|
|
1459
1459
|
}
|
|
1460
1460
|
function va(i) {
|
|
1461
1461
|
let t;
|
|
1462
|
-
return
|
|
1462
|
+
return Ut.size === 0 && io(Aa), {
|
|
1463
1463
|
promise: new Promise((e) => {
|
|
1464
|
-
|
|
1464
|
+
Ut.add(t = { c: i, f: e });
|
|
1465
1465
|
}),
|
|
1466
1466
|
abort() {
|
|
1467
|
-
|
|
1467
|
+
Ut.delete(t);
|
|
1468
1468
|
}
|
|
1469
1469
|
};
|
|
1470
1470
|
}
|
|
@@ -1722,11 +1722,11 @@ function Tc(i) {
|
|
|
1722
1722
|
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, t), i.after_update.forEach(xe);
|
|
1723
1723
|
}
|
|
1724
1724
|
}
|
|
1725
|
-
let
|
|
1725
|
+
let nn;
|
|
1726
1726
|
function Ia() {
|
|
1727
|
-
return
|
|
1728
|
-
|
|
1729
|
-
})),
|
|
1727
|
+
return nn || (nn = Promise.resolve(), nn.then(() => {
|
|
1728
|
+
nn = null;
|
|
1729
|
+
})), nn;
|
|
1730
1730
|
}
|
|
1731
1731
|
function ti(i, t, e) {
|
|
1732
1732
|
i.dispatchEvent(wa(`${t ? "intro" : "outro"}${e}`));
|
|
@@ -1791,7 +1791,7 @@ function Rt(i, t, e) {
|
|
|
1791
1791
|
}
|
|
1792
1792
|
};
|
|
1793
1793
|
}
|
|
1794
|
-
function
|
|
1794
|
+
function $t(i, t, e) {
|
|
1795
1795
|
let n = t(i, e), o = !0, s;
|
|
1796
1796
|
const r = bt;
|
|
1797
1797
|
r.r += 1;
|
|
@@ -2231,7 +2231,7 @@ class Yc {
|
|
|
2231
2231
|
}
|
|
2232
2232
|
}
|
|
2233
2233
|
}
|
|
2234
|
-
const
|
|
2234
|
+
const mv = (i) => new Yc(i), pv = {
|
|
2235
2235
|
name: "ModelRoomLabelPlugin",
|
|
2236
2236
|
version: 0
|
|
2237
2237
|
};
|
|
@@ -2298,7 +2298,7 @@ function Kc(i, t) {
|
|
|
2298
2298
|
function Ze(i, t, e = { deep: !1 }) {
|
|
2299
2299
|
return e.deep ? uo(i, t) : Zc(i, t);
|
|
2300
2300
|
}
|
|
2301
|
-
function
|
|
2301
|
+
function Jt(i) {
|
|
2302
2302
|
return i < 0.5 ? 4 * i * i * i : 0.5 * Math.pow(2 * i - 2, 3) + 1;
|
|
2303
2303
|
}
|
|
2304
2304
|
function Da(i) {
|
|
@@ -2325,7 +2325,7 @@ function Fo(i, { delay: t = 0, duration: e = 400, easing: n = Da, x: o = 0, y: s
|
|
|
2325
2325
|
opacity: ${l - d * f}`
|
|
2326
2326
|
};
|
|
2327
2327
|
}
|
|
2328
|
-
function oi(i, { delay: t = 0, speed: e, duration: n, easing: o =
|
|
2328
|
+
function oi(i, { delay: t = 0, speed: e, duration: n, easing: o = Jt } = {}) {
|
|
2329
2329
|
let s = i.getTotalLength();
|
|
2330
2330
|
const r = getComputedStyle(i);
|
|
2331
2331
|
return r.strokeLinecap !== "butt" && (s += parseInt(r.strokeWidth)), n === void 0 ? e === void 0 ? n = 800 : n = s / e : typeof n == "function" && (n = n(s)), {
|
|
@@ -4306,7 +4306,7 @@ function po(i, t, e, n) {
|
|
|
4306
4306
|
class mi {
|
|
4307
4307
|
constructor(t, e) {
|
|
4308
4308
|
m(this, "five");
|
|
4309
|
-
m(this, "hooks", new
|
|
4309
|
+
m(this, "hooks", new Kt());
|
|
4310
4310
|
m(this, "staticPrefix", "//vrlab-static.ljcdn.com");
|
|
4311
4311
|
this.five = t, e != null && e.staticPrefix && (this.staticPrefix = e.staticPrefix);
|
|
4312
4312
|
}
|
|
@@ -4370,7 +4370,7 @@ function Ba(i, t, e = !0) {
|
|
|
4370
4370
|
throw new Error(Ge.UpdateCameraError);
|
|
4371
4371
|
});
|
|
4372
4372
|
}
|
|
4373
|
-
function
|
|
4373
|
+
function Zt(i, t, e = 300) {
|
|
4374
4374
|
const n = i.getElement();
|
|
4375
4375
|
!n || (n.style.opacity = t + "", n.style.transition = e === 0 ? "none" : `opacity ${e}ms linear`, e !== 0 && Promise.race([
|
|
4376
4376
|
new Promise((o) => n.addEventListener("transitionend", o, { once: !0 })),
|
|
@@ -4463,7 +4463,7 @@ class zu extends Ht {
|
|
|
4463
4463
|
throw l ? new Error(l) : new Error(Ge.UnknownError);
|
|
4464
4464
|
this.updateSize(), this.floorIndex = o.floorIndex, this.five.model.show(this.floorIndex);
|
|
4465
4465
|
const d = o.modelOpacity, u = o.immediately ? 0 : Ta;
|
|
4466
|
-
|
|
4466
|
+
Zt(this.five, d, u), this.render(u);
|
|
4467
4467
|
});
|
|
4468
4468
|
return this.showPromise = s().then(() => {
|
|
4469
4469
|
this.hooks.emit("showAnimationEnded", {
|
|
@@ -4484,7 +4484,7 @@ class zu extends Ht {
|
|
|
4484
4484
|
userAction: !0,
|
|
4485
4485
|
isAutoHide: !1
|
|
4486
4486
|
}), e);
|
|
4487
|
-
|
|
4487
|
+
Zt(this.five, 1, 0), this.hooks.emit("hide", { auto: o.isAutoHide, userAction: o.userAction }), this.render();
|
|
4488
4488
|
});
|
|
4489
4489
|
m(this, "handleClick", () => {
|
|
4490
4490
|
if (!this.state.visible)
|
|
@@ -4651,7 +4651,7 @@ class zu extends Ht {
|
|
|
4651
4651
|
this.app = new ho({ target: this.container, intro: !0, props: n });
|
|
4652
4652
|
}
|
|
4653
4653
|
}
|
|
4654
|
-
const
|
|
4654
|
+
const gv = (i, t) => new zu(i, t);
|
|
4655
4655
|
function Bu(i) {
|
|
4656
4656
|
const { latitude: t, longitude: e } = i, n = Math.abs(t - Math.PI / 2) > 5 * Math.PI / 180, o = e > 5 * (Math.PI / 180) && e < 355 * (Math.PI / 180);
|
|
4657
4657
|
return n || o;
|
|
@@ -4735,7 +4735,7 @@ class Vu extends Ht {
|
|
|
4735
4735
|
throw l ? new Error(l) : new Error(Ge.UnknownError);
|
|
4736
4736
|
this.updateSize(), this.updatePosition(), this.floorIndex = o.floorIndex, this.five.model.show(this.floorIndex);
|
|
4737
4737
|
const d = o.modelOpacity, u = o.immediately ? 0 : Ta;
|
|
4738
|
-
|
|
4738
|
+
Zt(this.five, d, u), this.render(u);
|
|
4739
4739
|
});
|
|
4740
4740
|
return this.showPromise = s().then(() => {
|
|
4741
4741
|
this.hooks.emit("showAnimationEnded", {
|
|
@@ -4756,7 +4756,7 @@ class Vu extends Ht {
|
|
|
4756
4756
|
userAction: !0,
|
|
4757
4757
|
isAutoHide: !1
|
|
4758
4758
|
}), e);
|
|
4759
|
-
|
|
4759
|
+
Zt(this.five, 1, 0), this.hooks.emit("hide", { auto: o.isAutoHide, userAction: o.userAction }), this.render();
|
|
4760
4760
|
});
|
|
4761
4761
|
m(this, "handleClick", () => {
|
|
4762
4762
|
if (!this.state.visible)
|
|
@@ -4928,7 +4928,7 @@ class Vu extends Ht {
|
|
|
4928
4928
|
this.app = new ho({ target: this.container, intro: !0, props: n });
|
|
4929
4929
|
}
|
|
4930
4930
|
}
|
|
4931
|
-
const
|
|
4931
|
+
const Av = (i, t) => new Vu(i, t);
|
|
4932
4932
|
class Qu extends Ht {
|
|
4933
4933
|
constructor(e, n) {
|
|
4934
4934
|
super(e);
|
|
@@ -5101,7 +5101,7 @@ class Qu extends Ht {
|
|
|
5101
5101
|
const { userAction: n } = e;
|
|
5102
5102
|
this.hooks.emit("show", { userAction: n, auto: !1 }), this.five.getCurrentState().mode !== "Topview" && (yield za(this.five, ["Topview", void 0, void 0, n])), this.five.model.show(this.floorIndex), this.updatePosition(), this.updateSize();
|
|
5103
5103
|
const o = 500, s = this.state.config.modelOpacity;
|
|
5104
|
-
|
|
5104
|
+
Zt(this.five, s, o), this.hooks.emit("showAnimationEnded", { userAction: n, auto: !1 }), this.render();
|
|
5105
5105
|
});
|
|
5106
5106
|
}
|
|
5107
5107
|
_hide(e) {
|
|
@@ -5111,7 +5111,7 @@ class Qu extends Ht {
|
|
|
5111
5111
|
const { userAction: n } = e;
|
|
5112
5112
|
this.hooks.emit("hide", { userAction: n, auto: !1 });
|
|
5113
5113
|
const o = 1, s = 0;
|
|
5114
|
-
|
|
5114
|
+
Zt(this.five, o, s), this.render();
|
|
5115
5115
|
});
|
|
5116
5116
|
}
|
|
5117
5117
|
_enable(e) {
|
|
@@ -5159,7 +5159,7 @@ class Qu extends Ht {
|
|
|
5159
5159
|
this.app = new ho({ target: this.container, intro: !0, props: n });
|
|
5160
5160
|
}
|
|
5161
5161
|
}
|
|
5162
|
-
const
|
|
5162
|
+
const vv = (i, t) => new Qu(i, t);
|
|
5163
5163
|
function Ao(i, t = 200) {
|
|
5164
5164
|
let e;
|
|
5165
5165
|
return function(...n) {
|
|
@@ -5740,7 +5740,7 @@ class ef extends Ht {
|
|
|
5740
5740
|
this.app ? this.app.$set(e) : this.app = new $u({ target: this.wrapper, props: e });
|
|
5741
5741
|
}
|
|
5742
5742
|
}
|
|
5743
|
-
const
|
|
5743
|
+
const bv = (i, t) => new ef(i, t), yv = [
|
|
5744
5744
|
{ type: 0, floorType: 1, roomType: "100900000012", name: "\u5176\u4ED6" },
|
|
5745
5745
|
{ type: 1, floorType: 1, roomType: "100900000002", name: "\u5BA2\u5385" },
|
|
5746
5746
|
{ type: 2, floorType: 1, roomType: "100900000002", name: "\u9910\u5385" },
|
|
@@ -5812,14 +5812,14 @@ const yv = (i, t) => new ef(i, t), wv = [
|
|
|
5812
5812
|
{ type: 56, floorType: 2, roomType: "100900000012", name: "\u7A7A\u4E2D\u82B1\u56ED" },
|
|
5813
5813
|
{ type: 57, floorType: 0, roomType: "100900000001", name: "\u6D0B\u5BA4" },
|
|
5814
5814
|
{ type: 58, floorType: 0, roomType: "100900000001", name: "\u548C\u5BA4" }
|
|
5815
|
-
],
|
|
5815
|
+
], wv = [
|
|
5816
5816
|
{ type: 0, description: "\u6728\u8D28\u5730\u677F" },
|
|
5817
5817
|
{ type: 1, description: "\u74F7\u7816\u5730\u9762" },
|
|
5818
5818
|
{ type: 2, description: "\u6237\u5916\u5730\u9762" },
|
|
5819
5819
|
{ type: 3, description: "\u536B\u751F\u95F4\u5730\u9762" },
|
|
5820
5820
|
{ type: 4, description: "\u9633\u53F0\u5730\u9762" },
|
|
5821
5821
|
{ type: 5, description: "\u8F66\u5E93\u5730\u9762" }
|
|
5822
|
-
],
|
|
5822
|
+
], Cv = [
|
|
5823
5823
|
{ roomType: "100900000001", description: "\u5BA4" },
|
|
5824
5824
|
{ roomType: "100900000002", description: "\u5385" },
|
|
5825
5825
|
{ roomType: "100900000003", description: "\u53A8" },
|
|
@@ -5858,7 +5858,7 @@ function ja(i, t) {
|
|
|
5858
5858
|
}
|
|
5859
5859
|
});
|
|
5860
5860
|
}
|
|
5861
|
-
const
|
|
5861
|
+
const Ev = (i, t) => {
|
|
5862
5862
|
var d;
|
|
5863
5863
|
const e = t.fbx_url || "//vrlab-static.ljcdn.com/release/web/v3/dipan3/dipan.FBX", n = (d = t.north_rad) != null ? d : void 0, o = {}, s = (u) => _(void 0, null, function* () {
|
|
5864
5864
|
var X;
|
|
@@ -5912,7 +5912,7 @@ function nf(i, t) {
|
|
|
5912
5912
|
const l = a.getContext("2d");
|
|
5913
5913
|
return l.fillStyle = o, l.fillRect(0, 0, e, e), l.font = `${n}px "\u5FAE\u8F6F\u96C5\u9ED1"`, l.textAlign = r, l.fillStyle = s, l.fillText(i, e / 2, e * 0.7), new Vl(a);
|
|
5914
5914
|
}
|
|
5915
|
-
const of = ({ x: i, y: t, z: e }) => new Z(i, t, e),
|
|
5915
|
+
const of = ({ x: i, y: t, z: e }) => new Z(i, t, e), Pv = (i, t) => {
|
|
5916
5916
|
var A, g, v;
|
|
5917
5917
|
const e = {}, n = (A = t.animationEnabled) != null ? A : !0, o = (g = t.position) != null ? g : void 0, s = (v = t.rad) != null ? v : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (w) => _(void 0, null, function* () {
|
|
5918
5918
|
var G, H, X, V, P, R, O, W;
|
|
@@ -6043,7 +6043,7 @@ function Di(i, t, e) {
|
|
|
6043
6043
|
const Ni = (i, t, e) => {
|
|
6044
6044
|
const n = Math.PI, o = n * 2;
|
|
6045
6045
|
return i = gs(i), t = gs(t), e === nt.Anticlockwise && i < t && (i += o), e === nt.Clockwise && t < i && (t += o), e === nt.Loop && t - i > n ? Ni(i, t, nt.Anticlockwise) : e === nt.Loop && i - t > n ? Ni(i, t, nt.Clockwise) : { from: i, to: t };
|
|
6046
|
-
},
|
|
6046
|
+
}, Iv = (i) => {
|
|
6047
6047
|
const t = {}, e = (l, c, ...d) => _(void 0, [l, c, ...d], function* (s, r, a = { preload: !0 }) {
|
|
6048
6048
|
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((u, f) => {
|
|
6049
6049
|
const h = s.panoIndex !== void 0 ? s.panoIndex : i.panoIndex;
|
|
@@ -6253,7 +6253,7 @@ const ff = `<style type="text/css">
|
|
|
6253
6253
|
a.__roof.sort(), a.__floor.sort(), a.floor = a.__floor[~~(a.__floor.length / 2)], a.roof = a.__roof[a.__roof.length - 1];
|
|
6254
6254
|
}
|
|
6255
6255
|
return e;
|
|
6256
|
-
},
|
|
6256
|
+
}, kv = (i, t) => {
|
|
6257
6257
|
const e = {
|
|
6258
6258
|
enable: !1,
|
|
6259
6259
|
loaded: !1,
|
|
@@ -6807,7 +6807,7 @@ class Pf {
|
|
|
6807
6807
|
this.container && (this.rulerItems.$destroy(), this.rulerItems = void 0), this.container.remove();
|
|
6808
6808
|
}
|
|
6809
6809
|
}
|
|
6810
|
-
const
|
|
6810
|
+
const xv = (i, t) => new Pf(i, t), If = "data:image/png;base64,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";
|
|
6811
6811
|
function kf() {
|
|
6812
6812
|
const i = document.createElement("div"), t = document.createElement("i"), e = document.createElement("span");
|
|
6813
6813
|
return i.appendChild(t), i.appendChild(e), i.style.position = "relative", i.style.width = "100%", i.style.display = "flex", i.style.flexDirection = "column", i.style.alignItems = "center", i.style.marginTop = `${150 / 16}rem`, i.style.opacity = "0", i.style.transition = "opacity 1000ms linear", t.style.display = "block", t.style.width = `${134 / 16}rem`, t.style.height = `${22 / 16}rem`, t.style.backgroundSize = "100%", t.style.backgroundRepeat = "no-repeat", t.style.backgroundImage = `url(${If})`, e.style.marginTop = `${10 / 16}rem`, e.style.fontSize = `${16 / 16}rem`, e.style.color = "#fff", e.style.opacity = "0.7", e.style.textShadow = "0 2px 16px rgb(22 34 83 / 24%)", e.style.fontWeight = "bold", {
|
|
@@ -7017,7 +7017,7 @@ class Df extends Ht {
|
|
|
7017
7017
|
return En(this.five).create3DDomContainer(e);
|
|
7018
7018
|
}
|
|
7019
7019
|
}
|
|
7020
|
-
const
|
|
7020
|
+
const Dv = (i, t) => new Df(i, t);
|
|
7021
7021
|
function Vn(i, t, e) {
|
|
7022
7022
|
const n = i[t], o = i[e];
|
|
7023
7023
|
n === void 0 || o === void 0 || (i[t] = o, i[e] = n);
|
|
@@ -7276,7 +7276,7 @@ class bo {
|
|
|
7276
7276
|
const [l, c] = a.points, d = e(l), u = e(c);
|
|
7277
7277
|
if (!d || !u)
|
|
7278
7278
|
throw new Error("\u7EBF\u4E0A\u7684\u70B9\u4E0D\u5B58\u5728");
|
|
7279
|
-
const f = new
|
|
7279
|
+
const f = new en(d, u, this.model);
|
|
7280
7280
|
return f.id = a.id, f.text = a.text, f;
|
|
7281
7281
|
}), s = n();
|
|
7282
7282
|
this.points.push(...s), this.lines.push(...o), this.visiblePanoIndexes = t.visiblePanoIndexes;
|
|
@@ -7412,7 +7412,7 @@ function Xf(i) {
|
|
|
7412
7412
|
}
|
|
7413
7413
|
return l;
|
|
7414
7414
|
}
|
|
7415
|
-
class
|
|
7415
|
+
class en {
|
|
7416
7416
|
constructor(t, e, n) {
|
|
7417
7417
|
m(this, "id");
|
|
7418
7418
|
m(this, "selected", !1);
|
|
@@ -7457,7 +7457,7 @@ class tn {
|
|
|
7457
7457
|
return { id: this.id, points: this.points.map((t) => t.toJson()), text: this.text };
|
|
7458
7458
|
}
|
|
7459
7459
|
clone() {
|
|
7460
|
-
const t = new
|
|
7460
|
+
const t = new en(this.points[0].clone(), this.points[1].clone(), this.model);
|
|
7461
7461
|
return t.text = this.text, t;
|
|
7462
7462
|
}
|
|
7463
7463
|
}
|
|
@@ -7539,7 +7539,7 @@ class Ai {
|
|
|
7539
7539
|
this.dashed.distanceItem.update(this.five), this.model.getAllLines().forEach((t) => t.distanceItem.update(this.five));
|
|
7540
7540
|
});
|
|
7541
7541
|
var n, o;
|
|
7542
|
-
this.five = t.five, this.hook = t.hook, this.model = t.model, this.config = t.config, this.magnifier = t.magnifier, this.container = t.container, this.fiveHelper = t.fiveHelper, this.isMobile = (o = (n = t.openParams) == null ? void 0 : n.isMobile) != null ? o : !1, this.userDistanceItemCreator = t.userDistanceItemCreator, this.group = t.group, this.mouseGroup = t.mouseGroup, this.dashed = new
|
|
7542
|
+
this.five = t.five, this.hook = t.hook, this.model = t.model, this.config = t.config, this.magnifier = t.magnifier, this.container = t.container, this.fiveHelper = t.fiveHelper, this.isMobile = (o = (n = t.openParams) == null ? void 0 : n.isMobile) != null ? o : !1, this.userDistanceItemCreator = t.userDistanceItemCreator, this.group = t.group, this.mouseGroup = t.mouseGroup, this.dashed = new en(new qe([0, 0, 0]), new qe([0, 0, 0]), this.model), this.dashed.distanceItem.setItemSelectable(!1), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine";
|
|
7543
7543
|
const e = this.five.getElement();
|
|
7544
7544
|
e && (e.addEventListener("touchstart", Qn), e.addEventListener("contextmenu", Qn));
|
|
7545
7545
|
}
|
|
@@ -7628,7 +7628,7 @@ class Rn extends Ai {
|
|
|
7628
7628
|
this.updateMouseGroup(n);
|
|
7629
7629
|
const o = new qe(this.mouseGroup.position), s = this.lastPoint;
|
|
7630
7630
|
if (o && (this.lastPoint = o), o && s) {
|
|
7631
|
-
const r = new
|
|
7631
|
+
const r = new en(s, o, this.model);
|
|
7632
7632
|
r.distanceItem.setItemSelectable(!1), r.distanceItem.appendTo(this.container), this.polyline.addLine(r), this.group.add(r.mesh), r.distanceItem.update(this.five);
|
|
7633
7633
|
}
|
|
7634
7634
|
this.pressPoint = void 0, this.hasAppendMouseGroup = !1, this.magnifier.disable(), this.group.remove(this.mouseGroup), this.updateDashed(), this.five.needsRender = !0, this.hook.emit("anchorChange", o.position);
|
|
@@ -8165,7 +8165,7 @@ class ah {
|
|
|
8165
8165
|
return this.mouseGroup;
|
|
8166
8166
|
}
|
|
8167
8167
|
}
|
|
8168
|
-
class
|
|
8168
|
+
class on extends Ai {
|
|
8169
8169
|
constructor(e) {
|
|
8170
8170
|
super(e);
|
|
8171
8171
|
m(this, "state", "watching");
|
|
@@ -8221,7 +8221,7 @@ class sn extends Ai {
|
|
|
8221
8221
|
m(this, "onGetEndPoint", (e) => {
|
|
8222
8222
|
const n = this.mobileNowPoint;
|
|
8223
8223
|
if (this.removeLine(this.dashed), this.hasAppendDashed = !1, this.mobileStartPoint && n) {
|
|
8224
|
-
const o = new
|
|
8224
|
+
const o = new en(this.mobileStartPoint, n, this.model);
|
|
8225
8225
|
o.distanceItem.appendTo(this.container), o.distanceItem.update(this.five), o.hook.on("selected", this.chooseLine), this.disposers.push(() => o.hook.off("selected", this.chooseLine)), this.group.add(o.mesh), this.polyline.addLine(o);
|
|
8226
8226
|
}
|
|
8227
8227
|
this.mobileStartPoint = null, this.mobileNowPoint = null, this.five.needsRender = !0;
|
|
@@ -8799,7 +8799,7 @@ class Ph {
|
|
|
8799
8799
|
m(this, "container", document.createElement("div"));
|
|
8800
8800
|
m(this, "shortcutKeyController");
|
|
8801
8801
|
m(this, "controller", null);
|
|
8802
|
-
m(this, "getCurrentMode", () => this.controller instanceof Rn ? "Edit" : this.controller instanceof xs ? "Watch" : this.controller instanceof
|
|
8802
|
+
m(this, "getCurrentMode", () => this.controller instanceof Rn ? "Edit" : this.controller instanceof xs ? "Watch" : this.controller instanceof on ? "Mixed" : this.controller instanceof Is ? "View" : null);
|
|
8803
8803
|
m(this, "changeMode", (t) => {
|
|
8804
8804
|
var o;
|
|
8805
8805
|
if (!this.hasOpen || this.getCurrentMode() === t)
|
|
@@ -8809,7 +8809,7 @@ class Ph {
|
|
|
8809
8809
|
View: Is,
|
|
8810
8810
|
Watch: xs,
|
|
8811
8811
|
Edit: Rn,
|
|
8812
|
-
Mixed:
|
|
8812
|
+
Mixed: on
|
|
8813
8813
|
};
|
|
8814
8814
|
if (!e[t])
|
|
8815
8815
|
throw new Error("\u4E0D\u5B58\u5728\u7684 Mode");
|
|
@@ -8881,16 +8881,16 @@ class Ph {
|
|
|
8881
8881
|
}
|
|
8882
8882
|
save(t) {
|
|
8883
8883
|
var o;
|
|
8884
|
-
if (!(this.controller instanceof Rn) && !(this.controller instanceof
|
|
8884
|
+
if (!(this.controller instanceof Rn) && !(this.controller instanceof on))
|
|
8885
8885
|
return this;
|
|
8886
8886
|
const e = (o = t == null ? void 0 : t.mode) != null ? o : "View", n = this.controller.polyline;
|
|
8887
8887
|
return this.model.addPolyline(n), this.changeMode(e), this;
|
|
8888
8888
|
}
|
|
8889
8889
|
addStartPoint() {
|
|
8890
|
-
this.controller instanceof
|
|
8890
|
+
this.controller instanceof on && this.hook.emit("willChangeState", "watching", "editing");
|
|
8891
8891
|
}
|
|
8892
8892
|
addEndPoint() {
|
|
8893
|
-
this.controller instanceof
|
|
8893
|
+
this.controller instanceof on && this.hook.emit("willChangeState", "editing", "watching");
|
|
8894
8894
|
}
|
|
8895
8895
|
toJson() {
|
|
8896
8896
|
return this.model.toJson();
|
|
@@ -8935,7 +8935,7 @@ class Ph {
|
|
|
8935
8935
|
};
|
|
8936
8936
|
}
|
|
8937
8937
|
}
|
|
8938
|
-
const
|
|
8938
|
+
const Lv = function(t, e) {
|
|
8939
8939
|
return new Ph(t, e);
|
|
8940
8940
|
}, Za = fo(null);
|
|
8941
8941
|
function Ih(i) {
|
|
@@ -9273,7 +9273,7 @@ class Qh {
|
|
|
9273
9273
|
}
|
|
9274
9274
|
}
|
|
9275
9275
|
}
|
|
9276
|
-
const Si = 1e-3, Vs = 0.01, Rh = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png",
|
|
9276
|
+
const Si = 1e-3, Vs = 0.01, Rh = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png", Sv = (i, t) => {
|
|
9277
9277
|
var N, U, de, ue, me, Ee, Me, Re;
|
|
9278
9278
|
let e = t == null ? void 0 : t.container, n = 1.4;
|
|
9279
9279
|
const o = (N = t == null ? void 0 : t.wait) != null ? N : 200, s = (U = t == null ? void 0 : t.maxNumberOnScreen) != null ? U : 3, r = (de = t == null ? void 0 : t.minRad) != null ? de : 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 = (Ee = t == null ? void 0 : t.minDistance) != null ? Ee : 1.2, d = (Me = t == null ? void 0 : t.maxDistance) != null ? Me : 3.5, u = En(i), f = document.createElement("div");
|
|
@@ -9367,8 +9367,8 @@ const Si = 1e-3, Vs = 0.01, Rh = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9367
9367
|
const Ue = ce.position.clone().setY(n).distanceTo(Oe.position);
|
|
9368
9368
|
if (Ue < c || Ue > d || !tt.containsPoint(Oe.position))
|
|
9369
9369
|
return Te;
|
|
9370
|
-
const
|
|
9371
|
-
if (
|
|
9370
|
+
const tn = Oe.position.clone().sub(ce.position).setY(0);
|
|
9371
|
+
if (tn.angleTo(Oe.normal) > Math.PI / 2 - r && tn.angleTo(Oe.normal) < Math.PI / 2 + r)
|
|
9372
9372
|
return Te;
|
|
9373
9373
|
const Ft = Oe.position.clone().project(ce);
|
|
9374
9374
|
if (!A.tags.every((Be) => {
|
|
@@ -9406,13 +9406,13 @@ const Si = 1e-3, Vs = 0.01, Rh = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9406
9406
|
const Ue = mt[Te];
|
|
9407
9407
|
if (we.find((Pe) => Ue.id === Pe.id))
|
|
9408
9408
|
continue;
|
|
9409
|
-
const
|
|
9409
|
+
const tn = Ue.position.clone().project(ce);
|
|
9410
9410
|
if (!A.tags.concat(we).every((Pe) => {
|
|
9411
9411
|
if (Pe.position.clone().sub(ce.position).setY(0).angleTo(ge.setY(0)) > Math.PI / 2)
|
|
9412
9412
|
return !0;
|
|
9413
9413
|
const Be = Pe.position.clone().project(ce);
|
|
9414
9414
|
return Math.sqrt(
|
|
9415
|
-
Math.pow((
|
|
9415
|
+
Math.pow((tn.x - Be.x) / 2 * ae, 2) + Math.pow((tn.y - Be.y) / 2 * ve, 2)
|
|
9416
9416
|
) > a;
|
|
9417
9417
|
}))
|
|
9418
9418
|
continue;
|
|
@@ -9509,7 +9509,7 @@ const Si = 1e-3, Vs = 0.01, Rh = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9509
9509
|
dispose: Y
|
|
9510
9510
|
};
|
|
9511
9511
|
};
|
|
9512
|
-
var
|
|
9512
|
+
var Xt = /* @__PURE__ */ ((i) => (i.SMALL = "small", i.MIDLLE = "middle", i.LARGE = "large", i.EXTRA_LARGE = "x-large", i))(Xt || {});
|
|
9513
9513
|
function Oh(i) {
|
|
9514
9514
|
le(i, "svelte-1ir3cyd", `.item-label-item.svelte-1ir3cyd{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0}.item-label-item.visible.svelte-1ir3cyd{opacity:1;animation:svelte-1ir3cyd-fadeIn .3s ease-in}.item-label-item__text-wrap.svelte-1ir3cyd::before{content:'';position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);filter:blur(1rem);z-index:-1}.item-label-item__text-wrap.svelte-1ir3cyd{padding:0.375rem 0.375rem 0;position:absolute;height:1.25rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap;line-height:0.625rem;font-size:0.6875rem;font-weight:bold;color:#FFEAC0;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center}.item-label-item__text.svelte-1ir3cyd{padding-bottom:0.25rem;border-top:0 solid;border-left:0 solid;border-right:0 solid;border-bottom:0.0625rem solid;-o-border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5;border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5}.item-label-item__bar.svelte-1ir3cyd{position:absolute;bottom:0;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(234, 208, 154, 0), rgba(234, 208, 154, 1))}@keyframes svelte-1ir3cyd-fadeIn{from{opacity:0
|
|
9515
9515
|
}to{opacity:1
|
|
@@ -9653,13 +9653,13 @@ function Xh(i, t, e) {
|
|
|
9653
9653
|
}, w = (V) => `translate(${V[0]}px, ${V[1]}px)`, y = (V, P) => p.length === 0 ? !1 : !!p.find((O) => V[0] >= O[0] - P && V[0] <= O[0] + P || V[1] >= O[1] - Os && V[1] <= O[1] + Os);
|
|
9654
9654
|
function C(V, P) {
|
|
9655
9655
|
switch (P) {
|
|
9656
|
-
case
|
|
9656
|
+
case Xt.SMALL:
|
|
9657
9657
|
return Math.ceil(-27.78 * V + 85);
|
|
9658
|
-
case
|
|
9658
|
+
case Xt.MIDLLE:
|
|
9659
9659
|
return Math.ceil(-38.9 * V + 130);
|
|
9660
|
-
case
|
|
9660
|
+
case Xt.LARGE:
|
|
9661
9661
|
return Math.ceil(-44.44 * V + 140);
|
|
9662
|
-
case
|
|
9662
|
+
case Xt.EXTRA_LARGE:
|
|
9663
9663
|
return Math.ceil(-92.59 * V + 300);
|
|
9664
9664
|
}
|
|
9665
9665
|
}
|
|
@@ -9752,7 +9752,7 @@ function Uh(i) {
|
|
|
9752
9752
|
modelPosition: [t.position[0], t.position[1] + t.size[1], t.position[2]]
|
|
9753
9753
|
}, t));
|
|
9754
9754
|
}
|
|
9755
|
-
const
|
|
9755
|
+
const Mv = (i, t) => {
|
|
9756
9756
|
var f, h;
|
|
9757
9757
|
const e = {
|
|
9758
9758
|
container: document.createElement("div"),
|
|
@@ -9764,7 +9764,7 @@ const Tv = (i, t) => {
|
|
|
9764
9764
|
app: void 0,
|
|
9765
9765
|
hooks: new Ye(),
|
|
9766
9766
|
modelOcclusionEnable: (f = t == null ? void 0 : t.modelOcclusionEnable) != null ? f : !0,
|
|
9767
|
-
displayStrategyType: (h = t == null ? void 0 : t.displayStrategyType) != null ? h :
|
|
9767
|
+
displayStrategyType: (h = t == null ? void 0 : t.displayStrategyType) != null ? h : Xt.SMALL
|
|
9768
9768
|
};
|
|
9769
9769
|
e.container.setAttribute("class", "model-item-label-plugin-container"), e.container.style.cssText = `
|
|
9770
9770
|
position: absolute;
|
|
@@ -9823,7 +9823,7 @@ const Tv = (i, t) => {
|
|
|
9823
9823
|
dispose: a,
|
|
9824
9824
|
hooks: e.hooks
|
|
9825
9825
|
};
|
|
9826
|
-
},
|
|
9826
|
+
}, Tv = {
|
|
9827
9827
|
name: "ModelItemLabelPlugin",
|
|
9828
9828
|
version: 0
|
|
9829
9829
|
};
|
|
@@ -9844,7 +9844,7 @@ function Jh(i) {
|
|
|
9844
9844
|
t.push(n);
|
|
9845
9845
|
}), t;
|
|
9846
9846
|
}
|
|
9847
|
-
const
|
|
9847
|
+
const zv = (i, { videoElement: t }) => {
|
|
9848
9848
|
const e = {
|
|
9849
9849
|
videoMeshes: [],
|
|
9850
9850
|
videoTextureEnabled: !1,
|
|
@@ -10114,22 +10114,22 @@ class tm extends oe {
|
|
|
10114
10114
|
);
|
|
10115
10115
|
}
|
|
10116
10116
|
}
|
|
10117
|
-
const { Raycaster: nm, Vector3:
|
|
10117
|
+
const { Raycaster: nm, Vector3: Bv } = k, Fs = (i, t, e, n) => {
|
|
10118
10118
|
const o = t.clone().sub(e).normalize(), s = new nm();
|
|
10119
10119
|
s.set(e, o);
|
|
10120
10120
|
const [r] = i.model.intersectRaycaster(s);
|
|
10121
10121
|
return r && r.distance + 0.01 < n;
|
|
10122
10122
|
};
|
|
10123
|
-
var
|
|
10123
|
+
var Yt = /* @__PURE__ */ ((i) => (i.SMALL = "small", i.MIDLLE = "middle", i.LARGE = "large", i.EXTRA_LARGE = "x-large", i))(Yt || {});
|
|
10124
10124
|
const im = (i, t) => {
|
|
10125
10125
|
switch (t) {
|
|
10126
|
-
case
|
|
10126
|
+
case Yt.SMALL:
|
|
10127
10127
|
return Math.ceil(-27.78 * i + 85);
|
|
10128
|
-
case
|
|
10128
|
+
case Yt.MIDLLE:
|
|
10129
10129
|
return Math.ceil(-38.9 * i + 130);
|
|
10130
|
-
case
|
|
10130
|
+
case Yt.LARGE:
|
|
10131
10131
|
return Math.ceil(-44.44 * i + 140);
|
|
10132
|
-
case
|
|
10132
|
+
case Yt.EXTRA_LARGE:
|
|
10133
10133
|
return Math.ceil(-92.59 * i + 300);
|
|
10134
10134
|
}
|
|
10135
10135
|
}, om = (i) => `translate(${i[0]}px, ${i[1]}px)`;
|
|
@@ -10392,7 +10392,7 @@ function dm(i) {
|
|
|
10392
10392
|
observerIndex: void 0
|
|
10393
10393
|
}));
|
|
10394
10394
|
}
|
|
10395
|
-
const um = void 0,
|
|
10395
|
+
const um = void 0, jv = (i, t) => {
|
|
10396
10396
|
var f, h, p, A;
|
|
10397
10397
|
const e = {
|
|
10398
10398
|
container: document.createElement("div"),
|
|
@@ -10405,7 +10405,7 @@ const um = void 0, Vv = (i, t) => {
|
|
|
10405
10405
|
hooks: new Ye(),
|
|
10406
10406
|
modelOcclusionEnable: (f = t == null ? void 0 : t.modelOcclusionEnable) != null ? f : !0,
|
|
10407
10407
|
onlyVisibleInPanorama: (h = t == null ? void 0 : t.onlyVisibleInPanorama) != null ? h : !0,
|
|
10408
|
-
displayStrategyType: (p = t == null ? void 0 : t.displayStrategyType) != null ? p :
|
|
10408
|
+
displayStrategyType: (p = t == null ? void 0 : t.displayStrategyType) != null ? p : Yt.SMALL,
|
|
10409
10409
|
maxVisibleDistance: (A = t == null ? void 0 : t.maxVisibleDistance) != null ? A : um
|
|
10410
10410
|
};
|
|
10411
10411
|
e.container.setAttribute("class", "item-label-plugin-container"), e.container.style.cssText = `
|
|
@@ -10465,7 +10465,7 @@ const um = void 0, Vv = (i, t) => {
|
|
|
10465
10465
|
dispose: a,
|
|
10466
10466
|
hooks: e.hooks
|
|
10467
10467
|
};
|
|
10468
|
-
},
|
|
10468
|
+
}, Vv = {
|
|
10469
10469
|
name: "ItemLabelPlugin",
|
|
10470
10470
|
version: 0
|
|
10471
10471
|
};
|
|
@@ -10785,7 +10785,7 @@ class Cm extends fm {
|
|
|
10785
10785
|
this && this.five && (this.five.off("wantsToMoveToPano", this.hideAllLabels), this.five.off("modelLoaded", this.fixDoorVisibleAndPosition), this.five.off("panoArrived", this.fixDoorVisibleAndPosition), this.five.off("initAnimationEnded", this.fixDoorPosition), this.five.off("cameraUpdate", this.fixDoorPosition), this.five.off("mouseWheel", this.fixDoorPosition), this.five.off("pinchGesture", this.fixDoorPosition), super.dispose());
|
|
10786
10786
|
}
|
|
10787
10787
|
}
|
|
10788
|
-
const
|
|
10788
|
+
const Qv = (i) => new Cm(i), Em = 2, Pm = 3, Im = 3, km = 2;
|
|
10789
10789
|
function xm(i, t) {
|
|
10790
10790
|
var r, a, l;
|
|
10791
10791
|
if (i.length < 2)
|
|
@@ -11458,7 +11458,7 @@ class il extends Ht {
|
|
|
11458
11458
|
}
|
|
11459
11459
|
}
|
|
11460
11460
|
m(il, "PluginVersion", tl);
|
|
11461
|
-
const
|
|
11461
|
+
const Rv = (i) => new il(i);
|
|
11462
11462
|
function Om(i) {
|
|
11463
11463
|
le(i, "svelte-xuejcm", ".line.svelte-xuejcm{position:absolute;pointer-events:none}.line.vertical.svelte-xuejcm{transform:rotate(-90deg) translate3d(0.03125rem, 0, 0.625rem);transform-origin:0 0}.line.horizontal.svelte-xuejcm{transform:translate3d(0, -0.03125rem, 0.625rem)}.straight-line.svelte-xuejcm{display:block;width:100%;height:100%;overflow:visible}");
|
|
11464
11464
|
}
|
|
@@ -11503,7 +11503,7 @@ function qs(i) {
|
|
|
11503
11503
|
}), s = !0);
|
|
11504
11504
|
},
|
|
11505
11505
|
o(r) {
|
|
11506
|
-
n && n.invalidate(), r && (o =
|
|
11506
|
+
n && n.invalidate(), r && (o = $t(t, oi, {
|
|
11507
11507
|
duration: i[2],
|
|
11508
11508
|
delay: i[1],
|
|
11509
11509
|
easing: Et
|
|
@@ -11613,7 +11613,7 @@ function Ks(i) {
|
|
|
11613
11613
|
}), s = !0);
|
|
11614
11614
|
},
|
|
11615
11615
|
o(r) {
|
|
11616
|
-
n && n.invalidate(), r && (o =
|
|
11616
|
+
n && n.invalidate(), r && (o = $t(t, Bt, { duration: i[1] })), s = !1;
|
|
11617
11617
|
},
|
|
11618
11618
|
d(r) {
|
|
11619
11619
|
r && T(t), r && o && o.end();
|
|
@@ -11747,12 +11747,12 @@ function $s(i) {
|
|
|
11747
11747
|
if (Jm(i))
|
|
11748
11748
|
return ot(i == null ? void 0 : i.position);
|
|
11749
11749
|
if (He(i) && i.matrix) {
|
|
11750
|
-
const t = new
|
|
11750
|
+
const t = new an().fromArray(i.matrix), e = i.data.mediaPosition.map((n) => new Z().fromArray(n).applyMatrix4(t));
|
|
11751
11751
|
return no(e[0], e[2]);
|
|
11752
11752
|
} else
|
|
11753
11753
|
return Ji(i.position);
|
|
11754
11754
|
}
|
|
11755
|
-
function
|
|
11755
|
+
function sn(i, t) {
|
|
11756
11756
|
if (i === void 0)
|
|
11757
11757
|
return;
|
|
11758
11758
|
const { min: e, max: n } = t != null ? t : {};
|
|
@@ -12032,15 +12032,15 @@ function or(i) {
|
|
|
12032
12032
|
a && a.end(1), r = Rt(o, Bt, {
|
|
12033
12033
|
duration: i[2],
|
|
12034
12034
|
delay: i[3],
|
|
12035
|
-
easing:
|
|
12035
|
+
easing: Jt
|
|
12036
12036
|
}), r.start();
|
|
12037
12037
|
}), l = !0);
|
|
12038
12038
|
},
|
|
12039
12039
|
o(u) {
|
|
12040
|
-
S(e.$$.fragment, u), r && r.invalidate(), u && (a =
|
|
12040
|
+
S(e.$$.fragment, u), r && r.invalidate(), u && (a = $t(o, Bt, {
|
|
12041
12041
|
duration: i[2],
|
|
12042
12042
|
delay: i[4],
|
|
12043
|
-
easing:
|
|
12043
|
+
easing: Jt
|
|
12044
12044
|
})), l = !1;
|
|
12045
12045
|
},
|
|
12046
12046
|
d(u) {
|
|
@@ -12754,10 +12754,10 @@ function fr(i) {
|
|
|
12754
12754
|
}), o = !0);
|
|
12755
12755
|
},
|
|
12756
12756
|
o(s) {
|
|
12757
|
-
e && e.invalidate(), s && (n =
|
|
12757
|
+
e && e.invalidate(), s && (n = $t(t, oi, {
|
|
12758
12758
|
duration: i[1],
|
|
12759
12759
|
delay: i[2],
|
|
12760
|
-
easing:
|
|
12760
|
+
easing: Jt
|
|
12761
12761
|
})), o = !1;
|
|
12762
12762
|
},
|
|
12763
12763
|
d(s) {
|
|
@@ -13694,7 +13694,7 @@ function Ir(i) {
|
|
|
13694
13694
|
}), r = !0);
|
|
13695
13695
|
},
|
|
13696
13696
|
o(d) {
|
|
13697
|
-
S(n), o && o.invalidate(), d && (s =
|
|
13697
|
+
S(n), o && o.invalidate(), d && (s = $t(t, Fo, i[6] ? {
|
|
13698
13698
|
y: 4,
|
|
13699
13699
|
duration: i[4],
|
|
13700
13700
|
delay: i[3],
|
|
@@ -14489,7 +14489,7 @@ class Vg {
|
|
|
14489
14489
|
o && o.updateWithIntersect(t), this.five.needsRender = !0;
|
|
14490
14490
|
}
|
|
14491
14491
|
}
|
|
14492
|
-
const
|
|
14492
|
+
const Ov = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14493
14493
|
__proto__: null,
|
|
14494
14494
|
Interval: $i,
|
|
14495
14495
|
Rectangle: Ig,
|
|
@@ -14732,12 +14732,12 @@ class Hg extends oe {
|
|
|
14732
14732
|
super(), ie(this, t, Og, Rg, ne, { tag: 0 }, Qg);
|
|
14733
14733
|
}
|
|
14734
14734
|
}
|
|
14735
|
-
const
|
|
14735
|
+
const qt = "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=", hn = {};
|
|
14736
14736
|
var ai = /* @__PURE__ */ ((i) => (i.Default = "default", i.GetAudioDuration = "getAudioDuration", i.PlayAudio = "playAudio", i))(ai || {});
|
|
14737
14737
|
function hl(i, t) {
|
|
14738
14738
|
const e = (t == null ? void 0 : t.namespace) || "default", n = hn[e] || (hn[e] = []);
|
|
14739
|
-
let o = n.find((s) => !s.realSrc || s.realSrc ===
|
|
14740
|
-
return o || (console.warn("\u672A\u627E\u5230\u7F13\u5B58\u97F3\u9891\uFF0C\u5DF2\u65B0\u5EFA", hn), o = new Eo(
|
|
14739
|
+
let o = n.find((s) => !s.realSrc || s.realSrc === qt);
|
|
14740
|
+
return o || (console.warn("\u672A\u627E\u5230\u7F13\u5B58\u97F3\u9891\uFF0C\u5DF2\u65B0\u5EFA", hn), o = new Eo(qt), n.push(o)), i && (o.src = i), o;
|
|
14741
14741
|
}
|
|
14742
14742
|
function Fg(i) {
|
|
14743
14743
|
return _(this, null, function* () {
|
|
@@ -14755,7 +14755,7 @@ function Fr(i, t) {
|
|
|
14755
14755
|
const e = (t == null ? void 0 : t.namespace) || "default", n = hn[e] || (hn[e] = []), o = i - n.length;
|
|
14756
14756
|
if (!(o <= 0))
|
|
14757
14757
|
for (let s = 0; s < o; s++)
|
|
14758
|
-
n.push(new Eo(
|
|
14758
|
+
n.push(new Eo(qt));
|
|
14759
14759
|
}
|
|
14760
14760
|
class Eo extends Audio {
|
|
14761
14761
|
constructor(e) {
|
|
@@ -14773,7 +14773,7 @@ class Eo extends Audio {
|
|
|
14773
14773
|
};
|
|
14774
14774
|
}
|
|
14775
14775
|
get isBlankAudio() {
|
|
14776
|
-
return this.realSrc ===
|
|
14776
|
+
return this.realSrc === qt || !this.realSrc;
|
|
14777
14777
|
}
|
|
14778
14778
|
get src() {
|
|
14779
14779
|
return super.src;
|
|
@@ -14782,11 +14782,11 @@ class Eo extends Audio {
|
|
|
14782
14782
|
super.src = e, this.realSrc = e;
|
|
14783
14783
|
}
|
|
14784
14784
|
clear() {
|
|
14785
|
-
this.src =
|
|
14785
|
+
this.src = qt, this.currentTime = 0;
|
|
14786
14786
|
}
|
|
14787
14787
|
}
|
|
14788
14788
|
function Gg(i) {
|
|
14789
|
-
!i || i.inited || (i.src && (i.inited = !0, i.removeDocumentEventListener()), i.src ===
|
|
14789
|
+
!i || i.inited || (i.src && (i.inited = !0, i.removeDocumentEventListener()), i.src === qt && i.play());
|
|
14790
14790
|
}
|
|
14791
14791
|
class Wg extends Audio {
|
|
14792
14792
|
constructor(e) {
|
|
@@ -15175,16 +15175,16 @@ function Nr(i) {
|
|
|
15175
15175
|
r && r.end(1), s = Rt(t, Bt, {
|
|
15176
15176
|
duration: 1e3,
|
|
15177
15177
|
delay: 0,
|
|
15178
|
-
easing:
|
|
15178
|
+
easing: Jt
|
|
15179
15179
|
}), s.start();
|
|
15180
15180
|
}), a = !0);
|
|
15181
15181
|
},
|
|
15182
15182
|
o(l) {
|
|
15183
15183
|
var c, d;
|
|
15184
|
-
S(e.$$.fragment, l), S(o.$$.fragment, l), s && s.invalidate(), l && (r =
|
|
15184
|
+
S(e.$$.fragment, l), S(o.$$.fragment, l), s && s.invalidate(), l && (r = $t(t, Bt, {
|
|
15185
15185
|
duration: 1e3,
|
|
15186
15186
|
delay: 20 * Math.min((d = (c = i[5]) == null ? void 0 : c.length) != null ? d : 10, 15),
|
|
15187
|
-
easing:
|
|
15187
|
+
easing: Jt
|
|
15188
15188
|
})), a = !1;
|
|
15189
15189
|
},
|
|
15190
15190
|
d(l) {
|
|
@@ -16859,7 +16859,7 @@ class uA extends dA {
|
|
|
16859
16859
|
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${s}, tag.panoIndex: ${(f = e.fiveState) == null ? void 0 : f.panoIndex}`
|
|
16860
16860
|
};
|
|
16861
16861
|
}
|
|
16862
|
-
if (l.visibleDistance !== void 0 && l.visibleDistance !== "unLimited" &&
|
|
16862
|
+
if (l.visibleDistance !== void 0 && l.visibleDistance !== "unLimited" && sn(c, l.visibleDistance) === !1)
|
|
16863
16863
|
return {
|
|
16864
16864
|
value: !1,
|
|
16865
16865
|
reason: `distance is not in visibleDistance. distance: ${c}, visibleDistance: ${l.visibleDistance}`
|
|
@@ -16876,7 +16876,7 @@ class uA extends dA {
|
|
|
16876
16876
|
}
|
|
16877
16877
|
if (l.angleRange && Zm(e)) {
|
|
16878
16878
|
const h = this.getAngle(e);
|
|
16879
|
-
if (
|
|
16879
|
+
if (sn(h, l.angleRange) === !1)
|
|
16880
16880
|
return { value: !1, reason: `angle is not in angleRange. angle: ${h}, angleRange: ${l.angleRange}` };
|
|
16881
16881
|
}
|
|
16882
16882
|
return {
|
|
@@ -16887,7 +16887,7 @@ class uA extends dA {
|
|
|
16887
16887
|
return o.visible = a.value, o.__debug_visible_reason__ = a, o.visible;
|
|
16888
16888
|
}
|
|
16889
16889
|
}
|
|
16890
|
-
|
|
16890
|
+
getVisibleByFiveMode(e, n) {
|
|
16891
16891
|
var r;
|
|
16892
16892
|
const o = (r = this.getTagConfig(e).visibleConfig) != null ? r : {};
|
|
16893
16893
|
if (typeof o == "function")
|
|
@@ -16895,6 +16895,10 @@ class uA extends dA {
|
|
|
16895
16895
|
const s = o == null ? void 0 : o.visibleFiveMode;
|
|
16896
16896
|
return s ? s.includes(n) : n === "Panorama";
|
|
16897
16897
|
}
|
|
16898
|
+
getVisible(e) {
|
|
16899
|
+
const n = this.five.getCurrentState(), o = this.getVisibleByFiveMode(e, n.mode), s = n.mode === "Panorama" ? this.getVisibleByPanoIndex(e, n.panoIndex) : !0;
|
|
16900
|
+
return o && s;
|
|
16901
|
+
}
|
|
16898
16902
|
getModelMedialVisibleByPanoIndex(e) {
|
|
16899
16903
|
const n = this.five.getCurrentState().panoIndex, o = this.getCache({ panoIndex: n, id: e.id });
|
|
16900
16904
|
if (o.modelMedialVisible !== void 0)
|
|
@@ -16920,7 +16924,7 @@ class uA extends dA {
|
|
|
16920
16924
|
return !1;
|
|
16921
16925
|
if (r.keep === "unfolded")
|
|
16922
16926
|
return !0;
|
|
16923
|
-
if (r.unfoldDistance &&
|
|
16927
|
+
if (r.unfoldDistance && sn(c, r.unfoldDistance) === !1)
|
|
16924
16928
|
return !1;
|
|
16925
16929
|
})();
|
|
16926
16930
|
s.unfolded = a;
|
|
@@ -16943,7 +16947,7 @@ class uA extends dA {
|
|
|
16943
16947
|
return;
|
|
16944
16948
|
if (r.autoUnfold.strategy === "ScreenPostion") {
|
|
16945
16949
|
const l = this.getTagProject(e);
|
|
16946
|
-
if (l &&
|
|
16950
|
+
if (l && sn(l.x, r.autoUnfold.autoUnfoldProjectX) === !1)
|
|
16947
16951
|
return !1;
|
|
16948
16952
|
}
|
|
16949
16953
|
if (r.autoUnfold.strategy === "MinimumDistance") {
|
|
@@ -16958,7 +16962,7 @@ class uA extends dA {
|
|
|
16958
16962
|
return !(typeof h != "object" || h.keep || h.autoUnfold === !1 || ((p = h.autoUnfold) == null ? void 0 : p.enable) === !1 || ((A = h.autoUnfold) == null ? void 0 : A.strategy) !== "MinimumDistance");
|
|
16959
16963
|
}).map((f) => he(F({}, f), { distance: this.getDistance(f.tag) })).filter(({ distance: f, tagConfig: h }) => {
|
|
16960
16964
|
var p, A;
|
|
16961
|
-
return !(f === void 0 || typeof h != "object" || h.autoUnfold === !1 || ((p = h.autoUnfold) == null ? void 0 : p.enable) === !1 || ((A = h.autoUnfold) == null ? void 0 : A.strategy) !== "MinimumDistance" || h.autoUnfold.distance &&
|
|
16965
|
+
return !(f === void 0 || typeof h != "object" || h.autoUnfold === !1 || ((p = h.autoUnfold) == null ? void 0 : p.enable) === !1 || ((A = h.autoUnfold) == null ? void 0 : A.strategy) !== "MinimumDistance" || h.autoUnfold.distance && sn(f, h.autoUnfold.distance) === !1);
|
|
16962
16966
|
}).sort((f, h) => f.distance - h.distance).findIndex((f) => f.id === e.id);
|
|
16963
16967
|
if (d === -1 || d <= ((a = r.autoUnfold.maxNumber) != null ? a : 1) - 1 === !1)
|
|
16964
16968
|
return !1;
|
|
@@ -17188,14 +17192,8 @@ function mA(i) {
|
|
|
17188
17192
|
hA.load(i, n, void 0, o);
|
|
17189
17193
|
});
|
|
17190
17194
|
}
|
|
17191
|
-
|
|
17192
|
-
|
|
17193
|
-
return;
|
|
17194
|
-
const t = new Xt().fromArray(i.matrix), { mediaPosition: e } = i.data;
|
|
17195
|
-
return e.map((o) => new Z().fromArray(o).add(new Z(0, 0, 5e-4)).applyMatrix4(t).toArray());
|
|
17196
|
-
}
|
|
17197
|
-
const vl = "2.0.10", eo = `DnalogelPlugin-PanoTagPlugin@${vl}`, gA = !1, Fv = (i) => `${eo}--${i}`;
|
|
17198
|
-
class AA extends uA {
|
|
17195
|
+
const vl = "2.0.10", eo = `DnalogelPlugin-PanoTagPlugin@${vl}`, pA = !1, Hv = (i) => `${eo}--${i}`;
|
|
17196
|
+
class gA extends uA {
|
|
17199
17197
|
constructor(e, n) {
|
|
17200
17198
|
super(e);
|
|
17201
17199
|
m(this, "version", vl);
|
|
@@ -17227,7 +17225,7 @@ class AA extends uA {
|
|
|
17227
17225
|
m(this, "handleFiveInitAnimationEnded", () => {
|
|
17228
17226
|
const e = this.five.getCurrentState().mode;
|
|
17229
17227
|
this.tags.forEach((n) => {
|
|
17230
|
-
n.
|
|
17228
|
+
n.state.visible = this.getVisible(n), He(n) && e === "Panorama" && this.changeTagMode(n, "front");
|
|
17231
17229
|
}), this.updateRenderAllTags(), this.updateRenderAllTags();
|
|
17232
17230
|
});
|
|
17233
17231
|
m(this, "handleFiveModelShownFloorChange", () => {
|
|
@@ -17245,7 +17243,7 @@ class AA extends uA {
|
|
|
17245
17243
|
const s = yield o;
|
|
17246
17244
|
if (((l = e.model) == null ? void 0 : l.promise) !== o || (e.model.object = s, !this.tags.includes(e)))
|
|
17247
17245
|
return;
|
|
17248
|
-
s.visible = e.state.visible, new
|
|
17246
|
+
s.visible = e.state.visible, new an().fromArray(e.matrix).decompose(s.position, s.quaternion, s.scale), this.checkFloorIndex(e) || (s.visible = !1);
|
|
17249
17247
|
const a = this.gltfObjectGroup.children.find((c) => c.customID === e.id);
|
|
17250
17248
|
return a && this.gltfObjectGroup.remove(a), this.gltfObjectGroup.add(s), this.updateTagCss3DObjectMatrix(e, s), s;
|
|
17251
17249
|
}));
|
|
@@ -17272,7 +17270,7 @@ class AA extends uA {
|
|
|
17272
17270
|
return _(this, null, function* () {
|
|
17273
17271
|
const s = (Array.isArray(e) ? e : [e]).map((r) => {
|
|
17274
17272
|
const a = this.getTagConfig(r), l = he(F({}, r), {
|
|
17275
|
-
state: F({ visible: void 0, unfolded:
|
|
17273
|
+
state: F({ visible: void 0, unfolded: pA }, a.initialState),
|
|
17276
17274
|
hooks: new Ye(),
|
|
17277
17275
|
clickable: a.clickable,
|
|
17278
17276
|
mergedConfig: a
|
|
@@ -17375,7 +17373,7 @@ class AA extends uA {
|
|
|
17375
17373
|
return;
|
|
17376
17374
|
const r = He(e) ? e.data.mediaPosition : e.position;
|
|
17377
17375
|
n.updateWorldMatrix(!1, !1);
|
|
17378
|
-
const a = n.matrixWorld, l = new Z().fromArray(r[0]), c = new Z().fromArray(r[2]), d = new Z().lerpVectors(l, c, 0.5).add(new Z(0, 0, 5e-4)), u = new
|
|
17376
|
+
const a = n.matrixWorld, l = new Z().fromArray(r[0]), c = new Z().fromArray(r[2]), d = new Z().lerpVectors(l, c, 0.5).add(new Z(0, 0, 5e-4)), u = new an().setPosition(d), f = new an().makeScale(o, o, o), h = new an().multiply(a).multiply(u).multiply(f);
|
|
17379
17377
|
h.decompose(s.position, s.quaternion, s.scale);
|
|
17380
17378
|
const p = s.opacityMesh;
|
|
17381
17379
|
!p || h.decompose(p.position, p.quaternion, p.scale);
|
|
@@ -17445,7 +17443,7 @@ class AA extends uA {
|
|
|
17445
17443
|
}
|
|
17446
17444
|
handleFiveModeChange(e) {
|
|
17447
17445
|
this.tags.forEach((n) => {
|
|
17448
|
-
n.
|
|
17446
|
+
n.state.visible = this.getVisible(n), He(n) && e !== "Panorama" && this.changeTagMode(n, "behind");
|
|
17449
17447
|
}), this.updateRenderAllTags(), this.updateRenderAllTags();
|
|
17450
17448
|
}
|
|
17451
17449
|
handleFiveWantsMoveToPano() {
|
|
@@ -17547,7 +17545,7 @@ class AA extends uA {
|
|
|
17547
17545
|
return;
|
|
17548
17546
|
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = En(this.five)), n.stickType === "3DPoint" && !n.normal)
|
|
17549
17547
|
return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
|
|
17550
|
-
const s = (() => n.stickType === "Plane" ? n.position : n
|
|
17548
|
+
const s = (() => n.stickType === "Plane" ? n.position : He(n) ? n.data.mediaPosition : Km(
|
|
17551
17549
|
this.five.camera.position,
|
|
17552
17550
|
ot(n.position),
|
|
17553
17551
|
ot(n.normal)
|
|
@@ -17620,7 +17618,7 @@ class AA extends uA {
|
|
|
17620
17618
|
((r = (s = (o = e.tag3DContentSvelte) == null ? void 0 : o.domContainer) == null ? void 0 : s.css3DObject) == null ? void 0 : r.mode) !== n && ((a = e.config) != null && a.tag3DConfig ? e.config.tag3DConfig.mode = n : e.config ? e.config.tag3DConfig = { mode: n } : e.config = { tag3DConfig: { mode: n } }, (l = this.store.css3DRenderDisposer.get(e.id)) == null || l(), e.tag3DContentSvelte = void 0);
|
|
17621
17619
|
}
|
|
17622
17620
|
}
|
|
17623
|
-
const
|
|
17621
|
+
const Fv = (i, t) => new gA(i, t);
|
|
17624
17622
|
function pe(i, t) {
|
|
17625
17623
|
this._camera = i || null, this._domElement = t || document, this._raycaster = new k.Raycaster(), this._selected = null, this._boundObjs = {};
|
|
17626
17624
|
var e = this;
|
|
@@ -17850,7 +17848,7 @@ class Pn {
|
|
|
17850
17848
|
return !1;
|
|
17851
17849
|
});
|
|
17852
17850
|
var c, d;
|
|
17853
|
-
this.hooks = (c = t.sharedHooks) != null ? c : new
|
|
17851
|
+
this.hooks = (c = t.sharedHooks) != null ? c : new Kt(), this.camera = t.camera, this.model = t.model, this.originObject3D = t.originObject3D, this.helperObject3D = t.helperObject3D, this.container = t.container, this.scene = t.scene, this.domEvents = new pe(t.camera, t.container), this.onRender = (d = t.onRender) != null ? d : () => {
|
|
17854
17852
|
}, this.offset = e == null ? void 0 : e.offset, this.initialHelperPosition(), this.initialHelperQuaternion(), this.enable();
|
|
17855
17853
|
const n = (...u) => this.onSetOriginObjectScale(...u), o = (...u) => this.onSetOriginObjectRotate(...u), s = (...u) => this.onSetOriginObjectPosition(...u), r = (...u) => this.onApplyOriginObjectScale(...u), a = (...u) => this.onApplyOriginObjectRotate(...u), l = (...u) => this.onApplyOriginObjectPosition(...u);
|
|
17856
17854
|
this.hooks.on("setObjectScale", n), this.hooks.on("setObjectRotate", o), this.hooks.on("setObjectPosition", s), this.hooks.on("applyObjectPosition", l), this.hooks.on("applyObjectRotate", a), this.hooks.on("applyObjectScale", r), this.disposers.push(() => {
|
|
@@ -17953,16 +17951,16 @@ class Pn {
|
|
|
17953
17951
|
const e = this.camera.position, n = this.helperObject3D;
|
|
17954
17952
|
if (!n)
|
|
17955
17953
|
return;
|
|
17956
|
-
|
|
17957
|
-
|
|
17958
|
-
|
|
17959
|
-
|
|
17960
|
-
|
|
17961
|
-
|
|
17962
|
-
|
|
17963
|
-
|
|
17964
|
-
return o.object;
|
|
17954
|
+
const o = this.helperObject3D.raycasterIntersectObject(t)[0];
|
|
17955
|
+
if (!o)
|
|
17956
|
+
return;
|
|
17957
|
+
const s = o;
|
|
17958
|
+
if (s.object = n, this.model.intersectRaycaster) {
|
|
17959
|
+
const r = this.model.intersectRaycaster(t)[0];
|
|
17960
|
+
if (r && r.point.distanceTo(e) < s.point.distanceTo(e))
|
|
17961
|
+
return;
|
|
17965
17962
|
}
|
|
17963
|
+
return s.object;
|
|
17966
17964
|
}
|
|
17967
17965
|
calculateOffset(t, e) {
|
|
17968
17966
|
const n = this.originObject3D, o = new k.Vector3(0, 0, 0);
|
|
@@ -17990,7 +17988,7 @@ class Pn {
|
|
|
17990
17988
|
return o;
|
|
17991
17989
|
}
|
|
17992
17990
|
}
|
|
17993
|
-
class
|
|
17991
|
+
class AA extends Pn {
|
|
17994
17992
|
constructor(...e) {
|
|
17995
17993
|
super(...e);
|
|
17996
17994
|
m(this, "name", "ScaleController");
|
|
@@ -18003,7 +18001,7 @@ class vA extends Pn {
|
|
|
18003
18001
|
this.hooks.emit("wantToScale", r) || (this.originObject3D.scale.copy(r), this.hooks.emit("setObjectScale", r), this.hooks.emit("scale", r), this.render());
|
|
18004
18002
|
}
|
|
18005
18003
|
}
|
|
18006
|
-
class
|
|
18004
|
+
class vA extends Xl {
|
|
18007
18005
|
constructor() {
|
|
18008
18006
|
super();
|
|
18009
18007
|
}
|
|
@@ -18012,7 +18010,7 @@ class bA extends Xl {
|
|
|
18012
18010
|
return t !== null && t.remove(this), this;
|
|
18013
18011
|
}
|
|
18014
18012
|
}
|
|
18015
|
-
class bi extends
|
|
18013
|
+
class bi extends vA {
|
|
18016
18014
|
constructor(e, n) {
|
|
18017
18015
|
var o;
|
|
18018
18016
|
super();
|
|
@@ -18039,6 +18037,9 @@ class bi extends bA {
|
|
|
18039
18037
|
hide() {
|
|
18040
18038
|
this.visible = !1, this.render();
|
|
18041
18039
|
}
|
|
18040
|
+
raycasterIntersectObject(e, n = []) {
|
|
18041
|
+
return e.intersectObject(this, !0, n);
|
|
18042
|
+
}
|
|
18042
18043
|
initialPosition() {
|
|
18043
18044
|
this.position.add(this.originObject3D.position);
|
|
18044
18045
|
}
|
|
@@ -18066,17 +18067,17 @@ class bi extends bA {
|
|
|
18066
18067
|
this.removeFromParent();
|
|
18067
18068
|
}
|
|
18068
18069
|
}
|
|
18070
|
+
class bA extends bi {
|
|
18071
|
+
}
|
|
18069
18072
|
class yA extends bi {
|
|
18070
18073
|
}
|
|
18071
18074
|
class wA extends bi {
|
|
18072
18075
|
}
|
|
18073
|
-
class CA extends bi {
|
|
18074
|
-
}
|
|
18075
18076
|
class yl extends bi {
|
|
18076
18077
|
}
|
|
18077
|
-
class
|
|
18078
|
+
class CA extends yl {
|
|
18078
18079
|
}
|
|
18079
|
-
class
|
|
18080
|
+
class EA extends k.Group {
|
|
18080
18081
|
constructor(e) {
|
|
18081
18082
|
super();
|
|
18082
18083
|
m(this, "direction");
|
|
@@ -18090,7 +18091,7 @@ class ta extends k.Mesh {
|
|
|
18090
18091
|
this.direction = o || "x";
|
|
18091
18092
|
}
|
|
18092
18093
|
}
|
|
18093
|
-
function
|
|
18094
|
+
function PA(i, t) {
|
|
18094
18095
|
const { offsetWidth: e, offsetHeight: n } = t, { top: o, left: s } = t.getBoundingClientRect();
|
|
18095
18096
|
return Object.assign(new k.Vector2(), {
|
|
18096
18097
|
x: (i.x - s) / e * 2 - 1,
|
|
@@ -18100,16 +18101,16 @@ function IA(i, t) {
|
|
|
18100
18101
|
function Po(i, t, e) {
|
|
18101
18102
|
if (!t || !e || !i)
|
|
18102
18103
|
return;
|
|
18103
|
-
const n =
|
|
18104
|
+
const n = PA(t, e);
|
|
18104
18105
|
if (Math.abs(n.x) === 1 || Math.abs(n.y) === 1)
|
|
18105
18106
|
return;
|
|
18106
18107
|
const o = new k.Raycaster();
|
|
18107
18108
|
return o.setFromCamera(n, i), o;
|
|
18108
18109
|
}
|
|
18109
|
-
function
|
|
18110
|
+
function IA(i, t) {
|
|
18110
18111
|
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);
|
|
18111
18112
|
}
|
|
18112
|
-
class zi extends
|
|
18113
|
+
class zi extends EA {
|
|
18113
18114
|
constructor(e) {
|
|
18114
18115
|
var d;
|
|
18115
18116
|
super(e.direction);
|
|
@@ -18152,7 +18153,7 @@ class it {
|
|
|
18152
18153
|
return new k.Color(Bi.Z).convertSRGBToLinear().clone();
|
|
18153
18154
|
}
|
|
18154
18155
|
}
|
|
18155
|
-
class
|
|
18156
|
+
class kA extends bA {
|
|
18156
18157
|
constructor(e) {
|
|
18157
18158
|
super(e);
|
|
18158
18159
|
m(this, "xArrow", new zi({ direction: "x", color: it.X }));
|
|
@@ -18171,16 +18172,16 @@ class xA extends yA {
|
|
|
18171
18172
|
}
|
|
18172
18173
|
}
|
|
18173
18174
|
function zt(i, t) {
|
|
18174
|
-
return
|
|
18175
|
+
return xA(document.createElement(t != null ? t : "div"), i);
|
|
18175
18176
|
}
|
|
18176
|
-
function
|
|
18177
|
+
function xA(i, t) {
|
|
18177
18178
|
if (!t)
|
|
18178
18179
|
return i;
|
|
18179
18180
|
for (const e in t)
|
|
18180
18181
|
e && t[e] && (i.style[e] = t[e]);
|
|
18181
18182
|
return i;
|
|
18182
18183
|
}
|
|
18183
|
-
function
|
|
18184
|
+
function DA(i) {
|
|
18184
18185
|
const t = zt(F({
|
|
18185
18186
|
position: "absolute",
|
|
18186
18187
|
display: "block",
|
|
@@ -18206,7 +18207,7 @@ function LA(i) {
|
|
|
18206
18207
|
t.style.left = s, t.style.top = r, e();
|
|
18207
18208
|
} };
|
|
18208
18209
|
}
|
|
18209
|
-
class
|
|
18210
|
+
class LA extends wA {
|
|
18210
18211
|
constructor(e, n) {
|
|
18211
18212
|
var o;
|
|
18212
18213
|
super(e);
|
|
@@ -18221,7 +18222,7 @@ class SA extends CA {
|
|
|
18221
18222
|
m(this, "zAngleHelper");
|
|
18222
18223
|
m(this, "angleTips");
|
|
18223
18224
|
m(this, "container");
|
|
18224
|
-
(n == null ? void 0 : n.yzCircleEnable) !== !1 && (this.yzCircle = new ji({ direction: "x", color: it.X }), this.xRingHelper = new Vi({ direction: "x" }), this.xAngleHelper = new Qi({ direction: "x", color: it.X })), (n == null ? void 0 : n.xzCircleEnable) !== !1 && (this.xzCircle = new ji({ direction: "y", color: it.Y }), this.yRingHelper = new Vi({ direction: "y" }), this.yAngleHelper = new Qi({ direction: "y", color: it.Y })), (n == null ? void 0 : n.xyCircleEnable) !== !1 && (this.xyCircle = new ji({ direction: "z", color: it.Z }), this.zRingHelper = new Vi({ direction: "z" }), this.zAngleHelper = new Qi({ direction: "z", color: it.Z })), n != null && n.container && (this.container = n == null ? void 0 : n.container, this.angleTips =
|
|
18225
|
+
(n == null ? void 0 : n.yzCircleEnable) !== !1 && (this.yzCircle = new ji({ direction: "x", color: it.X }), this.xRingHelper = new Vi({ direction: "x" }), this.xAngleHelper = new Qi({ direction: "x", color: it.X })), (n == null ? void 0 : n.xzCircleEnable) !== !1 && (this.xzCircle = new ji({ direction: "y", color: it.Y }), this.yRingHelper = new Vi({ direction: "y" }), this.yAngleHelper = new Qi({ direction: "y", color: it.Y })), (n == null ? void 0 : n.xyCircleEnable) !== !1 && (this.xyCircle = new ji({ direction: "z", color: it.Z }), this.zRingHelper = new Vi({ direction: "z" }), this.zAngleHelper = new Qi({ direction: "z", color: it.Z })), n != null && n.container && (this.container = n == null ? void 0 : n.container, this.angleTips = DA({ display: "none" }), (o = this.container) == null || o.appendChild(this.angleTips.element)), this.show();
|
|
18225
18226
|
}
|
|
18226
18227
|
updateAngleHelperQuaternion() {
|
|
18227
18228
|
var e, n, o, s, r, a, l, c, d, u, f, h;
|
|
@@ -18338,7 +18339,7 @@ class Qi extends k.Mesh {
|
|
|
18338
18339
|
}), this.direction = e.direction, this.direction === "y" ? this.rotateX(Math.PI / 2) : this.direction === "x" && this.rotateY(-Math.PI / 2);
|
|
18339
18340
|
}
|
|
18340
18341
|
}
|
|
18341
|
-
function
|
|
18342
|
+
function SA() {
|
|
18342
18343
|
const i = zt({
|
|
18343
18344
|
width: "100%",
|
|
18344
18345
|
height: "100%",
|
|
@@ -18402,7 +18403,7 @@ function gt(i) {
|
|
|
18402
18403
|
});
|
|
18403
18404
|
return n.draggable = !0, e.appendChild(n), t.appendChild(e), t;
|
|
18404
18405
|
}
|
|
18405
|
-
class
|
|
18406
|
+
class MA extends CA {
|
|
18406
18407
|
constructor(e, n, o, s) {
|
|
18407
18408
|
super(e);
|
|
18408
18409
|
m(this, "points", []);
|
|
@@ -18491,7 +18492,7 @@ class TA extends EA {
|
|
|
18491
18492
|
if (!n)
|
|
18492
18493
|
return;
|
|
18493
18494
|
this.css3DInstance = n, n.appendToElement(this.container);
|
|
18494
|
-
const o = n.css3DObject.container, { container: s, squares: r } =
|
|
18495
|
+
const o = n.css3DObject.container, { container: s, squares: r } = SA();
|
|
18495
18496
|
this.points = r.map((l, c) => ({
|
|
18496
18497
|
direction: l.direction,
|
|
18497
18498
|
point: l.element,
|
|
@@ -18517,7 +18518,7 @@ class TA extends EA {
|
|
|
18517
18518
|
];
|
|
18518
18519
|
}
|
|
18519
18520
|
}
|
|
18520
|
-
class
|
|
18521
|
+
class TA extends yA {
|
|
18521
18522
|
constructor(e) {
|
|
18522
18523
|
super(e);
|
|
18523
18524
|
m(this, "box");
|
|
@@ -18526,6 +18527,12 @@ class zA extends wA {
|
|
|
18526
18527
|
m(this, "positionAttribute");
|
|
18527
18528
|
this.originObject = e, this.positionAttribute = new k.BufferAttribute(new Float32Array(8 * 3), 3), this.box = this.createBox(), this.outline = this.createOutline(), this.add(this.box, this.outline), this.update();
|
|
18528
18529
|
}
|
|
18530
|
+
raycasterIntersectObject(e, n) {
|
|
18531
|
+
return e.intersectObject(this, !1, n);
|
|
18532
|
+
}
|
|
18533
|
+
raycast(e, n) {
|
|
18534
|
+
this.box.raycast(e, n);
|
|
18535
|
+
}
|
|
18529
18536
|
update() {
|
|
18530
18537
|
const e = bl(this.originObject);
|
|
18531
18538
|
if (!e)
|
|
@@ -18595,7 +18602,7 @@ class zA extends wA {
|
|
|
18595
18602
|
return new k.Mesh(n, o);
|
|
18596
18603
|
}
|
|
18597
18604
|
}
|
|
18598
|
-
class
|
|
18605
|
+
class zA extends Pn {
|
|
18599
18606
|
constructor(...e) {
|
|
18600
18607
|
super(...e);
|
|
18601
18608
|
m(this, "name", "MoveController");
|
|
@@ -18695,7 +18702,7 @@ class BA extends Pn {
|
|
|
18695
18702
|
!this.isDragging || (console.log("%c MoveController dragEnd", "color: #e94e4e"), this.startInfo = void 0, this.isDragging = !1, this.helperObject3D.show(), this.hooks.emit("moveEnd"));
|
|
18696
18703
|
}
|
|
18697
18704
|
}
|
|
18698
|
-
class
|
|
18705
|
+
class rn {
|
|
18699
18706
|
constructor(t, e, n, o, s, r) {
|
|
18700
18707
|
m(this, "helperController");
|
|
18701
18708
|
m(this, "five");
|
|
@@ -18730,14 +18737,14 @@ class an {
|
|
|
18730
18737
|
this.five.off("wantsTapGesture", this.onFiveWantsTapGesture), this.five.off("wantsGesture", this.onFiveWantsGesture), this.five.off("intersectionOnModelUpdate", this.onFiveIntersectionOnModelUpdate), (t = this.helperController) == null || t.dispose();
|
|
18731
18738
|
}
|
|
18732
18739
|
}
|
|
18733
|
-
const
|
|
18740
|
+
const BA = "v1.0.1", jA = "Object3DHelper", Io = `${jA}@${BA}`, VA = () => {
|
|
18734
18741
|
console.error(`${Io} is disposed`);
|
|
18735
|
-
},
|
|
18742
|
+
}, QA = () => {
|
|
18736
18743
|
console.warn(`${Io} is disabled`);
|
|
18737
|
-
},
|
|
18744
|
+
}, RA = () => {
|
|
18738
18745
|
console.error(`${Io} is disabled`);
|
|
18739
18746
|
};
|
|
18740
|
-
class
|
|
18747
|
+
class OA {
|
|
18741
18748
|
constructor(t) {
|
|
18742
18749
|
m(this, "controllers", {});
|
|
18743
18750
|
m(this, "state", {
|
|
@@ -18745,7 +18752,7 @@ class HA {
|
|
|
18745
18752
|
enabled: !0,
|
|
18746
18753
|
disposed: !1
|
|
18747
18754
|
});
|
|
18748
|
-
m(this, "hooks", new
|
|
18755
|
+
m(this, "hooks", new Kt());
|
|
18749
18756
|
m(this, "eventListener", {});
|
|
18750
18757
|
t && this.addControllers(t), this.setState(this.state);
|
|
18751
18758
|
}
|
|
@@ -18770,9 +18777,9 @@ class HA {
|
|
|
18770
18777
|
}
|
|
18771
18778
|
setState(t, e) {
|
|
18772
18779
|
if (this.state.disposed)
|
|
18773
|
-
return
|
|
18780
|
+
return VA();
|
|
18774
18781
|
if (!this.state.enabled && t.enabled !== !0 && t.disposed !== !0)
|
|
18775
|
-
return
|
|
18782
|
+
return RA();
|
|
18776
18783
|
const n = F({}, this.state);
|
|
18777
18784
|
this.state = F(F({}, this.state), t), t.disposed !== void 0 && t.disposed !== n.disposed && t.disposed && this.handleDispose(), t.visible !== void 0 && this.handleVisible(t.visible), t.enabled !== void 0 && this.handleEnable(t.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: n });
|
|
18778
18785
|
}
|
|
@@ -18816,10 +18823,10 @@ class HA {
|
|
|
18816
18823
|
actionIfStateIsEnabled(t, e) {
|
|
18817
18824
|
if (this.state.enabled)
|
|
18818
18825
|
return t();
|
|
18819
|
-
e != null && e.warnLog &&
|
|
18826
|
+
e != null && e.warnLog && QA();
|
|
18820
18827
|
}
|
|
18821
18828
|
}
|
|
18822
|
-
class
|
|
18829
|
+
class HA extends Pn {
|
|
18823
18830
|
constructor(...e) {
|
|
18824
18831
|
super(...e);
|
|
18825
18832
|
m(this, "name", "RotateController");
|
|
@@ -18972,7 +18979,7 @@ class FA extends Pn {
|
|
|
18972
18979
|
n.setLeftTop(l, c);
|
|
18973
18980
|
}
|
|
18974
18981
|
}
|
|
18975
|
-
class
|
|
18982
|
+
class FA extends Pn {
|
|
18976
18983
|
constructor(...e) {
|
|
18977
18984
|
super(...e);
|
|
18978
18985
|
m(this, "startInfo");
|
|
@@ -19021,7 +19028,7 @@ class GA extends Pn {
|
|
|
19021
19028
|
if (r.length < 4)
|
|
19022
19029
|
return this.dragEnd();
|
|
19023
19030
|
const a = e.ray.intersectPlane(s, new Z());
|
|
19024
|
-
if (!a ||
|
|
19031
|
+
if (!a || IA(a, this.camera.position))
|
|
19025
19032
|
return;
|
|
19026
19033
|
const l = new Z().addVectors(r[0], r[2]).divideScalar(2), { position: c, direction: d } = o, u = new Z().subVectors(r[1], r[0]), f = new Z().subVectors(r[3], r[0]), h = (H) => {
|
|
19027
19034
|
const X = new Z(0, 0, 0);
|
|
@@ -19073,7 +19080,7 @@ class GA extends Pn {
|
|
|
19073
19080
|
!this.isDragging || (this.startInfo = void 0, this.isDragging = !1, this.hooks.emit("scaleEnd"), this.render(), console.log("%c RectangleScaleController dragEnd", "color: #e94e4e"));
|
|
19074
19081
|
}
|
|
19075
19082
|
}
|
|
19076
|
-
class
|
|
19083
|
+
class GA extends FA {
|
|
19077
19084
|
constructor(...e) {
|
|
19078
19085
|
super(...e);
|
|
19079
19086
|
m(this, "name", "CSS3DScaleController");
|
|
@@ -19088,25 +19095,25 @@ class WA extends GA {
|
|
|
19088
19095
|
});
|
|
19089
19096
|
}
|
|
19090
19097
|
}
|
|
19091
|
-
class
|
|
19098
|
+
class WA extends Pn {
|
|
19092
19099
|
constructor(...e) {
|
|
19093
19100
|
super(...e);
|
|
19094
19101
|
m(this, "name", "BoundingBoxController");
|
|
19095
19102
|
}
|
|
19096
19103
|
}
|
|
19097
|
-
class
|
|
19104
|
+
class NA extends yl {
|
|
19098
19105
|
constructor(t) {
|
|
19099
19106
|
super(t);
|
|
19100
19107
|
}
|
|
19101
19108
|
}
|
|
19102
|
-
const wl = "v1.0.0", to = "Object3DHelperPlugin", ko = `${to}@${wl}`,
|
|
19109
|
+
const wl = "v1.0.0", to = "Object3DHelperPlugin", ko = `${to}@${wl}`, _A = () => {
|
|
19103
19110
|
console.error(`${ko} is disposed`);
|
|
19104
|
-
},
|
|
19111
|
+
}, XA = () => {
|
|
19105
19112
|
console.warn(`${ko} is disabled`);
|
|
19106
|
-
},
|
|
19113
|
+
}, YA = () => {
|
|
19107
19114
|
console.error(`${ko} is disabled`);
|
|
19108
19115
|
};
|
|
19109
|
-
class
|
|
19116
|
+
class UA extends mi {
|
|
19110
19117
|
constructor(e) {
|
|
19111
19118
|
super(e);
|
|
19112
19119
|
m(this, "version", wl);
|
|
@@ -19142,9 +19149,9 @@ class JA extends mi {
|
|
|
19142
19149
|
}
|
|
19143
19150
|
setState(e, n) {
|
|
19144
19151
|
if (this.state.disposed)
|
|
19145
|
-
return
|
|
19152
|
+
return _A();
|
|
19146
19153
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
19147
|
-
return
|
|
19154
|
+
return YA();
|
|
19148
19155
|
const o = F({}, this.state);
|
|
19149
19156
|
this.state = F(F({}, this.state), e), e.disposed !== void 0 && e.disposed !== o.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== o.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== o.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: o });
|
|
19150
19157
|
}
|
|
@@ -19159,22 +19166,22 @@ class JA extends mi {
|
|
|
19159
19166
|
console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
|
|
19160
19167
|
return;
|
|
19161
19168
|
}
|
|
19162
|
-
const o = new
|
|
19169
|
+
const o = new OA(), s = [], r = (h = this.five.getElement()) == null ? void 0 : h.parentElement, a = this.five.camera, { moveHelper: l = !0, rotateHelper: c = !0, scaleHelper: d = !0, boundingBoxHelper: u = !1 } = n, f = new Ye();
|
|
19163
19170
|
if (l) {
|
|
19164
|
-
const p = new
|
|
19171
|
+
const p = new kA(e), A = this.getConfig(n.moveHelper), g = new rn(this.five, zA, e, p, A, f);
|
|
19165
19172
|
o.addControllers({ moveController: g.helperController }), s.push(() => g.dispose());
|
|
19166
19173
|
}
|
|
19167
19174
|
if (c) {
|
|
19168
|
-
const p = this.getConfig(n.rotateHelper), A = new
|
|
19175
|
+
const p = this.getConfig(n.rotateHelper), A = new LA(e, F({ container: r }, p)), g = new rn(this.five, HA, e, A, p, f);
|
|
19169
19176
|
o.addControllers({ rotateController: g.helperController }), s.push(() => g.dispose());
|
|
19170
19177
|
}
|
|
19171
19178
|
if (u) {
|
|
19172
|
-
const p = new
|
|
19179
|
+
const p = new TA(e), A = new rn(this.five, WA, e, p, void 0, f);
|
|
19173
19180
|
o.addControllers({ boundingBoxController: A.helperController });
|
|
19174
19181
|
}
|
|
19175
19182
|
if (d)
|
|
19176
19183
|
if (e.isCSS3DObjectPlus && r) {
|
|
19177
|
-
const p = new
|
|
19184
|
+
const p = new MA(e, r, a, this.five.scene), A = new rn(this.five, GA, e, p, void 0, f);
|
|
19178
19185
|
o.addControllers({ scaleController: A.helperController }), s.push(() => A.dispose()), da(this.five).then(() => {
|
|
19179
19186
|
var g, v;
|
|
19180
19187
|
if (e.isCSS3DObjectPlus) {
|
|
@@ -19186,7 +19193,7 @@ class JA extends mi {
|
|
|
19186
19193
|
}
|
|
19187
19194
|
});
|
|
19188
19195
|
} else {
|
|
19189
|
-
const p = new
|
|
19196
|
+
const p = new NA(e), A = new rn(this.five, AA, e, p, void 0, f);
|
|
19190
19197
|
o.addControllers({ scaleController: A.helperController }), s.push(() => A.dispose());
|
|
19191
19198
|
}
|
|
19192
19199
|
return this.objectHelperMap.set(e, { helper: o, disposers: s }), o.controllers;
|
|
@@ -19222,67 +19229,67 @@ class JA extends mi {
|
|
|
19222
19229
|
actionIfStateIsEnabled(e, n) {
|
|
19223
19230
|
if (this.state.enabled)
|
|
19224
19231
|
return e();
|
|
19225
|
-
n != null && n.warnLog &&
|
|
19232
|
+
n != null && n.warnLog && XA();
|
|
19226
19233
|
}
|
|
19227
19234
|
getConfig(e) {
|
|
19228
19235
|
if (!!e && typeof e != "boolean" && e.enable)
|
|
19229
19236
|
return e;
|
|
19230
19237
|
}
|
|
19231
19238
|
}
|
|
19232
|
-
const
|
|
19239
|
+
const Gv = (i) => new UA(i);
|
|
19233
19240
|
export {
|
|
19234
19241
|
vn as CSS3DRender,
|
|
19235
19242
|
En as CSS3DRenderPlugin,
|
|
19236
19243
|
df as CameraMovementEffect,
|
|
19237
|
-
|
|
19244
|
+
Iv as CameraMovementPlugin,
|
|
19238
19245
|
Xm as ContentType,
|
|
19239
|
-
|
|
19246
|
+
Rv as CruisePlugin,
|
|
19240
19247
|
il as CruisePluginController,
|
|
19241
19248
|
dn as DIRECTION,
|
|
19242
|
-
|
|
19249
|
+
Xt as DISPLAY_STRATEGY_TYPE,
|
|
19243
19250
|
Ym as DimensionType,
|
|
19244
19251
|
Tt as FLOOR_PLAN_ATTACHED_TO,
|
|
19245
|
-
|
|
19252
|
+
wv as FLOOR_TYPE_MAP,
|
|
19246
19253
|
Sm as GuideLinePlugin,
|
|
19247
|
-
|
|
19248
|
-
|
|
19254
|
+
Yt as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
19255
|
+
jv as ItemLabelPlugin,
|
|
19249
19256
|
Sf as Magnifier,
|
|
19250
|
-
|
|
19251
|
-
|
|
19252
|
-
|
|
19253
|
-
|
|
19254
|
-
|
|
19255
|
-
|
|
19256
|
-
|
|
19257
|
-
|
|
19258
|
-
|
|
19259
|
-
|
|
19257
|
+
Av as MapviewFloorplanPlugin,
|
|
19258
|
+
Ev as ModelChassisCompassPlugin,
|
|
19259
|
+
Pv as ModelEntryDoorGuidePlugin,
|
|
19260
|
+
gv as ModelFloorplanPlugin,
|
|
19261
|
+
Mv as ModelItemLabelPlugin,
|
|
19262
|
+
mv as ModelRoomLabelPlugin,
|
|
19263
|
+
zv as ModelTVVideoPlugin,
|
|
19264
|
+
fv as ModelViewPlugin,
|
|
19265
|
+
UA as Object3DHelperController,
|
|
19266
|
+
Gv as Object3DHelperPlugin,
|
|
19260
19267
|
ko as PLUGIN,
|
|
19261
|
-
|
|
19268
|
+
uv as PaintBrush,
|
|
19262
19269
|
At as PaintBrushTypeEnum,
|
|
19263
|
-
|
|
19264
|
-
|
|
19265
|
-
|
|
19266
|
-
|
|
19267
|
-
|
|
19268
|
-
|
|
19270
|
+
Dv as PanoCompassPlugin,
|
|
19271
|
+
hv as PanoCursorRaycasterPlugin,
|
|
19272
|
+
Qv as PanoDoorLabelPlugin,
|
|
19273
|
+
bv as PanoFloorplanRadarPlugin,
|
|
19274
|
+
Lv as PanoMeasurePlugin,
|
|
19275
|
+
en as PanoMeasurePluginLine,
|
|
19269
19276
|
yo as PanoMeasurePluginModel,
|
|
19270
19277
|
qe as PanoMeasurePluginPoint,
|
|
19271
19278
|
bo as PanoMeasurePluginPolyline,
|
|
19272
|
-
|
|
19273
|
-
|
|
19274
|
-
|
|
19275
|
-
|
|
19276
|
-
|
|
19279
|
+
kv as PanoRulerPlugin,
|
|
19280
|
+
xv as PanoRulerProPlugin,
|
|
19281
|
+
Sv as PanoSpatialTagPlugin,
|
|
19282
|
+
Fv as PanoTagPlugin,
|
|
19283
|
+
gA as PanoTagPluginController,
|
|
19277
19284
|
Um as PointType,
|
|
19278
|
-
|
|
19279
|
-
|
|
19285
|
+
yv as ROOM_FETILE_TYPE_MAP,
|
|
19286
|
+
Cv as ROOM_TYPE_MAP,
|
|
19280
19287
|
nt as Rotation,
|
|
19281
|
-
|
|
19282
|
-
|
|
19288
|
+
vv as TopviewFloorplanPlugin,
|
|
19289
|
+
Ov as Util,
|
|
19283
19290
|
wl as VERSION,
|
|
19284
|
-
|
|
19285
|
-
|
|
19286
|
-
|
|
19287
|
-
|
|
19291
|
+
Vv as itemLabelPluginServerParams,
|
|
19292
|
+
Tv as modelItemLabelPluginServerParams,
|
|
19293
|
+
pv as modelRoomLabelPluginServerParams,
|
|
19294
|
+
Hv as pluginFlag
|
|
19288
19295
|
};
|