@realsee/dnalogel 2.2.2 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +63 -58
- package/dist/index.js +4972 -4332
- package/dist/index.umd.js +51 -46
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- 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 +12 -12
- 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/LinkType.html +7 -7
- 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/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- 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/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.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 +8 -8
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- 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 +11 -11
- 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/PointJson.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/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- 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/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeyArray.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/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.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/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/PointTag.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/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.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/ItemLabelPlugin/ItemLabelComponent.js +12 -13
- package/libs/ItemLabelPlugin/ItemLabelItem.js +1 -1
- package/libs/ItemLabelPlugin/index.js +3 -4
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +10 -11
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +1 -1
- package/libs/ModelItemLabelPlugin/index.js +3 -4
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +1 -1
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +17 -18
- package/libs/PanoDoorLabelPlugin/Controller.js +96 -97
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +1 -1
- package/libs/PanoRulerProPlugin/RulerItem.js +1 -1
- package/libs/PanoRulerProPlugin/RulerItems.js +18 -19
- package/libs/PanoSpatialTagPlugin/Components/origins.js +2 -2
- package/libs/PanoSpatialTagPlugin/Components/tag.js +8 -9
- package/libs/PanoSpatialTagPlugin/index.js +1 -3
- package/libs/PanoSpatialTagPlugin/store.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
- package/libs/PanoTagPlugin/Components/Common/Audio.js +25 -26
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +8 -8
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +30 -29
- package/libs/PanoTagPlugin/Components/Common/Media.js +27 -28
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +18 -19
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +3 -3
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +3 -3
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +9 -9
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +11 -10
- package/libs/PanoTagPlugin/Components/Common/Text.js +15 -16
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +10 -10
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +9 -10
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +27 -28
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +9 -10
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +7 -6
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +5 -4
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +10 -11
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +19 -20
- package/libs/PanoTagPlugin/Components/Tag/index.js +8 -9
- package/libs/PanoTagPlugin/Components/TagContainer.js +11 -12
- package/libs/PanoTagPlugin/Components/TagWrapper.js +8 -9
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/floorplan/Components/BaseImage.js +4 -4
- package/libs/floorplan/Components/Camera.js +1 -1
- package/libs/floorplan/Components/Compass.js +1 -1
- package/libs/floorplan/Components/CurrentFloor.js +9 -10
- package/libs/floorplan/Components/Main.js +24 -25
- package/libs/floorplan/Components/Normalmage.js +1 -1
- package/libs/floorplan/Components/RoomHighlight/Room.js +1 -1
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +7 -7
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +7 -8
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +39 -40
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +7 -7
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +1 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +1 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +1 -1
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +5 -5
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +7 -7
- package/libs/floorplan/Components/SvgImage.js +4 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +3 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +3 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +3 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +23 -24
- package/libs/floorplan/index.js +1 -5
- package/libs/index.js +94 -95
- package/libs/vendor/svelte/easing/index.js +12 -0
- package/libs/vendor/svelte/index.js +1 -0
- package/libs/vendor/svelte/internal/index.js +642 -0
- package/libs/vendor/svelte/store/index.js +31 -0
- package/libs/vendor/svelte/transition/index.js +37 -0
- package/libs/vendor/swiper/svelte/swiper-slide.js +10 -11
- package/libs/vendor/swiper/svelte/swiper-svelte.js +1 -2
- package/libs/vendor/swiper/svelte/swiper.js +9 -10
- package/package.json +2 -2
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var $ = Object.defineProperty, B = Object.defineProperties;
|
|
2
|
+
var U = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var C = Object.getOwnPropertySymbols;
|
|
4
|
+
var G = Object.prototype.hasOwnProperty, N = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var T = (v, a, e) => a in v ? $(v, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : v[a] = e, H = (v, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var r = (
|
|
14
|
-
import { Raycaster as
|
|
15
|
-
import { BasePanoPluginController as
|
|
16
|
-
import
|
|
17
|
-
import { getCameraToward as
|
|
18
|
-
const
|
|
19
|
-
class
|
|
7
|
+
G.call(a, e) && T(v, e, a[e]);
|
|
8
|
+
if (C)
|
|
9
|
+
for (var e of C(a))
|
|
10
|
+
N.call(a, e) && T(v, e, a[e]);
|
|
11
|
+
return v;
|
|
12
|
+
}, W = (v, a) => B(v, U(a));
|
|
13
|
+
var r = (v, a, e) => (T(v, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
|
+
import { Raycaster as Q, Vector3 as V, Quaternion as j, Euler as z } from "three";
|
|
15
|
+
import { BasePanoPluginController as q } from "./BaseController.js";
|
|
16
|
+
import X from "./DoorLabelItem.js";
|
|
17
|
+
import { getCameraToward as Y, isTwoRectOverlaped as Z, getDistance as J, getToward as K } from "./utils.js";
|
|
18
|
+
const ee = { userAction: !0 };
|
|
19
|
+
class re extends q {
|
|
20
20
|
constructor(e) {
|
|
21
21
|
super(e);
|
|
22
22
|
r(this, "MinVisibledistance", 1.8);
|
|
@@ -30,23 +30,23 @@ class se extends Q {
|
|
|
30
30
|
r(this, "doorLabels");
|
|
31
31
|
r(this, "roomObservers");
|
|
32
32
|
r(this, "loadData", (e, n) => {
|
|
33
|
-
n && (this.MaxVisibledistance = n.MaxVisibledistance, this.MinVisibledistance = n.MinVisibledistance, this.OffsetHeight = n.OffsetHeight), this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((
|
|
34
|
-
|
|
35
|
-
}), this.labelItems = [], this.doorLabels = [], this.doorLabelItems = [], this.floorplanServerData = e, this.five.once("panoArrived", () => {
|
|
36
|
-
|
|
33
|
+
n && (this.MaxVisibledistance = n.MaxVisibledistance, this.MinVisibledistance = n.MinVisibledistance, this.OffsetHeight = n.OffsetHeight), this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((d) => {
|
|
34
|
+
d.$destroy();
|
|
35
|
+
}), this.labelItems = [], this.doorLabels = [], this.doorLabelItems = [], this.floorplanServerData = e, typeof this.five.ready == "function" ? this.five.ready().then(() => this.initData()) : this.five.once("panoArrived", () => {
|
|
36
|
+
this.initData();
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
39
|
r(this, "initRoomObservers", () => {
|
|
40
40
|
var l, h;
|
|
41
|
-
const e = this.floorplanServerData.computed_data.floor_datas || [],
|
|
42
|
-
const
|
|
43
|
-
if (
|
|
44
|
-
const t =
|
|
41
|
+
const e = this.floorplanServerData.computed_data.floor_datas || [], d = (((h = (l = this.five) == null ? void 0 : l.work) == null ? void 0 : h.observers) || []).map((o) => {
|
|
42
|
+
const s = o.panoIndex, f = o.floorIndex, i = e == null ? void 0 : e.find((t) => t.floor_index === f);
|
|
43
|
+
if (i) {
|
|
44
|
+
const t = i.rooms.find((c) => c.observer_indexs.includes(s));
|
|
45
45
|
if (t)
|
|
46
|
-
return { panoIndex:
|
|
46
|
+
return { panoIndex: s, floorIndex: f, name: t.name };
|
|
47
47
|
}
|
|
48
48
|
}).filter(Boolean);
|
|
49
|
-
this.roomObservers =
|
|
49
|
+
this.roomObservers = d;
|
|
50
50
|
});
|
|
51
51
|
r(this, "hideAllLabels", () => {
|
|
52
52
|
this.labelItems.forEach((e) => {
|
|
@@ -63,109 +63,108 @@ class se extends Q {
|
|
|
63
63
|
return this.visibleLabelMap.get(e);
|
|
64
64
|
{
|
|
65
65
|
const o = [];
|
|
66
|
-
return this.doorLabels.forEach((
|
|
67
|
-
if (
|
|
66
|
+
return this.doorLabels.forEach((s, f) => {
|
|
67
|
+
if (s.roomName === n.name)
|
|
68
68
|
return;
|
|
69
|
-
const
|
|
69
|
+
const i = s.position.clone(), t = i.distanceTo(l);
|
|
70
70
|
if (t < this.MinVisibledistance || t > this.MaxVisibledistance)
|
|
71
71
|
return;
|
|
72
|
-
const c = new
|
|
73
|
-
c.set(l,
|
|
74
|
-
const [
|
|
75
|
-
|
|
72
|
+
const c = new Q(), b = i.clone().sub(l).normalize();
|
|
73
|
+
c.set(l, b);
|
|
74
|
+
const [p] = this.five.model.intersectRaycaster(c);
|
|
75
|
+
p && p.distance + 0.1 < t || o.push(f);
|
|
76
76
|
}), this.visibleLabelMap.set(e, o), o;
|
|
77
77
|
}
|
|
78
78
|
})();
|
|
79
|
-
this.labelItems.forEach((o,
|
|
80
|
-
o.visible = h.includes(
|
|
79
|
+
this.labelItems.forEach((o, s) => {
|
|
80
|
+
o.visible = h.includes(s);
|
|
81
81
|
}), this.fixDoorPosition();
|
|
82
82
|
});
|
|
83
83
|
r(this, "fixDoorPosition", () => {
|
|
84
|
-
var
|
|
84
|
+
var i, t, c, b, p, y, g, w, L, E, _, S;
|
|
85
85
|
const { panoIndex: e, camera: n } = this.five;
|
|
86
86
|
if (e === null)
|
|
87
87
|
return;
|
|
88
88
|
if (this.five.currentMode !== "Panorama")
|
|
89
89
|
return this.hideAllLabels();
|
|
90
|
-
const
|
|
91
|
-
if (
|
|
90
|
+
const d = this.five.getElement(), l = d.clientWidth, h = d.clientHeight, o = n.getWorldDirection(new V()), s = [], f = [...this.labelItems];
|
|
91
|
+
if (f.forEach((m, u) => {
|
|
92
92
|
if (m.visible) {
|
|
93
|
-
const
|
|
94
|
-
m.left =
|
|
93
|
+
const x = n.position.distanceTo(m.position), M = m.position.clone().add(new V(0, this.OffsetHeight, 0)), A = M.clone().sub(n.position).normalize().angleTo(o), O = M.clone().project(n), P = (O.x + 1) / 2.2 * 100, I = (-O.y + 1) / 2.2 * 100, D = P >= 0 && P <= 100 && I >= 0 && I <= 100 && x > this.MinVisibledistance && x <= this.MaxVisibledistance;
|
|
94
|
+
m.left = P, m.top = I, m.inSight = D && A < Math.PI / 2, m.cameraToward = Y(this.five), D ? s.push({ disFromCameraToLabel: x, left: P, top: I, index: u }) : m.transform = "translate(-50%, -50%)";
|
|
95
95
|
} else
|
|
96
96
|
m.inSight = !1;
|
|
97
|
-
}),
|
|
97
|
+
}), s.length > 1) {
|
|
98
98
|
let m = 0;
|
|
99
|
-
|
|
100
|
-
for (let
|
|
101
|
-
const { index:
|
|
102
|
-
if (!
|
|
99
|
+
s.sort((u, x) => x.disFromCameraToLabel - u.disFromCameraToLabel);
|
|
100
|
+
for (let u = 1; u < s.length; u++) {
|
|
101
|
+
const { index: x, left: M, top: k } = s[u - 1], { index: A, left: O, top: P } = s[u], I = this.container.children[x], D = this.container.children[A];
|
|
102
|
+
if (!I || !D)
|
|
103
103
|
return;
|
|
104
|
-
const
|
|
104
|
+
const R = {
|
|
105
105
|
left: l * M / 100,
|
|
106
|
-
top: h *
|
|
107
|
-
width: (
|
|
108
|
-
height: (
|
|
109
|
-
},
|
|
110
|
-
left: l *
|
|
111
|
-
top: h *
|
|
112
|
-
width: (w = (
|
|
113
|
-
height: (
|
|
106
|
+
top: h * k / 100,
|
|
107
|
+
width: (c = (t = (i = I.children) == null ? void 0 : i[0]) == null ? void 0 : t.clientWidth) != null ? c : 0,
|
|
108
|
+
height: (y = (p = (b = I.children) == null ? void 0 : b[0]) == null ? void 0 : p.clientHeight) != null ? y : 0
|
|
109
|
+
}, F = {
|
|
110
|
+
left: l * O / 100,
|
|
111
|
+
top: h * P / 100,
|
|
112
|
+
width: (L = (w = (g = D.children) == null ? void 0 : g[0]) == null ? void 0 : w.clientWidth) != null ? L : 0,
|
|
113
|
+
height: (S = (_ = (E = D.children) == null ? void 0 : E[0]) == null ? void 0 : _.clientHeight) != null ? S : 0
|
|
114
114
|
};
|
|
115
|
-
|
|
115
|
+
Z(R, F) && (m++, f[x].transform = `translate(-50%, ${(m - 1) * 100 - 50}%)`, f[A].transform = `translate(-50%, ${m * 100 - 50}%)`);
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
this.labelItems =
|
|
118
|
+
this.labelItems = f, this.render();
|
|
119
119
|
});
|
|
120
120
|
r(this, "onClick", (e, n) => {
|
|
121
121
|
if (!this.roomObservers)
|
|
122
122
|
return;
|
|
123
|
-
const { work:
|
|
123
|
+
const { work: d } = this.five;
|
|
124
124
|
let l, h, o = 1 / 0;
|
|
125
|
-
for (
|
|
126
|
-
if (this.roomObservers
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
125
|
+
for (const s of d.observers)
|
|
126
|
+
if (this.roomObservers.find((i) => i.panoIndex === s.panoIndex && i.name === e)) {
|
|
127
|
+
const i = s.standingPosition, t = n.distanceTo(i);
|
|
128
|
+
t < o && (l = s.panoIndex, h = i.clone().sub(n).normalize(), o = t);
|
|
129
|
+
}
|
|
131
130
|
if (h !== null && l !== null) {
|
|
132
|
-
const
|
|
131
|
+
const s = {};
|
|
133
132
|
if (o > 0) {
|
|
134
|
-
const
|
|
135
|
-
c.setFromUnitVectors(
|
|
136
|
-
const
|
|
137
|
-
|
|
133
|
+
const i = new V(0, 0, -1), t = h.clone(), c = new j();
|
|
134
|
+
c.setFromUnitVectors(i, t);
|
|
135
|
+
const b = new z();
|
|
136
|
+
b.setFromQuaternion(c, "YXZ"), s.longitude = b.y;
|
|
138
137
|
}
|
|
139
|
-
this.five.emit("wantsToMoveToPano", l, {}, !0) || this.five.moveToPano(l, { longitude:
|
|
138
|
+
this.five.emit("wantsToMoveToPano", l, {}, !0) || this.five.moveToPano(l, { longitude: s.longitude });
|
|
140
139
|
}
|
|
141
140
|
});
|
|
142
141
|
r(this, "initData", () => {
|
|
143
142
|
var l;
|
|
144
143
|
this.doorLabels = [];
|
|
145
|
-
const e = this.five.panoIndex, n = this.floorplanServerData.computed_data.observers[e].floor_index,
|
|
146
|
-
this.rooms =
|
|
147
|
-
var
|
|
148
|
-
const o = (
|
|
149
|
-
o && o.forEach((
|
|
150
|
-
const t =
|
|
151
|
-
let c = 1 / 0,
|
|
152
|
-
|
|
153
|
-
const
|
|
154
|
-
x:
|
|
155
|
-
y:
|
|
156
|
-
z:
|
|
157
|
-
}, L =
|
|
158
|
-
L < c && (c = L,
|
|
159
|
-
}),
|
|
160
|
-
const
|
|
161
|
-
|
|
144
|
+
const e = this.five.panoIndex, n = this.floorplanServerData.computed_data.observers[e].floor_index, d = n !== void 0 && ((l = this.floorplanServerData.computed_data.floor_datas[n]) == null ? void 0 : l.rooms);
|
|
145
|
+
this.rooms = d, this.rooms && this.rooms.length > 0 && this.rooms.forEach((h) => {
|
|
146
|
+
var f;
|
|
147
|
+
const o = (f = this.floorplanServerData.computed_data.doors) == null ? void 0 : f.filter((i) => !!(i && i.name === h.name)), s = this.five.work.observers.filter((i, t) => !!h.observer_indexs.find((c) => c === t));
|
|
148
|
+
o && o.forEach((i) => {
|
|
149
|
+
const t = i.position;
|
|
150
|
+
let c = 1 / 0, b;
|
|
151
|
+
s.forEach((y) => {
|
|
152
|
+
const g = y.standingPosition, w = {
|
|
153
|
+
x: g.x,
|
|
154
|
+
y: g.y,
|
|
155
|
+
z: g.z
|
|
156
|
+
}, L = J(t, w);
|
|
157
|
+
L < c && (c = L, b = w);
|
|
158
|
+
}), b && (t.y = b.y + 0.01);
|
|
159
|
+
const p = new V(t.x, t.y, t.z);
|
|
160
|
+
p.add(new V(-0.2, 1.8, 0).applyEuler(new z(0, i.rad, 0))), this.doorLabels.push({
|
|
162
161
|
roomName: h.name,
|
|
163
|
-
name:
|
|
164
|
-
position:
|
|
165
|
-
toward:
|
|
162
|
+
name: i.name,
|
|
163
|
+
position: p,
|
|
164
|
+
toward: K(i.rad)
|
|
166
165
|
});
|
|
167
166
|
});
|
|
168
|
-
}), this.labelItems = this.doorLabels.map((h) =>
|
|
167
|
+
}), this.labelItems = this.doorLabels.map((h) => W(H({}, h), {
|
|
169
168
|
left: 0,
|
|
170
169
|
top: 0,
|
|
171
170
|
visible: !1,
|
|
@@ -177,12 +176,12 @@ class se extends Q {
|
|
|
177
176
|
}
|
|
178
177
|
stateChangedCallback(e, n) {
|
|
179
178
|
if (this.hooks.hasListener("stateChange")) {
|
|
180
|
-
const
|
|
179
|
+
const d = {
|
|
181
180
|
state: this.state,
|
|
182
181
|
prevState: e,
|
|
183
|
-
userAction: n ? n.userAction :
|
|
182
|
+
userAction: n ? n.userAction : ee.userAction
|
|
184
183
|
};
|
|
185
|
-
this.hooks.emit("stateChange",
|
|
184
|
+
this.hooks.emit("stateChange", d);
|
|
186
185
|
}
|
|
187
186
|
}
|
|
188
187
|
render() {
|
|
@@ -196,7 +195,7 @@ class se extends Q {
|
|
|
196
195
|
e.$destroy();
|
|
197
196
|
}), this.doorLabelItems = [], this.labelItems.forEach((e) => {
|
|
198
197
|
this.doorLabelItems.push(
|
|
199
|
-
new
|
|
198
|
+
new X({
|
|
200
199
|
target: this.container,
|
|
201
200
|
props: {
|
|
202
201
|
props: e,
|
|
@@ -216,5 +215,5 @@ class se extends Q {
|
|
|
216
215
|
}
|
|
217
216
|
}
|
|
218
217
|
export {
|
|
219
|
-
|
|
218
|
+
re as PanoDoorLabelPluginController
|
|
220
219
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as k, init as _, safe_not_equal as C, append_styles as I, element as d, space as j, attr as p, null_to_empty as v, insert as B, append as b, listen as x, noop as f, detach as H, binding_callbacks as S } from "svelte/internal";
|
|
1
|
+
import { SvelteComponent as k, init as _, safe_not_equal as C, append_styles as I, element as d, space as j, attr as p, null_to_empty as v, insert as B, append as b, listen as x, noop as f, detach as H, binding_callbacks as S } from "../vendor/svelte/internal/index.js";
|
|
2
2
|
import y from "classnames";
|
|
3
3
|
function W(e) {
|
|
4
4
|
I(e, "svelte-wpy7pz", '.plugin-DoorLabelPlugin-item.svelte-wpy7pz.svelte-wpy7pz{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;transition:opacity 0.3s ease}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz{position:absolute;top:50%;left:50%;border-radius:0.125rem;background:rgba(0, 0, 0, 0.35);line-height:0.75rem;padding:0.375rem;white-space:nowrap;font-size:0.75rem;font-style:normal;color:white;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform ease 1s, background ease 0.3s, color ease 0.3s}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz::after{content:"";display:block;position:absolute;top:-0.0625rem;left:-0.0625rem;bottom:-0.0625rem;right:-0.0625rem;border-radius:0.125rem;border:0.0625rem solid rgba(0, 0, 0, 0);-o-border-image:url("//vrlab-image4.ljcdn.com/release/web/highlightCarouseal-border-image.14b51834.png") 4;border-image:url("//vrlab-image4.ljcdn.com/release/web/highlightCarouseal-border-image.14b51834.png") 4;transition:opacity ease 0.3s}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz:active,.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz:focus{background:rgba(0, 0, 0, 0.5);color:rgba(255, 255, 255, 0.5)}.plugin-DoorLabelPlugin-icon.svelte-wpy7pz.svelte-wpy7pz{background:url("//vrlab-image4.ljcdn.com/release/web/DoorLabel-icon.de1304ae.svg") no-repeat;background-size:100%;display:inline-block;width:0.625rem;height:0.625rem;margin-left:0.25rem;transform-origin:center}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].left.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].right.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].right.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].back.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].back.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].back.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].right.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].left.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].left.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz{color:#f9eac1}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{background:url("//vrlab-image4.ljcdn.com/release/web/arrow.6e8ec00e.svg") no-repeat}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz:active,.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz:focus{background:rgba(0, 0, 0, 0.5);color:rgba(249, 234, 193, 0.5)}');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as R, init as W, safe_not_equal as H, append_styles as M, element as c, space as z, text as N, attr as d, add_render_callback as j, set_style as r, insert as P, append as g, add_resize_listener as B, set_data as S, noop as G, detach as w, destroy_each as V, null_to_empty as Z } from "svelte/internal";
|
|
1
|
+
import { SvelteComponent as R, init as W, safe_not_equal as H, append_styles as M, element as c, space as z, text as N, attr as d, add_render_callback as j, set_style as r, insert as P, append as g, add_resize_listener as B, set_data as S, noop as G, detach as w, destroy_each as V, null_to_empty as Z } from "../vendor/svelte/internal/index.js";
|
|
2
2
|
function J(i) {
|
|
3
3
|
M(i, "svelte-1h27ktp", ".PanoRulerPlugin-rule-line.svelte-1h27ktp.svelte-1h27ktp{position:absolute;transform-origin:left 0.0625rem;width:0;height:0.125rem;pointer-events:none}.PanoRulerPlugin-rule-line.svelte-1h27ktp.svelte-1h27ktp::after{content:'';position:absolute;left:-0.125rem;top:-0.1rem;width:0.25rem;height:0.25rem;border-radius:50%;background:#fff;z-index:1;animation:svelte-1h27ktp-viewport-rule-point 0.1s 1s;animation-fill-mode:both}.PanoRulerPlugin-rule-line.svelte-1h27ktp.svelte-1h27ktp::before{content:'';position:absolute;right:-0.125rem;top:-0.1rem;width:0.25rem;height:0.25rem;border-radius:50%;background:#fff;z-index:1;animation:svelte-1h27ktp-viewport-rule-point 0.1s 1.5s;animation-fill-mode:both}.PanoRulerPlugin-rule-line.svelte-1h27ktp em.svelte-1h27ktp{display:block;height:0.0625rem;animation:svelte-1h27ktp-viewport-rule-line 0.5s ease 1s;animation-fill-mode:both;box-shadow:0 0 0.25rem rgb(0 0 0 / 40%);position:relative}.rule-mixed-line.svelte-1h27ktp.svelte-1h27ktp{display:flex;height:0.0625rem;animation:svelte-1h27ktp-viewport-rule-line 0.5s ease 1s;animation-fill-mode:both;align-items:center}.em-solid.svelte-1h27ktp.svelte-1h27ktp{height:100%;background:#ffffff}.em-dotted.svelte-1h27ktp.svelte-1h27ktp{height:0.125rem;background:var(--background-image);background-position:center;background-repeat:repeat}.PanoRulerPlugin-rule-label.svelte-1h27ktp.svelte-1h27ktp{position:absolute;width:0;height:0;top:0.0625rem;pointer-events:none}.PanoRulerPlugin-rule-label-name.svelte-1h27ktp.svelte-1h27ktp{position:absolute;padding:0.1875rem 0.375rem;background:rgba(195, 195, 195, 0.3);backdrop-filter:blur(0.25rem);-webkit-backdrop-filter:blur(0.25rem);border-radius:6.25rem;border:0.0625rem solid rgba(255, 255, 255, 0.6);white-space:nowrap;overflow:hidden;color:#ffffff;font-weight:500;font-size:0.75rem;line-height:1;animation:svelte-1h27ktp-viewport-rule-label 0.25s ease 1s;animation-fill-mode:both;box-shadow:inset 0 0 0.625rem 0 rgba(255, 255, 255, 0.3)}@keyframes svelte-1h27ktp-viewport-rule-line{0%{width:0%}100%{width:100%}}@keyframes svelte-1h27ktp-viewport-rule-label{0%{opacity:0;transform:scaleX(0)}100%{opacity:1;transform:translate(-50%, -50%) scaleX(1)}}@keyframes svelte-1h27ktp-viewport-rule-point{0%{transform:scaleX(0)}100%{transform:scaleX(1)}}");
|
|
4
4
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { SvelteComponent as Q, init as X, safe_not_equal as Z, element as $, insert as tt, transition_in as C,
|
|
2
|
-
import { Five as
|
|
3
|
-
import { nextFrame as
|
|
1
|
+
import { SvelteComponent as Q, init as X, safe_not_equal as Z, element as $, insert as tt, transition_in as C, check_outros as et, transition_out as k, detach as nt, destroy_each as ot, onMount as rt, onDestroy as st, create_component as at, mount_component as ct, destroy_component as it, group_outros as lt } from "../vendor/svelte/internal/index.js";
|
|
2
|
+
import { Five as ft } from "@realsee/five";
|
|
3
|
+
import { nextFrame as mt } from "../shared-utils/animationFrame/index.js";
|
|
4
4
|
import { equal as z } from "../shared-utils/equal.js";
|
|
5
|
-
import { intersectionOfLine as
|
|
6
|
-
import { throttle as
|
|
7
|
-
import { onMount as ut, onDestroy as ht } from "svelte";
|
|
5
|
+
import { intersectionOfLine as ut } from "../shared-utils/math/planimetry.js";
|
|
6
|
+
import { throttle as ht } from "../shared-utils/throttle.js";
|
|
8
7
|
import { Vector3 as M } from "three";
|
|
9
8
|
import dt from "./RulerItem.js";
|
|
10
9
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
@@ -20,10 +19,10 @@ function K(p) {
|
|
|
20
19
|
props: { rulerItemProp: p[12] }
|
|
21
20
|
}), {
|
|
22
21
|
c() {
|
|
23
|
-
|
|
22
|
+
at(r.$$.fragment);
|
|
24
23
|
},
|
|
25
24
|
m(t, e) {
|
|
26
|
-
|
|
25
|
+
ct(r, t, e), i = !0;
|
|
27
26
|
},
|
|
28
27
|
p(t, e) {
|
|
29
28
|
const w = {};
|
|
@@ -36,7 +35,7 @@ function K(p) {
|
|
|
36
35
|
k(r.$$.fragment, t), i = !1;
|
|
37
36
|
},
|
|
38
37
|
d(t) {
|
|
39
|
-
|
|
38
|
+
it(r, t);
|
|
40
39
|
}
|
|
41
40
|
};
|
|
42
41
|
}
|
|
@@ -67,9 +66,9 @@ function pt(p) {
|
|
|
67
66
|
const A = J(n, t, o);
|
|
68
67
|
e[o] ? (e[o].p(A, a), C(e[o], 1)) : (e[o] = K(A), e[o].c(), C(e[o], 1), e[o].m(r, null));
|
|
69
68
|
}
|
|
70
|
-
for (
|
|
69
|
+
for (lt(), o = t.length; o < e.length; o += 1)
|
|
71
70
|
w(o);
|
|
72
|
-
|
|
71
|
+
et();
|
|
73
72
|
}
|
|
74
73
|
},
|
|
75
74
|
i(n) {
|
|
@@ -86,7 +85,7 @@ function pt(p) {
|
|
|
86
85
|
i = !1;
|
|
87
86
|
},
|
|
88
87
|
d(n) {
|
|
89
|
-
n &&
|
|
88
|
+
n && nt(r), ot(e, n);
|
|
90
89
|
}
|
|
91
90
|
};
|
|
92
91
|
}
|
|
@@ -101,7 +100,7 @@ function gt(p, r, i) {
|
|
|
101
100
|
[{ x: 0, y: o }, { x: a, y: o }]
|
|
102
101
|
], u = [];
|
|
103
102
|
for (let h = 0; h < f.length; h++) {
|
|
104
|
-
const g =
|
|
103
|
+
const g = ut([c, l], [f[h][0], f[h][1]], !0);
|
|
105
104
|
g && u.push(g);
|
|
106
105
|
}
|
|
107
106
|
return u.length === 0 ? !1 : u;
|
|
@@ -140,7 +139,7 @@ function gt(p, r, i) {
|
|
|
140
139
|
const c = t.panoIndex, l = e.find((s) => s.panoIndex === c);
|
|
141
140
|
if (!l)
|
|
142
141
|
return i(0, n = []);
|
|
143
|
-
if (t.currentMode !==
|
|
142
|
+
if (t.currentMode !== ft.Mode.Panorama)
|
|
144
143
|
return i(0, n = []);
|
|
145
144
|
const f = t.camera.position, u = t.camera.getWorldDirection(new M()), h = l.lines.map((s) => new M(s.start[0], -s.start[1], -s.start[2])), g = l.lines.map((s) => new M(s.end[0], -s.end[1], -s.end[2])), [L] = h.concat(g).sort((s, T) => {
|
|
146
145
|
const d = s.clone().setY(0).sub(f).normalize().angleTo(u.clone().setY(0)), x = T.clone().setY(0).sub(f).normalize().angleTo(u.clone().setY(0));
|
|
@@ -164,20 +163,20 @@ function gt(p, r, i) {
|
|
|
164
163
|
};
|
|
165
164
|
});
|
|
166
165
|
i(0, n = y);
|
|
167
|
-
}, E = () =>
|
|
168
|
-
return
|
|
166
|
+
}, E = () => mt(_), R = ht(_, 80);
|
|
167
|
+
return rt(() => {
|
|
169
168
|
_(), t.on("panoArrived", _), t.on("modeChange", _), t.on("cameraDirectionUpdate", E), t.on("movingToPano", E), t.on("mouseWheel", () => R()), t.on("pinchGesture", () => R());
|
|
170
|
-
}),
|
|
169
|
+
}), st(() => {
|
|
171
170
|
t.off("panoArrived", _), t.off("modeChange", _), t.off("cameraDirectionUpdate", E), t.off("movingToPano", E), t.off("mouseWheel", () => R()), t.off("pinchGesture", () => R());
|
|
172
171
|
}), p.$$set = (c) => {
|
|
173
172
|
"five" in c && i(1, t = c.five), "rulerDatas" in c && i(2, e = c.rulerDatas), "options" in c && i(3, w = c.options);
|
|
174
173
|
}, [n, t, e, w];
|
|
175
174
|
}
|
|
176
|
-
class
|
|
175
|
+
class Ft extends Q {
|
|
177
176
|
constructor(r) {
|
|
178
177
|
super(), X(this, r, gt, pt, Z, { five: 1, rulerDatas: 2, options: 3 });
|
|
179
178
|
}
|
|
180
179
|
}
|
|
181
180
|
export {
|
|
182
|
-
|
|
181
|
+
Ft as default
|
|
183
182
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SvelteComponent as d, init as h, safe_not_equal as P, append_styles as y, empty as v, insert as p, noop as c, destroy_each as S, detach as u, element as T, attr as b, toggle_class as f, set_style as g, listen as k } from "svelte/internal";
|
|
1
|
+
import { SvelteComponent as d, init as h, safe_not_equal as P, append_styles as y, empty as v, insert as p, noop as c, destroy_each as S, detach as u, element as T, attr as b, toggle_class as f, set_style as g, listen as k } from "../../vendor/svelte/internal/index.js";
|
|
2
2
|
import { currentTarget as z } from "../store.js";
|
|
3
|
-
import "svelte/store";
|
|
3
|
+
import "../../vendor/svelte/store/index.js";
|
|
4
4
|
function w(n) {
|
|
5
5
|
y(n, "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}}");
|
|
6
6
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { SvelteComponent as F, init as M, safe_not_equal as j, append_styles as I, element as d, space as k, attr as u, set_style as c, toggle_class as p, insert as L, append as g, listen as O, noop as D, detach as q,
|
|
2
|
-
import { onMount as E, afterUpdate as U, onDestroy as B } from "svelte";
|
|
1
|
+
import { SvelteComponent as F, init as M, safe_not_equal as j, append_styles as I, element as d, space as k, attr as u, set_style as c, toggle_class as p, insert as L, append as g, listen as O, noop as D, detach as q, onMount as A, afterUpdate as E, onDestroy as U, binding_callbacks as B } from "../../vendor/svelte/internal/index.js";
|
|
3
2
|
import { currentTarget as G } from "../store.js";
|
|
4
|
-
import "svelte/store";
|
|
3
|
+
import "../../vendor/svelte/store/index.js";
|
|
5
4
|
function J(n) {
|
|
6
5
|
I(n, "svelte-1i5h9zh", ".PanoSpatialTagPlugin__tag-x.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0;display:block;white-space:nowrap;box-sizing:border-box;width:25rem;height:14rem;color:#FFF;transform:translate(0, -100%);transition:height .5s linear}.PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh.svelte-1i5h9zh{content:'';position:absolute;width:30rem;height:30rem;top:-15rem;left:-15rem;z-index:-1;opacity:0;transition:opacity .8s .6s;background:url('https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png');background-size:30rem 30rem}.PanoSpatialTagPlugin__tag-line.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;left:-1rem;width:2rem;height:100%;overflow:hidden}.PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:1rem;height:calc(100% - 1.5rem);width:.15rem;background:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, .1));box-shadow:0 .1rem .5rem rgba(0, 0, 0, .2);opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .4s cubic-bezier(.44,.44,.74,.98) , opacity .4s cubic-bezier(.44,.44,.74,.98), width .5s linear, height .5s linear ;transform-origin:center bottom}.PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0.3rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0.5rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh{animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh{animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s}.PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh.svelte-1i5h9zh{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line.svelte-1i5h9zh{transform:scaleY(-1)}.PanoSpatialTagPlugin__tag-animate.svelte-1i5h9zh.svelte-1i5h9zh{position:relative;height:100%;overflow:hidden;transform-origin:left top;transition:transform .5s linear}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-animate.svelte-1i5h9zh{transform-origin:left bottom}.PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;display:inline-block;transform:translate(-100%, 0);transition:transform .9s cubic-bezier(0,.65,.16,1.08) .6s;padding-left:.5rem;font-size:1rem}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{bottom:0}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh{opacity:1;transform:translate(-50%, 0) scaleY(1)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{top:unset;bottom:-15rem}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{opacity:.32}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh{opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .5s .55s, opacity .4s .55s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{opacity:0;transition:opacity .8s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{transform:translate(-100%, 0);transition:transform .6s cubic-bezier(.53,.06,.88,.59)}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content .svelte-1i5h9zh{pointer-events:none}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh{opacity:0.5;transform:translate(-50%, 10%) scaleY(0);animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh{opacity:0.5;transform:translate(-50%, 0) scaleY(0);animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 135%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 20%) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 125%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1-hide{0%{opacity:0.5;transform:translate(-50%, 10%) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 105%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2-hide{0%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 100%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}");
|
|
7
6
|
}
|
|
@@ -49,7 +48,7 @@ function Q(n, a, i) {
|
|
|
49
48
|
}), m = m.parentNode;
|
|
50
49
|
}
|
|
51
50
|
};
|
|
52
|
-
|
|
51
|
+
A(() => {
|
|
53
52
|
P.emit("initTag", { id: h });
|
|
54
53
|
});
|
|
55
54
|
const N = G.subscribe((t) => {
|
|
@@ -63,13 +62,13 @@ function Q(n, a, i) {
|
|
|
63
62
|
1500
|
|
64
63
|
)));
|
|
65
64
|
});
|
|
66
|
-
|
|
65
|
+
E(() => {
|
|
67
66
|
i(7, v = e.offsetWidth), i(8, w = e.offsetHeight), !y && i(10, l = !r);
|
|
68
|
-
}),
|
|
67
|
+
}), U(() => {
|
|
69
68
|
P.emit("destroyTag", { id: h }), N(), _();
|
|
70
69
|
});
|
|
71
70
|
function C(t) {
|
|
72
|
-
|
|
71
|
+
B[t ? "unshift" : "push"](() => {
|
|
73
72
|
e = t, i(9, e);
|
|
74
73
|
});
|
|
75
74
|
}
|
|
@@ -95,7 +94,7 @@ function Q(n, a, i) {
|
|
|
95
94
|
C
|
|
96
95
|
];
|
|
97
96
|
}
|
|
98
|
-
class
|
|
97
|
+
class x extends F {
|
|
99
98
|
constructor(a) {
|
|
100
99
|
super(), M(
|
|
101
100
|
this,
|
|
@@ -121,5 +120,5 @@ class $ extends F {
|
|
|
121
120
|
}
|
|
122
121
|
}
|
|
123
122
|
export {
|
|
124
|
-
|
|
123
|
+
x as default
|
|
125
124
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SvelteComponent as p, init as D, safe_not_equal as A, append_styles as I, empty as R, insert as y, transition_in as d,
|
|
2
|
-
import { fade as w } from "svelte/transition";
|
|
1
|
+
import { SvelteComponent as p, init as D, safe_not_equal as A, append_styles as I, empty as R, insert as y, transition_in as d, transition_out as _, check_outros as S, detach as k, element as v, create_component as z, space as C, attr as c, set_style as N, mount_component as O, append as q, listen as j, add_render_callback as B, create_in_transition as E, create_out_transition as F, destroy_component as G, group_outros as H, bubble as J } from "../../../vendor/svelte/internal/index.js";
|
|
2
|
+
import { fade as w } from "../../../vendor/svelte/transition/index.js";
|
|
3
3
|
import { Image_Arrow as K } from "../../Assets/Icon.js";
|
|
4
|
-
import { cubicInOut as b } from "svelte/easing";
|
|
4
|
+
import { cubicInOut as b } from "../../../vendor/svelte/easing/index.js";
|
|
5
5
|
import L from "./Shadow.js";
|
|
6
6
|
function M(i) {
|
|
7
7
|
I(i, "svelte-1ogmlqq", ".arrow.svelte-1ogmlqq{width:100%;height:100%;background-size:100%;transition:transform 400ms ease-in-out;cursor:pointer;pointer-events:auto}.arrow-wrapper.svelte-1ogmlqq{position:relative;width:100%;height:100%}.arrow.left.svelte-1ogmlqq{transform:rotate(0deg)}.arrow.right.svelte-1ogmlqq{transform:rotate(-180deg)}.arrow.top.svelte-1ogmlqq{transform:rotate(90deg)}.arrow.bottom.svelte-1ogmlqq{transform:rotate(-90deg)}");
|
|
@@ -16,17 +16,17 @@ function h(i) {
|
|
|
16
16
|
}
|
|
17
17
|
}), {
|
|
18
18
|
c() {
|
|
19
|
-
r = v("div"),
|
|
19
|
+
r = v("div"), z(o.$$.fragment), e = C(), t = v("div"), c(t, "class", l = "arrow " + i[0] + " svelte-1ogmlqq"), N(t, "background-image", "url(" + K + ")"), c(r, "class", "arrow-wrapper svelte-1ogmlqq");
|
|
20
20
|
},
|
|
21
21
|
m(a, m) {
|
|
22
|
-
y(a, r, m),
|
|
22
|
+
y(a, r, m), O(o, r, null), q(r, e), q(r, t), f = !0, n || (g = j(t, "click", i[5]), n = !0);
|
|
23
23
|
},
|
|
24
24
|
p(a, m) {
|
|
25
25
|
i = a, (!f || m & 1 && l !== (l = "arrow " + i[0] + " svelte-1ogmlqq")) && c(t, "class", l);
|
|
26
26
|
},
|
|
27
27
|
i(a) {
|
|
28
|
-
f || (d(o.$$.fragment, a), a &&
|
|
29
|
-
s && s.end(1), u =
|
|
28
|
+
f || (d(o.$$.fragment, a), a && B(() => {
|
|
29
|
+
s && s.end(1), u = E(t, w, {
|
|
30
30
|
duration: i[2],
|
|
31
31
|
delay: i[3],
|
|
32
32
|
easing: b
|
|
@@ -34,14 +34,14 @@ function h(i) {
|
|
|
34
34
|
}), f = !0);
|
|
35
35
|
},
|
|
36
36
|
o(a) {
|
|
37
|
-
_(o.$$.fragment, a), u && u.invalidate(), a && (s =
|
|
37
|
+
_(o.$$.fragment, a), u && u.invalidate(), a && (s = F(t, w, {
|
|
38
38
|
duration: i[2],
|
|
39
39
|
delay: i[4],
|
|
40
40
|
easing: b
|
|
41
41
|
})), f = !1;
|
|
42
42
|
},
|
|
43
43
|
d(a) {
|
|
44
|
-
a && k(r),
|
|
44
|
+
a && k(r), G(o), a && s && s.end(), n = !1, g();
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
}
|
|
@@ -55,9 +55,9 @@ function P(i) {
|
|
|
55
55
|
e && e.m(t, l), y(t, r, l), o = !0;
|
|
56
56
|
},
|
|
57
57
|
p(t, [l]) {
|
|
58
|
-
t[1] ? e ? (e.p(t, l), l & 2 && d(e, 1)) : (e = h(t), e.c(), d(e, 1), e.m(r.parentNode, r)) : e && (
|
|
58
|
+
t[1] ? e ? (e.p(t, l), l & 2 && d(e, 1)) : (e = h(t), e.c(), d(e, 1), e.m(r.parentNode, r)) : e && (H(), _(e, 1, 1, () => {
|
|
59
59
|
e = null;
|
|
60
|
-
}),
|
|
60
|
+
}), S());
|
|
61
61
|
},
|
|
62
62
|
i(t) {
|
|
63
63
|
o || (d(e), o = !0);
|