@realsee/dnalogel 2.7.0 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +19 -19
- package/dist/index.js +102 -102
- package/dist/index.umd.js +14 -14
- 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 +47 -47
- 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/index.js +67 -67
- package/package.json +1 -1
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +0 -4
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +0 -6
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +0 -93
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +0 -5622
- package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +0 -1325
- package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +0 -173
- package/libs/PanoTagPlugin/mocks/v1/mock1.js +0 -122
- package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +0 -233
- package/libs/PanoTagPlugin/mocks/v1/mock2.js +0 -296
- package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +0 -22
- package/libs/PanoTagPlugin/mocks/v1/mock3.js +0 -32
- package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +0 -56
- package/libs/PanoTagPlugin/mocks/v1/mock4.js +0 -60
- package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +0 -13
- package/libs/PanoTagPlugin/mocks/v1/mock5.js +0 -17
- package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +0 -16
- package/libs/PanoTagPlugin/mocks/v1/mock6.js +0 -27
- package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +0 -22
- package/libs/PanoTagPlugin/mocks/v1/mock7.js +0 -228
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ var W = (i, t, e) => new Promise((n, o) => {
|
|
|
29
29
|
});
|
|
30
30
|
import * as ui from "@tweenjs/tween.js";
|
|
31
31
|
import An, { Tween as Fl, Easing as Gl } from "@tweenjs/tween.js";
|
|
32
|
-
import { Camera as Wl, Five as
|
|
32
|
+
import { Camera as Wl, Five as Ve, Subscribe as Ye } from "@realsee/five";
|
|
33
33
|
import * as E from "three";
|
|
34
34
|
import { Vector3 as $, Group as vn, Raycaster as zt, MeshBasicMaterial as bn, CanvasTexture as Nl, AnimationMixer as _l, Color as En, TextureLoader as la, Vector2 as Ne, PlaneGeometry as Xl, sRGBEncoding as Yl, Mesh as Jn, CurvePath as Ul, LineCurve3 as Jl, TubeGeometry as Zl, ShaderMaterial as ql, SphereGeometry as Kl, DoubleSide as ca, RingGeometry as $l, Quaternion as ua, Euler as Lo, Matrix4 as cn, Object3D as ec } from "three";
|
|
35
35
|
import { CSS3DRenderer as tc, CSS3DObject as Fi } from "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -1433,7 +1433,7 @@ function en(i) {
|
|
|
1433
1433
|
}
|
|
1434
1434
|
return -1;
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function Qe(i) {
|
|
1437
1437
|
return i == null ? "" : i;
|
|
1438
1438
|
}
|
|
1439
1439
|
function Ii(i) {
|
|
@@ -1878,7 +1878,7 @@ function qe(i, t, e, n, o, s, r, a, l, c, u, h) {
|
|
|
1878
1878
|
x(g[f - 1]);
|
|
1879
1879
|
return g;
|
|
1880
1880
|
}
|
|
1881
|
-
function
|
|
1881
|
+
function Re(i, t) {
|
|
1882
1882
|
const e = {}, n = {}, o = { $$scope: 1 };
|
|
1883
1883
|
let s = i.length;
|
|
1884
1884
|
for (; s--; ) {
|
|
@@ -2867,7 +2867,7 @@ function No(i, t) {
|
|
|
2867
2867
|
},
|
|
2868
2868
|
p(a, l) {
|
|
2869
2869
|
t = a;
|
|
2870
|
-
const c = l & 111 ?
|
|
2870
|
+
const c = l & 111 ? Re(s, [
|
|
2871
2871
|
{
|
|
2872
2872
|
pxmm: t[5],
|
|
2873
2873
|
room: t[10],
|
|
@@ -3121,7 +3121,7 @@ function Zo(i, t) {
|
|
|
3121
3121
|
},
|
|
3122
3122
|
p(a, l) {
|
|
3123
3123
|
t = a;
|
|
3124
|
-
const c = l & 19 ?
|
|
3124
|
+
const c = l & 19 ? Re(s, [
|
|
3125
3125
|
{
|
|
3126
3126
|
type: t[13],
|
|
3127
3127
|
data: t[14],
|
|
@@ -3612,7 +3612,7 @@ function ns(i, t) {
|
|
|
3612
3612
|
},
|
|
3613
3613
|
p(a, l) {
|
|
3614
3614
|
t = a;
|
|
3615
|
-
const c = l & 7 ?
|
|
3615
|
+
const c = l & 7 ? Re(s, [
|
|
3616
3616
|
{
|
|
3617
3617
|
room: t[5],
|
|
3618
3618
|
floorplanData: t[1],
|
|
@@ -3721,7 +3721,7 @@ function is(i) {
|
|
|
3721
3721
|
Z(t, s, r), e = !0;
|
|
3722
3722
|
},
|
|
3723
3723
|
p(s, r) {
|
|
3724
|
-
const a = r & 1058 ?
|
|
3724
|
+
const a = r & 1058 ? Re(n, [
|
|
3725
3725
|
{
|
|
3726
3726
|
floorIndex: s[1],
|
|
3727
3727
|
floorplanData: s[5],
|
|
@@ -3764,7 +3764,7 @@ function os(i) {
|
|
|
3764
3764
|
Z(t, s, r), e = !0;
|
|
3765
3765
|
},
|
|
3766
3766
|
p(s, r) {
|
|
3767
|
-
const a = r & 1762 ?
|
|
3767
|
+
const a = r & 1762 ? Re(n, [
|
|
3768
3768
|
{
|
|
3769
3769
|
floorplanData: s[5],
|
|
3770
3770
|
floorIndex: s[1],
|
|
@@ -3807,7 +3807,7 @@ function ss(i) {
|
|
|
3807
3807
|
Z(t, s, r), e = !0;
|
|
3808
3808
|
},
|
|
3809
3809
|
p(s, r) {
|
|
3810
|
-
const a = r & 290 ?
|
|
3810
|
+
const a = r & 290 ? Re(n, [
|
|
3811
3811
|
{
|
|
3812
3812
|
floorplanData: s[5],
|
|
3813
3813
|
floorIndex: s[1],
|
|
@@ -3853,13 +3853,13 @@ function xd(i) {
|
|
|
3853
3853
|
let v = i[3] && os(i), g = i[4] && ss(i);
|
|
3854
3854
|
return {
|
|
3855
3855
|
c() {
|
|
3856
|
-
t = z("div"), K(e.$$.fragment), n = ne(), d && d.c(), o = ne(), K(s.$$.fragment), r = ne(), v && v.c(), a = ne(), g && g.c(), b(t, "class", l =
|
|
3856
|
+
t = z("div"), K(e.$$.fragment), n = ne(), d && d.c(), o = ne(), K(s.$$.fragment), r = ne(), v && v.c(), a = ne(), g && g.c(), b(t, "class", l = Qe(`floorplan-plugin__floor${i[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz");
|
|
3857
3857
|
},
|
|
3858
3858
|
m(A, y) {
|
|
3859
3859
|
T(A, t, y), Z(e, t, null), Q(t, n), d && d.m(t, null), Q(t, o), Z(s, t, null), Q(t, r), v && v.m(t, null), Q(t, a), g && g.m(t, null), c = !0;
|
|
3860
3860
|
},
|
|
3861
3861
|
p(A, [y]) {
|
|
3862
|
-
const w = y & 34 ?
|
|
3862
|
+
const w = y & 34 ? Re(u, [
|
|
3863
3863
|
{
|
|
3864
3864
|
floorIndex: A[1],
|
|
3865
3865
|
floorplanData: A[5]
|
|
@@ -3868,7 +3868,7 @@ function xd(i) {
|
|
|
3868
3868
|
e.$set(w), A[2] ? d ? (d.p(A, y), y & 4 && P(d, 1)) : (d = is(A), d.c(), P(d, 1), d.m(t, o)) : d && (re(), D(d, 1, 1, () => {
|
|
3869
3869
|
d = null;
|
|
3870
3870
|
}), ae());
|
|
3871
|
-
const C = y & 34 ?
|
|
3871
|
+
const C = y & 34 ? Re(f, [
|
|
3872
3872
|
{
|
|
3873
3873
|
floorplanData: A[5],
|
|
3874
3874
|
floorIndex: A[1]
|
|
@@ -3878,7 +3878,7 @@ function xd(i) {
|
|
|
3878
3878
|
v = null;
|
|
3879
3879
|
}), ae()), A[4] ? g ? (g.p(A, y), y & 16 && P(g, 1)) : (g = ss(A), g.c(), P(g, 1), g.m(t, null)) : g && (re(), D(g, 1, 1, () => {
|
|
3880
3880
|
g = null;
|
|
3881
|
-
}), ae()), (!c || y & 1 && l !== (l =
|
|
3881
|
+
}), ae()), (!c || y & 1 && l !== (l = Qe(`floorplan-plugin__floor${A[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz")) && b(t, "class", l);
|
|
3882
3882
|
},
|
|
3883
3883
|
i(A) {
|
|
3884
3884
|
c || (P(e.$$.fragment, A), P(d), P(s.$$.fragment, A), P(v), P(g), c = !0);
|
|
@@ -3985,7 +3985,7 @@ function as(i) {
|
|
|
3985
3985
|
c(g);
|
|
3986
3986
|
ae();
|
|
3987
3987
|
}
|
|
3988
|
-
const v = p & 3592 ?
|
|
3988
|
+
const v = p & 3592 ? Re(u, [
|
|
3989
3989
|
{
|
|
3990
3990
|
panoIndex: i[3],
|
|
3991
3991
|
floorplanData: i[9],
|
|
@@ -4051,7 +4051,7 @@ function ls(i) {
|
|
|
4051
4051
|
Z(t, s, r), e = !0;
|
|
4052
4052
|
},
|
|
4053
4053
|
p(s, r) {
|
|
4054
|
-
const a = r & 62384 ?
|
|
4054
|
+
const a = r & 62384 ? Re(n, [
|
|
4055
4055
|
r & 62368 && {
|
|
4056
4056
|
hoverEnable: s[5],
|
|
4057
4057
|
floorplanData: s[9],
|
|
@@ -5328,7 +5328,7 @@ function fs(i) {
|
|
|
5328
5328
|
Z(t, s, r), e = !0;
|
|
5329
5329
|
},
|
|
5330
5330
|
p(s, r) {
|
|
5331
|
-
const a = r & 87 ?
|
|
5331
|
+
const a = r & 87 ? Re(n, [
|
|
5332
5332
|
{
|
|
5333
5333
|
five: s[0],
|
|
5334
5334
|
pxmm: s[1],
|
|
@@ -5375,7 +5375,7 @@ function oh(i) {
|
|
|
5375
5375
|
Z(t, u, h), T(u, e, h), Z(n, u, h), T(u, o, h), c && c.m(u, h), T(u, s, h), r = !0;
|
|
5376
5376
|
},
|
|
5377
5377
|
p(u, [h]) {
|
|
5378
|
-
const d = h & 20 ?
|
|
5378
|
+
const d = h & 20 ? Re(a, [
|
|
5379
5379
|
{
|
|
5380
5380
|
floorIndex: u[2],
|
|
5381
5381
|
floorplanData: u[4]
|
|
@@ -5491,7 +5491,7 @@ function ps(i) {
|
|
|
5491
5491
|
T(d, t, f), Z(e, t, null), Q(t, n), Z(o, t, null), a = !0;
|
|
5492
5492
|
},
|
|
5493
5493
|
p(d, f) {
|
|
5494
|
-
const p = f & 1581 ?
|
|
5494
|
+
const p = f & 1581 ? Re(l, [
|
|
5495
5495
|
{
|
|
5496
5496
|
five: d[0],
|
|
5497
5497
|
pxmm: d[9],
|
|
@@ -5502,7 +5502,7 @@ function ps(i) {
|
|
|
5502
5502
|
}
|
|
5503
5503
|
]) : {};
|
|
5504
5504
|
e.$set(p);
|
|
5505
|
-
const v = f & 537 ?
|
|
5505
|
+
const v = f & 537 ? Re(u, [
|
|
5506
5506
|
{
|
|
5507
5507
|
pxmm: d[9],
|
|
5508
5508
|
five: d[0],
|
|
@@ -6065,7 +6065,7 @@ const Ui = (i, t, e) => {
|
|
|
6065
6065
|
return {
|
|
6066
6066
|
move: e,
|
|
6067
6067
|
rotate: (l, c, ...u) => W(void 0, [l, c, ...u], function* (s, r, a = {}) {
|
|
6068
|
-
t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), i.currentMode !==
|
|
6068
|
+
t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), i.currentMode !== Ve.Mode.Panorama && (yield i.changeMode(Ve.Mode.Panorama)), s.panoIndex !== void 0 && s.panoIndex !== i.panoIndex && (a.preload && (yield i.preloadPano(s.panoIndex)), yield new Promise((f, p) => {
|
|
6069
6069
|
if (!s.panoIndex) {
|
|
6070
6070
|
f(!0);
|
|
6071
6071
|
return;
|
|
@@ -6369,7 +6369,7 @@ const Ch = `<style type="text/css">
|
|
|
6369
6369
|
return;
|
|
6370
6370
|
}
|
|
6371
6371
|
const C = A.position, x = A.getWorldDirection(new $()), I = v.clientWidth, S = v.clientHeight;
|
|
6372
|
-
if (y !==
|
|
6372
|
+
if (y !== Ve.Mode.Panorama) {
|
|
6373
6373
|
for (const N in r)
|
|
6374
6374
|
for (const { $element: H } of r[N].rules)
|
|
6375
6375
|
H.style.display = "none";
|
|
@@ -6501,13 +6501,13 @@ function xh(i) {
|
|
|
6501
6501
|
let t, e;
|
|
6502
6502
|
return {
|
|
6503
6503
|
c() {
|
|
6504
|
-
t = z("em"), b(t, "class", e =
|
|
6504
|
+
t = z("em"), b(t, "class", e = Qe(i[0].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp"), b(t, "style", i[3]);
|
|
6505
6505
|
},
|
|
6506
6506
|
m(n, o) {
|
|
6507
6507
|
T(n, t, o);
|
|
6508
6508
|
},
|
|
6509
6509
|
p(n, o) {
|
|
6510
|
-
o & 1 && e !== (e =
|
|
6510
|
+
o & 1 && e !== (e = Qe(n[0].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp") && b(t, "class", e), o & 8 && b(t, "style", n[3]);
|
|
6511
6511
|
},
|
|
6512
6512
|
d(n) {
|
|
6513
6513
|
n && M(t);
|
|
@@ -6518,13 +6518,13 @@ function ys(i) {
|
|
|
6518
6518
|
let t, e, n = `${i[6].width}px`;
|
|
6519
6519
|
return {
|
|
6520
6520
|
c() {
|
|
6521
|
-
t = z("div"), b(t, "class", e =
|
|
6521
|
+
t = z("div"), b(t, "class", e = Qe(i[6].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp"), b(t, "style", i[3]), L(t, "width", n);
|
|
6522
6522
|
},
|
|
6523
6523
|
m(o, s) {
|
|
6524
6524
|
T(o, t, s);
|
|
6525
6525
|
},
|
|
6526
6526
|
p(o, s) {
|
|
6527
|
-
s & 1 && e !== (e =
|
|
6527
|
+
s & 1 && e !== (e = Qe(o[6].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp") && b(t, "class", e), s & 8 && b(t, "style", o[3]), s & 1 && n !== (n = `${o[6].width}px`) && L(t, "width", n);
|
|
6528
6528
|
},
|
|
6529
6529
|
d(o) {
|
|
6530
6530
|
o && M(t);
|
|
@@ -6700,7 +6700,7 @@ function Th(i, t, e) {
|
|
|
6700
6700
|
const w = n.panoIndex, C = o.find((H) => H.panoIndex === w);
|
|
6701
6701
|
if (!C)
|
|
6702
6702
|
return e(0, r = []);
|
|
6703
|
-
if (n.currentMode !==
|
|
6703
|
+
if (n.currentMode !== Ve.Mode.Panorama)
|
|
6704
6704
|
return e(0, r = []);
|
|
6705
6705
|
const x = n.camera.position, I = n.camera.getWorldDirection(new $()), S = C.lines.map((H) => new $(H.start[0], -H.start[1], -H.start[2])), k = C.lines.map((H) => new $(H.end[0], -H.end[1], -H.end[2])), [j] = S.concat(k).sort((H, U) => {
|
|
6706
6706
|
const V = H.clone().setY(0).sub(x).normalize().angleTo(I.clone().setY(0)), B = U.clone().setY(0).sub(x).normalize().angleTo(I.clone().setY(0));
|
|
@@ -6901,7 +6901,7 @@ class Rh extends jt {
|
|
|
6901
6901
|
m(this, "onFiveModeChange", (e, n, o, s, r) => {
|
|
6902
6902
|
e !== n && this.setState(
|
|
6903
6903
|
{
|
|
6904
|
-
visible: e ===
|
|
6904
|
+
visible: e === Ve.Mode.Panorama
|
|
6905
6905
|
},
|
|
6906
6906
|
{ userAction: r }
|
|
6907
6907
|
);
|
|
@@ -9137,7 +9137,7 @@ const Nf = {
|
|
|
9137
9137
|
">": ">",
|
|
9138
9138
|
'"': """,
|
|
9139
9139
|
"'": "'"
|
|
9140
|
-
},
|
|
9140
|
+
}, He = {
|
|
9141
9141
|
EVAL: "eval",
|
|
9142
9142
|
ESCAPED: "escaped",
|
|
9143
9143
|
RAW: "raw",
|
|
@@ -9207,56 +9207,56 @@ class Uf {
|
|
|
9207
9207
|
`).length - 1, t) {
|
|
9208
9208
|
case n + e:
|
|
9209
9209
|
case n + e + "_":
|
|
9210
|
-
this.mode =
|
|
9210
|
+
this.mode = He.EVAL;
|
|
9211
9211
|
break;
|
|
9212
9212
|
case n + e + "=":
|
|
9213
|
-
this.mode =
|
|
9213
|
+
this.mode = He.ESCAPED;
|
|
9214
9214
|
break;
|
|
9215
9215
|
case n + e + "-":
|
|
9216
|
-
this.mode =
|
|
9216
|
+
this.mode = He.RAW;
|
|
9217
9217
|
break;
|
|
9218
9218
|
case n + e + "#":
|
|
9219
|
-
this.mode =
|
|
9219
|
+
this.mode = He.COMMENT;
|
|
9220
9220
|
break;
|
|
9221
9221
|
case n + e + e:
|
|
9222
|
-
this.mode =
|
|
9222
|
+
this.mode = He.LITERAL, this.source += ' ; __append("' + t.replace(n + e + e, n + e) + `")
|
|
9223
9223
|
`;
|
|
9224
9224
|
break;
|
|
9225
9225
|
case e + e + o:
|
|
9226
|
-
this.mode =
|
|
9226
|
+
this.mode = He.LITERAL, this.source += ' ; __append("' + t.replace(e + e + o, e + o) + `")
|
|
9227
9227
|
`;
|
|
9228
9228
|
break;
|
|
9229
9229
|
case e + o:
|
|
9230
9230
|
case "-" + e + o:
|
|
9231
9231
|
case "_" + e + o:
|
|
9232
|
-
this.mode ==
|
|
9232
|
+
this.mode == He.LITERAL && this._addOutput(t), this.mode = null, this.truncate = t.indexOf("-") === 0 || t.indexOf("_") === 0;
|
|
9233
9233
|
break;
|
|
9234
9234
|
default:
|
|
9235
9235
|
if (this.mode) {
|
|
9236
9236
|
switch (this.mode) {
|
|
9237
|
-
case
|
|
9238
|
-
case
|
|
9239
|
-
case
|
|
9237
|
+
case He.EVAL:
|
|
9238
|
+
case He.ESCAPED:
|
|
9239
|
+
case He.RAW:
|
|
9240
9240
|
t.lastIndexOf("//") > t.lastIndexOf(`
|
|
9241
9241
|
`) && (t += `
|
|
9242
9242
|
`);
|
|
9243
9243
|
}
|
|
9244
9244
|
switch (this.mode) {
|
|
9245
|
-
case
|
|
9245
|
+
case He.EVAL:
|
|
9246
9246
|
this.source += " ; " + t + `
|
|
9247
9247
|
`;
|
|
9248
9248
|
break;
|
|
9249
|
-
case
|
|
9249
|
+
case He.ESCAPED:
|
|
9250
9250
|
this.source += " ; __append(escapeFn(" + js(t) + `))
|
|
9251
9251
|
`;
|
|
9252
9252
|
break;
|
|
9253
|
-
case
|
|
9253
|
+
case He.RAW:
|
|
9254
9254
|
this.source += " ; __append(" + js(t) + `)
|
|
9255
9255
|
`;
|
|
9256
9256
|
break;
|
|
9257
|
-
case
|
|
9257
|
+
case He.COMMENT:
|
|
9258
9258
|
break;
|
|
9259
|
-
case
|
|
9259
|
+
case He.LITERAL:
|
|
9260
9260
|
this._addOutput(t);
|
|
9261
9261
|
break;
|
|
9262
9262
|
}
|
|
@@ -9322,7 +9322,7 @@ const Mi = 1e-3, Vs = 0.01, Jf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9322
9322
|
}), v.tags = v.tags.filter((Ae) => !Ae.destroying), x();
|
|
9323
9323
|
}, 1900);
|
|
9324
9324
|
}, C = (ce) => {
|
|
9325
|
-
ce !==
|
|
9325
|
+
ce !== Ve.Mode.Panorama && !v.forbidden && (g.$set({ origins: [] }), v.tags.forEach((be) => {
|
|
9326
9326
|
be.app.$destroy(), be = null;
|
|
9327
9327
|
}), v.origins = [], v.tags = [], v.forbidden = !0);
|
|
9328
9328
|
}, x = () => {
|
|
@@ -9511,13 +9511,13 @@ function qf(i) {
|
|
|
9511
9511
|
let t, e, n, o = (i[0].name.length > 6 ? `${i[0].name.slice(0, 6)}...` : i[0].name) + "", s, r, a, l, c, u;
|
|
9512
9512
|
return {
|
|
9513
9513
|
c() {
|
|
9514
|
-
t = z("div"), e = z("div"), n = z("span"), s = Ie(o), r = ne(), a = z("div"), b(n, "class", "item-label-item__text svelte-1ir3cyd"), b(e, "class", "item-label-item__text-wrap svelte-1ir3cyd"), L(e, "top", `-${i[0].strokeLength + 26}px`), b(a, "class", "item-label-item__bar svelte-1ir3cyd"), L(a, "height", `${i[0].strokeLength}px`), b(t, "class", l =
|
|
9514
|
+
t = z("div"), e = z("div"), n = z("span"), s = Ie(o), r = ne(), a = z("div"), b(n, "class", "item-label-item__text svelte-1ir3cyd"), b(e, "class", "item-label-item__text-wrap svelte-1ir3cyd"), L(e, "top", `-${i[0].strokeLength + 26}px`), b(a, "class", "item-label-item__bar svelte-1ir3cyd"), L(a, "height", `${i[0].strokeLength}px`), b(t, "class", l = Qe(et("item-label-item", { visible: i[0].visible })) + " svelte-1ir3cyd"), L(t, "z-index", i[0].zIndex), L(t, "transform", i[0].transform);
|
|
9515
9515
|
},
|
|
9516
9516
|
m(h, d) {
|
|
9517
9517
|
T(h, t, d), Q(t, e), Q(e, n), Q(n, s), Q(t, r), Q(t, a), c || (u = we(n, "click", i[1]), c = !0);
|
|
9518
9518
|
},
|
|
9519
9519
|
p(h, [d]) {
|
|
9520
|
-
d & 1 && o !== (o = (h[0].name.length > 6 ? `${h[0].name.slice(0, 6)}...` : h[0].name) + "") && Le(s, o), d & 1 && L(e, "top", `-${h[0].strokeLength + 26}px`), d & 1 && L(a, "height", `${h[0].strokeLength}px`), d & 1 && l !== (l =
|
|
9520
|
+
d & 1 && o !== (o = (h[0].name.length > 6 ? `${h[0].name.slice(0, 6)}...` : h[0].name) + "") && Le(s, o), d & 1 && L(e, "top", `-${h[0].strokeLength + 26}px`), d & 1 && L(a, "height", `${h[0].strokeLength}px`), d & 1 && l !== (l = Qe(et("item-label-item", { visible: h[0].visible })) + " svelte-1ir3cyd") && b(t, "class", l), d & 1 && L(t, "z-index", h[0].zIndex), d & 1 && L(t, "transform", h[0].transform);
|
|
9521
9521
|
},
|
|
9522
9522
|
i: X,
|
|
9523
9523
|
o: X,
|
|
@@ -9798,12 +9798,12 @@ const Vb = (i, t) => {
|
|
|
9798
9798
|
i.off("modeChange", h);
|
|
9799
9799
|
}, h = (p) => {
|
|
9800
9800
|
if (!!e.enabled) {
|
|
9801
|
-
if (p !==
|
|
9801
|
+
if (p !== Ve.Mode.Floorplan) {
|
|
9802
9802
|
e.fiveModeEnabled = !1, l();
|
|
9803
9803
|
return;
|
|
9804
9804
|
}
|
|
9805
9805
|
i.once("initAnimationEnded", () => {
|
|
9806
|
-
e.fiveModeEnabled = i.currentMode ===
|
|
9806
|
+
e.fiveModeEnabled = i.currentMode === Ve.Mode.Floorplan, l();
|
|
9807
9807
|
});
|
|
9808
9808
|
}
|
|
9809
9809
|
};
|
|
@@ -10039,17 +10039,17 @@ function um(i) {
|
|
|
10039
10039
|
let d = h(i, -1), f = d(i);
|
|
10040
10040
|
return {
|
|
10041
10041
|
c() {
|
|
10042
|
-
t = z("div"), e = z("div"), f.c(), s = ne(), r = z("div"), b(e, "class", o =
|
|
10042
|
+
t = z("div"), e = z("div"), f.c(), s = ne(), r = z("div"), b(e, "class", o = Qe(et("item-label-item__text-wrap", {
|
|
10043
10043
|
"item-label-item__custom": Boolean(typeof i[0].render == "function")
|
|
10044
|
-
})) + " svelte-gduhqw"), L(e, "bottom", `${i[0].strokeLength}px`), b(r, "class", a =
|
|
10044
|
+
})) + " svelte-gduhqw"), L(e, "bottom", `${i[0].strokeLength}px`), b(r, "class", a = Qe(et("item-label-item__bar", { anchor: i[1] })) + " svelte-gduhqw"), L(r, "height", `${i[0].strokeLength}px`), b(t, "class", l = Qe(et("item-label-item", { fold: i[0].isFold })) + " svelte-gduhqw"), L(t, "z-index", i[0].zIndex), L(t, "transform", i[0].transform);
|
|
10045
10045
|
},
|
|
10046
10046
|
m(p, v) {
|
|
10047
10047
|
T(p, t, v), Q(t, e), f.m(e, null), Q(t, s), Q(t, r), c || (u = we(e, "click", i[4]), c = !0);
|
|
10048
10048
|
},
|
|
10049
10049
|
p(p, [v]) {
|
|
10050
|
-
d === (d = h(p, v)) && f ? f.p(p, v) : (f.d(1), f = d(p), f && (f.c(), f.m(e, null))), v & 1 && o !== (o =
|
|
10050
|
+
d === (d = h(p, v)) && f ? f.p(p, v) : (f.d(1), f = d(p), f && (f.c(), f.m(e, null))), v & 1 && o !== (o = Qe(et("item-label-item__text-wrap", {
|
|
10051
10051
|
"item-label-item__custom": Boolean(typeof p[0].render == "function")
|
|
10052
|
-
})) + " svelte-gduhqw") && b(e, "class", o), v & 1 && L(e, "bottom", `${p[0].strokeLength}px`), v & 2 && a !== (a =
|
|
10052
|
+
})) + " svelte-gduhqw") && b(e, "class", o), v & 1 && L(e, "bottom", `${p[0].strokeLength}px`), v & 2 && a !== (a = Qe(et("item-label-item__bar", { anchor: p[1] })) + " svelte-gduhqw") && b(r, "class", a), v & 1 && L(r, "height", `${p[0].strokeLength}px`), v & 1 && l !== (l = Qe(et("item-label-item", { fold: p[0].isFold })) + " svelte-gduhqw") && b(t, "class", l), v & 1 && L(t, "z-index", p[0].zIndex), v & 1 && L(t, "transform", p[0].transform);
|
|
10053
10053
|
},
|
|
10054
10054
|
i: X,
|
|
10055
10055
|
o: X,
|
|
@@ -10243,10 +10243,10 @@ function Am(i) {
|
|
|
10243
10243
|
let vm = 11;
|
|
10244
10244
|
function bm(i, t, e) {
|
|
10245
10245
|
const { Raycaster: n, Vector3: o } = E;
|
|
10246
|
-
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: u } = t, h = null, d = null, f = (s == null ? void 0 : s.currentMode) ===
|
|
10246
|
+
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: u } = t, h = null, d = null, f = (s == null ? void 0 : s.currentMode) === Ve.Mode.Panorama, p, v, g = [], A = !0;
|
|
10247
10247
|
const y = (R, G) => {
|
|
10248
10248
|
const F = R.camera.position.clone(), ee = new o(G.modelPosition[0], G.modelPosition[1], G.modelPosition[2]), _ = ee.distanceTo(F);
|
|
10249
|
-
return u !== void 0 && R.state.mode ===
|
|
10249
|
+
return u !== void 0 && R.state.mode === Ve.Mode.Panorama && _ > u ? !1 : Fs(R, ee.clone().sub(F).normalize(), F, _);
|
|
10250
10250
|
}, w = (R) => {
|
|
10251
10251
|
const { camera: G, model: F } = s, { x: ee, y: _, z: Y } = R.clone().project(G), de = (ee + 1) / 2, he = (2 - (_ + 1)) / 2, xe = Math.abs(Y) < 1 && [de, he].every((Be) => Be < 1 && Be >= 0);
|
|
10252
10252
|
return Boolean(xe);
|
|
@@ -10259,7 +10259,7 @@ function bm(i, t, e) {
|
|
|
10259
10259
|
return me(O({}, _), { visible: !1 });
|
|
10260
10260
|
const Y = C(R, _);
|
|
10261
10261
|
_.name.length * vm;
|
|
10262
|
-
const de = mm(_.modelPosition[1], c), he = R.currentMode ===
|
|
10262
|
+
const de = mm(_.modelPosition[1], c), he = R.currentMode === Ve.Mode.Panorama ? w(new o(_.position[0], _.position[1], _.position[2])) : !0, pe = r ? y(R, _) : !1, Pe = he && !pe;
|
|
10263
10263
|
if (!Pe)
|
|
10264
10264
|
return me(O({}, _), { visible: Pe });
|
|
10265
10265
|
g.push(Y);
|
|
@@ -10296,7 +10296,7 @@ function bm(i, t, e) {
|
|
|
10296
10296
|
let F = [];
|
|
10297
10297
|
for (let _ = 0; _ < G.length; _++) {
|
|
10298
10298
|
const { position: Y, panoIndex: de } = G[_], he = R.distanceTo(Y);
|
|
10299
|
-
(u === void 0 || he <= u || s.state.mode !==
|
|
10299
|
+
(u === void 0 || he <= u || s.state.mode !== Ve.Mode.Panorama) && F.push({ panoIndex: de, obVector: Y, distance: he });
|
|
10300
10300
|
}
|
|
10301
10301
|
F = F.sort((_, Y) => _.distance - Y.distance);
|
|
10302
10302
|
let ee;
|
|
@@ -10309,7 +10309,7 @@ function bm(i, t, e) {
|
|
|
10309
10309
|
}
|
|
10310
10310
|
return typeof ee == "number" ? G[ee] : void 0;
|
|
10311
10311
|
}, V = (R) => {
|
|
10312
|
-
if (s.state.mode ===
|
|
10312
|
+
if (s.state.mode === Ve.Mode.Panorama)
|
|
10313
10313
|
return;
|
|
10314
10314
|
const G = s.work.observers, F = new o().fromArray(R.position), ee = U(F, G);
|
|
10315
10315
|
if (ee && (R.observerIndex = ee.panoIndex), typeof R.observerIndex == "number") {
|
|
@@ -10318,7 +10318,7 @@ function bm(i, t, e) {
|
|
|
10318
10318
|
latitude: Math.acos(Y.y / Y.length()) - Math.PI / 2
|
|
10319
10319
|
};
|
|
10320
10320
|
s.setState(me(O({}, de), {
|
|
10321
|
-
mode:
|
|
10321
|
+
mode: Ve.Mode.Panorama,
|
|
10322
10322
|
panoIndex: R.observerIndex
|
|
10323
10323
|
})), s.once("initAnimationEnded", () => {
|
|
10324
10324
|
e(1, d = d.map((he) => me(O({}, he), {
|
|
@@ -10441,7 +10441,7 @@ const Cm = void 0, Hb = (i, t) => {
|
|
|
10441
10441
|
}, u = () => {
|
|
10442
10442
|
i.off("modeChange", h);
|
|
10443
10443
|
}, h = (g) => {
|
|
10444
|
-
if (g !==
|
|
10444
|
+
if (g !== Ve.Mode.Panorama) {
|
|
10445
10445
|
e.fiveModeEnabled = !1, r();
|
|
10446
10446
|
return;
|
|
10447
10447
|
}
|
|
@@ -10493,7 +10493,7 @@ class Pm extends mi {
|
|
|
10493
10493
|
this.state = O(O(O({}, this.state), e), n), this.stateChangedCallback(o, n);
|
|
10494
10494
|
}
|
|
10495
10495
|
get visible() {
|
|
10496
|
-
return this.five.state.mode ===
|
|
10496
|
+
return this.five.state.mode === Ve.Mode.Panorama;
|
|
10497
10497
|
}
|
|
10498
10498
|
appendTo(e) {
|
|
10499
10499
|
!this.enabled || (this.container = e, this.render());
|
|
@@ -10509,13 +10509,13 @@ function Im(i) {
|
|
|
10509
10509
|
let t, e, n, o, s, r, a, l;
|
|
10510
10510
|
return {
|
|
10511
10511
|
c() {
|
|
10512
|
-
t = z("div"), e = z("div"), n = z("span"), n.textContent = `${i[8]}`, o = ne(), s = z("i"), b(n, "class", "plugin-DoorLabelPlugin-txt svelte-wpy7pz"), b(s, "class", "plugin-DoorLabelPlugin-icon svelte-wpy7pz"), b(e, "class", r =
|
|
10512
|
+
t = z("div"), e = z("div"), n = z("span"), n.textContent = `${i[8]}`, o = ne(), s = z("i"), b(n, "class", "plugin-DoorLabelPlugin-txt svelte-wpy7pz"), b(s, "class", "plugin-DoorLabelPlugin-icon svelte-wpy7pz"), b(e, "class", r = Qe(et("plugin-DoorLabelPlugin-cnt", i[0].toward)) + " svelte-wpy7pz"), b(e, "style", `transform: ${i[6] || "initial"};pointer-events: ${i[5] ? "auto" : "none"};opacity: ${i[5] ? 1 : 0}`), b(e, "data-camera-toward", i[7]), b(t, "style", `left: ${i[3] || 0}%;top: ${i[4] || 0}%;opacity: ${i[5] ? 1 : 0}`), b(t, "class", "plugin-DoorLabelPlugin-item svelte-wpy7pz");
|
|
10513
10513
|
},
|
|
10514
10514
|
m(c, u) {
|
|
10515
10515
|
T(c, t, u), Q(t, e), Q(e, n), Q(e, o), Q(e, s), i[10](t), a || (l = we(e, "click", i[9]), a = !0);
|
|
10516
10516
|
},
|
|
10517
10517
|
p(c, [u]) {
|
|
10518
|
-
u & 1 && r !== (r =
|
|
10518
|
+
u & 1 && r !== (r = Qe(et("plugin-DoorLabelPlugin-cnt", c[0].toward)) + " svelte-wpy7pz") && b(e, "class", r);
|
|
10519
10519
|
},
|
|
10520
10520
|
i: X,
|
|
10521
10521
|
o: X,
|
|
@@ -11711,7 +11711,7 @@ function np(i, t) {
|
|
|
11711
11711
|
});
|
|
11712
11712
|
});
|
|
11713
11713
|
}
|
|
11714
|
-
const
|
|
11714
|
+
const Oe = (i) => i;
|
|
11715
11715
|
function Ki(i) {
|
|
11716
11716
|
if (i.length < 3)
|
|
11717
11717
|
return;
|
|
@@ -11725,7 +11725,7 @@ function rp(i) {
|
|
|
11725
11725
|
function ap(i) {
|
|
11726
11726
|
return i.stickType === "3DPoint" || i.stickType === "Plane";
|
|
11727
11727
|
}
|
|
11728
|
-
function
|
|
11728
|
+
function Fe(i) {
|
|
11729
11729
|
return i.stickType === "Model" && i.contentType === "MediaModel";
|
|
11730
11730
|
}
|
|
11731
11731
|
function $i(i) {
|
|
@@ -11738,7 +11738,7 @@ function $i(i) {
|
|
|
11738
11738
|
function $s(i) {
|
|
11739
11739
|
if (rp(i))
|
|
11740
11740
|
return at(i == null ? void 0 : i.position);
|
|
11741
|
-
if (
|
|
11741
|
+
if (Fe(i) && i.matrix) {
|
|
11742
11742
|
const t = new cn().fromArray(i.matrix), e = i.data.mediaPosition.map((n) => new $().fromArray(n).applyMatrix4(t));
|
|
11743
11743
|
return oo(e[0], e[2]);
|
|
11744
11744
|
} else
|
|
@@ -14509,7 +14509,7 @@ function w0(i) {
|
|
|
14509
14509
|
Z(t, s, r), e = !0;
|
|
14510
14510
|
},
|
|
14511
14511
|
p(s, r) {
|
|
14512
|
-
const a = r & 131 ?
|
|
14512
|
+
const a = r & 131 ? Re(n, [
|
|
14513
14513
|
r & 2 && { media: s[1][0] },
|
|
14514
14514
|
r & 128 && za(s[7]),
|
|
14515
14515
|
r & 1 && { tag: s[0] }
|
|
@@ -14578,7 +14578,7 @@ function Tr(i) {
|
|
|
14578
14578
|
},
|
|
14579
14579
|
p(a, l) {
|
|
14580
14580
|
i = a;
|
|
14581
|
-
const c = l & 1153 ?
|
|
14581
|
+
const c = l & 1153 ? Re(o, [
|
|
14582
14582
|
l & 128 && za(i[7]),
|
|
14583
14583
|
l & 1024 && { media: i[21] },
|
|
14584
14584
|
l & 1 && { tag: i[0] }
|
|
@@ -16782,7 +16782,7 @@ function GA(i) {
|
|
|
16782
16782
|
function WA(i) {
|
|
16783
16783
|
let t, e;
|
|
16784
16784
|
return t = new wA({
|
|
16785
|
-
props: { tag:
|
|
16785
|
+
props: { tag: Oe(i[1]) }
|
|
16786
16786
|
}), {
|
|
16787
16787
|
c() {
|
|
16788
16788
|
K(t.$$.fragment);
|
|
@@ -16792,7 +16792,7 @@ function WA(i) {
|
|
|
16792
16792
|
},
|
|
16793
16793
|
p(n, o) {
|
|
16794
16794
|
const s = {};
|
|
16795
|
-
o & 2 && (s.tag =
|
|
16795
|
+
o & 2 && (s.tag = Oe(n[1])), t.$set(s);
|
|
16796
16796
|
},
|
|
16797
16797
|
i(n) {
|
|
16798
16798
|
e || (P(t.$$.fragment, n), e = !0);
|
|
@@ -16808,7 +16808,7 @@ function WA(i) {
|
|
|
16808
16808
|
function NA(i) {
|
|
16809
16809
|
let t, e;
|
|
16810
16810
|
return t = new jA({
|
|
16811
|
-
props: { tag:
|
|
16811
|
+
props: { tag: Oe(i[1]) }
|
|
16812
16812
|
}), {
|
|
16813
16813
|
c() {
|
|
16814
16814
|
K(t.$$.fragment);
|
|
@@ -16818,7 +16818,7 @@ function NA(i) {
|
|
|
16818
16818
|
},
|
|
16819
16819
|
p(n, o) {
|
|
16820
16820
|
const s = {};
|
|
16821
|
-
o & 2 && (s.tag =
|
|
16821
|
+
o & 2 && (s.tag = Oe(n[1])), t.$set(s);
|
|
16822
16822
|
},
|
|
16823
16823
|
i(n) {
|
|
16824
16824
|
e || (P(t.$$.fragment, n), e = !0);
|
|
@@ -16834,7 +16834,7 @@ function NA(i) {
|
|
|
16834
16834
|
function _A(i) {
|
|
16835
16835
|
let t, e;
|
|
16836
16836
|
return t = new _0({
|
|
16837
|
-
props: { tag:
|
|
16837
|
+
props: { tag: Oe(i[1]) }
|
|
16838
16838
|
}), {
|
|
16839
16839
|
c() {
|
|
16840
16840
|
K(t.$$.fragment);
|
|
@@ -16844,7 +16844,7 @@ function _A(i) {
|
|
|
16844
16844
|
},
|
|
16845
16845
|
p(n, o) {
|
|
16846
16846
|
const s = {};
|
|
16847
|
-
o & 2 && (s.tag =
|
|
16847
|
+
o & 2 && (s.tag = Oe(n[1])), t.$set(s);
|
|
16848
16848
|
},
|
|
16849
16849
|
i(n) {
|
|
16850
16850
|
e || (P(t.$$.fragment, n), e = !0);
|
|
@@ -16860,7 +16860,7 @@ function _A(i) {
|
|
|
16860
16860
|
function XA(i) {
|
|
16861
16861
|
let t, e;
|
|
16862
16862
|
return t = new AA({
|
|
16863
|
-
props: { tag:
|
|
16863
|
+
props: { tag: Oe(i[1]) }
|
|
16864
16864
|
}), {
|
|
16865
16865
|
c() {
|
|
16866
16866
|
K(t.$$.fragment);
|
|
@@ -16870,7 +16870,7 @@ function XA(i) {
|
|
|
16870
16870
|
},
|
|
16871
16871
|
p(n, o) {
|
|
16872
16872
|
const s = {};
|
|
16873
|
-
o & 2 && (s.tag =
|
|
16873
|
+
o & 2 && (s.tag = Oe(n[1])), t.$set(s);
|
|
16874
16874
|
},
|
|
16875
16875
|
i(n) {
|
|
16876
16876
|
e || (P(t.$$.fragment, n), e = !0);
|
|
@@ -16886,7 +16886,7 @@ function XA(i) {
|
|
|
16886
16886
|
function YA(i) {
|
|
16887
16887
|
let t, e;
|
|
16888
16888
|
return t = new L0({
|
|
16889
|
-
props: { tag:
|
|
16889
|
+
props: { tag: Oe(i[1]) }
|
|
16890
16890
|
}), {
|
|
16891
16891
|
c() {
|
|
16892
16892
|
K(t.$$.fragment);
|
|
@@ -16896,7 +16896,7 @@ function YA(i) {
|
|
|
16896
16896
|
},
|
|
16897
16897
|
p(n, o) {
|
|
16898
16898
|
const s = {};
|
|
16899
|
-
o & 2 && (s.tag =
|
|
16899
|
+
o & 2 && (s.tag = Oe(n[1])), t.$set(s);
|
|
16900
16900
|
},
|
|
16901
16901
|
i(n) {
|
|
16902
16902
|
e || (P(t.$$.fragment, n), e = !0);
|
|
@@ -16912,7 +16912,7 @@ function YA(i) {
|
|
|
16912
16912
|
function UA(i) {
|
|
16913
16913
|
let t, e;
|
|
16914
16914
|
return t = new Up({
|
|
16915
|
-
props: { tag:
|
|
16915
|
+
props: { tag: Oe(i[1]) }
|
|
16916
16916
|
}), {
|
|
16917
16917
|
c() {
|
|
16918
16918
|
K(t.$$.fragment);
|
|
@@ -16922,7 +16922,7 @@ function UA(i) {
|
|
|
16922
16922
|
},
|
|
16923
16923
|
p(n, o) {
|
|
16924
16924
|
const s = {};
|
|
16925
|
-
o & 2 && (s.tag =
|
|
16925
|
+
o & 2 && (s.tag = Oe(n[1])), t.$set(s);
|
|
16926
16926
|
},
|
|
16927
16927
|
i(n) {
|
|
16928
16928
|
e || (P(t.$$.fragment, n), e = !0);
|
|
@@ -16938,7 +16938,7 @@ function UA(i) {
|
|
|
16938
16938
|
function JA(i) {
|
|
16939
16939
|
let t, e;
|
|
16940
16940
|
return t = new OA({
|
|
16941
|
-
props: { tag:
|
|
16941
|
+
props: { tag: Oe(i[1]) }
|
|
16942
16942
|
}), {
|
|
16943
16943
|
c() {
|
|
16944
16944
|
K(t.$$.fragment);
|
|
@@ -16948,7 +16948,7 @@ function JA(i) {
|
|
|
16948
16948
|
},
|
|
16949
16949
|
p(n, o) {
|
|
16950
16950
|
const s = {};
|
|
16951
|
-
o & 2 && (s.tag =
|
|
16951
|
+
o & 2 && (s.tag = Oe(n[1])), t.$set(s);
|
|
16952
16952
|
},
|
|
16953
16953
|
i(n) {
|
|
16954
16954
|
e || (P(t.$$.fragment, n), e = !0);
|
|
@@ -17000,7 +17000,7 @@ function qA(i, t, e) {
|
|
|
17000
17000
|
}
|
|
17001
17001
|
function y(C, x, I) {
|
|
17002
17002
|
var S, k;
|
|
17003
|
-
return !(!x.visible || !x.enabled || !I.visible || !((S = C.state) != null && S.visible) || ((k = C.temporaryState) == null ? void 0 : k.visible) === !1 ||
|
|
17003
|
+
return !(!x.visible || !x.enabled || !I.visible || !((S = C.state) != null && S.visible) || ((k = C.temporaryState) == null ? void 0 : k.visible) === !1 || Fe(C) && C.mediaVisible === !1);
|
|
17004
17004
|
}
|
|
17005
17005
|
const w = (C) => h.emit("click", { event: C, target: "TagContent", tag: u });
|
|
17006
17006
|
return i.$$set = (C) => {
|
|
@@ -17141,7 +17141,7 @@ function ov(i) {
|
|
|
17141
17141
|
props: {
|
|
17142
17142
|
mediaStore: i[2],
|
|
17143
17143
|
withAnimation: i[0],
|
|
17144
|
-
tag:
|
|
17144
|
+
tag: Oe(i[1]),
|
|
17145
17145
|
hooks: i[14],
|
|
17146
17146
|
state: i[3],
|
|
17147
17147
|
temporaryState: i[4]
|
|
@@ -17155,7 +17155,7 @@ function ov(i) {
|
|
|
17155
17155
|
},
|
|
17156
17156
|
p(n, o) {
|
|
17157
17157
|
const s = {};
|
|
17158
|
-
o & 4 && (s.mediaStore = n[2]), o & 1 && (s.withAnimation = n[0]), o & 2 && (s.tag =
|
|
17158
|
+
o & 4 && (s.mediaStore = n[2]), o & 1 && (s.withAnimation = n[0]), o & 2 && (s.tag = Oe(n[1])), o & 8 && (s.state = n[3]), o & 16 && (s.temporaryState = n[4]), t.$set(s);
|
|
17159
17159
|
},
|
|
17160
17160
|
i(n) {
|
|
17161
17161
|
e || (P(t.$$.fragment, n), e = !0);
|
|
@@ -17543,7 +17543,7 @@ class gv extends pv {
|
|
|
17543
17543
|
getVisibleByPanoIndex(e, n) {
|
|
17544
17544
|
var r;
|
|
17545
17545
|
const o = this.getCache({ panoIndex: n, id: e.id }), s = (r = this.five.panoIndex) != null ? r : n;
|
|
17546
|
-
if (
|
|
17546
|
+
if (Fe(e))
|
|
17547
17547
|
return !0;
|
|
17548
17548
|
if (o.visible !== void 0)
|
|
17549
17549
|
return o.visible;
|
|
@@ -17614,7 +17614,7 @@ class gv extends pv {
|
|
|
17614
17614
|
return r === null || r === s;
|
|
17615
17615
|
}
|
|
17616
17616
|
getVisible(e) {
|
|
17617
|
-
const n = this.five.getCurrentState(), o = this.getVisibleByFiveMode(e, n.mode), s =
|
|
17617
|
+
const n = this.five.getCurrentState(), o = this.getVisibleByFiveMode(e, n.mode), s = Fe(e) ? this.getVisibleByFloorIndex(e) : !0, r = n.mode === "Panorama" ? this.getVisibleByPanoIndex(e, n.panoIndex) : !0;
|
|
17618
17618
|
return o && r && s;
|
|
17619
17619
|
}
|
|
17620
17620
|
getModelMedialVisibleByPanoIndex(e) {
|
|
@@ -17801,7 +17801,7 @@ class gv extends pv {
|
|
|
17801
17801
|
}
|
|
17802
17802
|
setModelMedialVisibleByPanoIndex() {
|
|
17803
17803
|
this.tags.forEach((e) => {
|
|
17804
|
-
if (!
|
|
17804
|
+
if (!Fe(e))
|
|
17805
17805
|
return;
|
|
17806
17806
|
const n = this.getModelMedialVisibleByPanoIndex(e);
|
|
17807
17807
|
e.mediaVisible = n;
|
|
@@ -17850,9 +17850,9 @@ class gv extends pv {
|
|
|
17850
17850
|
getTagEnableByIntersect(e, n) {
|
|
17851
17851
|
var u, h, d;
|
|
17852
17852
|
const o = (u = this.getTagConfig(e).visibleConfig) != null ? u : {}, s = this.getDistance(e), [r] = this.five.model.intersectRaycaster(n), a = (() => {
|
|
17853
|
-
if (!
|
|
17853
|
+
if (!Fe(e))
|
|
17854
17854
|
return;
|
|
17855
|
-
const f = this.tags.filter(
|
|
17855
|
+
const f = this.tags.filter(Fe).map((v) => {
|
|
17856
17856
|
var g;
|
|
17857
17857
|
return (g = v.model) == null ? void 0 : g.object;
|
|
17858
17858
|
}).filter(Je);
|
|
@@ -17936,12 +17936,12 @@ class wv extends gv {
|
|
|
17936
17936
|
m(this, "handleFiveInitAnimationEnded", () => {
|
|
17937
17937
|
const e = this.five.getCurrentState().mode;
|
|
17938
17938
|
this.tags.forEach((n) => {
|
|
17939
|
-
|
|
17939
|
+
Fe(n) && e === "Panorama" && this.changeTagMode(n, "front"), n.state.visible = this.getVisible(n);
|
|
17940
17940
|
}), this.updateRenderAllTags(), this.updateRenderAllTags();
|
|
17941
17941
|
});
|
|
17942
17942
|
m(this, "handleFiveModelShownFloorChange", () => {
|
|
17943
17943
|
this.tags.forEach((e) => {
|
|
17944
|
-
!
|
|
17944
|
+
!Fe(e) || (e.state.visible = this.getVisible(e));
|
|
17945
17945
|
}), this.updateRenderAllTags();
|
|
17946
17946
|
});
|
|
17947
17947
|
m(this, "loadModel", (e) => W(this, null, function* () {
|
|
@@ -17980,13 +17980,13 @@ class wv extends gv {
|
|
|
17980
17980
|
addTag(e, n) {
|
|
17981
17981
|
return W(this, null, function* () {
|
|
17982
17982
|
const s = (Array.isArray(e) ? e : [e]).map((r) => {
|
|
17983
|
-
const a = this.getTagConfig(r)
|
|
17983
|
+
const a = this.getTagConfig(r);
|
|
17984
|
+
return me(O({}, r), {
|
|
17984
17985
|
state: O({ visible: void 0, unfolded: yv }, a.initialState),
|
|
17985
17986
|
hooks: new Ye(),
|
|
17986
17987
|
clickable: a.clickable,
|
|
17987
17988
|
mergedConfig: a
|
|
17988
17989
|
});
|
|
17989
|
-
return Ve(r) && (l.temporaryState = { visible: !1 }), l;
|
|
17990
17990
|
}).filter((r) => r.position);
|
|
17991
17991
|
return s.forEach(Av), this.tags.push(...s), lp(this.five).then(() => {
|
|
17992
17992
|
var r, a, l;
|
|
@@ -18082,7 +18082,7 @@ class wv extends gv {
|
|
|
18082
18082
|
const o = (A = (g = (v = e.mergedConfig) == null ? void 0 : v.tag3DConfig) == null ? void 0 : g.ratio) != null ? A : 216e-5, s = (y = e.tag3DContentSvelte) == null ? void 0 : y.domContainer.css3DObject;
|
|
18083
18083
|
if (!s)
|
|
18084
18084
|
return;
|
|
18085
|
-
const r =
|
|
18085
|
+
const r = Fe(e) ? e.data.mediaPosition : e.position;
|
|
18086
18086
|
n.updateWorldMatrix(!1, !1);
|
|
18087
18087
|
const a = n.matrixWorld, l = new $().fromArray(r[0]), c = new $().fromArray(r[2]), u = new $().lerpVectors(l, c, 0.5).add(new $(0, 0, 5e-4)), h = new cn().setPosition(u), d = new cn().makeScale(o, o, o), f = new cn().multiply(a).multiply(h).multiply(d);
|
|
18088
18088
|
f.decompose(s.position, s.quaternion, s.scale);
|
|
@@ -18163,7 +18163,7 @@ class wv extends gv {
|
|
|
18163
18163
|
}
|
|
18164
18164
|
handleFiveModeChange(e) {
|
|
18165
18165
|
this.tags.forEach((n) => {
|
|
18166
|
-
|
|
18166
|
+
Fe(n) && e !== "Panorama" && this.changeTagMode(n, "behind"), n.state.visible = this.getVisible(n);
|
|
18167
18167
|
}), this.updateRenderAllTags(), this.updateRenderAllTags();
|
|
18168
18168
|
}
|
|
18169
18169
|
handleFiveWantsMoveToPano() {
|
|
@@ -18249,7 +18249,7 @@ class wv extends gv {
|
|
|
18249
18249
|
updateRenderPlaneTag() {
|
|
18250
18250
|
this.sort([...this.filterPlaneTag(), ...this.filter3DPointTag(), ...this.filterModelTag()]).forEach((n) => {
|
|
18251
18251
|
var l, c, u;
|
|
18252
|
-
if (n.tag3DContentSvelte) {
|
|
18252
|
+
if (Fe(n) && ((l = n.model) == null ? void 0 : l.object) && this.updateTagCss3DObjectMatrix(n, (c = n.model) == null ? void 0 : c.object), n.tag3DContentSvelte) {
|
|
18253
18253
|
const { svelteApp: h, domContainer: d, initialNormal: f, currentNormal: p } = n.tag3DContentSvelte;
|
|
18254
18254
|
if (this.updateTagCss3DObjectVisible(n), h.$set({
|
|
18255
18255
|
tag: n,
|
|
@@ -18262,11 +18262,11 @@ class wv extends gv {
|
|
|
18262
18262
|
}
|
|
18263
18263
|
return;
|
|
18264
18264
|
}
|
|
18265
|
-
if (((
|
|
18265
|
+
if (((u = n.state) == null ? void 0 : u.visible) === !1)
|
|
18266
18266
|
return;
|
|
18267
18267
|
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = kn(this.five)), n.stickType === "3DPoint" && !n.normal)
|
|
18268
18268
|
return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
|
|
18269
|
-
const o = (() => n.stickType === "Plane" ? n.position :
|
|
18269
|
+
const o = (() => n.stickType === "Plane" ? n.position : Fe(n) ? n.data.mediaPosition : cp(
|
|
18270
18270
|
this.five.camera.position,
|
|
18271
18271
|
at(n.position),
|
|
18272
18272
|
at(n.normal)
|
|
@@ -18290,7 +18290,7 @@ class wv extends gv {
|
|
|
18290
18290
|
props: {
|
|
18291
18291
|
tag: n,
|
|
18292
18292
|
hooks: this.hooks,
|
|
18293
|
-
state:
|
|
18293
|
+
state: this.state,
|
|
18294
18294
|
mediaStore: this.mediaStore,
|
|
18295
18295
|
temporaryState: this.temporaryState
|
|
18296
18296
|
}
|
|
@@ -18298,12 +18298,12 @@ class wv extends gv {
|
|
|
18298
18298
|
domContainer: a,
|
|
18299
18299
|
initialNormal: s,
|
|
18300
18300
|
currentNormal: s
|
|
18301
|
-
}
|
|
18301
|
+
});
|
|
18302
18302
|
}), this.checkPanelTag();
|
|
18303
18303
|
}
|
|
18304
18304
|
updateRenderModelTag() {
|
|
18305
18305
|
const e = (o) => !this.enabledModelTagSet.has(o.customID);
|
|
18306
|
-
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(
|
|
18306
|
+
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(Fe).forEach((o) => {
|
|
18307
18307
|
var s;
|
|
18308
18308
|
(s = o.model) == null || s.promise.then((r) => {
|
|
18309
18309
|
r.visible = o.state.visible;
|
|
@@ -18327,7 +18327,7 @@ class wv extends gv {
|
|
|
18327
18327
|
}
|
|
18328
18328
|
addMediaModelTag(e) {
|
|
18329
18329
|
return W(this, null, function* () {
|
|
18330
|
-
const n = e.filter(
|
|
18330
|
+
const n = e.filter(Fe).map(this.loadModel);
|
|
18331
18331
|
yield Promise.all(n), this.five.getCurrentState().mode === "Panorama" && this.setModelMedialVisibleByPanoIndex(), this.updateRenderAllTags();
|
|
18332
18332
|
});
|
|
18333
18333
|
}
|