@realsee/dnalogel 2.2.3 → 2.2.5-alpha.0
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/CSS3DRenderPlugin/CSS3DRender.d.ts +47 -34
- package/dist/CSS3DRenderPlugin/Controller.d.ts +5 -5
- package/dist/CSS3DRenderPlugin/index.d.ts +2 -1
- package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +4 -0
- package/dist/CSS3DRenderPlugin/utils/even.d.ts +9 -0
- package/dist/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +2 -0
- package/dist/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +3 -0
- package/dist/CSS3DRenderPlugin/utils/index.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +12 -0
- package/dist/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +25 -11
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +14 -0
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +12 -0
- package/dist/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +6 -0
- package/dist/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +2 -0
- package/dist/Object3DHelperPlugin/Controller.d.ts +2 -0
- package/dist/index.cjs.js +63 -58
- package/dist/index.js +5827 -5094
- package/dist/index.umd.js +51 -46
- package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
- package/docs/assets/highlight.css +7 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +533 -0
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +12 -12
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/LinkType.html +7 -7
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +6 -5
- package/docs/functions/CameraMovementPlugin.html +6 -5
- package/docs/functions/CruisePlugin.html +6 -5
- package/docs/functions/GuideLinePlugin.html +7 -6
- package/docs/functions/ItemLabelPlugin.html +6 -5
- package/docs/functions/MapviewFloorplanPlugin.html +6 -5
- package/docs/functions/ModelChassisCompassPlugin.html +6 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -5
- package/docs/functions/ModelFloorplanPlugin.html +6 -5
- package/docs/functions/ModelItemLabelPlugin.html +6 -5
- package/docs/functions/ModelRoomLabelPlugin.html +6 -5
- package/docs/functions/ModelTVVideoPlugin.html +6 -5
- package/docs/functions/ModelViewPlugin.html +6 -5
- package/docs/functions/Object3DHelperPlugin.html +6 -5
- package/docs/functions/PanoCompassPlugin.html +6 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +6 -5
- package/docs/functions/PanoDoorLabelPlugin.html +6 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +6 -5
- package/docs/functions/PanoMeasurePlugin.html +6 -5
- package/docs/functions/PanoRulerPlugin.html +6 -5
- package/docs/functions/PanoRulerProPlugin.html +6 -5
- package/docs/functions/PanoSpatialTagPlugin.html +6 -5
- package/docs/functions/PanoTagPlugin.html +6 -5
- package/docs/functions/TopviewFloorplanPlugin.html +6 -5
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +7 -6
- package/docs/index.html +6 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +8 -8
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -6
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -6
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -6
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +7 -6
- package/docs/interfaces/Rooms.html +7 -6
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +7 -5
- package/docs/types/ArrayPosition.html +7 -6
- package/docs/types/CSS3DRenderExportType.html +8 -7
- package/docs/types/CSS3DRenderPluginExportType.html +7 -6
- package/docs/types/CSS3DRenderPluginParameterType.html +7 -6
- package/docs/types/Color.html +7 -6
- package/docs/types/ContentTypeConfigKey.html +7 -6
- package/docs/types/ContentTypeConfigKeyArray.html +7 -6
- package/docs/types/Create3DDomContainerReturnType.html +7 -6
- package/docs/types/Create3DElementReturnType.html +8 -7
- package/docs/types/CruisePluginExportType.html +7 -6
- package/docs/types/Direction-1.html +7 -6
- package/docs/types/Direction4.html +7 -6
- package/docs/types/FloorplanRuleLabels.html +7 -6
- package/docs/types/FloorplanServerRuleLabels.html +7 -6
- package/docs/types/GuideLinePluginExportType.html +7 -6
- package/docs/types/HelperEventMap.html +7 -6
- package/docs/types/MapviewFloorplanPluginParameterType.html +7 -6
- package/docs/types/MapviewFloorplanPluginReturnType.html +7 -6
- package/docs/types/MediaData.html +7 -6
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -6
- package/docs/types/ModelFloorplanPluginParameterType.html +7 -6
- package/docs/types/ModelFloorplanPluginReturnType.html +7 -6
- package/docs/types/ModelRoomLabelPluginParameters.html +7 -6
- package/docs/types/ModelRoomLabelPluginReturnType.html +7 -6
- package/docs/types/MoveArgs.html +7 -6
- package/docs/types/MoveOpts.html +7 -6
- package/docs/types/Object3DHelperEventMap.html +7 -6
- package/docs/types/ObjectFit.html +7 -6
- package/docs/types/PaintBrushEventMap.html +7 -6
- package/docs/types/PanoCompassPluginData.html +7 -6
- package/docs/types/PanoCompassPluginExportType.html +7 -6
- package/docs/types/PanoCompassPluginParameterType.html +7 -6
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -6
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -6
- package/docs/types/PanoMeasurePluginEvent.html +7 -6
- package/docs/types/PanoMeasureReturnType.html +7 -6
- package/docs/types/PanoSpatialTagPluginId.html +7 -6
- package/docs/types/PanoTagPluginExportInterface.html +7 -6
- package/docs/types/PanoTagPluginParamsInterface.html +7 -6
- package/docs/types/PlaneTag.html +7 -6
- package/docs/types/PointTag.html +7 -6
- package/docs/types/Position.html +7 -6
- package/docs/types/RotateArgs.html +7 -6
- package/docs/types/RotateOpts.html +7 -6
- package/docs/types/RuleLabelsKey.html +7 -6
- package/docs/types/RuleLabelsValue.html +7 -6
- package/docs/types/Tag.html +7 -6
- package/docs/types/Tag2D.html +7 -6
- package/docs/types/Tag3D.html +7 -6
- package/docs/types/TagId.html +7 -6
- package/docs/types/TopviewFloorplanPluginParameterType.html +7 -6
- package/docs/types/TopviewFloorplanPluginReturnType.html +7 -6
- package/docs/variables/FLOOR_TYPE_MAP.html +7 -6
- package/docs/variables/PLUGIN.html +7 -6
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -6
- package/docs/variables/ROOM_TYPE_MAP.html +7 -6
- package/docs/variables/VERSION.html +7 -6
- package/docs/variables/itemLabelPluginServerParams.html +7 -6
- package/docs/variables/modelItemLabelPluginServerParams.html +7 -6
- package/docs/variables/modelRoomLabelPluginServerParams.html +7 -6
- package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +47 -34
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +187 -251
- package/libs/CSS3DRenderPlugin/Controller.d.ts +5 -5
- package/libs/CSS3DRenderPlugin/Controller.js +48 -57
- package/libs/CSS3DRenderPlugin/index.d.ts +2 -1
- package/libs/CSS3DRenderPlugin/index.js +3 -2
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +4 -0
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +22 -0
- package/libs/CSS3DRenderPlugin/utils/even.d.ts +9 -0
- package/libs/CSS3DRenderPlugin/utils/even.js +7 -0
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +2 -0
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +29 -0
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +3 -0
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +9 -0
- package/libs/CSS3DRenderPlugin/utils/index.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +12 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +39 -0
- package/libs/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +25 -11
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +93 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +14 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +46 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +12 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +39 -0
- package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +6 -0
- package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +18 -0
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +2 -0
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +31 -0
- package/libs/CruisePlugin/Controller.js +16 -16
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +13 -14
- package/libs/ItemLabelPlugin/ItemLabelItem.js +12 -12
- package/libs/ItemLabelPlugin/index.js +3 -4
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +11 -12
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +12 -12
- package/libs/ModelItemLabelPlugin/index.js +3 -4
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +13 -13
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +17 -18
- package/libs/ModelTVVideoPlugin/index.js +2 -1
- package/libs/Object3DHelperPlugin/Controller.d.ts +2 -0
- package/libs/Object3DHelperPlugin/Controller.js +89 -74
- package/libs/PanoDoorLabelPlugin/Controller.js +72 -73
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +1 -1
- package/libs/PanoRulerProPlugin/RulerItem.js +59 -69
- package/libs/PanoRulerProPlugin/RulerItems.js +18 -19
- package/libs/PanoSpatialTagPlugin/Components/origins.js +41 -41
- package/libs/PanoSpatialTagPlugin/Components/tag.js +8 -9
- package/libs/PanoSpatialTagPlugin/index.js +3 -4
- package/libs/PanoSpatialTagPlugin/store.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
- package/libs/PanoTagPlugin/Components/Common/Audio.js +25 -26
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +8 -8
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +30 -29
- package/libs/PanoTagPlugin/Components/Common/Media.js +75 -76
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +18 -19
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +11 -11
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +15 -15
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +9 -9
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +14 -13
- package/libs/PanoTagPlugin/Components/Common/Text.js +15 -16
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +10 -10
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +18 -19
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +27 -28
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +9 -10
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +7 -6
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +52 -81
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +10 -11
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +32 -33
- package/libs/PanoTagPlugin/Components/Tag/index.js +39 -40
- package/libs/PanoTagPlugin/Components/TagContainer.js +12 -13
- package/libs/PanoTagPlugin/Components/TagWrapper.js +9 -10
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/floorplan/Components/BaseImage.js +4 -4
- package/libs/floorplan/Components/Camera.js +23 -23
- package/libs/floorplan/Components/Compass.js +2 -2
- package/libs/floorplan/Components/CurrentFloor.js +9 -10
- package/libs/floorplan/Components/Main.js +24 -25
- package/libs/floorplan/Components/Normalmage.js +1 -1
- package/libs/floorplan/Components/RoomHighlight/Room.js +1 -1
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +7 -7
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +37 -38
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +39 -40
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +7 -7
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +1 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +1 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +1 -1
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +53 -53
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +8 -8
- package/libs/floorplan/Components/SvgImage.js +4 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +5 -6
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +3 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +27 -27
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +34 -35
- package/libs/floorplan/index.js +1 -5
- package/libs/index.js +110 -102
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +8 -7
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
- package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -0
- package/libs/shared-utils/three/index.js +2 -1
- package/libs/vendor/svelte/easing/index.js +12 -0
- package/libs/vendor/svelte/index.js +1 -0
- package/libs/vendor/svelte/internal/index.js +641 -0
- package/libs/vendor/svelte/store/index.js +31 -0
- package/libs/vendor/svelte/transition/index.js +37 -0
- package/libs/vendor/swiper/svelte/swiper-slide.js +10 -11
- package/libs/vendor/swiper/svelte/swiper-svelte.js +1 -2
- package/libs/vendor/swiper/svelte/swiper.js +9 -10
- package/package.json +15 -15
- package/dist/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +0 -65
- package/libs/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
- package/libs/CSS3DRenderPlugin/utils/evenNumber.js +0 -7
|
@@ -1,61 +1,66 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var M = Object.prototype.hasOwnProperty,
|
|
4
|
-
var
|
|
1
|
+
var O = Object.defineProperty;
|
|
2
|
+
var w = Object.getOwnPropertySymbols;
|
|
3
|
+
var M = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var m = (i, s, e) => s in i ? O(i, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[s] = e, b = (i, s) => {
|
|
5
5
|
for (var e in s || (s = {}))
|
|
6
|
-
M.call(s, e) &&
|
|
7
|
-
if (
|
|
8
|
-
for (var e of
|
|
9
|
-
|
|
6
|
+
M.call(s, e) && m(i, e, s[e]);
|
|
7
|
+
if (w)
|
|
8
|
+
for (var e of w(s))
|
|
9
|
+
E.call(s, e) && m(i, e, s[e]);
|
|
10
10
|
return i;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var u = (i, s, e) => new Promise((
|
|
14
|
-
var l = (
|
|
12
|
+
var d = (i, s, e) => (m(i, typeof s != "symbol" ? s + "" : s, e), e);
|
|
13
|
+
var u = (i, s, e) => new Promise((r, t) => {
|
|
14
|
+
var l = (n) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
16
|
+
p(e.next(n));
|
|
17
|
+
} catch (h) {
|
|
18
|
+
t(h);
|
|
19
19
|
}
|
|
20
|
-
}, c = (
|
|
20
|
+
}, c = (n) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
22
|
+
p(e.throw(n));
|
|
23
|
+
} catch (h) {
|
|
24
|
+
t(h);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, p = (n) => n.done ? r(n.value) : Promise.resolve(n.value).then(l, c);
|
|
27
|
+
p((e = e.apply(i, s)).next());
|
|
28
28
|
});
|
|
29
|
-
import { Controller as
|
|
29
|
+
import { Controller as R } from "../base/BasePlugin.js";
|
|
30
30
|
import "three";
|
|
31
|
-
import { MoveHelper as
|
|
32
|
-
import { RotateHelper as
|
|
33
|
-
import { RectangleScaleHelper as
|
|
31
|
+
import { MoveHelper as j } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
32
|
+
import { RotateHelper as P } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
33
|
+
import { RectangleScaleHelper as y } from "../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js";
|
|
34
34
|
import "../shared-utils/Object3DHelper/Helper/OutlineHelper.js";
|
|
35
35
|
import { MoveController as F } from "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
36
|
-
import { ControllerWrapper as
|
|
37
|
-
import { Object3DHelper as
|
|
38
|
-
import { RotateController as
|
|
39
|
-
import { CSS3DScaleController as
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
36
|
+
import { ControllerWrapper as v } from "./FiveControllerWrapper.js";
|
|
37
|
+
import { Object3DHelper as I } from "../shared-utils/Object3DHelper/index.js";
|
|
38
|
+
import { RotateController as k } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
39
|
+
import { CSS3DScaleController as B } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
40
|
+
import { CSS3DRender as L } from "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
41
|
+
import { fiveModelLoaded as $ } from "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
42
|
+
import { generateBehindFiveElement as W } from "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
43
|
+
const g = "v1.0.0", H = "Object3DHelperPlugin", C = `${H}@${g}`, _ = () => {
|
|
44
|
+
console.error(`${C} is disposed`);
|
|
45
|
+
}, G = () => {
|
|
46
|
+
console.warn(`${C} is disabled`);
|
|
47
|
+
}, N = () => {
|
|
48
|
+
console.error(`${C} is disabled`);
|
|
46
49
|
};
|
|
47
|
-
class
|
|
50
|
+
class re extends R {
|
|
48
51
|
constructor(e) {
|
|
49
52
|
super(e);
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
d(this, "version", g);
|
|
54
|
+
d(this, "name", H);
|
|
55
|
+
d(this, "state", {
|
|
53
56
|
visible: !0,
|
|
54
57
|
enabled: !0,
|
|
55
58
|
disposed: !1
|
|
56
59
|
});
|
|
57
|
-
|
|
58
|
-
this
|
|
60
|
+
d(this, "objectHelperMap", /* @__PURE__ */ new Map());
|
|
61
|
+
d(this, "css3DObjectParentMap", /* @__PURE__ */ new Map());
|
|
62
|
+
d(this, "css3DRender");
|
|
63
|
+
this.five = e, this.css3DRender = new L(this.five.scene), console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${H.toUpperCase()}_DEBUG__`]: this });
|
|
59
64
|
}
|
|
60
65
|
show(e) {
|
|
61
66
|
return u(this, null, function* () {
|
|
@@ -76,70 +81,80 @@ class K extends D {
|
|
|
76
81
|
dispose() {
|
|
77
82
|
this.setState({ disposed: !0 });
|
|
78
83
|
}
|
|
79
|
-
setState(e,
|
|
84
|
+
setState(e, r) {
|
|
80
85
|
if (this.state.disposed)
|
|
81
|
-
return
|
|
86
|
+
return _();
|
|
82
87
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
83
|
-
return
|
|
84
|
-
const
|
|
85
|
-
this.state =
|
|
88
|
+
return N();
|
|
89
|
+
const t = b({}, this.state);
|
|
90
|
+
this.state = b(b({}, this.state), e), e.disposed !== void 0 && e.disposed !== t.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== t.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== t.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: t });
|
|
86
91
|
}
|
|
87
92
|
getObject3DHelper(e) {
|
|
88
93
|
return this.objectHelperMap.get(e);
|
|
89
94
|
}
|
|
90
|
-
addObject3DHelper(e,
|
|
91
|
-
var
|
|
95
|
+
addObject3DHelper(e, r = {}) {
|
|
96
|
+
var S;
|
|
92
97
|
if (!e)
|
|
93
98
|
return console.error("Object3D is undefined");
|
|
94
99
|
if (this.objectHelperMap.has(e)) {
|
|
95
100
|
console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
|
|
96
101
|
return;
|
|
97
102
|
}
|
|
98
|
-
const
|
|
99
|
-
this.objectHelperMap.set(e,
|
|
100
|
-
const l = (
|
|
101
|
-
if (
|
|
102
|
-
const
|
|
103
|
-
|
|
103
|
+
const t = new I();
|
|
104
|
+
this.objectHelperMap.set(e, t);
|
|
105
|
+
const l = (S = this.five.getElement()) == null ? void 0 : S.parentElement, c = this.five.camera, { moveHelper: p = !0, rotateHelper: n = !0, scaleHelper: h = !0 } = r;
|
|
106
|
+
if (p) {
|
|
107
|
+
const o = new j(e), a = new v(this.five, F, e, o);
|
|
108
|
+
t.addControllers({ moveController: a.helperController });
|
|
104
109
|
}
|
|
105
|
-
if (
|
|
106
|
-
let
|
|
107
|
-
l && c && (
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
+
if (n) {
|
|
111
|
+
let o;
|
|
112
|
+
l && c && (o = { container: l });
|
|
113
|
+
const a = new P(e, o), f = new v(this.five, k, e, a);
|
|
114
|
+
t.addControllers({ rotateController: f.helperController });
|
|
110
115
|
}
|
|
111
|
-
if (
|
|
112
|
-
const
|
|
113
|
-
|
|
116
|
+
if (h && l) {
|
|
117
|
+
const o = new y(e, l, c, this.five.scene), a = new v(this.five, B, e, o);
|
|
118
|
+
t.addControllers({ scaleController: a.helperController });
|
|
114
119
|
}
|
|
115
|
-
e.isCSS3DObjectPlus &&
|
|
120
|
+
e.isCSS3DObjectPlus && $(this.five).then(() => {
|
|
121
|
+
var f, D;
|
|
122
|
+
const o = e, a = (f = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? f : W(this.five);
|
|
123
|
+
a && (this.css3DObjectParentMap.set(o, o.parent), o.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(a), (D = this.css3DRender.getBehindCSS3DObjectGroup()) == null || D.add(o), this.css3DRender.render(this.five.camera));
|
|
124
|
+
});
|
|
116
125
|
}
|
|
117
126
|
removeObject3DHelper(e) {
|
|
118
|
-
const
|
|
119
|
-
|
|
127
|
+
const r = this.objectHelperMap.get(e);
|
|
128
|
+
if (!!r) {
|
|
129
|
+
if (e.isCSS3DObjectPlus) {
|
|
130
|
+
const t = e, l = this.css3DObjectParentMap.get(t);
|
|
131
|
+
l == null || l.add(t), this.css3DRender.render(this.five.camera);
|
|
132
|
+
}
|
|
133
|
+
this.objectHelperMap.delete(e), r.dispose();
|
|
134
|
+
}
|
|
120
135
|
}
|
|
121
|
-
handleEnable(e,
|
|
122
|
-
e ? (this.everyHelperDo((
|
|
136
|
+
handleEnable(e, r = !0) {
|
|
137
|
+
e ? (this.everyHelperDo((t) => t.enable()), this.hooks.emit("enable", { userAction: r })) : (this.everyHelperDo((t) => t.disable()), this.hooks.emit("disable", { userAction: r })), this.state.enabled = e;
|
|
123
138
|
}
|
|
124
|
-
handleVisible(e,
|
|
125
|
-
e ? (this.everyHelperDo((
|
|
139
|
+
handleVisible(e, r = !0) {
|
|
140
|
+
e ? (this.everyHelperDo((t) => t.show()), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: r }))) : (this.everyHelperDo((t) => t.hide()), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: r }))), this.state.visible = e;
|
|
126
141
|
}
|
|
127
142
|
handleDispose() {
|
|
128
143
|
this.everyHelperDo((e) => e.dispose());
|
|
129
144
|
}
|
|
130
145
|
everyHelperDo(e) {
|
|
131
|
-
this.objectHelperMap.forEach((
|
|
132
|
-
|
|
146
|
+
this.objectHelperMap.forEach((r) => {
|
|
147
|
+
r && e(r);
|
|
133
148
|
});
|
|
134
149
|
}
|
|
135
|
-
actionIfStateIsEnabled(e,
|
|
150
|
+
actionIfStateIsEnabled(e, r) {
|
|
136
151
|
if (this.state.enabled)
|
|
137
152
|
return e();
|
|
138
|
-
|
|
153
|
+
r != null && r.warnLog && G();
|
|
139
154
|
}
|
|
140
155
|
}
|
|
141
156
|
export {
|
|
142
|
-
|
|
143
|
-
|
|
157
|
+
re as Object3DHelperController,
|
|
158
|
+
C as PLUGIN,
|
|
144
159
|
g as VERSION
|
|
145
160
|
};
|
|
@@ -2,15 +2,15 @@ var $ = Object.defineProperty, B = Object.defineProperties;
|
|
|
2
2
|
var U = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var C = Object.getOwnPropertySymbols;
|
|
4
4
|
var G = Object.prototype.hasOwnProperty, N = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var T = (v, a, e) => a in v ? $(v, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : v[a] = e, H = (v, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
G.call(a, e) &&
|
|
7
|
+
G.call(a, e) && T(v, e, a[e]);
|
|
8
8
|
if (C)
|
|
9
9
|
for (var e of C(a))
|
|
10
|
-
N.call(a, e) &&
|
|
11
|
-
return
|
|
12
|
-
}, W = (
|
|
13
|
-
var r = (
|
|
10
|
+
N.call(a, e) && T(v, e, a[e]);
|
|
11
|
+
return v;
|
|
12
|
+
}, W = (v, a) => B(v, U(a));
|
|
13
|
+
var r = (v, a, e) => (T(v, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
14
|
import { Raycaster as Q, Vector3 as V, Quaternion as j, Euler as z } from "three";
|
|
15
15
|
import { BasePanoPluginController as q } from "./BaseController.js";
|
|
16
16
|
import X from "./DoorLabelItem.js";
|
|
@@ -30,23 +30,23 @@ class re extends q {
|
|
|
30
30
|
r(this, "doorLabels");
|
|
31
31
|
r(this, "roomObservers");
|
|
32
32
|
r(this, "loadData", (e, n) => {
|
|
33
|
-
n && (this.MaxVisibledistance = n.MaxVisibledistance, this.MinVisibledistance = n.MinVisibledistance, this.OffsetHeight = n.OffsetHeight), this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((
|
|
34
|
-
|
|
35
|
-
}), this.labelItems = [], this.doorLabels = [], this.doorLabelItems = [], this.floorplanServerData = e, this.five.once("panoArrived", () => {
|
|
36
|
-
|
|
33
|
+
n && (this.MaxVisibledistance = n.MaxVisibledistance, this.MinVisibledistance = n.MinVisibledistance, this.OffsetHeight = n.OffsetHeight), this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((d) => {
|
|
34
|
+
d.$destroy();
|
|
35
|
+
}), this.labelItems = [], this.doorLabels = [], this.doorLabelItems = [], this.floorplanServerData = e, typeof this.five.ready == "function" ? this.five.ready().then(() => this.initData()) : this.five.once("panoArrived", () => {
|
|
36
|
+
this.initData();
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
39
|
r(this, "initRoomObservers", () => {
|
|
40
40
|
var l, h;
|
|
41
|
-
const e = this.floorplanServerData.computed_data.floor_datas || [],
|
|
42
|
-
const
|
|
43
|
-
if (
|
|
44
|
-
const t =
|
|
41
|
+
const e = this.floorplanServerData.computed_data.floor_datas || [], d = (((h = (l = this.five) == null ? void 0 : l.work) == null ? void 0 : h.observers) || []).map((o) => {
|
|
42
|
+
const s = o.panoIndex, f = o.floorIndex, i = e == null ? void 0 : e.find((t) => t.floor_index === f);
|
|
43
|
+
if (i) {
|
|
44
|
+
const t = i.rooms.find((c) => c.observer_indexs.includes(s));
|
|
45
45
|
if (t)
|
|
46
|
-
return { panoIndex:
|
|
46
|
+
return { panoIndex: s, floorIndex: f, name: t.name };
|
|
47
47
|
}
|
|
48
48
|
}).filter(Boolean);
|
|
49
|
-
this.roomObservers =
|
|
49
|
+
this.roomObservers = d;
|
|
50
50
|
});
|
|
51
51
|
r(this, "hideAllLabels", () => {
|
|
52
52
|
this.labelItems.forEach((e) => {
|
|
@@ -63,106 +63,105 @@ class re extends q {
|
|
|
63
63
|
return this.visibleLabelMap.get(e);
|
|
64
64
|
{
|
|
65
65
|
const o = [];
|
|
66
|
-
return this.doorLabels.forEach((
|
|
67
|
-
if (
|
|
66
|
+
return this.doorLabels.forEach((s, f) => {
|
|
67
|
+
if (s.roomName === n.name)
|
|
68
68
|
return;
|
|
69
|
-
const
|
|
69
|
+
const i = s.position.clone(), t = i.distanceTo(l);
|
|
70
70
|
if (t < this.MinVisibledistance || t > this.MaxVisibledistance)
|
|
71
71
|
return;
|
|
72
|
-
const c = new Q(),
|
|
73
|
-
c.set(l,
|
|
72
|
+
const c = new Q(), b = i.clone().sub(l).normalize();
|
|
73
|
+
c.set(l, b);
|
|
74
74
|
const [p] = this.five.model.intersectRaycaster(c);
|
|
75
|
-
p && p.distance + 0.1 < t || o.push(
|
|
75
|
+
p && p.distance + 0.1 < t || o.push(f);
|
|
76
76
|
}), this.visibleLabelMap.set(e, o), o;
|
|
77
77
|
}
|
|
78
78
|
})();
|
|
79
|
-
this.labelItems.forEach((o,
|
|
80
|
-
o.visible = h.includes(
|
|
79
|
+
this.labelItems.forEach((o, s) => {
|
|
80
|
+
o.visible = h.includes(s);
|
|
81
81
|
}), this.fixDoorPosition();
|
|
82
82
|
});
|
|
83
83
|
r(this, "fixDoorPosition", () => {
|
|
84
|
-
var
|
|
84
|
+
var i, t, c, b, p, y, g, w, L, E, _, S;
|
|
85
85
|
const { panoIndex: e, camera: n } = this.five;
|
|
86
86
|
if (e === null)
|
|
87
87
|
return;
|
|
88
88
|
if (this.five.currentMode !== "Panorama")
|
|
89
89
|
return this.hideAllLabels();
|
|
90
|
-
const
|
|
91
|
-
if (
|
|
90
|
+
const d = this.five.getElement(), l = d.clientWidth, h = d.clientHeight, o = n.getWorldDirection(new V()), s = [], f = [...this.labelItems];
|
|
91
|
+
if (f.forEach((m, u) => {
|
|
92
92
|
if (m.visible) {
|
|
93
|
-
const x = n.position.distanceTo(m.position), M = m.position.clone().add(new V(0, this.OffsetHeight, 0)),
|
|
94
|
-
m.left = P, m.top =
|
|
93
|
+
const x = n.position.distanceTo(m.position), M = m.position.clone().add(new V(0, this.OffsetHeight, 0)), A = M.clone().sub(n.position).normalize().angleTo(o), O = M.clone().project(n), P = (O.x + 1) / 2.2 * 100, I = (-O.y + 1) / 2.2 * 100, D = P >= 0 && P <= 100 && I >= 0 && I <= 100 && x > this.MinVisibledistance && x <= this.MaxVisibledistance;
|
|
94
|
+
m.left = P, m.top = I, m.inSight = D && A < Math.PI / 2, m.cameraToward = Y(this.five), D ? s.push({ disFromCameraToLabel: x, left: P, top: I, index: u }) : m.transform = "translate(-50%, -50%)";
|
|
95
95
|
} else
|
|
96
96
|
m.inSight = !1;
|
|
97
|
-
}),
|
|
97
|
+
}), s.length > 1) {
|
|
98
98
|
let m = 0;
|
|
99
|
-
|
|
100
|
-
for (let u = 1; u <
|
|
101
|
-
const { index: x, left: M, top: k } =
|
|
102
|
-
if (!
|
|
99
|
+
s.sort((u, x) => x.disFromCameraToLabel - u.disFromCameraToLabel);
|
|
100
|
+
for (let u = 1; u < s.length; u++) {
|
|
101
|
+
const { index: x, left: M, top: k } = s[u - 1], { index: A, left: O, top: P } = s[u], I = this.container.children[x], D = this.container.children[A];
|
|
102
|
+
if (!I || !D)
|
|
103
103
|
return;
|
|
104
104
|
const R = {
|
|
105
105
|
left: l * M / 100,
|
|
106
106
|
top: h * k / 100,
|
|
107
|
-
width: (c = (t = (
|
|
108
|
-
height: (
|
|
107
|
+
width: (c = (t = (i = I.children) == null ? void 0 : i[0]) == null ? void 0 : t.clientWidth) != null ? c : 0,
|
|
108
|
+
height: (y = (p = (b = I.children) == null ? void 0 : b[0]) == null ? void 0 : p.clientHeight) != null ? y : 0
|
|
109
109
|
}, F = {
|
|
110
|
-
left: l *
|
|
110
|
+
left: l * O / 100,
|
|
111
111
|
top: h * P / 100,
|
|
112
|
-
width: (L = (w = (
|
|
113
|
-
height: (S = (_ = (
|
|
112
|
+
width: (L = (w = (g = D.children) == null ? void 0 : g[0]) == null ? void 0 : w.clientWidth) != null ? L : 0,
|
|
113
|
+
height: (S = (_ = (E = D.children) == null ? void 0 : E[0]) == null ? void 0 : _.clientHeight) != null ? S : 0
|
|
114
114
|
};
|
|
115
|
-
Z(R, F) && (m++,
|
|
115
|
+
Z(R, F) && (m++, f[x].transform = `translate(-50%, ${(m - 1) * 100 - 50}%)`, f[A].transform = `translate(-50%, ${m * 100 - 50}%)`);
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
this.labelItems =
|
|
118
|
+
this.labelItems = f, this.render();
|
|
119
119
|
});
|
|
120
120
|
r(this, "onClick", (e, n) => {
|
|
121
121
|
if (!this.roomObservers)
|
|
122
122
|
return;
|
|
123
|
-
const { work:
|
|
123
|
+
const { work: d } = this.five;
|
|
124
124
|
let l, h, o = 1 / 0;
|
|
125
|
-
for (
|
|
126
|
-
if (this.roomObservers
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
125
|
+
for (const s of d.observers)
|
|
126
|
+
if (this.roomObservers.find((i) => i.panoIndex === s.panoIndex && i.name === e)) {
|
|
127
|
+
const i = s.standingPosition, t = n.distanceTo(i);
|
|
128
|
+
t < o && (l = s.panoIndex, h = i.clone().sub(n).normalize(), o = t);
|
|
129
|
+
}
|
|
131
130
|
if (h !== null && l !== null) {
|
|
132
|
-
const
|
|
131
|
+
const s = {};
|
|
133
132
|
if (o > 0) {
|
|
134
|
-
const
|
|
135
|
-
c.setFromUnitVectors(
|
|
136
|
-
const
|
|
137
|
-
|
|
133
|
+
const i = new V(0, 0, -1), t = h.clone(), c = new j();
|
|
134
|
+
c.setFromUnitVectors(i, t);
|
|
135
|
+
const b = new z();
|
|
136
|
+
b.setFromQuaternion(c, "YXZ"), s.longitude = b.y;
|
|
138
137
|
}
|
|
139
|
-
this.five.emit("wantsToMoveToPano", l, {}, !0) || this.five.moveToPano(l, { longitude:
|
|
138
|
+
this.five.emit("wantsToMoveToPano", l, {}, !0) || this.five.moveToPano(l, { longitude: s.longitude });
|
|
140
139
|
}
|
|
141
140
|
});
|
|
142
141
|
r(this, "initData", () => {
|
|
143
142
|
var l;
|
|
144
143
|
this.doorLabels = [];
|
|
145
|
-
const e = this.five.panoIndex, n = this.floorplanServerData.computed_data.observers[e].floor_index,
|
|
146
|
-
this.rooms =
|
|
147
|
-
var
|
|
148
|
-
const o = (
|
|
149
|
-
o && o.forEach((
|
|
150
|
-
const t =
|
|
151
|
-
let c = 1 / 0,
|
|
152
|
-
|
|
153
|
-
const
|
|
154
|
-
x:
|
|
155
|
-
y:
|
|
156
|
-
z:
|
|
144
|
+
const e = this.five.panoIndex, n = this.floorplanServerData.computed_data.observers[e].floor_index, d = n !== void 0 && ((l = this.floorplanServerData.computed_data.floor_datas[n]) == null ? void 0 : l.rooms);
|
|
145
|
+
this.rooms = d, this.rooms && this.rooms.length > 0 && this.rooms.forEach((h) => {
|
|
146
|
+
var f;
|
|
147
|
+
const o = (f = this.floorplanServerData.computed_data.doors) == null ? void 0 : f.filter((i) => !!(i && i.name === h.name)), s = this.five.work.observers.filter((i, t) => !!h.observer_indexs.find((c) => c === t));
|
|
148
|
+
o && o.forEach((i) => {
|
|
149
|
+
const t = i.position;
|
|
150
|
+
let c = 1 / 0, b;
|
|
151
|
+
s.forEach((y) => {
|
|
152
|
+
const g = y.standingPosition, w = {
|
|
153
|
+
x: g.x,
|
|
154
|
+
y: g.y,
|
|
155
|
+
z: g.z
|
|
157
156
|
}, L = J(t, w);
|
|
158
|
-
L < c && (c = L,
|
|
159
|
-
}),
|
|
157
|
+
L < c && (c = L, b = w);
|
|
158
|
+
}), b && (t.y = b.y + 0.01);
|
|
160
159
|
const p = new V(t.x, t.y, t.z);
|
|
161
|
-
p.add(new V(-0.2, 1.8, 0).applyEuler(new z(0,
|
|
160
|
+
p.add(new V(-0.2, 1.8, 0).applyEuler(new z(0, i.rad, 0))), this.doorLabels.push({
|
|
162
161
|
roomName: h.name,
|
|
163
|
-
name:
|
|
162
|
+
name: i.name,
|
|
164
163
|
position: p,
|
|
165
|
-
toward: K(
|
|
164
|
+
toward: K(i.rad)
|
|
166
165
|
});
|
|
167
166
|
});
|
|
168
167
|
}), this.labelItems = this.doorLabels.map((h) => W(H({}, h), {
|
|
@@ -177,12 +176,12 @@ class re extends q {
|
|
|
177
176
|
}
|
|
178
177
|
stateChangedCallback(e, n) {
|
|
179
178
|
if (this.hooks.hasListener("stateChange")) {
|
|
180
|
-
const
|
|
179
|
+
const d = {
|
|
181
180
|
state: this.state,
|
|
182
181
|
prevState: e,
|
|
183
182
|
userAction: n ? n.userAction : ee.userAction
|
|
184
183
|
};
|
|
185
|
-
this.hooks.emit("stateChange",
|
|
184
|
+
this.hooks.emit("stateChange", d);
|
|
186
185
|
}
|
|
187
186
|
}
|
|
188
187
|
render() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as k, init as _, safe_not_equal as C, append_styles as I, element as d, space as j, attr as p, null_to_empty as v, insert as B, append as b, listen as x, noop as f, detach as H, binding_callbacks as S } from "svelte/internal";
|
|
1
|
+
import { SvelteComponent as k, init as _, safe_not_equal as C, append_styles as I, element as d, space as j, attr as p, null_to_empty as v, insert as B, append as b, listen as x, noop as f, detach as H, binding_callbacks as S } from "../vendor/svelte/internal/index.js";
|
|
2
2
|
import y from "classnames";
|
|
3
3
|
function W(e) {
|
|
4
4
|
I(e, "svelte-wpy7pz", '.plugin-DoorLabelPlugin-item.svelte-wpy7pz.svelte-wpy7pz{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;transition:opacity 0.3s ease}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz{position:absolute;top:50%;left:50%;border-radius:0.125rem;background:rgba(0, 0, 0, 0.35);line-height:0.75rem;padding:0.375rem;white-space:nowrap;font-size:0.75rem;font-style:normal;color:white;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform ease 1s, background ease 0.3s, color ease 0.3s}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz::after{content:"";display:block;position:absolute;top:-0.0625rem;left:-0.0625rem;bottom:-0.0625rem;right:-0.0625rem;border-radius:0.125rem;border:0.0625rem solid rgba(0, 0, 0, 0);-o-border-image:url("//vrlab-image4.ljcdn.com/release/web/highlightCarouseal-border-image.14b51834.png") 4;border-image:url("//vrlab-image4.ljcdn.com/release/web/highlightCarouseal-border-image.14b51834.png") 4;transition:opacity ease 0.3s}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz:active,.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz:focus{background:rgba(0, 0, 0, 0.5);color:rgba(255, 255, 255, 0.5)}.plugin-DoorLabelPlugin-icon.svelte-wpy7pz.svelte-wpy7pz{background:url("//vrlab-image4.ljcdn.com/release/web/DoorLabel-icon.de1304ae.svg") no-repeat;background-size:100%;display:inline-block;width:0.625rem;height:0.625rem;margin-left:0.25rem;transform-origin:center}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].left.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].right.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].right.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].back.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].back.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].back.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].right.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].left.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].left.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz{color:#f9eac1}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{background:url("//vrlab-image4.ljcdn.com/release/web/arrow.6e8ec00e.svg") no-repeat}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz:active,.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz:focus{background:rgba(0, 0, 0, 0.5);color:rgba(249, 234, 193, 0.5)}');
|