@realsee/dnalogel 2.14.3 → 2.14.4-alpha.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 +15 -15
- package/dist/index.js +609 -609
- package/dist/index.umd.js +16 -16
- package/docs/classes/CSS3DRender.html +4 -4
- package/docs/classes/CruisePluginController.html +4 -4
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/classes/Object3DHelperController.html +4 -4
- package/docs/classes/PaintBrush.html +4 -4
- package/docs/classes/PanoMeasurePluginLine.html +4 -4
- package/docs/classes/PanoMeasurePluginModel.html +4 -4
- package/docs/classes/PanoMeasurePluginPoint.html +4 -4
- package/docs/classes/PanoMeasurePluginPolyline.html +4 -4
- package/docs/classes/PanoTagPluginController.html +4 -4
- package/docs/classes/Util.BetterTween.html +4 -4
- package/docs/classes/Util.FivePointSelector.html +4 -4
- package/docs/classes/Util.Interval.html +4 -4
- package/docs/classes/Util.Magnifier.html +4 -4
- package/docs/classes/Util.PointDomHelper.html +4 -4
- package/docs/classes/Util.PointHelper.html +4 -4
- package/docs/classes/Util.Rectangle.html +4 -4
- package/docs/enums/CameraMovementEffect.html +4 -4
- package/docs/enums/ContentType.html +4 -4
- package/docs/enums/DIRECTION.html +4 -4
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +4 -4
- package/docs/enums/DimensionType.html +4 -4
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -4
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +4 -4
- package/docs/enums/PaintBrushTypeEnum.html +4 -4
- package/docs/enums/Rotation.html +4 -4
- 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 +4 -4
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/PanoVideoPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
- package/docs/interfaces/CameraMovementPluginExportType.html +4 -4
- package/docs/interfaces/EventMap.html +4 -4
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +4 -4
- package/docs/interfaces/FloorplanEntrance.html +4 -4
- package/docs/interfaces/FloorplanExtraObject.html +4 -4
- package/docs/interfaces/FloorplanExtraObject3D.html +4 -4
- package/docs/interfaces/FloorplanFloorData.html +4 -4
- package/docs/interfaces/FloorplanImagePosition.html +4 -4
- package/docs/interfaces/FloorplanObserver.html +4 -4
- package/docs/interfaces/FloorplanOutlineItem.html +4 -4
- package/docs/interfaces/FloorplanPosition.html +4 -4
- package/docs/interfaces/FloorplanRoomItem.html +4 -4
- package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +4 -4
- package/docs/interfaces/FloorplanServerData.html +4 -4
- package/docs/interfaces/FloorplanServerDoorItem.html +4 -4
- package/docs/interfaces/FloorplanServerDoorPosition.html +4 -4
- package/docs/interfaces/FloorplanServerEntrance.html +4 -4
- package/docs/interfaces/FloorplanServerFloorData.html +4 -4
- package/docs/interfaces/FloorplanServerImagePosition.html +4 -4
- package/docs/interfaces/FloorplanServerObserver.html +4 -4
- package/docs/interfaces/FloorplanServerOutlineItem.html +4 -4
- package/docs/interfaces/FloorplanServerPosition.html +4 -4
- package/docs/interfaces/FloorplanServerRoomItem.html +4 -4
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
- package/docs/interfaces/HelperOffset.html +4 -4
- package/docs/interfaces/ImagePlaneGroup.html +4 -4
- package/docs/interfaces/ItemLabelPluginData.html +4 -4
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +4 -4
- package/docs/interfaces/ItemLabelPluginParametersType.html +4 -4
- package/docs/interfaces/MinMax.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginData.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +4 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginData.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +4 -4
- package/docs/interfaces/ModelRoomLabelPluginData.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginData.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +4 -4
- package/docs/interfaces/ModelViewPluginExportType.html +4 -4
- package/docs/interfaces/Object3DHelperState.html +4 -4
- package/docs/interfaces/ObjectHelperControllers.html +4 -4
- package/docs/interfaces/PaintBrushAction.html +4 -4
- package/docs/interfaces/PaintBrushConfigs.html +4 -4
- package/docs/interfaces/PaintBrushState.html +4 -4
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +4 -4
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +4 -4
- package/docs/interfaces/PanoMeasurePluginLineJson.html +4 -4
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +4 -4
- package/docs/interfaces/PanoMeasurePluginPointJson.html +4 -4
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +4 -4
- package/docs/interfaces/PanoRulerPluginExportType.html +4 -4
- package/docs/interfaces/PanoRulerPluginOptions.html +4 -4
- package/docs/interfaces/PanoRulerPluginParameterType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginExportType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginOptions.html +4 -4
- package/docs/interfaces/PanoRulerProPluginParameterType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginState.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +4 -4
- package/docs/interfaces/Point.html +4 -4
- package/docs/interfaces/Room.html +4 -4
- package/docs/interfaces/RoomInfo.html +4 -4
- package/docs/interfaces/RoomLabel.html +4 -4
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +4 -4
- package/docs/interfaces/State.html +4 -4
- package/docs/interfaces/TagCacheInterface.html +4 -4
- package/docs/interfaces/TagConfig.html +4 -4
- package/docs/interfaces/TagGLTFObjectGroup.html +4 -4
- package/docs/interfaces/TagIconUrl.html +4 -4
- package/docs/interfaces/TagObjectGroup.html +4 -4
- package/docs/interfaces/TagStyle.html +4 -4
- package/docs/interfaces/Tags.html +4 -4
- package/docs/interfaces/TemporaryState.html +4 -4
- package/docs/interfaces/Util.MagnifierParameter.html +4 -4
- package/docs/interfaces/Util.MouseGroupParameter.html +4 -4
- package/docs/modules/PanoVideoPluginType.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/AudioAppearance.html +4 -4
- package/docs/types/AudioTagTypeConfigKey.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/ClassFunctionParameters.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeySplit.html +4 -4
- package/docs/types/ContentTypeMap.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/LoadTagConfig.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/MediaStore.html +4 -4
- package/docs/types/ModelElement.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoIndex.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PanoVideoPluginParameterType.html +4 -4
- package/docs/types/PanoVideoPluginReturnType.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/PlaneTagElement.html +4 -4
- package/docs/types/Point2DElement.html +4 -4
- package/docs/types/Point2DTag.html +4 -4
- package/docs/types/Point3DElement.html +4 -4
- package/docs/types/Point3DTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/PointTagElement.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/StickType.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagContentType.html +4 -4
- package/docs/types/TagDimensionType.html +4 -4
- package/docs/types/TagElement.html +4 -4
- package/docs/types/TagEvents.html +4 -4
- package/docs/types/TagGLTFObject.html +4 -4
- package/docs/types/TagHooks.html +4 -4
- package/docs/types/TagIconSize.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/WorkCode.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/libs/PanoTagPlugin/Components/Tag/index.js +151 -151
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/base/BasePlugin.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ var F = (i, t, e) => new Promise((n, o) => {
|
|
|
30
30
|
import * as vi from "@tweenjs/tween.js";
|
|
31
31
|
import En, { Tween as fc, Easing as mc } from "@tweenjs/tween.js";
|
|
32
32
|
import { Camera as pc, Five as Ve, Subscribe as Ye } from "@realsee/five";
|
|
33
|
-
import * as
|
|
33
|
+
import * as E from "three";
|
|
34
34
|
import { Vector3 as U, Group as Gt, Raycaster as Mt, MeshBasicMaterial as Cn, CanvasTexture as gc, AnimationMixer as Ac, Color as Ln, TextureLoader as Ea, Vector2 as _e, PlaneGeometry as vc, sRGBEncoding as bc, LinearFilter as Ji, Mesh as An, CurvePath as yc, LineCurve3 as wc, TubeGeometry as Ec, ShaderMaterial as Ca, SphereGeometry as Cc, DoubleSide as Pa, RingGeometry as Pc, Quaternion as mo, Euler as Ro, Matrix4 as fn, Object3D as Ic, VideoTexture as kc, Vector4 as xc, SphereBufferGeometry as Dc } from "three";
|
|
35
35
|
import { CSS3DRenderer as Lc, CSS3DObject as Zi } from "three/examples/jsm/renderers/CSS3DRenderer";
|
|
36
36
|
import { Line as Ia } from "@realsee/five/line";
|
|
@@ -497,10 +497,10 @@ class Hc extends Rc {
|
|
|
497
497
|
if (!v.find((w) => w === A)) {
|
|
498
498
|
if (v.push(A), f.push(Si(l[A], g.clientWidth, g.clientHeight)), f.length < 3)
|
|
499
499
|
return;
|
|
500
|
-
const { control: w, end:
|
|
501
|
-
if (!w || !
|
|
500
|
+
const { control: w, end: k } = Rn(f);
|
|
501
|
+
if (!w || !k)
|
|
502
502
|
return;
|
|
503
|
-
a.quadraticCurveTo(w.x, w.y,
|
|
503
|
+
a.quadraticCurveTo(w.x, w.y, k.x, k.y), a.stroke();
|
|
504
504
|
}
|
|
505
505
|
}).onComplete((p) => {
|
|
506
506
|
g.tween = void 0, g.tweening = !1, v = [], f = [], s && s(), r();
|
|
@@ -581,62 +581,62 @@ const gb = (i, t) => {
|
|
|
581
581
|
lockedPanoIndex: null,
|
|
582
582
|
lockedLatitude: null,
|
|
583
583
|
lockedLongitude: null
|
|
584
|
-
}), t == null ? void 0 : t.config), l = new
|
|
585
|
-
let u = new
|
|
584
|
+
}), t == null ? void 0 : t.config), l = new E.Scene(), c = new pc(60);
|
|
585
|
+
let u = new E.Object3D(), d, h;
|
|
586
586
|
{
|
|
587
|
-
const R = new
|
|
588
|
-
R.position.copy(new
|
|
587
|
+
const R = new E.DirectionalLight(16777215, 0.5);
|
|
588
|
+
R.position.copy(new E.Vector3(1, 1, 1)), l.add(R);
|
|
589
589
|
}
|
|
590
590
|
{
|
|
591
|
-
const R = new
|
|
591
|
+
const R = new E.DirectionalLight(16777215, 0.3);
|
|
592
592
|
l.add(R);
|
|
593
593
|
}
|
|
594
594
|
{
|
|
595
|
-
const R = new
|
|
595
|
+
const R = new E.AmbientLight(16777215, 0.3);
|
|
596
596
|
l.add(R);
|
|
597
597
|
}
|
|
598
598
|
l.add(u);
|
|
599
599
|
const f = () => {
|
|
600
600
|
if (n)
|
|
601
601
|
return;
|
|
602
|
-
d =
|
|
602
|
+
d = I(i.model, c.fov, c.aspect), h = i.model.bounding.getCenter(new E.Vector3()), l.remove(u), u = G(i.model), l.add(u), n = !0, L();
|
|
603
603
|
function R(X) {
|
|
604
604
|
const H = X.clone();
|
|
605
605
|
return H.uniforms.modelAlpha.value = 1, H.uniforms.map.value && (H.uniforms.map.value.needsUpdate = !0), H;
|
|
606
606
|
}
|
|
607
607
|
function G(X) {
|
|
608
|
-
if (X instanceof
|
|
608
|
+
if (X instanceof E.Mesh) {
|
|
609
609
|
const H = X.geometry, ee = Array.isArray(X.material) ? X.material.map(R) : R(X.material);
|
|
610
|
-
return new
|
|
611
|
-
} else if (X instanceof
|
|
612
|
-
const H = new
|
|
610
|
+
return new E.Mesh(H, ee);
|
|
611
|
+
} else if (X instanceof E.Group) {
|
|
612
|
+
const H = new E.Group();
|
|
613
613
|
return X.children.forEach((ee) => H.add(G(ee))), H;
|
|
614
614
|
} else {
|
|
615
|
-
const H = new
|
|
615
|
+
const H = new E.Object3D();
|
|
616
616
|
return X.children.forEach((ee) => H.add(G(ee))), H;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
619
|
}, v = () => {
|
|
620
620
|
if (!!i.renderer)
|
|
621
|
-
return s || (s = new
|
|
621
|
+
return s || (s = new E.WebGLRenderer({ antialias: !1, alpha: !0 }), s.setPixelRatio(i.renderer.getPixelRatio()), s.outputEncoding = E.sRGBEncoding, s.setClearColor(1579548, 0), s.autoClear = !0), s;
|
|
622
622
|
}, g = () => {
|
|
623
623
|
u.traverse((R) => {
|
|
624
|
-
R instanceof
|
|
625
|
-
}), l.remove(u), u = new
|
|
624
|
+
R instanceof E.Mesh && [].concat(R.material).forEach((X) => X.dispose());
|
|
625
|
+
}), l.remove(u), u = new E.Object3D(), l.add(u), n = !1, L();
|
|
626
626
|
}, p = () => {
|
|
627
627
|
!e || n || f();
|
|
628
628
|
}, A = () => {
|
|
629
629
|
e || (e = !0, l.add(u), !n && i.model.loaded && f(), L());
|
|
630
630
|
}, b = () => {
|
|
631
|
-
!e || (l.remove(u), o = !0,
|
|
631
|
+
!e || (l.remove(u), o = !0, x(), e = !1);
|
|
632
632
|
}, w = (R, G = {}) => {
|
|
633
633
|
const X = v();
|
|
634
634
|
if (!X)
|
|
635
635
|
return;
|
|
636
|
-
R.appendChild(X.domElement),
|
|
636
|
+
R.appendChild(X.domElement), k(G);
|
|
637
637
|
const H = window.getComputedStyle(R).position;
|
|
638
638
|
H !== "relative" && H !== "absolute" && H !== "fixed" && H !== "sticky" && (R.style.position = "relative");
|
|
639
|
-
},
|
|
639
|
+
}, k = (R = {}) => {
|
|
640
640
|
if (!s)
|
|
641
641
|
return;
|
|
642
642
|
const X = s.domElement.parentNode;
|
|
@@ -646,7 +646,7 @@ const gb = (i, t) => {
|
|
|
646
646
|
}
|
|
647
647
|
L();
|
|
648
648
|
};
|
|
649
|
-
function
|
|
649
|
+
function I(R, G, X) {
|
|
650
650
|
const H = R.bounding, ee = Math.pow(
|
|
651
651
|
Math.pow(H.max.x - H.min.x + 1, 2) + Math.pow(H.max.y - H.min.y + 1, 2) + Math.pow(H.max.z - H.min.z + 1, 2),
|
|
652
652
|
1 / 2
|
|
@@ -654,15 +654,15 @@ const gb = (i, t) => {
|
|
|
654
654
|
let Y = ee / 2 / Math.tan(Math.PI * G / 360);
|
|
655
655
|
return X < 1 && (Y = Y / X), isNaN(Y) ? ee : Y;
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function C(R) {
|
|
658
658
|
return i.work.observers[R].standingPosition.clone();
|
|
659
659
|
}
|
|
660
660
|
const L = () => {
|
|
661
661
|
if (!e || !d || !h)
|
|
662
662
|
return;
|
|
663
663
|
const R = i.getPose();
|
|
664
|
-
R.fov = c.fov, R.offset = h, R.distance = d, typeof a.lockedLatitude == "number" && (R.latitude = a.lockedLatitude), typeof a.lockedLongitude == "number" && (R.longitude = a.lockedLongitude), typeof a.lockedPanoIndex == "number" && (R.offset =
|
|
665
|
-
},
|
|
664
|
+
R.fov = c.fov, R.offset = h, R.distance = d, typeof a.lockedLatitude == "number" && (R.latitude = a.lockedLatitude), typeof a.lockedLongitude == "number" && (R.longitude = a.lockedLongitude), typeof a.lockedPanoIndex == "number" && (R.offset = C(a.lockedPanoIndex)), a.lookAtCurrentCamera && (R.offset = i.camera.position.clone().setY(i.camera.position.y + 1)), c.setFromPose(R), o = !0;
|
|
665
|
+
}, x = () => {
|
|
666
666
|
!e || o !== !0 || !s || !s.domElement.parentNode || s.domElement.parentNode.offsetWidth === 0 || (s.render(l, c), o = !1);
|
|
667
667
|
}, O = () => {
|
|
668
668
|
s && s.dispose(), s = null;
|
|
@@ -671,7 +671,7 @@ const gb = (i, t) => {
|
|
|
671
671
|
}, _ = () => ({
|
|
672
672
|
enabled: e
|
|
673
673
|
});
|
|
674
|
-
return Object.assign(window, { camera: c }), i.on("modelLoaded", p), i.on("modelWillLoad", g), i.on("cameraDirectionUpdate", L), i.on("dispose", O), i.on("renderFrame",
|
|
674
|
+
return Object.assign(window, { camera: c }), i.on("modelLoaded", p), i.on("modelWillLoad", g), i.on("cameraDirectionUpdate", L), i.on("dispose", O), i.on("renderFrame", x), i.on("cameraPositionUpdate", L), { appendTo: w, refresh: k, changeConfigs: W, enable: A, disable: b, getCurrentState: _ };
|
|
675
675
|
};
|
|
676
676
|
function gt(...i) {
|
|
677
677
|
const t = [];
|
|
@@ -786,9 +786,9 @@ class Zt {
|
|
|
786
786
|
}
|
|
787
787
|
}
|
|
788
788
|
const Nc = ({ x: i, y: t, z: e }) => new U(i, t, e), Je = (i) => new U().fromArray(i), Pn = (i) => i instanceof U ? i : Array.isArray(i) ? Je(i) : Nc(i);
|
|
789
|
-
class Xc extends
|
|
789
|
+
class Xc extends E.Mesh {
|
|
790
790
|
constructor(e, n) {
|
|
791
|
-
const o = new
|
|
791
|
+
const o = new E.MeshBasicMaterial({ opacity: 0, color: 0, transparent: !1, side: E.DoubleSide }), s = new E.PlaneGeometry(e, n);
|
|
792
792
|
super(s, o);
|
|
793
793
|
m(this, "name", "opacity-mesh");
|
|
794
794
|
}
|
|
@@ -806,16 +806,16 @@ function Mn(...i) {
|
|
|
806
806
|
const Da = 1, Yc = `CSS3DObjectPlus@${Da}`, Uc = 216e-5, qc = 3e-3;
|
|
807
807
|
class Jc extends Zi {
|
|
808
808
|
constructor(e) {
|
|
809
|
-
var
|
|
810
|
-
const n = e.container, o = e.cornerPoints, s = (
|
|
809
|
+
var I, C, L;
|
|
810
|
+
const n = e.container, o = e.cornerPoints, s = (I = e.ratio) != null ? I : qc, r = (C = e.dpr) != null ? C : 1, a = (L = e.pointerEvents) != null ? L : "auto", l = Math.max(Uc, s), c = o[0].distanceTo(o[1]), u = o[1].distanceTo(o[2]), d = si(c / s * r), h = si(u / s * r), f = Mn(...o);
|
|
811
811
|
let v;
|
|
812
812
|
if (l === s)
|
|
813
813
|
n.style.width = `${d}px`, n.style.height = `${h}px`, v = n;
|
|
814
814
|
else {
|
|
815
|
-
const
|
|
816
|
-
|
|
815
|
+
const x = document.createElement("div");
|
|
816
|
+
x.style.width = `${d}px`, x.style.height = `${h}px`, x.style.pointerEvents = "none";
|
|
817
817
|
const O = s / l;
|
|
818
|
-
n.style.position = "absolute", n.style.left = "0", n.style.top = "0", n.style.width = `${O * d}px`, n.style.height = `${O * h}px`,
|
|
818
|
+
n.style.position = "absolute", n.style.left = "0", n.style.top = "0", n.style.width = `${O * d}px`, n.style.height = `${O * h}px`, x.appendChild(n), v = x;
|
|
819
819
|
}
|
|
820
820
|
super(v);
|
|
821
821
|
m(this, "version", Da);
|
|
@@ -853,19 +853,19 @@ class Jc extends Zi {
|
|
|
853
853
|
if (n.style.pointerEvents = a, this.scale.set(l, l, l), this.cornerPoints = o, this.ratio = s, this.container = n, e.mode && (this.mode = e.mode), l === s)
|
|
854
854
|
this.width = c, this.height = u, this.domWidthPx = d, this.domHeightPx = h, this.centerPosition = f;
|
|
855
855
|
else {
|
|
856
|
-
const
|
|
857
|
-
this.width =
|
|
856
|
+
const x = s / l;
|
|
857
|
+
this.width = x * c, this.height = x * u, this.domWidthPx = x * d, this.domHeightPx = x * h, this.centerPosition = new U().subVectors(f, o[0]).multiplyScalar(x).add(o[0]);
|
|
858
858
|
}
|
|
859
859
|
n.classList.add(`${Yc}__container`);
|
|
860
860
|
const g = new U().subVectors(o[1], o[0]), p = new U().subVectors(o[3], o[0]), A = new U().crossVectors(g, p).normalize();
|
|
861
861
|
this.lookAt(A);
|
|
862
|
-
const b = this.up.clone().applyQuaternion(this.quaternion), w = p.clone(),
|
|
863
|
-
this.rotateOnWorldAxis(
|
|
864
|
-
var
|
|
865
|
-
this.mode === "front" && ((
|
|
862
|
+
const b = this.up.clone().applyQuaternion(this.quaternion), w = p.clone(), k = new U().crossVectors(b, w).normalize();
|
|
863
|
+
this.rotateOnWorldAxis(k, b.angleTo(w)), this.position.copy(f), this.addEventListener("added", () => {
|
|
864
|
+
var x;
|
|
865
|
+
this.mode === "front" && ((x = this.opacityMesh) == null || x.removeFromParent()), this.addParentVisibleListener();
|
|
866
866
|
}), this.addEventListener("removed", () => {
|
|
867
|
-
var
|
|
868
|
-
(
|
|
867
|
+
var x;
|
|
868
|
+
(x = this.opacityMesh) == null || x.removeFromParent(), this.removeParentVisibleListener();
|
|
869
869
|
});
|
|
870
870
|
}
|
|
871
871
|
setVisible(e, n = { setSelfVisible: !0 }) {
|
|
@@ -905,7 +905,7 @@ class Jc extends Zi {
|
|
|
905
905
|
this.scale.applyMatrix4(e), (n = this.opacityMesh) == null || n.scale.applyMatrix4(e);
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
|
-
class Zc extends
|
|
908
|
+
class Zc extends E.Scene {
|
|
909
909
|
constructor() {
|
|
910
910
|
super();
|
|
911
911
|
}
|
|
@@ -915,7 +915,7 @@ class Zc extends C.Scene {
|
|
|
915
915
|
}), this;
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
|
-
class Kc extends
|
|
918
|
+
class Kc extends E.Scene {
|
|
919
919
|
constructor(e) {
|
|
920
920
|
super();
|
|
921
921
|
m(this, "scene");
|
|
@@ -935,7 +935,7 @@ class Kc extends C.Scene {
|
|
|
935
935
|
}), super.remove(...e), this;
|
|
936
936
|
}
|
|
937
937
|
}
|
|
938
|
-
class La extends
|
|
938
|
+
class La extends E.Group {
|
|
939
939
|
constructor(e) {
|
|
940
940
|
super();
|
|
941
941
|
m(this, "isCSS3DGroup", !0);
|
|
@@ -1014,7 +1014,7 @@ class In {
|
|
|
1014
1014
|
if (this.state.disposed)
|
|
1015
1015
|
return jt();
|
|
1016
1016
|
const o = (() => {
|
|
1017
|
-
const
|
|
1017
|
+
const k = {
|
|
1018
1018
|
ratio: 216e-5,
|
|
1019
1019
|
devicePixelRatio: 1,
|
|
1020
1020
|
mode: "front",
|
|
@@ -1022,7 +1022,7 @@ class In {
|
|
|
1022
1022
|
container: document.createElement("div"),
|
|
1023
1023
|
pointerEvents: "none"
|
|
1024
1024
|
};
|
|
1025
|
-
return Object.assign(
|
|
1025
|
+
return Object.assign(k, n);
|
|
1026
1026
|
})(), s = e.map(Pn);
|
|
1027
1027
|
if ((s == null ? void 0 : s.length) < 4)
|
|
1028
1028
|
return console.error(`${mn}: requires 4 point but params may have fewer`);
|
|
@@ -1033,11 +1033,11 @@ class In {
|
|
|
1033
1033
|
const v = () => {
|
|
1034
1034
|
if (h)
|
|
1035
1035
|
return;
|
|
1036
|
-
const
|
|
1037
|
-
!
|
|
1036
|
+
const k = f.mode === "front" ? this.getFrontCSS3DObjectGroup() : this.getBehindCSS3DObjectGroup();
|
|
1037
|
+
!k || k.add(f);
|
|
1038
1038
|
}, g = () => {
|
|
1039
1039
|
h || (v(), this.render(t), this.hooks.emit("render"));
|
|
1040
|
-
}, p = (
|
|
1040
|
+
}, p = (k) => this.setVisibleById(f.id, k), A = (k) => this.setEnabledById(f.id, k), b = () => (h = !0, f.removeFromParent(), !0), w = l === "front" ? De.frontModeStore.css3DRenderer : De.behindModeStore.css3DRenderer;
|
|
1041
1041
|
return c && g(), {
|
|
1042
1042
|
id: f.uuid,
|
|
1043
1043
|
container: u,
|
|
@@ -1050,7 +1050,7 @@ class In {
|
|
|
1050
1050
|
disable: () => A(!1),
|
|
1051
1051
|
setEnabled: A,
|
|
1052
1052
|
dispose: b,
|
|
1053
|
-
appendToElement: (
|
|
1053
|
+
appendToElement: (k) => w.setWrapper(k)
|
|
1054
1054
|
};
|
|
1055
1055
|
});
|
|
1056
1056
|
m(this, "setVisibleById", (t, e) => {
|
|
@@ -1857,24 +1857,24 @@ function Ke(i, t, e, n, o, s, r, a, l, c, u, d) {
|
|
|
1857
1857
|
g[i[v].key] = v;
|
|
1858
1858
|
const p = [], A = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map();
|
|
1859
1859
|
for (v = f; v--; ) {
|
|
1860
|
-
const
|
|
1861
|
-
let
|
|
1862
|
-
|
|
1860
|
+
const C = d(o, s, v), L = e(C);
|
|
1861
|
+
let x = r.get(L);
|
|
1862
|
+
x ? n && x.p(C, t) : (x = c(L, C), x.c()), A.set(L, p[v] = x), L in g && b.set(L, Math.abs(v - g[L]));
|
|
1863
1863
|
}
|
|
1864
|
-
const w = /* @__PURE__ */ new Set(),
|
|
1865
|
-
function
|
|
1866
|
-
P(
|
|
1864
|
+
const w = /* @__PURE__ */ new Set(), k = /* @__PURE__ */ new Set();
|
|
1865
|
+
function I(C) {
|
|
1866
|
+
P(C, 1), C.m(a, u), r.set(C.key, C), u = C.first, f--;
|
|
1867
1867
|
}
|
|
1868
1868
|
for (; h && f; ) {
|
|
1869
|
-
const
|
|
1870
|
-
|
|
1869
|
+
const C = p[f - 1], L = i[h - 1], x = C.key, O = L.key;
|
|
1870
|
+
C === L ? (u = C.first, h--, f--) : A.has(O) ? !r.has(x) || w.has(x) ? I(C) : k.has(O) ? h-- : b.get(x) > b.get(O) ? (k.add(x), I(C)) : (w.add(O), h--) : (l(L, r), h--);
|
|
1871
1871
|
}
|
|
1872
1872
|
for (; h--; ) {
|
|
1873
|
-
const
|
|
1874
|
-
A.has(
|
|
1873
|
+
const C = i[h];
|
|
1874
|
+
A.has(C.key) || l(C, r);
|
|
1875
1875
|
}
|
|
1876
1876
|
for (; f; )
|
|
1877
|
-
|
|
1877
|
+
I(p[f - 1]);
|
|
1878
1878
|
return p;
|
|
1879
1879
|
}
|
|
1880
1880
|
function Re(i, t) {
|
|
@@ -2382,27 +2382,27 @@ function Gu(i, t, e) {
|
|
|
2382
2382
|
function c(A) {
|
|
2383
2383
|
if (!(l === null || A.floorIndex === l))
|
|
2384
2384
|
return !1;
|
|
2385
|
-
const w = new Mt(),
|
|
2386
|
-
w.set(
|
|
2385
|
+
const w = new Mt(), k = o.camera.position.clone(), I = new U(A.position.x, A.position.y, A.position.z), C = I.distanceTo(k);
|
|
2386
|
+
w.set(k.clone(), I.clone().sub(k).normalize());
|
|
2387
2387
|
const [L] = o.model.intersectRaycaster(w);
|
|
2388
|
-
return !(L && L.distance + 1 <
|
|
2388
|
+
return !(L && L.distance + 1 < C);
|
|
2389
2389
|
}
|
|
2390
2390
|
function u(A, b) {
|
|
2391
|
-
const
|
|
2392
|
-
return `translate(${
|
|
2391
|
+
const k = new U(A.position.x, A.position.y, A.position.z).clone().project(o.camera), I = Math.ceil((k.x + 1) / 2 * b.x), C = Math.ceil((-k.y + 1) / 2 * b.y);
|
|
2392
|
+
return `translate(${I}px, ${C}px)`;
|
|
2393
2393
|
}
|
|
2394
2394
|
function d(A) {
|
|
2395
|
-
const { rendererSize: b, shownFloor: w } = A,
|
|
2396
|
-
function
|
|
2397
|
-
const
|
|
2398
|
-
if (
|
|
2399
|
-
return
|
|
2395
|
+
const { rendererSize: b, shownFloor: w } = A, k = /* @__PURE__ */ new Map();
|
|
2396
|
+
function I(L) {
|
|
2397
|
+
const x = k.get(L.id);
|
|
2398
|
+
if (x)
|
|
2399
|
+
return x;
|
|
2400
2400
|
const { x: O, y: W, z: _ } = L.position, V = new U(O, W, _).clone().distanceTo(o.camera.position);
|
|
2401
|
-
return
|
|
2401
|
+
return k.set(L.id, V), V;
|
|
2402
2402
|
}
|
|
2403
2403
|
return s.map((L) => {
|
|
2404
|
-
const
|
|
2405
|
-
return fe(Q({}, L), { visible:
|
|
2404
|
+
const x = c(L), O = x ? u(L, b) : L.transform, W = I(L), V = s.filter((B) => B.visible && I(B) < W).length * 10;
|
|
2405
|
+
return fe(Q({}, L), { visible: x, transform: O, zIndex: V });
|
|
2406
2406
|
});
|
|
2407
2407
|
}
|
|
2408
2408
|
function h() {
|
|
@@ -3055,33 +3055,33 @@ function kd(i, t, e) {
|
|
|
3055
3055
|
].every((Ae) => Id(Ae, Se));
|
|
3056
3056
|
};
|
|
3057
3057
|
}
|
|
3058
|
-
const A = document.body.clientWidth, b = document.body.clientHeight, w = d.roomLabel,
|
|
3059
|
-
let L = 0,
|
|
3058
|
+
const A = document.body.clientWidth, b = document.body.clientHeight, w = d.roomLabel, k = w.positionInImage.x * 100 + "%", I = w.positionInImage.y * 100 + "%", C = (A < 500 || b < 500 ? 10 : 14) + "px";
|
|
3059
|
+
let L = 0, x = 0, O = !1;
|
|
3060
3060
|
h.subscribe(function(B) {
|
|
3061
3061
|
e(16, O = !!B && B.id === d.id);
|
|
3062
3062
|
});
|
|
3063
3063
|
const W = (V) => {
|
|
3064
3064
|
e(4, L = V.detail);
|
|
3065
3065
|
}, _ = (V) => {
|
|
3066
|
-
e(5,
|
|
3066
|
+
e(5, x = V.detail);
|
|
3067
3067
|
};
|
|
3068
3068
|
return i.$$set = (V) => {
|
|
3069
3069
|
"pxmm" in V && e(12, l = V.pxmm), "roomAreaEnable" in V && e(0, c = V.roomAreaEnable), "roomNameEnable" in V && e(1, u = V.roomNameEnable), "room" in V && e(2, d = V.room), "hoveredRoom" in V && e(13, h = V.hoveredRoom), "getRoomAreaText" in V && e(14, f = V.getRoomAreaText), "getLabelElement" in V && e(3, v = V.getLabelElement), "adaptiveRoomLabelVisibleEnable" in V && e(15, g = V.adaptiveRoomLabelVisibleEnable);
|
|
3070
3070
|
}, i.$$.update = () => {
|
|
3071
|
-
i.$$.dirty & 12 && e(8, n = v == null ? void 0 : v(d)), i.$$.dirty & 16388 && e(7, o = d.size ? f(d.size) : ""), i.$$.dirty & 48 && e(18, s = { width: L, height:
|
|
3071
|
+
i.$$.dirty & 12 && e(8, n = v == null ? void 0 : v(d)), i.$$.dirty & 16388 && e(7, o = d.size ? f(d.size) : ""), i.$$.dirty & 48 && e(18, s = { width: L, height: x }), i.$$.dirty & 262148 && e(17, r = s ? p(d, s) : void 0), i.$$.dirty & 233472 && e(6, a = g ? O ? !0 : !!(r != null && r(l)) : !0);
|
|
3072
3072
|
}, [
|
|
3073
3073
|
c,
|
|
3074
3074
|
u,
|
|
3075
3075
|
d,
|
|
3076
3076
|
v,
|
|
3077
3077
|
L,
|
|
3078
|
-
|
|
3078
|
+
x,
|
|
3079
3079
|
a,
|
|
3080
3080
|
o,
|
|
3081
3081
|
n,
|
|
3082
|
-
|
|
3083
|
-
x,
|
|
3082
|
+
k,
|
|
3084
3083
|
I,
|
|
3084
|
+
C,
|
|
3085
3085
|
l,
|
|
3086
3086
|
h,
|
|
3087
3087
|
f,
|
|
@@ -3400,8 +3400,8 @@ function Bd(i, t, e) {
|
|
|
3400
3400
|
});
|
|
3401
3401
|
d.unshift({ left: 0, bottom: 0 }), d.push(a ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
|
|
3402
3402
|
const h = u[u.length - 1] - u[0], f = u.map((v, g, p) => {
|
|
3403
|
-
const A = g === 0 ? 0 : v - p[g - 1], b = g === 0 ? 0 : (v + p[g - 1]) / 2, w = a ? (b - s.min.x - Ot + Qt) / l : 0,
|
|
3404
|
-
return { left: w, bottom:
|
|
3403
|
+
const A = g === 0 ? 0 : v - p[g - 1], b = g === 0 ? 0 : (v + p[g - 1]) / 2, w = a ? (b - s.min.x - Ot + Qt) / l : 0, k = a ? 0 : (b - s.min.y - Ot + Qt) / c;
|
|
3404
|
+
return { left: w, bottom: k, distance: A };
|
|
3405
3405
|
}).filter(({ distance: v }) => v / h > 0.1);
|
|
3406
3406
|
return i.$$set = (v) => {
|
|
3407
3407
|
"type" in v && e(0, n = v.type), "data" in v && e(5, o = v.data), "bounding" in v && e(6, s = v.bounding), "getRuleDistanceText" in v && e(1, r = v.getRuleDistanceText);
|
|
@@ -4238,13 +4238,13 @@ function fh(i) {
|
|
|
4238
4238
|
e.$set(w), A[2] || A[3] ? h ? (h.p(A, b), b & 12 && P(h, 1)) : (h = ps(A), h.c(), P(h, 1), h.m(t, o)) : h && (se(), D(h, 1, 1, () => {
|
|
4239
4239
|
h = null;
|
|
4240
4240
|
}), re());
|
|
4241
|
-
const
|
|
4241
|
+
const k = b & 258 ? Re(f, [
|
|
4242
4242
|
{
|
|
4243
4243
|
floorplanData: A[8],
|
|
4244
4244
|
floorIndex: A[1]
|
|
4245
4245
|
}
|
|
4246
4246
|
]) : {};
|
|
4247
|
-
s.$set(
|
|
4247
|
+
s.$set(k), A[4] ? g ? (g.p(A, b), b & 16 && P(g, 1)) : (g = gs(A), g.c(), P(g, 1), g.m(t, a)) : g && (se(), D(g, 1, 1, () => {
|
|
4248
4248
|
g = null;
|
|
4249
4249
|
}), re()), A[7] ? p ? (p.p(A, b), b & 128 && P(p, 1)) : (p = As(A), p.c(), P(p, 1), p.m(t, null)) : p && (se(), D(p, 1, 1, () => {
|
|
4250
4250
|
p = null;
|
|
@@ -4548,9 +4548,9 @@ function Ah(i) {
|
|
|
4548
4548
|
};
|
|
4549
4549
|
}
|
|
4550
4550
|
function vh(i, t, e) {
|
|
4551
|
-
let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: u } = t, { compassEnable: d } = t, { roomLabelsEnable: h } = t, { roomAreaEnable: f } = t, { roomNameEnable: v } = t, { ruleLabelsEnable: g } = t, { floorplanData: p } = t, { lastPanoramaLongitude: A } = t, { cameraImageUrl: b } = t, { getRoomAreaText: w } = t, { getLabelElement:
|
|
4552
|
-
return i.$$set = (
|
|
4553
|
-
"duration" in
|
|
4551
|
+
let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: u } = t, { compassEnable: d } = t, { roomLabelsEnable: h } = t, { roomAreaEnable: f } = t, { roomNameEnable: v } = t, { ruleLabelsEnable: g } = t, { floorplanData: p } = t, { lastPanoramaLongitude: A } = t, { cameraImageUrl: b } = t, { getRoomAreaText: w } = t, { getLabelElement: k } = t, { getRuleDistanceText: I } = t, { adaptiveRoomLabelVisibleEnable: C } = t, { highlightData: L } = t;
|
|
4552
|
+
return i.$$set = (x) => {
|
|
4553
|
+
"duration" in x && e(0, n = x.duration), "visible" in x && e(1, o = x.visible), "northDesc" in x && e(2, s = x.northDesc), "panoIndex" in x && e(3, r = x.panoIndex), "floorIndex" in x && e(4, a = x.floorIndex), "cameraEnable" in x && e(5, l = x.cameraEnable), "hoverEnable" in x && e(6, c = x.hoverEnable), "highlightEnable" in x && e(7, u = x.highlightEnable), "compassEnable" in x && e(8, d = x.compassEnable), "roomLabelsEnable" in x && e(9, h = x.roomLabelsEnable), "roomAreaEnable" in x && e(10, f = x.roomAreaEnable), "roomNameEnable" in x && e(11, v = x.roomNameEnable), "ruleLabelsEnable" in x && e(12, g = x.ruleLabelsEnable), "floorplanData" in x && e(13, p = x.floorplanData), "lastPanoramaLongitude" in x && e(14, A = x.lastPanoramaLongitude), "cameraImageUrl" in x && e(15, b = x.cameraImageUrl), "getRoomAreaText" in x && e(16, w = x.getRoomAreaText), "getLabelElement" in x && e(17, k = x.getLabelElement), "getRuleDistanceText" in x && e(18, I = x.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in x && e(19, C = x.adaptiveRoomLabelVisibleEnable), "highlightData" in x && e(20, L = x.highlightData);
|
|
4554
4554
|
}, [
|
|
4555
4555
|
n,
|
|
4556
4556
|
o,
|
|
@@ -4569,9 +4569,9 @@ function vh(i, t, e) {
|
|
|
4569
4569
|
A,
|
|
4570
4570
|
b,
|
|
4571
4571
|
w,
|
|
4572
|
-
|
|
4573
|
-
x,
|
|
4572
|
+
k,
|
|
4574
4573
|
I,
|
|
4574
|
+
C,
|
|
4575
4575
|
L
|
|
4576
4576
|
];
|
|
4577
4577
|
}
|
|
@@ -4713,12 +4713,12 @@ function Eo(i, t, e = Dt.BOUNDING_CENTER) {
|
|
|
4713
4713
|
return e === Dt.BOUNDING_CENTER ? (i.model.bounding.max.y + i.model.bounding.min.y) / 2 : e === Dt.CEILING ? o : n;
|
|
4714
4714
|
}
|
|
4715
4715
|
function Co(i, t, e, n) {
|
|
4716
|
-
const o = Eo(i, e, n == null ? void 0 : n.attachedTo), s = new
|
|
4716
|
+
const o = Eo(i, e, n == null ? void 0 : n.attachedTo), s = new E.Vector3(0, o, 0), r = new E.Vector3(1, o, 0), a = s.clone().project(i.camera), l = r.clone().project(i.camera);
|
|
4717
4717
|
return Math.abs((l.x - a.x) / 1e3) * (t.getBoundingClientRect().width / 2);
|
|
4718
4718
|
}
|
|
4719
4719
|
class zn {
|
|
4720
4720
|
constructor(t, e) {
|
|
4721
|
-
m(this, "VERSION", "2.14.
|
|
4721
|
+
m(this, "VERSION", "2.14.4-alpha.1");
|
|
4722
4722
|
m(this, "five");
|
|
4723
4723
|
m(this, "hooks", new Zt());
|
|
4724
4724
|
m(this, "staticPrefix", "//vrlab-static.ljcdn.com");
|
|
@@ -5314,7 +5314,7 @@ class zh extends zt {
|
|
|
5314
5314
|
}
|
|
5315
5315
|
updatePosition() {
|
|
5316
5316
|
var a;
|
|
5317
|
-
const e = Eo(this.five, this.floorIndex, this.state.config.attachedTo), n = (a = this.five.model) == null ? void 0 : a.bounding.getCenter(new
|
|
5317
|
+
const e = Eo(this.five, this.floorIndex, this.state.config.attachedTo), n = (a = this.five.model) == null ? void 0 : a.bounding.getCenter(new E.Vector3()).setY(e);
|
|
5318
5318
|
if (!n)
|
|
5319
5319
|
return;
|
|
5320
5320
|
const o = n.clone().project(this.five.camera), s = (o.x + 1) / 2, r = -(o.y - 1) / 2;
|
|
@@ -5485,7 +5485,7 @@ class Bh extends zt {
|
|
|
5485
5485
|
}
|
|
5486
5486
|
updatePosition() {
|
|
5487
5487
|
var a;
|
|
5488
|
-
const e = Eo(this.five, this.floorIndex, this.state.config.attachedTo), n = (a = this.five.model) == null ? void 0 : a.bounding.getCenter(new
|
|
5488
|
+
const e = Eo(this.five, this.floorIndex, this.state.config.attachedTo), n = (a = this.five.model) == null ? void 0 : a.bounding.getCenter(new E.Vector3()).setY(e);
|
|
5489
5489
|
if (!n)
|
|
5490
5490
|
return;
|
|
5491
5491
|
const o = n.clone().project(this.five.camera), s = (o.x + 1) / 2, r = -(o.y - 1) / 2;
|
|
@@ -5649,8 +5649,8 @@ function Qh(i, t, e) {
|
|
|
5649
5649
|
const p = v.bounding, A = v.observers[g];
|
|
5650
5650
|
if (!A)
|
|
5651
5651
|
return "";
|
|
5652
|
-
const b = (p.max.x - p.min.x) * r, w = (p.max.y - p.min.y) * r,
|
|
5653
|
-
return `translate(${
|
|
5652
|
+
const b = (p.max.x - p.min.x) * r, w = (p.max.y - p.min.y) * r, k = Math.floor(A.positionInImage.x * b), I = Math.floor(A.positionInImage.y * w);
|
|
5653
|
+
return `translate(${k}px, ${I}px)`;
|
|
5654
5654
|
}
|
|
5655
5655
|
function h(v) {
|
|
5656
5656
|
e(6, c = v);
|
|
@@ -6017,27 +6017,27 @@ function Uh(i) {
|
|
|
6017
6017
|
};
|
|
6018
6018
|
}
|
|
6019
6019
|
function qh(i, t, e) {
|
|
6020
|
-
var w,
|
|
6021
|
-
let { five: n } = t, { visible: o } = t, { hoverEnable: s } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, { highlightData: c } = t, u = 0, d = (
|
|
6022
|
-
function p(
|
|
6023
|
-
e(11, d = n.work.observers[
|
|
6020
|
+
var w, k;
|
|
6021
|
+
let { five: n } = t, { visible: o } = t, { hoverEnable: s } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, { highlightData: c } = t, u = 0, d = (k = (w = n.work.observers[n.getCurrentState().panoIndex]) == null ? void 0 : w.floorIndex) != null ? k : 0, h = 0, f = 0, v = 0, g = 0;
|
|
6022
|
+
function p(I) {
|
|
6023
|
+
e(11, d = n.work.observers[I].floorIndex);
|
|
6024
6024
|
}
|
|
6025
6025
|
Ze(() => (n.on("panoArrived", p), () => {
|
|
6026
6026
|
n.off("panoArrived", p);
|
|
6027
6027
|
}));
|
|
6028
|
-
const A = (
|
|
6029
|
-
e(7, h =
|
|
6030
|
-
}, b = (
|
|
6031
|
-
e(8, f =
|
|
6028
|
+
const A = (I) => {
|
|
6029
|
+
e(7, h = I.detail);
|
|
6030
|
+
}, b = (I) => {
|
|
6031
|
+
e(8, f = I.detail);
|
|
6032
6032
|
};
|
|
6033
|
-
return i.$$set = (
|
|
6034
|
-
"five" in
|
|
6033
|
+
return i.$$set = (I) => {
|
|
6034
|
+
"five" in I && e(0, n = I.five), "visible" in I && e(1, o = I.visible), "hoverEnable" in I && e(2, s = I.hoverEnable), "floorplanData" in I && e(3, r = I.floorplanData), "cameraImageUrl" in I && e(4, a = I.cameraImageUrl), "extraObjects" in I && e(5, l = I.extraObjects), "highlightData" in I && e(6, c = I.highlightData);
|
|
6035
6035
|
}, i.$$.update = () => {
|
|
6036
6036
|
if (i.$$.dirty & 904) {
|
|
6037
|
-
const
|
|
6038
|
-
return
|
|
6037
|
+
const I = Math.min(h, f), { max: C, min: L } = r.bounding, x = C.x - L.x, O = C.y - L.y, W = function() {
|
|
6038
|
+
return x > O ? [I, I / x * O] : [I / O * x, I];
|
|
6039
6039
|
}();
|
|
6040
|
-
e(9, v = W[0]), e(12, g = W[1]), e(10, u = v /
|
|
6040
|
+
e(9, v = W[0]), e(12, g = W[1]), e(10, u = v / x);
|
|
6041
6041
|
}
|
|
6042
6042
|
}, [
|
|
6043
6043
|
n,
|
|
@@ -6310,7 +6310,7 @@ const Cb = (i, t) => new Zh(i, t), Pb = [
|
|
|
6310
6310
|
{ roomType: "100900000015", description: "\u5546\u94FA" },
|
|
6311
6311
|
{ roomType: "100900000016", description: "\u5199\u5B57\u697C" }
|
|
6312
6312
|
], Vi = (i, t, e) => {
|
|
6313
|
-
const n = new
|
|
6313
|
+
const n = new E.Matrix4(), o = new E.Euler(i, t, e, "YXZ");
|
|
6314
6314
|
return n.makeRotationFromEuler(o), n;
|
|
6315
6315
|
}, Kh = (i, {
|
|
6316
6316
|
scale: t,
|
|
@@ -6342,20 +6342,20 @@ const xb = (i, t) => {
|
|
|
6342
6342
|
const v = i.model.bounding, g = v.max.x - v.min.x, p = v.max.z - v.min.z, A = Math.max(g, p), w = yield new ka().loadAsync(h);
|
|
6343
6343
|
hl(w, {
|
|
6344
6344
|
transparent: !0,
|
|
6345
|
-
side:
|
|
6346
|
-
blending:
|
|
6345
|
+
side: E.DoubleSide,
|
|
6346
|
+
blending: E.AdditiveBlending
|
|
6347
6347
|
});
|
|
6348
|
-
const
|
|
6348
|
+
const k = [0, f - Math.PI / 2, 0], {
|
|
6349
6349
|
model: {
|
|
6350
6350
|
bounding: {
|
|
6351
|
-
max: { x, z:
|
|
6352
|
-
min: { x: L, y:
|
|
6351
|
+
max: { x: I, z: C },
|
|
6352
|
+
min: { x: L, y: x, z: O }
|
|
6353
6353
|
}
|
|
6354
6354
|
}
|
|
6355
6355
|
} = i;
|
|
6356
|
-
o.yBase =
|
|
6357
|
-
const W = { x: (
|
|
6358
|
-
return Kh(w, { position: W, rotation:
|
|
6356
|
+
o.yBase = x;
|
|
6357
|
+
const W = { x: (I + L) / 2, y: x - 1.6, z: (C + O) / 2 }, _ = 45e-4 * A;
|
|
6358
|
+
return Kh(w, { position: W, rotation: k, scale: _ }), o.object = w, !0;
|
|
6359
6359
|
}), r = ({ latitude: d }) => {
|
|
6360
6360
|
if (!o.object)
|
|
6361
6361
|
return;
|
|
@@ -6393,16 +6393,16 @@ const ef = ({ x: i, y: t, z: e }) => new U(i, t, e), Db = (i, t) => {
|
|
|
6393
6393
|
const w = (W = b == null ? void 0 : b.position) != null ? W : o;
|
|
6394
6394
|
if (!w)
|
|
6395
6395
|
return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));
|
|
6396
|
-
const
|
|
6397
|
-
if (e.rad =
|
|
6398
|
-
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${
|
|
6399
|
-
const L = yield new ka().loadAsync(
|
|
6400
|
-
L.position.copy(
|
|
6401
|
-
const
|
|
6402
|
-
if (!
|
|
6403
|
-
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${
|
|
6396
|
+
const k = ef(w), I = (_ = b == null ? void 0 : b.rad) != null ? _ : s, C = (V = b == null ? void 0 : b.fbx_url) != null ? V : r;
|
|
6397
|
+
if (e.rad = I, I === void 0)
|
|
6398
|
+
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${I}`));
|
|
6399
|
+
const L = yield new ka().loadAsync(C);
|
|
6400
|
+
L.position.copy(k), L.rotation.z = I, L.scale.set(0.8, 0.8, 0.8), hl(L, { transparent: !0, side: E.DoubleSide });
|
|
6401
|
+
const x = (X = (G = (R = (B = L.children) == null ? void 0 : B[0]) == null ? void 0 : R.children) == null ? void 0 : G[3]) == null ? void 0 : X.clone();
|
|
6402
|
+
if (!x)
|
|
6403
|
+
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${x}`));
|
|
6404
6404
|
const O = (H = t.name) != null ? H : "\u5165\u6237\u95E8";
|
|
6405
|
-
return
|
|
6405
|
+
return x.material = new Cn({ transparent: !0, map: $h(O) }), x.renderOrder = 3, L.children[0].add(x), e.object = L, !0;
|
|
6406
6406
|
}), c = () => {
|
|
6407
6407
|
if (e.animation)
|
|
6408
6408
|
return;
|
|
@@ -6410,10 +6410,10 @@ const ef = ({ x: i, y: t, z: e }) => new U(i, t, e), Db = (i, t) => {
|
|
|
6410
6410
|
return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ", e.object);
|
|
6411
6411
|
const b = 1, w = new Ac(e.object);
|
|
6412
6412
|
a.push(w);
|
|
6413
|
-
const
|
|
6414
|
-
|
|
6415
|
-
let
|
|
6416
|
-
const
|
|
6413
|
+
const k = w.clipAction(e.object.animations[0]);
|
|
6414
|
+
k.timeScale = b;
|
|
6415
|
+
let I;
|
|
6416
|
+
const C = () => {
|
|
6417
6417
|
let W = 0, _ = 0;
|
|
6418
6418
|
const V = 1e3 / 30, B = (R) => {
|
|
6419
6419
|
W = requestAnimationFrame(B);
|
|
@@ -6424,18 +6424,18 @@ const ef = ({ x: i, y: t, z: e }) => new U(i, t, e), Db = (i, t) => {
|
|
|
6424
6424
|
cancelAnimationFrame(W);
|
|
6425
6425
|
};
|
|
6426
6426
|
}, O = { play: () => {
|
|
6427
|
-
|
|
6427
|
+
I || (k.play(), I = C(), requestAnimationFrame(() => {
|
|
6428
6428
|
e.object && e.object.rotation.z !== e.rad && (e.object.rotation.z = e.rad);
|
|
6429
6429
|
}));
|
|
6430
6430
|
}, stop: () => {
|
|
6431
|
-
|
|
6431
|
+
k.stop(), I == null || I(), I = void 0;
|
|
6432
6432
|
} };
|
|
6433
6433
|
e.animation = O;
|
|
6434
6434
|
}, u = (b) => {
|
|
6435
|
-
var
|
|
6435
|
+
var k;
|
|
6436
6436
|
if (!e.object)
|
|
6437
6437
|
return console.error("ModelEntryDoorGuidePlugin.enable(): object is ", e.object);
|
|
6438
|
-
((
|
|
6438
|
+
((k = b == null ? void 0 : b.animationEnable) != null ? k : n) && (e.animation || c(), e.animation.play()), i.scene.add(e.object), i.needsRender = !0;
|
|
6439
6439
|
}, d = () => {
|
|
6440
6440
|
!e.object || (e.animation && e.animation.stop(), i.scene.remove(e.object), i.needsRender = !0);
|
|
6441
6441
|
}, h = (b) => b === "Floorplan" ? u() : d();
|
|
@@ -6560,8 +6560,8 @@ const so = (i, t, e) => {
|
|
|
6560
6560
|
const { from: d, to: h } = n(s);
|
|
6561
6561
|
return yield new Promise((f) => {
|
|
6562
6562
|
const v = ({ progress: w }) => {
|
|
6563
|
-
const
|
|
6564
|
-
|
|
6563
|
+
const k = {};
|
|
6564
|
+
k.longitude = Oi(d.longitude, h.longitude, w), k.latitude = Oi(d.latitude, h.latitude, w), k.fov = Oi(d.fov, h.fov, w), i.setState(k, !0);
|
|
6565
6565
|
}, g = () => {
|
|
6566
6566
|
f(!0);
|
|
6567
6567
|
}, p = () => {
|
|
@@ -6758,13 +6758,13 @@ const cf = `<style type="text/css">
|
|
|
6758
6758
|
if (!b)
|
|
6759
6759
|
return !1;
|
|
6760
6760
|
for (const w in p) {
|
|
6761
|
-
const
|
|
6761
|
+
const k = p[w], { standingPosition: I } = b.observers[0], C = k.map(({ x: L, z: x, observers: O }) => {
|
|
6762
6762
|
const W = O.length > 0 ? g.rooms[g.observers[O[0]]].name : "", _ = A[W] ? A[W].floor : null;
|
|
6763
6763
|
let V = 1 / 0, B = {
|
|
6764
6764
|
index: 0,
|
|
6765
|
-
x:
|
|
6766
|
-
y:
|
|
6767
|
-
z:
|
|
6765
|
+
x: I.x,
|
|
6766
|
+
y: I.y,
|
|
6767
|
+
z: I.z
|
|
6768
6768
|
};
|
|
6769
6769
|
O.forEach((Y) => {
|
|
6770
6770
|
if (!b.observers[Y])
|
|
@@ -6774,28 +6774,28 @@ const cf = `<style type="text/css">
|
|
|
6774
6774
|
x: ae.x,
|
|
6775
6775
|
y: ae.y,
|
|
6776
6776
|
z: ae.z
|
|
6777
|
-
}, de = uf({ x: L, z:
|
|
6777
|
+
}, de = uf({ x: L, z: x }, he);
|
|
6778
6778
|
_ ? de < V && Math.abs(he.y - _) < 0.3 && (V = de, B = he) : de < V && (V = de, B = he);
|
|
6779
6779
|
});
|
|
6780
|
-
const R = new U(L, B.y,
|
|
6780
|
+
const R = new U(L, B.y, x);
|
|
6781
6781
|
Object.assign(R, { observers: O });
|
|
6782
|
-
const G = A[W] ? A[W].roof : null, X = G ? new U(L, G,
|
|
6782
|
+
const G = A[W] ? A[W].roof : null, X = G ? new U(L, G, x) : null;
|
|
6783
6783
|
return X && Object.assign(X, { observers: O }), { origin: R, vertical: X };
|
|
6784
6784
|
});
|
|
6785
6785
|
r[w] = {
|
|
6786
|
-
origins:
|
|
6786
|
+
origins: C.map((L) => L.origin),
|
|
6787
6787
|
rules: []
|
|
6788
6788
|
};
|
|
6789
|
-
for (const { origin: L, vertical:
|
|
6790
|
-
if (!
|
|
6789
|
+
for (const { origin: L, vertical: x } of C) {
|
|
6790
|
+
if (!x)
|
|
6791
6791
|
continue;
|
|
6792
|
-
const O = n(w, L.distanceTo(
|
|
6793
|
-
o.append(O), r[w].rules.push({ vertical: !0, rule: [L,
|
|
6792
|
+
const O = n(w, L.distanceTo(x));
|
|
6793
|
+
o.append(O), r[w].rules.push({ vertical: !0, rule: [L, x], $element: O });
|
|
6794
6794
|
}
|
|
6795
|
-
for (let L = 0; L <
|
|
6796
|
-
let
|
|
6797
|
-
|
|
6798
|
-
const { origin: O } =
|
|
6795
|
+
for (let L = 0; L < C.length; L++) {
|
|
6796
|
+
let x = L + 1;
|
|
6797
|
+
x >= C.length && (x = 0);
|
|
6798
|
+
const { origin: O } = C[L], { origin: W } = C[x], _ = n(w, O.distanceTo(W));
|
|
6799
6799
|
o.append(_), r[w].rules.push({ vertical: !1, rule: [O, W], $element: _ });
|
|
6800
6800
|
}
|
|
6801
6801
|
}
|
|
@@ -6805,7 +6805,7 @@ const cf = `<style type="text/css">
|
|
|
6805
6805
|
if (!b || !w)
|
|
6806
6806
|
throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");
|
|
6807
6807
|
return e.loaded = !1, e.options = Q(Q({}, e.options), A || {}), i.model.loaded ? a(b, w) : yield new Promise(
|
|
6808
|
-
(
|
|
6808
|
+
(k) => i.once("modelLoaded", () => k(a(b, w)))
|
|
6809
6809
|
);
|
|
6810
6810
|
});
|
|
6811
6811
|
t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
|
|
@@ -6827,12 +6827,12 @@ const cf = `<style type="text/css">
|
|
|
6827
6827
|
{ x: 0, y: b },
|
|
6828
6828
|
{ x: A, y: b }
|
|
6829
6829
|
]
|
|
6830
|
-
],
|
|
6831
|
-
for (let
|
|
6832
|
-
const
|
|
6833
|
-
|
|
6830
|
+
], k = [];
|
|
6831
|
+
for (let I = 0; I < w.length; I++) {
|
|
6832
|
+
const C = pl([g, p], [w[I][0], w[I][1]], !0);
|
|
6833
|
+
C && k.push(C);
|
|
6834
6834
|
}
|
|
6835
|
-
return
|
|
6835
|
+
return k.length === 0 ? !1 : k;
|
|
6836
6836
|
}, u = () => {
|
|
6837
6837
|
var O;
|
|
6838
6838
|
const g = (O = i.getElement()) == null ? void 0 : O.parentElement;
|
|
@@ -6850,7 +6850,7 @@ const cf = `<style type="text/css">
|
|
|
6850
6850
|
_.style.display = "none";
|
|
6851
6851
|
return;
|
|
6852
6852
|
}
|
|
6853
|
-
const
|
|
6853
|
+
const k = A.position, I = A.getWorldDirection(new U()), C = g.clientWidth, L = g.clientHeight;
|
|
6854
6854
|
if (b !== Ve.Mode.Panorama) {
|
|
6855
6855
|
for (const W in r)
|
|
6856
6856
|
for (const { $element: _ } of r[W].rules)
|
|
@@ -6860,19 +6860,19 @@ const cf = `<style type="text/css">
|
|
|
6860
6860
|
for (const W in r)
|
|
6861
6861
|
for (const { $element: _ } of r[W].rules)
|
|
6862
6862
|
_.style.display = W === w ? "block" : "none";
|
|
6863
|
-
const [
|
|
6864
|
-
const V = W.clone().setY(0).sub(
|
|
6863
|
+
const [x] = r[w].origins.slice().filter((W) => W.observers.indexOf(p) >= 0).sort((W, _) => {
|
|
6864
|
+
const V = W.clone().setY(0).sub(k).normalize().angleTo(I.clone().setY(0)), B = _.clone().setY(0).sub(k).normalize().angleTo(I.clone().setY(0));
|
|
6865
6865
|
return V - B;
|
|
6866
6866
|
});
|
|
6867
6867
|
for (const { rule: W, vertical: _, $element: V } of r[w].rules) {
|
|
6868
6868
|
const [B, R] = W, G = V.querySelector(".PanoRulerPlugin-rule-line");
|
|
6869
6869
|
if (!G)
|
|
6870
6870
|
return;
|
|
6871
|
-
if (!
|
|
6871
|
+
if (!x) {
|
|
6872
6872
|
V.style.display = "none";
|
|
6873
6873
|
continue;
|
|
6874
6874
|
}
|
|
6875
|
-
if (B !==
|
|
6875
|
+
if (B !== x && R !== x) {
|
|
6876
6876
|
V.style.display = "none";
|
|
6877
6877
|
continue;
|
|
6878
6878
|
}
|
|
@@ -6884,26 +6884,26 @@ const cf = `<style type="text/css">
|
|
|
6884
6884
|
V.style.display = "none";
|
|
6885
6885
|
continue;
|
|
6886
6886
|
}
|
|
6887
|
-
if (B.clone().sub(
|
|
6887
|
+
if (B.clone().sub(k).normalize().angleTo(I) > Math.PI / 2) {
|
|
6888
6888
|
V.style.display = "none";
|
|
6889
6889
|
continue;
|
|
6890
6890
|
}
|
|
6891
|
-
if (R.clone().sub(
|
|
6891
|
+
if (R.clone().sub(k).normalize().angleTo(I) > Math.PI / 2) {
|
|
6892
6892
|
V.style.display = "none";
|
|
6893
6893
|
continue;
|
|
6894
6894
|
}
|
|
6895
6895
|
const ee = B.distanceTo(R);
|
|
6896
|
-
if (R.clone().sub(R.clone().sub(B).divide(new U(2, 2, 2))).distanceTo(
|
|
6896
|
+
if (R.clone().sub(R.clone().sub(B).divide(new U(2, 2, 2))).distanceTo(k) / ee > 8) {
|
|
6897
6897
|
V.style.display = "none";
|
|
6898
6898
|
continue;
|
|
6899
6899
|
}
|
|
6900
|
-
const he = B.clone().project(A), de = (he.x + 1) / 2 *
|
|
6900
|
+
const he = B.clone().project(A), de = (he.x + 1) / 2 * C, pe = (-he.y + 1) / 2 * L, Ce = R.clone().project(A), Pe = (Ce.x + 1) / 2 * C, Se = (-Ce.y + 1) / 2 * L, ce = Math.sqrt(Math.pow(Pe - de, 2) + Math.pow(Se - pe, 2));
|
|
6901
6901
|
let Ae = ce, Ee = 50;
|
|
6902
6902
|
const ue = c({ x: ~~de, y: ~~pe }, {
|
|
6903
6903
|
x: ~~Pe,
|
|
6904
6904
|
y: ~~Se
|
|
6905
|
-
},
|
|
6906
|
-
if (ue && ue.length === 1 && (
|
|
6905
|
+
}, C, L);
|
|
6906
|
+
if (ue && ue.length === 1 && (x === B ? (Ae = Math.sqrt(Math.pow(ue[0].x - de, 2) + Math.pow(ue[0].y - pe, 2)), Ee = Ae / ce * 50) : x === R && (Ae = Math.sqrt(Math.pow(ue[0].x - Pe, 2) + Math.pow(ue[0].y - Se, 2)), Ee = 100 - Ae / ce * 50)), ue && ue.length === 2) {
|
|
6907
6907
|
const te = {
|
|
6908
6908
|
x: (ue[0].x + ue[1].x) / 2,
|
|
6909
6909
|
y: (ue[0].y + ue[1].y) / 2
|
|
@@ -6924,8 +6924,8 @@ const cf = `<style type="text/css">
|
|
|
6924
6924
|
const p = g.distanceText;
|
|
6925
6925
|
e.options.distanceText = p, Object.values(r).forEach((A) => {
|
|
6926
6926
|
A.rules.forEach((b) => {
|
|
6927
|
-
const [w,
|
|
6928
|
-
!
|
|
6927
|
+
const [w, k] = b.rule, I = w.distanceTo(k), C = b.$element.querySelector(".PanoRulerPlugin-rule-label-name");
|
|
6928
|
+
!C || (C.innerText = p(I));
|
|
6929
6929
|
});
|
|
6930
6930
|
});
|
|
6931
6931
|
}
|
|
@@ -7135,34 +7135,34 @@ function vf(i) {
|
|
|
7135
7135
|
function bf(i, t, e) {
|
|
7136
7136
|
var g, p, A, b;
|
|
7137
7137
|
let { five: n } = t, { rulerDatas: o } = t, { options: s } = t, r = [];
|
|
7138
|
-
const a = ((p = (g = n.getElement()) == null ? void 0 : g.parentElement) == null ? void 0 : p.clientWidth) || 0, l = ((b = (A = n.getElement()) == null ? void 0 : A.parentElement) == null ? void 0 : b.clientHeight) || 0, c = (w,
|
|
7139
|
-
const
|
|
7138
|
+
const a = ((p = (g = n.getElement()) == null ? void 0 : g.parentElement) == null ? void 0 : p.clientWidth) || 0, l = ((b = (A = n.getElement()) == null ? void 0 : A.parentElement) == null ? void 0 : b.clientHeight) || 0, c = (w, k) => {
|
|
7139
|
+
const I = [
|
|
7140
7140
|
[{ x: 0, y: 0 }, { x: a, y: 0 }],
|
|
7141
7141
|
[{ x: 0, y: 0 }, { x: 0, y: l }],
|
|
7142
7142
|
[{ x: a, y: 0 }, { x: a, y: l }],
|
|
7143
7143
|
[{ x: 0, y: l }, { x: a, y: l }]
|
|
7144
|
-
],
|
|
7145
|
-
for (let L = 0; L <
|
|
7146
|
-
const
|
|
7147
|
-
|
|
7148
|
-
}
|
|
7149
|
-
return
|
|
7150
|
-
}, u = (w,
|
|
7151
|
-
const
|
|
7144
|
+
], C = [];
|
|
7145
|
+
for (let L = 0; L < I.length; L++) {
|
|
7146
|
+
const x = pl([w, k], [I[L][0], I[L][1]], !0);
|
|
7147
|
+
x && C.push(x);
|
|
7148
|
+
}
|
|
7149
|
+
return C.length === 0 ? !1 : C;
|
|
7150
|
+
}, u = (w, k) => {
|
|
7151
|
+
const I = w.clone().project(n.camera), C = (I.x + 1) / 2 * a, L = (-I.y + 1) / 2 * l, x = k.clone().project(n.camera), O = (x.x + 1) / 2 * a, W = (-x.y + 1) / 2 * l, _ = Math.sqrt(Math.pow(O - C, 2) + Math.pow(W - L, 2));
|
|
7152
7152
|
return {
|
|
7153
|
-
startLeft:
|
|
7153
|
+
startLeft: C,
|
|
7154
7154
|
startTop: L,
|
|
7155
7155
|
endLeft: O,
|
|
7156
7156
|
endTop: W,
|
|
7157
7157
|
distance: _
|
|
7158
7158
|
};
|
|
7159
|
-
}, d = (w,
|
|
7160
|
-
const
|
|
7159
|
+
}, d = (w, k, I) => {
|
|
7160
|
+
const C = n.camera.position, L = n.camera.getWorldDirection(new U()), x = w.clone().sub(C).normalize().angleTo(L), O = k.clone().sub(C).normalize().angleTo(L), W = w.distanceTo(k), V = k.clone().sub(k.clone().sub(w).divide(new U(2, 2, 2))).distanceTo(C), { startLeft: B, startTop: R, endLeft: G, endTop: X, distance: H } = u(w, k), Y = -((Math.PI / 2 - Math.atan2(G - B, R - X)) / Math.PI) * 180;
|
|
7161
7161
|
let ae = !0;
|
|
7162
|
-
|
|
7162
|
+
I || (ae = !1), !nt(w, I) && !nt(k, I) && (ae = !1), W < 0.3 && (ae = !1), x > Math.PI / 2 && (ae = !1), O > Math.PI / 2 && (ae = !1), V / W > 8 && (ae = !1);
|
|
7163
7163
|
let he = 50, de = H;
|
|
7164
7164
|
const pe = c({ x: ~~B, y: ~~R }, { x: ~~G, y: ~~X });
|
|
7165
|
-
if (pe && pe.length === 1 && (nt(w,
|
|
7165
|
+
if (pe && pe.length === 1 && (nt(w, I) ? (de = Math.sqrt(Math.pow(pe[0].x - B, 2) + Math.pow(pe[0].y - R, 2)), he = de / H * 50) : nt(k, I) && (de = Math.sqrt(Math.pow(pe[0].x - G, 2) + Math.pow(pe[0].y - X, 2)), he = 100 - de / H * 50)), pe && pe.length === 2) {
|
|
7166
7166
|
const Ce = {
|
|
7167
7167
|
x: (pe[0].x + pe[1].x) / 2,
|
|
7168
7168
|
y: (pe[0].y + pe[1].y) / 2
|
|
@@ -7179,15 +7179,15 @@ function bf(i, t, e) {
|
|
|
7179
7179
|
ruleLength: W
|
|
7180
7180
|
};
|
|
7181
7181
|
}, h = () => {
|
|
7182
|
-
const w = n.panoIndex,
|
|
7183
|
-
if (!
|
|
7182
|
+
const w = n.panoIndex, k = o.find((_) => _.panoIndex === w);
|
|
7183
|
+
if (!k)
|
|
7184
7184
|
return e(0, r = []);
|
|
7185
7185
|
if (n.currentMode !== Ve.Mode.Panorama)
|
|
7186
7186
|
return e(0, r = []);
|
|
7187
|
-
const
|
|
7188
|
-
const B = _.clone().setY(0).sub(
|
|
7187
|
+
const I = n.camera.position, C = n.camera.getWorldDirection(new U()), L = k.lines.map((_) => new U(_.start[0], -_.start[1], -_.start[2])), x = k.lines.map((_) => new U(_.end[0], -_.end[1], -_.end[2])), [O] = L.concat(x).sort((_, V) => {
|
|
7188
|
+
const B = _.clone().setY(0).sub(I).normalize().angleTo(C.clone().setY(0)), R = V.clone().setY(0).sub(I).normalize().angleTo(C.clone().setY(0));
|
|
7189
7189
|
return B - R;
|
|
7190
|
-
}), W =
|
|
7190
|
+
}), W = k.lines.map((_) => {
|
|
7191
7191
|
var de, pe;
|
|
7192
7192
|
const V = _.start, B = _.end, { startLeft: R, startTop: G, distance: X, deg: H, visible: ee, labelOffset: Y, ruleLength: ae } = d(new U(V[0], -V[1], -V[2]), new U(B[0], -B[1], -B[2]), O), he = [];
|
|
7193
7193
|
return _.children && ((de = _.children) == null ? void 0 : de.length) > 0 && ((pe = _.children) == null || pe.forEach((Ce) => {
|
|
@@ -7302,13 +7302,13 @@ function Cf() {
|
|
|
7302
7302
|
}
|
|
7303
7303
|
};
|
|
7304
7304
|
}
|
|
7305
|
-
const Pf = new
|
|
7305
|
+
const Pf = new E.TextureLoader();
|
|
7306
7306
|
function ro(i) {
|
|
7307
7307
|
return F(this, null, function* () {
|
|
7308
7308
|
return new Promise((t, e) => {
|
|
7309
7309
|
Pf.load(i, t, void 0, e);
|
|
7310
|
-
}).then((t) => (t.encoding =
|
|
7311
|
-
t.wrapS !==
|
|
7310
|
+
}).then((t) => (t.encoding = E.sRGBEncoding, t.minFilter = E.LinearFilter, t.wrapS = E.ClampToEdgeWrapping, t.wrapT = E.ClampToEdgeWrapping, setTimeout(() => {
|
|
7311
|
+
t.wrapS !== E.ClampToEdgeWrapping && console.warn("ios 16.4 texture \u4E0D\u652F\u6301 ClampToEdgeWrapping \u4EE5\u5916\u7684\u65B9\u5F0F");
|
|
7312
7312
|
}), t));
|
|
7313
7313
|
});
|
|
7314
7314
|
}
|
|
@@ -7325,7 +7325,7 @@ class If extends zt {
|
|
|
7325
7325
|
}
|
|
7326
7326
|
});
|
|
7327
7327
|
m(this, "data");
|
|
7328
|
-
m(this, "group", new
|
|
7328
|
+
m(this, "group", new E.Group());
|
|
7329
7329
|
m(this, "roomInfoInstance");
|
|
7330
7330
|
m(this, "roomInfoWrapperInstance");
|
|
7331
7331
|
m(this, "compassMeshTween");
|
|
@@ -7369,12 +7369,12 @@ class If extends zt {
|
|
|
7369
7369
|
var h;
|
|
7370
7370
|
(h = this.compassMesh) == null || h.material.setValues({ opacity: d }), this.five.needsRender = !0;
|
|
7371
7371
|
}).play())), this.entryDoorMesh) {
|
|
7372
|
-
const h = new
|
|
7372
|
+
const h = new E.Vector3(
|
|
7373
7373
|
this.data.entrance.position.x,
|
|
7374
7374
|
this.data.entrance.position.y,
|
|
7375
7375
|
this.data.entrance.position.z
|
|
7376
7376
|
).clone().setY(n.y).sub(n).normalize(), f = n.clone().add(h.clone().multiplyScalar(0.7)).setY(n.y + 0.01);
|
|
7377
|
-
this.entryDoorMesh.rotation.z = new
|
|
7377
|
+
this.entryDoorMesh.rotation.z = new E.Vector3(0, 0, -1).angleTo(h), this.entryDoorMesh.position.copy(f), ((l = this.data) == null ? void 0 : l.room_observers[e].room.type) === 1 ? (c = this.entryDoorMesh) == null || c.material.setValues({ opacity: 1 }) : (u = this.entryDoorMesh) == null || u.material.setValues({ opacity: 0 });
|
|
7378
7378
|
}
|
|
7379
7379
|
this.roomInfoInstance && this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.position.copy(n.clone().setY(n.y + 0.01)), this.roomInfoInstance.setRoom(this.data.room_observers[e].room)), this.five.needsRender = !0;
|
|
7380
7380
|
});
|
|
@@ -7463,32 +7463,32 @@ class If extends zt {
|
|
|
7463
7463
|
}
|
|
7464
7464
|
loadCompassMesh() {
|
|
7465
7465
|
return F(this, null, function* () {
|
|
7466
|
-
const e = this.state.config.compassImageUrl, n = yield ro(e), o = new
|
|
7466
|
+
const e = this.state.config.compassImageUrl, n = yield ro(e), o = new E.CircleGeometry(0.7, 32), s = new E.MeshBasicMaterial({
|
|
7467
7467
|
map: n,
|
|
7468
7468
|
transparent: !0,
|
|
7469
7469
|
opacity: 0,
|
|
7470
7470
|
depthTest: !1
|
|
7471
|
-
}), r = new
|
|
7471
|
+
}), r = new E.Mesh(o, s);
|
|
7472
7472
|
return r.name = "pano-compass-mesh", r;
|
|
7473
7473
|
});
|
|
7474
7474
|
}
|
|
7475
7475
|
loadEntryDoorMesh() {
|
|
7476
7476
|
return F(this, null, function* () {
|
|
7477
|
-
const e = this.state.config.entryDoorImageUrl, n = yield ro(e), o = new
|
|
7477
|
+
const e = this.state.config.entryDoorImageUrl, n = yield ro(e), o = new E.PlaneGeometry(0.2, 0.16), s = new E.MeshBasicMaterial({
|
|
7478
7478
|
map: n,
|
|
7479
7479
|
transparent: !0,
|
|
7480
7480
|
opacity: 0.8,
|
|
7481
7481
|
depthTest: !1
|
|
7482
|
-
}), r = new
|
|
7482
|
+
}), r = new E.Mesh(o, s);
|
|
7483
7483
|
return r.name = "pano-compass-entry-door", r;
|
|
7484
7484
|
});
|
|
7485
7485
|
}
|
|
7486
7486
|
loadRoomInfo() {
|
|
7487
7487
|
const e = [
|
|
7488
|
-
new
|
|
7489
|
-
new
|
|
7490
|
-
new
|
|
7491
|
-
new
|
|
7488
|
+
new E.Vector3(-0.7, 0, -0.7),
|
|
7489
|
+
new E.Vector3(0.7, 0, -0.7),
|
|
7490
|
+
new E.Vector3(0.7, 0, 0.7),
|
|
7491
|
+
new E.Vector3(-0.7, 0, 0.7)
|
|
7492
7492
|
];
|
|
7493
7493
|
return Tn(this.five).create3DDomContainer(e);
|
|
7494
7494
|
}
|
|
@@ -7520,7 +7520,7 @@ class xf {
|
|
|
7520
7520
|
m(this, "config");
|
|
7521
7521
|
m(this, "offset", { x: 0, y: 0 });
|
|
7522
7522
|
m(this, "context");
|
|
7523
|
-
m(this, "renderCenter", new
|
|
7523
|
+
m(this, "renderCenter", new E.Vector3());
|
|
7524
7524
|
m(this, "hammer");
|
|
7525
7525
|
m(this, "state", { enabled: !1 });
|
|
7526
7526
|
m(this, "offsetRange");
|
|
@@ -7599,7 +7599,7 @@ class xf {
|
|
|
7599
7599
|
if (!this.containerDom)
|
|
7600
7600
|
return;
|
|
7601
7601
|
const { width: t, height: e } = this, [n, o, s] = (() => {
|
|
7602
|
-
if (this.renderCenter instanceof
|
|
7602
|
+
if (this.renderCenter instanceof E.Vector3) {
|
|
7603
7603
|
const r = this.renderCenter.clone().project(this.five.camera);
|
|
7604
7604
|
return [
|
|
7605
7605
|
(r.x + 1) / 2 * this.containerDom.clientWidth,
|
|
@@ -7614,8 +7614,8 @@ class xf {
|
|
|
7614
7614
|
render() {
|
|
7615
7615
|
if (!this.five.renderer || !this.containerDom)
|
|
7616
7616
|
return;
|
|
7617
|
-
const { scale: t, context: e, width: n, height: o } = this, s = this.five.renderer.getSize(new
|
|
7618
|
-
if (this.renderCenter instanceof
|
|
7617
|
+
const { scale: t, context: e, width: n, height: o } = this, s = this.five.renderer.getSize(new E.Vector2()), [r, a] = (() => {
|
|
7618
|
+
if (this.renderCenter instanceof E.Vector3) {
|
|
7619
7619
|
const p = this.renderCenter.clone().project(this.five.camera);
|
|
7620
7620
|
return [(p.x + 1) / 2 * s.x, (p.y + 1) / 2 * s.y];
|
|
7621
7621
|
} else
|
|
@@ -7861,15 +7861,15 @@ function Wf(i) {
|
|
|
7861
7861
|
const b = A.getElement();
|
|
7862
7862
|
if (!b)
|
|
7863
7863
|
return;
|
|
7864
|
-
const w = b.clientWidth,
|
|
7864
|
+
const w = b.clientWidth, k = b.clientHeight, I = w / 2, C = k / 2;
|
|
7865
7865
|
if (e.points.length < 2)
|
|
7866
7866
|
return;
|
|
7867
|
-
const [L,
|
|
7867
|
+
const [L, x] = e.points, O = L.position.clone().project(A.camera), W = x.position.clone().project(A.camera), _ = O.clone().lerp(W, 0.5), V = new _e(O.x * I, O.y * C), B = new _e(W.x * I, W.y * C), R = V.distanceTo(B);
|
|
7868
7868
|
if ((() => !(Math.abs(O.z) > 1 || Math.abs(W.z) > 1 || !Qi(O) && !Qi(W) || !Qi(_) || R === 0))() === !1) {
|
|
7869
7869
|
s.style.opacity = "0", s.style.pointerEvents = "none";
|
|
7870
7870
|
return;
|
|
7871
7871
|
}
|
|
7872
|
-
const X = (_.x + 1) / 2 * w, H = -(_.y - 1) / 2 *
|
|
7872
|
+
const X = (_.x + 1) / 2 * w, H = -(_.y - 1) / 2 * k, Y = -(Math.atan((V.y - B.y) / (V.x - B.x)) * 180) / Math.PI, ae = s.parentElement && o.clientWidth > R ? -20 : 0;
|
|
7873
7873
|
s.style.transform = `translate(${X}px, ${H}px) rotate(${Y}deg) translateY(${ae}px)`, s.style.opacity = "1", s.style.pointerEvents = t ? "all" : "none", r && r.update({ line: e, polyline: e.getPolyline() });
|
|
7874
7874
|
const he = g();
|
|
7875
7875
|
o.innerText = he;
|
|
@@ -7881,11 +7881,11 @@ function Wf(i) {
|
|
|
7881
7881
|
o.removeEventListener("click", c), s.remove();
|
|
7882
7882
|
}
|
|
7883
7883
|
function g() {
|
|
7884
|
-
var L,
|
|
7884
|
+
var L, x, O;
|
|
7885
7885
|
if (e.points.length < 2)
|
|
7886
7886
|
return "";
|
|
7887
|
-
const [A, b] = e.points, w = A.position.clone().distanceTo(b.position),
|
|
7888
|
-
return
|
|
7887
|
+
const [A, b] = e.points, w = A.position.clone().distanceTo(b.position), k = (L = i.line.text) != null ? L : i.line.model.config.defaultText, I = (O = (x = i.line.model.config) == null ? void 0 : x.getDistanceText) == null ? void 0 : O.call(x, w), C = k != null ? k : I;
|
|
7888
|
+
return C != null ? C : w.toFixed(2) + "m";
|
|
7889
7889
|
}
|
|
7890
7890
|
function p(A) {
|
|
7891
7891
|
t = A;
|
|
@@ -8490,7 +8490,7 @@ const wl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANgAAADYCAYAAACJIC3tAA
|
|
|
8490
8490
|
`;
|
|
8491
8491
|
function Zf() {
|
|
8492
8492
|
}
|
|
8493
|
-
const { Vector2: Kf } =
|
|
8493
|
+
const { Vector2: Kf } = E;
|
|
8494
8494
|
function $f(i, t) {
|
|
8495
8495
|
const { offsetWidth: e, offsetHeight: n } = t, { top: o, left: s } = t.getBoundingClientRect();
|
|
8496
8496
|
return Object.assign(new Kf(), {
|
|
@@ -9526,31 +9526,31 @@ function Dm(i, t, e) {
|
|
|
9526
9526
|
},
|
|
9527
9527
|
100
|
|
9528
9528
|
);
|
|
9529
|
-
const w = (
|
|
9529
|
+
const w = (C) => {
|
|
9530
9530
|
const L = Object.keys(h);
|
|
9531
|
-
let
|
|
9532
|
-
for (;
|
|
9533
|
-
const O =
|
|
9531
|
+
let x = C.target;
|
|
9532
|
+
for (; x; ) {
|
|
9533
|
+
const O = x.getAttribute("class");
|
|
9534
9534
|
if (!O) {
|
|
9535
|
-
|
|
9535
|
+
x = x.parentNode;
|
|
9536
9536
|
continue;
|
|
9537
9537
|
}
|
|
9538
9538
|
if (O.includes("PanoSpatialTagPlugin__tag-content")) {
|
|
9539
|
-
|
|
9539
|
+
x = null;
|
|
9540
9540
|
break;
|
|
9541
9541
|
}
|
|
9542
9542
|
L.forEach((W) => {
|
|
9543
9543
|
O.includes(W) && h[W](n);
|
|
9544
|
-
}),
|
|
9544
|
+
}), x = x.parentNode;
|
|
9545
9545
|
}
|
|
9546
9546
|
};
|
|
9547
9547
|
Ze(() => {
|
|
9548
9548
|
f.emit("initTag", { id: n });
|
|
9549
9549
|
});
|
|
9550
|
-
const
|
|
9551
|
-
if (
|
|
9550
|
+
const k = xl.subscribe((C) => {
|
|
9551
|
+
if (C === null)
|
|
9552
9552
|
return;
|
|
9553
|
-
const [L,
|
|
9553
|
+
const [L, x] = C.split("-PanoSpatialTagPlugin-");
|
|
9554
9554
|
n === L && (f.emit("clickOrigin", { id: n, show: A }), b || (e(10, A = u), e(12, u = !u), b = setTimeout(
|
|
9555
9555
|
() => {
|
|
9556
9556
|
b = void 0;
|
|
@@ -9561,15 +9561,15 @@ function Dm(i, t, e) {
|
|
|
9561
9561
|
_a(() => {
|
|
9562
9562
|
e(7, v = p.offsetWidth), e(8, g = p.offsetHeight), !b && e(10, A = !u);
|
|
9563
9563
|
}), Pt(() => {
|
|
9564
|
-
f.emit("destroyTag", { id: n }),
|
|
9564
|
+
f.emit("destroyTag", { id: n }), k(), d();
|
|
9565
9565
|
});
|
|
9566
|
-
function
|
|
9567
|
-
Be[
|
|
9568
|
-
p =
|
|
9566
|
+
function I(C) {
|
|
9567
|
+
Be[C ? "unshift" : "push"](() => {
|
|
9568
|
+
p = C, e(9, p);
|
|
9569
9569
|
});
|
|
9570
9570
|
}
|
|
9571
|
-
return i.$$set = (
|
|
9572
|
-
"id" in
|
|
9571
|
+
return i.$$set = (C) => {
|
|
9572
|
+
"id" in C && e(0, n = C.id), "upsideDown" in C && e(1, o = C.upsideDown), "content" in C && e(2, s = C.content), "contentZoom" in C && e(3, r = C.contentZoom), "lineWidthZoom" in C && e(4, a = C.lineWidthZoom), "lineHeightZoom" in C && e(5, l = C.lineHeightZoom), "destroying" in C && e(6, c = C.destroying), "folded" in C && e(12, u = C.folded), "dispose" in C && e(13, d = C.dispose), "events" in C && e(14, h = C.events), "hooks" in C && e(15, f = C.hooks);
|
|
9573
9573
|
}, [
|
|
9574
9574
|
n,
|
|
9575
9575
|
o,
|
|
@@ -9587,7 +9587,7 @@ function Dm(i, t, e) {
|
|
|
9587
9587
|
d,
|
|
9588
9588
|
h,
|
|
9589
9589
|
f,
|
|
9590
|
-
|
|
9590
|
+
I
|
|
9591
9591
|
];
|
|
9592
9592
|
}
|
|
9593
9593
|
class Lm extends oe {
|
|
@@ -9778,15 +9778,15 @@ const Fi = 1e-3, Us = 0.01, jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9778
9778
|
target: h,
|
|
9779
9779
|
props: { origins: g.origins }
|
|
9780
9780
|
}), A = (ce, Ae) => {
|
|
9781
|
-
|
|
9781
|
+
I(), Ae && C();
|
|
9782
9782
|
}, b = () => {
|
|
9783
|
-
g.forbidden && (g.forbidden = !1,
|
|
9783
|
+
g.forbidden && (g.forbidden = !1, C());
|
|
9784
9784
|
}, w = (ce, Ae) => {
|
|
9785
9785
|
if (g.tags.length === 0)
|
|
9786
9786
|
return;
|
|
9787
9787
|
const Ee = Ae.longitude - i.state.longitude, ue = i.camera.clone();
|
|
9788
|
-
ue.position.copy(Ae.offset), ue.rotateOnWorldAxis(new
|
|
9789
|
-
const Ue = new
|
|
9788
|
+
ue.position.copy(Ae.offset), ue.rotateOnWorldAxis(new E.Vector3(0, 1, 0), Ee), ue.updateProjectionMatrix(), ue.updateMatrixWorld(!0);
|
|
9789
|
+
const Ue = new E.Frustum(), rt = new E.Matrix4();
|
|
9790
9790
|
rt.multiplyMatrices(
|
|
9791
9791
|
ue.projectionMatrix,
|
|
9792
9792
|
ue.matrixWorldInverse
|
|
@@ -9810,16 +9810,16 @@ const Fi = 1e-3, Us = 0.01, jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9810
9810
|
}), setTimeout(() => {
|
|
9811
9811
|
g.tags.forEach((ye) => {
|
|
9812
9812
|
ye.destroying && (ye.app.$destroy(), ye = null);
|
|
9813
|
-
}), g.tags = g.tags.filter((ye) => !ye.destroying),
|
|
9813
|
+
}), g.tags = g.tags.filter((ye) => !ye.destroying), I();
|
|
9814
9814
|
}, 1900);
|
|
9815
|
-
},
|
|
9815
|
+
}, k = (ce) => {
|
|
9816
9816
|
ce !== Ve.Mode.Panorama && !g.forbidden && (p.$set({ origins: [] }), g.tags.forEach((Ae) => {
|
|
9817
9817
|
Ae.app.$destroy(), Ae = null;
|
|
9818
9818
|
}), g.origins = [], g.tags = [], g.forbidden = !0);
|
|
9819
|
-
},
|
|
9819
|
+
}, I = () => {
|
|
9820
9820
|
if (g.forbidden || !g.enabled)
|
|
9821
9821
|
return;
|
|
9822
|
-
const ce = i.camera, Ae = ce.getWorldDirection(new
|
|
9822
|
+
const ce = i.camera, Ae = ce.getWorldDirection(new E.Vector3());
|
|
9823
9823
|
g.origins = g.tags.map((Ee) => {
|
|
9824
9824
|
const ue = Ee.position.clone().project(ce), Ue = Ee.position.clone().sub(ce.position).setY(0).angleTo(Ae.setY(0)) < Math.PI / 2;
|
|
9825
9825
|
return {
|
|
@@ -9830,14 +9830,14 @@ const Fi = 1e-3, Us = 0.01, jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9830
9830
|
destroying: Ee.destroying
|
|
9831
9831
|
};
|
|
9832
9832
|
}), p.$set({ origins: g.origins });
|
|
9833
|
-
},
|
|
9833
|
+
}, C = () => {
|
|
9834
9834
|
g.forbidden || !g.enabled || (g.timeoutId && clearTimeout(g.timeoutId), g.timeoutId = setTimeout(() => {
|
|
9835
9835
|
g.timeoutId = void 0;
|
|
9836
9836
|
const ce = L();
|
|
9837
|
-
ce.length && (g.tags = g.tags.concat(ce),
|
|
9837
|
+
ce.length && (g.tags = g.tags.concat(ce), I());
|
|
9838
9838
|
}, o));
|
|
9839
9839
|
}, L = () => {
|
|
9840
|
-
const { clientWidth: ce, clientHeight: Ae } = i.getElement(), Ee = [], ue = i.camera, Ue = new
|
|
9840
|
+
const { clientWidth: ce, clientHeight: Ae } = i.getElement(), Ee = [], ue = i.camera, Ue = new E.Frustum(), rt = new E.Matrix4(), ye = ue.getWorldDirection(new E.Vector3());
|
|
9841
9841
|
rt.multiplyMatrices(
|
|
9842
9842
|
ue.projectionMatrix,
|
|
9843
9843
|
ue.matrixWorldInverse
|
|
@@ -9899,19 +9899,19 @@ const Fi = 1e-3, Us = 0.01, jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9899
9899
|
) > a;
|
|
9900
9900
|
}))
|
|
9901
9901
|
continue;
|
|
9902
|
-
const Bt = new
|
|
9902
|
+
const Bt = new E.Raycaster(
|
|
9903
9903
|
ue.position.clone().setY(n),
|
|
9904
9904
|
et.position.clone().sub(ue.position.clone().setY(n)).normalize(),
|
|
9905
9905
|
0,
|
|
9906
9906
|
et.distance + Us
|
|
9907
9907
|
), [kt] = g.intersectObjects ? Bt.intersectObjects(g.intersectObjects, !0) : i.model.bvhs.loaded ? i.model.intersectRaycaster(Bt) : Bt.intersectObjects(i.model.children, !0);
|
|
9908
9908
|
if (!!kt && et.distance - kt.distance < Us) {
|
|
9909
|
-
const { position: ke, normal: Te, id: xt, replacement: Vn } = et, nc = new
|
|
9909
|
+
const { position: ke, normal: Te, id: xt, replacement: Vn } = et, nc = new E.Plane().setFromNormalAndCoplanarPoint(Te, ke), Oo = ke.clone().sub(ue.position).cross(new E.Vector3(0, 1, 0)).setLength(Fi), ic = [
|
|
9910
9910
|
ke.clone(),
|
|
9911
9911
|
ke.clone().add(Oo),
|
|
9912
|
-
ke.clone().add(new
|
|
9913
|
-
ke.clone().add(new
|
|
9914
|
-
].map((ac) => nc.projectPoint(ac, new
|
|
9912
|
+
ke.clone().add(new E.Vector3(0, Fi, 0)).add(Oo),
|
|
9913
|
+
ke.clone().add(new E.Vector3(0, Fi, 0))
|
|
9914
|
+
].map((ac) => nc.projectPoint(ac, new E.Vector3())), { container: oc, dispose: sc } = d.create3DDomContainer(ic) || {}, rc = new Lm({
|
|
9915
9915
|
target: oc,
|
|
9916
9916
|
props: {
|
|
9917
9917
|
id: xt,
|
|
@@ -9935,21 +9935,21 @@ const Fi = 1e-3, Us = 0.01, jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9935
9935
|
}
|
|
9936
9936
|
}
|
|
9937
9937
|
return Ee;
|
|
9938
|
-
},
|
|
9938
|
+
}, x = (ce) => {
|
|
9939
9939
|
g.points = ce.points.map((Ae) => {
|
|
9940
9940
|
var Ee, ue;
|
|
9941
9941
|
return {
|
|
9942
9942
|
id: Ae.id,
|
|
9943
|
-
position: new
|
|
9944
|
-
normal: new
|
|
9943
|
+
position: new E.Vector3().fromArray(Ae.position),
|
|
9944
|
+
normal: new E.Vector3().fromArray(Ae.normal),
|
|
9945
9945
|
replacement: (Ee = Ae.replacement) != null ? Ee : {},
|
|
9946
9946
|
weight: (ue = Ae.weight) != null ? ue : -1
|
|
9947
9947
|
};
|
|
9948
9948
|
}), ce.render && (g.render = ce.render), ce.template && (g.template = ce.template), ce.events && (g.events = ce.events), ce.enabled === !1 && (g.enabled = ce.enabled), ce.folded === !0 && (g.folded = ce.folded);
|
|
9949
9949
|
}, O = (ce) => {
|
|
9950
|
-
g.intersectObjects = ce,
|
|
9950
|
+
g.intersectObjects = ce, C();
|
|
9951
9951
|
}, W = () => {
|
|
9952
|
-
g.enabled = !0,
|
|
9952
|
+
g.enabled = !0, C();
|
|
9953
9953
|
}, _ = () => {
|
|
9954
9954
|
g.enabled = !1, p.$set({ origins: [] }), g.tags.forEach((ce) => {
|
|
9955
9955
|
ce.app.$destroy(), ce = null;
|
|
@@ -9971,16 +9971,16 @@ const Fi = 1e-3, Us = 0.01, jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9971
9971
|
Ae.id === ce && Ae.app.$set({ folded: !0 });
|
|
9972
9972
|
});
|
|
9973
9973
|
}, X = () => {
|
|
9974
|
-
i.once("renderFrame",
|
|
9974
|
+
i.once("renderFrame", I);
|
|
9975
9975
|
}, H = () => {
|
|
9976
|
-
e || (e = i.getElement().parentElement), e && e.appendChild(h), g.forbidden = !1, n = i.model.bounding.getCenter(new
|
|
9976
|
+
e || (e = i.getElement().parentElement), e && e.appendChild(h), g.forbidden = !1, n = i.model.bounding.getCenter(new E.Vector3()).y, C(), i.on("panoWillArrive", w), i.on("panoArrived", b), i.on("modeChange", k), i.on("cameraUpdate", A);
|
|
9977
9977
|
}, ee = () => {
|
|
9978
9978
|
v = null, d.disposeAll(), p.$destroy(), g.tags.forEach((ce) => {
|
|
9979
9979
|
ce.app.$destroy(), ce = null;
|
|
9980
|
-
}), g.origins = [], g.tags = [], i.off("modelLoaded", H), i.off("renderFrame",
|
|
9980
|
+
}), g.origins = [], g.tags = [], i.off("modelLoaded", H), i.off("renderFrame", I), i.off("panoWillArrive", w), i.off("panoArrived", b), i.off("modeChange", k), i.off("cameraUpdate", A), i.off("dispose", ee), window.removeEventListener("resize", X, !1);
|
|
9981
9981
|
};
|
|
9982
9982
|
return window.addEventListener("resize", X, !1), (Se = i == null ? void 0 : i.model) != null && Se.loaded ? H() : i.once("modelLoaded", H), i.on("dispose", ee), {
|
|
9983
|
-
load:
|
|
9983
|
+
load: x,
|
|
9984
9984
|
setIntersectObjects: O,
|
|
9985
9985
|
unfoldAll: V,
|
|
9986
9986
|
foldAll: B,
|
|
@@ -10123,7 +10123,7 @@ function Hm(i) {
|
|
|
10123
10123
|
}
|
|
10124
10124
|
let Zs = 26, Gm = 11;
|
|
10125
10125
|
function Wm(i, t, e) {
|
|
10126
|
-
const { Raycaster: n, Vector3: o } =
|
|
10126
|
+
const { Raycaster: n, Vector3: o } = E;
|
|
10127
10127
|
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, u = null, d = null, h, f, v = [], g = !0;
|
|
10128
10128
|
const p = (B, R) => {
|
|
10129
10129
|
const G = new n(), X = B.camera.position.clone(), H = new o().fromArray(R.modelPosition), ee = H.distanceTo(X);
|
|
@@ -10134,7 +10134,7 @@ function Wm(i, t, e) {
|
|
|
10134
10134
|
const G = new o(R.modelPosition[0], R.modelPosition[1], R.modelPosition[2]), X = B.project2d(G), H = X == null ? void 0 : X.x, ee = X == null ? void 0 : X.y;
|
|
10135
10135
|
return [H, ee];
|
|
10136
10136
|
}, b = (B) => `translate(${B[0]}px, ${B[1]}px)`, w = (B, R) => v.length === 0 ? !1 : !!v.find((X) => B[0] >= X[0] - R && B[0] <= X[0] + R || B[1] >= X[1] - Zs && B[1] <= X[1] + Zs);
|
|
10137
|
-
function
|
|
10137
|
+
function k(B, R) {
|
|
10138
10138
|
switch (R) {
|
|
10139
10139
|
case Rt.SMALL:
|
|
10140
10140
|
return Math.ceil(-27.78 * B + 85);
|
|
@@ -10146,9 +10146,9 @@ function Wm(i, t, e) {
|
|
|
10146
10146
|
return Math.ceil(-92.59 * B + 300);
|
|
10147
10147
|
}
|
|
10148
10148
|
}
|
|
10149
|
-
const
|
|
10149
|
+
const I = (B, R) => {
|
|
10150
10150
|
const G = R.map((H) => {
|
|
10151
|
-
const ee = A(B, H), Y = H.name.length * Gm, ae =
|
|
10151
|
+
const ee = A(B, H), Y = H.name.length * Gm, ae = k(H.modelPosition[1], c), de = (r ? p(B, H) : !0) && !w([ee[0], ee[1] + ae], Y);
|
|
10152
10152
|
if (!de)
|
|
10153
10153
|
return fe(Q({}, H), { visible: de });
|
|
10154
10154
|
v.push(ee);
|
|
@@ -10166,29 +10166,29 @@ function Wm(i, t, e) {
|
|
|
10166
10166
|
const ee = X.findIndex((Y) => Y.itemLabelItem.id === H.id);
|
|
10167
10167
|
return ee !== void 0 ? fe(Q({}, H), { zIndex: ee * 10 }) : H;
|
|
10168
10168
|
});
|
|
10169
|
-
},
|
|
10170
|
-
v = [], e(1, d =
|
|
10169
|
+
}, C = () => {
|
|
10170
|
+
v = [], e(1, d = I(s, d));
|
|
10171
10171
|
};
|
|
10172
10172
|
Wa(() => {
|
|
10173
10173
|
W();
|
|
10174
10174
|
});
|
|
10175
10175
|
const L = () => {
|
|
10176
|
-
e(4, g = !1),
|
|
10176
|
+
e(4, g = !1), x();
|
|
10177
10177
|
};
|
|
10178
10178
|
Ze(() => {
|
|
10179
|
-
e(1, d = a), u = a,
|
|
10179
|
+
e(1, d = a), u = a, C(), O(), s.on("cameraUpdate", L);
|
|
10180
10180
|
});
|
|
10181
|
-
const
|
|
10181
|
+
const x = Dl(
|
|
10182
10182
|
() => {
|
|
10183
|
-
e(4, g = !0),
|
|
10183
|
+
e(4, g = !0), C();
|
|
10184
10184
|
},
|
|
10185
10185
|
300
|
|
10186
10186
|
), O = () => {
|
|
10187
10187
|
window.addEventListener("resize", _, !1);
|
|
10188
10188
|
}, W = () => {
|
|
10189
|
-
u !== a && (e(1, d = a), u = a,
|
|
10189
|
+
u !== a && (e(1, d = a), u = a, C());
|
|
10190
10190
|
}, _ = () => {
|
|
10191
|
-
s.once("renderFrame",
|
|
10191
|
+
s.once("renderFrame", C);
|
|
10192
10192
|
};
|
|
10193
10193
|
Pt(() => {
|
|
10194
10194
|
s.off("cameraUpdate", L), window.removeEventListener("resize", _, !1);
|
|
@@ -10346,8 +10346,8 @@ const Ob = (i, { videoElement: t }) => {
|
|
|
10346
10346
|
return;
|
|
10347
10347
|
const b = () => {
|
|
10348
10348
|
var w;
|
|
10349
|
-
!e.videoTexture || ((w = e.videoTexture) == null || w.image.removeEventListener("timeupdate", b), e.videoTextureEnabled = !0, e.videoMeshes.forEach((
|
|
10350
|
-
|
|
10349
|
+
!e.videoTexture || ((w = e.videoTexture) == null || w.image.removeEventListener("timeupdate", b), e.videoTextureEnabled = !0, e.videoMeshes.forEach((k) => {
|
|
10350
|
+
k.material.map !== e.videoTexture && (k.material.map = e.videoTexture);
|
|
10351
10351
|
}), i.needsRender = !0);
|
|
10352
10352
|
};
|
|
10353
10353
|
e.videoTexture.image.addEventListener("timeupdate", b), e.videoTexture && e.videoMeshes.length && (e.videoTexture.image.play(), e.videoTexture.image.onplay = () => {
|
|
@@ -10367,40 +10367,40 @@ const Ob = (i, { videoElement: t }) => {
|
|
|
10367
10367
|
A.geometry.dispose(), A.material.dispose(), i.scene.remove(A), e.videoTexture && e.videoTexture.image.pause();
|
|
10368
10368
|
}), e.videoMeshes = [], i.needsRender = !0);
|
|
10369
10369
|
}, c = () => e.rectPoints.map((A, b) => {
|
|
10370
|
-
const w = new
|
|
10371
|
-
|
|
10372
|
-
for (let B = 1; B <
|
|
10373
|
-
|
|
10374
|
-
A[0].x + (A[1].x - A[0].x) * B /
|
|
10375
|
-
A[0].y + (A[1].y - A[0].y) * B /
|
|
10376
|
-
A[0].z + (A[1].z - A[0].z) * B /
|
|
10370
|
+
const w = new E.BufferGeometry(), k = 128, I = [];
|
|
10371
|
+
I.push(...A[0].toArray());
|
|
10372
|
+
for (let B = 1; B < k; B++)
|
|
10373
|
+
I.push(
|
|
10374
|
+
A[0].x + (A[1].x - A[0].x) * B / k,
|
|
10375
|
+
A[0].y + (A[1].y - A[0].y) * B / k,
|
|
10376
|
+
A[0].z + (A[1].z - A[0].z) * B / k
|
|
10377
10377
|
);
|
|
10378
|
-
|
|
10379
|
-
for (let B = 1; B <
|
|
10380
|
-
|
|
10381
|
-
A[2].x + (A[3].x - A[2].x) * B /
|
|
10382
|
-
A[2].y + (A[3].y - A[2].y) * B /
|
|
10383
|
-
A[2].z + (A[3].z - A[2].z) * B /
|
|
10378
|
+
I.push(...A[1].toArray()), I.push(...A[2].toArray());
|
|
10379
|
+
for (let B = 1; B < k; B++)
|
|
10380
|
+
I.push(
|
|
10381
|
+
A[2].x + (A[3].x - A[2].x) * B / k,
|
|
10382
|
+
A[2].y + (A[3].y - A[2].y) * B / k,
|
|
10383
|
+
A[2].z + (A[3].z - A[2].z) * B / k
|
|
10384
10384
|
);
|
|
10385
|
-
|
|
10386
|
-
const
|
|
10387
|
-
|
|
10388
|
-
for (let B = 1; B <
|
|
10389
|
-
|
|
10390
|
-
|
|
10391
|
-
for (let B = 1; B <
|
|
10392
|
-
|
|
10393
|
-
|
|
10385
|
+
I.push(...A[3].toArray());
|
|
10386
|
+
const C = [];
|
|
10387
|
+
C.push(0, 1);
|
|
10388
|
+
for (let B = 1; B < k; B++)
|
|
10389
|
+
C.push(0, 1 - B / k);
|
|
10390
|
+
C.push(0, 0), C.push(1, 0);
|
|
10391
|
+
for (let B = 1; B < k; B++)
|
|
10392
|
+
C.push(1, B / k);
|
|
10393
|
+
C.push(1, 1);
|
|
10394
10394
|
const L = [];
|
|
10395
|
-
for (let B = 0; B <
|
|
10396
|
-
L.push(B, B + 1,
|
|
10397
|
-
w.setAttribute("position", new
|
|
10398
|
-
const
|
|
10399
|
-
i.scene.add(
|
|
10400
|
-
const O = new
|
|
10395
|
+
for (let B = 0; B < k; B++)
|
|
10396
|
+
L.push(B, B + 1, k * 2 - B, B, k * 2 - B, k * 2 + 1 - B);
|
|
10397
|
+
w.setAttribute("position", new E.BufferAttribute(new Float32Array(I), 3)), w.setAttribute("uv", new E.BufferAttribute(new Float32Array(C), 2)), w.setIndex(new E.BufferAttribute(new Uint32Array(L), 1));
|
|
10398
|
+
const x = new E.AxesHelper(10);
|
|
10399
|
+
i.scene.add(x);
|
|
10400
|
+
const O = new E.MeshBasicMaterial({
|
|
10401
10401
|
map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
|
|
10402
|
-
side:
|
|
10403
|
-
}), W = new
|
|
10402
|
+
side: E.DoubleSide
|
|
10403
|
+
}), W = new E.Mesh(w, O);
|
|
10404
10404
|
W.renderOrder = 1, W.name = `ModelTVVideoPlugin-${b}-${performance.now()}`;
|
|
10405
10405
|
const _ = [A[1], A[2], A[3], A[0]], V = n.create3DDomContainer(_);
|
|
10406
10406
|
if (V != null && V.container) {
|
|
@@ -10413,23 +10413,23 @@ const Ob = (i, { videoElement: t }) => {
|
|
|
10413
10413
|
}
|
|
10414
10414
|
return W;
|
|
10415
10415
|
}), u = (A) => {
|
|
10416
|
-
const b = new
|
|
10417
|
-
return b.minFilter =
|
|
10418
|
-
}, d = (A, b) => new Promise((w,
|
|
10419
|
-
const
|
|
10420
|
-
|
|
10421
|
-
if (
|
|
10422
|
-
if (
|
|
10423
|
-
const
|
|
10424
|
-
b = b || document.createElement("video"), b.crossOrigin = "anonymous", b.muted = !0, b.loop = !0, b.playsInline = !0, b.src =
|
|
10425
|
-
const L = new
|
|
10426
|
-
L.minFilter =
|
|
10416
|
+
const b = new E.TextureLoader().load(A);
|
|
10417
|
+
return b.minFilter = E.LinearFilter, b.magFilter = E.LinearFilter, b.format = E.RGBFormat, b;
|
|
10418
|
+
}, d = (A, b) => new Promise((w, k) => {
|
|
10419
|
+
const I = new XMLHttpRequest();
|
|
10420
|
+
I.onreadystatechange = () => {
|
|
10421
|
+
if (I.readyState == 4)
|
|
10422
|
+
if (I.status == 200) {
|
|
10423
|
+
const C = window.URL || window.webkitURL;
|
|
10424
|
+
b = b || document.createElement("video"), b.crossOrigin = "anonymous", b.muted = !0, b.loop = !0, b.playsInline = !0, b.src = C.createObjectURL(I.response);
|
|
10425
|
+
const L = new E.VideoTexture(b);
|
|
10426
|
+
L.minFilter = E.LinearFilter, L.magFilter = E.LinearFilter, L.format = E.RGBFormat, w(Object.assign(L, { videoSource: A }));
|
|
10427
10427
|
} else
|
|
10428
|
-
|
|
10429
|
-
},
|
|
10428
|
+
k(new Error("Video download Error: " + I.status));
|
|
10429
|
+
}, I.onerror = (C) => k(C), I.open("GET", A), I.responseType = "blob", I.send();
|
|
10430
10430
|
}), h = (A, b) => F(void 0, null, function* () {
|
|
10431
|
-
const { video_src: w, video_poster_src:
|
|
10432
|
-
e.videoSource = w, e.rectPoints = Xm(
|
|
10431
|
+
const { video_src: w, video_poster_src: k, points: I } = A;
|
|
10432
|
+
e.videoSource = w, e.rectPoints = Xm(I).map((C) => C.map(({ x: L, y: x, z: O }) => new E.Vector3(L, x, O))), e.imageTexture = u(k), b && (e.videoElement = b), e.videoTexture = yield d(e.videoSource, e.videoElement), e.enabled = !!A.enable, e.enabled && a();
|
|
10433
10433
|
}), f = (A) => {
|
|
10434
10434
|
if (!e.enabled)
|
|
10435
10435
|
return;
|
|
@@ -10443,14 +10443,14 @@ const Ob = (i, { videoElement: t }) => {
|
|
|
10443
10443
|
return;
|
|
10444
10444
|
const A = i.camera.position;
|
|
10445
10445
|
if (o.forEach((b, w) => {
|
|
10446
|
-
const
|
|
10447
|
-
L && L.distance + O <
|
|
10446
|
+
const k = b.css3DObject.position.clone(), I = k.clone().sub(A).normalize(), C = new E.Raycaster(A, I), L = i.model.intersectRaycaster(C)[0], x = k.distanceTo(A), O = 0.01;
|
|
10447
|
+
L && L.distance + O < x ? b.hide() : b.show();
|
|
10448
10448
|
}), !r()) {
|
|
10449
10449
|
const b = e.rectPoints.find((w) => {
|
|
10450
|
-
const
|
|
10451
|
-
return w.map((
|
|
10452
|
-
const
|
|
10453
|
-
return !(
|
|
10450
|
+
const k = w[0].clone().add(w[1]).add(w[2]).add(w[3]).divideScalar(4);
|
|
10451
|
+
return w.map((I) => I.clone().add(k).divideScalar(2)).filter((I) => {
|
|
10452
|
+
const C = I.distanceTo(A), L = new E.Raycaster(A, I.clone().sub(A).normalize()), x = i.model.intersectRaycaster(L)[0], O = 0.01;
|
|
10453
|
+
return !(x && x.distance + O < C);
|
|
10454
10454
|
}).length >= 2;
|
|
10455
10455
|
});
|
|
10456
10456
|
(!b || b.length === 0) && s(!0);
|
|
@@ -10597,7 +10597,7 @@ class Km extends oe {
|
|
|
10597
10597
|
);
|
|
10598
10598
|
}
|
|
10599
10599
|
}
|
|
10600
|
-
const { Raycaster: $m, Vector3: Qb } =
|
|
10600
|
+
const { Raycaster: $m, Vector3: Qb } = E, $s = (i, t, e, n) => {
|
|
10601
10601
|
const o = t.clone().sub(e).normalize(), s = new $m();
|
|
10602
10602
|
s.set(e, o);
|
|
10603
10603
|
const [r] = i.model.intersectRaycaster(s);
|
|
@@ -10733,7 +10733,7 @@ function ip(i) {
|
|
|
10733
10733
|
}
|
|
10734
10734
|
let op = 11;
|
|
10735
10735
|
function sp(i, t, e) {
|
|
10736
|
-
const { Raycaster: n, Vector3: o } =
|
|
10736
|
+
const { Raycaster: n, Vector3: o } = E;
|
|
10737
10737
|
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: u } = t, d = null, h = null, f = (s == null ? void 0 : s.currentMode) === Ve.Mode.Panorama, v, g, p = [], A = !0;
|
|
10738
10738
|
const b = (G, X) => {
|
|
10739
10739
|
const H = G.camera.position.clone(), ee = new o(X.modelPosition[0], X.modelPosition[1], X.modelPosition[2]), Y = ee.distanceTo(H);
|
|
@@ -10741,14 +10741,14 @@ function sp(i, t, e) {
|
|
|
10741
10741
|
}, w = (G) => {
|
|
10742
10742
|
const { camera: X, model: H } = s, { x: ee, y: Y, z: ae } = G.clone().project(X), he = (ee + 1) / 2, de = (2 - (Y + 1)) / 2, Pe = Math.abs(ae) < 1 && [he, de].every((Se) => Se < 1 && Se >= 0);
|
|
10743
10743
|
return Boolean(Pe);
|
|
10744
|
-
},
|
|
10744
|
+
}, k = (G, X) => {
|
|
10745
10745
|
const H = new o(X.modelPosition[0], X.modelPosition[1], X.modelPosition[2]), ee = G.project2d(H), Y = ee == null ? void 0 : ee.x, ae = ee == null ? void 0 : ee.y;
|
|
10746
10746
|
return [Y, ae];
|
|
10747
|
-
},
|
|
10747
|
+
}, I = (G, X) => {
|
|
10748
10748
|
const H = X.map((Y) => {
|
|
10749
10749
|
if (G.state.panoIndex !== Y.panoIndex)
|
|
10750
10750
|
return fe(Q({}, Y), { visible: !1 });
|
|
10751
|
-
const ae =
|
|
10751
|
+
const ae = k(G, Y);
|
|
10752
10752
|
Y.name.length * op;
|
|
10753
10753
|
const he = ep(Y.modelPosition[1], c), de = G.currentMode === Ve.Mode.Panorama ? w(new o(Y.position[0], Y.position[1], Y.position[2])) : !0, pe = r ? b(G, Y) : !1, Ce = de && !pe;
|
|
10754
10754
|
if (!Ce)
|
|
@@ -10768,21 +10768,21 @@ function sp(i, t, e) {
|
|
|
10768
10768
|
const ae = ee.findIndex((he) => he.itemLabelItem.id === Y.id);
|
|
10769
10769
|
return ae !== void 0 ? fe(Q({}, Y), { zIndex: ae * 10 }) : Y;
|
|
10770
10770
|
});
|
|
10771
|
-
},
|
|
10772
|
-
p = [], e(1, h =
|
|
10771
|
+
}, C = () => {
|
|
10772
|
+
p = [], e(1, h = I(s, h));
|
|
10773
10773
|
}, L = () => {
|
|
10774
|
-
e(5, A = !1),
|
|
10775
|
-
},
|
|
10774
|
+
e(5, A = !1), x();
|
|
10775
|
+
}, x = Dl(
|
|
10776
10776
|
() => {
|
|
10777
|
-
e(5, A = !0),
|
|
10777
|
+
e(5, A = !0), C();
|
|
10778
10778
|
},
|
|
10779
10779
|
300
|
|
10780
10780
|
), O = () => {
|
|
10781
|
-
s.once("renderFrame",
|
|
10781
|
+
s.once("renderFrame", C);
|
|
10782
10782
|
}, W = () => {
|
|
10783
10783
|
window.addEventListener("resize", O, !1);
|
|
10784
10784
|
}, _ = () => {
|
|
10785
|
-
d !== a && (e(1, h = er(a)), d = a,
|
|
10785
|
+
d !== a && (e(1, h = er(a)), d = a, C());
|
|
10786
10786
|
}, V = (G, X) => {
|
|
10787
10787
|
let H = [];
|
|
10788
10788
|
for (let Y = 0; Y < X.length; Y++) {
|
|
@@ -10823,7 +10823,7 @@ function sp(i, t, e) {
|
|
|
10823
10823
|
Wa(() => {
|
|
10824
10824
|
_();
|
|
10825
10825
|
}), Ze(() => {
|
|
10826
|
-
e(1, h = er(a)), d = a,
|
|
10826
|
+
e(1, h = er(a)), d = a, C(), W(), s.on("cameraUpdate", L);
|
|
10827
10827
|
}), Pt(() => {
|
|
10828
10828
|
s.off("cameraUpdate", L), window.removeEventListener("resize", O, !1);
|
|
10829
10829
|
});
|
|
@@ -11133,24 +11133,24 @@ class bp extends cp {
|
|
|
11133
11133
|
}), this.fixDoorPosition();
|
|
11134
11134
|
});
|
|
11135
11135
|
m(this, "fixDoorPosition", () => {
|
|
11136
|
-
var u, d, h, f, v, g, p, A, b, w,
|
|
11136
|
+
var u, d, h, f, v, g, p, A, b, w, k, I;
|
|
11137
11137
|
const { panoIndex: e, camera: n } = this.five;
|
|
11138
11138
|
if (e === null)
|
|
11139
11139
|
return;
|
|
11140
11140
|
if (this.five.currentMode !== "Panorama")
|
|
11141
11141
|
return this.hideAllLabels();
|
|
11142
11142
|
const o = this.five.getElement(), s = o.clientWidth, r = o.clientHeight, a = n.getWorldDirection(new U()), l = [], c = [...this.labelItems];
|
|
11143
|
-
if (c.forEach((
|
|
11144
|
-
if (
|
|
11145
|
-
const
|
|
11146
|
-
|
|
11143
|
+
if (c.forEach((C, L) => {
|
|
11144
|
+
if (C.visible) {
|
|
11145
|
+
const x = n.position.distanceTo(C.position), O = C.position.clone().add(new U(0, this.OffsetHeight, 0)), _ = O.clone().sub(n.position).normalize().angleTo(a), V = O.clone().project(n), B = (V.x + 1) / 2.2 * 100, R = (-V.y + 1) / 2.2 * 100, G = B >= 0 && B <= 100 && R >= 0 && R <= 100 && x > this.MinVisibledistance && x <= this.MaxVisibledistance;
|
|
11146
|
+
C.left = B, C.top = R, C.inSight = G && _ < Math.PI / 2, C.cameraToward = pp(this.five), G ? l.push({ disFromCameraToLabel: x, left: B, top: R, index: L }) : C.transform = "translate(-50%, -50%)";
|
|
11147
11147
|
} else
|
|
11148
|
-
|
|
11148
|
+
C.inSight = !1;
|
|
11149
11149
|
}), l.length > 1) {
|
|
11150
|
-
let
|
|
11151
|
-
l.sort((L,
|
|
11150
|
+
let C = 0;
|
|
11151
|
+
l.sort((L, x) => x.disFromCameraToLabel - L.disFromCameraToLabel);
|
|
11152
11152
|
for (let L = 1; L < l.length; L++) {
|
|
11153
|
-
const { index:
|
|
11153
|
+
const { index: x, left: O, top: W } = l[L - 1], { index: _, left: V, top: B } = l[L], R = this.container.children[x], G = this.container.children[_];
|
|
11154
11154
|
if (!R || !G)
|
|
11155
11155
|
return;
|
|
11156
11156
|
const X = {
|
|
@@ -11162,9 +11162,9 @@ class bp extends cp {
|
|
|
11162
11162
|
left: s * V / 100,
|
|
11163
11163
|
top: r * B / 100,
|
|
11164
11164
|
width: (b = (A = (p = G.children) == null ? void 0 : p[0]) == null ? void 0 : A.clientWidth) != null ? b : 0,
|
|
11165
|
-
height: (
|
|
11165
|
+
height: (I = (k = (w = G.children) == null ? void 0 : w[0]) == null ? void 0 : k.clientHeight) != null ? I : 0
|
|
11166
11166
|
};
|
|
11167
|
-
mp(X, H) && (
|
|
11167
|
+
mp(X, H) && (C++, c[x].transform = `translate(-50%, ${(C - 1) * 100 - 50}%)`, c[_].transform = `translate(-50%, ${C * 100 - 50}%)`);
|
|
11168
11168
|
}
|
|
11169
11169
|
}
|
|
11170
11170
|
this.labelItems = c, this.render();
|
|
@@ -11271,21 +11271,21 @@ function Pp(i, t) {
|
|
|
11271
11271
|
var r, a, l;
|
|
11272
11272
|
if (i.length < 2)
|
|
11273
11273
|
return console.warn("positionList length must be greater than 1"), [];
|
|
11274
|
-
const e = (r = t == null ? void 0 : t.unitWidth) != null ? r : 0.5, n = (a = t == null ? void 0 : t.unitHeight) != null ? a : 0.5, o = (l = t == null ? void 0 : t.skipPanoIndexMesh) != null ? l : !1, s = new
|
|
11274
|
+
const e = (r = t == null ? void 0 : t.unitWidth) != null ? r : 0.5, n = (a = t == null ? void 0 : t.unitHeight) != null ? a : 0.5, o = (l = t == null ? void 0 : t.skipPanoIndexMesh) != null ? l : !1, s = new E.CatmullRomCurve3(i, !1, "catmullrom", 1);
|
|
11275
11275
|
if (o) {
|
|
11276
11276
|
const c = Math.ceil(s.getLength() / n * 1.5), u = s.getPoints(c), d = [];
|
|
11277
11277
|
let h = 0;
|
|
11278
11278
|
const f = i;
|
|
11279
11279
|
return f.forEach((v, g) => {
|
|
11280
11280
|
let p = 0, A = 99999999;
|
|
11281
|
-
u.forEach((
|
|
11282
|
-
const
|
|
11283
|
-
|
|
11281
|
+
u.forEach((C, L) => {
|
|
11282
|
+
const x = C.distanceTo(v);
|
|
11283
|
+
x < A && (p = L, A = x);
|
|
11284
11284
|
});
|
|
11285
|
-
const b = u[p + 1], w = b == null ? void 0 : b.distanceTo(v),
|
|
11285
|
+
const b = u[p + 1], w = b == null ? void 0 : b.distanceTo(v), k = u[p - 1], I = k == null ? void 0 : k.distanceTo(v);
|
|
11286
11286
|
if (p > h && p - h > 1) {
|
|
11287
|
-
let
|
|
11288
|
-
|
|
11287
|
+
let C = p;
|
|
11288
|
+
k !== void 0 && I > 0.8 && (C = p + 1), k !== void 0 && I > 0.2 && I < 0.3 ? C = p : A > 0.2 && A < 0.3 && (C = p + 1);
|
|
11289
11289
|
let L = h;
|
|
11290
11290
|
if (b !== void 0 && w > 0.2 && w < 0.3 ? L = h + 1 : A > 0.2 && A < 0.3 && (L = h), u[L] && u[L + 1]) {
|
|
11291
11291
|
const W = f[g - 1];
|
|
@@ -11297,9 +11297,9 @@ function Pp(i, t) {
|
|
|
11297
11297
|
_.angleTo(V) < Math.PI / 2 && (L += 1);
|
|
11298
11298
|
}
|
|
11299
11299
|
}
|
|
11300
|
-
if (
|
|
11300
|
+
if (C < L || C - L <= 1)
|
|
11301
11301
|
return;
|
|
11302
|
-
const
|
|
11302
|
+
const x = u.slice(L, C), O = or(x, e, n);
|
|
11303
11303
|
d.push(O), h = p;
|
|
11304
11304
|
}
|
|
11305
11305
|
}), d;
|
|
@@ -11314,19 +11314,19 @@ function or(i, t, e) {
|
|
|
11314
11314
|
});
|
|
11315
11315
|
let g = 0;
|
|
11316
11316
|
for (let A = 0; A < i.length; A++) {
|
|
11317
|
-
const [b, w] = r[A][0],
|
|
11318
|
-
f[A * 6 + 0] =
|
|
11319
|
-
const O = new U(
|
|
11317
|
+
const [b, w] = r[A][0], k = i[A], { x: I, y: C, z: L } = k, x = new U(I + b * n, C + 0.05, L + w * n);
|
|
11318
|
+
f[A * 6 + 0] = x.x, f[A * 6 + 1] = x.y, f[A * 6 + 2] = x.z;
|
|
11319
|
+
const O = new U(I - b * n, C + 0.05, L - w * n);
|
|
11320
11320
|
f[A * 6 + 3] = O.x, f[A * 6 + 4] = O.y, f[A * 6 + 5] = O.z, g += A > 0 ? i[A - 1].clone().sub(i[A]).length() : 0;
|
|
11321
11321
|
const W = g / t / o;
|
|
11322
11322
|
v[A * 4 + 0] = 0, v[A * 4 + 1] = W, v[A * 4 + 2] = 1, v[A * 4 + 3] = W, A !== i.length - 1 && (h[A * 6 + 0] = A * 2 + 0, h[A * 6 + 1] = A * 2 + 2, h[A * 6 + 2] = A * 2 + 1, h[A * 6 + 3] = A * 2 + 2, h[A * 6 + 4] = A * 2 + 3, h[A * 6 + 5] = A * 2 + 1);
|
|
11323
11323
|
}
|
|
11324
|
-
const p = new
|
|
11325
|
-
return p.setAttribute("position", new
|
|
11324
|
+
const p = new E.BufferGeometry();
|
|
11325
|
+
return p.setAttribute("position", new E.BufferAttribute(f, 3)), p.setAttribute("uv", new E.BufferAttribute(v, 2)), p.setIndex(new E.BufferAttribute(h, 1)), p;
|
|
11326
11326
|
}
|
|
11327
11327
|
function Ip(i) {
|
|
11328
|
-
const t = new
|
|
11329
|
-
return t.wrapS = t.wrapT =
|
|
11328
|
+
const t = new E.TextureLoader().load(i.textureUrl);
|
|
11329
|
+
return t.wrapS = t.wrapT = E.RepeatWrapping, t.encoding = E.sRGBEncoding, t.minFilter = E.LinearFilter, new E.MeshBasicMaterial({
|
|
11330
11330
|
color: 16777215,
|
|
11331
11331
|
map: t,
|
|
11332
11332
|
transparent: !0,
|
|
@@ -11408,13 +11408,13 @@ class Ml extends zt {
|
|
|
11408
11408
|
this.linesGroup && this.five.scene.remove(this.linesGroup), this.hooks.emit("dispose");
|
|
11409
11409
|
}
|
|
11410
11410
|
getLinesGroup(e, n) {
|
|
11411
|
-
const o = e.map((r) => this.getLine(r, n)).filter(wt), s = new
|
|
11411
|
+
const o = e.map((r) => this.getLine(r, n)).filter(wt), s = new E.Group();
|
|
11412
11412
|
if (s.name = sr("route-group"), o.length !== 0)
|
|
11413
11413
|
return s.add(...o), s;
|
|
11414
11414
|
}
|
|
11415
11415
|
getLine(e, n) {
|
|
11416
11416
|
var l, c, u, d, h, f, v, g;
|
|
11417
|
-
const o = new
|
|
11417
|
+
const o = new E.Group(), s = e.panoIndexList.map((p) => {
|
|
11418
11418
|
var A;
|
|
11419
11419
|
return (A = this.five.work.observers[p]) == null ? void 0 : A.standingPosition;
|
|
11420
11420
|
}).filter(wt), r = Pp(s, {
|
|
@@ -11428,7 +11428,7 @@ class Ml extends zt {
|
|
|
11428
11428
|
textureUrl: (g = (v = e.arrowTextureUrl) != null ? v : n == null ? void 0 : n.arrowTextureUrl) != null ? g : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png"
|
|
11429
11429
|
});
|
|
11430
11430
|
return r.forEach((p) => {
|
|
11431
|
-
const A = new
|
|
11431
|
+
const A = new E.Mesh(p, a);
|
|
11432
11432
|
A.name = sr("route-line-mesh"), o.add(A);
|
|
11433
11433
|
}), o;
|
|
11434
11434
|
}
|
|
@@ -11450,7 +11450,7 @@ m(Ml, "lasestVersion", Ll);
|
|
|
11450
11450
|
const xp = (i, t) => new Ml(i, t);
|
|
11451
11451
|
function rr(i) {
|
|
11452
11452
|
const t = Math.abs(Math.cos(i.latitude));
|
|
11453
|
-
return new
|
|
11453
|
+
return new E.Vector3(
|
|
11454
11454
|
-Math.sin(i.longitude) * t,
|
|
11455
11455
|
-Math.sin(i.latitude),
|
|
11456
11456
|
-Math.cos(i.longitude) * t
|
|
@@ -11622,13 +11622,13 @@ class Bl extends zt {
|
|
|
11622
11622
|
return this.privateState.moveToFirstPanoEffect = a, this.privateState.moveToFirstPanoDuration = l, o.panoIndexList.forEach((c, u) => {
|
|
11623
11623
|
const d = (() => {
|
|
11624
11624
|
var p, A, b, w;
|
|
11625
|
-
const h = o.panoIndexList.slice(u).find((
|
|
11625
|
+
const h = o.panoIndexList.slice(u).find((k) => k !== c);
|
|
11626
11626
|
if (h === void 0)
|
|
11627
11627
|
return;
|
|
11628
11628
|
const f = (p = n[c]) == null ? void 0 : p.position, v = (A = n[h]) == null ? void 0 : A.position;
|
|
11629
11629
|
if (!v || !f || ((b = n[c]) == null ? void 0 : b.floorIndex) !== ((w = n[h]) == null ? void 0 : w.floorIndex))
|
|
11630
11630
|
return;
|
|
11631
|
-
const g = new
|
|
11631
|
+
const g = new E.Vector3().subVectors(v, f);
|
|
11632
11632
|
return Mp(g.normalize());
|
|
11633
11633
|
})();
|
|
11634
11634
|
o.moveType === void 0 || o.moveType === "justMove" ? s.push({
|
|
@@ -11942,19 +11942,19 @@ m(Bl, "PluginVersion", Tl);
|
|
|
11942
11942
|
const Gb = (i) => new Bl(i);
|
|
11943
11943
|
function Vp(i, t) {
|
|
11944
11944
|
t.forEach((e) => {
|
|
11945
|
-
const n = new
|
|
11946
|
-
new
|
|
11947
|
-
new
|
|
11948
|
-
new
|
|
11949
|
-
new
|
|
11945
|
+
const n = new E.SphereGeometry(0.02, 16, 16), o = [], s = [
|
|
11946
|
+
new E.MeshBasicMaterial({ color: 16776960 }),
|
|
11947
|
+
new E.MeshBasicMaterial({ color: 16711935 }),
|
|
11948
|
+
new E.MeshBasicMaterial({ color: 16711680 }),
|
|
11949
|
+
new E.MeshBasicMaterial({ color: 65535 })
|
|
11950
11950
|
];
|
|
11951
11951
|
if (e.position.length === 4)
|
|
11952
11952
|
e.position.forEach((r, a) => {
|
|
11953
|
-
const l = s[a], c = new
|
|
11953
|
+
const l = s[a], c = new E.Mesh(n, l);
|
|
11954
11954
|
c.position.copy(Je(r)), o.push(c);
|
|
11955
11955
|
});
|
|
11956
11956
|
else {
|
|
11957
|
-
const r = s[0], a = new
|
|
11957
|
+
const r = s[0], a = new E.Mesh(n, r);
|
|
11958
11958
|
a.position.copy(Je(e.position)), o.push(a);
|
|
11959
11959
|
}
|
|
11960
11960
|
o.forEach((r) => {
|
|
@@ -11970,13 +11970,13 @@ function Gi(i) {
|
|
|
11970
11970
|
return e.cross(n);
|
|
11971
11971
|
}
|
|
11972
11972
|
var Op = /* @__PURE__ */ ((i) => (i.Audio = "Audio", i.Text = "Text", i.ImageText = "ImageText", i.Image = "Image", i.Video = "Video", i.Link = "Link", i.Sticker = "Sticker", i.VRLink = "VRLink", i.PanoLink = "PanoLink", i.Marketing = "Marketing", i.MediaPlane = "MediaPlane", i.MediaModel = "MediaModel", i.Custom = "Custom", i.Unknown = "Unknown", i))(Op || {});
|
|
11973
|
-
class lr extends
|
|
11973
|
+
class lr extends E.Mesh {
|
|
11974
11974
|
constructor(e, n) {
|
|
11975
11975
|
super();
|
|
11976
11976
|
m(this, "name", "PanoTagPluginImagePlane");
|
|
11977
11977
|
m(this, "imageSrc");
|
|
11978
11978
|
this.imageSrc = e, ro(e).then((o) => {
|
|
11979
|
-
const s = o.image.width, r = o.image.height, a = new
|
|
11979
|
+
const s = o.image.width, r = o.image.height, a = new E.MeshBasicMaterial({ map: o, transparent: !0 }), l = new E.PlaneGeometry(s, r);
|
|
11980
11980
|
this.geometry = l, this.material = a;
|
|
11981
11981
|
const c = n[0].distanceTo(n[1]), u = n[1].distanceTo(n[2]);
|
|
11982
11982
|
this.scale.set(c / s, u / r, 1);
|
|
@@ -12034,13 +12034,13 @@ function Wp(i) {
|
|
|
12034
12034
|
});
|
|
12035
12035
|
}
|
|
12036
12036
|
function _p(i, t, e) {
|
|
12037
|
-
const o = new
|
|
12037
|
+
const o = new E.Plane().setFromNormalAndCoplanarPoint(e, t), s = t.clone().sub(i).cross(new E.Vector3(0, 1, 0)).setLength(0.01), r = new E.Vector3(0, 0.01, 0);
|
|
12038
12038
|
return [
|
|
12039
12039
|
t.clone().sub(s).sub(r),
|
|
12040
12040
|
t.clone().add(s).sub(r),
|
|
12041
12041
|
t.clone().add(s).add(r),
|
|
12042
12042
|
t.clone().sub(s).add(r)
|
|
12043
|
-
].map((l) => o.projectPoint(l, new
|
|
12043
|
+
].map((l) => o.projectPoint(l, new E.Vector3()));
|
|
12044
12044
|
}
|
|
12045
12045
|
const cr = (i, t = 1e3 / 60) => {
|
|
12046
12046
|
let e = null;
|
|
@@ -12210,7 +12210,7 @@ class Vl {
|
|
|
12210
12210
|
m(this, "config");
|
|
12211
12211
|
m(this, "offset", { x: 0, y: 0 });
|
|
12212
12212
|
m(this, "context");
|
|
12213
|
-
m(this, "renderCenter", new
|
|
12213
|
+
m(this, "renderCenter", new E.Vector3());
|
|
12214
12214
|
m(this, "hammer");
|
|
12215
12215
|
m(this, "state", { enabled: !1 });
|
|
12216
12216
|
m(this, "onPan", (t) => {
|
|
@@ -12267,7 +12267,7 @@ class Vl {
|
|
|
12267
12267
|
render() {
|
|
12268
12268
|
if (!this.five.renderer || !this.containerDom)
|
|
12269
12269
|
return;
|
|
12270
|
-
const { scale: t, context: e, width: n, height: o } = this, s = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new
|
|
12270
|
+
const { scale: t, context: e, width: n, height: o } = this, s = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new E.Vector2()), a = 1, l = n / t, c = o / t, u = a * t, d = (s.x + 1) / 2 * r.x, h = (s.y + 1) / 2 * r.y, f = this.five.getPixels(d - l / 2, h - l / 2, l, c, u), v = Math.floor(n * a), g = Math.floor(o * a);
|
|
12271
12271
|
Kp(f, v, g);
|
|
12272
12272
|
const p = new ImageData(v, g);
|
|
12273
12273
|
p.data.set(f), e.putImageData(p, 0, 0);
|
|
@@ -12281,21 +12281,21 @@ class Vl {
|
|
|
12281
12281
|
}
|
|
12282
12282
|
function $p(i, t) {
|
|
12283
12283
|
const { offsetWidth: e, offsetHeight: n } = t, { top: o, left: s } = t.getBoundingClientRect();
|
|
12284
|
-
return new
|
|
12284
|
+
return new E.Vector2().set((i.x - s) / e * 2 - 1, -(i.y - o) / n * 2 + 1);
|
|
12285
12285
|
}
|
|
12286
12286
|
function Ol(i, t) {
|
|
12287
12287
|
const { offsetWidth: e, offsetHeight: n } = t;
|
|
12288
|
-
return new
|
|
12288
|
+
return new E.Vector2().set(i.x / e * 2 - 1, -i.y / n * 2 + 1);
|
|
12289
12289
|
}
|
|
12290
12290
|
function eg(i, t) {
|
|
12291
12291
|
const e = i.getElement();
|
|
12292
12292
|
if (!e)
|
|
12293
12293
|
return;
|
|
12294
|
-
const n = Ol(t, e), o = new
|
|
12294
|
+
const n = Ol(t, e), o = new E.Raycaster();
|
|
12295
12295
|
return o.setFromCamera(n, i.camera), o;
|
|
12296
12296
|
}
|
|
12297
12297
|
function tg(i, t) {
|
|
12298
|
-
const { x: e, y: n } = t, o = e * 2 - 1, s = n * 2 - 1, r = new
|
|
12298
|
+
const { x: e, y: n } = t, o = e * 2 - 1, s = n * 2 - 1, r = new E.Vector2().fromArray([o, s]), a = new E.Raycaster();
|
|
12299
12299
|
return a.setFromCamera(r, i.camera), i.model.intersectRaycaster(a)[0];
|
|
12300
12300
|
}
|
|
12301
12301
|
const ng = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAAGwCAYAAADFUEBtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABtqADAAQAAAABAAABsAAAAABTZ8U6AAAtiklEQVR4Ae2dAXJbSbJdp+d7AfYSHOGVeAPek5fkNXgLjviLmRkZl+CRbtc8UBKRRalZpyIesiorMx/eIcjb+QCh//Y3hwQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgA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AISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQn8NQn8fyHnyuSABiy2AAAAAElFTkSuQmCC", ig = `
|
|
@@ -12315,36 +12315,36 @@ void main() {
|
|
|
12315
12315
|
}
|
|
12316
12316
|
`;
|
|
12317
12317
|
function sg() {
|
|
12318
|
-
const i = new
|
|
12319
|
-
e.encoding =
|
|
12320
|
-
const n = new
|
|
12318
|
+
const i = new E.PlaneGeometry(0.4, 0.4), t = ng, e = new E.TextureLoader().load(t);
|
|
12319
|
+
e.encoding = E.sRGBEncoding, e.minFilter = E.LinearFilter;
|
|
12320
|
+
const n = new E.MeshBasicMaterial({
|
|
12321
12321
|
map: e,
|
|
12322
12322
|
transparent: !0,
|
|
12323
12323
|
depthTest: !1
|
|
12324
12324
|
});
|
|
12325
|
-
return new
|
|
12325
|
+
return new E.Mesh(i, n);
|
|
12326
12326
|
}
|
|
12327
12327
|
function rg() {
|
|
12328
|
-
const i = new
|
|
12329
|
-
i.add(new
|
|
12330
|
-
const t = new
|
|
12328
|
+
const i = new E.CurvePath();
|
|
12329
|
+
i.add(new E.LineCurve3(new E.Vector3(0, 0, 0), new E.Vector3(0, 0, 0.1)));
|
|
12330
|
+
const t = new E.TubeGeometry(i, 8, 3e-3), e = new E.ShaderMaterial({
|
|
12331
12331
|
vertexShader: ig,
|
|
12332
12332
|
fragmentShader: og,
|
|
12333
12333
|
depthTest: !1,
|
|
12334
12334
|
transparent: !0
|
|
12335
12335
|
});
|
|
12336
|
-
return new
|
|
12336
|
+
return new E.Mesh(t, e);
|
|
12337
12337
|
}
|
|
12338
12338
|
function ag() {
|
|
12339
|
-
const i = new
|
|
12339
|
+
const i = new E.SphereGeometry(0.01, 20, 20), t = new E.MeshBasicMaterial({
|
|
12340
12340
|
color: 10349931,
|
|
12341
12341
|
depthTest: !1,
|
|
12342
12342
|
transparent: !0,
|
|
12343
|
-
side:
|
|
12344
|
-
}), e = new
|
|
12343
|
+
side: E.DoubleSide
|
|
12344
|
+
}), e = new E.Mesh(i, t);
|
|
12345
12345
|
return e.position.set(0, 0, 0.1), e;
|
|
12346
12346
|
}
|
|
12347
|
-
class Ql extends
|
|
12347
|
+
class Ql extends E.Object3D {
|
|
12348
12348
|
constructor() {
|
|
12349
12349
|
super();
|
|
12350
12350
|
m(this, "planeMesh");
|
|
@@ -12355,7 +12355,7 @@ class Ql extends C.Object3D {
|
|
|
12355
12355
|
updateWithIntersect(e) {
|
|
12356
12356
|
if (!e.face)
|
|
12357
12357
|
return;
|
|
12358
|
-
const n = new
|
|
12358
|
+
const n = new E.Vector3().addVectors(e.point, e.face.normal);
|
|
12359
12359
|
this.position.copy(e.point), this.lookAt(n);
|
|
12360
12360
|
}
|
|
12361
12361
|
dispose() {
|
|
@@ -12379,7 +12379,7 @@ class Rl {
|
|
|
12379
12379
|
[-n, -n, 0],
|
|
12380
12380
|
[n, -n, 0],
|
|
12381
12381
|
[n, n, 0]
|
|
12382
|
-
].map((r) => new
|
|
12382
|
+
].map((r) => new E.Vector3().fromArray(r))
|
|
12383
12383
|
);
|
|
12384
12384
|
if (s) {
|
|
12385
12385
|
const { container: r, dispose: a, css3DObject: l } = s;
|
|
@@ -12397,7 +12397,7 @@ class Rl {
|
|
|
12397
12397
|
updateWithIntersect(t) {
|
|
12398
12398
|
if (!t.face || !this.css3DObject)
|
|
12399
12399
|
return;
|
|
12400
|
-
const e = new
|
|
12400
|
+
const e = new E.Vector3().addVectors(t.point, t.face.normal);
|
|
12401
12401
|
this.css3DObject.position.copy(t.point), this.css3DObject.lookAt(e), this.five.needsRender = !0;
|
|
12402
12402
|
}
|
|
12403
12403
|
doAnimation() {
|
|
@@ -12419,7 +12419,7 @@ class lg {
|
|
|
12419
12419
|
m(this, "pointDomHelper", null);
|
|
12420
12420
|
m(this, "contentDom", document.createElement("div"));
|
|
12421
12421
|
m(this, "state", { enabled: !1 });
|
|
12422
|
-
m(this, "group", new
|
|
12422
|
+
m(this, "group", new E.Group());
|
|
12423
12423
|
this.five = t, this.magnifier = (e == null ? void 0 : e.magnifier) === void 0 ? new Vl(t, { dragEnabled: !0 }) : null, this.pointHelper = (e == null ? void 0 : e.pointHelper) === void 0 ? new Ql() : null, this.pointDomHelper = (e == null ? void 0 : e.pointDomHelper) === void 0 ? new Rl(t) : null, this.group.name = "five-point-selector", this.five.scene.add(this.group), this.contentDom.classList.add("five-point-selector-content"), this.contentDom.style.position = "absolute", this.contentDom.style.top = "0", this.contentDom.style.left = "0", this.contentDom.style.width = "100%", this.contentDom.style.height = "100%", this.contentDom.style.pointerEvents = "none";
|
|
12424
12424
|
}
|
|
12425
12425
|
enable() {
|
|
@@ -12560,7 +12560,7 @@ class ug extends zn {
|
|
|
12560
12560
|
}
|
|
12561
12561
|
const dg = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1 && navigator.userAgent.toLowerCase().indexOf("iphone") !== -1;
|
|
12562
12562
|
function be(i, t) {
|
|
12563
|
-
this._camera = i || null, this._domElement = t || document, this._raycaster = new
|
|
12563
|
+
this._camera = i || null, this._domElement = t || document, this._raycaster = new E.Raycaster(), this._selected = null, this._boundObjs = {};
|
|
12564
12564
|
var e = this;
|
|
12565
12565
|
this._$onClick = function() {
|
|
12566
12566
|
e._onClick.apply(e, arguments);
|
|
@@ -12660,7 +12660,7 @@ be.prototype._bound = function(i, t) {
|
|
|
12660
12660
|
be.prototype._onMove = function(i, t, e, n) {
|
|
12661
12661
|
var o = this._boundObjs[i];
|
|
12662
12662
|
if (!(o === void 0 || o.length === 0)) {
|
|
12663
|
-
var s = new
|
|
12663
|
+
var s = new E.Vector2();
|
|
12664
12664
|
s.set(t, e), this._raycaster.setFromCamera(s, this._camera);
|
|
12665
12665
|
var r = this._raycaster.intersectObjects(o), a = this._selected;
|
|
12666
12666
|
if (r.length > 0) {
|
|
@@ -12674,7 +12674,7 @@ be.prototype._onMove = function(i, t, e, n) {
|
|
|
12674
12674
|
be.prototype._onEvent = function(i, t, e, n) {
|
|
12675
12675
|
var o = this._boundObjs[i];
|
|
12676
12676
|
if (!(o === void 0 || o.length === 0)) {
|
|
12677
|
-
var s = new
|
|
12677
|
+
var s = new E.Vector2();
|
|
12678
12678
|
s.set(t, e), this._raycaster.setFromCamera(s, this._camera);
|
|
12679
12679
|
var r = this._raycaster.intersectObjects(o, !0);
|
|
12680
12680
|
if (r.length !== 0) {
|
|
@@ -12883,7 +12883,7 @@ class hg extends ug {
|
|
|
12883
12883
|
const d = Ai(e.position);
|
|
12884
12884
|
if (!d)
|
|
12885
12885
|
return;
|
|
12886
|
-
const h = new
|
|
12886
|
+
const h = new E.Vector3().copy(c).sub(d), f = u.angleTo(h) * 180 / Math.PI;
|
|
12887
12887
|
return s.angle = f, s.angle;
|
|
12888
12888
|
}
|
|
12889
12889
|
}
|
|
@@ -13006,7 +13006,7 @@ class hg extends ug {
|
|
|
13006
13006
|
class fg extends hg {
|
|
13007
13007
|
constructor(e) {
|
|
13008
13008
|
super(e);
|
|
13009
|
-
m(this, "raycaster", new
|
|
13009
|
+
m(this, "raycaster", new E.Raycaster());
|
|
13010
13010
|
}
|
|
13011
13011
|
getVisibleByPanoIndex(e, n) {
|
|
13012
13012
|
var r;
|
|
@@ -13604,34 +13604,34 @@ function Ig(i, t, e) {
|
|
|
13604
13604
|
let n, { inDelay: o = 0 } = t, { outDelay: s = 0 } = t, { content: r } = t, { unfolded: a } = t, { isFistUnfoldedUpdate: l = !0 } = t;
|
|
13605
13605
|
const c = `__EMOJI_SPLIT_${Wi}__`, u = `__EMOJI_${Wi}__`, d = `__SPACE_${Wi}__`;
|
|
13606
13606
|
let h, f, v = [];
|
|
13607
|
-
function g(
|
|
13608
|
-
const
|
|
13609
|
-
return
|
|
13607
|
+
function g(I) {
|
|
13608
|
+
const C = [], L = new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)", "gu"));
|
|
13609
|
+
return I.slice().replace(L, (x) => `${c}${u}${x}${c}`).split(c).forEach((x) => x.startsWith(u) ? C.push({
|
|
13610
13610
|
id: Ge(),
|
|
13611
|
-
content:
|
|
13612
|
-
}) :
|
|
13611
|
+
content: x.slice(u.length)
|
|
13612
|
+
}) : C.push(...x.split("").map((O) => O === " " ? d : O).map((O) => ({ id: Ge(), content: O })))), C;
|
|
13613
13613
|
}
|
|
13614
13614
|
function p() {
|
|
13615
13615
|
if (!f)
|
|
13616
13616
|
return;
|
|
13617
|
-
const
|
|
13618
|
-
f.reversed !==
|
|
13617
|
+
const I = !a;
|
|
13618
|
+
f.reversed !== I && f.reverse(), f.play();
|
|
13619
13619
|
}
|
|
13620
|
-
function A(
|
|
13620
|
+
function A(I) {
|
|
13621
13621
|
if (l) {
|
|
13622
13622
|
e(4, l = !1);
|
|
13623
13623
|
return;
|
|
13624
13624
|
}
|
|
13625
|
-
clearTimeout(h), h = setTimeout(p,
|
|
13625
|
+
clearTimeout(h), h = setTimeout(p, I ? o : s);
|
|
13626
13626
|
}
|
|
13627
|
-
function b(
|
|
13628
|
-
const
|
|
13629
|
-
const L = Xp((
|
|
13627
|
+
function b(I) {
|
|
13628
|
+
const C = function() {
|
|
13629
|
+
const L = Xp((x) => I[x].getBoundingClientRect().x, [Math.min(I.length - 1, 10), Math.min(I.length - 1, 30)]);
|
|
13630
13630
|
if (L > 0)
|
|
13631
13631
|
return L;
|
|
13632
13632
|
}();
|
|
13633
13633
|
f = Fo({
|
|
13634
|
-
targets:
|
|
13634
|
+
targets: I.slice(0, C).filter(wt),
|
|
13635
13635
|
autoplay: !1,
|
|
13636
13636
|
duration: 400,
|
|
13637
13637
|
scale: [0.7, 1],
|
|
@@ -13643,20 +13643,20 @@ function Ig(i, t, e) {
|
|
|
13643
13643
|
easing: "easeInOutCubic"
|
|
13644
13644
|
}), a && f.seek(f.duration);
|
|
13645
13645
|
}
|
|
13646
|
-
function w(
|
|
13647
|
-
Be[
|
|
13648
|
-
v[
|
|
13646
|
+
function w(I, C) {
|
|
13647
|
+
Be[I ? "unshift" : "push"](() => {
|
|
13648
|
+
v[C] = I, e(1, v);
|
|
13649
13649
|
});
|
|
13650
13650
|
}
|
|
13651
|
-
function
|
|
13652
|
-
Be[
|
|
13653
|
-
v[
|
|
13651
|
+
function k(I, C) {
|
|
13652
|
+
Be[I ? "unshift" : "push"](() => {
|
|
13653
|
+
v[C] = I, e(1, v);
|
|
13654
13654
|
});
|
|
13655
13655
|
}
|
|
13656
|
-
return i.$$set = (
|
|
13657
|
-
"inDelay" in
|
|
13656
|
+
return i.$$set = (I) => {
|
|
13657
|
+
"inDelay" in I && e(5, o = I.inDelay), "outDelay" in I && e(6, s = I.outDelay), "content" in I && e(0, r = I.content), "unfolded" in I && e(7, a = I.unfolded), "isFistUnfoldedUpdate" in I && e(4, l = I.isFistUnfoldedUpdate);
|
|
13658
13658
|
}, i.$$.update = () => {
|
|
13659
|
-
i.$$.dirty & 1 && e(2, n = g(r)), i.$$.dirty & 128 && A(a), i.$$.dirty & 2 && b(v.filter((
|
|
13659
|
+
i.$$.dirty & 1 && e(2, n = g(r)), i.$$.dirty & 128 && A(a), i.$$.dirty & 2 && b(v.filter((I) => !!I));
|
|
13660
13660
|
}, [
|
|
13661
13661
|
r,
|
|
13662
13662
|
v,
|
|
@@ -13667,7 +13667,7 @@ function Ig(i, t, e) {
|
|
|
13667
13667
|
s,
|
|
13668
13668
|
a,
|
|
13669
13669
|
w,
|
|
13670
|
-
|
|
13670
|
+
k
|
|
13671
13671
|
];
|
|
13672
13672
|
}
|
|
13673
13673
|
class Fl extends oe {
|
|
@@ -15681,8 +15681,8 @@ function vA(i) {
|
|
|
15681
15681
|
c() {
|
|
15682
15682
|
t = z("div"), e = z("div"), f && f.c(), n = $(), o = z("div"), s = z("div"), g && g.c(), a = $(), p && p.c(), l = $(), A && A.c(), c = $(), b && b.c(), y(s, "class", "sc-carousel__pages-container svelte-sme1z4"), T(s, "transform", "translateX(" + i[8] + "px)"), T(s, "transition-duration", i[9] + "ms"), T(s, "transition-timing-function", i[0]), y(o, "class", "sc-carousel__pages-window svelte-sme1z4"), y(e, "class", "sc-carousel__content-container svelte-sme1z4"), y(t, "class", "sc-carousel__carousel-container svelte-sme1z4");
|
|
15683
15683
|
},
|
|
15684
|
-
m(w,
|
|
15685
|
-
M(w, t,
|
|
15684
|
+
m(w, k) {
|
|
15685
|
+
M(w, t, k), j(t, e), f && f.m(e, null), j(e, n), j(e, o), j(o, s), g && g.m(s, null), i[39](s), j(o, a), p && p.m(o, null), i[40](o), j(e, l), A && A.m(e, null), j(t, c), b && b.m(t, null), u = !0, d || (h = [
|
|
15686
15686
|
ct(r = S0.call(null, s, {
|
|
15687
15687
|
thresholdProvider: i[38]
|
|
15688
15688
|
})),
|
|
@@ -15697,23 +15697,23 @@ function vA(i) {
|
|
|
15697
15697
|
ge(o, "tapped", i[22])
|
|
15698
15698
|
], d = !0);
|
|
15699
15699
|
},
|
|
15700
|
-
p(w,
|
|
15701
|
-
w[1] ? f ? (f.p(w,
|
|
15700
|
+
p(w, k) {
|
|
15701
|
+
w[1] ? f ? (f.p(w, k), k[0] & 2 && P(f, 1)) : (f = Or(w), f.c(), P(f, 1), f.m(e, n)) : f && (se(), D(f, 1, 1, () => {
|
|
15702
15702
|
f = null;
|
|
15703
|
-
}), re()), g && g.p && (!u ||
|
|
15703
|
+
}), re()), g && g.p && (!u || k[0] & 96 | k[1] & 32) && tn(
|
|
15704
15704
|
g,
|
|
15705
15705
|
v,
|
|
15706
15706
|
w,
|
|
15707
15707
|
w[36],
|
|
15708
|
-
u ? en(v, w[36],
|
|
15708
|
+
u ? en(v, w[36], k, fA) : nn(w[36]),
|
|
15709
15709
|
jr
|
|
15710
|
-
), (!u ||
|
|
15710
|
+
), (!u || k[0] & 256) && T(s, "transform", "translateX(" + w[8] + "px)"), (!u || k[0] & 512) && T(s, "transition-duration", w[9] + "ms"), (!u || k[0] & 1) && T(s, "transition-timing-function", w[0]), r && Kt(r.update) && k[0] & 2048 && r.update.call(null, {
|
|
15711
15711
|
thresholdProvider: w[38]
|
|
15712
|
-
}), w[3] ? p ? (p.p(w,
|
|
15712
|
+
}), w[3] ? p ? (p.p(w, k), k[0] & 8 && P(p, 1)) : (p = Qr(w), p.c(), P(p, 1), p.m(o, null)) : p && (se(), D(p, 1, 1, () => {
|
|
15713
15713
|
p = null;
|
|
15714
|
-
}), re()), w[1] ? A ? (A.p(w,
|
|
15714
|
+
}), re()), w[1] ? A ? (A.p(w, k), k[0] & 2 && P(A, 1)) : (A = Rr(w), A.c(), P(A, 1), A.m(e, null)) : A && (se(), D(A, 1, 1, () => {
|
|
15715
15715
|
A = null;
|
|
15716
|
-
}), re()), w[4] ? b ? (b.p(w,
|
|
15716
|
+
}), re()), w[4] ? b ? (b.p(w, k), k[0] & 16 && P(b, 1)) : (b = Fr(w), b.c(), P(b, 1), b.m(t, null)) : b && (se(), D(b, 1, 1, () => {
|
|
15717
15717
|
b = null;
|
|
15718
15718
|
}), re());
|
|
15719
15719
|
},
|
|
@@ -15740,7 +15740,7 @@ function bA(i, t, e) {
|
|
|
15740
15740
|
loaded: () => e(6, s = ve)
|
|
15741
15741
|
})(te);
|
|
15742
15742
|
}), g = yi();
|
|
15743
|
-
let { timingFunction: p = "ease-in-out" } = t, { arrows: A = !0 } = t, { infinite: b = !0 } = t, { initialPageIndex: w = 0 } = t, { duration:
|
|
15743
|
+
let { timingFunction: p = "ease-in-out" } = t, { arrows: A = !0 } = t, { infinite: b = !0 } = t, { initialPageIndex: w = 0 } = t, { duration: k = 500 } = t, { autoplay: I = !1 } = t, { autoplayDuration: C = 3e3 } = t, { autoplayDirection: L = Et } = t, { pauseOnFocus: x = !1 } = t, { autoplayProgressVisible: O = !1 } = t, { dots: W = !0 } = t, { swiping: _ = !0 } = t, { particlesToShow: V = 1 } = t, { particlesToScroll: B = 1 } = t;
|
|
15744
15744
|
function R(te, ve) {
|
|
15745
15745
|
return F(this, null, function* () {
|
|
15746
15746
|
const je = wn(ve, "animated", !0);
|
|
@@ -15836,9 +15836,9 @@ function bA(i, t, e) {
|
|
|
15836
15836
|
}
|
|
15837
15837
|
const $e = (te) => de(te.detail);
|
|
15838
15838
|
return i.$$set = (te) => {
|
|
15839
|
-
"timingFunction" in te && e(0, p = te.timingFunction), "arrows" in te && e(1, A = te.arrows), "infinite" in te && e(2, b = te.infinite), "initialPageIndex" in te && e(24, w = te.initialPageIndex), "duration" in te && e(25,
|
|
15839
|
+
"timingFunction" in te && e(0, p = te.timingFunction), "arrows" in te && e(1, A = te.arrows), "infinite" in te && e(2, b = te.infinite), "initialPageIndex" in te && e(24, w = te.initialPageIndex), "duration" in te && e(25, k = te.duration), "autoplay" in te && e(26, I = te.autoplay), "autoplayDuration" in te && e(27, C = te.autoplayDuration), "autoplayDirection" in te && e(28, L = te.autoplayDirection), "pauseOnFocus" in te && e(29, x = te.pauseOnFocus), "autoplayProgressVisible" in te && e(3, O = te.autoplayProgressVisible), "dots" in te && e(4, W = te.dots), "swiping" in te && e(30, _ = te.swiping), "particlesToShow" in te && e(31, V = te.particlesToShow), "particlesToScroll" in te && e(32, B = te.particlesToScroll), "$$scope" in te && e(36, o = te.$$scope);
|
|
15840
15840
|
}, i.$$.update = () => {
|
|
15841
|
-
i.$$.dirty[0] & 32 && g("pageChange", r), i.$$.dirty[0] & 4 && (d.infinite = b), i.$$.dirty[0] & 33554432 && (d.durationMsInit =
|
|
15841
|
+
i.$$.dirty[0] & 32 && g("pageChange", r), i.$$.dirty[0] & 4 && (d.infinite = b), i.$$.dirty[0] & 33554432 && (d.durationMsInit = k), i.$$.dirty[0] & 67108864 && (d.autoplay = I), i.$$.dirty[0] & 134217728 && (d.autoplayDuration = C), i.$$.dirty[0] & 268435456 && (d.autoplayDirection = L), i.$$.dirty[0] & 536870912 && (d.pauseOnFocus = x), i.$$.dirty[1] & 1 && (d.particlesToShowInit = V), i.$$.dirty[1] & 2 && (d.particlesToScrollInit = B);
|
|
15842
15842
|
}, [
|
|
15843
15843
|
p,
|
|
15844
15844
|
A,
|
|
@@ -15865,11 +15865,11 @@ function bA(i, t, e) {
|
|
|
15865
15865
|
Ee,
|
|
15866
15866
|
ue,
|
|
15867
15867
|
w,
|
|
15868
|
-
|
|
15869
|
-
x,
|
|
15868
|
+
k,
|
|
15870
15869
|
I,
|
|
15870
|
+
C,
|
|
15871
15871
|
L,
|
|
15872
|
-
|
|
15872
|
+
x,
|
|
15873
15873
|
_,
|
|
15874
15874
|
V,
|
|
15875
15875
|
B,
|
|
@@ -16067,22 +16067,22 @@ function xA(i, t, e) {
|
|
|
16067
16067
|
tag: r,
|
|
16068
16068
|
mediaInstance: n
|
|
16069
16069
|
});
|
|
16070
|
-
},
|
|
16070
|
+
}, k = (O) => {
|
|
16071
16071
|
e(9, f = !0), e(0, s.paused = !0, s), A.emit("playStateChange", {
|
|
16072
16072
|
event: O,
|
|
16073
16073
|
state: "paused",
|
|
16074
16074
|
tag: r,
|
|
16075
16075
|
mediaInstance: n
|
|
16076
16076
|
});
|
|
16077
|
-
},
|
|
16077
|
+
}, I = (O) => {
|
|
16078
16078
|
n && n.pause();
|
|
16079
16079
|
};
|
|
16080
|
-
function
|
|
16080
|
+
function C(O) {
|
|
16081
16081
|
Be[O ? "unshift" : "push"](() => {
|
|
16082
16082
|
s.videoInstance = O, e(0, s);
|
|
16083
16083
|
});
|
|
16084
16084
|
}
|
|
16085
|
-
const L = () => l === "withText" ? xg : l === "withoutText" ? Dg : l,
|
|
16085
|
+
const L = () => l === "withText" ? xg : l === "withoutText" ? Dg : l, x = (O) => {
|
|
16086
16086
|
!u || n && (e(8, n.muted = !1, n), n.play());
|
|
16087
16087
|
};
|
|
16088
16088
|
return i.$$set = (O) => {
|
|
@@ -16108,11 +16108,11 @@ function xA(i, t, e) {
|
|
|
16108
16108
|
v,
|
|
16109
16109
|
o,
|
|
16110
16110
|
w,
|
|
16111
|
-
|
|
16112
|
-
x,
|
|
16111
|
+
k,
|
|
16113
16112
|
I,
|
|
16113
|
+
C,
|
|
16114
16114
|
L,
|
|
16115
|
-
|
|
16115
|
+
x
|
|
16116
16116
|
];
|
|
16117
16117
|
}
|
|
16118
16118
|
class Nl extends oe {
|
|
@@ -16370,26 +16370,26 @@ function TA(i) {
|
|
|
16370
16370
|
};
|
|
16371
16371
|
}
|
|
16372
16372
|
function zA(i, t, e) {
|
|
16373
|
-
let n, o, s, r, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: u = 0 } = t, { duration: d = 0 } = t, { unfolded: h = !0 } = t, { animation: f = !0 } = t, { mediaItemConfig: v } = t, { enableCarousel: g = !0 } = t, { autoplayConfig: p = { autoplay: !0, autoplayVideo: !1 } } = t, A = [], b = 0, w,
|
|
16374
|
-
const
|
|
16373
|
+
let n, o, s, r, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: u = 0 } = t, { duration: d = 0 } = t, { unfolded: h = !0 } = t, { animation: f = !0 } = t, { mediaItemConfig: v } = t, { enableCarousel: g = !0 } = t, { autoplayConfig: p = { autoplay: !0, autoplayVideo: !1 } } = t, A = [], b = 0, w, k = null;
|
|
16374
|
+
const I = vt("hooks"), C = vt("mediaStore");
|
|
16375
16375
|
function L() {
|
|
16376
16376
|
var B, R;
|
|
16377
16377
|
const V = A[b];
|
|
16378
16378
|
!V || (V.paused ? (B = V.videoInstance) == null || B.play() : (R = V.videoInstance) == null || R.pause());
|
|
16379
16379
|
}
|
|
16380
16380
|
Ze(() => {
|
|
16381
|
-
|
|
16381
|
+
I.on("click", (V) => {
|
|
16382
16382
|
V.tag.id === a.id && L();
|
|
16383
|
-
}),
|
|
16383
|
+
}), k = setInterval(
|
|
16384
16384
|
() => {
|
|
16385
16385
|
r && (w == null || w.goToNext());
|
|
16386
16386
|
},
|
|
16387
16387
|
3e3
|
|
16388
16388
|
);
|
|
16389
16389
|
}), Pt(() => {
|
|
16390
|
-
clearInterval(
|
|
16390
|
+
clearInterval(k), I.off("click", L);
|
|
16391
16391
|
});
|
|
16392
|
-
function
|
|
16392
|
+
function x(V, B) {
|
|
16393
16393
|
i.$$.not_equal(A[B], V) && (A[B] = V, e(8, A));
|
|
16394
16394
|
}
|
|
16395
16395
|
function O(V) {
|
|
@@ -16398,7 +16398,7 @@ function zA(i, t, e) {
|
|
|
16398
16398
|
});
|
|
16399
16399
|
}
|
|
16400
16400
|
const W = (V) => {
|
|
16401
|
-
n ||
|
|
16401
|
+
n || C.set({ currentMediaElement: null }), e(11, b = V.detail);
|
|
16402
16402
|
};
|
|
16403
16403
|
function _(V) {
|
|
16404
16404
|
i.$$.not_equal(A[0], V) && (A[0] = V, e(8, A));
|
|
@@ -16422,10 +16422,10 @@ function zA(i, t, e) {
|
|
|
16422
16422
|
b,
|
|
16423
16423
|
w,
|
|
16424
16424
|
o,
|
|
16425
|
-
|
|
16425
|
+
C,
|
|
16426
16426
|
g,
|
|
16427
16427
|
p,
|
|
16428
|
-
|
|
16428
|
+
x,
|
|
16429
16429
|
O,
|
|
16430
16430
|
W,
|
|
16431
16431
|
_
|
|
@@ -16798,7 +16798,7 @@ function ia(i) {
|
|
|
16798
16798
|
};
|
|
16799
16799
|
}
|
|
16800
16800
|
function RA(i) {
|
|
16801
|
-
var
|
|
16801
|
+
var k, I;
|
|
16802
16802
|
let t, e, n, o, s, r, a, l, c, u, d = i[3].title + "", h, f, v, g, p;
|
|
16803
16803
|
e = new st({
|
|
16804
16804
|
props: {
|
|
@@ -16810,27 +16810,27 @@ function RA(i) {
|
|
|
16810
16810
|
spreadRadius: 75
|
|
16811
16811
|
}
|
|
16812
16812
|
});
|
|
16813
|
-
let A = i[3].headerPictureUrl && Jr(i), b = ((
|
|
16813
|
+
let A = i[3].headerPictureUrl && Jr(i), b = ((k = i[2].length) != null ? k : 0) + ((I = i[5].length) != null ? I : 0) > 0 && Zr(i), w = (i[7] || i[3].highlightText) && ea(i);
|
|
16814
16814
|
return {
|
|
16815
16815
|
c() {
|
|
16816
16816
|
t = z("div"), K(e.$$.fragment), n = $(), o = z("div"), s = $(), r = z("div"), A && A.c(), a = $(), l = z("div"), c = z("div"), u = z("div"), h = Ie(d), f = $(), b && b.c(), v = $(), w && w.c(), y(o, "class", "line svelte-sezqcq"), T(o, "transition-delay", i[4] ? $n + "ms" : ei + sa - oa - 40 + "ms"), y(u, "class", "text svelte-sezqcq"), y(c, "class", "title svelte-sezqcq"), y(l, "class", "title-wrapper svelte-sezqcq"), y(r, "class", "content svelte-sezqcq"), T(r, "max-width", it(i[9])), T(r, "transition-delay", i[4] ? $n + ei + "ms" : "0ms"), y(t, "class", g = Me(`marketing ${i[6]}`) + " svelte-sezqcq"), q(t, "unfolded", i[4]), q(t, "folded", i[8]);
|
|
16817
16817
|
},
|
|
16818
|
-
m(
|
|
16819
|
-
M(
|
|
16818
|
+
m(C, L) {
|
|
16819
|
+
M(C, t, L), J(e, t, null), j(t, n), j(t, o), j(t, s), j(t, r), A && A.m(r, null), j(r, a), j(r, l), j(l, c), j(c, u), j(u, h), j(r, f), b && b.m(r, null), j(r, v), w && w.m(r, null), p = !0;
|
|
16820
16820
|
},
|
|
16821
|
-
p(
|
|
16821
|
+
p(C, [L]) {
|
|
16822
16822
|
var O, W;
|
|
16823
|
-
const
|
|
16824
|
-
L & 16 && (
|
|
16823
|
+
const x = {};
|
|
16824
|
+
L & 16 && (x.visible = C[4]), e.$set(x), L & 16 && T(o, "transition-delay", C[4] ? $n + "ms" : ei + sa - oa - 40 + "ms"), C[3].headerPictureUrl ? A ? A.p(C, L) : (A = Jr(C), A.c(), A.m(r, a)) : A && (A.d(1), A = null), (!p || L & 8) && d !== (d = C[3].title + "") && Le(h, d), ((O = C[2].length) != null ? O : 0) + ((W = C[5].length) != null ? W : 0) > 0 ? b ? b.p(C, L) : (b = Zr(C), b.c(), b.m(r, v)) : b && (b.d(1), b = null), C[7] || C[3].highlightText ? w ? w.p(C, L) : (w = ea(C), w.c(), w.m(r, null)) : w && (w.d(1), w = null), L & 16 && T(r, "transition-delay", C[4] ? $n + ei + "ms" : "0ms"), (!p || L & 64 && g !== (g = Me(`marketing ${C[6]}`) + " svelte-sezqcq")) && y(t, "class", g), (!p || L & 80) && q(t, "unfolded", C[4]), (!p || L & 320) && q(t, "folded", C[8]);
|
|
16825
16825
|
},
|
|
16826
|
-
i(
|
|
16827
|
-
p || (P(e.$$.fragment,
|
|
16826
|
+
i(C) {
|
|
16827
|
+
p || (P(e.$$.fragment, C), p = !0);
|
|
16828
16828
|
},
|
|
16829
|
-
o(
|
|
16830
|
-
D(e.$$.fragment,
|
|
16829
|
+
o(C) {
|
|
16830
|
+
D(e.$$.fragment, C), p = !1;
|
|
16831
16831
|
},
|
|
16832
|
-
d(
|
|
16833
|
-
|
|
16832
|
+
d(C) {
|
|
16833
|
+
C && S(t), Z(e), A && A.d(), b && b.d(), w && w.d();
|
|
16834
16834
|
}
|
|
16835
16835
|
};
|
|
16836
16836
|
}
|
|
@@ -16850,8 +16850,8 @@ function FA(i, t, e) {
|
|
|
16850
16850
|
return i.$$set = (g) => {
|
|
16851
16851
|
"tag" in g && e(0, d = g.tag);
|
|
16852
16852
|
}, i.$$.update = () => {
|
|
16853
|
-
var g, p, A, b, w,
|
|
16854
|
-
i.$$.dirty & 1 && e(4, n = (p = (g = d.state) == null ? void 0 : g.unfolded) != null ? p : !1), i.$$.dirty & 16 && e(8, o = !n), i.$$.dirty & 1 && e(3, s = d.data), i.$$.dirty & 8 && e(7, r = wt((A = s.price) == null ? void 0 : A.value) && ((b = s.price) == null ? void 0 : b.value) !== ""), i.$$.dirty & 1 && e(6, a = d.data.theme || "light"), i.$$.dirty & 1026 && h > 40 && e(10, l = l - 1), i.$$.dirty & 1032 && e(2, c = ((w = s.brandTags) == null ? void 0 : w.slice(0, l).filter(Boolean)) || []), i.$$.dirty & 1036 && e(5, u = ((
|
|
16853
|
+
var g, p, A, b, w, k;
|
|
16854
|
+
i.$$.dirty & 1 && e(4, n = (p = (g = d.state) == null ? void 0 : g.unfolded) != null ? p : !1), i.$$.dirty & 16 && e(8, o = !n), i.$$.dirty & 1 && e(3, s = d.data), i.$$.dirty & 8 && e(7, r = wt((A = s.price) == null ? void 0 : A.value) && ((b = s.price) == null ? void 0 : b.value) !== ""), i.$$.dirty & 1 && e(6, a = d.data.theme || "light"), i.$$.dirty & 1026 && h > 40 && e(10, l = l - 1), i.$$.dirty & 1032 && e(2, c = ((w = s.brandTags) == null ? void 0 : w.slice(0, l).filter(Boolean)) || []), i.$$.dirty & 1036 && e(5, u = ((k = s.tags) == null ? void 0 : k.slice(0, l - c.length).filter(Boolean)) || []);
|
|
16855
16855
|
}, e(10, l = (f - 20) / zo), [
|
|
16856
16856
|
d,
|
|
16857
16857
|
h,
|
|
@@ -17234,15 +17234,15 @@ function aa(i) {
|
|
|
17234
17234
|
], f = !0);
|
|
17235
17235
|
},
|
|
17236
17236
|
p(b, w) {
|
|
17237
|
-
var L,
|
|
17238
|
-
const
|
|
17239
|
-
w & 64 && (
|
|
17237
|
+
var L, x;
|
|
17238
|
+
const k = {};
|
|
17239
|
+
w & 64 && (k.visible = b[6]), w & 8 && (k.left = b[3] / 2 + "px"), e.$set(k), b[6] ? g ? (g.p(b, w), w & 64 && P(g, 1)) : (g = la(b), g.c(), P(g, 1), g.m(r, null)) : g && (se(), D(g, 1, 1, () => {
|
|
17240
17240
|
g = null;
|
|
17241
17241
|
}), re());
|
|
17242
|
-
const x = {};
|
|
17243
|
-
w & 64 && (x.visible = b[6]), w & 2 && (x.textUnfolded = b[1]), w & 32 && (x.content = b[5]), c.$set(x);
|
|
17244
17242
|
const I = {};
|
|
17245
|
-
w & 64 && (I.
|
|
17243
|
+
w & 64 && (I.visible = b[6]), w & 2 && (I.textUnfolded = b[1]), w & 32 && (I.content = b[5]), c.$set(I);
|
|
17244
|
+
const C = {};
|
|
17245
|
+
w & 64 && (C.unfolded = b[6]), w & 8 && (C.length = b[3]), w & 48 && (C.outDelay = b[4] + 20 * Math.min((x = (L = b[5]) == null ? void 0 : L.length) != null ? x : 10, 15)), d.$set(C), (!h || w & 64) && q(t, "unfolded", b[6]);
|
|
17246
17246
|
},
|
|
17247
17247
|
i(b) {
|
|
17248
17248
|
h || (P(e.$$.fragment, b), P(g), P(c.$$.fragment, b), P(d.$$.fragment, b), h = !0);
|
|
@@ -18033,16 +18033,16 @@ function xv(i, t, e) {
|
|
|
18033
18033
|
const g = yi();
|
|
18034
18034
|
function p(w) {
|
|
18035
18035
|
return F(this, null, function* () {
|
|
18036
|
-
const
|
|
18037
|
-
return g("iconLoaded",
|
|
18036
|
+
const k = yield gv(w);
|
|
18037
|
+
return g("iconLoaded", k), k;
|
|
18038
18038
|
});
|
|
18039
18039
|
}
|
|
18040
18040
|
function A(w) {
|
|
18041
18041
|
return F(this, null, function* () {
|
|
18042
18042
|
if (typeof d == "number")
|
|
18043
18043
|
return fe(Q({}, w), { width: d });
|
|
18044
|
-
const
|
|
18045
|
-
return g("iconLoaded",
|
|
18044
|
+
const k = yield pv(w);
|
|
18045
|
+
return g("iconLoaded", k), k;
|
|
18046
18046
|
});
|
|
18047
18047
|
}
|
|
18048
18048
|
function b() {
|
|
@@ -18053,8 +18053,8 @@ function xv(i, t, e) {
|
|
|
18053
18053
|
}), i.$$set = (w) => {
|
|
18054
18054
|
"width" in w && e(1, h = w.width), "icon" in w && e(12, f = w.icon), "shadow" in w && e(0, v = w.shadow);
|
|
18055
18055
|
}, i.$$.update = () => {
|
|
18056
|
-
var w,
|
|
18057
|
-
i.$$.dirty & 4096 && e(7, n = f == null ? void 0 : f.url), i.$$.dirty & 4096 && e(2, o = (w = f == null ? void 0 : f.steps) != null ? w : 1), i.$$.dirty & 4096 && e(6, s = f == null ? void 0 : f.fps), i.$$.dirty & 4096 && e(5, r = f == null ? void 0 : f.ratio), i.$$.dirty & 4096 && e(4, a = (
|
|
18056
|
+
var w, k;
|
|
18057
|
+
i.$$.dirty & 4096 && e(7, n = f == null ? void 0 : f.url), i.$$.dirty & 4096 && e(2, o = (w = f == null ? void 0 : f.steps) != null ? w : 1), i.$$.dirty & 4096 && e(6, s = f == null ? void 0 : f.fps), i.$$.dirty & 4096 && e(5, r = f == null ? void 0 : f.ratio), i.$$.dirty & 4096 && e(4, a = (k = f == null ? void 0 : f.scale) != null ? k : 1), i.$$.dirty & 4096 && e(3, l = f == null ? void 0 : f.width), i.$$.dirty & 252 && e(9, c = xe({
|
|
18058
18058
|
url: n,
|
|
18059
18059
|
steps: o,
|
|
18060
18060
|
fps: s,
|
|
@@ -18264,11 +18264,10 @@ function Qv(i) {
|
|
|
18264
18264
|
Wv,
|
|
18265
18265
|
Gv,
|
|
18266
18266
|
Hv,
|
|
18267
|
-
Fv
|
|
18268
|
-
Rv
|
|
18267
|
+
Fv
|
|
18269
18268
|
], d = [];
|
|
18270
18269
|
function h(f, v) {
|
|
18271
|
-
return f[1].
|
|
18270
|
+
return f[1].contentType === "Text" ? 0 : f[1].contentType === "ImageText" || f[1].contentType === "Image" || f[1].contentType === "Video" ? 1 : f[1].contentType === "Audio" ? 2 : f[1].contentType === "Marketing" ? 3 : f[1].contentType === "Link" || f[1].contentType === "VRLink" || f[1].contentType === "PanoLink" || f[1].contentType === "Sticker" ? 4 : f[1].contentType === "MediaPlane" || f[1].contentType === "MediaModel" ? 5 : -1;
|
|
18272
18271
|
}
|
|
18273
18272
|
return ~(o = h(i)) && (s = d[o] = u[o](i)), {
|
|
18274
18273
|
c() {
|
|
@@ -18276,7 +18275,7 @@ function Qv(i) {
|
|
|
18276
18275
|
t = z("div"), e = z("div"), n = z("div"), s && s.c(), y(n, "class", "content svelte-1r4fqvg"), q(n, "unfolded", (f = i[1].state) == null ? void 0 : f.unfolded), y(e, "class", "content__wrapper svelte-1r4fqvg"), y(t, "class", "content__container svelte-1r4fqvg"), y(t, "data-id", r = i[1].id), q(t, "disable", i[1].enabled === !1), q(t, "hide", i[4]), q(t, "withAnimation", i[0]), q(t, "unClickable", i[1].mergedConfig.clickable === !1), T(t, "width", i[1].stickType === "Plane" || i[1].contentType === "MediaModel" ? "100%" : 0), T(t, "height", i[1].stickType === "Plane" || i[1].contentType === "MediaModel" ? "100%" : 0);
|
|
18277
18276
|
},
|
|
18278
18277
|
m(f, v) {
|
|
18279
|
-
M(f, t, v), j(t, e), j(e, n), ~o && d[o].m(n, null), a = !0, l || (c = ge(t, "click", Fa(i[
|
|
18278
|
+
M(f, t, v), j(t, e), j(e, n), ~o && d[o].m(n, null), a = !0, l || (c = ge(t, "click", Fa(i[14])), l = !0);
|
|
18280
18279
|
},
|
|
18281
18280
|
p(f, v) {
|
|
18282
18281
|
var p;
|
|
@@ -18297,34 +18296,34 @@ function Qv(i) {
|
|
|
18297
18296
|
};
|
|
18298
18297
|
}
|
|
18299
18298
|
function Rv(i) {
|
|
18300
|
-
let t, e;
|
|
18301
|
-
return
|
|
18299
|
+
let t, e, n, o, s, r;
|
|
18300
|
+
return e = new jv({
|
|
18302
18301
|
props: { tag: xe(i[1]) }
|
|
18303
18302
|
}), {
|
|
18304
18303
|
c() {
|
|
18305
|
-
K(
|
|
18304
|
+
t = z("div"), K(e.$$.fragment), y(t, "class", "content__container svelte-1r4fqvg"), y(t, "data-id", n = i[1].id);
|
|
18306
18305
|
},
|
|
18307
|
-
m(
|
|
18308
|
-
J(t,
|
|
18306
|
+
m(a, l) {
|
|
18307
|
+
M(a, t, l), J(e, t, null), o = !0, s || (r = ge(t, "click", i[13]), s = !0);
|
|
18309
18308
|
},
|
|
18310
|
-
p(
|
|
18311
|
-
const
|
|
18312
|
-
|
|
18309
|
+
p(a, l) {
|
|
18310
|
+
const c = {};
|
|
18311
|
+
l & 2 && (c.tag = xe(a[1])), e.$set(c), (!o || l & 2 && n !== (n = a[1].id)) && y(t, "data-id", n);
|
|
18313
18312
|
},
|
|
18314
|
-
i(
|
|
18315
|
-
|
|
18313
|
+
i(a) {
|
|
18314
|
+
o || (P(e.$$.fragment, a), o = !0);
|
|
18316
18315
|
},
|
|
18317
|
-
o(
|
|
18318
|
-
D(
|
|
18316
|
+
o(a) {
|
|
18317
|
+
D(e.$$.fragment, a), o = !1;
|
|
18319
18318
|
},
|
|
18320
|
-
d(
|
|
18321
|
-
|
|
18319
|
+
d(a) {
|
|
18320
|
+
a && S(t), Z(e), s = !1, r();
|
|
18322
18321
|
}
|
|
18323
18322
|
};
|
|
18324
18323
|
}
|
|
18325
18324
|
function Fv(i) {
|
|
18326
18325
|
let t, e;
|
|
18327
|
-
return t = new
|
|
18326
|
+
return t = new mv({
|
|
18328
18327
|
props: { tag: xe(i[1]) }
|
|
18329
18328
|
}), {
|
|
18330
18329
|
c() {
|
|
@@ -18350,7 +18349,7 @@ function Fv(i) {
|
|
|
18350
18349
|
}
|
|
18351
18350
|
function Hv(i) {
|
|
18352
18351
|
let t, e;
|
|
18353
|
-
return t = new
|
|
18352
|
+
return t = new Mv({
|
|
18354
18353
|
props: { tag: xe(i[1]) }
|
|
18355
18354
|
}), {
|
|
18356
18355
|
c() {
|
|
@@ -18376,7 +18375,7 @@ function Hv(i) {
|
|
|
18376
18375
|
}
|
|
18377
18376
|
function Gv(i) {
|
|
18378
18377
|
let t, e;
|
|
18379
|
-
return t = new
|
|
18378
|
+
return t = new HA({
|
|
18380
18379
|
props: { tag: xe(i[1]) }
|
|
18381
18380
|
}), {
|
|
18382
18381
|
c() {
|
|
@@ -18402,7 +18401,7 @@ function Gv(i) {
|
|
|
18402
18401
|
}
|
|
18403
18402
|
function Wv(i) {
|
|
18404
18403
|
let t, e;
|
|
18405
|
-
return t = new
|
|
18404
|
+
return t = new uv({
|
|
18406
18405
|
props: { tag: xe(i[1]) }
|
|
18407
18406
|
}), {
|
|
18408
18407
|
c() {
|
|
@@ -18428,7 +18427,7 @@ function Wv(i) {
|
|
|
18428
18427
|
}
|
|
18429
18428
|
function _v(i) {
|
|
18430
18429
|
let t, e;
|
|
18431
|
-
return t = new
|
|
18430
|
+
return t = new OA({
|
|
18432
18431
|
props: { tag: xe(i[1]) }
|
|
18433
18432
|
}), {
|
|
18434
18433
|
c() {
|
|
@@ -18454,7 +18453,7 @@ function _v(i) {
|
|
|
18454
18453
|
}
|
|
18455
18454
|
function Nv(i) {
|
|
18456
18455
|
let t, e;
|
|
18457
|
-
return t = new
|
|
18456
|
+
return t = new n0({
|
|
18458
18457
|
props: { tag: xe(i[1]) }
|
|
18459
18458
|
}), {
|
|
18460
18459
|
c() {
|
|
@@ -18480,9 +18479,9 @@ function Nv(i) {
|
|
|
18480
18479
|
}
|
|
18481
18480
|
function Xv(i) {
|
|
18482
18481
|
let t, e, n, o;
|
|
18483
|
-
const s = [Qv, Ov], r = [];
|
|
18482
|
+
const s = [Rv, Qv, Ov], r = [];
|
|
18484
18483
|
function a(l, c) {
|
|
18485
|
-
return l[
|
|
18484
|
+
return l[1].element ? 0 : l[3] ? 1 : 2;
|
|
18486
18485
|
}
|
|
18487
18486
|
return t = a(i), e = r[t] = s[t](i), {
|
|
18488
18487
|
c() {
|
|
@@ -18512,19 +18511,19 @@ function Yv(i, t, e) {
|
|
|
18512
18511
|
let n, o, s, r, a, l, { withAnimation: c = !1 } = t, { tag: u } = t, { hooks: d } = t, { state: h } = t, { mediaStore: f } = t, { temporaryState: v } = t;
|
|
18513
18512
|
eo("hooks", d), eo("mediaStore", f);
|
|
18514
18513
|
let g, p;
|
|
18515
|
-
function A(
|
|
18516
|
-
|
|
18514
|
+
function A(I) {
|
|
18515
|
+
I ? d.emit("exposure", { id: r, type: "start" }) : d.emit("exposure", { id: r, type: "end" });
|
|
18517
18516
|
}
|
|
18518
|
-
function b(
|
|
18519
|
-
var
|
|
18520
|
-
return !(!
|
|
18517
|
+
function b(I, C, L) {
|
|
18518
|
+
var x, O;
|
|
18519
|
+
return !(!C.visible || !C.enabled || !L.visible || !((x = I.state) != null && x.visible) || ((O = I.temporaryState) == null ? void 0 : O.visible) === !1 || Oe(I) && !I.mediaVisible);
|
|
18521
18520
|
}
|
|
18522
|
-
const w = (
|
|
18523
|
-
return i.$$set = (
|
|
18524
|
-
"withAnimation" in
|
|
18521
|
+
const w = (I) => d.emit("click", { event: I, target: "TagContent", tag: u }), k = (I) => d.emit("click", { event: I, target: "TagContent", tag: u });
|
|
18522
|
+
return i.$$set = (I) => {
|
|
18523
|
+
"withAnimation" in I && e(0, c = I.withAnimation), "tag" in I && e(1, u = I.tag), "hooks" in I && e(2, d = I.hooks), "state" in I && e(5, h = I.state), "mediaStore" in I && e(6, f = I.mediaStore), "temporaryState" in I && e(7, v = I.temporaryState);
|
|
18525
18524
|
}, i.$$.update = () => {
|
|
18526
|
-
var
|
|
18527
|
-
i.$$.dirty & 2 && e(11, n = (
|
|
18525
|
+
var I, C, L, x, O, W, _, V, B, R, G;
|
|
18526
|
+
i.$$.dirty & 2 && e(11, n = (I = u.state) == null ? void 0 : I.unfolded), i.$$.dirty & 2 && e(10, o = (C = u.state) == null ? void 0 : C.visible), i.$$.dirty & 162 && e(12, s = h.visible && v.visible && ((L = u.state) == null ? void 0 : L.visible)), i.$$.dirty & 2 && (r = u.id), i.$$.dirty & 162 && e(4, a = !b(u, h, v)), i.$$.dirty & 4096 && A(s), i.$$.dirty & 3842 && u.hooks && (n !== void 0 && n !== p && (e(9, p = n), n ? (O = (x = u.hooks).emit) == null || O.call(x, "unfolded") : (_ = u == null ? void 0 : (W = u.hooks).emit) == null || _.call(W, "folded")), o !== void 0 && o !== g && (e(8, g = o), o ? (B = (V = u.hooks).emit) == null || B.call(V, "show") : (G = (R = u.hooks).emit) == null || G.call(R, "hide"))), i.$$.dirty & 2 && e(3, l = (() => !(typeof u.mergedConfig.unfoldedConfig == "object" && u.mergedConfig.unfoldedConfig.keep === "folded"))());
|
|
18528
18527
|
}, [
|
|
18529
18528
|
c,
|
|
18530
18529
|
u,
|
|
@@ -18539,7 +18538,8 @@ function Yv(i, t, e) {
|
|
|
18539
18538
|
o,
|
|
18540
18539
|
n,
|
|
18541
18540
|
s,
|
|
18542
|
-
w
|
|
18541
|
+
w,
|
|
18542
|
+
k
|
|
18543
18543
|
];
|
|
18544
18544
|
}
|
|
18545
18545
|
class Zl extends oe {
|
|
@@ -18624,20 +18624,20 @@ function Jv(i, t, e) {
|
|
|
18624
18624
|
}, i.$$.update = () => {
|
|
18625
18625
|
var g, p, A, b;
|
|
18626
18626
|
i.$$.dirty & 64 && e(0, n = (g = l.state) == null ? void 0 : g.unfolded), i.$$.dirty & 1 && e(3, o = !n), i.$$.dirty & 64 && e(2, s = (A = (p = l.style) == null ? void 0 : p.point) != null && A.url ? (b = l.style) == null ? void 0 : b.point : { url: Lg }), i.$$.dirty & 64 && e(1, r = (() => {
|
|
18627
|
-
var
|
|
18628
|
-
const w = (
|
|
18627
|
+
var I, C, L, x;
|
|
18628
|
+
const w = (C = (I = l.style) == null ? void 0 : I.point) == null ? void 0 : C.width;
|
|
18629
18629
|
if (typeof w == "number")
|
|
18630
18630
|
return w;
|
|
18631
|
-
const
|
|
18632
|
-
if (typeof
|
|
18633
|
-
return
|
|
18634
|
-
if (
|
|
18631
|
+
const k = (x = (L = l.style) == null ? void 0 : L.point) == null ? void 0 : x.size;
|
|
18632
|
+
if (typeof k == "number")
|
|
18633
|
+
return k;
|
|
18634
|
+
if (k === "S")
|
|
18635
18635
|
return 18;
|
|
18636
|
-
if (
|
|
18636
|
+
if (k === "M")
|
|
18637
18637
|
return 20;
|
|
18638
|
-
if (
|
|
18638
|
+
if (k === "L")
|
|
18639
18639
|
return 24;
|
|
18640
|
-
if (
|
|
18640
|
+
if (k === "XL")
|
|
18641
18641
|
return 28;
|
|
18642
18642
|
})());
|
|
18643
18643
|
}, d(), [
|
|
@@ -18795,8 +18795,8 @@ function o1(i, t, e) {
|
|
|
18795
18795
|
return i.$$set = (b) => {
|
|
18796
18796
|
"withAnimation" in b && e(0, h = b.withAnimation), "tag" in b && e(1, f = b.tag), "mediaStore" in b && e(2, v = b.mediaStore), "state" in b && e(3, g = b.state), "temporaryState" in b && e(4, p = b.temporaryState);
|
|
18797
18797
|
}, i.$$.update = () => {
|
|
18798
|
-
var b, w,
|
|
18799
|
-
i.$$.dirty & 2 && e(13, n = (() => !(f.contentType === "Sticker" || f.contentType === "Link" || f.contentType === "VRLink" || f.contentType === "PanoLink" || f.contentType === "Audio" && f.data.appearance === "plane"))()), i.$$.dirty & 2 && e(12, o = (() => f.stickType === "2DPoint")()), i.$$.dirty & 2 && e(11, s = f.id), i.$$.dirty & 2 && e(10, r = !((b = f.pointTagStyle) != null && b.leftPercent) || !((w = f.pointTagStyle) != null && w.topPercent) || f.enabled === !1 || !f.state), i.$$.dirty & 2 && e(9, a = !((
|
|
18798
|
+
var b, w, k, I, C, L, x, O;
|
|
18799
|
+
i.$$.dirty & 2 && e(13, n = (() => !(f.contentType === "Sticker" || f.contentType === "Link" || f.contentType === "VRLink" || f.contentType === "PanoLink" || f.contentType === "Audio" && f.data.appearance === "plane"))()), i.$$.dirty & 2 && e(12, o = (() => f.stickType === "2DPoint")()), i.$$.dirty & 2 && e(11, s = f.id), i.$$.dirty & 2 && e(10, r = !((b = f.pointTagStyle) != null && b.leftPercent) || !((w = f.pointTagStyle) != null && w.topPercent) || f.enabled === !1 || !f.state), i.$$.dirty & 2 && e(9, a = !((k = f.state) != null && k.visible) || ((I = f.temporaryState) == null ? void 0 : I.visible) === !1), i.$$.dirty & 2 && e(8, l = (C = f.state) == null ? void 0 : C.unfolded), i.$$.dirty & 2 && e(7, c = ((L = f.pointTagStyle) == null ? void 0 : L.leftPercent) + "%"), i.$$.dirty & 2 && e(6, u = ((x = f.pointTagStyle) == null ? void 0 : x.topPercent) + "%"), i.$$.dirty & 2 && e(5, d = (O = f.state) != null && O.unfolded ? 1 : 0);
|
|
18800
18800
|
}, [
|
|
18801
18801
|
h,
|
|
18802
18802
|
f,
|
|
@@ -19299,7 +19299,7 @@ class f1 extends h1 {
|
|
|
19299
19299
|
const l = this.filterPointTag;
|
|
19300
19300
|
(a = this.TagContainerSvelte) == null || a.$set({ tags: l });
|
|
19301
19301
|
} else
|
|
19302
|
-
console.warn(`tag ${e} cannot be ${n ? "unfolded" : "folded"}
|
|
19302
|
+
console.warn(`tag ${e} cannot be ${n ? "unfolded" : "folded"}`);
|
|
19303
19303
|
}
|
|
19304
19304
|
changeEnabledById(e, n) {
|
|
19305
19305
|
const o = this.getTagById(e);
|
|
@@ -19439,7 +19439,7 @@ class f1 extends h1 {
|
|
|
19439
19439
|
}
|
|
19440
19440
|
const Nb = (i, t) => new f1(i, t);
|
|
19441
19441
|
function $l(i) {
|
|
19442
|
-
const t = new
|
|
19442
|
+
const t = new E.Box3(), e = new E.Vector3();
|
|
19443
19443
|
if (i.traverse((n) => {
|
|
19444
19444
|
var s;
|
|
19445
19445
|
if (n.name === "shadow")
|
|
@@ -19547,15 +19547,15 @@ class jn {
|
|
|
19547
19547
|
}
|
|
19548
19548
|
updateOffsetByScale(t) {
|
|
19549
19549
|
if (this.boundingBox && this.offset) {
|
|
19550
|
-
const e = this.originObject3D.position, n = new
|
|
19550
|
+
const e = this.originObject3D.position, n = new E.Vector3().subVectors(this.boundingBox.max, e).multiply(t).add(e), o = new E.Vector3().subVectors(this.boundingBox.min, e).multiply(t).add(e), s = this.calculateOffset(this.offset, { min: o, max: n });
|
|
19551
19551
|
this.helperObject3D.position.copy(s), this.helperObject3D.initialPosition();
|
|
19552
19552
|
}
|
|
19553
19553
|
}
|
|
19554
19554
|
hoverListener(t, e = 16777215, n = 1) {
|
|
19555
19555
|
const o = (Array.isArray(t) ? t : [t]).filter(wt), s = [];
|
|
19556
19556
|
for (const r of o)
|
|
19557
|
-
if (r instanceof
|
|
19558
|
-
const a = r instanceof
|
|
19557
|
+
if (r instanceof E.Mesh || r instanceof E.Group) {
|
|
19558
|
+
const a = r instanceof E.Group ? r.children.filter((h) => h instanceof E.Mesh) : [r];
|
|
19559
19559
|
a.forEach((h) => {
|
|
19560
19560
|
h.__originalColor__ = h.material.color.clone(), h.__originalOpacity__ = h.material.opacity;
|
|
19561
19561
|
});
|
|
@@ -19595,7 +19595,7 @@ class jn {
|
|
|
19595
19595
|
return s.object;
|
|
19596
19596
|
}
|
|
19597
19597
|
calculateOffset(t, e) {
|
|
19598
|
-
const n = this.originObject3D, o = new
|
|
19598
|
+
const n = this.originObject3D, o = new E.Vector3(0, 0, 0);
|
|
19599
19599
|
if (!t)
|
|
19600
19600
|
return o;
|
|
19601
19601
|
const s = () => e || (this.boundingBox ? this.boundingBox : (this.boundingBox = $l(n), this.boundingBox));
|
|
@@ -19629,13 +19629,13 @@ class m1 extends jn {
|
|
|
19629
19629
|
var l, c, u;
|
|
19630
19630
|
let n = 1, o = 1, s = 1;
|
|
19631
19631
|
typeof e == "number" ? (n = e, o = e, s = e) : typeof e == "object" && (n = (l = e.x) != null ? l : 1, o = (c = e.y) != null ? c : 1, s = (u = e.z) != null ? u : 1);
|
|
19632
|
-
const r = new
|
|
19632
|
+
const r = new E.Vector3(n, o, s);
|
|
19633
19633
|
this.hooks.emit("wantToScale", r) || (this.originObject3D.scale.copy(r), this.hooks.emit("setObjectScale", r), this.hooks.emit("scale", r), this.render());
|
|
19634
19634
|
}
|
|
19635
19635
|
}
|
|
19636
19636
|
function ec(i, t, e) {
|
|
19637
19637
|
if (e) {
|
|
19638
|
-
const o = new
|
|
19638
|
+
const o = new E.Vector3().subVectors(i.position, e).applyQuaternion(i.quaternion.clone().inverse()).applyQuaternion(t).add(e);
|
|
19639
19639
|
i.position.copy(o);
|
|
19640
19640
|
}
|
|
19641
19641
|
i.quaternion.copy(t);
|
|
@@ -19724,14 +19724,14 @@ class tc extends Di {
|
|
|
19724
19724
|
}
|
|
19725
19725
|
class b1 extends tc {
|
|
19726
19726
|
}
|
|
19727
|
-
class y1 extends
|
|
19727
|
+
class y1 extends E.Group {
|
|
19728
19728
|
constructor(e) {
|
|
19729
19729
|
super();
|
|
19730
19730
|
m(this, "direction");
|
|
19731
19731
|
this.direction = e || "x";
|
|
19732
19732
|
}
|
|
19733
19733
|
}
|
|
19734
|
-
class ya extends
|
|
19734
|
+
class ya extends E.Mesh {
|
|
19735
19735
|
constructor(e, n, o) {
|
|
19736
19736
|
super(e, n);
|
|
19737
19737
|
m(this, "direction");
|
|
@@ -19740,7 +19740,7 @@ class ya extends C.Mesh {
|
|
|
19740
19740
|
}
|
|
19741
19741
|
function w1(i, t) {
|
|
19742
19742
|
const { offsetWidth: e, offsetHeight: n } = t, { top: o, left: s } = t.getBoundingClientRect();
|
|
19743
|
-
return Object.assign(new
|
|
19743
|
+
return Object.assign(new E.Vector2(), {
|
|
19744
19744
|
x: (i.x - s) / e * 2 - 1,
|
|
19745
19745
|
y: -(i.y - o) / n * 2 + 1
|
|
19746
19746
|
});
|
|
@@ -19751,7 +19751,7 @@ function Bo(i, t, e) {
|
|
|
19751
19751
|
const n = w1(t, e);
|
|
19752
19752
|
if (Math.abs(n.x) === 1 || Math.abs(n.y) === 1)
|
|
19753
19753
|
return;
|
|
19754
|
-
const o = new
|
|
19754
|
+
const o = new E.Raycaster();
|
|
19755
19755
|
return o.setFromCamera(n, i), o;
|
|
19756
19756
|
}
|
|
19757
19757
|
function E1(i, t) {
|
|
@@ -19766,15 +19766,15 @@ class Xi extends y1 {
|
|
|
19766
19766
|
m(this, "lineHeight", 0.4);
|
|
19767
19767
|
m(this, "arrowHeight", 0.1);
|
|
19768
19768
|
this.name = "ArrowGroup";
|
|
19769
|
-
const n = new
|
|
19769
|
+
const n = new E.Color((u = e.color) != null ? u : 16214315), o = new E.MeshBasicMaterial({
|
|
19770
19770
|
color: n,
|
|
19771
19771
|
depthTest: !1,
|
|
19772
19772
|
opacity: 1,
|
|
19773
19773
|
transparent: !0,
|
|
19774
|
-
side:
|
|
19775
|
-
}), s = new
|
|
19774
|
+
side: E.DoubleSide
|
|
19775
|
+
}), s = new E.ConeGeometry(0.04, 0.1, 32), r = new ya(s, o.clone(), e.direction);
|
|
19776
19776
|
r.name = `arrow-${e.direction}`, this.arrow = r;
|
|
19777
|
-
const a = 4e-3, l = new
|
|
19777
|
+
const a = 4e-3, l = new E.CylinderGeometry(a, a, 0.4, 32), c = new ya(l, o.clone(), e.direction);
|
|
19778
19778
|
c.name = `line-${e.direction}`, this.line = c, this.formatArrow(), this.formatLine(), this.add(this.arrow, this.line);
|
|
19779
19779
|
}
|
|
19780
19780
|
formatArrow() {
|
|
@@ -19791,13 +19791,13 @@ const Yi = {
|
|
|
19791
19791
|
};
|
|
19792
19792
|
class Nt {
|
|
19793
19793
|
static get X() {
|
|
19794
|
-
return new
|
|
19794
|
+
return new E.Color(Yi.X).convertSRGBToLinear().clone();
|
|
19795
19795
|
}
|
|
19796
19796
|
static get Y() {
|
|
19797
|
-
return new
|
|
19797
|
+
return new E.Color(Yi.Y).convertSRGBToLinear().clone();
|
|
19798
19798
|
}
|
|
19799
19799
|
static get Z() {
|
|
19800
|
-
return new
|
|
19800
|
+
return new E.Color(Yi.Z).convertSRGBToLinear().clone();
|
|
19801
19801
|
}
|
|
19802
19802
|
}
|
|
19803
19803
|
class C1 extends g1 {
|
|
@@ -19881,7 +19881,7 @@ class k1 extends v1 {
|
|
|
19881
19881
|
this.removeFromParent(), (n = (e = this.angleTips) == null ? void 0 : e.element) == null || n.remove();
|
|
19882
19882
|
}
|
|
19883
19883
|
}
|
|
19884
|
-
class Ui extends
|
|
19884
|
+
class Ui extends E.Group {
|
|
19885
19885
|
constructor(e) {
|
|
19886
19886
|
super();
|
|
19887
19887
|
m(this, "direction");
|
|
@@ -19900,41 +19900,41 @@ class Ui extends C.Group {
|
|
|
19900
19900
|
this.remove(this.ring, this.angleSector, this.circle);
|
|
19901
19901
|
}
|
|
19902
19902
|
}
|
|
19903
|
-
class x1 extends
|
|
19903
|
+
class x1 extends E.Mesh {
|
|
19904
19904
|
constructor(e) {
|
|
19905
19905
|
var n;
|
|
19906
19906
|
super();
|
|
19907
19907
|
m(this, "direction");
|
|
19908
19908
|
m(this, "gapAngle", 0.02);
|
|
19909
|
-
m(this, "geometry", new
|
|
19910
|
-
this.material = new
|
|
19909
|
+
m(this, "geometry", new E.RingGeometry(0.25, 0.3, 20, 8, this.gapAngle, Math.PI / 2 - this.gapAngle * 2));
|
|
19910
|
+
this.material = new E.MeshBasicMaterial({
|
|
19911
19911
|
opacity: 0.6,
|
|
19912
19912
|
color: (n = e.color) != null ? n : 16777215,
|
|
19913
19913
|
transparent: !0,
|
|
19914
|
-
side:
|
|
19914
|
+
side: E.DoubleSide,
|
|
19915
19915
|
depthTest: !1
|
|
19916
19916
|
}), this.direction = e.direction, this.geometry.name = `RotateHelperCircleGeometry-${this.direction}`;
|
|
19917
19917
|
}
|
|
19918
19918
|
}
|
|
19919
|
-
class D1 extends
|
|
19919
|
+
class D1 extends E.Group {
|
|
19920
19920
|
constructor(e) {
|
|
19921
19921
|
super();
|
|
19922
19922
|
m(this, "direction");
|
|
19923
19923
|
this.direction = e.direction;
|
|
19924
19924
|
const n = 0.015, o = new Array(8).fill(null).map((s, r) => {
|
|
19925
|
-
const a = new
|
|
19925
|
+
const a = new E.RingGeometry(0.25, 0.3, 20, 8, Math.PI / 4 * r + n, Math.PI / 4 - n * 2), l = new E.MeshBasicMaterial({
|
|
19926
19926
|
opacity: 1,
|
|
19927
19927
|
color: 16777215,
|
|
19928
19928
|
depthTest: !1,
|
|
19929
19929
|
transparent: !0,
|
|
19930
|
-
side:
|
|
19931
|
-
}), c = new
|
|
19930
|
+
side: E.DoubleSide
|
|
19931
|
+
}), c = new E.Mesh(a, l);
|
|
19932
19932
|
return c.name = `AxesDashedRing-${this.direction}-${r}`, c;
|
|
19933
19933
|
});
|
|
19934
19934
|
this.add(...o);
|
|
19935
19935
|
}
|
|
19936
19936
|
}
|
|
19937
|
-
class L1 extends
|
|
19937
|
+
class L1 extends E.Mesh {
|
|
19938
19938
|
constructor(e) {
|
|
19939
19939
|
var o;
|
|
19940
19940
|
super();
|
|
@@ -19943,22 +19943,22 @@ class L1 extends C.Mesh {
|
|
|
19943
19943
|
m(this, "angleDirection");
|
|
19944
19944
|
switch (e.direction) {
|
|
19945
19945
|
case "x":
|
|
19946
|
-
this.baseAxes = new
|
|
19946
|
+
this.baseAxes = new E.Vector3(0, 0, 1);
|
|
19947
19947
|
break;
|
|
19948
19948
|
case "y":
|
|
19949
|
-
this.baseAxes = new
|
|
19949
|
+
this.baseAxes = new E.Vector3(1, 0, 0);
|
|
19950
19950
|
break;
|
|
19951
19951
|
case "z":
|
|
19952
|
-
this.baseAxes = new
|
|
19952
|
+
this.baseAxes = new E.Vector3(1, 0, 0);
|
|
19953
19953
|
break;
|
|
19954
19954
|
}
|
|
19955
19955
|
const n = 0.3 + 5e-4;
|
|
19956
|
-
this.geometry = new
|
|
19956
|
+
this.geometry = new E.CircleGeometry(n, 48, 0, 1e-4), this.material = new E.MeshBasicMaterial({
|
|
19957
19957
|
opacity: 0.4,
|
|
19958
19958
|
color: (o = e.color) != null ? o : 16777215,
|
|
19959
19959
|
depthTest: !1,
|
|
19960
19960
|
transparent: !0,
|
|
19961
|
-
side:
|
|
19961
|
+
side: E.DoubleSide
|
|
19962
19962
|
}), this.direction = e.direction, this.angleDirection = this.direction === "z" ? 1 : -1;
|
|
19963
19963
|
}
|
|
19964
19964
|
}
|
|
@@ -20066,15 +20066,15 @@ class M1 extends b1 {
|
|
|
20066
20066
|
var s;
|
|
20067
20067
|
const o = (s = this.css3DInstance) == null ? void 0 : s.css3DObject;
|
|
20068
20068
|
if (o) {
|
|
20069
|
-
const r = new
|
|
20069
|
+
const r = new E.Vector3().subVectors(o.position, n).applyQuaternion(e).add(n);
|
|
20070
20070
|
o.position.copy(r), o.applyQuaternion(e);
|
|
20071
20071
|
}
|
|
20072
20072
|
if (this.plane) {
|
|
20073
|
-
const r = new
|
|
20073
|
+
const r = new E.Vector3().subVectors(this.plane.position, n).applyQuaternion(e).add(n);
|
|
20074
20074
|
this.plane.position.copy(r), this.plane.applyQuaternion(e);
|
|
20075
20075
|
}
|
|
20076
20076
|
this.cornerPositions.forEach((r) => {
|
|
20077
|
-
const a = new
|
|
20077
|
+
const a = new E.Vector3().subVectors(r, n).applyQuaternion(e).add(n);
|
|
20078
20078
|
r.copy(a);
|
|
20079
20079
|
});
|
|
20080
20080
|
}
|
|
@@ -20140,7 +20140,7 @@ class T1 extends A1 {
|
|
|
20140
20140
|
m(this, "outline");
|
|
20141
20141
|
m(this, "originObject");
|
|
20142
20142
|
m(this, "positionAttribute");
|
|
20143
|
-
this.originObject = e, this.positionAttribute = new
|
|
20143
|
+
this.originObject = e, this.positionAttribute = new E.BufferAttribute(new Float32Array(8 * 3), 3), this.box = this.createBox(), this.outline = this.createOutline(), this.add(this.box, this.outline), this.update();
|
|
20144
20144
|
}
|
|
20145
20145
|
raycasterIntersectObject(e, n) {
|
|
20146
20146
|
return e.intersectObject(this, !1, n);
|
|
@@ -20156,16 +20156,16 @@ class T1 extends A1 {
|
|
|
20156
20156
|
this.positionAttribute.setXYZ(0, o.x, o.y, o.z), this.positionAttribute.setXYZ(1, n.x, o.y, o.z), this.positionAttribute.setXYZ(2, n.x, n.y, o.z), this.positionAttribute.setXYZ(3, o.x, n.y, o.z), this.positionAttribute.setXYZ(4, o.x, o.y, n.z), this.positionAttribute.setXYZ(5, n.x, o.y, n.z), this.positionAttribute.setXYZ(6, n.x, n.y, n.z), this.positionAttribute.setXYZ(7, o.x, n.y, n.z), this.positionAttribute.needsUpdate = !0;
|
|
20157
20157
|
}
|
|
20158
20158
|
createOutline() {
|
|
20159
|
-
const e = new Uint16Array([0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7]), n = new
|
|
20160
|
-
n.setIndex(new
|
|
20161
|
-
const o = new
|
|
20159
|
+
const e = new Uint16Array([0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7]), n = new E.BufferGeometry();
|
|
20160
|
+
n.setIndex(new E.BufferAttribute(e, 1)), n.setAttribute("position", this.positionAttribute);
|
|
20161
|
+
const o = new E.LineBasicMaterial({
|
|
20162
20162
|
color: 64767,
|
|
20163
20163
|
linewidth: 1,
|
|
20164
20164
|
opacity: 1,
|
|
20165
20165
|
depthTest: !1,
|
|
20166
20166
|
transparent: !0,
|
|
20167
20167
|
toneMapped: !1
|
|
20168
|
-
}), s = new
|
|
20168
|
+
}), s = new E.LineSegments(n, o);
|
|
20169
20169
|
return s.matrixAutoUpdate = !1, s;
|
|
20170
20170
|
}
|
|
20171
20171
|
createBox() {
|
|
@@ -20206,15 +20206,15 @@ class T1 extends A1 {
|
|
|
20206
20206
|
6,
|
|
20207
20207
|
7,
|
|
20208
20208
|
3
|
|
20209
|
-
]), n = new
|
|
20210
|
-
n.setIndex(new
|
|
20211
|
-
const o = new
|
|
20209
|
+
]), n = new E.BufferGeometry();
|
|
20210
|
+
n.setIndex(new E.BufferAttribute(e, 1)), n.setAttribute("position", this.positionAttribute);
|
|
20211
|
+
const o = new E.MeshBasicMaterial({
|
|
20212
20212
|
color: 64767,
|
|
20213
20213
|
opacity: 0.1,
|
|
20214
20214
|
depthTest: !1,
|
|
20215
20215
|
transparent: !0
|
|
20216
20216
|
});
|
|
20217
|
-
return new
|
|
20217
|
+
return new E.Mesh(n, o);
|
|
20218
20218
|
}
|
|
20219
20219
|
}
|
|
20220
20220
|
class z1 extends jn {
|
|
@@ -20276,7 +20276,7 @@ class z1 extends jn {
|
|
|
20276
20276
|
const o = (n == null ? void 0 : n.object).direction;
|
|
20277
20277
|
if (!o)
|
|
20278
20278
|
return this.dragEnd();
|
|
20279
|
-
const s = new
|
|
20279
|
+
const s = new E.Vector3(1, 0, 0).applyQuaternion(this.helperObject3D.quaternion), r = new E.Vector3(0, 1, 0).applyQuaternion(this.helperObject3D.quaternion), a = new E.Vector3(0, 0, 1).applyQuaternion(this.helperObject3D.quaternion), l = (() => {
|
|
20280
20280
|
switch (o) {
|
|
20281
20281
|
case "x":
|
|
20282
20282
|
return s;
|
|
@@ -20293,7 +20293,7 @@ class z1 extends jn {
|
|
|
20293
20293
|
case "z":
|
|
20294
20294
|
return s;
|
|
20295
20295
|
}
|
|
20296
|
-
})(), u = n.point.clone(), d = new
|
|
20296
|
+
})(), u = n.point.clone(), d = new E.Plane();
|
|
20297
20297
|
d.setFromNormalAndCoplanarPoint(c, u), this.startInfo = { startVectorProject: u.clone().projectOnVector(l), directionVector: l, plane: d }, this.helperObject3D.showDraggingHelper([o]), this.hooks.emit("moveStart"), this.isDragging = !0;
|
|
20298
20298
|
}
|
|
20299
20299
|
dragging(e) {
|
|
@@ -20305,10 +20305,10 @@ class z1 extends jn {
|
|
|
20305
20305
|
move(e) {
|
|
20306
20306
|
if (!this.startInfo)
|
|
20307
20307
|
return this.dragEnd();
|
|
20308
|
-
const { plane: n, directionVector: o, startVectorProject: s } = this.startInfo, r = this.originObject3D, a = e.ray.intersectPlane(n, new
|
|
20308
|
+
const { plane: n, directionVector: o, startVectorProject: s } = this.startInfo, r = this.originObject3D, a = e.ray.intersectPlane(n, new E.Vector3());
|
|
20309
20309
|
if (!a)
|
|
20310
20310
|
return;
|
|
20311
|
-
const l = a.clone().projectOnVector(o), c = l.clone().sub(s), u = new
|
|
20311
|
+
const l = a.clone().projectOnVector(o), c = l.clone().sub(s), u = new E.Matrix4();
|
|
20312
20312
|
u.setPosition(c);
|
|
20313
20313
|
const d = r.position.clone().applyMatrix4(u);
|
|
20314
20314
|
this.hooks.emit("wantToMove", d) || (r.applyMatrix4(u), s.copy(l), this.hooks.emit("applyObjectPosition", { matrix: u }), this.hooks.emit("move", d));
|
|
@@ -20465,7 +20465,7 @@ class F1 extends jn {
|
|
|
20465
20465
|
this.helperObject3D.applyHelperQuaternion(this.originObject3D.quaternion);
|
|
20466
20466
|
}
|
|
20467
20467
|
setRotateAngle(e) {
|
|
20468
|
-
const { x: n = 0, y: o = 0, z: s = 0 } = e, r = new
|
|
20468
|
+
const { x: n = 0, y: o = 0, z: s = 0 } = e, r = new E.Euler(qi(n), qi(o), qi(s)), a = new E.Quaternion().setFromEuler(r);
|
|
20469
20469
|
if (this.hooks.emit("wantToRotate", a))
|
|
20470
20470
|
return;
|
|
20471
20471
|
const { originObject3D: c, rotateCenter: u } = this;
|
|
@@ -20494,12 +20494,12 @@ class F1 extends jn {
|
|
|
20494
20494
|
a.y += 0.2, this.setTipsPosition(a);
|
|
20495
20495
|
const l = (() => {
|
|
20496
20496
|
if (o === "x")
|
|
20497
|
-
return new
|
|
20497
|
+
return new E.Vector3(1, 0, 0).applyQuaternion(this.originObject3D.quaternion);
|
|
20498
20498
|
if (o === "y")
|
|
20499
|
-
return new
|
|
20499
|
+
return new E.Vector3(0, 1, 0).applyQuaternion(this.originObject3D.quaternion);
|
|
20500
20500
|
if (o === "z")
|
|
20501
|
-
return new
|
|
20502
|
-
})(), c = new
|
|
20501
|
+
return new E.Vector3(0, 0, 1).applyQuaternion(this.originObject3D.quaternion);
|
|
20502
|
+
})(), c = new E.Plane().setFromNormalAndCoplanarPoint(l, s), d = c.projectPoint(s.clone(), new E.Vector3()).clone().sub(this.rotateCenter), h = d.angleTo(r.baseAxes.clone().applyQuaternion(this.originObject3D.quaternion));
|
|
20503
20503
|
this.setAngleHelperStart(o, h), this.setAngleHelperLength(o, 0), this.startInfo = { direction: o, startVector: d, plane: c, angleHelper: r, angle: 0, objectQuaternion: this.originObject3D.quaternion.clone() }, this.helperObject3D.showDraggingHelper([o]), this.hooks.emit("rotateStart"), this.isDragging = !0;
|
|
20504
20504
|
}
|
|
20505
20505
|
dragging(e) {
|
|
@@ -20511,24 +20511,24 @@ class F1 extends jn {
|
|
|
20511
20511
|
rotate(e) {
|
|
20512
20512
|
if (!this.startInfo)
|
|
20513
20513
|
return this.dragEnd();
|
|
20514
|
-
const { startVector: n, plane: o, angleHelper: s, direction: r, objectQuaternion: a } = this.startInfo, { originObject3D: l } = this, c = e.ray.intersectPlane(o, new
|
|
20514
|
+
const { startVector: n, plane: o, angleHelper: s, direction: r, objectQuaternion: a } = this.startInfo, { originObject3D: l } = this, c = e.ray.intersectPlane(o, new E.Vector3());
|
|
20515
20515
|
if (!c)
|
|
20516
20516
|
return;
|
|
20517
|
-
const u = this.rotateCenter.clone(), h = o.projectPoint(c.clone(), new
|
|
20517
|
+
const u = this.rotateCenter.clone(), h = o.projectPoint(c.clone(), new E.Vector3()).clone().sub(u);
|
|
20518
20518
|
if (n.angleTo(h) === 0)
|
|
20519
20519
|
return;
|
|
20520
|
-
const f = new
|
|
20520
|
+
const f = new E.Quaternion().setFromUnitVectors(n.clone().normalize(), h.clone().normalize()), v = l.quaternion.clone().premultiply(f);
|
|
20521
20521
|
if (this.hooks.emit("wantToRotate", v))
|
|
20522
20522
|
return;
|
|
20523
|
-
const A = new
|
|
20524
|
-
new
|
|
20523
|
+
const A = new E.Euler().setFromQuaternion(
|
|
20524
|
+
new E.Quaternion().setFromUnitVectors(
|
|
20525
20525
|
n.clone().normalize().applyQuaternion(a.clone().inverse()),
|
|
20526
20526
|
h.clone().normalize().applyQuaternion(a.clone().inverse())
|
|
20527
20527
|
),
|
|
20528
20528
|
`${r.toUpperCase()}${"XZY".replace(r.toUpperCase(), "")}`
|
|
20529
20529
|
)[r] * s.angleDirection;
|
|
20530
20530
|
if (this.startInfo.angle += A, this.setAngleHelperLength(r, this.startInfo.angle), this.setTipsAngle(sl(this.startInfo.angle)), u) {
|
|
20531
|
-
const b = new
|
|
20531
|
+
const b = new E.Vector3().subVectors(l.position, u).applyQuaternion(f).add(u);
|
|
20532
20532
|
l.position.copy(b);
|
|
20533
20533
|
}
|
|
20534
20534
|
l.applyQuaternion(f), this.hooks.emit("applyObjectRotate", { quaternion: f, origin: u }), this.hooks.emit("rotate", l.quaternion), this.startInfo.startVector = h;
|
|
@@ -20553,17 +20553,17 @@ class F1 extends jn {
|
|
|
20553
20553
|
console.warn("angleHelper is undefined");
|
|
20554
20554
|
return;
|
|
20555
20555
|
}
|
|
20556
|
-
if (o instanceof
|
|
20556
|
+
if (o instanceof E.Mesh && o.geometry instanceof E.CircleGeometry) {
|
|
20557
20557
|
const { radius: s, segments: r, thetaLength: a } = o.geometry.parameters;
|
|
20558
|
-
o.geometry = new
|
|
20558
|
+
o.geometry = new E.CircleGeometry(s, r, n, a);
|
|
20559
20559
|
} else
|
|
20560
20560
|
console.warn("only support THREE.CircleGeometry");
|
|
20561
20561
|
}
|
|
20562
20562
|
setAngleHelperLength(e, n) {
|
|
20563
20563
|
const s = n >= 0 ? Math.max(n, 1e-3) : Math.min(n, -1e-3), r = this.getAngleHelper(e);
|
|
20564
|
-
if (r instanceof
|
|
20564
|
+
if (r instanceof E.Mesh && r.geometry instanceof E.CircleGeometry) {
|
|
20565
20565
|
const { radius: a, thetaStart: l } = r.geometry.parameters, c = Math.ceil(Math.abs(s) * (40 / (2 * Math.PI)));
|
|
20566
|
-
r.geometry = new
|
|
20566
|
+
r.geometry = new E.CircleGeometry(a, c, l, s);
|
|
20567
20567
|
} else
|
|
20568
20568
|
console.warn("only support THREE.CircleGeometry");
|
|
20569
20569
|
}
|
|
@@ -20608,7 +20608,7 @@ class H1 extends jn {
|
|
|
20608
20608
|
this.helperObject3D.applyHelperScaleMatrix4(e.matrix, e.origin);
|
|
20609
20609
|
}
|
|
20610
20610
|
getDragPlane() {
|
|
20611
|
-
const e = new
|
|
20611
|
+
const e = new E.Plane(), n = this.helperObject3D.cornerPositions;
|
|
20612
20612
|
if (n.length !== 0)
|
|
20613
20613
|
return n.length < 3 ? e.setFromNormalAndCoplanarPoint(this.originObject3D.getWorldDirection(new U()), n[0]) : e.setFromCoplanarPoints(n[0], n[1], n[2]), e;
|
|
20614
20614
|
}
|
|
@@ -20679,10 +20679,10 @@ class H1 extends jn {
|
|
|
20679
20679
|
case "nwse":
|
|
20680
20680
|
p(), A();
|
|
20681
20681
|
}
|
|
20682
|
-
const b = new U().subVectors(r[1], r[0]).length() / d.length(), w = new U().subVectors(r[3], r[0]).length() / h.length(),
|
|
20683
|
-
n.isCSS3DObjectPlus ? n.applyScaleMatrix4(
|
|
20684
|
-
const
|
|
20685
|
-
n.applyMatrix4(
|
|
20682
|
+
const b = new U().subVectors(r[1], r[0]).length() / d.length(), w = new U().subVectors(r[3], r[0]).length() / h.length(), k = new U(b, w, 1), I = new E.Matrix4().scale(k);
|
|
20683
|
+
n.isCSS3DObjectPlus ? n.applyScaleMatrix4(I) : n.scale.applyMatrix4(I), o.position.copy(a);
|
|
20684
|
+
const C = new U().addVectors(r[0], r[2]).divideScalar(2), L = new U().subVectors(C, l), x = new E.Matrix4().setPosition(L);
|
|
20685
|
+
n.applyMatrix4(x), (O = this.helperObject3D.css3DInstance) == null || O.css3DObject.applyMatrix4(x), (W = this.helperObject3D.plane) == null || W.applyMatrix4(x), this.hooks.emit("applyObjectScale", { matrix: I }), this.hooks.emit("applyObjectPosition", { matrix: x }), this.render();
|
|
20686
20686
|
}
|
|
20687
20687
|
dragEnd() {
|
|
20688
20688
|
!this.isDragging || (this.startInfo = void 0, this.isDragging = !1, this.hooks.emit("scaleEnd"), this.render());
|