@realsee/dnalogel 2.2.6 → 2.3.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 +48 -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 +25 -0
- package/dist/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +31 -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 +46 -46
- package/dist/index.js +4987 -4817
- package/dist/index.umd.js +39 -39
- package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
- package/docs/assets/highlight.css +7 -0
- package/docs/assets/main.js +1 -1
- 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 +48 -34
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +198 -251
- package/libs/CSS3DRenderPlugin/Controller.d.ts +5 -5
- package/libs/CSS3DRenderPlugin/Controller.js +63 -58
- package/libs/CSS3DRenderPlugin/index.d.ts +2 -1
- package/libs/CSS3DRenderPlugin/index.js +21 -3
- 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 +25 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +53 -0
- package/libs/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +31 -11
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +115 -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/CameraMovementPlugin/CameraMovementPlugin.js +28 -25
- package/libs/CameraMovementPlugin/index.js +13 -0
- package/libs/CruisePlugin/Controller.js +65 -54
- package/libs/CruisePlugin/index.js +26 -3
- package/libs/CruisePlugin/typing.js +1 -0
- package/libs/GuideLinePlugin/Controller.js +14 -9
- package/libs/GuideLinePlugin/index.js +14 -3
- package/libs/GuideLinePlugin/typing.js +1 -0
- package/libs/ItemLabelPlugin/Plugin.js +33 -23
- package/libs/ItemLabelPlugin/events.type.js +1 -0
- package/libs/ItemLabelPlugin/index.js +16 -2
- package/libs/ModelChassisCompassPlugin/Plugin.js +2 -1
- package/libs/ModelChassisCompassPlugin/index.js +8 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +44 -39
- package/libs/ModelEntryDoorGuidePlugin/index.js +9 -0
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +28 -22
- package/libs/ModelItemLabelPlugin/index.js +12 -2
- package/libs/ModelRoomLabelPlugin/Controller.js +6 -2
- package/libs/ModelRoomLabelPlugin/index.js +10 -3
- package/libs/ModelRoomLabelPlugin/typings.js +1 -0
- package/libs/ModelTVVideoPlugin/Plugin.js +80 -62
- package/libs/ModelTVVideoPlugin/index.js +25 -0
- package/libs/ModelViewPlugin/Plugin.js +2 -1
- package/libs/ModelViewPlugin/index.js +6 -0
- package/libs/Object3DHelperPlugin/Controller.d.ts +2 -0
- package/libs/Object3DHelperPlugin/Controller.js +114 -73
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +13 -9
- package/libs/Object3DHelperPlugin/index.js +48 -3
- package/libs/Object3DHelperPlugin/typings.js +1 -0
- package/libs/PanoCompassPlugin/Controller.js +60 -40
- package/libs/PanoCompassPlugin/index.js +31 -3
- package/libs/PanoCompassPlugin/typings.js +1 -0
- package/libs/PanoCursorRaycasterPlugin/index.js +4 -2
- package/libs/PanoDoorLabelPlugin/BaseController.js +27 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +7 -2
- package/libs/PanoDoorLabelPlugin/index.js +12 -2
- package/libs/PanoDoorLabelPlugin/typings.js +1 -0
- package/libs/PanoMeasurePlugin/index.js +56 -5
- package/libs/PanoRulerPlugin/Plugin.js +22 -17
- package/libs/PanoRulerPlugin/index.js +9 -0
- package/libs/PanoRulerPlugin/style.js +1 -1
- package/libs/PanoRulerPlugin/typings.js +1 -0
- package/libs/PanoRulerProPlugin/Controller.js +38 -27
- package/libs/PanoRulerProPlugin/index.js +16 -3
- package/libs/PanoRulerProPlugin/typings.js +1 -0
- package/libs/PanoSpatialTagPlugin/Components/origins.js +2 -3
- package/libs/PanoSpatialTagPlugin/Components/tag.js +2 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +91 -71
- package/libs/PanoSpatialTagPlugin/index.js +28 -0
- package/libs/PanoSpatialTagPlugin/store.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
- package/libs/PanoTagPlugin/Components/Common/Audio.js +43 -43
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +7 -7
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +28 -29
- package/libs/PanoTagPlugin/Components/Common/Media.js +47 -55
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +59 -68
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +5 -7
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +21 -23
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +28 -31
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +9 -10
- package/libs/PanoTagPlugin/Components/Common/Text.js +9 -9
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +19 -27
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +97 -118
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +6 -8
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -5
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +54 -72
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +54 -65
- package/libs/PanoTagPlugin/Components/Tag/index.js +74 -103
- package/libs/PanoTagPlugin/Components/TagContainer.js +65 -108
- package/libs/PanoTagPlugin/Components/TagWrapper.js +78 -116
- package/libs/PanoTagPlugin/controller/index.js +2 -2
- package/libs/PanoTagPlugin/index.js +90 -3
- package/libs/PanoTagPlugin/tag.config.js +2 -1
- package/libs/floorplan/Components/BaseImage.js +7 -7
- package/libs/floorplan/Components/Camera.js +10 -10
- package/libs/floorplan/Components/Compass.js +1 -1
- package/libs/floorplan/Components/CurrentFloor.js +47 -56
- package/libs/floorplan/Components/Main.js +80 -99
- package/libs/floorplan/Components/Normalmage.js +5 -5
- package/libs/floorplan/Components/RoomHighlight/Room.js +11 -11
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +13 -14
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +1 -1
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +47 -47
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +23 -23
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +14 -14
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +13 -13
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +13 -13
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +6 -6
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +14 -14
- package/libs/floorplan/Components/SvgImage.js +12 -12
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +111 -81
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +47 -3
- package/libs/floorplan/MapviewFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +166 -135
- package/libs/floorplan/ModelFloorplanPlugin/index.js +47 -3
- package/libs/floorplan/ModelFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +8 -12
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +20 -20
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +74 -83
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +51 -36
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +24 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +155 -126
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +44 -3
- package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +11 -0
- package/libs/floorplan/TopviewFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/typings/index.js +1 -0
- package/libs/index.js +123 -114
- 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/package.json +31 -30
- 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
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
|
@@ -1,33 +1,44 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var m = Object.defineProperty;
|
|
2
|
+
var f = Object.getOwnPropertySymbols;
|
|
3
|
+
var v = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var p = (i, e, t) => e in i ? m(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, c = (i, e) => {
|
|
5
5
|
for (var t in e || (e = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
b.call(e, t) &&
|
|
10
|
-
return
|
|
6
|
+
v.call(e, t) && p(i, t, e[t]);
|
|
7
|
+
if (f)
|
|
8
|
+
for (var t of f(e))
|
|
9
|
+
b.call(e, t) && p(i, t, e[t]);
|
|
10
|
+
return i;
|
|
11
11
|
};
|
|
12
|
-
var r = (
|
|
13
|
-
var d = (
|
|
14
|
-
var
|
|
12
|
+
var r = (i, e, t) => (p(i, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
|
+
var d = (i, e, t) => new Promise((a, o) => {
|
|
14
|
+
var n = (s) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
o(
|
|
16
|
+
u(t.next(s));
|
|
17
|
+
} catch (h) {
|
|
18
|
+
o(h);
|
|
19
19
|
}
|
|
20
|
-
}, l = (
|
|
20
|
+
}, l = (s) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
o(
|
|
22
|
+
u(t.throw(s));
|
|
23
|
+
} catch (h) {
|
|
24
|
+
o(h);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, u = (s) => s.done ? a(s.value) : Promise.resolve(s.value).then(n, l);
|
|
27
|
+
u((t = t.apply(i, e)).next());
|
|
28
28
|
});
|
|
29
29
|
import D from "./RulerItems.js";
|
|
30
|
-
|
|
30
|
+
import "../vendor/svelte/internal/index.js";
|
|
31
|
+
import "@realsee/five";
|
|
32
|
+
import "../shared-utils/animationFrame/index.js";
|
|
33
|
+
import "../shared-utils/animationFrame/BetterTween.js";
|
|
34
|
+
import "@tweenjs/tween.js";
|
|
35
|
+
import "../shared-utils/equal.js";
|
|
36
|
+
import "../shared-utils/isTruelyObject.js";
|
|
37
|
+
import "../shared-utils/math/planimetry.js";
|
|
38
|
+
import "../shared-utils/throttle.js";
|
|
39
|
+
import "three";
|
|
40
|
+
import "./RulerItem.js";
|
|
41
|
+
class C {
|
|
31
42
|
constructor(e, t) {
|
|
32
43
|
r(this, "five");
|
|
33
44
|
r(this, "container", document.createElement("div"));
|
|
@@ -41,13 +52,13 @@ class y {
|
|
|
41
52
|
distanceText: (e) => `${e.toFixed(1)}m`
|
|
42
53
|
}
|
|
43
54
|
});
|
|
44
|
-
var
|
|
55
|
+
var a, o;
|
|
45
56
|
this.five = e, this.container.classList.add("panoRulerProPlugin-container"), this.container.setAttribute(
|
|
46
57
|
"style",
|
|
47
58
|
"position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
|
|
48
|
-
), t && (t.data && this.load(t.data), this.state.options =
|
|
49
|
-
var
|
|
50
|
-
(l = (
|
|
59
|
+
), t && (t.data && this.load(t.data), this.state.options = c(c({}, this.state.options), t.options || {}), (a = t.options) != null && a.className && this.container.classList.add((o = t.options) == null ? void 0 : o.className)), this.five.once("modelLoaded", () => d(this, null, function* () {
|
|
60
|
+
var n, l;
|
|
61
|
+
(l = (n = this.five.getElement()) == null ? void 0 : n.parentNode) == null || l.append(this.container);
|
|
51
62
|
})), this.five.once("dispose", () => this.dispose());
|
|
52
63
|
}
|
|
53
64
|
load(e) {
|
|
@@ -89,5 +100,5 @@ class y {
|
|
|
89
100
|
}
|
|
90
101
|
}
|
|
91
102
|
export {
|
|
92
|
-
|
|
103
|
+
C as default
|
|
93
104
|
};
|
|
@@ -1,5 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import t from "./Controller.js";
|
|
2
|
+
import "./RulerItems.js";
|
|
3
|
+
import "../vendor/svelte/internal/index.js";
|
|
4
|
+
import "@realsee/five";
|
|
5
|
+
import "../shared-utils/animationFrame/index.js";
|
|
6
|
+
import "../shared-utils/animationFrame/BetterTween.js";
|
|
7
|
+
import "@tweenjs/tween.js";
|
|
8
|
+
import "../shared-utils/equal.js";
|
|
9
|
+
import "../shared-utils/isTruelyObject.js";
|
|
10
|
+
import "../shared-utils/math/planimetry.js";
|
|
11
|
+
import "../shared-utils/throttle.js";
|
|
12
|
+
import "three";
|
|
13
|
+
import "./RulerItem.js";
|
|
14
|
+
const g = (r, o) => new t(r, o);
|
|
3
15
|
export {
|
|
4
|
-
|
|
16
|
+
g as PanoRulerProPlugin,
|
|
17
|
+
g as default
|
|
5
18
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SvelteComponent as d, init as h, safe_not_equal as P, append_styles as y, empty as v, insert as p, noop as c, destroy_each as S, detach as u, element as T, attr as b, toggle_class as f, set_style as g, listen as k } from "../../vendor/svelte/internal/index.js";
|
|
2
2
|
import { currentTarget as z } from "../store.js";
|
|
3
|
-
import "../../vendor/svelte/store/index.js";
|
|
4
3
|
function w(n) {
|
|
5
4
|
y(n, "svelte-19zi46m", ".PanoSpatialTagPlugin__tag-origin.svelte-19zi46m{position:absolute;width:0.5rem;height:0.5rem;border-radius:50%;background:#fff;box-shadow:0 0 .6rem #fff;transform:translate(-50%, -50%) scale(1);transform-origin:center center;animation:svelte-19zi46m-PanoSpatialTagPlugin__tag-origin 1.2s forwards;pointer-events:auto}.PanoSpatialTagPlugin__tag-origin.svelte-19zi46m:after{content:'';position:absolute;top:50%;height:50%;width:2rem;height:2rem;transform:translate(-50%, -50%)}.PanoSpatialTagPlugin__tag-origin-destroy.svelte-19zi46m{transform:translate(-50%, -50%) scale(0.6);animation:svelte-19zi46m-PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s}@keyframes svelte-19zi46m-PanoSpatialTagPlugin__tag-origin{0%{transform:translate(-50%, -50%) scale(1);opacity:0}100%{transform:translate(-50%, -50%) scale(0.6);opacity:1 }}@keyframes svelte-19zi46m-PanoSpatialTagPlugin__tag-origin-destroy{0%{transform:translate(-50%, -50%) scale(0.6);opacity:1}10%{transform:translate(-50%, -50%) scale(1);opacity:0.9}100%{transform:translate(-50%, -50%) scale(1);opacity:0}}");
|
|
6
5
|
}
|
|
@@ -72,11 +71,11 @@ function C(n, t, o) {
|
|
|
72
71
|
"origins" in i && o(0, e = i.origins);
|
|
73
72
|
}, [e, a, l];
|
|
74
73
|
}
|
|
75
|
-
class
|
|
74
|
+
class N extends d {
|
|
76
75
|
constructor(t) {
|
|
77
76
|
super(), h(this, t, C, $, P, { origins: 0 }, w);
|
|
78
77
|
}
|
|
79
78
|
}
|
|
80
79
|
export {
|
|
81
|
-
|
|
80
|
+
N as Origins
|
|
82
81
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SvelteComponent as F, init as M, safe_not_equal as j, append_styles as I, element as d, space as k, attr as u, set_style as c, toggle_class as p, insert as L, append as g, listen as O, noop as D, detach as q, onMount as A, afterUpdate as E, onDestroy as U, binding_callbacks as B } from "../../vendor/svelte/internal/index.js";
|
|
2
2
|
import { currentTarget as G } from "../store.js";
|
|
3
|
-
import "../../vendor/svelte/store/index.js";
|
|
4
3
|
function J(n) {
|
|
5
4
|
I(n, "svelte-1i5h9zh", ".PanoSpatialTagPlugin__tag-x.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0;display:block;white-space:nowrap;box-sizing:border-box;width:25rem;height:14rem;color:#FFF;transform:translate(0, -100%);transition:height .5s linear}.PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh.svelte-1i5h9zh{content:'';position:absolute;width:30rem;height:30rem;top:-15rem;left:-15rem;z-index:-1;opacity:0;transition:opacity .8s .6s;background:url('https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png');background-size:30rem 30rem}.PanoSpatialTagPlugin__tag-line.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;left:-1rem;width:2rem;height:100%;overflow:hidden}.PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:1rem;height:calc(100% - 1.5rem);width:.15rem;background:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, .1));box-shadow:0 .1rem .5rem rgba(0, 0, 0, .2);opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .4s cubic-bezier(.44,.44,.74,.98) , opacity .4s cubic-bezier(.44,.44,.74,.98), width .5s linear, height .5s linear ;transform-origin:center bottom}.PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0.3rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0.5rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh{animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh{animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s}.PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh.svelte-1i5h9zh{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line.svelte-1i5h9zh{transform:scaleY(-1)}.PanoSpatialTagPlugin__tag-animate.svelte-1i5h9zh.svelte-1i5h9zh{position:relative;height:100%;overflow:hidden;transform-origin:left top;transition:transform .5s linear}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-animate.svelte-1i5h9zh{transform-origin:left bottom}.PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;display:inline-block;transform:translate(-100%, 0);transition:transform .9s cubic-bezier(0,.65,.16,1.08) .6s;padding-left:.5rem;font-size:1rem}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{bottom:0}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh{opacity:1;transform:translate(-50%, 0) scaleY(1)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{top:unset;bottom:-15rem}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{opacity:.32}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh{opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .5s .55s, opacity .4s .55s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{opacity:0;transition:opacity .8s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{transform:translate(-100%, 0);transition:transform .6s cubic-bezier(.53,.06,.88,.59)}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content .svelte-1i5h9zh{pointer-events:none}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh{opacity:0.5;transform:translate(-50%, 10%) scaleY(0);animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh{opacity:0.5;transform:translate(-50%, 0) scaleY(0);animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 135%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 20%) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 125%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1-hide{0%{opacity:0.5;transform:translate(-50%, 10%) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 105%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2-hide{0%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 100%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}");
|
|
6
5
|
}
|
|
@@ -94,7 +93,7 @@ function Q(n, a, i) {
|
|
|
94
93
|
C
|
|
95
94
|
];
|
|
96
95
|
}
|
|
97
|
-
class
|
|
96
|
+
class X extends F {
|
|
98
97
|
constructor(a) {
|
|
99
98
|
super(), M(
|
|
100
99
|
this,
|
|
@@ -120,5 +119,5 @@ class x extends F {
|
|
|
120
119
|
}
|
|
121
120
|
}
|
|
122
121
|
export {
|
|
123
|
-
|
|
122
|
+
X as Tag
|
|
124
123
|
};
|
|
@@ -1,14 +1,33 @@
|
|
|
1
1
|
import * as a from "three";
|
|
2
2
|
import { Subscribe as we, Five as ye } from "@realsee/five";
|
|
3
3
|
import { CSS3DRenderPlugin as Te } from "../CSS3DRenderPlugin/index.js";
|
|
4
|
-
import Me from "./Components/origins.js";
|
|
5
|
-
import Pe from "./Components/tag.js";
|
|
4
|
+
import { Origins as Me } from "./Components/origins.js";
|
|
5
|
+
import { Tag as Pe } from "./Components/tag.js";
|
|
6
6
|
import { pluginStyle as xe } from "./style.js";
|
|
7
7
|
import { render as Ee } from "../shared-utils/tinyEJSrender.js";
|
|
8
|
-
|
|
8
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
9
|
+
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
10
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
11
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
12
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
13
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
14
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
15
|
+
import "../shared-utils/Subscribe.js";
|
|
16
|
+
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
17
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
18
|
+
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
19
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
20
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
21
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
22
|
+
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
23
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
24
|
+
import "../vendor/svelte/internal/index.js";
|
|
25
|
+
import "./store.js";
|
|
26
|
+
import "../vendor/svelte/store/index.js";
|
|
27
|
+
const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png", Qe = (n, s) => {
|
|
9
28
|
var k, z, q, B, G, J, K, Q;
|
|
10
29
|
let j = s == null ? void 0 : s.container, y = 1.4;
|
|
11
|
-
const ee = (k = s == null ? void 0 : s.wait) != null ? k : 200, oe = (z = s == null ? void 0 : s.maxNumberOnScreen) != null ? z : 3, I = (q = s == null ? void 0 : s.minRad) != null ? q : Math.PI / 4, L = (B = s == null ? void 0 : s.nearTolerance) != null ? B : 100,
|
|
30
|
+
const ee = (k = s == null ? void 0 : s.wait) != null ? k : 200, oe = (z = s == null ? void 0 : s.maxNumberOnScreen) != null ? z : 3, I = (q = s == null ? void 0 : s.minRad) != null ? q : Math.PI / 4, L = (B = s == null ? void 0 : s.nearTolerance) != null ? B : 100, te = (G = s == null ? void 0 : s.upsideHeight) != null ? G : 1.6, A = (J = s == null ? void 0 : s.minDistance) != null ? J : 1.2, f = (K = s == null ? void 0 : s.maxDistance) != null ? K : 3.5, C = Te(n), S = document.createElement("div");
|
|
12
31
|
S.classList.add("PanoSpatialTagPlugin"), Object.assign(S.style, xe);
|
|
13
32
|
const V = new we();
|
|
14
33
|
let Z = new Image();
|
|
@@ -33,28 +52,28 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
33
52
|
}, H = (o, r) => {
|
|
34
53
|
if (e.tags.length === 0)
|
|
35
54
|
return;
|
|
36
|
-
const p = r.longitude -
|
|
37
|
-
|
|
38
|
-
const
|
|
55
|
+
const p = r.longitude - n.state.longitude, t = n.camera.clone();
|
|
56
|
+
t.position.copy(r.offset), t.rotateOnWorldAxis(new a.Vector3(0, 1, 0), p), t.updateProjectionMatrix(), t.updateMatrixWorld(!0);
|
|
57
|
+
const g = new a.Frustum(), P = new a.Matrix4();
|
|
39
58
|
P.multiplyMatrices(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
),
|
|
43
|
-
const $ =
|
|
44
|
-
if ($ < A || $ >
|
|
59
|
+
t.projectionMatrix,
|
|
60
|
+
t.matrixWorldInverse
|
|
61
|
+
), g.setFromProjectionMatrix(P), e.tags.forEach((i) => {
|
|
62
|
+
const $ = t.position.clone().setY(y).distanceTo(i.position);
|
|
63
|
+
if ($ < A || $ > f || !g.containsPoint(i.position))
|
|
45
64
|
return i.destroying = !0;
|
|
46
|
-
const x = i.position.clone().sub(
|
|
65
|
+
const x = i.position.clone().sub(t.position).setY(0);
|
|
47
66
|
if (x.angleTo(i.normal) > Math.PI / 2 - I && x.angleTo(i.normal) < Math.PI / 2 + I)
|
|
48
67
|
return i.destroying = !0;
|
|
49
68
|
}), e.tags.forEach((i) => {
|
|
50
69
|
i.destroying ? i.app.$set({
|
|
51
|
-
contentZoom: 0.1 +
|
|
52
|
-
lineWidthZoom: 0.38 * (0.01 +
|
|
70
|
+
contentZoom: 0.1 + t.position.distanceTo(i.position) / f,
|
|
71
|
+
lineWidthZoom: 0.38 * (0.01 + t.position.distanceTo(i.position) / f),
|
|
53
72
|
destroying: i.destroying
|
|
54
73
|
}) : i.app.$set({
|
|
55
|
-
lineWidthZoom: 0.38 * (0.01 +
|
|
56
|
-
lineHeightZoom: 0.4 + (
|
|
57
|
-
contentZoom: 0.1 +
|
|
74
|
+
lineWidthZoom: 0.38 * (0.01 + t.position.distanceTo(i.position) / f),
|
|
75
|
+
lineHeightZoom: 0.4 + (t.position.distanceTo(i.position) - A) / f * 0.6,
|
|
76
|
+
contentZoom: 0.1 + t.position.distanceTo(i.position) / f
|
|
58
77
|
});
|
|
59
78
|
}), setTimeout(() => {
|
|
60
79
|
e.tags.forEach((i) => {
|
|
@@ -68,57 +87,57 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
68
87
|
}, T = () => {
|
|
69
88
|
if (e.forbidden || !e.enabled)
|
|
70
89
|
return;
|
|
71
|
-
const o =
|
|
90
|
+
const o = n.camera, r = o.getWorldDirection(new a.Vector3());
|
|
72
91
|
e.origins = e.tags.map((p) => {
|
|
73
|
-
const
|
|
92
|
+
const t = p.position.clone().project(o), g = p.position.clone().sub(o.position).setY(0).angleTo(r.setY(0)) < Math.PI / 2;
|
|
74
93
|
return {
|
|
75
94
|
id: p.id,
|
|
76
|
-
front:
|
|
77
|
-
left: (
|
|
78
|
-
top: (-
|
|
95
|
+
front: g,
|
|
96
|
+
left: (t.x + 1) / 2 * 100,
|
|
97
|
+
top: (-t.y + 1) / 2 * 100,
|
|
79
98
|
destroying: p.destroying
|
|
80
99
|
};
|
|
81
100
|
}), Y.$set({ origins: e.origins });
|
|
82
101
|
}, M = () => {
|
|
83
102
|
e.forbidden || !e.enabled || (e.timeoutId && clearTimeout(e.timeoutId), e.timeoutId = setTimeout(() => {
|
|
84
103
|
e.timeoutId = void 0;
|
|
85
|
-
const o =
|
|
104
|
+
const o = ne();
|
|
86
105
|
o.length && (e.tags = e.tags.concat(o), T());
|
|
87
106
|
}, ee));
|
|
88
|
-
},
|
|
89
|
-
const { clientWidth: o, clientHeight: r } =
|
|
107
|
+
}, ne = () => {
|
|
108
|
+
const { clientWidth: o, clientHeight: r } = n.getElement(), p = [], t = n.camera, g = new a.Frustum(), P = new a.Matrix4(), i = t.getWorldDirection(new a.Vector3());
|
|
90
109
|
P.multiplyMatrices(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
),
|
|
110
|
+
t.projectionMatrix,
|
|
111
|
+
t.matrixWorldInverse
|
|
112
|
+
), g.setFromProjectionMatrix(P);
|
|
94
113
|
const $ = e.tags.filter(
|
|
95
|
-
(d) =>
|
|
96
|
-
).length, x = e.points.reduce((d,
|
|
97
|
-
if (e.tags.find((l) =>
|
|
114
|
+
(d) => g.containsPoint(d.position) && !d.destroying
|
|
115
|
+
).length, x = e.points.reduce((d, m) => {
|
|
116
|
+
if (e.tags.find((l) => m.id === l.id && !l.destroying))
|
|
98
117
|
return d;
|
|
99
|
-
const
|
|
100
|
-
if (
|
|
118
|
+
const u = t.position.clone().setY(y).distanceTo(m.position);
|
|
119
|
+
if (u < A || u > f || !g.containsPoint(m.position))
|
|
101
120
|
return d;
|
|
102
|
-
const E =
|
|
103
|
-
if (E.angleTo(
|
|
121
|
+
const E = m.position.clone().sub(t.position).setY(0);
|
|
122
|
+
if (E.angleTo(m.normal) > Math.PI / 2 - I && E.angleTo(m.normal) < Math.PI / 2 + I)
|
|
104
123
|
return d;
|
|
105
|
-
const w =
|
|
124
|
+
const w = m.position.clone().project(t);
|
|
106
125
|
if (!e.tags.every((l) => {
|
|
107
|
-
if (l.position.clone().sub(
|
|
126
|
+
if (l.position.clone().sub(t.position).setY(0).angleTo(i.setY(0)) > Math.PI / 2)
|
|
108
127
|
return !0;
|
|
109
|
-
const b = l.position.clone().project(
|
|
128
|
+
const b = l.position.clone().project(t);
|
|
110
129
|
return Math.sqrt(
|
|
111
130
|
Math.pow((w.x - b.x) / 2 * o, 2) + Math.pow((w.y - b.y) / 2 * r, 2)
|
|
112
131
|
) > L;
|
|
113
132
|
}))
|
|
114
133
|
return d;
|
|
115
134
|
const h = {
|
|
116
|
-
id:
|
|
117
|
-
position:
|
|
118
|
-
normal:
|
|
119
|
-
replacement:
|
|
120
|
-
weight:
|
|
121
|
-
distance:
|
|
135
|
+
id: m.id,
|
|
136
|
+
position: m.position,
|
|
137
|
+
normal: m.normal,
|
|
138
|
+
replacement: m.replacement,
|
|
139
|
+
weight: m.weight,
|
|
140
|
+
distance: u
|
|
122
141
|
};
|
|
123
142
|
let c;
|
|
124
143
|
for (let l = 0, b = d.length; l < b; l++) {
|
|
@@ -134,45 +153,45 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
134
153
|
}
|
|
135
154
|
return c !== void 0 ? d.splice(c, 0, h) : d.push(h), d;
|
|
136
155
|
}, []);
|
|
137
|
-
for (let d = 0,
|
|
138
|
-
const
|
|
139
|
-
if (p.find((c) =>
|
|
156
|
+
for (let d = 0, m = x.length; d < m && !($ + p.length >= oe); d++) {
|
|
157
|
+
const u = x[d];
|
|
158
|
+
if (p.find((c) => u.id === c.id))
|
|
140
159
|
continue;
|
|
141
|
-
const E =
|
|
160
|
+
const E = u.position.clone().project(t);
|
|
142
161
|
if (!e.tags.concat(p).every((c) => {
|
|
143
|
-
if (c.position.clone().sub(
|
|
162
|
+
if (c.position.clone().sub(t.position).setY(0).angleTo(i.setY(0)) > Math.PI / 2)
|
|
144
163
|
return !0;
|
|
145
|
-
const l = c.position.clone().project(
|
|
164
|
+
const l = c.position.clone().project(t);
|
|
146
165
|
return Math.sqrt(
|
|
147
166
|
Math.pow((E.x - l.x) / 2 * o, 2) + Math.pow((E.y - l.y) / 2 * r, 2)
|
|
148
167
|
) > L;
|
|
149
168
|
}))
|
|
150
169
|
continue;
|
|
151
170
|
const w = new a.Raycaster(
|
|
152
|
-
|
|
153
|
-
|
|
171
|
+
t.position.clone().setY(y),
|
|
172
|
+
u.position.clone().sub(t.position.clone().setY(y)).normalize(),
|
|
154
173
|
0,
|
|
155
|
-
|
|
156
|
-
), [h] = e.intersectObjects ? w.intersectObjects(e.intersectObjects, !0) :
|
|
157
|
-
if (!!h &&
|
|
158
|
-
const { position: c, normal: l, id: b, replacement: O } =
|
|
174
|
+
u.distance + v
|
|
175
|
+
), [h] = e.intersectObjects ? w.intersectObjects(e.intersectObjects, !0) : n.model.bvhs.loaded ? n.model.intersectRaycaster(w) : w.intersectObjects(n.model.children, !0);
|
|
176
|
+
if (!!h && u.distance - h.distance < v) {
|
|
177
|
+
const { position: c, normal: l, id: b, replacement: O } = u, me = new a.Plane().setFromNormalAndCoplanarPoint(l, c), X = c.clone().sub(t.position).cross(new a.Vector3(0, 1, 0)).setLength(D), fe = [
|
|
159
178
|
c.clone(),
|
|
160
179
|
c.clone().add(X),
|
|
161
180
|
c.clone().add(new a.Vector3(0, D, 0)).add(X),
|
|
162
181
|
c.clone().add(new a.Vector3(0, D, 0))
|
|
163
|
-
].map((be) =>
|
|
164
|
-
target:
|
|
182
|
+
].map((be) => me.projectPoint(be, new a.Vector3())), { container: ue, dispose: ge } = C.create3DDomContainer(fe) || {}, he = new Pe({
|
|
183
|
+
target: ue,
|
|
165
184
|
props: {
|
|
166
185
|
id: b,
|
|
167
186
|
content: e.render(e.template, O),
|
|
168
|
-
lineWidthZoom: 0.38 * (0.01 +
|
|
169
|
-
lineHeightZoom: 0.4 + (
|
|
170
|
-
contentZoom: 0.1 +
|
|
171
|
-
upsideDown: c.y >
|
|
187
|
+
lineWidthZoom: 0.38 * (0.01 + t.position.distanceTo(c) / f),
|
|
188
|
+
lineHeightZoom: 0.4 + (t.position.distanceTo(c) - A) / f * 0.6,
|
|
189
|
+
contentZoom: 0.1 + t.position.distanceTo(c) / f,
|
|
190
|
+
upsideDown: c.y > te,
|
|
172
191
|
folded: e.folded,
|
|
173
192
|
events: e.events,
|
|
174
193
|
hooks: V,
|
|
175
|
-
dispose:
|
|
194
|
+
dispose: ge
|
|
176
195
|
}
|
|
177
196
|
});
|
|
178
197
|
p.push({
|
|
@@ -186,13 +205,13 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
186
205
|
return p;
|
|
187
206
|
}, ie = (o) => {
|
|
188
207
|
e.points = o.points.map((r) => {
|
|
189
|
-
var p,
|
|
208
|
+
var p, t;
|
|
190
209
|
return {
|
|
191
210
|
id: r.id,
|
|
192
211
|
position: new a.Vector3().fromArray(r.position),
|
|
193
212
|
normal: new a.Vector3().fromArray(r.normal),
|
|
194
213
|
replacement: (p = r.replacement) != null ? p : {},
|
|
195
|
-
weight: (
|
|
214
|
+
weight: (t = r.weight) != null ? t : -1
|
|
196
215
|
};
|
|
197
216
|
}), o.render && (e.render = o.render), o.template && (e.template = o.template), o.events && (e.events = o.events), o.enabled === !1 && (e.enabled = o.enabled), o.folded === !0 && (e.folded = o.folded);
|
|
198
217
|
}, se = (o) => {
|
|
@@ -220,15 +239,15 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
220
239
|
r.id === o && r.app.$set({ folded: !0 });
|
|
221
240
|
});
|
|
222
241
|
}, U = () => {
|
|
223
|
-
|
|
242
|
+
n.once("renderFrame", T);
|
|
224
243
|
}, R = () => {
|
|
225
|
-
j || (j =
|
|
244
|
+
j || (j = n.getElement().parentElement), j && j.appendChild(S), e.forbidden = !1, y = n.model.bounding.getCenter(new a.Vector3()).y, M(), n.on("panoWillArrive", H), n.on("panoArrived", F), n.on("modeChange", N), n.on("cameraUpdate", _);
|
|
226
245
|
}, W = () => {
|
|
227
246
|
Z = null, C.disposeAll(), Y.$destroy(), e.tags.forEach((o) => {
|
|
228
247
|
o.app.$destroy(), o = null;
|
|
229
|
-
}), e.origins = [], e.tags = [],
|
|
248
|
+
}), e.origins = [], e.tags = [], n.off("modelLoaded", R), n.off("renderFrame", T), n.off("panoWillArrive", H), n.off("panoArrived", F), n.off("modeChange", N), n.off("cameraUpdate", _), n.off("dispose", W), window.removeEventListener("resize", U, !1);
|
|
230
249
|
};
|
|
231
|
-
return window.addEventListener("resize", U, !1), (Q =
|
|
250
|
+
return window.addEventListener("resize", U, !1), (Q = n == null ? void 0 : n.model) != null && Q.loaded ? R() : n.once("modelLoaded", R), n.on("dispose", W), {
|
|
232
251
|
load: ie,
|
|
233
252
|
setIntersectObjects: se,
|
|
234
253
|
unfoldAll: de,
|
|
@@ -242,5 +261,6 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
242
261
|
};
|
|
243
262
|
};
|
|
244
263
|
export {
|
|
245
|
-
|
|
264
|
+
Qe as PanoSpatialTagPlugin,
|
|
265
|
+
Qe as default
|
|
246
266
|
};
|
|
@@ -1,4 +1,32 @@
|
|
|
1
|
+
import "./Plugin.js";
|
|
2
|
+
import { PanoSpatialTagPlugin as B, PanoSpatialTagPlugin as C } from "./Plugin.js";
|
|
1
3
|
import "three";
|
|
2
4
|
import "@realsee/five";
|
|
5
|
+
import "../CSS3DRenderPlugin/index.js";
|
|
6
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
7
|
+
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
8
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
3
9
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
10
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
11
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
12
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
13
|
+
import "../shared-utils/Subscribe.js";
|
|
14
|
+
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
15
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
16
|
+
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
17
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
18
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
19
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
20
|
+
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
21
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
22
|
+
import "./Components/origins.js";
|
|
4
23
|
import "../vendor/svelte/internal/index.js";
|
|
24
|
+
import "./store.js";
|
|
25
|
+
import "../vendor/svelte/store/index.js";
|
|
26
|
+
import "./Components/tag.js";
|
|
27
|
+
import "./style.js";
|
|
28
|
+
import "../shared-utils/tinyEJSrender.js";
|
|
29
|
+
export {
|
|
30
|
+
B as PanoSpatialTagPlugin,
|
|
31
|
+
C as default
|
|
32
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SvelteComponent as p, init as D, safe_not_equal as A, append_styles as I, empty as R, insert as y, transition_in as d, transition_out as _, check_outros as
|
|
1
|
+
import { SvelteComponent as p, init as D, safe_not_equal as A, append_styles as I, empty as R, insert as y, transition_in as d, group_outros as S, transition_out as _, check_outros as z, detach as k, element as v, create_component as C, space as N, attr as c, set_style as O, mount_component as j, append as q, listen as B, add_render_callback as E, create_in_transition as F, create_out_transition as G, destroy_component as H, bubble as J } from "../../../vendor/svelte/internal/index.js";
|
|
2
2
|
import { fade as w } from "../../../vendor/svelte/transition/index.js";
|
|
3
3
|
import { Image_Arrow as K } from "../../Assets/Icon.js";
|
|
4
4
|
import { cubicInOut as b } from "../../../vendor/svelte/easing/index.js";
|
|
5
|
-
import L from "./Shadow.js";
|
|
5
|
+
import { Shadow as L } from "./Shadow.js";
|
|
6
6
|
function M(i) {
|
|
7
7
|
I(i, "svelte-1ogmlqq", ".arrow.svelte-1ogmlqq{width:100%;height:100%;background-size:100%;transition:transform 400ms ease-in-out;cursor:pointer;pointer-events:auto}.arrow-wrapper.svelte-1ogmlqq{position:relative;width:100%;height:100%}.arrow.left.svelte-1ogmlqq{transform:rotate(0deg)}.arrow.right.svelte-1ogmlqq{transform:rotate(-180deg)}.arrow.top.svelte-1ogmlqq{transform:rotate(90deg)}.arrow.bottom.svelte-1ogmlqq{transform:rotate(-90deg)}");
|
|
8
8
|
}
|
|
@@ -16,17 +16,17 @@ function h(i) {
|
|
|
16
16
|
}
|
|
17
17
|
}), {
|
|
18
18
|
c() {
|
|
19
|
-
r = v("div"),
|
|
19
|
+
r = v("div"), C(o.$$.fragment), e = N(), t = v("div"), c(t, "class", l = "arrow " + i[0] + " svelte-1ogmlqq"), O(t, "background-image", "url(" + K + ")"), c(r, "class", "arrow-wrapper svelte-1ogmlqq");
|
|
20
20
|
},
|
|
21
21
|
m(a, m) {
|
|
22
|
-
y(a, r, m),
|
|
22
|
+
y(a, r, m), j(o, r, null), q(r, e), q(r, t), f = !0, n || (g = B(t, "click", i[5]), n = !0);
|
|
23
23
|
},
|
|
24
24
|
p(a, m) {
|
|
25
25
|
i = a, (!f || m & 1 && l !== (l = "arrow " + i[0] + " svelte-1ogmlqq")) && c(t, "class", l);
|
|
26
26
|
},
|
|
27
27
|
i(a) {
|
|
28
|
-
f || (d(o.$$.fragment, a), a &&
|
|
29
|
-
s && s.end(1), u =
|
|
28
|
+
f || (d(o.$$.fragment, a), a && E(() => {
|
|
29
|
+
s && s.end(1), u = F(t, w, {
|
|
30
30
|
duration: i[2],
|
|
31
31
|
delay: i[3],
|
|
32
32
|
easing: b
|
|
@@ -34,14 +34,14 @@ function h(i) {
|
|
|
34
34
|
}), f = !0);
|
|
35
35
|
},
|
|
36
36
|
o(a) {
|
|
37
|
-
_(o.$$.fragment, a), u && u.invalidate(), a && (s =
|
|
37
|
+
_(o.$$.fragment, a), u && u.invalidate(), a && (s = G(t, w, {
|
|
38
38
|
duration: i[2],
|
|
39
39
|
delay: i[4],
|
|
40
40
|
easing: b
|
|
41
41
|
})), f = !1;
|
|
42
42
|
},
|
|
43
43
|
d(a) {
|
|
44
|
-
a && k(r),
|
|
44
|
+
a && k(r), H(o), a && s && s.end(), n = !1, g();
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
}
|
|
@@ -55,9 +55,9 @@ function P(i) {
|
|
|
55
55
|
e && e.m(t, l), y(t, r, l), o = !0;
|
|
56
56
|
},
|
|
57
57
|
p(t, [l]) {
|
|
58
|
-
t[1] ? e ? (e.p(t, l), l & 2 && d(e, 1)) : (e = h(t), e.c(), d(e, 1), e.m(r.parentNode, r)) : e && (
|
|
58
|
+
t[1] ? e ? (e.p(t, l), l & 2 && d(e, 1)) : (e = h(t), e.c(), d(e, 1), e.m(r.parentNode, r)) : e && (S(), _(e, 1, 1, () => {
|
|
59
59
|
e = null;
|
|
60
|
-
}),
|
|
60
|
+
}), z());
|
|
61
61
|
},
|
|
62
62
|
i(t) {
|
|
63
63
|
o || (d(e), o = !0);
|
|
@@ -99,5 +99,5 @@ class Y extends p {
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
export {
|
|
102
|
-
Y as
|
|
102
|
+
Y as Arrow
|
|
103
103
|
};
|