@realsee/dnalogel 2.16.0-10 → 2.16.0-12
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/components/index.js +688 -240
- package/dist/CruisePlugin/typing.d.ts +1 -1
- package/dist/GuideLinePlugin/Controller.d.ts +5 -4
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +7 -1
- package/dist/GuideLinePlugin/typing.d.ts +8 -9
- package/dist/GuideLinePlugin/utils/index.d.ts +1 -1
- package/dist/Object3DHelperPlugin/Controller.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Model/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Model/line.d.ts +2 -2
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/typings/event.type.d.ts +2 -2
- package/dist/PanoMeasurePlugin/typings/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +2 -2
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +3 -3
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +1 -1
- package/dist/PanoVideoPlugin/utils/index.d.ts +1 -1
- package/dist/index.cjs.js +100 -86
- package/dist/index.js +14859 -8028
- package/dist/index.umd.js +93 -79
- package/dist/shared-utils/Object3DHelper/Controller/BoundingBoxController.d.ts +1 -1
- package/dist/shared-utils/Object3DHelper/typings/index.d.ts +1 -1
- package/dist/shared-utils/animationFrame/BetterTween.d.ts +3 -2
- package/dist/shared-utils/animationFrame/index.d.ts +1 -1
- package/dist/shared-utils/animationFrame/tween.d.ts +32 -23
- package/dist/shared-utils/five/mode.d.ts +1 -1
- package/dist/shared-utils/svelte/resizeObserver.d.ts +2 -10
- package/dist/shared-utils/svelte/resizeObserverGlobal.d.ts +10 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +26 -26
- package/docs/classes/GuideLineItem.GuideLineItem.html +16 -16
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +38 -26
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +25 -25
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +23 -23
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +47 -47
- package/docs/classes/Util.BetterTween.html +29 -18
- 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 +19 -19
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/PanoVideoPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isAbsoluteURL.html +5 -5
- package/docs/functions/Util.isModelLike.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.isPanoramaLike.html +5 -5
- package/docs/functions/Util.nextFrame.html +18 -7
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +7 -18
- package/docs/functions/Util.uuid.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/CruisePluginTypes.Config.html +8 -8
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +12 -12
- package/docs/interfaces/CruisePluginTypes.EventMap.html +20 -20
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +12 -12
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +14 -14
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +14 -14
- package/docs/interfaces/CruisePluginTypes.PluginData.html +9 -9
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +7 -7
- package/docs/interfaces/CruisePluginTypes.PluginState.html +11 -11
- package/docs/interfaces/EventMap.html +15 -15
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +10 -10
- package/docs/interfaces/GuideLinePluginType.EventMap.html +13 -13
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +8 -8
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +6 -6
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +11 -11
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +8 -8
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +16 -16
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTag.html +19 -19
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +16 -16
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +26 -26
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +7 -7
- package/docs/interfaces/GuideLinePluginType.PluginState.html +8 -15
- package/docs/interfaces/GuideLinePluginType.Route.html +17 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +9 -9
- package/docs/interfaces/HelperOffset.html +8 -8
- package/docs/interfaces/ImagePlaneGroup.html +6 -6
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/MinMax.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/ObjectHelperControllers.html +9 -9
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +14 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCacheInterface.html +12 -12
- package/docs/interfaces/TagConfig.html +11 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
- package/docs/interfaces/TagIconUrl.html +12 -12
- package/docs/interfaces/TagObjectGroup.html +6 -6
- package/docs/interfaces/TagStyle.html +6 -6
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/CruisePluginTypes.html +5 -5
- package/docs/modules/GuideLineItem.html +5 -5
- package/docs/modules/GuideLineModeItem.html +5 -5
- package/docs/modules/GuideLinePluginType.html +5 -7
- package/docs/modules/PanoVideoPluginType.html +5 -5
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/AudioAppearance.html +5 -5
- package/docs/types/AudioTagTypeConfigKey.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/ClassFunctionParameters.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeySplit.html +5 -5
- package/docs/types/ContentTypeMap.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/CruisePluginTypes.CruiseData.html +5 -5
- package/docs/types/CruisePluginTypes.MoveEffect.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/GuideLinePluginType.GuideLineItem.html +5 -6
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +5 -6
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +5 -6
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +5 -6
- package/docs/types/GuideLinePluginType.PathItem.html +5 -6
- package/docs/types/GuideLinePluginType.PluginData.html +17 -7
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/LoadTagConfig.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/MediaStore.html +5 -5
- package/docs/types/ModelElement.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoIndex.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PanoVideoPluginParameterType.html +5 -5
- package/docs/types/PanoVideoPluginReturnType.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PlaneTagElement.html +5 -5
- package/docs/types/Point2DElement.html +5 -5
- package/docs/types/Point2DTag.html +5 -5
- package/docs/types/Point3DElement.html +5 -5
- package/docs/types/Point3DTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/PointTagElement.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/StickType.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagContentType.html +5 -5
- package/docs/types/TagDimensionType.html +5 -5
- package/docs/types/TagElement.html +5 -5
- package/docs/types/TagEvents.html +5 -5
- package/docs/types/TagGLTFObject.html +5 -5
- package/docs/types/TagHooks.html +5 -5
- package/docs/types/TagIconSize.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/WorkCode.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/CSS3DRenderPlugin/Controller.js +48 -14
- package/libs/CSS3DRenderPlugin/index.js +7 -9
- package/libs/CSS3DRenderPlugin/utils/even.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +3 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +37 -2
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +1 -1
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +22 -18
- package/libs/CameraMovementPlugin/index.js +7 -9
- package/libs/CruisePlugin/Controller.js +163 -54
- package/libs/CruisePlugin/index.js +38 -32
- package/libs/CruisePlugin/typing.d.ts +1 -1
- package/libs/CruisePlugin/utils/coordinatesToVector.js +3 -0
- package/libs/GuideLinePlugin/Components/Tag.js +14 -2
- package/libs/GuideLinePlugin/Controller.d.ts +5 -4
- package/libs/GuideLinePlugin/Controller.js +147 -135
- package/libs/GuideLinePlugin/GuideLineItem/index.js +26 -30
- package/libs/GuideLinePlugin/GuideLineItem.js +30 -23
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +126 -72
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +7 -1
- package/libs/GuideLinePlugin/GuideLineModeItem.js +30 -23
- package/libs/GuideLinePlugin/index.js +40 -33
- package/libs/GuideLinePlugin/typing.d.ts +8 -9
- package/libs/GuideLinePlugin/typing.js +1 -34
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +24 -18
- package/libs/GuideLinePlugin/utils/getPoint.js +4 -0
- package/libs/GuideLinePlugin/utils/index.d.ts +1 -1
- package/libs/GuideLinePlugin/utils/index.js +9 -44
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +83 -34
- package/libs/ItemLabelPlugin/ItemLabelItem.js +91 -14
- package/libs/ItemLabelPlugin/Plugin.js +2 -2
- package/libs/ItemLabelPlugin/index.js +8 -9
- package/libs/ModelChassisCompassPlugin/Plugin.js +25 -25
- package/libs/ModelChassisCompassPlugin/index.js +3 -4
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +14 -14
- package/libs/ModelEntryDoorGuidePlugin/index.js +3 -4
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +46 -10
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +60 -7
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +3 -3
- package/libs/ModelItemLabelPlugin/index.js +6 -7
- package/libs/ModelRoomLabelPlugin/Controller.js +18 -1
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +58 -4
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +50 -20
- package/libs/ModelTVVideoPlugin/Plugin.js +7 -9
- package/libs/ModelTVVideoPlugin/index.js +7 -10
- package/libs/ModelViewPlugin/Plugin.js +3 -3
- package/libs/ModelViewPlugin/index.js +3 -4
- package/libs/Object3DHelperPlugin/Controller.d.ts +1 -1
- package/libs/Object3DHelperPlugin/Controller.js +62 -42
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +2 -1
- package/libs/Object3DHelperPlugin/index.js +9 -11
- package/libs/PanoCompassPlugin/Controller.js +54 -4
- package/libs/PanoCompassPlugin/getRoomInfoInstance.js +1 -1
- package/libs/PanoCompassPlugin/index.js +3 -3
- package/libs/PanoDoorLabelPlugin/BaseController.js +37 -12
- package/libs/PanoDoorLabelPlugin/Controller.js +9 -6
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +39 -13
- package/libs/PanoDoorLabelPlugin/index.js +5 -7
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +2 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +25 -7
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +11 -7
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +2 -2
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +7 -7
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +8 -8
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/index.js +44 -14
- package/libs/PanoMeasurePlugin/Model/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Model/index.js +7 -7
- package/libs/PanoMeasurePlugin/Model/line.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Model/line.js +9 -9
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Model/polyline.js +26 -25
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +2 -2
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +2 -1
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +21 -20
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +14 -10
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +8 -7
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +3 -4
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +12 -13
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +5 -6
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +15 -12
- package/libs/PanoMeasurePlugin/index.js +15 -16
- package/libs/PanoMeasurePlugin/typings/event.type.d.ts +2 -2
- package/libs/PanoMeasurePlugin/typings/event.type.js +1 -4
- package/libs/PanoMeasurePlugin/typings/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/typings/index.js +1 -20
- package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +8 -11
- package/libs/PanoRulerPlugin/Plugin.js +54 -54
- package/libs/PanoRulerPlugin/index.js +3 -4
- package/libs/PanoRulerProPlugin/Controller.js +14 -15
- package/libs/PanoRulerProPlugin/RulerItem.js +134 -45
- package/libs/PanoRulerProPlugin/RulerItems.js +49 -40
- package/libs/PanoRulerProPlugin/index.js +4 -5
- package/libs/PanoSpatialTagPlugin/Components/origins.js +47 -8
- package/libs/PanoSpatialTagPlugin/Components/tag.js +79 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +5 -7
- package/libs/PanoSpatialTagPlugin/index.js +4 -7
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +45 -20
- package/libs/PanoTagPlugin/Components/Common/Audio.js +46 -8
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +220 -58
- package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +64 -11
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +50 -27
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +151 -26
- package/libs/PanoTagPlugin/Components/Common/Media.js +222 -89
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +171 -22
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +100 -28
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +97 -20
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +68 -17
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +71 -31
- package/libs/PanoTagPlugin/Components/Common/Text/MText.js +87 -13
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +29 -6
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +99 -14
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +171 -48
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +43 -20
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +11 -4
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +80 -27
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +41 -17
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +175 -36
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +76 -24
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +87 -14
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +99 -34
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +38 -23
- package/libs/PanoTagPlugin/Components/Tag/index.js +266 -44
- package/libs/PanoTagPlugin/Components/TagContainer.js +112 -61
- package/libs/PanoTagPlugin/Components/TagItem.js +202 -31
- package/libs/PanoTagPlugin/controller/TagCache.js +22 -20
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/TagComputer.js +40 -21
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/TagRender.js +50 -19
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +2 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +30 -16
- package/libs/PanoTagPlugin/controller/index.js +93 -31
- package/libs/PanoTagPlugin/index.js +21 -22
- package/libs/PanoTagPlugin/tag.config.js +4 -0
- package/libs/PanoTagPlugin/typings/index.js +4 -7
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +3 -3
- package/libs/PanoTagPlugin/typings/tag/Utils.js +2 -5
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +8 -6
- package/libs/PanoTagPlugin/utils/audio/SharedAudio.js +7 -7
- package/libs/PanoTagPlugin/utils/index.js +33 -35
- package/libs/PanoTagPlugin/utils/normalPositionToPositions.js +4 -0
- package/libs/PanoTagPlugin/utils/planeNormal.js +2 -4
- package/libs/PanoTagPlugin/utils/tagPosition.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/tagPosition.js +8 -10
- package/libs/PanoVideoPlugin/Controller.js +54 -40
- package/libs/PanoVideoPlugin/VideoMeshController.js +90 -44
- package/libs/PanoVideoPlugin/index.js +7 -8
- package/libs/PanoVideoPlugin/utils/index.d.ts +1 -1
- package/libs/PanoVideoPlugin/utils/index.js +0 -1
- package/libs/_commonjsHelpers.js +4 -0
- package/libs/base/BasePlugin.js +24 -16
- package/libs/base/BasePluginWithData.js +2 -2
- package/libs/components/PaintBrush/Controller.js +15 -4
- package/libs/components/PaintBrush/Subscribe.js +37 -0
- package/libs/components/PaintBrush/index.js +17 -4
- package/libs/components/PaintBrush/tween.js +2 -2
- package/libs/components/index.js +1 -1
- package/libs/floorplan/Components/BaseImage.js +24 -6
- package/libs/floorplan/Components/Camera.js +73 -27
- package/libs/floorplan/Components/Compass.js +20 -3
- package/libs/floorplan/Components/CurrentFloor.js +189 -50
- package/libs/floorplan/Components/Main.js +202 -54
- package/libs/floorplan/Components/Normalmage.js +5 -2
- package/libs/floorplan/Components/RoomHighlight/Room.js +38 -5
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +105 -58
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +91 -18
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +106 -37
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +42 -13
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +15 -3
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +40 -3
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +37 -3
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +125 -51
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +80 -15
- package/libs/floorplan/Components/SvgImage.js +18 -6
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +118 -76
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +5 -7
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +97 -54
- package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -7
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +43 -15
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +83 -22
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +61 -39
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +128 -33
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +40 -37
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -7
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +84 -65
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -7
- package/libs/floorplan/index.js +2 -4
- package/libs/floorplan/typings/floorplanServerData.js +80 -80
- package/libs/index.js +136 -129
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +29 -1
- package/libs/shared-utils/Object3DHelper/Controller/BoundingBoxController.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/Controller/BoundingBoxController.js +2 -3
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +10 -1
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +5 -2
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +9 -8
- package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +1 -0
- package/libs/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +4 -1
- package/libs/shared-utils/Object3DHelper/index.js +15 -0
- package/libs/shared-utils/Object3DHelper/typings/index.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/typings/index.js +1 -2
- package/libs/shared-utils/Subscribe.js +38 -1
- package/libs/shared-utils/animationFrame/BetterTween.d.ts +3 -2
- package/libs/shared-utils/animationFrame/BetterTween.js +19 -12
- package/libs/shared-utils/animationFrame/index.d.ts +1 -1
- package/libs/shared-utils/animationFrame/index.js +14 -14
- package/libs/shared-utils/animationFrame/tween.d.ts +32 -23
- package/libs/shared-utils/animationFrame/tween.js +15 -15
- package/libs/shared-utils/audio.js +9 -9
- package/libs/shared-utils/changeModelCanvasOpacity.js +1 -1
- package/libs/shared-utils/createCanvasTextTexture.js +3 -3
- package/libs/shared-utils/five/changeMode.js +11 -11
- package/libs/shared-utils/five/index.js +1 -1
- package/libs/shared-utils/five/mode.d.ts +1 -1
- package/libs/shared-utils/five/mode.js +2 -3
- package/libs/shared-utils/index.js +15 -15
- package/libs/shared-utils/log.js +2 -2
- package/libs/shared-utils/math/Interval.js +2 -0
- package/libs/shared-utils/math/Rectangle.js +2 -0
- package/libs/shared-utils/svelte/resizeObserver.d.ts +2 -10
- package/libs/shared-utils/svelte/resizeObserverGlobal.d.ts +10 -0
- package/libs/shared-utils/three/FivePointSelector.js +1 -1
- package/libs/shared-utils/three/Magnifier.js +10 -7
- package/libs/shared-utils/three/PointDomHelper.js +12 -11
- package/libs/shared-utils/three/index.js +1 -2
- package/libs/shared-utils/three/loadTexture.js +10 -10
- package/libs/shared-utils/threex/domevents/index.js +2 -2
- package/libs/vendor/@tweenjs/tween/dist/tween.esm.js.js +403 -0
- package/libs/vendor/classnames/index.js +47 -0
- package/libs/vendor/easy-reactive/main.js +3 -0
- package/libs/vendor/{simply-reactive → easy-reactive}/src/simply-reactive.js +8 -8
- package/libs/vendor/{simply-reactive → easy-reactive}/src/utils/object.js +1 -1
- package/libs/vendor/gl-vec2/add.js +7 -0
- package/libs/vendor/gl-vec2/dot.js +7 -0
- package/libs/vendor/gl-vec2/normalize.js +8 -0
- package/libs/vendor/gl-vec2/set.js +7 -0
- package/libs/vendor/gl-vec2/subtract.js +7 -0
- package/libs/vendor/lodash.clonedeep/index.js +457 -0
- package/libs/vendor/lodash.get/index.js +236 -0
- package/libs/vendor/lodash.isequal/index.js +489 -0
- package/libs/vendor/object-assign-deep/objectAssignDeep.js +62 -0
- package/libs/vendor/polyline-miter-util/index.js +18 -0
- package/libs/vendor/polyline-normals/index.js +28 -0
- package/libs/vendor/resize-observer-polyfill/dist/ResizeObserver.es.js +155 -134
- package/libs/vendor/svelte/easing/index.js +4 -5
- package/libs/vendor/svelte/index.js +1 -1
- package/libs/vendor/svelte/internal/index.js +412 -388
- package/libs/vendor/svelte/store/index.js +6 -6
- package/libs/vendor/svelte/transition/index.js +23 -20
- package/libs/vendor/svelte-carousel/src/components/Arrow/Arrow.js +41 -3
- package/libs/vendor/svelte-carousel/src/components/Carousel/Carousel.js +338 -71
- package/libs/vendor/svelte-carousel/src/components/Carousel/createCarousel.js +7 -1
- package/libs/vendor/svelte-carousel/src/components/Dot/Dot.js +19 -3
- package/libs/vendor/svelte-carousel/src/components/Dots/Dots.js +30 -7
- package/libs/vendor/svelte-carousel/src/components/Progress/Progress.js +15 -3
- package/libs/vendor/svelte-carousel/src/utils/clones.js +1 -0
- package/libs/vendor/svelte-carousel/src/utils/lazy.js +3 -0
- package/package.json +11 -13
- package/dist/GuideLinePlugin/utils/getArrowMaterial.d.ts +0 -4
- package/docs/interfaces/GuideLinePluginType.PluginDataV1.html +0 -77
- package/libs/typings/math.type.js +0 -1
- package/libs/vendor/simply-reactive/main.js +0 -3
- /package/libs/vendor/{simply-reactive → easy-reactive}/src/utils/subscription.js +0 -0
- /package/libs/vendor/{simply-reactive → easy-reactive}/src/utils/watcher.js +0 -0
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
var
|
|
1
|
+
var F = Object.defineProperty, E = Object.defineProperties;
|
|
2
2
|
var C = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var w = Object.getOwnPropertySymbols;
|
|
4
4
|
var P = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var m = (h, s, t) => s in h ?
|
|
5
|
+
var m = (h, s, t) => s in h ? F(h, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[s] = t, u = (h, s) => {
|
|
6
6
|
for (var t in s || (s = {}))
|
|
7
7
|
P.call(s, t) && m(h, t, s[t]);
|
|
8
8
|
if (w)
|
|
9
9
|
for (var t of w(s))
|
|
10
10
|
I.call(s, t) && m(h, t, s[t]);
|
|
11
11
|
return h;
|
|
12
|
-
}, v = (h, s) =>
|
|
12
|
+
}, v = (h, s) => E(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
15
|
var r = (n) => {
|
|
16
16
|
try {
|
|
17
17
|
a(t.next(n));
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
18
|
+
} catch (l) {
|
|
19
|
+
i(l);
|
|
20
20
|
}
|
|
21
21
|
}, d = (n) => {
|
|
22
22
|
try {
|
|
23
23
|
a(t.throw(n));
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
24
|
+
} catch (l) {
|
|
25
|
+
i(l);
|
|
26
26
|
}
|
|
27
27
|
}, a = (n) => n.done ? e(n.value) : Promise.resolve(n.value).then(r, d);
|
|
28
28
|
a((t = t.apply(h, s)).next());
|
|
@@ -31,14 +31,14 @@ import { to as M } from "../../shared-utils/to.js";
|
|
|
31
31
|
import { equal as x } from "../../shared-utils/equal.js";
|
|
32
32
|
import { Main as y } from "../Components/Main.js";
|
|
33
33
|
import { formatData as b } from "../utils/formatData.js";
|
|
34
|
-
import { CAMERA_IMAGE as
|
|
35
|
-
import { omit as
|
|
36
|
-
import { getPxmm as
|
|
37
|
-
import { FLOOR_PLAN_ATTACHED_TO as
|
|
34
|
+
import { CAMERA_IMAGE as _ } from "../Assets/camera.js";
|
|
35
|
+
import { omit as L } from "../../shared-utils/filter.js";
|
|
36
|
+
import { getPxmm as O } from "../../shared-utils/getPxmm.js";
|
|
37
|
+
import { FLOOR_PLAN_ATTACHED_TO as D } from "../constant.js";
|
|
38
38
|
import { Controller as k } from "../../base/BasePluginWithData.js";
|
|
39
|
-
import { checkShowState as T, correctFiveState as
|
|
40
|
-
import { changeModelCanvasOpacity as
|
|
41
|
-
import { FIVE_CAMERA_DEFAULT_FOV as
|
|
39
|
+
import { checkShowState as T, correctFiveState as G } from "../utils/correctFiveState.js";
|
|
40
|
+
import { changeModelCanvasOpacity as A } from "../../shared-utils/changeModelCanvasOpacity.js";
|
|
41
|
+
import { FIVE_CAMERA_DEFAULT_FOV as H, FloorplanErrorType as c, SHOW_ANIME_DURATION as W } from "../utils/constant.js";
|
|
42
42
|
import "../../shared-utils/isTruelyObject.js";
|
|
43
43
|
import "../../vendor/svelte/internal/index.js";
|
|
44
44
|
import "../../vendor/svelte/transition/index.js";
|
|
@@ -70,9 +70,9 @@ 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
73
|
import "hammerjs";
|
|
75
|
-
import "@
|
|
74
|
+
import "@realsee/five";
|
|
75
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
76
76
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
77
77
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
78
78
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -87,60 +87,85 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
87
87
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
88
88
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
89
89
|
import "../../shared-utils/isAbsoluteURL.js";
|
|
90
|
-
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
91
|
-
import "../../shared-utils/animationFrame/index.js";
|
|
92
90
|
import "../../shared-utils/nearlyEqual.js";
|
|
93
91
|
import "../../shared-utils/five/changeMode.js";
|
|
94
|
-
function
|
|
92
|
+
function R(h) {
|
|
95
93
|
const { latitude: s, longitude: t } = h, e = Math.abs(s - Math.PI / 2) > 5 * Math.PI / 180, i = t > 5 * (Math.PI / 180) && t < 355 * (Math.PI / 180);
|
|
96
94
|
return e || i;
|
|
97
95
|
}
|
|
98
|
-
function
|
|
96
|
+
function N(h) {
|
|
99
97
|
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
98
|
return e && i;
|
|
101
99
|
}
|
|
102
|
-
class
|
|
100
|
+
class Qt extends k {
|
|
103
101
|
constructor(t, e) {
|
|
104
102
|
var a;
|
|
105
103
|
super(t);
|
|
104
|
+
// =============== public properties =================
|
|
106
105
|
o(this, "name", "modelFloorplanPlugin");
|
|
107
106
|
o(this, "state");
|
|
107
|
+
// =============== private properties =================
|
|
108
108
|
o(this, "data");
|
|
109
|
+
/** 展示户型图时,需要正确的状态 */
|
|
109
110
|
o(this, "showState");
|
|
111
|
+
/** show 动画的公共 Promise */
|
|
110
112
|
o(this, "showPromise");
|
|
111
113
|
o(this, "app");
|
|
112
114
|
o(this, "panoIndex", 0);
|
|
113
115
|
o(this, "floorIndex", 0);
|
|
114
116
|
o(this, "selector");
|
|
117
|
+
/** 公共 Promise 的 reject 方法 */
|
|
115
118
|
o(this, "showRejection");
|
|
119
|
+
/** 户型图父容器 */
|
|
116
120
|
o(this, "wrapper");
|
|
121
|
+
/** 户型图主容器 */
|
|
117
122
|
o(this, "container", document.createElement("div"));
|
|
123
|
+
/** 展示户型图图前,Five 的 Panorama Longitude */
|
|
118
124
|
o(this, "lastPanoramaLongitude", 0);
|
|
125
|
+
/** 户型图大小 */
|
|
119
126
|
o(this, "size", { width: 0, height: 0 });
|
|
127
|
+
/** 是否已经执行过事件监听 */
|
|
120
128
|
o(this, "hasAddedEventListener", !1);
|
|
129
|
+
/** 上一次隐藏是否是用户调用了 hide 导致的 */
|
|
121
130
|
o(this, "isHiddenByHideFunc", !1);
|
|
131
|
+
/** 高亮区域 */
|
|
122
132
|
o(this, "highlightData", {});
|
|
133
|
+
/** 销毁插件 */
|
|
123
134
|
o(this, "dispose", () => {
|
|
124
135
|
var t, e;
|
|
125
136
|
this.removeEventListener(), (t = this.app) == null || t.$destroy(), this.app = void 0, (e = this.container) == null || e.remove(), this.data = void 0, this.wrapper = void 0, this.selector = void 0, this.hooks.emit("dispose");
|
|
126
137
|
});
|
|
138
|
+
/** 展示户型图
|
|
139
|
+
* 1. show 函数大部分情况下需要耗时
|
|
140
|
+
* 2. 如果当前已经在展示中,将不会触发任何事件
|
|
141
|
+
* 3. 如果展示过程被中断,将抛出错误
|
|
142
|
+
* 4. 多次调用 show 方法,只会触发一次 showAnimationEnded 事件,但是展示结果会取决于最后一次调用参数
|
|
143
|
+
* 5. 如果多次调用 show 方法,参数与上次参数不一致时,上次 show Promise 会被 reject
|
|
144
|
+
* @param opts.floorIndex 楼层
|
|
145
|
+
* @param opts.modelOpacity 模型透明度
|
|
146
|
+
* @param opts.immediately 是否立即展示
|
|
147
|
+
* @param opts.isAutoShow 是否是自动展示
|
|
148
|
+
* @param opts.userAction 是否是用户行为
|
|
149
|
+
*/
|
|
127
150
|
o(this, "show", (...e) => f(this, [...e], function* (t = {}) {
|
|
128
151
|
if (!this.state.enabled || !this.showPromise && this.state.visible)
|
|
129
152
|
return;
|
|
130
153
|
const i = t.userAction !== void 0 ? t.userAction : !0;
|
|
131
154
|
this.updateState({ visible: !0 }, i), this._show(t);
|
|
132
155
|
}));
|
|
156
|
+
/** 隐藏户型图 */
|
|
133
157
|
o(this, "hide", (...e) => f(this, [...e], function* (t = {}) {
|
|
134
|
-
|
|
158
|
+
this.state.enabled && (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, t.userAction || !0), this._hide(t)));
|
|
135
159
|
}));
|
|
160
|
+
/** 更新户型图大小 */
|
|
136
161
|
o(this, "updateSize", () => {
|
|
137
162
|
if (!this.data || !T(this.five, this.showState) || !this.container || !this.wrapper)
|
|
138
163
|
return;
|
|
139
|
-
const { min: t, max: e } = this.data.bounding, i = e.x - t.x, r = e.y - t.y, d = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, a =
|
|
140
|
-
this.size.width === n && this.size.height ===
|
|
164
|
+
const { min: t, max: e } = this.data.bounding, i = e.x - t.x, r = e.y - t.y, d = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, a = O(this.five, this.wrapper, this.floorIndex, d), n = Math.ceil(i * a), l = Math.ceil(r * a);
|
|
165
|
+
this.size.width === n && this.size.height === l || (this.container.style.width = n + "px", this.container.style.height = l + "px", this.size = { width: n, height: l });
|
|
141
166
|
});
|
|
142
167
|
o(this, "highlight", (t) => {
|
|
143
|
-
|
|
168
|
+
this.state.config.highlightEnable && (this.highlightData = t, this.render());
|
|
144
169
|
});
|
|
145
170
|
o(this, "unhighlight", () => {
|
|
146
171
|
this.highlightData = {}, this.render();
|
|
@@ -169,20 +194,20 @@ class Yt extends k {
|
|
|
169
194
|
immediately: !1,
|
|
170
195
|
isAutoShow: !1,
|
|
171
196
|
userAction: !0
|
|
172
|
-
}, i =
|
|
197
|
+
}, i = u(u({}, e), t), r = () => f(this, null, function* () {
|
|
173
198
|
this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
|
|
174
199
|
let a = !1, n;
|
|
175
|
-
this.showRejection = (
|
|
176
|
-
a = !0, n =
|
|
200
|
+
this.showRejection = (S) => {
|
|
201
|
+
a = !0, n = S;
|
|
177
202
|
};
|
|
178
|
-
const [
|
|
179
|
-
if (
|
|
180
|
-
throw
|
|
203
|
+
const [l] = yield M(G(this.five, this.showState, i.userAction));
|
|
204
|
+
if (l)
|
|
205
|
+
throw l;
|
|
181
206
|
if (a)
|
|
182
207
|
throw n ? new Error(n) : new Error(c.UnknownError);
|
|
183
208
|
this.updateSize(), this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
|
|
184
|
-
const p = i.modelOpacity, g = i.immediately ? 0 :
|
|
185
|
-
|
|
209
|
+
const p = i.modelOpacity, g = i.immediately ? 0 : W;
|
|
210
|
+
A(this.five, p, g), this.render(g);
|
|
186
211
|
});
|
|
187
212
|
return this.showPromise = r().then(() => {
|
|
188
213
|
this.hooks.emit("showAnimationEnded", {
|
|
@@ -199,11 +224,11 @@ class Yt extends k {
|
|
|
199
224
|
o(this, "_hide", (t) => {
|
|
200
225
|
var r;
|
|
201
226
|
(r = this.showRejection) == null || r.call(this, c.BreakOffByHide), this.showPromise = void 0;
|
|
202
|
-
const i =
|
|
227
|
+
const i = u(u({}, {
|
|
203
228
|
userAction: !0,
|
|
204
229
|
isAutoHide: !1
|
|
205
230
|
}), t);
|
|
206
|
-
|
|
231
|
+
A(this.five, 1, 0), this.hooks.emit("hide", { auto: i.isAutoHide, userAction: i.userAction }), this.render();
|
|
207
232
|
});
|
|
208
233
|
o(this, "handleClick", () => {
|
|
209
234
|
if (!this.state.visible)
|
|
@@ -211,45 +236,55 @@ class Yt extends k {
|
|
|
211
236
|
if (this.hooks.emit("click"))
|
|
212
237
|
return !1;
|
|
213
238
|
});
|
|
239
|
+
/** modelLoaded 之后自动执行 append container 操作 */
|
|
214
240
|
o(this, "onFiveModelLoaded", () => {
|
|
215
241
|
if (this.state.enabled === !1 || this.wrapper || !this.selector)
|
|
216
242
|
return;
|
|
217
243
|
const t = this.selector instanceof Element ? this.selector : document.querySelector(this.selector);
|
|
218
244
|
if (!t)
|
|
219
|
-
throw new Error("
|
|
245
|
+
throw new Error("不正确的父容器选择器");
|
|
220
246
|
this.wrapper = t, t.append(this.container);
|
|
221
247
|
});
|
|
248
|
+
/** 更改模型时,自动隐藏户型图 */
|
|
222
249
|
o(this, "onFiveModeChange", (t) => {
|
|
223
250
|
t !== this.showState.mode && (this.updateState({ visible: !1 }, !1), this._hide({ userAction: !1 }));
|
|
224
251
|
});
|
|
252
|
+
/** 惯性结束后,判断能否自动展示户型图 */
|
|
225
253
|
o(this, "onFiveInteriaPan", (t, e) => {
|
|
226
254
|
if (!e || this.state.config.autoShowEnable === !1 || this.isHiddenByHideFunc)
|
|
227
255
|
return;
|
|
228
256
|
const i = this.five.getCurrentState();
|
|
229
|
-
i.mode === "Floorplan" && (this.state.visible ||
|
|
257
|
+
i.mode === "Floorplan" && (this.state.visible || N(i) && (this.updateState({ visible: !0 }, !0), this._show({ isAutoShow: !0 })));
|
|
230
258
|
});
|
|
259
|
+
/** panoIndex 改变时,更新 floorIndex */
|
|
231
260
|
o(this, "onFivePanoArrived", (t) => {
|
|
232
261
|
var e;
|
|
233
|
-
|
|
262
|
+
(e = this.five) != null && e.work && (this.panoIndex = t, this.floorIndex = this.five.work.observers[t].floorIndex);
|
|
234
263
|
});
|
|
264
|
+
/** cameraUpdate 时判断户型图是否应该自动隐藏 */
|
|
235
265
|
o(this, "onFiveCameraUpdate", (t, e) => {
|
|
236
266
|
if (!this.state.visible || this.showPromise)
|
|
237
267
|
return;
|
|
238
268
|
const i = this.five.getCurrentState();
|
|
239
|
-
|
|
269
|
+
R(i) && (this.updateState({ visible: !1 }, e), this._hide({ userAction: e, isAutoHide: !0 }));
|
|
240
270
|
});
|
|
271
|
+
/** 在户型图展示时阻止多指操作, 阻止鼠标放大 */
|
|
241
272
|
o(this, "onFiveWantsGesture", (t, e) => {
|
|
242
|
-
if (
|
|
273
|
+
if (this.state.visible && (e.length > 1 || t === "mouseWheel"))
|
|
243
274
|
return !1;
|
|
244
275
|
});
|
|
276
|
+
/** 户型图展示中,转动三维模型,结束时应该自动修复模型状态 */
|
|
245
277
|
o(this, "onFiveWantsPanGesture", (t, e) => {
|
|
246
278
|
if (this.five.getCurrentState().mode === "Floorplan" && this.state.config.autoShowEnable !== !1 && e && this.state.visible)
|
|
247
279
|
return this.five.updateCamera(this.showState, 0), !1;
|
|
248
280
|
});
|
|
281
|
+
/** 阻止点击分间走点 */
|
|
249
282
|
o(this, "onFiveWantsTapGesture", () => this.handleClick());
|
|
283
|
+
/** 从 Panorama 切换到其他模态时,记录当前的相机水平视角 */
|
|
250
284
|
o(this, "onFiveWantsChangeMode", (t, e) => {
|
|
251
285
|
e === "Panorama" && t === "Floorplan" && (this.lastPanoramaLongitude = this.five.getCurrentState().longitude);
|
|
252
286
|
});
|
|
287
|
+
/** 模型楼层高亮改变时,自动进行楼层切换 */
|
|
253
288
|
o(this, "onModelShownFloorChange", (t) => {
|
|
254
289
|
if (this.floorIndex !== t) {
|
|
255
290
|
if (t === null) {
|
|
@@ -260,14 +295,14 @@ class Yt extends k {
|
|
|
260
295
|
this.floorIndex = t, this.updateSize(), this.render();
|
|
261
296
|
}
|
|
262
297
|
});
|
|
263
|
-
e != null && e.selector && (this.selector = e.selector, console.warn("
|
|
298
|
+
e != null && e.selector && (this.selector = e.selector, console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法")), this.showState = {
|
|
264
299
|
mode: "Floorplan",
|
|
265
300
|
longitude: 0,
|
|
266
301
|
latitude: Math.PI / 2,
|
|
267
|
-
fov:
|
|
302
|
+
fov: H / ((a = e == null ? void 0 : e.scale) != null ? a : 1)
|
|
268
303
|
};
|
|
269
304
|
const i = {
|
|
270
|
-
northDesc: "
|
|
305
|
+
northDesc: "北",
|
|
271
306
|
modelOpacity: 1,
|
|
272
307
|
cameraEnable: !0,
|
|
273
308
|
highlightEnable: !1,
|
|
@@ -279,12 +314,12 @@ class Yt extends k {
|
|
|
279
314
|
roomAreaEnable: !0,
|
|
280
315
|
roomNameEnable: !0,
|
|
281
316
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
282
|
-
cameraImageUrl:
|
|
283
|
-
attachedTo:
|
|
317
|
+
cameraImageUrl: _,
|
|
318
|
+
attachedTo: D.BOUNDING_CENTER,
|
|
284
319
|
getLabelElement: void 0,
|
|
285
|
-
getRoomAreaText: (n) => (n / 1e6).toFixed(1) + "
|
|
320
|
+
getRoomAreaText: (n) => (n / 1e6).toFixed(1) + "㎡",
|
|
286
321
|
getRuleDistanceText: (n) => n.toString()
|
|
287
|
-
}, r = e ?
|
|
322
|
+
}, r = e ? L(e, ["selector", "scale"]) : {}, d = u(u({}, i), r);
|
|
288
323
|
this.state = {
|
|
289
324
|
enabled: !0,
|
|
290
325
|
visible: !1,
|
|
@@ -297,27 +332,31 @@ class Yt extends k {
|
|
|
297
332
|
return Object.prototype.hasOwnProperty.apply(p, ["version"]);
|
|
298
333
|
}
|
|
299
334
|
const d = t;
|
|
300
|
-
d && !d.version && console.warn("
|
|
301
|
-
const a = JSON.parse(JSON.stringify(t)), n = r(a) ? a.data : a,
|
|
302
|
-
this.data = yield b(n), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data,
|
|
335
|
+
d && !d.version && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
|
|
336
|
+
const a = JSON.parse(JSON.stringify(t)), n = r(a) ? a.data : a, l = this.data;
|
|
337
|
+
this.data = yield b(n), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, l), e && this.updateState(e, i), this.render();
|
|
303
338
|
});
|
|
304
339
|
}
|
|
340
|
+
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
305
341
|
appendTo(t) {
|
|
306
342
|
if (this.wrapper = t, !!this.state.enabled)
|
|
307
343
|
return t.appendChild(this.container), this.render(), this;
|
|
308
344
|
}
|
|
345
|
+
/** 启用插件 */
|
|
309
346
|
enable(t = {}) {
|
|
310
347
|
if (this.state.enabled)
|
|
311
348
|
return;
|
|
312
349
|
const e = t.userAction !== void 0 ? t.userAction : !0;
|
|
313
350
|
this.updateState({ enabled: !0 }, t.userAction || e), this._enable({ userAction: e });
|
|
314
351
|
}
|
|
352
|
+
/** 禁用插件 */
|
|
315
353
|
disable(t = {}) {
|
|
316
354
|
if (!this.state.enabled)
|
|
317
355
|
return;
|
|
318
356
|
const e = t.userAction !== void 0 ? t.userAction : !0;
|
|
319
357
|
this.updateState({ enabled: !1 }, t.userAction || e), this._disable({ userAction: e });
|
|
320
358
|
}
|
|
359
|
+
/** 更改插件 State */
|
|
321
360
|
setState(t, e = {}) {
|
|
322
361
|
const i = this.state, r = e.userAction !== void 0 ? e.userAction : !0;
|
|
323
362
|
if (this.updateState(t, r), t.enabled !== void 0 && i.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: r }) : this._disable({ userAction: r })), t.visible !== void 0 && i.visible !== t.visible) {
|
|
@@ -335,9 +374,13 @@ class Yt extends k {
|
|
|
335
374
|
});
|
|
336
375
|
}
|
|
337
376
|
updateState(t, e) {
|
|
338
|
-
const i = this.state, r = t.config ?
|
|
339
|
-
this.state = v(
|
|
377
|
+
const i = this.state, r = t.config ? u(u({}, i.config), t.config) : i.config;
|
|
378
|
+
this.state = v(u(u({}, this.state), t), { config: r }), !x(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
|
|
340
379
|
}
|
|
380
|
+
/** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
|
|
381
|
+
*
|
|
382
|
+
* - TODO: 等 selector 功能下掉之后删除这个逻辑
|
|
383
|
+
*/
|
|
341
384
|
initContainer() {
|
|
342
385
|
this.container.classList.add("floorplan-plugin"), Object.assign(this.container.style, {
|
|
343
386
|
position: "absolute",
|
|
@@ -361,7 +404,7 @@ class Yt extends k {
|
|
|
361
404
|
render(t) {
|
|
362
405
|
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
|
|
363
406
|
return;
|
|
364
|
-
const e = v(
|
|
407
|
+
const e = v(u({}, this.state.config), {
|
|
365
408
|
visible: this.state.visible,
|
|
366
409
|
duration: t != null ? t : 0,
|
|
367
410
|
panoIndex: this.panoIndex,
|
|
@@ -376,5 +419,5 @@ class Yt extends k {
|
|
|
376
419
|
}
|
|
377
420
|
}
|
|
378
421
|
export {
|
|
379
|
-
|
|
422
|
+
Qt as Controller
|
|
380
423
|
};
|
|
@@ -39,9 +39,9 @@ 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
42
|
import "hammerjs";
|
|
44
|
-
import "@
|
|
43
|
+
import "@realsee/five";
|
|
44
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
45
45
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
46
46
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
47
47
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -56,15 +56,13 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
56
56
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
57
57
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
58
58
|
import "../../shared-utils/isAbsoluteURL.js";
|
|
59
|
-
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
60
|
-
import "../../shared-utils/animationFrame/index.js";
|
|
61
59
|
import "../utils/correctFiveState.js";
|
|
62
60
|
import "../utils/constant.js";
|
|
63
61
|
import "../../shared-utils/nearlyEqual.js";
|
|
64
62
|
import "../../shared-utils/five/changeMode.js";
|
|
65
63
|
import "../../shared-utils/changeModelCanvasOpacity.js";
|
|
66
|
-
const
|
|
64
|
+
const so = (o, r) => new t(o, r);
|
|
67
65
|
export {
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
so as ModelFloorplanPlugin,
|
|
67
|
+
so as default
|
|
70
68
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
1
|
+
import { SvelteComponent as D, init as w, safe_not_equal as k, append_styles as T, element as g, attr as p, set_style as l, insert as W, append as x, noop as I, detach as P, onMount as S } from "../../../vendor/svelte/internal/index.js";
|
|
2
2
|
import { CAMERA_IMAGE as b } from "../../Assets/camera.js";
|
|
3
3
|
import { throttle as E } from "../../../shared-utils/throttle.js";
|
|
4
4
|
function F(n) {
|
|
@@ -8,13 +8,39 @@ function R(n) {
|
|
|
8
8
|
let a, t, o;
|
|
9
9
|
return {
|
|
10
10
|
c() {
|
|
11
|
-
a =
|
|
11
|
+
a = g("div"), t = g("div"), o = g("div"), p(o, "class", "plugin-radar__camera-rotate svelte-1nqrlxd"), l(o, "background-image", "url(" + /*cameraImageUrl*/
|
|
12
|
+
(n[0] || b) + ")"), l(
|
|
13
|
+
o,
|
|
14
|
+
"transform",
|
|
15
|
+
/*rotateTransform*/
|
|
16
|
+
n[1]
|
|
17
|
+
), p(t, "class", "plugin-radar__camera-position svelte-1nqrlxd"), l(
|
|
18
|
+
t,
|
|
19
|
+
"transform",
|
|
20
|
+
/*positionTransform*/
|
|
21
|
+
n[2]
|
|
22
|
+
), p(a, "class", "plugin-radar__camera-wrapper svelte-1nqrlxd");
|
|
12
23
|
},
|
|
13
24
|
m(i, r) {
|
|
14
25
|
W(i, a, r), x(a, t), x(t, o);
|
|
15
26
|
},
|
|
16
27
|
p(i, [r]) {
|
|
17
|
-
r &
|
|
28
|
+
r & /*cameraImageUrl*/
|
|
29
|
+
1 && l(o, "background-image", "url(" + /*cameraImageUrl*/
|
|
30
|
+
(i[0] || b) + ")"), (r & /*cameraImageUrl*/
|
|
31
|
+
1 || r & /*rotateTransform, cameraImageUrl*/
|
|
32
|
+
3) && l(
|
|
33
|
+
o,
|
|
34
|
+
"transform",
|
|
35
|
+
/*rotateTransform*/
|
|
36
|
+
i[1]
|
|
37
|
+
), r & /*positionTransform*/
|
|
38
|
+
4 && l(
|
|
39
|
+
t,
|
|
40
|
+
"transform",
|
|
41
|
+
/*positionTransform*/
|
|
42
|
+
i[2]
|
|
43
|
+
);
|
|
18
44
|
},
|
|
19
45
|
i: I,
|
|
20
46
|
o: I,
|
|
@@ -27,31 +53,33 @@ function z(n) {
|
|
|
27
53
|
return `rotate(${Math.floor(n / Math.PI * 180) * -1 + 45}deg)`;
|
|
28
54
|
}
|
|
29
55
|
function G(n, a, t) {
|
|
30
|
-
let o, i, { five: r } = a, { pxmm: m } = a, { floorplanData: f } = a, { cameraImageUrl:
|
|
56
|
+
let o, i, { five: r } = a, { pxmm: m } = a, { floorplanData: f } = a, { cameraImageUrl: _ } = a, c = r.getCurrentState().panoIndex, d = r.getCurrentState().longitude;
|
|
31
57
|
function q(e, C) {
|
|
32
58
|
const s = e.bounding, u = e.observers[C];
|
|
33
59
|
if (!u)
|
|
34
60
|
return "";
|
|
35
|
-
const M = (s.max.x - s.min.x) * m, U = (s.max.y - s.min.y) * m,
|
|
36
|
-
return `translate(${
|
|
61
|
+
const M = (s.max.x - s.min.x) * m, U = (s.max.y - s.min.y) * m, y = Math.floor(u.positionInImage.x * M), A = Math.floor(u.positionInImage.y * U);
|
|
62
|
+
return `translate(${y}px, ${A}px)`;
|
|
37
63
|
}
|
|
38
|
-
function
|
|
64
|
+
function h(e) {
|
|
39
65
|
t(6, c = e);
|
|
40
66
|
}
|
|
41
|
-
const
|
|
67
|
+
const v = E(
|
|
42
68
|
(e) => {
|
|
43
69
|
t(7, d = e.longitude);
|
|
44
70
|
},
|
|
45
71
|
1e3 / 60
|
|
46
72
|
);
|
|
47
|
-
return S(() => (r.on("panoWillArrive",
|
|
48
|
-
r.off("panoWillArrive",
|
|
73
|
+
return S(() => (r.on("panoWillArrive", h), r.on("cameraDirectionUpdate", v), function() {
|
|
74
|
+
r.off("panoWillArrive", h), r.off("cameraDirectionUpdate", v);
|
|
49
75
|
})), n.$$set = (e) => {
|
|
50
|
-
"five" in e && t(3, r = e.five), "pxmm" in e && t(4, m = e.pxmm), "floorplanData" in e && t(5, f = e.floorplanData), "cameraImageUrl" in e && t(0,
|
|
76
|
+
"five" in e && t(3, r = e.five), "pxmm" in e && t(4, m = e.pxmm), "floorplanData" in e && t(5, f = e.floorplanData), "cameraImageUrl" in e && t(0, _ = e.cameraImageUrl);
|
|
51
77
|
}, n.$$.update = () => {
|
|
52
|
-
n.$$.dirty &
|
|
78
|
+
n.$$.dirty & /*floorplanData, panoIndex*/
|
|
79
|
+
96 && t(2, o = q(f, c)), n.$$.dirty & /*longitude*/
|
|
80
|
+
128 && t(1, i = z(d));
|
|
53
81
|
}, [
|
|
54
|
-
|
|
82
|
+
_,
|
|
55
83
|
i,
|
|
56
84
|
o,
|
|
57
85
|
r,
|
|
@@ -61,9 +89,9 @@ function G(n, a, t) {
|
|
|
61
89
|
d
|
|
62
90
|
];
|
|
63
91
|
}
|
|
64
|
-
class B extends
|
|
92
|
+
class B extends D {
|
|
65
93
|
constructor(a) {
|
|
66
|
-
super(),
|
|
94
|
+
super(), w(
|
|
67
95
|
this,
|
|
68
96
|
a,
|
|
69
97
|
G,
|
|
@@ -10,12 +10,30 @@ function k(l) {
|
|
|
10
10
|
let o, r;
|
|
11
11
|
const f = [
|
|
12
12
|
{
|
|
13
|
-
five:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
five: (
|
|
14
|
+
/*five*/
|
|
15
|
+
l[0]
|
|
16
|
+
),
|
|
17
|
+
pxmm: (
|
|
18
|
+
/*pxmm*/
|
|
19
|
+
l[1]
|
|
20
|
+
),
|
|
21
|
+
floorIndex: (
|
|
22
|
+
/*floorIndex*/
|
|
23
|
+
l[2]
|
|
24
|
+
),
|
|
25
|
+
floorplanData: (
|
|
26
|
+
/*floorplanData*/
|
|
27
|
+
l[4]
|
|
28
|
+
),
|
|
29
|
+
onRoomHeightClick: (
|
|
30
|
+
/*onRoomHeightClick*/
|
|
31
|
+
l[7]
|
|
32
|
+
),
|
|
33
|
+
highlightData: (
|
|
34
|
+
/*highlightData*/
|
|
35
|
+
l[5]
|
|
36
|
+
)
|
|
19
37
|
}
|
|
20
38
|
];
|
|
21
39
|
let g = {};
|
|
@@ -29,14 +47,33 @@ function k(l) {
|
|
|
29
47
|
p(o, t, m), r = !0;
|
|
30
48
|
},
|
|
31
49
|
p(t, m) {
|
|
32
|
-
const h = m &
|
|
50
|
+
const h = m & /*five, pxmm, floorIndex, floorplanData, onRoomHeightClick, highlightData*/
|
|
51
|
+
183 ? x(f, [
|
|
33
52
|
{
|
|
34
|
-
five:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
53
|
+
five: (
|
|
54
|
+
/*five*/
|
|
55
|
+
t[0]
|
|
56
|
+
),
|
|
57
|
+
pxmm: (
|
|
58
|
+
/*pxmm*/
|
|
59
|
+
t[1]
|
|
60
|
+
),
|
|
61
|
+
floorIndex: (
|
|
62
|
+
/*floorIndex*/
|
|
63
|
+
t[2]
|
|
64
|
+
),
|
|
65
|
+
floorplanData: (
|
|
66
|
+
/*floorplanData*/
|
|
67
|
+
t[4]
|
|
68
|
+
),
|
|
69
|
+
onRoomHeightClick: (
|
|
70
|
+
/*onRoomHeightClick*/
|
|
71
|
+
t[7]
|
|
72
|
+
),
|
|
73
|
+
highlightData: (
|
|
74
|
+
/*highlightData*/
|
|
75
|
+
t[5]
|
|
76
|
+
)
|
|
40
77
|
}
|
|
41
78
|
]) : {};
|
|
42
79
|
o.$set(h);
|
|
@@ -56,8 +93,14 @@ function N(l) {
|
|
|
56
93
|
let o, r, f, g, t, m;
|
|
57
94
|
const h = [
|
|
58
95
|
{
|
|
59
|
-
floorIndex:
|
|
60
|
-
|
|
96
|
+
floorIndex: (
|
|
97
|
+
/*floorIndex*/
|
|
98
|
+
l[2]
|
|
99
|
+
),
|
|
100
|
+
floorplanData: (
|
|
101
|
+
/*floorplanData*/
|
|
102
|
+
l[4]
|
|
103
|
+
)
|
|
61
104
|
}
|
|
62
105
|
];
|
|
63
106
|
let s = {};
|
|
@@ -65,10 +108,16 @@ function N(l) {
|
|
|
65
108
|
s = v(s, h[e]);
|
|
66
109
|
o = new q({ props: s }), f = new F({
|
|
67
110
|
props: {
|
|
68
|
-
extraObjects:
|
|
111
|
+
extraObjects: (
|
|
112
|
+
/*currentFloorExtraObjects*/
|
|
113
|
+
l[6]
|
|
114
|
+
)
|
|
69
115
|
}
|
|
70
116
|
});
|
|
71
|
-
let n =
|
|
117
|
+
let n = (
|
|
118
|
+
/*hoverEnable*/
|
|
119
|
+
l[3] && k(l)
|
|
120
|
+
);
|
|
72
121
|
return {
|
|
73
122
|
c() {
|
|
74
123
|
D(o.$$.fragment), r = j(), D(f.$$.fragment), g = j(), n && n.c(), t = H();
|
|
@@ -77,15 +126,26 @@ function N(l) {
|
|
|
77
126
|
p(o, e, a), b(e, r, a), p(f, e, a), b(e, g, a), n && n.m(e, a), b(e, t, a), m = !0;
|
|
78
127
|
},
|
|
79
128
|
p(e, [a]) {
|
|
80
|
-
const i = a &
|
|
129
|
+
const i = a & /*floorIndex, floorplanData*/
|
|
130
|
+
20 ? x(h, [
|
|
81
131
|
{
|
|
82
|
-
floorIndex:
|
|
83
|
-
|
|
132
|
+
floorIndex: (
|
|
133
|
+
/*floorIndex*/
|
|
134
|
+
e[2]
|
|
135
|
+
),
|
|
136
|
+
floorplanData: (
|
|
137
|
+
/*floorplanData*/
|
|
138
|
+
e[4]
|
|
139
|
+
)
|
|
84
140
|
}
|
|
85
141
|
]) : {};
|
|
86
142
|
o.$set(i);
|
|
87
143
|
const I = {};
|
|
88
|
-
a &
|
|
144
|
+
a & /*currentFloorExtraObjects*/
|
|
145
|
+
64 && (I.extraObjects = /*currentFloorExtraObjects*/
|
|
146
|
+
e[6]), f.$set(I), /*hoverEnable*/
|
|
147
|
+
e[3] ? n ? (n.p(e, a), a & /*hoverEnable*/
|
|
148
|
+
8 && u(n, 1)) : (n = k(e), n.c(), u(n, 1), n.m(t.parentNode, t)) : n && (w(), _(n, 1, 1, () => {
|
|
89
149
|
n = null;
|
|
90
150
|
}), R());
|
|
91
151
|
},
|
|
@@ -106,7 +166,8 @@ function S(l, o, r) {
|
|
|
106
166
|
return l.$$set = (i) => {
|
|
107
167
|
"five" in i && r(0, g = i.five), "pxmm" in i && r(1, t = i.pxmm), "floorIndex" in i && r(2, m = i.floorIndex), "hoverEnable" in i && r(3, h = i.hoverEnable), "floorplanData" in i && r(4, s = i.floorplanData), "extraObjects" in i && r(8, n = i.extraObjects), "highlightData" in i && r(5, e = i.highlightData);
|
|
108
168
|
}, l.$$.update = () => {
|
|
109
|
-
l.$$.dirty &
|
|
169
|
+
l.$$.dirty & /*extraObjects, floorIndex*/
|
|
170
|
+
260 && r(6, f = n == null ? void 0 : n.filter((i) => i.floorIndex === m));
|
|
110
171
|
}, [
|
|
111
172
|
g,
|
|
112
173
|
t,
|