@realsee/dnalogel 2.25.0 → 2.26.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/CruisePlugin/typing.d.ts +1 -1
- package/dist/GuideLinePlugin/typing.d.ts +1 -1
- package/dist/PanoCompassPlugin/typings.d.ts +1 -1
- package/dist/PipelinePlugin/Controller.d.ts +108 -0
- package/dist/PipelinePlugin/index.d.ts +6 -0
- package/dist/PipelinePlugin/typing/PluginData.d.ts +20 -0
- package/dist/PipelinePlugin/typing/ServerData.d.ts +28 -0
- package/dist/PipelinePlugin/typing/index.d.ts +79 -0
- package/dist/PipelinePlugin/utils/Objects/FlowPipe.d.ts +34 -0
- package/dist/PipelinePlugin/utils/Objects/Pipe.d.ts +49 -0
- package/dist/PipelinePlugin/utils/formatData.d.ts +12 -0
- package/dist/base/BasePluginWithData.d.ts +3 -15
- package/dist/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +1 -1
- package/dist/floorplan/typings/index.d.ts +1 -1
- package/dist/index.cjs.js +100 -65
- package/dist/index.d.ts +1 -0
- package/dist/index.js +9269 -8673
- package/dist/index.umd.js +93 -58
- package/dist/shared-utils/three/Extras/Core/Interpolations.d.ts +11 -0
- package/dist/shared-utils/three/Extras/Curves/BezierCurve3.d.ts +13 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +33 -30
- package/docs/classes/CruisePluginController.html +28 -25
- package/docs/classes/GuideLineItem.GuideLineItem.html +22 -19
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +37 -34
- package/docs/classes/Magnifier.html +22 -19
- package/docs/classes/ModelRoomLabelController.html +13 -10
- package/docs/classes/Object3DHelperController.html +27 -24
- package/docs/classes/PaintBrush.html +17 -14
- package/docs/classes/PanoMeasurePluginLine.html +29 -26
- package/docs/classes/PanoMeasurePluginModel.html +29 -26
- package/docs/classes/PanoMeasurePluginPoint.html +16 -13
- package/docs/classes/PanoMeasurePluginPolyline.html +29 -26
- package/docs/classes/PanoTagPluginController.html +49 -46
- package/docs/classes/Util.BetterTween.html +11 -8
- package/docs/classes/Util.Interval.html +14 -11
- package/docs/classes/Util.Magnifier.html +22 -19
- package/docs/classes/Util.PointDomHelper.html +13 -10
- package/docs/classes/Util.PointHelper.html +13 -10
- package/docs/classes/Util.PointSelectorHelper.html +18 -15
- package/docs/classes/Util.Rectangle.html +15 -12
- package/docs/enums/CameraMovementEffect.html +9 -6
- package/docs/enums/ContentType.html +22 -19
- package/docs/enums/DIRECTION.html +11 -8
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +11 -8
- package/docs/enums/DimensionType.html +9 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -7
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +11 -8
- package/docs/enums/PaintBrushTypeEnum.html +10 -7
- package/docs/enums/PointType.html +9 -6
- package/docs/enums/Rotation.html +10 -7
- package/docs/functions/CSS3DRenderPlugin.html +6 -3
- package/docs/functions/CameraMovementPlugin.html +6 -3
- package/docs/functions/CruisePlugin.html +6 -3
- package/docs/functions/GuideLinePlugin.html +7 -4
- package/docs/functions/ItemLabelPlugin.html +6 -3
- package/docs/functions/MapviewFloorplanPlugin.html +6 -3
- package/docs/functions/ModelChassisCompassPlugin.html +6 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -3
- package/docs/functions/ModelFloorplanPlugin.html +6 -3
- package/docs/functions/ModelItemLabelPlugin.html +6 -3
- package/docs/functions/ModelRoomLabelPlugin.html +6 -3
- package/docs/functions/ModelTVVideoPlugin.html +6 -3
- package/docs/functions/ModelViewPlugin.html +6 -3
- package/docs/functions/Object3DHelperPlugin.html +6 -3
- package/docs/functions/PanoCompassPlugin.html +6 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +6 -3
- package/docs/functions/PanoDoorLabelPlugin.html +6 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +6 -3
- package/docs/functions/PanoMeasurePlugin.html +6 -3
- package/docs/functions/PanoRulerPlugin.html +6 -3
- package/docs/functions/PanoRulerProPlugin.html +6 -3
- package/docs/functions/PanoSpatialTagPlugin.html +6 -3
- package/docs/functions/PanoTagPlugin.html +6 -3
- package/docs/functions/PanoVideoPlugin.html +6 -3
- package/docs/functions/PipelinePlugin.html +280 -0
- package/docs/functions/TopviewFloorplanPlugin.html +6 -3
- package/docs/functions/Util.absoluteUrl.html +7 -4
- package/docs/functions/Util.getCoordsFromClient.html +7 -4
- package/docs/functions/Util.getCoordsFromElement.html +7 -4
- package/docs/functions/Util.getFrameTime.html +7 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +7 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +7 -4
- package/docs/functions/Util.isAbsoluteURL.html +7 -4
- package/docs/functions/Util.isModelLike.html +7 -4
- package/docs/functions/Util.isNil.html +7 -4
- package/docs/functions/Util.isPanoramaLike.html +7 -4
- package/docs/functions/Util.nextFrame.html +7 -4
- package/docs/functions/Util.notNil.html +7 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +7 -4
- package/docs/functions/Util.tweenProgress.html +7 -4
- package/docs/functions/Util.uuid.html +7 -4
- package/docs/functions/pluginFlag.html +7 -4
- package/docs/index.html +7 -4
- package/docs/interfaces/AddTagConfig.html +8 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +13 -10
- package/docs/interfaces/CSS3DRenderPluginState.html +10 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +9 -6
- package/docs/interfaces/CruisePluginTypes.Config.html +10 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +14 -11
- package/docs/interfaces/CruisePluginTypes.EventMap.html +22 -19
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +14 -11
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +16 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +16 -13
- package/docs/interfaces/CruisePluginTypes.PluginData.html +11 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +10 -21
- package/docs/interfaces/CruisePluginTypes.PluginState.html +13 -10
- package/docs/interfaces/EventMap.html +17 -14
- package/docs/interfaces/FloorplanBounding.html +10 -7
- package/docs/interfaces/FloorplanData.html +12 -9
- package/docs/interfaces/FloorplanEntrance.html +13 -10
- package/docs/interfaces/FloorplanExtraObject.html +12 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +10 -7
- package/docs/interfaces/FloorplanFloorData.html +11 -8
- package/docs/interfaces/FloorplanImagePosition.html +9 -6
- package/docs/interfaces/FloorplanObserver.html +11 -8
- package/docs/interfaces/FloorplanOutlineItem.html +11 -8
- package/docs/interfaces/FloorplanPosition.html +9 -6
- package/docs/interfaces/FloorplanRoomItem.html +15 -12
- package/docs/interfaces/FloorplanRoomLabelItem.html +9 -6
- package/docs/interfaces/FloorplanServerBounding.html +10 -7
- package/docs/interfaces/FloorplanServerComputedData.html +12 -9
- package/docs/interfaces/FloorplanServerData.html +9 -6
- package/docs/interfaces/FloorplanServerDoorItem.html +12 -9
- package/docs/interfaces/FloorplanServerDoorPosition.html +10 -7
- package/docs/interfaces/FloorplanServerEntrance.html +13 -10
- package/docs/interfaces/FloorplanServerFloorData.html +11 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +9 -6
- package/docs/interfaces/FloorplanServerObserver.html +11 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +11 -8
- package/docs/interfaces/FloorplanServerPosition.html +9 -6
- package/docs/interfaces/FloorplanServerRoomItem.html +16 -13
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +9 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +10 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +12 -9
- package/docs/interfaces/GuideLinePluginType.EventMap.html +15 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +10 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +8 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +15 -12
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +10 -7
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +20 -17
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +9 -6
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +20 -17
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +7 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +10 -21
- package/docs/interfaces/GuideLinePluginType.PluginState.html +10 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +13 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +11 -8
- package/docs/interfaces/HelperOffset.html +10 -7
- package/docs/interfaces/ImagePlaneGroup.html +8 -5
- package/docs/interfaces/ItemLabelPluginData.html +8 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +13 -10
- package/docs/interfaces/ItemLabelPluginParametersType.html +11 -8
- package/docs/interfaces/MinMax.html +9 -6
- package/docs/interfaces/ModelChassisCompassPluginData.html +9 -6
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -7
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +9 -6
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -7
- package/docs/interfaces/ModelItemLabelPluginData.html +8 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +13 -10
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +9 -6
- package/docs/interfaces/ModelRoomLabelPluginData.html +8 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +11 -8
- package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -7
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +8 -5
- package/docs/interfaces/ModelViewPluginExportType.html +13 -10
- package/docs/interfaces/Object3DHelperState.html +10 -7
- package/docs/interfaces/ObjectHelperControllers.html +11 -8
- package/docs/interfaces/PaintBrushAction.html +14 -11
- package/docs/interfaces/PaintBrushConfigs.html +14 -11
- package/docs/interfaces/PaintBrushState.html +12 -9
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +12 -9
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -4
- package/docs/interfaces/PanoMeasureParameterType.html +18 -15
- package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -7
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +9 -6
- package/docs/interfaces/PanoMeasurePluginPointJson.html +9 -6
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +12 -9
- package/docs/interfaces/PanoRulerPluginOptions.html +9 -6
- package/docs/interfaces/PanoRulerPluginParameterType.html +10 -7
- package/docs/interfaces/PanoRulerProPluginExportType.html +11 -8
- package/docs/interfaces/PanoRulerProPluginOptions.html +9 -6
- package/docs/interfaces/PanoRulerProPluginParameterType.html +9 -6
- package/docs/interfaces/PanoRulerProPluginState.html +10 -7
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +13 -10
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +12 -9
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +15 -12
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +12 -9
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +15 -12
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +13 -10
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +12 -9
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +8 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -7
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +8 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +11 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +8 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -7
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +12 -9
- package/docs/interfaces/Point.html +10 -7
- package/docs/interfaces/Room.html +11 -8
- package/docs/interfaces/RoomInfo.html +9 -6
- package/docs/interfaces/RoomLabel.html +16 -13
- package/docs/interfaces/RoomRules.html +7 -4
- package/docs/interfaces/Rooms.html +7 -4
- package/docs/interfaces/Scissor.html +11 -8
- package/docs/interfaces/State.html +10 -7
- package/docs/interfaces/TagCacheInterface.html +14 -11
- package/docs/interfaces/TagConfig.html +15 -12
- package/docs/interfaces/TagGLTFObjectGroup.html +8 -5
- package/docs/interfaces/TagIconUrl.html +14 -11
- package/docs/interfaces/TagObjectGroup.html +8 -5
- package/docs/interfaces/TagStyle.html +8 -5
- package/docs/interfaces/Tags.html +11 -8
- package/docs/interfaces/TemporaryState.html +8 -5
- package/docs/interfaces/Util.MagnifierParameter.html +13 -10
- package/docs/interfaces/Util.MouseGroupParameter.html +10 -7
- package/docs/interfaces/Util.PointIntersection.html +10 -7
- package/docs/modules/CruisePluginTypes.html +7 -4
- package/docs/modules/GuideLineItem.html +7 -4
- package/docs/modules/GuideLineModeItem.html +7 -4
- package/docs/modules/GuideLinePluginType.html +7 -4
- package/docs/modules/PanoVideoPluginType.html +7 -4
- package/docs/modules/Util.html +7 -4
- package/docs/modules.html +10 -4
- package/docs/types/ArrayPosition.html +7 -4
- package/docs/types/AudioAppearance.html +7 -4
- package/docs/types/AudioTagTypeConfigKey.html +7 -4
- package/docs/types/CSS3DRenderExportType.html +7 -4
- package/docs/types/CSS3DRenderPluginExportType.html +7 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +7 -4
- package/docs/types/ClassFunctionParameters.html +7 -4
- package/docs/types/Color.html +7 -4
- package/docs/types/ContentTypeConfigKey.html +7 -4
- package/docs/types/ContentTypeConfigKeySplit.html +7 -4
- package/docs/types/ContentTypeMap.html +7 -4
- package/docs/types/Create3DDomContainerReturnType.html +7 -4
- package/docs/types/Create3DElementReturnType.html +7 -4
- package/docs/types/CruisePluginExportType.html +7 -4
- package/docs/types/CruisePluginTypes.CruiseData.html +7 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +7 -4
- package/docs/types/DeprecatedMediaPlaneProperty.html +7 -4
- package/docs/types/DeprecatedTagProperty.html +7 -4
- package/docs/types/Direction-1.html +7 -4
- package/docs/types/Direction4.html +7 -4
- package/docs/types/ElementRenderer.html +7 -4
- package/docs/types/FloorplanRuleLabels.html +7 -4
- package/docs/types/FloorplanServerRuleLabels.html +7 -4
- package/docs/types/GuideLinePluginExportType.html +7 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +7 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +7 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +7 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +7 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +7 -4
- package/docs/types/GuideLinePluginType.PathItem.html +7 -4
- package/docs/types/GuideLinePluginType.PluginData.html +7 -4
- package/docs/types/HelperEventMap.html +7 -4
- package/docs/types/LoadTagConfig.html +7 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +7 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +7 -4
- package/docs/types/MediaData.html +7 -4
- package/docs/types/MediaStore.html +7 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +7 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +7 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +7 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +7 -4
- package/docs/types/MoveArgs.html +7 -4
- package/docs/types/MoveOpts.html +7 -4
- package/docs/types/Object3DHelperEventMap.html +7 -4
- package/docs/types/ObjectFit.html +7 -4
- package/docs/types/PaintBrushEventMap.html +7 -4
- package/docs/types/PanoCompassPluginData.html +7 -4
- package/docs/types/PanoCompassPluginExportType.html +7 -4
- package/docs/types/PanoCompassPluginParameterType.html +7 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -4
- package/docs/types/PanoIndex.html +7 -4
- package/docs/types/PanoMeasurePluginEvent.html +7 -4
- package/docs/types/PanoMeasureReturnType.html +7 -4
- package/docs/types/PanoSpatialTagPluginId.html +7 -4
- package/docs/types/PanoTagPluginExportInterface.html +7 -4
- package/docs/types/PanoTagPluginParamsInterface.html +7 -4
- package/docs/types/PanoVideoPluginParameterType.html +7 -4
- package/docs/types/PanoVideoPluginReturnType.html +7 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +7 -4
- package/docs/types/PipelinePluginParameterType.html +271 -0
- package/docs/types/PipelinePluginReturnType.html +271 -0
- package/docs/types/PlaneTag.html +7 -4
- package/docs/types/Point2DTag.html +7 -4
- package/docs/types/Point3DTag.html +7 -4
- package/docs/types/PointTag.html +7 -4
- package/docs/types/PointTagInstance.html +7 -4
- package/docs/types/Position.html +7 -4
- package/docs/types/RotateArgs.html +7 -4
- package/docs/types/RotateOpts.html +7 -4
- package/docs/types/RuleLabelsKey.html +7 -4
- package/docs/types/RuleLabelsValue.html +7 -4
- package/docs/types/StickType.html +7 -4
- package/docs/types/Tag.html +7 -4
- package/docs/types/Tag2D.html +7 -4
- package/docs/types/Tag3D.html +7 -4
- package/docs/types/TagContentType.html +7 -4
- package/docs/types/TagDimensionType.html +7 -4
- package/docs/types/TagElement.html +7 -4
- package/docs/types/TagEvents.html +7 -4
- package/docs/types/TagGLTFObject.html +7 -4
- package/docs/types/TagHooks.html +7 -4
- package/docs/types/TagId.html +7 -4
- package/docs/types/TagInstance.html +7 -4
- package/docs/types/TagPointType.html +7 -4
- package/docs/types/TagRendererMap.html +7 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +7 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +7 -4
- package/docs/types/WorkCode.html +7 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +7 -4
- package/docs/variables/PLUGIN.html +7 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -4
- package/docs/variables/ROOM_TYPE_MAP.html +7 -4
- package/docs/variables/itemLabelPluginServerParams.html +7 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +7 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +7 -4
- package/libs/CruisePlugin/typing.d.ts +1 -1
- package/libs/GuideLinePlugin/typing.d.ts +1 -1
- package/libs/PanoCompassPlugin/typings.d.ts +1 -1
- package/libs/PipelinePlugin/Controller.d.ts +108 -0
- package/libs/PipelinePlugin/Controller.js +344 -0
- package/libs/PipelinePlugin/index.d.ts +6 -0
- package/libs/PipelinePlugin/index.js +39 -0
- package/libs/PipelinePlugin/typing/PluginData/index.js +6 -0
- package/libs/PipelinePlugin/typing/PluginData.d.ts +20 -0
- package/libs/PipelinePlugin/typing/PluginData.js +1 -0
- package/libs/PipelinePlugin/typing/ServerData/index.js +6 -0
- package/libs/PipelinePlugin/typing/ServerData.d.ts +28 -0
- package/libs/PipelinePlugin/typing/ServerData.js +1 -0
- package/libs/PipelinePlugin/typing/index.d.ts +79 -0
- package/libs/PipelinePlugin/typing/index.js +6 -0
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.d.ts +34 -0
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +106 -0
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.d.ts +11 -0
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +52 -0
- package/libs/PipelinePlugin/utils/Objects/Pipe.d.ts +49 -0
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +179 -0
- package/libs/PipelinePlugin/utils/formatData.d.ts +12 -0
- package/libs/PipelinePlugin/utils/formatData.js +46 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/base/BasePluginWithData.d.ts +3 -15
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +87 -88
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +75 -76
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +1 -1
- package/libs/floorplan/typings/index.d.ts +1 -1
- package/libs/index.d.ts +1 -0
- package/libs/index.js +117 -108
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/Extras/Core/Interpolations.d.ts +11 -0
- package/libs/shared-utils/three/Extras/Core/Interpolations.js +28 -0
- package/libs/shared-utils/three/Extras/Core/Interpolations2.js +34 -0
- package/libs/shared-utils/three/Extras/Curves/BezierCurve3.d.ts +13 -0
- package/libs/shared-utils/three/Extras/Curves/BezierCurve3.js +30 -0
- package/package.json +1 -1
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var S = Object.defineProperty, A = Object.defineProperties;
|
|
2
|
+
var P = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var w = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var m = (
|
|
4
|
+
var E = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var m = (d, n, t) => n in d ? S(d, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[n] = t, c = (d, n) => {
|
|
6
6
|
for (var t in n || (n = {}))
|
|
7
|
-
|
|
7
|
+
E.call(n, t) && m(d, t, n[t]);
|
|
8
8
|
if (w)
|
|
9
9
|
for (var t of w(n))
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
}, v = (
|
|
13
|
-
var o = (
|
|
14
|
-
var u = (
|
|
15
|
-
var
|
|
10
|
+
C.call(n, t) && m(d, t, n[t]);
|
|
11
|
+
return d;
|
|
12
|
+
}, v = (d, n) => A(d, P(n));
|
|
13
|
+
var o = (d, n, t) => (m(d, typeof n != "symbol" ? n + "" : n, t), t);
|
|
14
|
+
var u = (d, n, t) => new Promise((e, i) => {
|
|
15
|
+
var r = (a) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
s(t.next(a));
|
|
18
18
|
} catch (l) {
|
|
19
19
|
i(l);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, h = (a) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
s(t.throw(a));
|
|
24
24
|
} catch (l) {
|
|
25
25
|
i(l);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, s = (a) => a.done ? e(a.value) : Promise.resolve(a.value).then(r, h);
|
|
28
|
+
s((t = t.apply(d, n)).next());
|
|
29
29
|
});
|
|
30
|
-
import * as
|
|
31
|
-
import { to as
|
|
32
|
-
import { equal as
|
|
33
|
-
import { Main as
|
|
34
|
-
import { formatData as
|
|
35
|
-
import { CAMERA_IMAGE as
|
|
36
|
-
import { omit as
|
|
37
|
-
import { FLOOR_PLAN_ATTACHED_TO as
|
|
38
|
-
import { Controller as
|
|
39
|
-
import { getPxmm as
|
|
40
|
-
import { checkShowState as
|
|
41
|
-
import { changeModelCanvasOpacity as
|
|
42
|
-
import { FloorplanErrorType as f, SHOW_ANIME_DURATION as
|
|
30
|
+
import * as I from "three";
|
|
31
|
+
import { to as y } from "../../shared-utils/to.js";
|
|
32
|
+
import { equal as F } from "../../shared-utils/equal.js";
|
|
33
|
+
import { Main as x } from "../Components/Main.js";
|
|
34
|
+
import { formatData as g } from "../utils/formatData.js";
|
|
35
|
+
import { CAMERA_IMAGE as M } from "../Assets/camera.js";
|
|
36
|
+
import { omit as _ } from "../../shared-utils/filter.js";
|
|
37
|
+
import { FLOOR_PLAN_ATTACHED_TO as L } from "../constant.js";
|
|
38
|
+
import { Controller as O } from "../../base/BasePluginWithData.js";
|
|
39
|
+
import { getPxmm as D, getAttachedY as T } from "../../shared-utils/getPxmm.js";
|
|
40
|
+
import { checkShowState as k, correctFiveState as H } from "../utils/correctFiveState.js";
|
|
41
|
+
import { changeModelCanvasOpacity as b } from "../../shared-utils/changeModelCanvasOpacity.js";
|
|
42
|
+
import { FloorplanErrorType as f, SHOW_ANIME_DURATION as R } 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";
|
|
@@ -89,15 +89,15 @@ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
|
89
89
|
import "../../shared-utils/absoluteUrl.js";
|
|
90
90
|
import "../../shared-utils/nearlyEqual.js";
|
|
91
91
|
import "../../shared-utils/five/changeMode.js";
|
|
92
|
-
function
|
|
93
|
-
const { latitude: n, longitude: t } =
|
|
92
|
+
function G(d) {
|
|
93
|
+
const { latitude: n, longitude: t } = d, e = Math.abs(n - Math.PI / 2) > 5 * Math.PI / 180, i = t > 5 * (Math.PI / 180) && t < 355 * (Math.PI / 180);
|
|
94
94
|
return e || i;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
const { latitude: n, longitude: t } =
|
|
96
|
+
function W(d) {
|
|
97
|
+
const { latitude: n, longitude: t } = d, e = Math.abs(n - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
|
|
98
98
|
return e && i;
|
|
99
99
|
}
|
|
100
|
-
class
|
|
100
|
+
class Jt extends O {
|
|
101
101
|
constructor(t, e) {
|
|
102
102
|
super(t);
|
|
103
103
|
// =============== public properties =================
|
|
@@ -158,10 +158,10 @@ class Kt extends T {
|
|
|
158
158
|
}));
|
|
159
159
|
/** 更新户型图大小 */
|
|
160
160
|
o(this, "updateSize", () => {
|
|
161
|
-
if (!this.data || !
|
|
161
|
+
if (!this.data || !k(this.five, this.showState) || !this.container || !this.wrapper)
|
|
162
162
|
return;
|
|
163
|
-
const { min: t, max: e } = this.data.bounding, i = e.x - t.x,
|
|
164
|
-
this.size.width ===
|
|
163
|
+
const { min: t, max: e } = this.data.bounding, i = e.x - t.x, r = e.y - t.y, h = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, s = D(this.five, this.wrapper, this.floorIndex, h), a = Math.ceil(i * s), l = Math.ceil(r * s);
|
|
164
|
+
this.size.width === a && this.size.height === l || (this.container.style.width = a + "px", this.container.style.height = l + "px", this.size = { width: a, height: l });
|
|
165
165
|
});
|
|
166
166
|
o(this, "highlight", (t) => {
|
|
167
167
|
this.state.config.highlightEnable && (this.highlightData = t, this.render());
|
|
@@ -170,64 +170,63 @@ class Kt extends T {
|
|
|
170
170
|
this.highlightData = {}, this.render();
|
|
171
171
|
});
|
|
172
172
|
o(this, "_disable", (t) => {
|
|
173
|
-
var i,
|
|
173
|
+
var i, r, h;
|
|
174
174
|
const { userAction: e } = t;
|
|
175
|
-
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, f.BreakOffByDisable), this.showPromise = void 0, (
|
|
175
|
+
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, f.BreakOffByDisable), this.showPromise = void 0, (r = this.app) == null || r.$destroy(), this.app = void 0, (h = this.container) == null || h.remove(), this.removeEventListener();
|
|
176
176
|
});
|
|
177
177
|
o(this, "_enable", (t) => {
|
|
178
178
|
const { userAction: e } = t;
|
|
179
179
|
this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: e }), this.state.visible && this._show({ userAction: e }));
|
|
180
180
|
});
|
|
181
181
|
o(this, "_show", (t) => u(this, null, function* () {
|
|
182
|
-
var
|
|
182
|
+
var h;
|
|
183
183
|
if (!this.state.enabled)
|
|
184
184
|
return;
|
|
185
|
-
if (!((
|
|
185
|
+
if (!((h = this.five.model) != null && h.loaded))
|
|
186
186
|
throw new Error(f.ModelNotLoaded);
|
|
187
187
|
if (!this.data)
|
|
188
188
|
throw new Error(f.DataNotLoaded);
|
|
189
|
-
this.
|
|
189
|
+
if (this.showPromise)
|
|
190
|
+
return this.showPromise;
|
|
190
191
|
const e = {
|
|
191
192
|
floorIndex: this.floorIndex,
|
|
192
193
|
modelOpacity: this.state.config.modelOpacity,
|
|
193
194
|
immediately: !1,
|
|
194
195
|
isAutoShow: !1,
|
|
195
196
|
userAction: !0
|
|
196
|
-
}, i = c(c({}, e), t),
|
|
197
|
+
}, i = c(c({}, e), t), r = () => u(this, null, function* () {
|
|
197
198
|
this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
|
|
198
|
-
let
|
|
199
|
-
this.showRejection = (
|
|
200
|
-
|
|
199
|
+
let s = !1, a;
|
|
200
|
+
this.showRejection = (p) => {
|
|
201
|
+
s = !0, a = p;
|
|
201
202
|
};
|
|
202
|
-
const [l] = yield
|
|
203
|
+
const [l] = yield y(H(this.five, this.showState, i.userAction));
|
|
203
204
|
if (l)
|
|
204
205
|
throw l;
|
|
205
|
-
if (
|
|
206
|
-
throw
|
|
206
|
+
if (s)
|
|
207
|
+
throw a ? new Error(a) : new Error(f.UnknownError);
|
|
207
208
|
this.updateSize(), this.updatePosition(), this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
|
|
208
|
-
const p = i.modelOpacity, g = i.immediately ? 0 : W;
|
|
209
|
-
S(this.five, p, g), this.render(g);
|
|
210
209
|
});
|
|
211
|
-
return this.showPromise =
|
|
212
|
-
this.
|
|
210
|
+
return this.isHiddenByHideFunc = !1, this.showPromise = r().then(() => {
|
|
211
|
+
this.showPromise = void 0, this.showRejection = void 0;
|
|
212
|
+
const s = i.modelOpacity, a = i.immediately ? 0 : R;
|
|
213
|
+
b(this.five, s, a), this.render(a), this.hooks.emit("showAnimationEnded", {
|
|
213
214
|
auto: i.isAutoShow,
|
|
214
215
|
userAction: i.userAction
|
|
215
216
|
});
|
|
216
|
-
}).catch((
|
|
217
|
-
if (this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow &&
|
|
218
|
-
throw
|
|
219
|
-
}).finally(() => {
|
|
220
|
-
this.showPromise = void 0, this.showRejection = void 0;
|
|
217
|
+
}).catch((s) => {
|
|
218
|
+
if (this.showPromise = void 0, this.showRejection = void 0, this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow && s instanceof Error)
|
|
219
|
+
throw s;
|
|
221
220
|
}), this.showPromise;
|
|
222
221
|
}));
|
|
223
222
|
o(this, "_hide", (t) => {
|
|
224
|
-
var
|
|
225
|
-
(
|
|
223
|
+
var r;
|
|
224
|
+
(r = this.showRejection) == null || r.call(this, f.BreakOffByHide), this.showPromise = void 0;
|
|
226
225
|
const i = c(c({}, {
|
|
227
226
|
userAction: !0,
|
|
228
227
|
isAutoHide: !1
|
|
229
228
|
}), t);
|
|
230
|
-
|
|
229
|
+
b(this.five, 1, 0), this.hooks.emit("hide", { auto: i.isAutoHide, userAction: i.userAction }), this.render();
|
|
231
230
|
});
|
|
232
231
|
o(this, "handleClick", () => {
|
|
233
232
|
if (!this.state.visible)
|
|
@@ -253,7 +252,7 @@ class Kt extends T {
|
|
|
253
252
|
if (!e || this.state.visible || this.state.config.autoShowEnable === !1 || this.isHiddenByHideFunc)
|
|
254
253
|
return;
|
|
255
254
|
const i = this.five.getCurrentState();
|
|
256
|
-
i.mode === this.showState.mode &&
|
|
255
|
+
i.mode === this.showState.mode && W(i) && (this.updateState({ visible: !0 }, !0), this._show({ isAutoShow: !0 }));
|
|
257
256
|
});
|
|
258
257
|
/** panoIndex 改变时,更新 floorIndex */
|
|
259
258
|
o(this, "onFivePanoArrived", (t) => {
|
|
@@ -265,7 +264,7 @@ class Kt extends T {
|
|
|
265
264
|
if (!this.state.visible || this.showPromise)
|
|
266
265
|
return;
|
|
267
266
|
const i = this.five.getCurrentState();
|
|
268
|
-
this.updatePosition(), this.updateSize(),
|
|
267
|
+
this.updatePosition(), this.updateSize(), G(i) && (this.updateState({ visible: !1 }, e), this._hide({ userAction: e }));
|
|
269
268
|
});
|
|
270
269
|
/** 户型图展示中,转动三维模型,结束时应该自动修复模型状态 */
|
|
271
270
|
o(this, "onFiveWantsPanGesture", (t, e) => {
|
|
@@ -307,28 +306,28 @@ class Kt extends T {
|
|
|
307
306
|
roomLabelsEnable: !0,
|
|
308
307
|
roomAreaEnable: !0,
|
|
309
308
|
roomNameEnable: !0,
|
|
310
|
-
cameraImageUrl:
|
|
311
|
-
attachedTo:
|
|
309
|
+
cameraImageUrl: M,
|
|
310
|
+
attachedTo: L.BOUNDING_CENTER,
|
|
312
311
|
getLabelElement: void 0,
|
|
313
312
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
314
|
-
getRoomAreaText: (
|
|
315
|
-
getRuleDistanceText: (
|
|
316
|
-
},
|
|
313
|
+
getRoomAreaText: (s) => (s / 1e6).toFixed(1) + "㎡",
|
|
314
|
+
getRuleDistanceText: (s) => s.toString()
|
|
315
|
+
}, r = e ? _(e, ["selector", "scale"]) : {}, h = c(c({}, i), r);
|
|
317
316
|
this.state = {
|
|
318
317
|
enabled: !0,
|
|
319
318
|
visible: !1,
|
|
320
|
-
config:
|
|
319
|
+
config: h
|
|
321
320
|
}, this.initContainer(), t.model.loaded ? this.onFiveModelLoaded() : t.once("modelLoaded", this.onFiveModelLoaded), t.once("dispose", this.dispose), this.addEventListener();
|
|
322
321
|
}
|
|
323
322
|
load(t, e, i = !0) {
|
|
324
323
|
return u(this, null, function* () {
|
|
325
|
-
function
|
|
324
|
+
function r(p) {
|
|
326
325
|
return Object.prototype.hasOwnProperty.apply(p, ["version"]);
|
|
327
326
|
}
|
|
328
|
-
const
|
|
329
|
-
|
|
330
|
-
const
|
|
331
|
-
this.data = yield
|
|
327
|
+
const h = t;
|
|
328
|
+
h && !h.version && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
|
|
329
|
+
const s = JSON.parse(JSON.stringify(t)), a = r(s) ? s.data : s, l = this.data;
|
|
330
|
+
this.data = yield g(a), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, l), e && this.updateState(e, i), this.render();
|
|
332
331
|
});
|
|
333
332
|
}
|
|
334
333
|
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
@@ -352,10 +351,10 @@ class Kt extends T {
|
|
|
352
351
|
}
|
|
353
352
|
/** 更改插件 State */
|
|
354
353
|
setState(t, e = {}) {
|
|
355
|
-
const i = this.state,
|
|
356
|
-
if (this.updateState(t,
|
|
357
|
-
const
|
|
358
|
-
t.visible ? this._show(
|
|
354
|
+
const i = this.state, r = e.userAction !== void 0 ? e.userAction : !0;
|
|
355
|
+
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) {
|
|
356
|
+
const h = { userAction: r };
|
|
357
|
+
t.visible ? this._show(h) : this._hide(h);
|
|
359
358
|
}
|
|
360
359
|
}
|
|
361
360
|
changeConfigs(t, e = !0) {
|
|
@@ -363,21 +362,21 @@ class Kt extends T {
|
|
|
363
362
|
}
|
|
364
363
|
/** 更新户型图位置 */
|
|
365
364
|
updatePosition() {
|
|
366
|
-
var
|
|
367
|
-
const t =
|
|
365
|
+
var s;
|
|
366
|
+
const t = T(this.five, this.floorIndex, this.state.config.attachedTo), e = (s = this.five.model) == null ? void 0 : s.bounding.getCenter(new I.Vector3()).setY(t);
|
|
368
367
|
if (!e)
|
|
369
368
|
return;
|
|
370
|
-
const i = e.clone().project(this.five.camera),
|
|
371
|
-
this.container.style.left =
|
|
369
|
+
const i = e.clone().project(this.five.camera), r = (i.x + 1) / 2, h = -(i.y - 1) / 2;
|
|
370
|
+
this.container.style.left = r * 100 + "%", this.container.style.top = h * 100 + "%";
|
|
372
371
|
}
|
|
373
372
|
formatData(t) {
|
|
374
373
|
return u(this, null, function* () {
|
|
375
|
-
return yield
|
|
374
|
+
return yield g(t.data);
|
|
376
375
|
});
|
|
377
376
|
}
|
|
378
377
|
updateState(t, e) {
|
|
379
|
-
const i = this.state,
|
|
380
|
-
this.state = v(c(c({}, this.state), t), { config:
|
|
378
|
+
const i = this.state, r = t.config ? c(c({}, i.config), t.config) : i.config;
|
|
379
|
+
this.state = v(c(c({}, this.state), t), { config: r }), !F(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
|
|
381
380
|
}
|
|
382
381
|
/** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
|
|
383
382
|
*
|
|
@@ -404,7 +403,7 @@ class Kt extends T {
|
|
|
404
403
|
this.hasAddedEventListener = !1, t.off("modelLoaded", this.onFiveModelLoaded), t.off("modeChange", this.onFiveModeChange), t.off("panoArrived", this.onFivePanoArrived), t.off("cameraUpdate", this.onFiveCameraUpdate), t.off("wantsPanGesture", this.onFiveWantsPanGesture), t.off("wantsTapGesture", this.onFiveWantsTapGesture), t.off("wantsChangeMode", this.onFiveWantsChangeMode), t.off("modelShownFloorChange", this.onModelShownFloorChange);
|
|
405
404
|
}
|
|
406
405
|
render(t) {
|
|
407
|
-
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
|
|
406
|
+
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0 || this.showPromise)
|
|
408
407
|
return;
|
|
409
408
|
const e = v(c({}, this.state.config), {
|
|
410
409
|
visible: this.state.visible,
|
|
@@ -417,9 +416,9 @@ class Kt extends T {
|
|
|
417
416
|
});
|
|
418
417
|
if (this.app)
|
|
419
418
|
return this.app.$set(e);
|
|
420
|
-
this.app = new
|
|
419
|
+
this.app = new x({ target: this.container, intro: !0, props: e });
|
|
421
420
|
}
|
|
422
421
|
}
|
|
423
422
|
export {
|
|
424
|
-
|
|
423
|
+
Jt as Controller
|
|
425
424
|
};
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var A = Object.defineProperty, S = Object.defineProperties;
|
|
2
|
+
var F = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var w = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var m = (h,
|
|
6
|
-
for (var t in
|
|
7
|
-
|
|
4
|
+
var E = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var m = (h, r, t) => r in h ? A(h, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[r] = t, u = (h, r) => {
|
|
6
|
+
for (var t in r || (r = {}))
|
|
7
|
+
E.call(r, t) && m(h, t, r[t]);
|
|
8
8
|
if (w)
|
|
9
|
-
for (var t of w(
|
|
10
|
-
|
|
9
|
+
for (var t of w(r))
|
|
10
|
+
P.call(r, t) && m(h, t, r[t]);
|
|
11
11
|
return h;
|
|
12
|
-
}, v = (h,
|
|
13
|
-
var o = (h,
|
|
14
|
-
var f = (h,
|
|
15
|
-
var
|
|
12
|
+
}, v = (h, r) => S(h, F(r));
|
|
13
|
+
var o = (h, r, t) => (m(h, typeof r != "symbol" ? r + "" : r, t), t);
|
|
14
|
+
var f = (h, r, t) => new Promise((e, i) => {
|
|
15
|
+
var n = (s) => {
|
|
16
16
|
try {
|
|
17
|
-
a(t.next(
|
|
17
|
+
a(t.next(s));
|
|
18
18
|
} catch (l) {
|
|
19
19
|
i(l);
|
|
20
20
|
}
|
|
21
|
-
}, d = (
|
|
21
|
+
}, d = (s) => {
|
|
22
22
|
try {
|
|
23
|
-
a(t.throw(
|
|
23
|
+
a(t.throw(s));
|
|
24
24
|
} catch (l) {
|
|
25
25
|
i(l);
|
|
26
26
|
}
|
|
27
|
-
}, a = (
|
|
28
|
-
a((t = t.apply(h,
|
|
27
|
+
}, a = (s) => s.done ? e(s.value) : Promise.resolve(s.value).then(n, d);
|
|
28
|
+
a((t = t.apply(h, r)).next());
|
|
29
29
|
});
|
|
30
|
-
import { to as
|
|
31
|
-
import { equal as
|
|
32
|
-
import { Main as
|
|
33
|
-
import { formatData as
|
|
34
|
-
import { CAMERA_IMAGE as
|
|
35
|
-
import { omit as
|
|
36
|
-
import { getPxmm as
|
|
37
|
-
import { FLOOR_PLAN_ATTACHED_TO as
|
|
38
|
-
import { Controller as
|
|
39
|
-
import { checkShowState as
|
|
40
|
-
import { changeModelCanvasOpacity as
|
|
41
|
-
import { FIVE_CAMERA_DEFAULT_FOV as
|
|
30
|
+
import { to as C } from "../../shared-utils/to.js";
|
|
31
|
+
import { equal as I } from "../../shared-utils/equal.js";
|
|
32
|
+
import { Main as M } from "../Components/Main.js";
|
|
33
|
+
import { formatData as g } from "../utils/formatData.js";
|
|
34
|
+
import { CAMERA_IMAGE as x } from "../Assets/camera.js";
|
|
35
|
+
import { omit as y } from "../../shared-utils/filter.js";
|
|
36
|
+
import { getPxmm as _ } from "../../shared-utils/getPxmm.js";
|
|
37
|
+
import { FLOOR_PLAN_ATTACHED_TO as L } from "../constant.js";
|
|
38
|
+
import { Controller as O } from "../../base/BasePluginWithData.js";
|
|
39
|
+
import { checkShowState as D, correctFiveState as k } from "../utils/correctFiveState.js";
|
|
40
|
+
import { changeModelCanvasOpacity as b } from "../../shared-utils/changeModelCanvasOpacity.js";
|
|
41
|
+
import { FIVE_CAMERA_DEFAULT_FOV as T, FloorplanErrorType as c, SHOW_ANIME_DURATION as G } 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";
|
|
@@ -89,15 +89,15 @@ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
|
89
89
|
import "../../shared-utils/absoluteUrl.js";
|
|
90
90
|
import "../../shared-utils/nearlyEqual.js";
|
|
91
91
|
import "../../shared-utils/five/changeMode.js";
|
|
92
|
-
function
|
|
93
|
-
const { latitude:
|
|
92
|
+
function H(h) {
|
|
93
|
+
const { latitude: r, longitude: t } = h, e = Math.abs(r - Math.PI / 2) > 5 * Math.PI / 180, i = t > 5 * (Math.PI / 180) && t < 355 * (Math.PI / 180);
|
|
94
94
|
return e || i;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
const { latitude:
|
|
96
|
+
function W(h) {
|
|
97
|
+
const { latitude: r, longitude: t } = h, e = Math.abs(r - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
|
|
98
98
|
return e && i;
|
|
99
99
|
}
|
|
100
|
-
class
|
|
100
|
+
class Jt extends O {
|
|
101
101
|
constructor(t, e) {
|
|
102
102
|
var a;
|
|
103
103
|
super(t);
|
|
@@ -159,10 +159,10 @@ class Qt extends k {
|
|
|
159
159
|
}));
|
|
160
160
|
/** 更新户型图大小 */
|
|
161
161
|
o(this, "updateSize", () => {
|
|
162
|
-
if (!this.data || !
|
|
162
|
+
if (!this.data || !D(this.five, this.showState) || !this.container || !this.wrapper)
|
|
163
163
|
return;
|
|
164
|
-
const { min: t, max: e } = this.data.bounding, i = e.x - t.x,
|
|
165
|
-
this.size.width ===
|
|
164
|
+
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 = _(this.five, this.wrapper, this.floorIndex, d), s = Math.ceil(i * a), l = Math.ceil(n * a);
|
|
165
|
+
this.size.width === s && this.size.height === l || (this.container.style.width = s + "px", this.container.style.height = l + "px", this.size = { width: s, height: l });
|
|
166
166
|
});
|
|
167
167
|
o(this, "highlight", (t) => {
|
|
168
168
|
this.state.config.highlightEnable && (this.highlightData = t, this.render());
|
|
@@ -171,9 +171,9 @@ class Qt extends k {
|
|
|
171
171
|
this.highlightData = {}, this.render();
|
|
172
172
|
});
|
|
173
173
|
o(this, "_disable", (t) => {
|
|
174
|
-
var i,
|
|
174
|
+
var i, n, d;
|
|
175
175
|
const { userAction: e } = t;
|
|
176
|
-
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, c.BreakOffByDisable), this.showPromise = void 0, (
|
|
176
|
+
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();
|
|
177
177
|
});
|
|
178
178
|
o(this, "_enable", (t) => {
|
|
179
179
|
const { userAction: e } = t;
|
|
@@ -187,48 +187,47 @@ class Qt extends k {
|
|
|
187
187
|
throw new Error(c.ModelNotLoaded);
|
|
188
188
|
if (!this.data)
|
|
189
189
|
throw new Error(c.DataNotLoaded);
|
|
190
|
-
this.
|
|
190
|
+
if (this.showPromise)
|
|
191
|
+
return this.showPromise;
|
|
191
192
|
const e = {
|
|
192
193
|
floorIndex: this.floorIndex,
|
|
193
194
|
modelOpacity: this.state.config.modelOpacity,
|
|
194
195
|
immediately: !1,
|
|
195
196
|
isAutoShow: !1,
|
|
196
197
|
userAction: !0
|
|
197
|
-
}, i = u(u({}, e), t),
|
|
198
|
+
}, i = u(u({}, e), t), n = () => f(this, null, function* () {
|
|
198
199
|
this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
|
|
199
|
-
let a = !1,
|
|
200
|
-
this.showRejection = (
|
|
201
|
-
a = !0,
|
|
200
|
+
let a = !1, s;
|
|
201
|
+
this.showRejection = (p) => {
|
|
202
|
+
a = !0, s = p;
|
|
202
203
|
};
|
|
203
|
-
const [l] = yield
|
|
204
|
+
const [l] = yield C(k(this.five, this.showState, i.userAction));
|
|
204
205
|
if (l)
|
|
205
206
|
throw l;
|
|
206
207
|
if (a)
|
|
207
|
-
throw
|
|
208
|
+
throw s ? new Error(s) : new Error(c.UnknownError);
|
|
208
209
|
this.updateSize(), this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
|
|
209
|
-
const p = i.modelOpacity, g = i.immediately ? 0 : W;
|
|
210
|
-
A(this.five, p, g), this.render(g);
|
|
211
210
|
});
|
|
212
|
-
return this.showPromise =
|
|
213
|
-
this.
|
|
211
|
+
return this.isHiddenByHideFunc = !1, this.showPromise = n().then(() => {
|
|
212
|
+
this.showPromise = void 0, this.showRejection = void 0;
|
|
213
|
+
const a = i.modelOpacity, s = i.immediately ? 0 : G;
|
|
214
|
+
b(this.five, a, s), this.render(s), this.hooks.emit("showAnimationEnded", {
|
|
214
215
|
auto: i.isAutoShow,
|
|
215
216
|
userAction: i.userAction
|
|
216
217
|
});
|
|
217
218
|
}).catch((a) => {
|
|
218
|
-
if (this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow && a instanceof Error)
|
|
219
|
+
if (this.showPromise = void 0, this.showRejection = void 0, this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow && a instanceof Error)
|
|
219
220
|
throw a;
|
|
220
|
-
}).finally(() => {
|
|
221
|
-
this.showPromise = void 0, this.showRejection = void 0;
|
|
222
221
|
}), this.showPromise;
|
|
223
222
|
}));
|
|
224
223
|
o(this, "_hide", (t) => {
|
|
225
|
-
var
|
|
226
|
-
(
|
|
224
|
+
var n;
|
|
225
|
+
(n = this.showRejection) == null || n.call(this, c.BreakOffByHide), this.showPromise = void 0;
|
|
227
226
|
const i = u(u({}, {
|
|
228
227
|
userAction: !0,
|
|
229
228
|
isAutoHide: !1
|
|
230
229
|
}), t);
|
|
231
|
-
|
|
230
|
+
b(this.five, 1, 0), this.hooks.emit("hide", { auto: i.isAutoHide, userAction: i.userAction }), this.render();
|
|
232
231
|
});
|
|
233
232
|
o(this, "handleClick", () => {
|
|
234
233
|
if (!this.state.visible)
|
|
@@ -254,7 +253,7 @@ class Qt extends k {
|
|
|
254
253
|
if (!e || this.state.config.autoShowEnable === !1 || this.isHiddenByHideFunc)
|
|
255
254
|
return;
|
|
256
255
|
const i = this.five.getCurrentState();
|
|
257
|
-
i.mode === "Floorplan" && (this.state.visible ||
|
|
256
|
+
i.mode === "Floorplan" && (this.state.visible || W(i) && (this.updateState({ visible: !0 }, !0), this._show({ isAutoShow: !0 })));
|
|
258
257
|
});
|
|
259
258
|
/** panoIndex 改变时,更新 floorIndex */
|
|
260
259
|
o(this, "onFivePanoArrived", (t) => {
|
|
@@ -266,7 +265,7 @@ class Qt extends k {
|
|
|
266
265
|
if (!this.state.visible || this.showPromise)
|
|
267
266
|
return;
|
|
268
267
|
const i = this.five.getCurrentState();
|
|
269
|
-
|
|
268
|
+
H(i) && (this.updateState({ visible: !1 }, e), this._hide({ userAction: e, isAutoHide: !0 }));
|
|
270
269
|
});
|
|
271
270
|
/** 在户型图展示时阻止多指操作, 阻止鼠标放大 */
|
|
272
271
|
o(this, "onFiveWantsGesture", (t, e) => {
|
|
@@ -299,7 +298,7 @@ class Qt extends k {
|
|
|
299
298
|
mode: "Floorplan",
|
|
300
299
|
longitude: 0,
|
|
301
300
|
latitude: Math.PI / 2,
|
|
302
|
-
fov:
|
|
301
|
+
fov: T / ((a = e == null ? void 0 : e.scale) != null ? a : 1)
|
|
303
302
|
};
|
|
304
303
|
const i = {
|
|
305
304
|
northDesc: "北",
|
|
@@ -314,12 +313,12 @@ class Qt extends k {
|
|
|
314
313
|
roomAreaEnable: !0,
|
|
315
314
|
roomNameEnable: !0,
|
|
316
315
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
317
|
-
cameraImageUrl:
|
|
318
|
-
attachedTo:
|
|
316
|
+
cameraImageUrl: x,
|
|
317
|
+
attachedTo: L.BOUNDING_CENTER,
|
|
319
318
|
getLabelElement: void 0,
|
|
320
|
-
getRoomAreaText: (
|
|
321
|
-
getRuleDistanceText: (
|
|
322
|
-
},
|
|
319
|
+
getRoomAreaText: (s) => (s / 1e6).toFixed(1) + "㎡",
|
|
320
|
+
getRuleDistanceText: (s) => s.toString()
|
|
321
|
+
}, n = e ? y(e, ["selector", "scale"]) : {}, d = u(u({}, i), n);
|
|
323
322
|
this.state = {
|
|
324
323
|
enabled: !0,
|
|
325
324
|
visible: !1,
|
|
@@ -328,13 +327,13 @@ class Qt extends k {
|
|
|
328
327
|
}
|
|
329
328
|
load(t, e, i = !0) {
|
|
330
329
|
return f(this, null, function* () {
|
|
331
|
-
function
|
|
330
|
+
function n(p) {
|
|
332
331
|
return Object.prototype.hasOwnProperty.apply(p, ["version"]);
|
|
333
332
|
}
|
|
334
333
|
const d = t;
|
|
335
334
|
d && !d.version && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
|
|
336
|
-
const a = JSON.parse(JSON.stringify(t)),
|
|
337
|
-
this.data = yield
|
|
335
|
+
const a = JSON.parse(JSON.stringify(t)), s = n(a) ? a.data : a, l = this.data;
|
|
336
|
+
this.data = yield g(s), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, l), e && this.updateState(e, i), this.render();
|
|
338
337
|
});
|
|
339
338
|
}
|
|
340
339
|
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
@@ -358,9 +357,9 @@ class Qt extends k {
|
|
|
358
357
|
}
|
|
359
358
|
/** 更改插件 State */
|
|
360
359
|
setState(t, e = {}) {
|
|
361
|
-
const i = this.state,
|
|
362
|
-
if (this.updateState(t,
|
|
363
|
-
const d = { userAction:
|
|
360
|
+
const i = this.state, n = e.userAction !== void 0 ? e.userAction : !0;
|
|
361
|
+
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) {
|
|
362
|
+
const d = { userAction: n };
|
|
364
363
|
t.visible ? this._show(d) : this._hide(d);
|
|
365
364
|
}
|
|
366
365
|
this.render();
|
|
@@ -370,12 +369,12 @@ class Qt extends k {
|
|
|
370
369
|
}
|
|
371
370
|
formatData(t) {
|
|
372
371
|
return f(this, null, function* () {
|
|
373
|
-
return yield
|
|
372
|
+
return yield g(t.data);
|
|
374
373
|
});
|
|
375
374
|
}
|
|
376
375
|
updateState(t, e) {
|
|
377
|
-
const i = this.state,
|
|
378
|
-
this.state = v(u(u({}, this.state), t), { config:
|
|
376
|
+
const i = this.state, n = t.config ? u(u({}, i.config), t.config) : i.config;
|
|
377
|
+
this.state = v(u(u({}, this.state), t), { config: n }), !I(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
|
|
379
378
|
}
|
|
380
379
|
/** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
|
|
381
380
|
*
|
|
@@ -402,7 +401,7 @@ class Qt extends k {
|
|
|
402
401
|
this.hasAddedEventListener = !1, t.off("modelLoaded", this.onFiveModelLoaded), t.off("modeChange", this.onFiveModeChange), t.off("interiaPan", this.onFiveInteriaPan), t.off("panoArrived", this.onFivePanoArrived), t.off("cameraUpdate", this.onFiveCameraUpdate), t.off("wantsGesture", this.onFiveWantsGesture), t.off("wantsPanGesture", this.onFiveWantsPanGesture), t.off("wantsTapGesture", this.onFiveWantsTapGesture), t.off("wantsChangeMode", this.onFiveWantsChangeMode), t.off("modelShownFloorChange", this.onModelShownFloorChange);
|
|
403
402
|
}
|
|
404
403
|
render(t) {
|
|
405
|
-
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
|
|
404
|
+
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0 || this.showPromise)
|
|
406
405
|
return;
|
|
407
406
|
const e = v(u({}, this.state.config), {
|
|
408
407
|
visible: this.state.visible,
|
|
@@ -415,9 +414,9 @@ class Qt extends k {
|
|
|
415
414
|
});
|
|
416
415
|
if (this.app)
|
|
417
416
|
return this.app.$set(e);
|
|
418
|
-
this.app = new
|
|
417
|
+
this.app = new M({ target: this.container, intro: !0, props: e });
|
|
419
418
|
}
|
|
420
419
|
}
|
|
421
420
|
export {
|
|
422
|
-
|
|
421
|
+
Jt as Controller
|
|
423
422
|
};
|
|
@@ -60,7 +60,7 @@ export interface Parameters extends Partial<Config> {
|
|
|
60
60
|
selector?: string | Element;
|
|
61
61
|
scale?: number;
|
|
62
62
|
}
|
|
63
|
-
export interface PluginServerData
|
|
63
|
+
export interface PluginServerData {
|
|
64
64
|
version: number;
|
|
65
65
|
data: FloorplanServerData;
|
|
66
66
|
}
|