@realsee/dnalogel 2.6.3-dev.0 → 2.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +6 -6
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +1 -1
- package/dist/index.cjs.js +14 -14
- package/dist/index.js +97 -97
- package/dist/index.umd.js +13 -13
- 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 +41 -41
- 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 +16 -16
- 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/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/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 +11 -11
- 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/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/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/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/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +1 -1
- package/libs/GuideLinePlugin/Controller.js +8 -8
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Text/MText.js +68 -68
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +46 -46
- package/libs/PanoTagPlugin/Components/TagItem.js +65 -65
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +6 -6
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ import * as si from "@tweenjs/tween.js";
|
|
|
31
31
|
import fn, { Tween as Sl, Easing as zl } from "@tweenjs/tween.js";
|
|
32
32
|
import { Camera as Tl, Five as je, Subscribe as Xe } from "@realsee/five";
|
|
33
33
|
import * as x from "three";
|
|
34
|
-
import { Vector3 as
|
|
34
|
+
import { Vector3 as te, Group as Zi, Raycaster as Vt, MeshBasicMaterial as hn, CanvasTexture as Ml, AnimationMixer as Bl, Color as vn, TextureLoader as Kr, Vector2 as Ge, PlaneGeometry as jl, sRGBEncoding as Vl, Mesh as Hn, CurvePath as Ql, LineCurve3 as Rl, TubeGeometry as Ol, ShaderMaterial as Hl, SphereGeometry as Fl, DoubleSide as $r, RingGeometry as Gl, Quaternion as ea, Euler as Io, Object3D as Wl } from "three";
|
|
35
35
|
import { CSS3DRenderer as Nl, CSS3DObject as Bi } from "three/examples/jsm/renderers/CSS3DRenderer";
|
|
36
36
|
import { Line as ta } from "@realsee/five/line";
|
|
37
37
|
import { FBXLoader as na } from "three/examples/jsm/loaders/FBXLoader";
|
|
@@ -785,12 +785,12 @@ class Kt {
|
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
787
|
function oa(...i) {
|
|
788
|
-
const t = new
|
|
788
|
+
const t = new te();
|
|
789
789
|
return i.forEach((e) => {
|
|
790
790
|
t.add(e);
|
|
791
791
|
}), t.divideScalar(i.length), t;
|
|
792
792
|
}
|
|
793
|
-
const oc = ({ x: i, y: t, z: e }) => new
|
|
793
|
+
const oc = ({ x: i, y: t, z: e }) => new te(i, t, e), it = (i) => new te().fromArray(i), mn = (i) => i instanceof te ? i : Array.isArray(i) ? it(i) : oc(i);
|
|
794
794
|
class sc extends x.Mesh {
|
|
795
795
|
constructor(e, n) {
|
|
796
796
|
const o = new x.MeshBasicMaterial({ opacity: 0, color: 0, transparent: !1, side: x.DoubleSide }), s = new x.PlaneGeometry(e, n);
|
|
@@ -853,12 +853,12 @@ class ra extends Bi {
|
|
|
853
853
|
this.width = c, this.height = d, this.domWidthPx = f, this.domHeightPx = u, this.centerPosition = h;
|
|
854
854
|
else {
|
|
855
855
|
const D = s / l;
|
|
856
|
-
this.width = D * c, this.height = D * d, this.domWidthPx = D * f, this.domHeightPx = D * u, this.centerPosition = new
|
|
856
|
+
this.width = D * c, this.height = D * d, this.domWidthPx = D * f, this.domHeightPx = D * u, this.centerPosition = new te().subVectors(h, o[0]).multiplyScalar(D).add(o[0]);
|
|
857
857
|
}
|
|
858
858
|
n.classList.add(`${rc}__container`);
|
|
859
|
-
const A = new
|
|
859
|
+
const A = new te().subVectors(o[1], o[0]), g = new te().subVectors(o[3], o[0]), v = new te().crossVectors(A, g).normalize();
|
|
860
860
|
this.lookAt(v);
|
|
861
|
-
const w = this.up.clone().applyQuaternion(this.quaternion), y = g.clone(), P = new
|
|
861
|
+
const w = this.up.clone().applyQuaternion(this.quaternion), y = g.clone(), P = new te().crossVectors(w, y).normalize();
|
|
862
862
|
this.rotateOnWorldAxis(P, w.angleTo(y)), this.position.copy(h), this.addEventListener("added", () => {
|
|
863
863
|
var D;
|
|
864
864
|
this.mode === "front" && ((D = this.opacityMesh) == null || D.removeFromParent()), this.addParentVisibleListener();
|
|
@@ -1228,7 +1228,7 @@ function ca(i) {
|
|
|
1228
1228
|
if (t != null && t.parentElement)
|
|
1229
1229
|
return t.parentElement.insertBefore(yt, t), yt;
|
|
1230
1230
|
console.error(
|
|
1231
|
-
"Can not find a valid element to insert behindFiveElement. How to fix it: https://github.com/realsee-developer/dnalogel/
|
|
1231
|
+
"Can not find a valid element to insert behindFiveElement. How to fix it: https://github.com/realsee-developer/dnalogel/tree/main/plugins/src/CSS3DRenderPlugin/README.md"
|
|
1232
1232
|
);
|
|
1233
1233
|
}
|
|
1234
1234
|
function To(i) {
|
|
@@ -1298,7 +1298,7 @@ class Ac extends pn {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
1300
1300
|
const yn = (i) => new Ac(i);
|
|
1301
|
-
function bi(i, t, e = new
|
|
1301
|
+
function bi(i, t, e = new te(1, 1, 1), n = !1) {
|
|
1302
1302
|
const o = new ta(i, t);
|
|
1303
1303
|
return o.setMaterial({ dashed: n, color: e, linewidth: 1 }), o.remove(o.points), o;
|
|
1304
1304
|
}
|
|
@@ -1320,19 +1320,19 @@ const ev = (i) => {
|
|
|
1320
1320
|
const h = f / 2, A = c(d, u), g = new Zi();
|
|
1321
1321
|
g.add(
|
|
1322
1322
|
bi(
|
|
1323
|
-
new
|
|
1324
|
-
new
|
|
1325
|
-
new
|
|
1323
|
+
new te(A.x + h, A.y, A.z),
|
|
1324
|
+
new te(A.x - h, A.y, A.z),
|
|
1325
|
+
new te(1, 0, 0)
|
|
1326
1326
|
),
|
|
1327
1327
|
bi(
|
|
1328
|
-
new
|
|
1329
|
-
new
|
|
1330
|
-
new
|
|
1328
|
+
new te(A.x, A.y + h, A.z),
|
|
1329
|
+
new te(A.x, A.y - h, A.z),
|
|
1330
|
+
new te(0, 1, 0)
|
|
1331
1331
|
),
|
|
1332
1332
|
bi(
|
|
1333
|
-
new
|
|
1334
|
-
new
|
|
1335
|
-
new
|
|
1333
|
+
new te(A.x, A.y, A.z + h),
|
|
1334
|
+
new te(A.x, A.y, A.z - h),
|
|
1335
|
+
new te(0, 0, 1)
|
|
1336
1336
|
)
|
|
1337
1337
|
), i.scene.add(g), i.needsRender = !0;
|
|
1338
1338
|
const v = () => {
|
|
@@ -1561,7 +1561,7 @@ function Pt(i, t) {
|
|
|
1561
1561
|
(o || s && n.contentWindow) && s(), T(n);
|
|
1562
1562
|
};
|
|
1563
1563
|
}
|
|
1564
|
-
function
|
|
1564
|
+
function ee(i, t, e) {
|
|
1565
1565
|
i.classList[e ? "add" : "remove"](t);
|
|
1566
1566
|
}
|
|
1567
1567
|
function ba(i, t, { bubbles: e = !1, cancelable: n = !1 } = {}) {
|
|
@@ -1984,13 +1984,13 @@ function Mc(i) {
|
|
|
1984
1984
|
let t, e, n = i[0].name + "", o, s, r, a, l;
|
|
1985
1985
|
return {
|
|
1986
1986
|
c() {
|
|
1987
|
-
t = j("div"), e = j("span"), o = Ce(n), s = $(), r = j("div"), b(e, "class", "room-label-item__text svelte-1d7uzh5"), z(e, "background-image", "url(" + zc + ")"),
|
|
1987
|
+
t = j("div"), e = j("span"), o = Ce(n), s = $(), r = j("div"), b(e, "class", "room-label-item__text svelte-1d7uzh5"), z(e, "background-image", "url(" + zc + ")"), ee(e, "wide", i[0].name.length > 3), b(r, "class", "room-label-item__bar svelte-1d7uzh5"), b(t, "class", "room-label-item svelte-1d7uzh5"), z(t, "z-index", i[0].zIndex), z(t, "transform", i[0].transform), z(t, "opacity", i[0].visible ? 1 : 0);
|
|
1988
1988
|
},
|
|
1989
1989
|
m(c, d) {
|
|
1990
1990
|
M(c, t, d), Q(t, e), Q(e, o), Q(t, s), Q(t, r), a || (l = Le(e, "click", i[1]), a = !0);
|
|
1991
1991
|
},
|
|
1992
1992
|
p(c, [d]) {
|
|
1993
|
-
d & 1 && n !== (n = c[0].name + "") && ke(o, n), d & 1 &&
|
|
1993
|
+
d & 1 && n !== (n = c[0].name + "") && ke(o, n), d & 1 && ee(e, "wide", c[0].name.length > 3), d & 1 && z(t, "z-index", c[0].zIndex), d & 1 && z(t, "transform", c[0].transform), d & 1 && z(t, "opacity", c[0].visible ? 1 : 0);
|
|
1994
1994
|
},
|
|
1995
1995
|
i: J,
|
|
1996
1996
|
o: J,
|
|
@@ -2106,13 +2106,13 @@ function Oc(i, t, e) {
|
|
|
2106
2106
|
function c(g) {
|
|
2107
2107
|
if (!(l === null || g.floorIndex === l))
|
|
2108
2108
|
return !1;
|
|
2109
|
-
const w = new Vt(), y = o.camera.position.clone(), P = new
|
|
2109
|
+
const w = new Vt(), y = o.camera.position.clone(), P = new te(g.position.x, g.position.y, g.position.z), I = P.distanceTo(y);
|
|
2110
2110
|
w.set(y.clone(), P.clone().sub(y).normalize());
|
|
2111
2111
|
const [C] = o.model.intersectRaycaster(w);
|
|
2112
2112
|
return !(C && C.distance + 1 < I);
|
|
2113
2113
|
}
|
|
2114
2114
|
function d(g, v) {
|
|
2115
|
-
const y = new
|
|
2115
|
+
const y = new te(g.position.x, g.position.y, g.position.z).clone().project(o.camera), P = Math.ceil((y.x + 1) / 2 * v.x), I = Math.ceil((-y.y + 1) / 2 * v.y);
|
|
2116
2116
|
return `translate(${P}px, ${I}px)`;
|
|
2117
2117
|
}
|
|
2118
2118
|
function f(g) {
|
|
@@ -2121,7 +2121,7 @@ function Oc(i, t, e) {
|
|
|
2121
2121
|
const L = y.get(C.id);
|
|
2122
2122
|
if (L)
|
|
2123
2123
|
return L;
|
|
2124
|
-
const { x: D, y: B, z: G } = C.position, H = new
|
|
2124
|
+
const { x: D, y: B, z: G } = C.position, H = new te(D, B, G).clone().distanceTo(o.camera.position);
|
|
2125
2125
|
return y.set(C.id, H), H;
|
|
2126
2126
|
}
|
|
2127
2127
|
return s.map((C) => {
|
|
@@ -2994,7 +2994,7 @@ function _o(i, t) {
|
|
|
2994
2994
|
key: i,
|
|
2995
2995
|
first: null,
|
|
2996
2996
|
c() {
|
|
2997
|
-
e = j("div"), n = j("div"), s = Ce(o), r = $(), b(n, "class", "floorplan-plugin__rule-text svelte-djlmk4"),
|
|
2997
|
+
e = j("div"), n = j("div"), s = Ce(o), r = $(), b(n, "class", "floorplan-plugin__rule-text svelte-djlmk4"), ee(n, "is-row", t[2]), b(e, "class", "floorplan-plugin__rule-text-item svelte-djlmk4"), z(e, "left", t[11].left * 100 + "%"), z(e, "bottom", t[11].bottom * 100 + "%"), this.first = e;
|
|
2998
2998
|
},
|
|
2999
2999
|
m(a, l) {
|
|
3000
3000
|
M(a, e, l), Q(e, n), Q(n, s), Q(e, r);
|
|
@@ -3025,7 +3025,7 @@ function zd(i) {
|
|
|
3025
3025
|
s = $(), r = j("div");
|
|
3026
3026
|
for (let p = 0; p < a.length; p += 1)
|
|
3027
3027
|
a[p].c();
|
|
3028
|
-
b(e, "class", "floorplan-plugin__rule-line svelte-djlmk4"), b(o, "class", "floorplan-plugin__rule-scale-wrapper svelte-djlmk4"),
|
|
3028
|
+
b(e, "class", "floorplan-plugin__rule-line svelte-djlmk4"), b(o, "class", "floorplan-plugin__rule-scale-wrapper svelte-djlmk4"), ee(o, "is-row", i[2]), b(r, "class", "floorplan-plugin__rule-text-wrapper svelte-djlmk4"), b(t, "class", c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + i[0] + " svelte-djlmk4"), ee(t, "is-row", i[2]), z(t, "width", i[2] ? "100%" : 1 / 16 + "rem"), z(t, "height", i[2] ? 1 / 16 + "rem" : "100%");
|
|
3029
3029
|
},
|
|
3030
3030
|
m(p, A) {
|
|
3031
3031
|
M(p, t, A), Q(t, e), Q(t, n), Q(t, o);
|
|
@@ -3047,7 +3047,7 @@ function zd(i) {
|
|
|
3047
3047
|
f[g].d(1);
|
|
3048
3048
|
f.length = d.length;
|
|
3049
3049
|
}
|
|
3050
|
-
A & 22 && (u = p[4], a = Ke(a, A, h, 1, p, u, l, r, io, _o, null, Go)), A & 1 && c !== (c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + p[0] + " svelte-djlmk4") && b(t, "class", c), A & 5 &&
|
|
3050
|
+
A & 22 && (u = p[4], a = Ke(a, A, h, 1, p, u, l, r, io, _o, null, Go)), A & 1 && c !== (c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + p[0] + " svelte-djlmk4") && b(t, "class", c), A & 5 && ee(t, "is-row", p[2]);
|
|
3051
3051
|
},
|
|
3052
3052
|
i: J,
|
|
3053
3053
|
o: J,
|
|
@@ -5906,7 +5906,7 @@ function qu(i, t) {
|
|
|
5906
5906
|
const l = a.getContext("2d");
|
|
5907
5907
|
return l.fillStyle = o, l.fillRect(0, 0, e, e), l.font = `${n}px "\u5FAE\u8F6F\u96C5\u9ED1"`, l.textAlign = r, l.fillStyle = s, l.fillText(i, e / 2, e * 0.7), new Ml(a);
|
|
5908
5908
|
}
|
|
5909
|
-
const Ku = ({ x: i, y: t, z: e }) => new
|
|
5909
|
+
const Ku = ({ x: i, y: t, z: e }) => new te(i, t, e), uv = (i, t) => {
|
|
5910
5910
|
var A, g, v;
|
|
5911
5911
|
const e = {}, n = (A = t.animationEnabled) != null ? A : !0, o = (g = t.position) != null ? g : void 0, s = (v = t.rad) != null ? v : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (w) => X(void 0, null, function* () {
|
|
5912
5912
|
var G, H, _, V, E, R, O, W;
|
|
@@ -6231,8 +6231,8 @@ const af = `<style type="text/css">
|
|
|
6231
6231
|
return e;
|
|
6232
6232
|
const s = i.observers;
|
|
6233
6233
|
o.observers.forEach((r, a) => {
|
|
6234
|
-
const { standingPosition: l } = r, c = new
|
|
6235
|
-
n.set(c, new
|
|
6234
|
+
const { standingPosition: l } = r, c = new te(l.x, l.y, l.z);
|
|
6235
|
+
n.set(c, new te(0, 1, 0));
|
|
6236
6236
|
const [d] = t.model.intersectRaycaster(n), f = d ? d.point.y : 2.7, u = s[a];
|
|
6237
6237
|
if (!u)
|
|
6238
6238
|
return e;
|
|
@@ -6297,9 +6297,9 @@ const af = `<style type="text/css">
|
|
|
6297
6297
|
}, ue = lf({ x: L, z: D }, de);
|
|
6298
6298
|
H ? ue < _ && Math.abs(de.y - H) < 0.3 && (_ = ue, V = de) : ue < _ && (_ = ue, V = de);
|
|
6299
6299
|
});
|
|
6300
|
-
const E = new
|
|
6300
|
+
const E = new te(L, V.y, D);
|
|
6301
6301
|
Object.assign(E, { observers: B });
|
|
6302
|
-
const R = v[G] ? v[G].roof : null, O = R ? new
|
|
6302
|
+
const R = v[G] ? v[G].roof : null, O = R ? new te(L, R, D) : null;
|
|
6303
6303
|
return O && Object.assign(O, { observers: B }), { origin: E, vertical: O };
|
|
6304
6304
|
});
|
|
6305
6305
|
r[y] = {
|
|
@@ -6370,7 +6370,7 @@ const af = `<style type="text/css">
|
|
|
6370
6370
|
H.style.display = "none";
|
|
6371
6371
|
return;
|
|
6372
6372
|
}
|
|
6373
|
-
const P = v.position, I = v.getWorldDirection(new
|
|
6373
|
+
const P = v.position, I = v.getWorldDirection(new te()), C = A.clientWidth, L = A.clientHeight;
|
|
6374
6374
|
if (w !== je.Mode.Panorama) {
|
|
6375
6375
|
for (const G in r)
|
|
6376
6376
|
for (const { $element: H } of r[G].rules)
|
|
@@ -6413,7 +6413,7 @@ const af = `<style type="text/css">
|
|
|
6413
6413
|
continue;
|
|
6414
6414
|
}
|
|
6415
6415
|
const Y = V.distanceTo(E);
|
|
6416
|
-
if (E.clone().sub(E.clone().sub(V).divide(new
|
|
6416
|
+
if (E.clone().sub(E.clone().sub(V).divide(new te(2, 2, 2))).distanceTo(P) / Y > 8) {
|
|
6417
6417
|
_.style.display = "none";
|
|
6418
6418
|
continue;
|
|
6419
6419
|
}
|
|
@@ -6677,7 +6677,7 @@ function Af(i, t, e) {
|
|
|
6677
6677
|
distance: H
|
|
6678
6678
|
};
|
|
6679
6679
|
}, f = (y, P, I) => {
|
|
6680
|
-
const C = n.camera.position, L = n.camera.getWorldDirection(new
|
|
6680
|
+
const C = n.camera.position, L = n.camera.getWorldDirection(new te()), D = y.clone().sub(C).normalize().angleTo(L), B = P.clone().sub(C).normalize().angleTo(L), G = y.distanceTo(P), _ = P.clone().sub(P.clone().sub(y).divide(new te(2, 2, 2))).distanceTo(C), { startLeft: V, startTop: E, endLeft: R, endTop: O, distance: W } = d(y, P), N = -((Math.PI / 2 - Math.atan2(R - V, E - O)) / Math.PI) * 180;
|
|
6681
6681
|
let U = !0;
|
|
6682
6682
|
I || (U = !1), !Je(y, I) && !Je(P, I) && (U = !1), G < 0.3 && (U = !1), D > Math.PI / 2 && (U = !1), B > Math.PI / 2 && (U = !1), _ / G > 8 && (U = !1);
|
|
6683
6683
|
let de = 50, ue = W;
|
|
@@ -6704,14 +6704,14 @@ function Af(i, t, e) {
|
|
|
6704
6704
|
return e(0, r = []);
|
|
6705
6705
|
if (n.currentMode !== je.Mode.Panorama)
|
|
6706
6706
|
return e(0, r = []);
|
|
6707
|
-
const I = n.camera.position, C = n.camera.getWorldDirection(new
|
|
6707
|
+
const I = n.camera.position, C = n.camera.getWorldDirection(new te()), L = P.lines.map((H) => new te(H.start[0], -H.start[1], -H.start[2])), D = P.lines.map((H) => new te(H.end[0], -H.end[1], -H.end[2])), [B] = L.concat(D).sort((H, _) => {
|
|
6708
6708
|
const V = H.clone().setY(0).sub(I).normalize().angleTo(C.clone().setY(0)), E = _.clone().setY(0).sub(I).normalize().angleTo(C.clone().setY(0));
|
|
6709
6709
|
return V - E;
|
|
6710
6710
|
}), G = P.lines.map((H) => {
|
|
6711
6711
|
var ue, me;
|
|
6712
|
-
const _ = H.start, V = H.end, { startLeft: E, startTop: R, distance: O, deg: W, visible: Y, labelOffset: N, ruleLength: U } = f(new
|
|
6712
|
+
const _ = H.start, V = H.end, { startLeft: E, startTop: R, distance: O, deg: W, visible: Y, labelOffset: N, ruleLength: U } = f(new te(_[0], -_[1], -_[2]), new te(V[0], -V[1], -V[2]), B), de = [];
|
|
6713
6713
|
return H.children && ((ue = H.children) == null ? void 0 : ue.length) > 0 && ((me = H.children) == null || me.forEach((Ee) => {
|
|
6714
|
-
const ze = Ee.start, Re = Ee.end, { distance: ae } = d(new
|
|
6714
|
+
const ze = Ee.start, Re = Ee.end, { distance: ae } = d(new te(ze[0], -ze[1], -ze[2]), new te(Re[0], -Re[1], -Re[2]));
|
|
6715
6715
|
de.push({ width: ae, state: Ee.state });
|
|
6716
6716
|
})), {
|
|
6717
6717
|
width: O,
|
|
@@ -7173,7 +7173,7 @@ class kf {
|
|
|
7173
7173
|
return null;
|
|
7174
7174
|
let e = 1 / 0, n;
|
|
7175
7175
|
return this.edges.forEach((o) => {
|
|
7176
|
-
const s = o.closestPointToPoint(t.point, !0, new
|
|
7176
|
+
const s = o.closestPointToPoint(t.point, !0, new te()), r = s.distanceTo(t.point);
|
|
7177
7177
|
r < e && (n = s, e = r);
|
|
7178
7178
|
}), e > 0.1 ? null : n || null;
|
|
7179
7179
|
}
|
|
@@ -7189,7 +7189,7 @@ class Ze {
|
|
|
7189
7189
|
m(this, "lines");
|
|
7190
7190
|
m(this, "position");
|
|
7191
7191
|
m(this, "type", "point");
|
|
7192
|
-
this.id = He(), this.lines = [], this.position = new
|
|
7192
|
+
this.id = He(), this.lines = [], this.position = new te(), t instanceof te ? this.position.copy(t) : this.position.fromArray(t);
|
|
7193
7193
|
}
|
|
7194
7194
|
toJson() {
|
|
7195
7195
|
return { id: this.id, position: this.position.toArray() };
|
|
@@ -7341,7 +7341,7 @@ function Hf(i) {
|
|
|
7341
7341
|
}
|
|
7342
7342
|
function Ff(i) {
|
|
7343
7343
|
let t = !0;
|
|
7344
|
-
const { line: e } = i, n = e.id, o = Of(), s = Hf(e), r = i.userDistanceItem, a = new
|
|
7344
|
+
const { line: e } = i, n = e.id, o = Of(), s = Hf(e), r = i.userDistanceItem, a = new te(0, 0, 0), l = {
|
|
7345
7345
|
lineID: n,
|
|
7346
7346
|
ndcPosition: a,
|
|
7347
7347
|
update: u,
|
|
@@ -8038,7 +8038,7 @@ function Wa(i) {
|
|
|
8038
8038
|
transparent: !0,
|
|
8039
8039
|
depthTest: !1
|
|
8040
8040
|
}), c = new Hn(s, l), d = new Ql();
|
|
8041
|
-
d.add(new Rl(new
|
|
8041
|
+
d.add(new Rl(new te(0, 0, 0), new te(0, 0, 0.1)));
|
|
8042
8042
|
const f = new Ol(d, 8, 3e-3), u = new Hl({
|
|
8043
8043
|
vertexShader: eh,
|
|
8044
8044
|
fragmentShader: th,
|
|
@@ -8946,13 +8946,13 @@ function xs(i) {
|
|
|
8946
8946
|
}
|
|
8947
8947
|
return {
|
|
8948
8948
|
c() {
|
|
8949
|
-
t = j("i"), b(t, "class", "svelte-19zi46m"),
|
|
8949
|
+
t = j("i"), b(t, "class", "svelte-19zi46m"), ee(t, "PanoSpatialTagPlugin__tag-origin", !0), ee(t, "PanoSpatialTagPlugin__tag-origin-destroy", i[3].destroying), z(t, "top", e), z(t, "left", n), z(t, "visibility", i[3].front ? "visible" : "hidden");
|
|
8950
8950
|
},
|
|
8951
8951
|
m(a, l) {
|
|
8952
8952
|
M(a, t, l), o || (s = Le(t, "click", r), o = !0);
|
|
8953
8953
|
},
|
|
8954
8954
|
p(a, l) {
|
|
8955
|
-
i = a, l & 1 &&
|
|
8955
|
+
i = a, l & 1 && ee(t, "PanoSpatialTagPlugin__tag-origin-destroy", i[3].destroying), l & 1 && e !== (e = `${i[3].top}%`) && z(t, "top", e), l & 1 && n !== (n = `${i[3].left}%`) && z(t, "left", n), l & 1 && z(t, "visibility", i[3].front ? "visible" : "hidden");
|
|
8956
8956
|
},
|
|
8957
8957
|
d(a) {
|
|
8958
8958
|
a && T(t), o = !1, s();
|
|
@@ -9015,13 +9015,13 @@ function Ih(i) {
|
|
|
9015
9015
|
let t, e, n, o, s, r, a, l, c, d, f, u, h, p, A;
|
|
9016
9016
|
return {
|
|
9017
9017
|
c() {
|
|
9018
|
-
t = j("div"), e = j("div"), n = $(), o = j("div"), s = j("i"), r = $(), a = j("i"), l = $(), c = j("i"), d = $(), f = j("div"), u = j("div"), b(e, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"), z(e, "transform", "translate(" + i[7] / 2 * i[3] * 3 + "px, " + i[8] / 2 * (i[1] ? -1 : 1) * i[3] * 3 + "px) scale(" + 1 / i[3] + ")"), b(s, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1i5h9zh"), z(s, "width", i[4] + "rem"), b(a, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1i5h9zh"), b(c, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1i5h9zh"), b(o, "class", "PanoSpatialTagPlugin__tag-line svelte-1i5h9zh"), b(u, "class", "PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"), b(f, "class", "PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"), z(f, "transform", "scale(" + i[3] * 3 + ")"), b(t, "id", h = "PanoSpatialTagPlugin__" + i[0]), z(t, "height", 20 * i[5] + "rem"), b(t, "class", "svelte-1i5h9zh"),
|
|
9018
|
+
t = j("div"), e = j("div"), n = $(), o = j("div"), s = j("i"), r = $(), a = j("i"), l = $(), c = j("i"), d = $(), f = j("div"), u = j("div"), b(e, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"), z(e, "transform", "translate(" + i[7] / 2 * i[3] * 3 + "px, " + i[8] / 2 * (i[1] ? -1 : 1) * i[3] * 3 + "px) scale(" + 1 / i[3] + ")"), b(s, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1i5h9zh"), z(s, "width", i[4] + "rem"), b(a, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1i5h9zh"), b(c, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1i5h9zh"), b(o, "class", "PanoSpatialTagPlugin__tag-line svelte-1i5h9zh"), b(u, "class", "PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"), b(f, "class", "PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"), z(f, "transform", "scale(" + i[3] * 3 + ")"), b(t, "id", h = "PanoSpatialTagPlugin__" + i[0]), z(t, "height", 20 * i[5] + "rem"), b(t, "class", "svelte-1i5h9zh"), ee(t, "PanoSpatialTagPlugin__tag-x", !0), ee(t, "PanoSpatialTagPlugin__tag-upside-down", i[1]), ee(t, "PanoSpatialTagPlugin__tag-show", i[10]), ee(t, "PanoSpatialTagPlugin__tag-hide", i[10] === !1 || i[6]);
|
|
9019
9019
|
},
|
|
9020
9020
|
m(g, v) {
|
|
9021
9021
|
M(g, t, v), Q(t, e), Q(t, n), Q(t, o), Q(o, s), Q(o, r), Q(o, a), Q(o, l), Q(o, c), Q(t, d), Q(t, f), Q(f, u), u.innerHTML = i[2], i[16](u), p || (A = Le(u, "click", i[11]), p = !0);
|
|
9022
9022
|
},
|
|
9023
9023
|
p(g, [v]) {
|
|
9024
|
-
v & 394 && z(e, "transform", "translate(" + g[7] / 2 * g[3] * 3 + "px, " + g[8] / 2 * (g[1] ? -1 : 1) * g[3] * 3 + "px) scale(" + 1 / g[3] + ")"), v & 16 && z(s, "width", g[4] + "rem"), v & 4 && (u.innerHTML = g[2]), v & 8 && z(f, "transform", "scale(" + g[3] * 3 + ")"), v & 1 && h !== (h = "PanoSpatialTagPlugin__" + g[0]) && b(t, "id", h), v & 32 && z(t, "height", 20 * g[5] + "rem"), v & 2 &&
|
|
9024
|
+
v & 394 && z(e, "transform", "translate(" + g[7] / 2 * g[3] * 3 + "px, " + g[8] / 2 * (g[1] ? -1 : 1) * g[3] * 3 + "px) scale(" + 1 / g[3] + ")"), v & 16 && z(s, "width", g[4] + "rem"), v & 4 && (u.innerHTML = g[2]), v & 8 && z(f, "transform", "scale(" + g[3] * 3 + ")"), v & 1 && h !== (h = "PanoSpatialTagPlugin__" + g[0]) && b(t, "id", h), v & 32 && z(t, "height", 20 * g[5] + "rem"), v & 2 && ee(t, "PanoSpatialTagPlugin__tag-upside-down", g[1]), v & 1024 && ee(t, "PanoSpatialTagPlugin__tag-show", g[10]), v & 1088 && ee(t, "PanoSpatialTagPlugin__tag-hide", g[10] === !1 || g[6]);
|
|
9025
9025
|
},
|
|
9026
9026
|
i: J,
|
|
9027
9027
|
o: J,
|
|
@@ -10569,7 +10569,7 @@ function fm(i, t) {
|
|
|
10569
10569
|
return !(e > o && n > s);
|
|
10570
10570
|
}
|
|
10571
10571
|
function hm(i) {
|
|
10572
|
-
const { camera: t } = i, e = t.getWorldDirection(new
|
|
10572
|
+
const { camera: t } = i, e = t.getWorldDirection(new te());
|
|
10573
10573
|
let n = Math.atan(e.z / e.x) * 180 / Math.PI, o = "";
|
|
10574
10574
|
return e.x < 0 && (n += 180), n < 0 && (n += 360), n > 315 || n <= 45 ? o = "right" : n > 45 && n <= 135 ? o = "back" : n > 135 && n <= 225 ? o = "left" : n > 225 && n <= 315 && (o = "forward"), o;
|
|
10575
10575
|
}
|
|
@@ -10652,10 +10652,10 @@ class Am extends am {
|
|
|
10652
10652
|
return;
|
|
10653
10653
|
if (this.five.currentMode !== "Panorama")
|
|
10654
10654
|
return this.hideAllLabels();
|
|
10655
|
-
const o = this.five.getElement(), s = o.clientWidth, r = o.clientHeight, a = n.getWorldDirection(new
|
|
10655
|
+
const o = this.five.getElement(), s = o.clientWidth, r = o.clientHeight, a = n.getWorldDirection(new te()), l = [], c = [...this.labelItems];
|
|
10656
10656
|
if (c.forEach((C, L) => {
|
|
10657
10657
|
if (C.visible) {
|
|
10658
|
-
const D = n.position.distanceTo(C.position), B = C.position.clone().add(new
|
|
10658
|
+
const D = n.position.distanceTo(C.position), B = C.position.clone().add(new te(0, this.OffsetHeight, 0)), H = B.clone().sub(n.position).normalize().angleTo(a), _ = B.clone().project(n), V = (_.x + 1) / 2.2 * 100, E = (-_.y + 1) / 2.2 * 100, R = V >= 0 && V <= 100 && E >= 0 && E <= 100 && D > this.MinVisibledistance && D <= this.MaxVisibledistance;
|
|
10659
10659
|
C.left = V, C.top = E, C.inSight = R && H < Math.PI / 2, C.cameraToward = hm(this.five), R ? l.push({ disFromCameraToLabel: D, left: V, top: E, index: L }) : C.transform = "translate(-50%, -50%)";
|
|
10660
10660
|
} else
|
|
10661
10661
|
C.inSight = !1;
|
|
@@ -10695,7 +10695,7 @@ class Am extends am {
|
|
|
10695
10695
|
if (r !== null && s !== null) {
|
|
10696
10696
|
const l = {};
|
|
10697
10697
|
if (a > 0) {
|
|
10698
|
-
const d = new
|
|
10698
|
+
const d = new te(0, 0, -1), f = r.clone(), u = new ea();
|
|
10699
10699
|
u.setFromUnitVectors(d, f);
|
|
10700
10700
|
const h = new Io();
|
|
10701
10701
|
h.setFromQuaternion(u, "YXZ"), l.longitude = h.y;
|
|
@@ -10721,8 +10721,8 @@ class Am extends am {
|
|
|
10721
10721
|
}, w = mm(f, v);
|
|
10722
10722
|
w < u && (u = w, h = v);
|
|
10723
10723
|
}), h && (f.y = h.y + 0.01);
|
|
10724
|
-
const p = new
|
|
10725
|
-
p.add(new
|
|
10724
|
+
const p = new te(f.x, f.y, f.z);
|
|
10725
|
+
p.add(new te(-0.2, 1.8, 0).applyEuler(new Io(0, d.rad, 0))), this.doorLabels.push({
|
|
10726
10726
|
roomName: r.name,
|
|
10727
10727
|
name: d.name,
|
|
10728
10728
|
position: p,
|
|
@@ -10806,7 +10806,7 @@ function Cm(i, t) {
|
|
|
10806
10806
|
if (G.equals(d[L]))
|
|
10807
10807
|
L += 1;
|
|
10808
10808
|
else {
|
|
10809
|
-
const H = new
|
|
10809
|
+
const H = new te().subVectors(d[L + 1], d[L]), _ = new te().subVectors(G, d[L]);
|
|
10810
10810
|
H.angleTo(_) < Math.PI / 2 && (L += 1);
|
|
10811
10811
|
}
|
|
10812
10812
|
}
|
|
@@ -10827,9 +10827,9 @@ function Ws(i, t, e) {
|
|
|
10827
10827
|
});
|
|
10828
10828
|
let A = 0;
|
|
10829
10829
|
for (let v = 0; v < i.length; v++) {
|
|
10830
|
-
const [w, y] = r[v][0], P = i[v], { x: I, y: C, z: L } = P, D = new
|
|
10830
|
+
const [w, y] = r[v][0], P = i[v], { x: I, y: C, z: L } = P, D = new te(I + w * n, C + 0.05, L + y * n);
|
|
10831
10831
|
h[v * 6 + 0] = D.x, h[v * 6 + 1] = D.y, h[v * 6 + 2] = D.z;
|
|
10832
|
-
const B = new
|
|
10832
|
+
const B = new te(I - w * n, C + 0.05, L - y * n);
|
|
10833
10833
|
h[v * 6 + 3] = B.x, h[v * 6 + 4] = B.y, h[v * 6 + 5] = B.z, A += v > 0 ? i[v - 1].clone().sub(i[v]).length() : 0;
|
|
10834
10834
|
const G = A / t / o;
|
|
10835
10835
|
p[v * 4 + 0] = 0, p[v * 4 + 1] = G, p[v * 4 + 2] = 1, p[v * 4 + 3] = G, v !== i.length - 1 && (u[v * 6 + 0] = v * 2 + 0, u[v * 6 + 1] = v * 2 + 2, u[v * 6 + 2] = v * 2 + 1, u[v * 6 + 3] = v * 2 + 2, u[v * 6 + 4] = v * 2 + 3, u[v * 6 + 5] = v * 2 + 1);
|
|
@@ -10918,7 +10918,7 @@ class Ka extends Ht {
|
|
|
10918
10918
|
this.linesGroup && (e ? (this.linesGroup.visible = !0, this.actionWhenEnabled(() => this.hooks.emit("show", { userAction: n }))) : (this.linesGroup.visible = !1, this.actionWhenEnabled(() => this.hooks.emit("hide", { userAction: n }))));
|
|
10919
10919
|
}
|
|
10920
10920
|
handleDispose() {
|
|
10921
|
-
this.linesGroup && this.five.scene.
|
|
10921
|
+
this.linesGroup && this.five.scene.remove(this.linesGroup), this.hooks.emit("dispose");
|
|
10922
10922
|
}
|
|
10923
10923
|
getLinesGroup(e, n) {
|
|
10924
10924
|
const o = e.map((r) => this.getLine(r, n)).filter(_e), s = new x.Group();
|
|
@@ -11460,7 +11460,7 @@ function Ys(i) {
|
|
|
11460
11460
|
let t, e, n, o, s, r, a, l = i[3] && Us(i);
|
|
11461
11461
|
return {
|
|
11462
11462
|
c() {
|
|
11463
|
-
t = j("div"), e = Ae("svg"), n = Ae("defs"), o = Ae("linearGradient"), s = Ae("stop"), r = Ae("stop"), l && l.c(), b(s, "offset", "25%"), b(s, "stop-color", i[5]), b(s, "stop-opacity", "1"), b(r, "offset", "100%"), b(r, "stop-color", i[5]), b(r, "stop-opacity", "0.5"), b(o, "x1", 0.5), b(o, "y1", 0.5), b(o, "x2", i[8]), b(o, "y2", 0.5), b(o, "id", i[10]), b(o, "gradientUnits", "userSpaceOnUse"), b(e, "class", "straight-line svelte-xuejcm"), b(e, "viewBox", a = "0 0 " + i[8] + " " + i[7]), b(e, "preserveAspectRatio", "none"), b(t, "class", "line svelte-xuejcm"),
|
|
11463
|
+
t = j("div"), e = Ae("svg"), n = Ae("defs"), o = Ae("linearGradient"), s = Ae("stop"), r = Ae("stop"), l && l.c(), b(s, "offset", "25%"), b(s, "stop-color", i[5]), b(s, "stop-opacity", "1"), b(r, "offset", "100%"), b(r, "stop-color", i[5]), b(r, "stop-opacity", "0.5"), b(o, "x1", 0.5), b(o, "y1", 0.5), b(o, "x2", i[8]), b(o, "y2", 0.5), b(o, "id", i[10]), b(o, "gradientUnits", "userSpaceOnUse"), b(e, "class", "straight-line svelte-xuejcm"), b(e, "viewBox", a = "0 0 " + i[8] + " " + i[7]), b(e, "preserveAspectRatio", "none"), b(t, "class", "line svelte-xuejcm"), ee(t, "vertical", i[9]), ee(t, "horizontal", !i[9]), z(t, "width", i[8] + "px"), z(t, "height", i[7] + "px");
|
|
11464
11464
|
},
|
|
11465
11465
|
m(c, d) {
|
|
11466
11466
|
M(c, t, d), Q(t, e), Q(e, n), Q(n, o), Q(o, s), Q(o, r), l && l.m(e, null);
|
|
@@ -11468,7 +11468,7 @@ function Ys(i) {
|
|
|
11468
11468
|
p(c, d) {
|
|
11469
11469
|
d & 32 && b(s, "stop-color", c[5]), d & 32 && b(r, "stop-color", c[5]), d & 256 && b(o, "x2", c[8]), c[3] ? l ? (l.p(c, d), d & 8 && k(l, 1)) : (l = Us(c), l.c(), k(l, 1), l.m(e, null)) : l && (se(), S(l, 1, 1, () => {
|
|
11470
11470
|
l = null;
|
|
11471
|
-
}), re()), d & 384 && a !== (a = "0 0 " + c[8] + " " + c[7]) && b(e, "viewBox", a), d & 512 &&
|
|
11471
|
+
}), re()), d & 384 && a !== (a = "0 0 " + c[8] + " " + c[7]) && b(e, "viewBox", a), d & 512 && ee(t, "vertical", c[9]), d & 512 && ee(t, "horizontal", !c[9]), d & 256 && z(t, "width", c[8] + "px"), d & 128 && z(t, "height", c[7] + "px");
|
|
11472
11472
|
},
|
|
11473
11473
|
d(c) {
|
|
11474
11474
|
c && T(t), l && l.d();
|
|
@@ -12332,7 +12332,7 @@ function be(i) {
|
|
|
12332
12332
|
return i / 16 + "rem";
|
|
12333
12333
|
}
|
|
12334
12334
|
function hp(i) {
|
|
12335
|
-
le(i, "svelte-
|
|
12335
|
+
le(i, "svelte-i9wdo4", ".text.svelte-i9wdo4{display:-webkit-box;display:-ms-box;display:-moz-box;position:relative;width:-moz-max-content;width:max-content;max-width:100%;-webkit-box-orient:vertical;-ms-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}@keyframes svelte-i9wdo4-blink{0%{opacity:1}50%{opacity:0}100%{opacity:1}}.caret.svelte-i9wdo4{position:absolute;width:0.0625rem;height:100%;background-color:#fff;animation:svelte-i9wdo4-blink 1.2s infinite}.placeholder.svelte-i9wdo4{opacity:0.5}");
|
|
12336
12336
|
}
|
|
12337
12337
|
function mp(i) {
|
|
12338
12338
|
let t;
|
|
@@ -12409,7 +12409,7 @@ function or(i) {
|
|
|
12409
12409
|
let t;
|
|
12410
12410
|
return {
|
|
12411
12411
|
c() {
|
|
12412
|
-
t = j("div"), b(t, "class", "caret svelte-
|
|
12412
|
+
t = j("div"), b(t, "class", "caret svelte-i9wdo4");
|
|
12413
12413
|
},
|
|
12414
12414
|
m(e, n) {
|
|
12415
12415
|
M(e, t, n);
|
|
@@ -12423,7 +12423,7 @@ function sr(i) {
|
|
|
12423
12423
|
let t, e = i[3].placeholder + "", n;
|
|
12424
12424
|
return {
|
|
12425
12425
|
c() {
|
|
12426
|
-
t = j("span"), n = Ce(e), b(t, "class", "placeholder svelte-
|
|
12426
|
+
t = j("span"), n = Ce(e), b(t, "class", "placeholder svelte-i9wdo4");
|
|
12427
12427
|
},
|
|
12428
12428
|
m(o, s) {
|
|
12429
12429
|
M(o, t, s), Q(t, n);
|
|
@@ -12444,7 +12444,7 @@ function Ap(i) {
|
|
|
12444
12444
|
}
|
|
12445
12445
|
return e = a(i), n = r[e] = s[e](i), {
|
|
12446
12446
|
c() {
|
|
12447
|
-
t = j("div"), n.c(), b(t, "class", "text svelte-
|
|
12447
|
+
t = j("div"), n.c(), b(t, "class", "text svelte-i9wdo4"), z(t, "max-width", typeof i[1] == "number" ? be(i[1]) : i[1]), z(t, "-webkit-line-clamp", i[0]);
|
|
12448
12448
|
},
|
|
12449
12449
|
m(l, c) {
|
|
12450
12450
|
M(l, t, c), r[e].m(t, null), o = !0;
|
|
@@ -12516,7 +12516,7 @@ function rr(i) {
|
|
|
12516
12516
|
let d = (i[0].data.description || ((u = i[0].data.edit) == null ? void 0 : u.description)) && ar(i);
|
|
12517
12517
|
return {
|
|
12518
12518
|
c() {
|
|
12519
|
-
K(t.$$.fragment), e = $(), n = j("div"), o = j("div"), s = j("div"), r = j("div"), K(a.$$.fragment), l = $(), d && d.c(), b(r, "class", "title svelte-1oxrkr1"), b(s, "class", "plane svelte-1oxrkr1"), b(o, "class", "plane__wrapper svelte-1oxrkr1"), z(o, "transform", i[1] ? "translateY(-15px)" : "translateY(0)"), b(n, "class", "plane__container svelte-1oxrkr1"),
|
|
12519
|
+
K(t.$$.fragment), e = $(), n = j("div"), o = j("div"), s = j("div"), r = j("div"), K(a.$$.fragment), l = $(), d && d.c(), b(r, "class", "title svelte-1oxrkr1"), b(s, "class", "plane svelte-1oxrkr1"), b(o, "class", "plane__wrapper svelte-1oxrkr1"), z(o, "transform", i[1] ? "translateY(-15px)" : "translateY(0)"), b(n, "class", "plane__container svelte-1oxrkr1"), ee(n, "unfolded", i[1]), ee(n, "folded", i[3]);
|
|
12520
12520
|
},
|
|
12521
12521
|
m(h, p) {
|
|
12522
12522
|
Z(t, h, p), M(h, e, p), M(h, n, p), Q(n, o), Q(o, s), Q(s, r), Z(a, r, null), Q(s, l), d && d.m(s, null), c = !0;
|
|
@@ -12528,7 +12528,7 @@ function rr(i) {
|
|
|
12528
12528
|
const g = {};
|
|
12529
12529
|
p & 4 && (g.text = h[2]), p & 1 && (g.edit = (v = h[0].data.edit) == null ? void 0 : v.title), a.$set(g), h[0].data.description || ((w = h[0].data.edit) == null ? void 0 : w.description) ? d ? (d.p(h, p), p & 1 && k(d, 1)) : (d = ar(h), d.c(), k(d, 1), d.m(s, null)) : d && (se(), S(d, 1, 1, () => {
|
|
12530
12530
|
d = null;
|
|
12531
|
-
}), re()), p & 2 && z(o, "transform", h[1] ? "translateY(-15px)" : "translateY(0)"), (!c || p & 2) &&
|
|
12531
|
+
}), re()), p & 2 && z(o, "transform", h[1] ? "translateY(-15px)" : "translateY(0)"), (!c || p & 2) && ee(n, "unfolded", h[1]), (!c || p & 8) && ee(n, "folded", h[3]);
|
|
12532
12532
|
},
|
|
12533
12533
|
i(h) {
|
|
12534
12534
|
c || (k(t.$$.fragment, h), k(a.$$.fragment, h), k(d), c = !0);
|
|
@@ -13468,13 +13468,13 @@ function Kp(i) {
|
|
|
13468
13468
|
let l = a(i), c = l(i);
|
|
13469
13469
|
return {
|
|
13470
13470
|
c() {
|
|
13471
|
-
c.c(), t = $(), e = j("div"), n = j("div"), o = j("div"), b(o, "class", "video-icon-img svelte-q6hk4f"), z(o, "background-image", "url(" + i[14]() + ")"),
|
|
13471
|
+
c.c(), t = $(), e = j("div"), n = j("div"), o = j("div"), b(o, "class", "video-icon-img svelte-q6hk4f"), z(o, "background-image", "url(" + i[14]() + ")"), ee(o, "canPlay", i[4]), b(n, "class", "video-icon svelte-q6hk4f"), ee(n, "large", i[3] === "large"), ee(n, "small", i[3] === "small"), b(e, "class", "video-play-button-container svelte-q6hk4f"), ee(e, "showPlayButton", i[8]);
|
|
13472
13472
|
},
|
|
13473
13473
|
m(d, f) {
|
|
13474
13474
|
c.m(d, f), M(d, t, f), M(d, e, f), Q(e, n), Q(n, o), s || (r = Le(o, "click", i[15]), s = !0);
|
|
13475
13475
|
},
|
|
13476
13476
|
p(d, f) {
|
|
13477
|
-
l === (l = a(d)) && c ? c.p(d, f) : (c.d(1), c = l(d), c && (c.c(), c.m(t.parentNode, t))), f & 4 && z(o, "background-image", "url(" + d[14]() + ")"), f & 16 &&
|
|
13477
|
+
l === (l = a(d)) && c ? c.p(d, f) : (c.d(1), c = l(d), c && (c.c(), c.m(t.parentNode, t))), f & 4 && z(o, "background-image", "url(" + d[14]() + ")"), f & 16 && ee(o, "canPlay", d[4]), f & 8 && ee(n, "large", d[3] === "large"), f & 8 && ee(n, "small", d[3] === "small"), f & 256 && ee(e, "showPlayButton", d[8]);
|
|
13478
13478
|
},
|
|
13479
13479
|
d(d) {
|
|
13480
13480
|
c.d(d), d && T(t), d && T(e), s = !1, r();
|
|
@@ -13502,13 +13502,13 @@ function eg(i) {
|
|
|
13502
13502
|
let t, e, n, o, s, r, a;
|
|
13503
13503
|
return {
|
|
13504
13504
|
c() {
|
|
13505
|
-
t = j("video"), b(t, "class", "media-content svelte-q6hk4f"), b(t, "style", e = `object-fit: ${i[5]};`), Ne(t.src, n = i[1].videoCoverUrl ? i[1].url : i[1].url + "#t=0.1") || b(t, "src", n), b(t, "poster", o = i[1].videoCoverUrl), b(t, "preload", s = i[1].videoCoverUrl ? "none" : "auto"), t.playsInline = !0, b(t, "paused", ""), t.muted = !0, t.loop = !1, b(t, "crossorigin", ""), t.controls = !1,
|
|
13505
|
+
t = j("video"), b(t, "class", "media-content svelte-q6hk4f"), b(t, "style", e = `object-fit: ${i[5]};`), Ne(t.src, n = i[1].videoCoverUrl ? i[1].url : i[1].url + "#t=0.1") || b(t, "src", n), b(t, "poster", o = i[1].videoCoverUrl), b(t, "preload", s = i[1].videoCoverUrl ? "none" : "auto"), b(t, "disablepictureinpicture", ""), t.playsInline = !0, b(t, "paused", ""), t.muted = !0, t.loop = !1, b(t, "crossorigin", ""), t.controls = !1, ee(t, "showPlayButton", i[8]), z(t, "position", "relative");
|
|
13506
13506
|
},
|
|
13507
13507
|
m(l, c) {
|
|
13508
13508
|
M(l, t, c), i[13](t), r || (a = Le(t, "click", i[12]), r = !0);
|
|
13509
13509
|
},
|
|
13510
13510
|
p(l, c) {
|
|
13511
|
-
c & 32 && e !== (e = `object-fit: ${l[5]};`) && b(t, "style", e), c & 2 && !Ne(t.src, n = l[1].videoCoverUrl ? l[1].url : l[1].url + "#t=0.1") && b(t, "src", n), c & 2 && o !== (o = l[1].videoCoverUrl) && b(t, "poster", o), c & 2 && s !== (s = l[1].videoCoverUrl ? "none" : "auto") && b(t, "preload", s), c & 256 &&
|
|
13511
|
+
c & 32 && e !== (e = `object-fit: ${l[5]};`) && b(t, "style", e), c & 2 && !Ne(t.src, n = l[1].videoCoverUrl ? l[1].url : l[1].url + "#t=0.1") && b(t, "src", n), c & 2 && o !== (o = l[1].videoCoverUrl) && b(t, "poster", o), c & 2 && s !== (s = l[1].videoCoverUrl ? "none" : "auto") && b(t, "preload", s), c & 256 && ee(t, "showPlayButton", l[8]);
|
|
13512
13512
|
},
|
|
13513
13513
|
d(l) {
|
|
13514
13514
|
l && T(t), i[13](null), r = !1, a();
|
|
@@ -13646,7 +13646,7 @@ function wr(i) {
|
|
|
13646
13646
|
}
|
|
13647
13647
|
return e = c(i), n = l[e] = a[e](i), {
|
|
13648
13648
|
c() {
|
|
13649
|
-
t = j("div"), n.c(), b(t, "class", "media svelte-ai0lv9"),
|
|
13649
|
+
t = j("div"), n.c(), b(t, "class", "media svelte-ai0lv9"), ee(t, "unfolded", i[5]);
|
|
13650
13650
|
},
|
|
13651
13651
|
m(d, f) {
|
|
13652
13652
|
M(d, t, f), l[e].m(t, null), r = !0;
|
|
@@ -13656,7 +13656,7 @@ function wr(i) {
|
|
|
13656
13656
|
let u = e;
|
|
13657
13657
|
e = c(i), e === u ? l[e].p(i, f) : (se(), S(l[u], 1, 1, () => {
|
|
13658
13658
|
l[u] = null;
|
|
13659
|
-
}), re(), n = l[e], n ? n.p(i, f) : (n = l[e] = a[e](i), n.c()), k(n, 1), n.m(t, null)), (!r || f & 32) &&
|
|
13659
|
+
}), re(), n = l[e], n ? n.p(i, f) : (n = l[e] = a[e](i), n.c()), k(n, 1), n.m(t, null)), (!r || f & 32) && ee(t, "unfolded", i[5]);
|
|
13660
13660
|
},
|
|
13661
13661
|
i(d) {
|
|
13662
13662
|
r || (k(n), d && xe(() => {
|
|
@@ -14643,7 +14643,7 @@ function Dg(i) {
|
|
|
14643
14643
|
f = $();
|
|
14644
14644
|
for (let R = 0; R < B.length; R += 1)
|
|
14645
14645
|
B[R].c();
|
|
14646
|
-
u = $(), h = j("div"), p = j("div"), g = Ce(A), v = $(), w = j("div"), G && G.c(), P = $(), H && H.c(), b(o, "class", "line svelte-8mby9k"), z(o, "transition-delay", i[1] ? Rn + "ms" : On + Vr - jr - 40 + "ms"), b(a, "class", "headerImage svelte-8mby9k"), Ne(a.src, l = i[2].headerPictureUrl) || b(a, "src", l), b(a, "alt", ""), b(d, "class", "tag svelte-8mby9k"), b(p, "class", "text svelte-8mby9k"), b(h, "class", "title svelte-8mby9k"), b(w, "class", "footer svelte-8mby9k"), z(w, "height", _e((E = i[2].price) == null ? void 0 : E.value) && i[2].highlightText ? void 0 : "1rem"), b(r, "class", "content svelte-8mby9k"), z(r, "transition-delay", i[1] ? Rn + On + "ms" : "0ms"), b(t, "class", "marketing svelte-8mby9k"),
|
|
14646
|
+
u = $(), h = j("div"), p = j("div"), g = Ce(A), v = $(), w = j("div"), G && G.c(), P = $(), H && H.c(), b(o, "class", "line svelte-8mby9k"), z(o, "transition-delay", i[1] ? Rn + "ms" : On + Vr - jr - 40 + "ms"), b(a, "class", "headerImage svelte-8mby9k"), Ne(a.src, l = i[2].headerPictureUrl) || b(a, "src", l), b(a, "alt", ""), b(d, "class", "tag svelte-8mby9k"), b(p, "class", "text svelte-8mby9k"), b(h, "class", "title svelte-8mby9k"), b(w, "class", "footer svelte-8mby9k"), z(w, "height", _e((E = i[2].price) == null ? void 0 : E.value) && i[2].highlightText ? void 0 : "1rem"), b(r, "class", "content svelte-8mby9k"), z(r, "transition-delay", i[1] ? Rn + On + "ms" : "0ms"), b(t, "class", "marketing svelte-8mby9k"), ee(t, "unfolded", i[1]), ee(t, "folded", i[3]);
|
|
14647
14647
|
},
|
|
14648
14648
|
m(E, R) {
|
|
14649
14649
|
M(E, t, R), Z(e, t, null), Q(t, n), Q(t, o), Q(t, s), Q(t, r), Q(r, a), Q(r, c), Q(r, d);
|
|
@@ -14679,7 +14679,7 @@ function Dg(i) {
|
|
|
14679
14679
|
B[U].d(1);
|
|
14680
14680
|
B.length = D.length;
|
|
14681
14681
|
}
|
|
14682
|
-
(!I || R & 4) && A !== (A = E[2].title + "") && ke(g, A), R & 4 && (y = _e((W = E[2].price) == null ? void 0 : W.value) && ((Y = E[2].price) == null ? void 0 : Y.value) !== ""), y ? G ? G.p(E, R) : (G = Tr(E), G.c(), G.m(w, P)) : G && (G.d(1), G = null), E[2].highlightText ? H ? H.p(E, R) : (H = Br(E), H.c(), H.m(w, null)) : H && (H.d(1), H = null), R & 4 && z(w, "height", _e((N = E[2].price) == null ? void 0 : N.value) && E[2].highlightText ? void 0 : "1rem"), R & 2 && z(r, "transition-delay", E[1] ? Rn + On + "ms" : "0ms"), (!I || R & 2) &&
|
|
14682
|
+
(!I || R & 4) && A !== (A = E[2].title + "") && ke(g, A), R & 4 && (y = _e((W = E[2].price) == null ? void 0 : W.value) && ((Y = E[2].price) == null ? void 0 : Y.value) !== ""), y ? G ? G.p(E, R) : (G = Tr(E), G.c(), G.m(w, P)) : G && (G.d(1), G = null), E[2].highlightText ? H ? H.p(E, R) : (H = Br(E), H.c(), H.m(w, null)) : H && (H.d(1), H = null), R & 4 && z(w, "height", _e((N = E[2].price) == null ? void 0 : N.value) && E[2].highlightText ? void 0 : "1rem"), R & 2 && z(r, "transition-delay", E[1] ? Rn + On + "ms" : "0ms"), (!I || R & 2) && ee(t, "unfolded", E[1]), (!I || R & 8) && ee(t, "folded", E[3]);
|
|
14683
14683
|
},
|
|
14684
14684
|
i(E) {
|
|
14685
14685
|
I || (k(e.$$.fragment, E), I = !0);
|
|
@@ -14991,7 +14991,7 @@ function Rg(i) {
|
|
|
14991
14991
|
let t, e, n, o, s, r = i[1] && Rr();
|
|
14992
14992
|
return {
|
|
14993
14993
|
c() {
|
|
14994
|
-
t = j("div"), r && r.c(), e = $(), n = j("div"), o = j("div"), o.innerHTML = '<svg width="100%" height="100%" viewBox="0 0 128 128"><g transform="rotate(-45 12 64) translate(12 64)" fill="black" stroke="black" fill-opacity="0.6" stroke-opacity="0.6"><path stroke="none" class="sound-wave sound-wave-1 svelte-srt2pi" d="M0,23 A23,23 0 0,0 23,0 L0,0"></path><path fill="none" stroke-width="15" class="sound-wave sound-wave-2 svelte-srt2pi" d="M0,46 A46,46 0 0,0 46,0"></path><path fill="none" stroke-width="15" class="sound-wave sound-wave-3 svelte-srt2pi" d="M0,80 A80,80 0 0,0 80,0"></path></g></svg>', b(o, "class", "sound-wave__container svelte-srt2pi"), b(n, "class", "audio-icon svelte-srt2pi"),
|
|
14994
|
+
t = j("div"), r && r.c(), e = $(), n = j("div"), o = j("div"), o.innerHTML = '<svg width="100%" height="100%" viewBox="0 0 128 128"><g transform="rotate(-45 12 64) translate(12 64)" fill="black" stroke="black" fill-opacity="0.6" stroke-opacity="0.6"><path stroke="none" class="sound-wave sound-wave-1 svelte-srt2pi" d="M0,23 A23,23 0 0,0 23,0 L0,0"></path><path fill="none" stroke-width="15" class="sound-wave sound-wave-2 svelte-srt2pi" d="M0,46 A46,46 0 0,0 46,0"></path><path fill="none" stroke-width="15" class="sound-wave sound-wave-3 svelte-srt2pi" d="M0,80 A80,80 0 0,0 80,0"></path></g></svg>', b(o, "class", "sound-wave__container svelte-srt2pi"), b(n, "class", "audio-icon svelte-srt2pi"), ee(n, "playing", i[0]), b(t, "class", "audio-icon__wrapper svelte-srt2pi"), b(t, "style", i[2]), z(t, "width", i[5]), z(t, "height", i[5]);
|
|
14995
14995
|
},
|
|
14996
14996
|
m(a, l) {
|
|
14997
14997
|
M(a, t, l), r && r.m(t, null), Q(t, e), Q(t, n), Q(n, o), i[7](o), i[8](t), s = !0;
|
|
@@ -14999,7 +14999,7 @@ function Rg(i) {
|
|
|
14999
14999
|
p(a, [l]) {
|
|
15000
15000
|
a[1] ? r ? l & 2 && k(r, 1) : (r = Rr(), r.c(), k(r, 1), r.m(t, e)) : r && (se(), S(r, 1, 1, () => {
|
|
15001
15001
|
r = null;
|
|
15002
|
-
}), re()), (!s || l & 1) &&
|
|
15002
|
+
}), re()), (!s || l & 1) && ee(n, "playing", a[0]), (!s || l & 4) && b(t, "style", a[2]), l & 32 && z(t, "width", a[5]), l & 32 && z(t, "height", a[5]);
|
|
15003
15003
|
},
|
|
15004
15004
|
i(a) {
|
|
15005
15005
|
s || (k(r), s = !0);
|
|
@@ -15090,7 +15090,7 @@ function Or(i) {
|
|
|
15090
15090
|
}
|
|
15091
15091
|
}), {
|
|
15092
15092
|
c() {
|
|
15093
|
-
t = j("div"), K(e.$$.fragment), n = $(), o = j("div"), s = j("div"), r = j("div"), g && g.c(), a = $(), l = j("div"), K(c.$$.fragment), f = $(), K(u.$$.fragment), b(r, "class", "audio-icon svelte-1s6gk4a"), xe(() => i[11].call(l)), z(l, "display", "inline-block"), b(s, "class", "wrapper svelte-1s6gk4a"), b(o, "class", "content svelte-1s6gk4a"), b(t, "class", "audio-tag svelte-1s6gk4a"),
|
|
15093
|
+
t = j("div"), K(e.$$.fragment), n = $(), o = j("div"), s = j("div"), r = j("div"), g && g.c(), a = $(), l = j("div"), K(c.$$.fragment), f = $(), K(u.$$.fragment), b(r, "class", "audio-icon svelte-1s6gk4a"), xe(() => i[11].call(l)), z(l, "display", "inline-block"), b(s, "class", "wrapper svelte-1s6gk4a"), b(o, "class", "content svelte-1s6gk4a"), b(t, "class", "audio-tag svelte-1s6gk4a"), ee(t, "unfolded", i[6]);
|
|
15094
15094
|
},
|
|
15095
15095
|
m(y, P) {
|
|
15096
15096
|
M(y, t, P), Z(e, t, null), Q(t, n), Q(t, o), Q(o, s), Q(s, r), g && g.m(r, null), Q(s, a), Q(s, l), Z(c, l, null), d = Pt(l, i[11].bind(l)), Q(t, f), Z(u, t, null), h = !0, p || (A = Le(l, "click", i[7]), p = !0);
|
|
@@ -15104,7 +15104,7 @@ function Or(i) {
|
|
|
15104
15104
|
const C = {};
|
|
15105
15105
|
P & 64 && (C.visible = y[6]), P & 2 && (C.textUnfolded = y[1]), P & 32 && (C.content = y[5]), c.$set(C);
|
|
15106
15106
|
const L = {};
|
|
15107
|
-
P & 64 && (L.unfolded = y[6]), P & 8 && (L.length = y[3]), P & 48 && (L.outDelay = y[4] + 20 * Math.min((B = (D = y[5]) == null ? void 0 : D.length) != null ? B : 10, 15)), u.$set(L), (!h || P & 64) &&
|
|
15107
|
+
P & 64 && (L.unfolded = y[6]), P & 8 && (L.length = y[3]), P & 48 && (L.outDelay = y[4] + 20 * Math.min((B = (D = y[5]) == null ? void 0 : D.length) != null ? B : 10, 15)), u.$set(L), (!h || P & 64) && ee(t, "unfolded", y[6]);
|
|
15108
15108
|
},
|
|
15109
15109
|
i(y) {
|
|
15110
15110
|
h || (k(e.$$.fragment, y), k(g), k(c.$$.fragment, y), k(u.$$.fragment, y), h = !0);
|
|
@@ -15822,7 +15822,7 @@ class pl extends oe {
|
|
|
15822
15822
|
}
|
|
15823
15823
|
}
|
|
15824
15824
|
function A0(i) {
|
|
15825
|
-
le(i, "svelte-
|
|
15825
|
+
le(i, "svelte-e58ijk", ".wrapper.svelte-e58ijk{font-weight:600;cursor:pointer;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:auto}.text-wrapper.svelte-e58ijk{position:relative;display:flex;align-items:center;justify-content:center}.text.svelte-e58ijk{position:absolute;top:0;font-size:0.875rem;color:#ffffff;letter-spacing:0;text-align:center;max-width:8.75rem;width:-moz-max-content;width:max-content;line-height:1.125rem;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}");
|
|
15826
15826
|
}
|
|
15827
15827
|
function Xr(i) {
|
|
15828
15828
|
let t, e, n, o, s, r;
|
|
@@ -15838,7 +15838,7 @@ function Xr(i) {
|
|
|
15838
15838
|
}
|
|
15839
15839
|
}), {
|
|
15840
15840
|
c() {
|
|
15841
|
-
t = j("div"), K(e.$$.fragment), n = $(), o = j("div"), s = Ce(i[1]), b(o, "class", "text svelte-
|
|
15841
|
+
t = j("div"), K(e.$$.fragment), n = $(), o = j("div"), s = Ce(i[1]), b(o, "class", "text svelte-e58ijk"), b(t, "class", "text-wrapper svelte-e58ijk");
|
|
15842
15842
|
},
|
|
15843
15843
|
m(a, l) {
|
|
15844
15844
|
M(a, t, l), Z(e, t, null), Q(t, n), Q(t, o), Q(o, s), r = !0;
|
|
@@ -15865,7 +15865,7 @@ function v0(i) {
|
|
|
15865
15865
|
let s = i[1] && i[2] && Xr(i);
|
|
15866
15866
|
return {
|
|
15867
15867
|
c() {
|
|
15868
|
-
t = j("div"), K(e.$$.fragment), n = $(), s && s.c(), b(t, "class", "wrapper svelte-
|
|
15868
|
+
t = j("div"), K(e.$$.fragment), n = $(), s && s.c(), b(t, "class", "wrapper svelte-e58ijk");
|
|
15869
15869
|
},
|
|
15870
15870
|
m(r, a) {
|
|
15871
15871
|
M(r, t, a), Z(e, t, null), Q(t, n), s && s.m(t, null), o = !0;
|
|
@@ -16022,7 +16022,7 @@ function x0(i) {
|
|
|
16022
16022
|
return ~(o = u(i)) && (s = f[o] = d[o](i)), {
|
|
16023
16023
|
c() {
|
|
16024
16024
|
var h, p, A;
|
|
16025
|
-
t = j("div"), e = j("div"), n = j("div"), s && s.c(), b(n, "class", "content svelte-ofx2uu"),
|
|
16025
|
+
t = j("div"), e = j("div"), n = j("div"), s && s.c(), b(n, "class", "content svelte-ofx2uu"), ee(n, "unfolded", (h = i[1].state) == null ? void 0 : h.unfolded), b(e, "class", "content__wrapper svelte-ofx2uu"), b(t, "class", "content__container svelte-ofx2uu"), b(t, "data-id", r = i[1].id), ee(t, "disable", i[1].enabled === !1), ee(t, "hide", !i[3].visible || !i[3].enabled || !i[4].visible || !((p = i[1].state) != null && p.visible) || ((A = i[1].temporaryState) == null ? void 0 : A.visible) === !1), ee(t, "withAnimation", i[0]), ee(t, "unClickable", i[1].clickable === !1), z(t, "width", i[1].stickType === "Plane" ? "100%" : 0), z(t, "height", i[1].stickType === "Plane" ? "100%" : 0);
|
|
16026
16026
|
},
|
|
16027
16027
|
m(h, p) {
|
|
16028
16028
|
M(h, t, p), Q(t, e), Q(e, n), ~o && f[o].m(n, null), a = !0, l || (c = Le(t, "click", va(i[12])), l = !0);
|
|
@@ -16032,7 +16032,7 @@ function x0(i) {
|
|
|
16032
16032
|
let A = o;
|
|
16033
16033
|
o = u(h), o === A ? ~o && f[o].p(h, p) : (s && (se(), S(f[A], 1, 1, () => {
|
|
16034
16034
|
f[A] = null;
|
|
16035
|
-
}), re()), ~o ? (s = f[o], s ? s.p(h, p) : (s = f[o] = d[o](h), s.c()), k(s, 1), s.m(n, null)) : s = null), (!a || p & 2) &&
|
|
16035
|
+
}), re()), ~o ? (s = f[o], s ? s.p(h, p) : (s = f[o] = d[o](h), s.c()), k(s, 1), s.m(n, null)) : s = null), (!a || p & 2) && ee(n, "unfolded", (g = h[1].state) == null ? void 0 : g.unfolded), (!a || p & 2 && r !== (r = h[1].id)) && b(t, "data-id", r), (!a || p & 2) && ee(t, "disable", h[1].enabled === !1), (!a || p & 26) && ee(t, "hide", !h[3].visible || !h[3].enabled || !h[4].visible || !((v = h[1].state) != null && v.visible) || ((w = h[1].temporaryState) == null ? void 0 : w.visible) === !1), (!a || p & 1) && ee(t, "withAnimation", h[0]), (!a || p & 2) && ee(t, "unClickable", h[1].clickable === !1), p & 2 && z(t, "width", h[1].stickType === "Plane" ? "100%" : 0), p & 2 && z(t, "height", h[1].stickType === "Plane" ? "100%" : 0);
|
|
16036
16036
|
},
|
|
16037
16037
|
i(h) {
|
|
16038
16038
|
a || (k(s), a = !0);
|
|
@@ -16325,7 +16325,7 @@ function R0(i) {
|
|
|
16325
16325
|
}
|
|
16326
16326
|
}), {
|
|
16327
16327
|
c() {
|
|
16328
|
-
t = j("div"), e = $(), n = j("div"), K(o.$$.fragment), s = $(), r = j("div"), a = $(), l = j("div"), K(c.$$.fragment), b(t, "class", "tag-point-click-helper svelte-yex9rb"), b(r, "class", "tag-unfolded-point svelte-yex9rb"), z(r, "transition-delay", (i[3] ? i[5] : 0) + "ms"), b(l, "class", "tag-folded-point svelte-yex9rb"), z(l, "transition-delay", (i[3] ? i[5] : 0) + "ms"), b(n, "class", "tag-point-wrapper svelte-yex9rb"),
|
|
16328
|
+
t = j("div"), e = $(), n = j("div"), K(o.$$.fragment), s = $(), r = j("div"), a = $(), l = j("div"), K(c.$$.fragment), b(t, "class", "tag-point-click-helper svelte-yex9rb"), b(r, "class", "tag-unfolded-point svelte-yex9rb"), z(r, "transition-delay", (i[3] ? i[5] : 0) + "ms"), b(l, "class", "tag-folded-point svelte-yex9rb"), z(l, "transition-delay", (i[3] ? i[5] : 0) + "ms"), b(n, "class", "tag-point-wrapper svelte-yex9rb"), ee(n, "unfolded", i[0]), ee(n, "folded", i[3]), z(n, "width", be(i[1])), z(n, "height", be(i[1]));
|
|
16329
16329
|
},
|
|
16330
16330
|
m(h, p) {
|
|
16331
16331
|
M(h, t, p), M(h, e, p), M(h, n, p), Z(o, n, null), Q(n, s), Q(n, r), Q(n, a), Q(n, l), Z(c, l, null), d = !0, f || (u = Le(t, "click", i[4]), f = !0);
|
|
@@ -16333,7 +16333,7 @@ function R0(i) {
|
|
|
16333
16333
|
p(h, [p]) {
|
|
16334
16334
|
p & 8 && z(r, "transition-delay", (h[3] ? h[5] : 0) + "ms");
|
|
16335
16335
|
const A = {};
|
|
16336
|
-
p & 4 && (A.icon = h[2]), p & 2 && (A.width = h[1]), c.$set(A), p & 8 && z(l, "transition-delay", (h[3] ? h[5] : 0) + "ms"), (!d || p & 1) &&
|
|
16336
|
+
p & 4 && (A.icon = h[2]), p & 2 && (A.width = h[1]), c.$set(A), p & 8 && z(l, "transition-delay", (h[3] ? h[5] : 0) + "ms"), (!d || p & 1) && ee(n, "unfolded", h[0]), (!d || p & 8) && ee(n, "folded", h[3]), p & 2 && z(n, "width", be(h[1])), p & 2 && z(n, "height", be(h[1]));
|
|
16337
16337
|
},
|
|
16338
16338
|
i(h) {
|
|
16339
16339
|
d || (k(o.$$.fragment, h), k(c.$$.fragment, h), d = !0);
|
|
@@ -16377,7 +16377,7 @@ class H0 extends oe {
|
|
|
16377
16377
|
}
|
|
16378
16378
|
}
|
|
16379
16379
|
function F0(i) {
|
|
16380
|
-
le(i, "svelte-
|
|
16380
|
+
le(i, "svelte-pzwdws", ".tag.withAnimation.svelte-pzwdws{transition:opacity 0.3s linear}.tag.hide.svelte-pzwdws{opacity:0;pointer-events:none}.tag.hide.svelte-pzwdws *{pointer-events:none !important}.tag.unClickable.svelte-pzwdws{pointer-events:none !important}.tag.unClickable.svelte-pzwdws *{pointer-events:none !important}.tag.disable.svelte-pzwdws{display:none}.wrapper.svelte-pzwdws{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto}");
|
|
16381
16381
|
}
|
|
16382
16382
|
function G0(i) {
|
|
16383
16383
|
let t;
|
|
@@ -16483,7 +16483,7 @@ function X0(i) {
|
|
|
16483
16483
|
}
|
|
16484
16484
|
return r = A(i), a = p[r] = h[r](i), {
|
|
16485
16485
|
c() {
|
|
16486
|
-
t = j("div"), e = j("div"), o.c(), s = $(), a.c(), b(e, "class", "wrapper svelte-
|
|
16486
|
+
t = j("div"), e = j("div"), o.c(), s = $(), a.c(), b(e, "class", "wrapper svelte-pzwdws"), b(e, "data-tag-unfolded", i[8]), b(e, "data-tag-id", i[11]), b(e, "data-content-type", l = i[1].contentType), z(e, "left", i[7]), z(e, "top", i[6]), z(e, "z-index", i[5]), b(t, "class", "tag svelte-pzwdws"), b(t, "data-tag-id", i[11]), ee(t, "unClickable", i[1].clickable === !1), ee(t, "disable", i[10]), ee(t, "hide", i[9]), ee(t, "withAnimation", i[0]);
|
|
16487
16487
|
},
|
|
16488
16488
|
m(g, v) {
|
|
16489
16489
|
M(g, t, v), Q(t, e), f[n].m(e, null), Q(e, s), p[r].m(e, null), c = !0;
|
|
@@ -16496,7 +16496,7 @@ function X0(i) {
|
|
|
16496
16496
|
let y = r;
|
|
16497
16497
|
r = A(g), r === y ? p[r].p(g, v) : (se(), S(p[y], 1, 1, () => {
|
|
16498
16498
|
p[y] = null;
|
|
16499
|
-
}), re(), a = p[r], a ? a.p(g, v) : (a = p[r] = h[r](g), a.c()), k(a, 1), a.m(e, null)), (!c || v & 256) && b(e, "data-tag-unfolded", g[8]), (!c || v & 2048) && b(e, "data-tag-id", g[11]), (!c || v & 2 && l !== (l = g[1].contentType)) && b(e, "data-content-type", l), v & 128 && z(e, "left", g[7]), v & 64 && z(e, "top", g[6]), v & 32 && z(e, "z-index", g[5]), (!c || v & 2048) && b(t, "data-tag-id", g[11]), (!c || v & 1024) &&
|
|
16499
|
+
}), re(), a = p[r], a ? a.p(g, v) : (a = p[r] = h[r](g), a.c()), k(a, 1), a.m(e, null)), (!c || v & 256) && b(e, "data-tag-unfolded", g[8]), (!c || v & 2048) && b(e, "data-tag-id", g[11]), (!c || v & 2 && l !== (l = g[1].contentType)) && b(e, "data-content-type", l), v & 128 && z(e, "left", g[7]), v & 64 && z(e, "top", g[6]), v & 32 && z(e, "z-index", g[5]), (!c || v & 2048) && b(t, "data-tag-id", g[11]), (!c || v & 2) && ee(t, "unClickable", g[1].clickable === !1), (!c || v & 1024) && ee(t, "disable", g[10]), (!c || v & 512) && ee(t, "hide", g[9]), (!c || v & 1) && ee(t, "withAnimation", g[0]);
|
|
16500
16500
|
},
|
|
16501
16501
|
i(g) {
|
|
16502
16502
|
c || (k(o), k(a), c = !0);
|
|
@@ -16573,7 +16573,7 @@ function Jr(i) {
|
|
|
16573
16573
|
t = j("div");
|
|
16574
16574
|
for (let a = 0; a < e.length; a += 1)
|
|
16575
16575
|
e[a].c();
|
|
16576
|
-
b(t, "class", "tag--container svelte-uq11d5"),
|
|
16576
|
+
b(t, "class", "tag--container svelte-uq11d5"), ee(t, "hide", !i[3].visible || !i[4].visible), ee(t, "withAnimation", i[0]);
|
|
16577
16577
|
},
|
|
16578
16578
|
m(a, l) {
|
|
16579
16579
|
M(a, t, l);
|
|
@@ -16582,7 +16582,7 @@ function Jr(i) {
|
|
|
16582
16582
|
o = !0;
|
|
16583
16583
|
},
|
|
16584
16584
|
p(a, l) {
|
|
16585
|
-
l & 31 && (s = a[1], se(), e = Ke(e, l, r, 1, a, s, n, t, Ot, Zr, null, Ur), re()), (!o || l & 24) &&
|
|
16585
|
+
l & 31 && (s = a[1], se(), e = Ke(e, l, r, 1, a, s, n, t, Ot, Zr, null, Ur), re()), (!o || l & 24) && ee(t, "hide", !a[3].visible || !a[4].visible), (!o || l & 1) && ee(t, "withAnimation", a[0]);
|
|
16586
16586
|
},
|
|
16587
16587
|
i(a) {
|
|
16588
16588
|
if (!o) {
|
|
@@ -17089,7 +17089,7 @@ function oA(i) {
|
|
|
17089
17089
|
}
|
|
17090
17090
|
return i;
|
|
17091
17091
|
}
|
|
17092
|
-
const Al = "2.0.
|
|
17092
|
+
const Al = "2.0.10", Ui = `DnalogelPlugin-PanoTagPlugin@${Al}`, sA = !1, xv = (i) => `${Ui}--${i}`;
|
|
17093
17093
|
class rA extends iA {
|
|
17094
17094
|
constructor(e, n) {
|
|
17095
17095
|
super(e);
|
|
@@ -18603,7 +18603,7 @@ class zA extends yo {
|
|
|
18603
18603
|
getDragPlane() {
|
|
18604
18604
|
const e = new x.Plane(), n = this.helperObject3D.cornerPositions;
|
|
18605
18605
|
if (n.length !== 0)
|
|
18606
|
-
return n.length < 3 ? e.setFromNormalAndCoplanarPoint(this.originObject3D.getWorldDirection(new
|
|
18606
|
+
return n.length < 3 ? e.setFromNormalAndCoplanarPoint(this.originObject3D.getWorldDirection(new te()), n[0]) : e.setFromCoplanarPoints(n[0], n[1], n[2]), e;
|
|
18607
18607
|
}
|
|
18608
18608
|
dragStart(e, n) {
|
|
18609
18609
|
var s, r;
|
|
@@ -18628,25 +18628,25 @@ class zA extends yo {
|
|
|
18628
18628
|
const n = this.originObject3D, { startPoint: o, plane: s } = this.startInfo, r = this.helperObject3D.cornerPositions;
|
|
18629
18629
|
if (r.length < 4)
|
|
18630
18630
|
return this.dragEnd();
|
|
18631
|
-
const a = e.ray.intersectPlane(s, new
|
|
18631
|
+
const a = e.ray.intersectPlane(s, new te());
|
|
18632
18632
|
if (!a || gA(a, this.camera.position))
|
|
18633
18633
|
return;
|
|
18634
|
-
const l = new
|
|
18635
|
-
const _ = new
|
|
18634
|
+
const l = new te().addVectors(r[0], r[2]).divideScalar(2), { position: c, direction: d } = o, f = new te().subVectors(r[1], r[0]), u = new te().subVectors(r[3], r[0]), h = (H) => {
|
|
18635
|
+
const _ = new te(0, 0, 0);
|
|
18636
18636
|
if (!this.startInfo)
|
|
18637
18637
|
return _;
|
|
18638
18638
|
const V = (H === "ew" ? f : u).clone(), E = c.clone().projectOnVector(V), R = a.clone().projectOnVector(V), O = l.clone().projectOnVector(V);
|
|
18639
18639
|
if (R.equals(E))
|
|
18640
18640
|
return _;
|
|
18641
18641
|
if (H === "ns" && typeof this.startInfo.dragPointInCenterBottom != "boolean") {
|
|
18642
|
-
const N = new
|
|
18642
|
+
const N = new te().subVectors(R, O), U = N.x < 0 && V.x >= 0, de = N.y < 0 && V.y >= 0, ue = N.z < 0 && V.z >= 0;
|
|
18643
18643
|
this.startInfo.dragPointInCenterBottom = U || de || ue;
|
|
18644
18644
|
}
|
|
18645
18645
|
if (H === "ew" && typeof this.startInfo.dragPointInCenterLeft != "boolean") {
|
|
18646
|
-
const N = new
|
|
18646
|
+
const N = new te().subVectors(R, O), U = N.x < 0 && V.x >= 0, de = N.y < 0 && V.y >= 0, ue = N.z < 0 && V.z >= 0;
|
|
18647
18647
|
this.startInfo.dragPointInCenterLeft = U || de || ue;
|
|
18648
18648
|
}
|
|
18649
|
-
const W = new
|
|
18649
|
+
const W = new te().subVectors(R, E), Y = W.length();
|
|
18650
18650
|
return Y > 0.3 ? (console.warn("offset.length() > 0.3, skipped", Y), _) : W;
|
|
18651
18651
|
}, p = h("ew"), A = h("ns"), g = () => {
|
|
18652
18652
|
const H = p;
|
|
@@ -18672,9 +18672,9 @@ class zA extends yo {
|
|
|
18672
18672
|
case "nwse":
|
|
18673
18673
|
g(), v();
|
|
18674
18674
|
}
|
|
18675
|
-
const w = new
|
|
18675
|
+
const w = new te().subVectors(r[1], r[0]).length() / f.length(), y = new te().subVectors(r[3], r[0]).length() / u.length(), P = new te(w, y, 1), I = new x.Matrix4().scale(P);
|
|
18676
18676
|
n.isCSS3DObjectPlus ? n.applyScaleMatrix4(I) : n.scale.applyMatrix4(I), o.position.copy(a);
|
|
18677
|
-
const C = new
|
|
18677
|
+
const C = new te().addVectors(r[0], r[2]).divideScalar(2), L = new te().subVectors(C, l), D = new x.Matrix4().setPosition(L);
|
|
18678
18678
|
n.applyMatrix4(D), (B = this.helperObject3D.css3DInstance) == null || B.css3DObject.applyMatrix4(D), (G = this.helperObject3D.plane) == null || G.applyMatrix4(D), this.hooks.emit("scaleUpdate", { matrix4: I, helperOrigin: l }), this.hooks.emit("positionUpdate", { matrix4: D }), this.render();
|
|
18679
18679
|
}
|
|
18680
18680
|
dragEnd() {
|