@realsee/dnalogel 2.16.0-2 → 2.16.0-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/Controller.d.ts +0 -1
- package/dist/CruisePlugin/Controller.d.ts +2 -1
- package/dist/CruisePlugin/typing.d.ts +2 -12
- package/dist/GuideLinePlugin/Controller.d.ts +12 -20
- package/dist/GuideLinePlugin/index.d.ts +0 -4
- package/dist/GuideLinePlugin/typing.d.ts +1 -70
- package/dist/GuideLinePlugin/utils/getLineGeometries.d.ts +16 -0
- package/dist/PanoTagPlugin/typings/controller.d.ts +5 -2
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +1 -3
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +4 -1
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +69 -0
- package/dist/base/BasePlugin.d.ts +0 -1
- package/dist/index.cjs.js +115 -162
- package/dist/index.js +5234 -5141
- package/dist/index.umd.js +116 -163
- package/dist/shared-utils/five/FiveDomEvents.d.ts +11 -0
- package/dist/shared-utils/index.d.ts +0 -3
- package/dist/shared-utils/logger.d.ts +17 -0
- package/dist/shared-utils/math/pointIsRectangle.d.ts +2 -0
- package/dist/shared-utils/offscreenCanvas.d.ts +2 -0
- package/dist/shared-utils/three/Quadrangle.d.ts +20 -0
- package/dist/shared-utils/three/getPositionsByObjectFit.d.ts +2 -0
- package/dist/shared-utils/three/loadVideoTexture.d.ts +4 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -34
- package/docs/classes/CruisePluginController.html +27 -46
- package/docs/classes/Magnifier.html +20 -23
- package/docs/classes/ModelRoomLabelController.html +11 -14
- package/docs/classes/Object3DHelperController.html +24 -43
- package/docs/classes/PaintBrush.html +15 -18
- package/docs/classes/PanoMeasurePluginLine.html +23 -26
- package/docs/classes/PanoMeasurePluginModel.html +22 -25
- package/docs/classes/PanoMeasurePluginPoint.html +14 -17
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -29
- package/docs/classes/PanoTagPluginController.html +65 -84
- package/docs/classes/Util.BetterTween.html +8 -11
- package/docs/classes/Util.FivePointSelector.html +12 -15
- package/docs/classes/Util.Interval.html +12 -15
- package/docs/classes/Util.Magnifier.html +17 -20
- package/docs/classes/Util.PointDomHelper.html +11 -14
- package/docs/classes/Util.PointHelper.html +11 -14
- package/docs/classes/Util.Rectangle.html +13 -16
- package/docs/enums/CameraMovementEffect.html +7 -10
- package/docs/enums/ContentType.html +19 -22
- package/docs/enums/DIRECTION.html +9 -12
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -12
- package/docs/enums/DimensionType.html +7 -10
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -11
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -12
- package/docs/enums/PaintBrushTypeEnum.html +8 -11
- package/docs/enums/Rotation.html +8 -11
- package/docs/functions/CSS3DRenderPlugin.html +5 -7
- package/docs/functions/CameraMovementPlugin.html +5 -7
- package/docs/functions/CruisePlugin.html +5 -7
- package/docs/functions/GuideLinePlugin.html +6 -8
- package/docs/functions/ItemLabelPlugin.html +5 -7
- package/docs/functions/MapviewFloorplanPlugin.html +5 -7
- package/docs/functions/ModelChassisCompassPlugin.html +5 -7
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -7
- package/docs/functions/ModelFloorplanPlugin.html +5 -7
- package/docs/functions/ModelItemLabelPlugin.html +5 -7
- package/docs/functions/ModelRoomLabelPlugin.html +5 -7
- package/docs/functions/ModelTVVideoPlugin.html +5 -7
- package/docs/functions/ModelViewPlugin.html +5 -7
- package/docs/functions/Object3DHelperPlugin.html +5 -7
- package/docs/functions/PanoCompassPlugin.html +5 -7
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -7
- package/docs/functions/PanoDoorLabelPlugin.html +5 -7
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -7
- package/docs/functions/PanoMeasurePlugin.html +5 -7
- package/docs/functions/PanoRulerPlugin.html +5 -7
- package/docs/functions/PanoRulerProPlugin.html +5 -7
- package/docs/functions/PanoSpatialTagPlugin.html +5 -7
- package/docs/functions/PanoTagPlugin.html +5 -7
- package/docs/functions/PanoVideoPlugin.html +5 -7
- package/docs/functions/TopviewFloorplanPlugin.html +5 -7
- package/docs/functions/Util.getCoordsFromClient.html +6 -13
- package/docs/functions/Util.getCoordsFromElement.html +6 -13
- package/docs/functions/Util.getFrameTime.html +6 -13
- package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -13
- package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -13
- package/docs/functions/Util.isNil.html +6 -13
- package/docs/functions/Util.nextFrame.html +6 -13
- package/docs/functions/Util.notNil.html +6 -13
- package/docs/functions/Util.requestAnimationFrameInterval.html +6 -13
- package/docs/functions/Util.tweenProgress.html +6 -13
- package/docs/functions/pluginFlag.html +6 -8
- package/docs/index.html +5 -7
- package/docs/interfaces/AddTagConfig.html +6 -9
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -14
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -11
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -10
- package/docs/interfaces/EventMap.html +15 -18
- package/docs/interfaces/FloorplanBounding.html +8 -11
- package/docs/interfaces/FloorplanData.html +10 -13
- package/docs/interfaces/FloorplanEntrance.html +11 -14
- package/docs/interfaces/FloorplanExtraObject.html +10 -13
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -11
- package/docs/interfaces/FloorplanFloorData.html +9 -12
- package/docs/interfaces/FloorplanImagePosition.html +7 -10
- package/docs/interfaces/FloorplanObserver.html +9 -12
- package/docs/interfaces/FloorplanOutlineItem.html +9 -12
- package/docs/interfaces/FloorplanPosition.html +7 -10
- package/docs/interfaces/FloorplanRoomItem.html +13 -16
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -10
- package/docs/interfaces/FloorplanServerBounding.html +8 -11
- package/docs/interfaces/FloorplanServerComputedData.html +10 -13
- package/docs/interfaces/FloorplanServerData.html +7 -10
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -13
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -11
- package/docs/interfaces/FloorplanServerEntrance.html +11 -14
- package/docs/interfaces/FloorplanServerFloorData.html +9 -12
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -10
- package/docs/interfaces/FloorplanServerObserver.html +9 -12
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -12
- package/docs/interfaces/FloorplanServerPosition.html +7 -10
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -17
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -10
- package/docs/interfaces/HelperOffset.html +8 -11
- package/docs/interfaces/ImagePlaneGroup.html +6 -9
- package/docs/interfaces/ItemLabelPluginData.html +6 -9
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -14
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -12
- package/docs/interfaces/MinMax.html +7 -10
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -10
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -11
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -10
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -11
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -11
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -9
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -14
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -10
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -9
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -12
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -11
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -9
- package/docs/interfaces/ModelViewPluginExportType.html +11 -14
- package/docs/interfaces/Object3DHelperState.html +8 -11
- package/docs/interfaces/ObjectHelperControllers.html +9 -12
- package/docs/interfaces/PaintBrushAction.html +12 -15
- package/docs/interfaces/PaintBrushConfigs.html +12 -15
- package/docs/interfaces/PaintBrushState.html +10 -13
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -13
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -8
- package/docs/interfaces/PanoMeasureParameterType.html +14 -17
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -11
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -10
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -10
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -13
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -10
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -11
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -12
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -10
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -10
- package/docs/interfaces/PanoRulerProPluginState.html +8 -11
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -8
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -8
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -14
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -13
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -16
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -13
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -16
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -14
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -13
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -9
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -11
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -9
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +15 -18
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -9
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -11
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -13
- package/docs/interfaces/Point.html +8 -11
- package/docs/interfaces/Room.html +9 -12
- package/docs/interfaces/RoomInfo.html +7 -10
- package/docs/interfaces/RoomLabel.html +14 -17
- package/docs/interfaces/RoomRules.html +6 -8
- package/docs/interfaces/Rooms.html +6 -8
- package/docs/interfaces/Scissor.html +9 -12
- package/docs/interfaces/State.html +8 -11
- package/docs/interfaces/TagCacheInterface.html +12 -15
- package/docs/interfaces/TagConfig.html +11 -14
- package/docs/interfaces/TagGLTFObjectGroup.html +6 -9
- package/docs/interfaces/TagIconUrl.html +11 -14
- package/docs/interfaces/TagObjectGroup.html +6 -9
- package/docs/interfaces/TagStyle.html +6 -9
- package/docs/interfaces/Tags.html +10 -13
- package/docs/interfaces/TemporaryState.html +6 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -14
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -11
- package/docs/modules/PanoVideoPluginType.html +5 -8
- package/docs/modules/Util.html +6 -17
- package/docs/modules.html +7 -11
- package/docs/types/ArrayPosition.html +6 -8
- package/docs/types/AudioAppearance.html +6 -8
- package/docs/types/AudioTagTypeConfigKey.html +6 -8
- package/docs/types/CSS3DRenderExportType.html +6 -8
- package/docs/types/CSS3DRenderPluginExportType.html +6 -8
- package/docs/types/CSS3DRenderPluginParameterType.html +6 -8
- package/docs/types/ClassFunctionParameters.html +6 -8
- package/docs/types/Color.html +6 -8
- package/docs/types/ContentTypeConfigKey.html +6 -8
- package/docs/types/ContentTypeConfigKeySplit.html +6 -8
- package/docs/types/ContentTypeMap.html +6 -8
- package/docs/types/Create3DDomContainerReturnType.html +6 -8
- package/docs/types/Create3DElementReturnType.html +6 -8
- package/docs/types/CruisePluginExportType.html +6 -8
- package/docs/types/Direction-1.html +6 -8
- package/docs/types/Direction4.html +6 -8
- package/docs/types/ElementRenderer.html +288 -0
- package/docs/types/FloorplanRuleLabels.html +6 -8
- package/docs/types/FloorplanServerRuleLabels.html +6 -8
- package/docs/types/GuideLinePluginExportType.html +6 -8
- package/docs/types/HelperEventMap.html +6 -8
- package/docs/types/LoadTagConfig.html +6 -8
- package/docs/types/MapviewFloorplanPluginParameterType.html +6 -8
- package/docs/types/MapviewFloorplanPluginReturnType.html +6 -8
- package/docs/types/MediaData.html +6 -8
- package/docs/types/MediaStore.html +6 -8
- package/docs/types/ModelElement.html +6 -8
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -8
- package/docs/types/ModelFloorplanPluginParameterType.html +6 -8
- package/docs/types/ModelFloorplanPluginReturnType.html +6 -8
- package/docs/types/ModelRoomLabelPluginParameters.html +6 -8
- package/docs/types/ModelRoomLabelPluginReturnType.html +6 -8
- package/docs/types/MoveArgs.html +6 -8
- package/docs/types/MoveOpts.html +6 -8
- package/docs/types/Object3DHelperEventMap.html +6 -8
- package/docs/types/ObjectFit.html +6 -8
- package/docs/types/PaintBrushEventMap.html +6 -8
- package/docs/types/PanoCompassPluginData.html +6 -8
- package/docs/types/PanoCompassPluginExportType.html +6 -8
- package/docs/types/PanoCompassPluginParameterType.html +6 -8
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -8
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -8
- package/docs/types/PanoIndex.html +6 -8
- package/docs/types/PanoMeasurePluginEvent.html +6 -8
- package/docs/types/PanoMeasureReturnType.html +6 -8
- package/docs/types/PanoSpatialTagPluginId.html +6 -8
- package/docs/types/PanoTagPluginExportInterface.html +6 -8
- package/docs/types/PanoTagPluginParamsInterface.html +6 -8
- package/docs/types/PanoVideoPluginParameterType.html +6 -8
- package/docs/types/PanoVideoPluginReturnType.html +6 -8
- package/docs/types/PlaneTag.html +6 -8
- package/docs/types/PlaneTagElement.html +6 -8
- package/docs/types/Point2DElement.html +6 -8
- package/docs/types/Point2DTag.html +6 -8
- package/docs/types/Point3DElement.html +6 -8
- package/docs/types/Point3DTag.html +6 -8
- package/docs/types/PointTag.html +6 -8
- package/docs/types/PointTagElement.html +6 -8
- package/docs/types/Position.html +6 -8
- package/docs/types/RotateArgs.html +6 -8
- package/docs/types/RotateOpts.html +6 -8
- package/docs/types/RuleLabelsKey.html +6 -8
- package/docs/types/RuleLabelsValue.html +6 -8
- package/docs/types/StickType.html +6 -8
- package/docs/types/Tag.html +7 -9
- package/docs/types/Tag2D.html +6 -8
- package/docs/types/Tag3D.html +6 -8
- package/docs/types/TagContentType.html +6 -8
- package/docs/types/TagDimensionType.html +6 -8
- package/docs/types/TagElement.html +7 -9
- package/docs/types/TagEvents.html +6 -8
- package/docs/types/TagGLTFObject.html +7 -9
- package/docs/types/TagHooks.html +6 -8
- package/docs/types/TagIconSize.html +6 -8
- package/docs/types/TagId.html +6 -8
- package/docs/types/TopviewFloorplanPluginParameterType.html +6 -8
- package/docs/types/TopviewFloorplanPluginReturnType.html +6 -8
- package/docs/types/WorkCode.html +6 -8
- package/docs/variables/FLOOR_TYPE_MAP.html +6 -8
- package/docs/variables/PLUGIN.html +6 -8
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -8
- package/docs/variables/ROOM_TYPE_MAP.html +6 -8
- package/docs/variables/itemLabelPluginServerParams.html +6 -8
- package/docs/variables/modelItemLabelPluginServerParams.html +6 -8
- package/docs/variables/modelRoomLabelPluginServerParams.html +6 -8
- package/libs/CSS3DRenderPlugin/Controller.d.ts +0 -1
- package/libs/CSS3DRenderPlugin/Controller.js +31 -40
- package/libs/CSS3DRenderPlugin/index.js +6 -12
- package/libs/CruisePlugin/Controller.d.ts +2 -1
- package/libs/CruisePlugin/Controller.js +174 -197
- package/libs/CruisePlugin/index.js +10 -33
- package/libs/CruisePlugin/typing.d.ts +2 -12
- package/libs/GuideLinePlugin/Controller.d.ts +12 -20
- package/libs/GuideLinePlugin/Controller.js +88 -125
- package/libs/GuideLinePlugin/index.d.ts +0 -4
- package/libs/GuideLinePlugin/index.js +7 -33
- package/libs/GuideLinePlugin/typing.d.ts +1 -70
- package/libs/GuideLinePlugin/utils/getLineGeometries.d.ts +16 -0
- package/libs/GuideLinePlugin/utils/getLineGeometries.js +64 -0
- package/libs/ModelTVVideoPlugin/Plugin.js +45 -53
- package/libs/ModelTVVideoPlugin/index.js +5 -11
- package/libs/Object3DHelperPlugin/Controller.js +28 -33
- package/libs/Object3DHelperPlugin/index.js +13 -18
- package/libs/PanoCompassPlugin/Controller.js +6 -8
- package/libs/PanoCompassPlugin/index.js +10 -12
- package/libs/PanoDoorLabelPlugin/BaseController.js +28 -47
- package/libs/PanoDoorLabelPlugin/Controller.js +22 -40
- package/libs/PanoDoorLabelPlugin/index.js +3 -21
- package/libs/PanoMeasurePlugin/typings/index.js +1 -20
- package/libs/PanoSpatialTagPlugin/Plugin.js +3 -8
- package/libs/PanoSpatialTagPlugin/index.js +3 -8
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +4 -2
- package/libs/PanoTagPlugin/Components/Common/Media.js +49 -49
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +4 -2
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +13 -11
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +20 -18
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +38 -36
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +25 -23
- package/libs/PanoTagPlugin/Components/Tag/index.js +26 -25
- package/libs/PanoTagPlugin/Components/TagContainer.js +4 -3
- package/libs/PanoTagPlugin/Components/TagItem.js +4 -3
- package/libs/PanoTagPlugin/controller/TagCache.js +22 -42
- package/libs/PanoTagPlugin/controller/TagComputer.js +4 -5
- package/libs/PanoTagPlugin/controller/TagRender.js +82 -63
- package/libs/PanoTagPlugin/controller/TagUtil.js +13 -20
- package/libs/PanoTagPlugin/controller/index.js +22 -15
- package/libs/PanoTagPlugin/index.js +17 -13
- package/libs/PanoTagPlugin/typings/controller.d.ts +5 -2
- package/libs/PanoTagPlugin/typings/index.js +6 -4
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +1 -3
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +4 -1
- package/libs/PanoTagPlugin/typings/tag/Utils.js +2 -0
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +4 -2
- package/libs/PanoTagPlugin/utils/index.js +35 -33
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +69 -0
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +214 -0
- package/libs/PanoTagPlugin/utils/planeNormal.js +4 -2
- package/libs/PanoTagPlugin/utils/tagPosition.js +9 -7
- package/libs/PanoVideoPlugin/Controller.js +3 -4
- package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
- package/libs/PanoVideoPlugin/index.js +6 -7
- package/libs/base/BasePlugin.d.ts +0 -1
- package/libs/base/BasePlugin.js +10 -21
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +38 -57
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +3 -22
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +29 -48
- package/libs/floorplan/ModelFloorplanPlugin/index.js +3 -22
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +11 -31
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +3 -23
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +40 -59
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +3 -22
- package/libs/floorplan/index.js +0 -6
- package/libs/index.js +120 -118
- package/libs/shared-utils/five/FiveDomEvents.d.ts +11 -0
- package/libs/shared-utils/five/FiveDomEvents.js +77 -0
- package/libs/shared-utils/index.d.ts +0 -3
- package/libs/shared-utils/index.js +29 -36
- package/libs/shared-utils/logger.d.ts +17 -0
- package/libs/shared-utils/logger.js +16 -0
- package/libs/shared-utils/math/pointIsRectangle.d.ts +2 -0
- package/libs/shared-utils/math/pointIsRectangle.js +10 -0
- package/libs/shared-utils/offscreenCanvas.d.ts +2 -0
- package/libs/shared-utils/offscreenCanvas.js +12 -0
- package/libs/shared-utils/three/PointDomHelper.js +1 -1
- package/libs/shared-utils/three/Quadrangle.d.ts +20 -0
- package/libs/shared-utils/three/Quadrangle.js +41 -0
- package/libs/shared-utils/three/getPositionsByObjectFit.d.ts +2 -0
- package/libs/shared-utils/three/getPositionsByObjectFit.js +20 -0
- package/libs/shared-utils/three/loadTexture.js +19 -21
- package/libs/shared-utils/three/loadVideoTexture.d.ts +4 -0
- package/libs/shared-utils/three/loadVideoTexture.js +14 -0
- package/package.json +2 -2
- package/dist/GuideLinePlugin/GuideLineItem.d.ts +0 -26
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +0 -64
- package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -19
- package/dist/GuideLinePlugin/utils/index.d.ts +0 -7
- package/dist/PanoTagPlugin/utils/model/imagePlane.d.ts +0 -9
- package/dist/shared-utils/five/index.d.ts +0 -1
- package/dist/shared-utils/five/mode.d.ts +0 -3
- package/dist/shared-utils/isAbsoluteURL.d.ts +0 -1
- package/dist/shared-utils/log.d.ts +0 -2
- package/docs/classes/GuideLineItem.GuideLineItem.html +0 -169
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -344
- package/docs/functions/Util.isAbsoluteURL.html +0 -79
- package/docs/functions/Util.isModelLike.html +0 -79
- package/docs/functions/Util.isPanoramaLike.html +0 -79
- package/docs/functions/Util.uuid.html +0 -76
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -97
- package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -258
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -92
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -87
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -108
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -85
- package/docs/interfaces/GuideLinePluginType.PluginDataV1.html +0 -76
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -71
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -82
- package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -99
- package/docs/interfaces/GuideLinePluginType.Route.html +0 -103
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -92
- package/docs/modules/GuideLineItem.html +0 -53
- package/docs/modules/GuideLineModeItem.html +0 -53
- package/docs/modules/GuideLinePluginType.html +0 -99
- package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -67
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -65
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -67
- package/docs/types/GuideLinePluginType.PathItem.html +0 -67
- package/docs/types/GuideLinePluginType.PluginData.html +0 -65
- package/libs/GuideLinePlugin/GuideLineItem/index.js +0 -35
- package/libs/GuideLinePlugin/GuideLineItem.d.ts +0 -26
- package/libs/GuideLinePlugin/GuideLineItem.js +0 -31
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +0 -231
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +0 -64
- package/libs/GuideLinePlugin/GuideLineModeItem.js +0 -29
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -19
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +0 -35
- package/libs/GuideLinePlugin/utils/dataFormatter.d.ts +0 -2
- package/libs/GuideLinePlugin/utils/dataFormatter.js +0 -6
- package/libs/GuideLinePlugin/utils/index.d.ts +0 -7
- package/libs/GuideLinePlugin/utils/index.js +0 -32
- package/libs/PanoTagPlugin/utils/model/imagePlane.d.ts +0 -9
- package/libs/PanoTagPlugin/utils/model/imagePlane.js +0 -33
- package/libs/shared-utils/five/index.d.ts +0 -1
- package/libs/shared-utils/five/index.js +0 -1
- package/libs/shared-utils/five/mode.d.ts +0 -3
- package/libs/shared-utils/five/mode.js +0 -11
- package/libs/shared-utils/isAbsoluteURL.d.ts +0 -1
- package/libs/shared-utils/isAbsoluteURL.js +0 -6
- package/libs/shared-utils/log.d.ts +0 -2
- package/libs/shared-utils/log.js +0 -10
|
@@ -2,30 +2,30 @@ var A = Object.defineProperty, F = Object.defineProperties;
|
|
|
2
2
|
var C = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var w = Object.getOwnPropertySymbols;
|
|
4
4
|
var P = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var m = (h,
|
|
6
|
-
for (var t in
|
|
7
|
-
P.call(
|
|
5
|
+
var m = (h, n, t) => n in h ? A(h, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[n] = t, l = (h, n) => {
|
|
6
|
+
for (var t in n || (n = {}))
|
|
7
|
+
P.call(n, t) && m(h, t, n[t]);
|
|
8
8
|
if (w)
|
|
9
|
-
for (var t of w(
|
|
10
|
-
y.call(
|
|
9
|
+
for (var t of w(n))
|
|
10
|
+
y.call(n, t) && m(h, t, n[t]);
|
|
11
11
|
return h;
|
|
12
|
-
}, v = (h,
|
|
13
|
-
var o = (h,
|
|
14
|
-
var c = (h,
|
|
12
|
+
}, v = (h, n) => F(h, C(n));
|
|
13
|
+
var o = (h, n, t) => (m(h, typeof n != "symbol" ? n + "" : n, t), t);
|
|
14
|
+
var c = (h, n, t) => new Promise((e, i) => {
|
|
15
15
|
var s = (d) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
r(t.next(d));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
21
|
}, a = (d) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
r(t.throw(d));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, r = (d) => d.done ? e(d.value) : Promise.resolve(d.value).then(s, a);
|
|
28
|
+
r((t = t.apply(h, n)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as x from "three";
|
|
31
31
|
import { to as I } from "../../shared-utils/to.js";
|
|
@@ -39,7 +39,7 @@ import { Controller as T } from "../../base/BasePluginWithData.js";
|
|
|
39
39
|
import { getPxmm as k, getAttachedY as B } from "../../shared-utils/getPxmm.js";
|
|
40
40
|
import { checkShowState as H, correctFiveState as R } from "../utils/correctFiveState.js";
|
|
41
41
|
import { changeModelCanvasOpacity as E } from "../../shared-utils/changeModelCanvasOpacity.js";
|
|
42
|
-
import { FloorplanErrorType as
|
|
42
|
+
import { FloorplanErrorType as f, SHOW_ANIME_DURATION as G } from "../utils/constant.js";
|
|
43
43
|
import "../../shared-utils/isTruelyObject.js";
|
|
44
44
|
import "../../vendor/svelte/internal/index.js";
|
|
45
45
|
import "../../vendor/svelte/transition/index.js";
|
|
@@ -70,36 +70,17 @@ import "../Assets/floorplanExtraObject.js";
|
|
|
70
70
|
import "../../shared-utils/tap.js";
|
|
71
71
|
import "../../base/BasePlugin.js";
|
|
72
72
|
import "../../shared-utils/Subscribe.js";
|
|
73
|
-
import "@realsee/five";
|
|
74
|
-
import "hammerjs";
|
|
75
|
-
import "@tweenjs/tween.js";
|
|
76
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
77
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
78
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
79
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
80
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
81
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
82
|
-
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
83
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
84
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
85
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
86
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
87
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
88
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
89
|
-
import "../../shared-utils/isAbsoluteURL.js";
|
|
90
|
-
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
91
|
-
import "../../shared-utils/animationFrame/index.js";
|
|
92
73
|
import "../../shared-utils/nearlyEqual.js";
|
|
93
74
|
import "../../shared-utils/five/changeMode.js";
|
|
94
75
|
function W(h) {
|
|
95
|
-
const { latitude:
|
|
76
|
+
const { latitude: n, longitude: t } = h, e = Math.abs(n - Math.PI / 2) > 5 * Math.PI / 180, i = t > 5 * (Math.PI / 180) && t < 355 * (Math.PI / 180);
|
|
96
77
|
return e || i;
|
|
97
78
|
}
|
|
98
79
|
function N(h) {
|
|
99
|
-
const { latitude:
|
|
80
|
+
const { latitude: n, longitude: t } = h, e = Math.abs(n - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
|
|
100
81
|
return e && i;
|
|
101
82
|
}
|
|
102
|
-
class
|
|
83
|
+
class Ot extends T {
|
|
103
84
|
constructor(t, e) {
|
|
104
85
|
super(t);
|
|
105
86
|
o(this, "name", "modelFloorplanPlugin");
|
|
@@ -135,7 +116,7 @@ class Xt extends T {
|
|
|
135
116
|
o(this, "updateSize", () => {
|
|
136
117
|
if (!this.data || !H(this.five, this.showState) || !this.container || !this.wrapper)
|
|
137
118
|
return;
|
|
138
|
-
const { min: t, max: e } = this.data.bounding, i = e.x - t.x, s = e.y - t.y, a = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0,
|
|
119
|
+
const { min: t, max: e } = this.data.bounding, i = e.x - t.x, s = e.y - t.y, a = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, r = k(this.five, this.wrapper, this.floorIndex, a), d = Math.ceil(i * r), u = Math.ceil(s * r);
|
|
139
120
|
this.size.width === d && this.size.height === u || (this.container.style.width = d + "px", this.container.style.height = u + "px", this.size = { width: d, height: u });
|
|
140
121
|
});
|
|
141
122
|
o(this, "highlight", (t) => {
|
|
@@ -147,7 +128,7 @@ class Xt extends T {
|
|
|
147
128
|
o(this, "_disable", (t) => {
|
|
148
129
|
var i, s, a;
|
|
149
130
|
const { userAction: e } = t;
|
|
150
|
-
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this,
|
|
131
|
+
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, f.BreakOffByDisable), this.showPromise = void 0, (s = this.app) == null || s.$destroy(), this.app = void 0, (a = this.container) == null || a.remove(), this.removeEventListener();
|
|
151
132
|
});
|
|
152
133
|
o(this, "_enable", (t) => {
|
|
153
134
|
const { userAction: e } = t;
|
|
@@ -158,9 +139,9 @@ class Xt extends T {
|
|
|
158
139
|
if (!this.state.enabled)
|
|
159
140
|
return;
|
|
160
141
|
if (!((a = this.five.model) != null && a.loaded))
|
|
161
|
-
throw new Error(
|
|
142
|
+
throw new Error(f.ModelNotLoaded);
|
|
162
143
|
if (!this.data)
|
|
163
|
-
throw new Error(
|
|
144
|
+
throw new Error(f.DataNotLoaded);
|
|
164
145
|
this.isHiddenByHideFunc = !1;
|
|
165
146
|
const e = {
|
|
166
147
|
floorIndex: this.floorIndex,
|
|
@@ -170,34 +151,34 @@ class Xt extends T {
|
|
|
170
151
|
userAction: !0
|
|
171
152
|
}, i = l(l({}, e), t), s = () => c(this, null, function* () {
|
|
172
153
|
this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
|
|
173
|
-
let
|
|
154
|
+
let r = !1, d;
|
|
174
155
|
this.showRejection = (S) => {
|
|
175
|
-
|
|
156
|
+
r = !0, d = S;
|
|
176
157
|
};
|
|
177
158
|
const [u] = yield I(R(this.five, this.showState, i.userAction));
|
|
178
159
|
if (u)
|
|
179
160
|
throw u;
|
|
180
|
-
if (
|
|
181
|
-
throw d ? new Error(d) : new Error(
|
|
161
|
+
if (r)
|
|
162
|
+
throw d ? new Error(d) : new Error(f.UnknownError);
|
|
182
163
|
this.updateSize(), this.updatePosition(), this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
|
|
183
|
-
const
|
|
184
|
-
E(this.five,
|
|
164
|
+
const p = i.modelOpacity, g = i.immediately ? 0 : G;
|
|
165
|
+
E(this.five, p, g), this.render(g);
|
|
185
166
|
});
|
|
186
167
|
return this.showPromise = s().then(() => {
|
|
187
168
|
this.hooks.emit("showAnimationEnded", {
|
|
188
169
|
auto: i.isAutoShow,
|
|
189
170
|
userAction: i.userAction
|
|
190
171
|
});
|
|
191
|
-
}).catch((
|
|
192
|
-
if (this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow &&
|
|
193
|
-
throw
|
|
172
|
+
}).catch((r) => {
|
|
173
|
+
if (this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow && r instanceof Error)
|
|
174
|
+
throw r;
|
|
194
175
|
}).finally(() => {
|
|
195
176
|
this.showPromise = void 0, this.showRejection = void 0;
|
|
196
177
|
}), this.showPromise;
|
|
197
178
|
}));
|
|
198
179
|
o(this, "_hide", (t) => {
|
|
199
180
|
var s;
|
|
200
|
-
(s = this.showRejection) == null || s.call(this,
|
|
181
|
+
(s = this.showRejection) == null || s.call(this, f.BreakOffByHide), this.showPromise = void 0;
|
|
201
182
|
const i = l(l({}, {
|
|
202
183
|
userAction: !0,
|
|
203
184
|
isAutoHide: !1
|
|
@@ -279,8 +260,8 @@ class Xt extends T {
|
|
|
279
260
|
attachedTo: O.BOUNDING_CENTER,
|
|
280
261
|
getLabelElement: void 0,
|
|
281
262
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
282
|
-
getRoomAreaText: (
|
|
283
|
-
getRuleDistanceText: (
|
|
263
|
+
getRoomAreaText: (r) => (r / 1e6).toFixed(1) + "\u33A1",
|
|
264
|
+
getRuleDistanceText: (r) => r.toString()
|
|
284
265
|
}, s = e ? _(e, ["selector", "scale"]) : {}, a = l(l({}, i), s);
|
|
285
266
|
this.state = {
|
|
286
267
|
enabled: !0,
|
|
@@ -290,12 +271,12 @@ class Xt extends T {
|
|
|
290
271
|
}
|
|
291
272
|
load(t, e, i = !0) {
|
|
292
273
|
return c(this, null, function* () {
|
|
293
|
-
function s(
|
|
294
|
-
return Object.prototype.hasOwnProperty.apply(
|
|
274
|
+
function s(p) {
|
|
275
|
+
return Object.prototype.hasOwnProperty.apply(p, ["version"]);
|
|
295
276
|
}
|
|
296
277
|
const a = t;
|
|
297
278
|
a && !a.version && console.warn("\u4F20\u5165 serverData.data \u7684\u65B9\u5F0F\u540E\u7EED\u53EF\u80FD\u4E0D\u518D\u652F\u6301\uFF0C\u8BF7\u628A serverData \u6574\u4F53\u4F20\u5165 load \u51FD\u6570");
|
|
298
|
-
const
|
|
279
|
+
const r = JSON.parse(JSON.stringify(t)), d = s(r) ? r.data : r, u = this.data;
|
|
299
280
|
this.data = yield b(d), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, u), e && this.updateState(e, i), this.render();
|
|
300
281
|
});
|
|
301
282
|
}
|
|
@@ -326,8 +307,8 @@ class Xt extends T {
|
|
|
326
307
|
this.updateState({ config: t }, e), this.render();
|
|
327
308
|
}
|
|
328
309
|
updatePosition() {
|
|
329
|
-
var
|
|
330
|
-
const t = B(this.five, this.floorIndex, this.state.config.attachedTo), e = (
|
|
310
|
+
var r;
|
|
311
|
+
const t = B(this.five, this.floorIndex, this.state.config.attachedTo), e = (r = this.five.model) == null ? void 0 : r.bounding.getCenter(new x.Vector3()).setY(t);
|
|
331
312
|
if (!e)
|
|
332
313
|
return;
|
|
333
314
|
const i = e.clone().project(this.five.camera), s = (i.x + 1) / 2, a = -(i.y - 1) / 2;
|
|
@@ -380,5 +361,5 @@ class Xt extends T {
|
|
|
380
361
|
}
|
|
381
362
|
}
|
|
382
363
|
export {
|
|
383
|
-
|
|
364
|
+
Ot as Controller
|
|
384
365
|
};
|
|
@@ -38,33 +38,14 @@ import "../constant.js";
|
|
|
38
38
|
import "../../base/BasePluginWithData.js";
|
|
39
39
|
import "../../base/BasePlugin.js";
|
|
40
40
|
import "../../shared-utils/Subscribe.js";
|
|
41
|
-
import "@realsee/five";
|
|
42
|
-
import "hammerjs";
|
|
43
|
-
import "@tweenjs/tween.js";
|
|
44
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
45
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
46
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
47
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
48
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
49
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
50
|
-
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
51
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
52
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
53
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
54
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
55
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
56
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
57
|
-
import "../../shared-utils/isAbsoluteURL.js";
|
|
58
|
-
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
59
|
-
import "../../shared-utils/animationFrame/index.js";
|
|
60
41
|
import "../../shared-utils/getPxmm.js";
|
|
61
42
|
import "../utils/correctFiveState.js";
|
|
62
43
|
import "../utils/constant.js";
|
|
63
44
|
import "../../shared-utils/nearlyEqual.js";
|
|
64
45
|
import "../../shared-utils/five/changeMode.js";
|
|
65
46
|
import "../../shared-utils/changeModelCanvasOpacity.js";
|
|
66
|
-
const
|
|
47
|
+
const X = (o, r) => new t(o, r);
|
|
67
48
|
export {
|
|
68
|
-
|
|
69
|
-
|
|
49
|
+
X as MapviewFloorplanPlugin,
|
|
50
|
+
X as default
|
|
70
51
|
};
|
|
@@ -12,19 +12,19 @@ var m = (h, s, t) => s in h ? A(h, s, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
}, v = (h, s) => S(h, C(s));
|
|
13
13
|
var o = (h, s, t) => (m(h, typeof s != "symbol" ? s + "" : s, t), t);
|
|
14
14
|
var f = (h, s, t) => new Promise((e, i) => {
|
|
15
|
-
var
|
|
15
|
+
var n = (r) => {
|
|
16
16
|
try {
|
|
17
|
-
a(t.next(
|
|
17
|
+
a(t.next(r));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
|
-
}, d = (
|
|
21
|
+
}, d = (r) => {
|
|
22
22
|
try {
|
|
23
|
-
a(t.throw(
|
|
23
|
+
a(t.throw(r));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
}, a = (
|
|
27
|
+
}, a = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(n, d);
|
|
28
28
|
a((t = t.apply(h, s)).next());
|
|
29
29
|
});
|
|
30
30
|
import { to as M } from "../../shared-utils/to.js";
|
|
@@ -70,25 +70,6 @@ import "../../shared-utils/tap.js";
|
|
|
70
70
|
import "three";
|
|
71
71
|
import "../../base/BasePlugin.js";
|
|
72
72
|
import "../../shared-utils/Subscribe.js";
|
|
73
|
-
import "@realsee/five";
|
|
74
|
-
import "hammerjs";
|
|
75
|
-
import "@tweenjs/tween.js";
|
|
76
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
77
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
78
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
79
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
80
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
81
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
82
|
-
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
83
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
84
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
85
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
86
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
87
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
88
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
89
|
-
import "../../shared-utils/isAbsoluteURL.js";
|
|
90
|
-
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
91
|
-
import "../../shared-utils/animationFrame/index.js";
|
|
92
73
|
import "../../shared-utils/nearlyEqual.js";
|
|
93
74
|
import "../../shared-utils/five/changeMode.js";
|
|
94
75
|
function W(h) {
|
|
@@ -99,7 +80,7 @@ function R(h) {
|
|
|
99
80
|
const { latitude: s, longitude: t } = h, e = Math.abs(s - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
|
|
100
81
|
return e && i;
|
|
101
82
|
}
|
|
102
|
-
class
|
|
83
|
+
class Ot extends k {
|
|
103
84
|
constructor(t, e) {
|
|
104
85
|
var a;
|
|
105
86
|
super(t);
|
|
@@ -136,8 +117,8 @@ class Yt extends k {
|
|
|
136
117
|
o(this, "updateSize", () => {
|
|
137
118
|
if (!this.data || !T(this.five, this.showState) || !this.container || !this.wrapper)
|
|
138
119
|
return;
|
|
139
|
-
const { min: t, max: e } = this.data.bounding, i = e.x - t.x,
|
|
140
|
-
this.size.width ===
|
|
120
|
+
const { min: t, max: e } = this.data.bounding, i = e.x - t.x, n = e.y - t.y, d = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, a = L(this.five, this.wrapper, this.floorIndex, d), r = Math.ceil(i * a), u = Math.ceil(n * a);
|
|
121
|
+
this.size.width === r && this.size.height === u || (this.container.style.width = r + "px", this.container.style.height = u + "px", this.size = { width: r, height: u });
|
|
141
122
|
});
|
|
142
123
|
o(this, "highlight", (t) => {
|
|
143
124
|
!this.state.config.highlightEnable || (this.highlightData = t, this.render());
|
|
@@ -146,9 +127,9 @@ class Yt extends k {
|
|
|
146
127
|
this.highlightData = {}, this.render();
|
|
147
128
|
});
|
|
148
129
|
o(this, "_disable", (t) => {
|
|
149
|
-
var i,
|
|
130
|
+
var i, n, d;
|
|
150
131
|
const { userAction: e } = t;
|
|
151
|
-
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, c.BreakOffByDisable), this.showPromise = void 0, (
|
|
132
|
+
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, c.BreakOffByDisable), this.showPromise = void 0, (n = this.app) == null || n.$destroy(), this.app = void 0, (d = this.container) == null || d.remove(), this.removeEventListener();
|
|
152
133
|
});
|
|
153
134
|
o(this, "_enable", (t) => {
|
|
154
135
|
const { userAction: e } = t;
|
|
@@ -169,22 +150,22 @@ class Yt extends k {
|
|
|
169
150
|
immediately: !1,
|
|
170
151
|
isAutoShow: !1,
|
|
171
152
|
userAction: !0
|
|
172
|
-
}, i = l(l({}, e), t),
|
|
153
|
+
}, i = l(l({}, e), t), n = () => f(this, null, function* () {
|
|
173
154
|
this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
|
|
174
|
-
let a = !1,
|
|
155
|
+
let a = !1, r;
|
|
175
156
|
this.showRejection = (E) => {
|
|
176
|
-
a = !0,
|
|
157
|
+
a = !0, r = E;
|
|
177
158
|
};
|
|
178
159
|
const [u] = yield M(B(this.five, this.showState, i.userAction));
|
|
179
160
|
if (u)
|
|
180
161
|
throw u;
|
|
181
162
|
if (a)
|
|
182
|
-
throw
|
|
163
|
+
throw r ? new Error(r) : new Error(c.UnknownError);
|
|
183
164
|
this.updateSize(), this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
|
|
184
165
|
const p = i.modelOpacity, g = i.immediately ? 0 : H;
|
|
185
166
|
F(this.five, p, g), this.render(g);
|
|
186
167
|
});
|
|
187
|
-
return this.showPromise =
|
|
168
|
+
return this.showPromise = n().then(() => {
|
|
188
169
|
this.hooks.emit("showAnimationEnded", {
|
|
189
170
|
auto: i.isAutoShow,
|
|
190
171
|
userAction: i.userAction
|
|
@@ -197,8 +178,8 @@ class Yt extends k {
|
|
|
197
178
|
}), this.showPromise;
|
|
198
179
|
}));
|
|
199
180
|
o(this, "_hide", (t) => {
|
|
200
|
-
var
|
|
201
|
-
(
|
|
181
|
+
var n;
|
|
182
|
+
(n = this.showRejection) == null || n.call(this, c.BreakOffByHide), this.showPromise = void 0;
|
|
202
183
|
const i = l(l({}, {
|
|
203
184
|
userAction: !0,
|
|
204
185
|
isAutoHide: !1
|
|
@@ -282,9 +263,9 @@ class Yt extends k {
|
|
|
282
263
|
cameraImageUrl: D,
|
|
283
264
|
attachedTo: O.BOUNDING_CENTER,
|
|
284
265
|
getLabelElement: void 0,
|
|
285
|
-
getRoomAreaText: (
|
|
286
|
-
getRuleDistanceText: (
|
|
287
|
-
},
|
|
266
|
+
getRoomAreaText: (r) => (r / 1e6).toFixed(1) + "\u33A1",
|
|
267
|
+
getRuleDistanceText: (r) => r.toString()
|
|
268
|
+
}, n = e ? _(e, ["selector", "scale"]) : {}, d = l(l({}, i), n);
|
|
288
269
|
this.state = {
|
|
289
270
|
enabled: !0,
|
|
290
271
|
visible: !1,
|
|
@@ -293,13 +274,13 @@ class Yt extends k {
|
|
|
293
274
|
}
|
|
294
275
|
load(t, e, i = !0) {
|
|
295
276
|
return f(this, null, function* () {
|
|
296
|
-
function
|
|
277
|
+
function n(p) {
|
|
297
278
|
return Object.prototype.hasOwnProperty.apply(p, ["version"]);
|
|
298
279
|
}
|
|
299
280
|
const d = t;
|
|
300
281
|
d && !d.version && console.warn("\u4F20\u5165 serverData.data \u7684\u65B9\u5F0F\u540E\u7EED\u53EF\u80FD\u4E0D\u518D\u652F\u6301\uFF0C\u8BF7\u628A serverData \u6574\u4F53\u4F20\u5165 load \u51FD\u6570");
|
|
301
|
-
const a = JSON.parse(JSON.stringify(t)),
|
|
302
|
-
this.data = yield b(
|
|
282
|
+
const a = JSON.parse(JSON.stringify(t)), r = n(a) ? a.data : a, u = this.data;
|
|
283
|
+
this.data = yield b(r), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, u), e && this.updateState(e, i), this.render();
|
|
303
284
|
});
|
|
304
285
|
}
|
|
305
286
|
appendTo(t) {
|
|
@@ -319,9 +300,9 @@ class Yt extends k {
|
|
|
319
300
|
this.updateState({ enabled: !1 }, t.userAction || e), this._disable({ userAction: e });
|
|
320
301
|
}
|
|
321
302
|
setState(t, e = {}) {
|
|
322
|
-
const i = this.state,
|
|
323
|
-
if (this.updateState(t,
|
|
324
|
-
const d = { userAction:
|
|
303
|
+
const i = this.state, n = e.userAction !== void 0 ? e.userAction : !0;
|
|
304
|
+
if (this.updateState(t, n), t.enabled !== void 0 && i.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: n }) : this._disable({ userAction: n })), t.visible !== void 0 && i.visible !== t.visible) {
|
|
305
|
+
const d = { userAction: n };
|
|
325
306
|
t.visible ? this._show(d) : this._hide(d);
|
|
326
307
|
}
|
|
327
308
|
this.render();
|
|
@@ -335,8 +316,8 @@ class Yt extends k {
|
|
|
335
316
|
});
|
|
336
317
|
}
|
|
337
318
|
updateState(t, e) {
|
|
338
|
-
const i = this.state,
|
|
339
|
-
this.state = v(l(l({}, this.state), t), { config:
|
|
319
|
+
const i = this.state, n = t.config ? l(l({}, i.config), t.config) : i.config;
|
|
320
|
+
this.state = v(l(l({}, this.state), t), { config: n }), !x(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
|
|
340
321
|
}
|
|
341
322
|
initContainer() {
|
|
342
323
|
this.container.classList.add("floorplan-plugin"), Object.assign(this.container.style, {
|
|
@@ -376,5 +357,5 @@ class Yt extends k {
|
|
|
376
357
|
}
|
|
377
358
|
}
|
|
378
359
|
export {
|
|
379
|
-
|
|
360
|
+
Ot as Controller
|
|
380
361
|
};
|
|
@@ -39,32 +39,13 @@ import "three";
|
|
|
39
39
|
import "../../base/BasePluginWithData.js";
|
|
40
40
|
import "../../base/BasePlugin.js";
|
|
41
41
|
import "../../shared-utils/Subscribe.js";
|
|
42
|
-
import "@realsee/five";
|
|
43
|
-
import "hammerjs";
|
|
44
|
-
import "@tweenjs/tween.js";
|
|
45
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
46
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
47
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
48
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
49
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
50
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
51
|
-
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
52
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
53
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
54
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
55
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
56
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
57
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
58
|
-
import "../../shared-utils/isAbsoluteURL.js";
|
|
59
|
-
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
60
|
-
import "../../shared-utils/animationFrame/index.js";
|
|
61
42
|
import "../utils/correctFiveState.js";
|
|
62
43
|
import "../utils/constant.js";
|
|
63
44
|
import "../../shared-utils/nearlyEqual.js";
|
|
64
45
|
import "../../shared-utils/five/changeMode.js";
|
|
65
46
|
import "../../shared-utils/changeModelCanvasOpacity.js";
|
|
66
|
-
const
|
|
47
|
+
const X = (o, r) => new t(o, r);
|
|
67
48
|
export {
|
|
68
|
-
|
|
69
|
-
|
|
49
|
+
X as ModelFloorplanPlugin,
|
|
50
|
+
X as default
|
|
70
51
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var w = Object.defineProperty, v = Object.defineProperties;
|
|
2
|
+
var A = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var f = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var c = (r, i, t) => i in r ?
|
|
4
|
+
var m = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var c = (r, i, t) => i in r ? w(r, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[i] = t, p = (r, i) => {
|
|
6
6
|
for (var t in i || (i = {}))
|
|
7
|
-
|
|
7
|
+
m.call(i, t) && c(r, t, i[t]);
|
|
8
8
|
if (f)
|
|
9
9
|
for (var t of f(i))
|
|
10
10
|
S.call(i, t) && c(r, t, i[t]);
|
|
11
11
|
return r;
|
|
12
|
-
}, b = (r, i) =>
|
|
12
|
+
}, b = (r, i) => v(r, A(i));
|
|
13
13
|
var o = (r, i, t) => (c(r, typeof i != "symbol" ? i + "" : i, t), t);
|
|
14
14
|
var l = (r, i, t) => new Promise((e, s) => {
|
|
15
15
|
var h = (n) => {
|
|
@@ -31,7 +31,7 @@ import D from "./Components/Main.js";
|
|
|
31
31
|
import { equal as _ } from "../../shared-utils/equal.js";
|
|
32
32
|
import { CAMERA_IMAGE as E } from "../Assets/camera.js";
|
|
33
33
|
import { Controller as y } from "../../base/BasePluginWithData.js";
|
|
34
|
-
import { formatData as
|
|
34
|
+
import { formatData as g, formatExtraObjects as C } from "../utils/formatData.js";
|
|
35
35
|
import "../../vendor/svelte/internal/index.js";
|
|
36
36
|
import "./Components/Camera.js";
|
|
37
37
|
import "../../shared-utils/throttle.js";
|
|
@@ -48,28 +48,8 @@ import "../../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
|
48
48
|
import "../../shared-utils/isTruelyObject.js";
|
|
49
49
|
import "../../base/BasePlugin.js";
|
|
50
50
|
import "../../shared-utils/Subscribe.js";
|
|
51
|
-
import "@realsee/five";
|
|
52
|
-
import "hammerjs";
|
|
53
|
-
import "three";
|
|
54
|
-
import "@tweenjs/tween.js";
|
|
55
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
56
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
57
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
58
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
59
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
60
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
61
|
-
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
62
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
63
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
64
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
65
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
66
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
67
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
68
|
-
import "../../shared-utils/isAbsoluteURL.js";
|
|
69
|
-
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
70
|
-
import "../../shared-utils/animationFrame/index.js";
|
|
71
51
|
import "../Assets/floorplanExtraObject.js";
|
|
72
|
-
class
|
|
52
|
+
class V extends y {
|
|
73
53
|
constructor(t, e) {
|
|
74
54
|
super(t);
|
|
75
55
|
o(this, "name", "panoFloorplanRadarPlugin");
|
|
@@ -110,7 +90,7 @@ class mt extends y {
|
|
|
110
90
|
return Object.prototype.hasOwnProperty.apply(d, ["version"]);
|
|
111
91
|
}
|
|
112
92
|
const a = JSON.parse(JSON.stringify(t)), u = h(a) ? a.data : a, n = this.data;
|
|
113
|
-
this.data = yield
|
|
93
|
+
this.data = yield g(u), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, n), e && this.updateState(e, s), this.render();
|
|
114
94
|
});
|
|
115
95
|
}
|
|
116
96
|
show() {
|
|
@@ -163,7 +143,7 @@ class mt extends y {
|
|
|
163
143
|
}
|
|
164
144
|
formatData(t) {
|
|
165
145
|
return l(this, null, function* () {
|
|
166
|
-
return yield
|
|
146
|
+
return yield g(t.data);
|
|
167
147
|
});
|
|
168
148
|
}
|
|
169
149
|
_enable(t) {
|
|
@@ -206,5 +186,5 @@ class mt extends y {
|
|
|
206
186
|
}
|
|
207
187
|
}
|
|
208
188
|
export {
|
|
209
|
-
|
|
189
|
+
V as Controller
|
|
210
190
|
};
|
|
@@ -19,30 +19,10 @@ import "../../shared-utils/isTruelyObject.js";
|
|
|
19
19
|
import "../../base/BasePluginWithData.js";
|
|
20
20
|
import "../../base/BasePlugin.js";
|
|
21
21
|
import "../../shared-utils/Subscribe.js";
|
|
22
|
-
import "@realsee/five";
|
|
23
|
-
import "hammerjs";
|
|
24
|
-
import "three";
|
|
25
|
-
import "@tweenjs/tween.js";
|
|
26
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
27
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
28
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
29
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
30
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
31
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
32
|
-
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
33
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
34
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
35
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
36
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
37
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
38
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
39
|
-
import "../../shared-utils/isAbsoluteURL.js";
|
|
40
|
-
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
41
|
-
import "../../shared-utils/animationFrame/index.js";
|
|
42
22
|
import "../utils/formatData.js";
|
|
43
23
|
import "../Assets/floorplanExtraObject.js";
|
|
44
|
-
const
|
|
24
|
+
const q = (o, r) => new t(o, r);
|
|
45
25
|
export {
|
|
46
|
-
|
|
47
|
-
|
|
26
|
+
q as PanoFloorplanRadarPlugin,
|
|
27
|
+
q as default
|
|
48
28
|
};
|