@realsee/dnalogel 2.27.3 → 2.27.4-1
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/AreaMakerPlugin/Controller.d.ts +94 -0
- package/dist/AreaMakerPlugin/index.d.ts +4 -0
- package/dist/AreaMakerPlugin/typing.d.ts +148 -0
- package/dist/AreaMakerPlugin/utils/Item.d.ts +114 -0
- package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -5
- package/dist/base/BasePluginWithData.d.ts +1 -1
- package/dist/components/AreaLabel/Assets/roomLabelBg.d.ts +1 -0
- package/dist/components/AreaLabel/LabelItem.svelte.d.ts +1 -0
- package/dist/floorplan/utils/correctFiveState.d.ts +2 -0
- package/dist/index.cjs.js +53 -53
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4972 -4311
- package/dist/index.umd.js +54 -54
- package/dist/shared-utils/index.d.ts +1 -0
- package/dist/shared-utils/math/planimetry.d.ts +1 -1
- package/dist/shared-utils/three/core/Object3D.d.ts +8 -0
- package/dist/shared-utils/three/index.d.ts +2 -0
- package/dist/shared-utils/three/objects/LineSegments.d.ts +9 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +120 -0
- package/docs/assets/main.js +58 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1367 -0
- package/docs/classes/AreaMakerPluginPluginType.AreaMakerController.html +711 -0
- package/docs/classes/AreaMakerPluginPluginType.AreaMakerItem.html +671 -0
- package/docs/classes/CSS3DRender.html +769 -0
- package/docs/classes/CruisePluginController.html +668 -0
- package/docs/classes/GuideLineItem.GuideLineItem.html +487 -0
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +788 -0
- package/docs/classes/Magnifier.html +476 -0
- package/docs/classes/ModelRoomLabelController.html +394 -0
- package/docs/classes/Object3DHelperController.html +636 -0
- package/docs/classes/PaintBrush.html +498 -0
- package/docs/classes/PanoMeasurePluginLine.html +518 -0
- package/docs/classes/PanoMeasurePluginModel.html +567 -0
- package/docs/classes/PanoMeasurePluginPoint.html +358 -0
- package/docs/classes/PanoMeasurePluginPolyline.html +563 -0
- package/docs/classes/PanoTagPluginController.html +1086 -0
- package/docs/classes/Util.BetterTween.html +411 -0
- package/docs/classes/Util.Interval.html +427 -0
- package/docs/classes/Util.LineSegments.html +379 -0
- package/docs/classes/Util.Magnifier.html +498 -0
- package/docs/classes/Util.Object3D.html +401 -0
- package/docs/classes/Util.PointDomHelper.html +402 -0
- package/docs/classes/Util.PointHelper.html +393 -0
- package/docs/classes/Util.PointSelectorHelper.html +449 -0
- package/docs/classes/Util.Rectangle.html +450 -0
- package/docs/enums/CameraMovementEffect.html +306 -0
- package/docs/enums/ContentType.html +442 -0
- package/docs/enums/DIRECTION.html +316 -0
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +316 -0
- package/docs/enums/DimensionType.html +306 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +309 -0
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +316 -0
- package/docs/enums/PaintBrushTypeEnum.html +309 -0
- package/docs/enums/PointType.html +306 -0
- package/docs/enums/Rotation.html +313 -0
- package/docs/functions/AreaMakerPluginPlugin.html +284 -0
- package/docs/functions/CSS3DRenderPlugin.html +284 -0
- package/docs/functions/CameraMovementPlugin.html +289 -0
- package/docs/functions/CruisePlugin.html +286 -0
- package/docs/functions/GuideLinePlugin.html +286 -0
- package/docs/functions/ItemLabelPlugin.html +286 -0
- package/docs/functions/MapviewFloorplanPlugin.html +286 -0
- package/docs/functions/ModelChassisCompassPlugin.html +289 -0
- package/docs/functions/ModelEntryDoorGuidePlugin.html +289 -0
- package/docs/functions/ModelFloorplanPlugin.html +286 -0
- package/docs/functions/ModelItemLabelPlugin.html +286 -0
- package/docs/functions/ModelRoomLabelPlugin.html +284 -0
- package/docs/functions/ModelTVVideoPlugin.html +286 -0
- package/docs/functions/ModelViewPlugin.html +289 -0
- package/docs/functions/Object3DHelperPlugin.html +284 -0
- package/docs/functions/PanoCompassPlugin.html +286 -0
- package/docs/functions/PanoCursorRaycasterPlugin.html +290 -0
- package/docs/functions/PanoDoorLabelPlugin.html +286 -0
- package/docs/functions/PanoFloorplanRadarPlugin.html +286 -0
- package/docs/functions/PanoMeasurePlugin.html +286 -0
- package/docs/functions/PanoRulerPlugin.html +289 -0
- package/docs/functions/PanoRulerProPlugin.html +289 -0
- package/docs/functions/PanoSpatialTagPlugin.html +289 -0
- package/docs/functions/PanoTagPlugin.html +291 -0
- package/docs/functions/PanoVideoPlugin.html +295 -0
- package/docs/functions/PipelinePlugin.html +284 -0
- package/docs/functions/TopviewFloorplanPlugin.html +286 -0
- package/docs/functions/Util.absoluteUrl.html +321 -0
- package/docs/functions/Util.equal.html +333 -0
- package/docs/functions/Util.getCoordsFromClient.html +323 -0
- package/docs/functions/Util.getCoordsFromElement.html +323 -0
- package/docs/functions/Util.getFrameTime.html +315 -0
- package/docs/functions/Util.getIntersectFromRelativePosition.html +323 -0
- package/docs/functions/Util.getRaycasterFromFivePointer.html +323 -0
- package/docs/functions/Util.isAbsoluteURL.html +316 -0
- package/docs/functions/Util.isModelLike.html +316 -0
- package/docs/functions/Util.isNil.html +324 -0
- package/docs/functions/Util.isPanoramaLike.html +316 -0
- package/docs/functions/Util.nextFrame.html +329 -0
- package/docs/functions/Util.notNil.html +324 -0
- package/docs/functions/Util.requestAnimationFrameInterval.html +345 -0
- package/docs/functions/Util.tweenProgress.html +318 -0
- package/docs/functions/Util.uuid.html +314 -0
- package/docs/functions/pluginFlag.html +284 -0
- package/docs/index.html +350 -0
- package/docs/interfaces/AddTagConfig.html +299 -0
- package/docs/interfaces/AreaMakerPluginPluginType.AnimeOptions.html +325 -0
- package/docs/interfaces/AreaMakerPluginPluginType.Config.html +330 -0
- package/docs/interfaces/AreaMakerPluginPluginType.EventMap.html +616 -0
- package/docs/interfaces/AreaMakerPluginPluginType.Params.html +329 -0
- package/docs/interfaces/AreaMakerPluginPluginType.ServerAreaMakerItem.html +379 -0
- package/docs/interfaces/AreaMakerPluginPluginType.ServerAreaMakerItemV1.html +364 -0
- package/docs/interfaces/AreaMakerPluginPluginType.ServerDataV1.html +329 -0
- package/docs/interfaces/AreaMakerPluginPluginType.ServerDataV2.html +322 -0
- package/docs/interfaces/AreaMakerPluginPluginType.ShowHideOptions.html +321 -0
- package/docs/interfaces/AreaMakerPluginPluginType.State.html +350 -0
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +445 -0
- package/docs/interfaces/CSS3DRenderPluginState.html +321 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +354 -0
- package/docs/interfaces/CruisePluginTypes.Config.html +355 -0
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +357 -0
- package/docs/interfaces/CruisePluginTypes.EventMap.html +692 -0
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +381 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +417 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +407 -0
- package/docs/interfaces/CruisePluginTypes.PluginData.html +347 -0
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +315 -0
- package/docs/interfaces/CruisePluginTypes.PluginState.html +404 -0
- package/docs/interfaces/EventMap.html +538 -0
- package/docs/interfaces/FloorplanBounding.html +328 -0
- package/docs/interfaces/FloorplanData.html +331 -0
- package/docs/interfaces/FloorplanEntrance.html +356 -0
- package/docs/interfaces/FloorplanExtraObject.html +346 -0
- package/docs/interfaces/FloorplanExtraObject3D.html +335 -0
- package/docs/interfaces/FloorplanFloorData.html +324 -0
- package/docs/interfaces/FloorplanImagePosition.html +310 -0
- package/docs/interfaces/FloorplanObserver.html +328 -0
- package/docs/interfaces/FloorplanOutlineItem.html +324 -0
- package/docs/interfaces/FloorplanPosition.html +310 -0
- package/docs/interfaces/FloorplanRoomItem.html +375 -0
- package/docs/interfaces/FloorplanRoomLabelItem.html +316 -0
- package/docs/interfaces/FloorplanServerBounding.html +328 -0
- package/docs/interfaces/FloorplanServerComputedData.html +327 -0
- package/docs/interfaces/FloorplanServerData.html +310 -0
- package/docs/interfaces/FloorplanServerDoorItem.html +327 -0
- package/docs/interfaces/FloorplanServerDoorPosition.html +313 -0
- package/docs/interfaces/FloorplanServerEntrance.html +356 -0
- package/docs/interfaces/FloorplanServerFloorData.html +324 -0
- package/docs/interfaces/FloorplanServerImagePosition.html +310 -0
- package/docs/interfaces/FloorplanServerObserver.html +328 -0
- package/docs/interfaces/FloorplanServerOutlineItem.html +324 -0
- package/docs/interfaces/FloorplanServerPosition.html +310 -0
- package/docs/interfaces/FloorplanServerRoomItem.html +387 -0
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +316 -0
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +319 -0
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +357 -0
- package/docs/interfaces/GuideLinePluginType.EventMap.html +521 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +352 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +343 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +410 -0
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +342 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +467 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +339 -0
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +467 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +304 -0
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +325 -0
- package/docs/interfaces/GuideLinePluginType.PluginState.html +350 -0
- package/docs/interfaces/GuideLinePluginType.Route.html +366 -0
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +348 -0
- package/docs/interfaces/HelperOffset.html +328 -0
- package/docs/interfaces/ImagePlaneGroup.html +302 -0
- package/docs/interfaces/ItemLabelPluginData.html +299 -0
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +384 -0
- package/docs/interfaces/ItemLabelPluginParametersType.html +320 -0
- package/docs/interfaces/MinMax.html +306 -0
- package/docs/interfaces/ModelChassisCompassPluginData.html +306 -0
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +342 -0
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +306 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +313 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +350 -0
- package/docs/interfaces/ModelItemLabelPluginData.html +299 -0
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +384 -0
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +306 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +299 -0
- package/docs/interfaces/ModelTVVideoPluginData.html +320 -0
- package/docs/interfaces/ModelTVVideoPluginExportType.html +344 -0
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +299 -0
- package/docs/interfaces/ModelViewPluginExportType.html +412 -0
- package/docs/interfaces/Object3DHelperState.html +313 -0
- package/docs/interfaces/ObjectHelperControllers.html +320 -0
- package/docs/interfaces/PaintBrushAction.html +359 -0
- package/docs/interfaces/PaintBrushConfigs.html +357 -0
- package/docs/interfaces/PaintBrushState.html +341 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +421 -0
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +278 -0
- package/docs/interfaces/PanoMeasureParameterType.html +445 -0
- package/docs/interfaces/PanoMeasurePluginLineJson.html +313 -0
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +310 -0
- package/docs/interfaces/PanoMeasurePluginPointJson.html +306 -0
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +316 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +373 -0
- package/docs/interfaces/PanoRulerPluginOptions.html +322 -0
- package/docs/interfaces/PanoRulerPluginParameterType.html +313 -0
- package/docs/interfaces/PanoRulerProPluginExportType.html +349 -0
- package/docs/interfaces/PanoRulerProPluginOptions.html +319 -0
- package/docs/interfaces/PanoRulerProPluginParameterType.html +306 -0
- package/docs/interfaces/PanoRulerProPluginState.html +313 -0
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +292 -0
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +281 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +349 -0
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +331 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +427 -0
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +327 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +348 -0
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +334 -0
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +327 -0
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +319 -0
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +337 -0
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +310 -0
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +416 -0
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +310 -0
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +345 -0
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +364 -0
- package/docs/interfaces/Point.html +313 -0
- package/docs/interfaces/Room.html +320 -0
- package/docs/interfaces/RoomInfo.html +306 -0
- package/docs/interfaces/RoomLabel.html +382 -0
- package/docs/interfaces/RoomRules.html +281 -0
- package/docs/interfaces/Rooms.html +281 -0
- package/docs/interfaces/Scissor.html +340 -0
- package/docs/interfaces/State.html +327 -0
- package/docs/interfaces/TagCacheInterface.html +351 -0
- package/docs/interfaces/TagConfig.html +541 -0
- package/docs/interfaces/TagGLTFObjectGroup.html +302 -0
- package/docs/interfaces/TagIconUrl.html +359 -0
- package/docs/interfaces/TagObjectGroup.html +302 -0
- package/docs/interfaces/TagStyle.html +312 -0
- package/docs/interfaces/Tags.html +542 -0
- package/docs/interfaces/TemporaryState.html +299 -0
- package/docs/interfaces/Util.MagnifierParameter.html +386 -0
- package/docs/interfaces/Util.MouseGroupParameter.html +345 -0
- package/docs/interfaces/Util.PointIntersection.html +360 -0
- package/docs/modules/AreaMakerPluginPluginType.html +319 -0
- package/docs/modules/CruisePluginTypes.html +324 -0
- package/docs/modules/GuideLineItem.html +285 -0
- package/docs/modules/GuideLineModeItem.html +290 -0
- package/docs/modules/GuideLinePluginType.html +344 -0
- package/docs/modules/PanoVideoPluginType.html +297 -0
- package/docs/modules/Util.html +345 -0
- package/docs/modules.html +532 -0
- package/docs/types/AreaMakerPluginPluginType.AreaMakerItemEventMap.html +327 -0
- package/docs/types/AreaMakerPluginPluginType.PluginData.html +297 -0
- package/docs/types/AreaMakerPluginPluginType.ServerData.html +297 -0
- package/docs/types/ArrayPosition.html +275 -0
- package/docs/types/AudioAppearance.html +275 -0
- package/docs/types/AudioTagTypeConfigKey.html +275 -0
- package/docs/types/CSS3DRenderExportType.html +275 -0
- package/docs/types/CSS3DRenderPluginExportType.html +275 -0
- package/docs/types/CSS3DRenderPluginParameterType.html +275 -0
- package/docs/types/ClassFunctionParameters.html +282 -0
- package/docs/types/Color.html +275 -0
- package/docs/types/ContentTypeConfigKey.html +275 -0
- package/docs/types/ContentTypeConfigKeySplit.html +275 -0
- package/docs/types/ContentTypeMap.html +275 -0
- package/docs/types/Create3DDomContainerReturnType.html +275 -0
- package/docs/types/Create3DElementReturnType.html +275 -0
- package/docs/types/CruisePluginExportType.html +275 -0
- package/docs/types/CruisePluginTypes.CruiseData.html +314 -0
- package/docs/types/CruisePluginTypes.MoveEffect.html +291 -0
- package/docs/types/DeprecatedMediaPlaneProperty.html +287 -0
- package/docs/types/DeprecatedTagProperty.html +290 -0
- package/docs/types/Direction-1.html +275 -0
- package/docs/types/Direction4.html +275 -0
- package/docs/types/ElementRenderer.html +299 -0
- package/docs/types/FloorplanRuleLabels.html +278 -0
- package/docs/types/FloorplanServerRuleLabels.html +275 -0
- package/docs/types/GuideLinePluginExportType.html +275 -0
- package/docs/types/GuideLinePluginType.GuideLineItem.html +347 -0
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +368 -0
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +301 -0
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +304 -0
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +304 -0
- package/docs/types/GuideLinePluginType.PathItem.html +304 -0
- package/docs/types/GuideLinePluginType.PluginData.html +313 -0
- package/docs/types/HelperEventMap.html +513 -0
- package/docs/types/LoadTagConfig.html +275 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +275 -0
- package/docs/types/MapviewFloorplanPluginReturnType.html +275 -0
- package/docs/types/MediaData.html +291 -0
- package/docs/types/MediaStore.html +280 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +282 -0
- package/docs/types/ModelFloorplanPluginParameterType.html +275 -0
- package/docs/types/ModelFloorplanPluginReturnType.html +275 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +275 -0
- package/docs/types/ModelRoomLabelPluginReturnType.html +275 -0
- package/docs/types/MoveArgs.html +285 -0
- package/docs/types/MoveOpts.html +283 -0
- package/docs/types/Object3DHelperEventMap.html +368 -0
- package/docs/types/ObjectFit.html +275 -0
- package/docs/types/PaintBrushEventMap.html +306 -0
- package/docs/types/PanoCompassPluginData.html +275 -0
- package/docs/types/PanoCompassPluginExportType.html +275 -0
- package/docs/types/PanoCompassPluginParameterType.html +275 -0
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +275 -0
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +275 -0
- package/docs/types/PanoIndex.html +275 -0
- package/docs/types/PanoMeasurePluginEvent.html +275 -0
- package/docs/types/PanoMeasureReturnType.html +275 -0
- package/docs/types/PanoSpatialTagPluginId.html +275 -0
- package/docs/types/PanoTagPluginExportInterface.html +275 -0
- package/docs/types/PanoTagPluginParamsInterface.html +275 -0
- package/docs/types/PanoVideoPluginParameterType.html +275 -0
- package/docs/types/PanoVideoPluginReturnType.html +275 -0
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +283 -0
- package/docs/types/PipelinePluginParameterType.html +275 -0
- package/docs/types/PipelinePluginReturnType.html +275 -0
- package/docs/types/PlaneTag.html +283 -0
- package/docs/types/Point2DTag.html +283 -0
- package/docs/types/Point3DTag.html +283 -0
- package/docs/types/PointTag.html +280 -0
- package/docs/types/PointTagInstance.html +280 -0
- package/docs/types/Position.html +275 -0
- package/docs/types/RotateArgs.html +287 -0
- package/docs/types/RotateOpts.html +283 -0
- package/docs/types/RuleLabelsKey.html +275 -0
- package/docs/types/RuleLabelsValue.html +275 -0
- package/docs/types/StickType.html +275 -0
- package/docs/types/Tag.html +341 -0
- package/docs/types/Tag2D.html +283 -0
- package/docs/types/Tag3D.html +283 -0
- package/docs/types/TagConfigByKey.html +280 -0
- package/docs/types/TagContentType.html +275 -0
- package/docs/types/TagDimensionType.html +277 -0
- package/docs/types/TagElement.html +285 -0
- package/docs/types/TagEvents.html +328 -0
- package/docs/types/TagGLTFObject.html +298 -0
- package/docs/types/TagHooks.html +275 -0
- package/docs/types/TagId.html +275 -0
- package/docs/types/TagInstance.html +347 -0
- package/docs/types/TagPointType.html +278 -0
- package/docs/types/TagRendererMap.html +280 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +275 -0
- package/docs/types/TopviewFloorplanPluginReturnType.html +275 -0
- package/docs/types/WorkCode.html +275 -0
- package/docs/variables/FLOOR_TYPE_MAP.html +285 -0
- package/docs/variables/PLUGIN.html +275 -0
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +278 -0
- package/docs/variables/ROOM_TYPE_MAP.html +285 -0
- package/docs/variables/defaultGlobalConfig.html +275 -0
- package/docs/variables/itemLabelPluginServerParams.html +282 -0
- package/docs/variables/modelItemLabelPluginServerParams.html +282 -0
- package/docs/variables/modelRoomLabelPluginServerParams.html +282 -0
- package/libs/AreaMakerPlugin/Controller.d.ts +94 -0
- package/libs/AreaMakerPlugin/Controller.js +336 -0
- package/libs/AreaMakerPlugin/index.d.ts +4 -0
- package/libs/AreaMakerPlugin/index.js +37 -0
- package/libs/AreaMakerPlugin/typing.d.ts +148 -0
- package/libs/AreaMakerPlugin/typing.js +1 -0
- package/libs/AreaMakerPlugin/utils/Item.d.ts +114 -0
- package/libs/AreaMakerPlugin/utils/Item.js +263 -0
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +42 -39
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -5
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +13 -13
- package/libs/base/BasePlugin.js +1 -1
- package/libs/base/BasePluginWithData.d.ts +1 -1
- package/libs/components/AreaLabel/Assets/roomLabelBg.d.ts +1 -0
- package/libs/components/AreaLabel/Assets/roomLabelBg.js +4 -0
- package/libs/components/AreaLabel/LabelItem.js +125 -0
- package/libs/components/AreaLabel/LabelItem.svelte.d.ts +1 -0
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +49 -48
- package/libs/floorplan/utils/correctFiveState.d.ts +2 -0
- package/libs/floorplan/utils/correctFiveState.js +28 -28
- package/libs/index.d.ts +1 -0
- package/libs/index.js +120 -112
- package/libs/shared-utils/five/changeMode.js +32 -29
- package/libs/shared-utils/index.d.ts +1 -0
- package/libs/shared-utils/index.js +27 -21
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/math/planimetry.d.ts +1 -1
- package/libs/shared-utils/math/planimetry.js +36 -29
- package/libs/shared-utils/three/core/Object3D.d.ts +8 -0
- package/libs/shared-utils/three/core/Object3D.js +22 -0
- package/libs/shared-utils/three/index.d.ts +2 -0
- package/libs/shared-utils/three/objects/LineSegments.d.ts +9 -0
- package/libs/shared-utils/three/objects/LineSegments.js +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { SvelteComponent as v, init as p, safe_not_equal as h, append_styles as z, element as d, text as k, space as y, attr as u, set_style as l, toggle_class as g, insert as q, append as b, listen as w, set_data as x, noop as _, detach as C, is_function as I } from "../../vendor/svelte/internal/index.js";
|
|
2
|
+
import { ROOM_LABEL_BG as L } from "./Assets/roomLabelBg.js";
|
|
3
|
+
function B(t) {
|
|
4
|
+
z(t, "svelte-qxepni", ".room-label-item.svelte-qxepni{position:absolute;font-size:0.5rem;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:#fff}.room-label-item__text.svelte-qxepni{position:absolute;left:0;top:-4rem;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;height:1.25rem;min-width:2rem;padding:0 0.375rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.room-label-item__bar.svelte-qxepni{position:absolute;top:-2.75rem;height:3rem;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}.wide.svelte-qxepni{font-size:0.625rem}");
|
|
5
|
+
}
|
|
6
|
+
function O(t) {
|
|
7
|
+
let e, i, r, f, a, m, c;
|
|
8
|
+
return {
|
|
9
|
+
c() {
|
|
10
|
+
e = d("div"), i = d("span"), r = k(
|
|
11
|
+
/*content*/
|
|
12
|
+
t[0]
|
|
13
|
+
), f = y(), a = d("div"), u(i, "class", "room-label-item__text svelte-qxepni"), l(i, "background-image", "url(" + L + ")"), g(
|
|
14
|
+
i,
|
|
15
|
+
"wide",
|
|
16
|
+
/*content*/
|
|
17
|
+
t[0].length > 3
|
|
18
|
+
), u(a, "class", "room-label-item__bar svelte-qxepni"), u(e, "class", "room-label-item svelte-qxepni"), l(
|
|
19
|
+
e,
|
|
20
|
+
"z-index",
|
|
21
|
+
/*zIndex*/
|
|
22
|
+
t[2]
|
|
23
|
+
), l(
|
|
24
|
+
e,
|
|
25
|
+
"transform",
|
|
26
|
+
/*transform*/
|
|
27
|
+
t[3]
|
|
28
|
+
), l(
|
|
29
|
+
e,
|
|
30
|
+
"opacity",
|
|
31
|
+
/*opacity*/
|
|
32
|
+
t[1]
|
|
33
|
+
), l(
|
|
34
|
+
e,
|
|
35
|
+
"visibility",
|
|
36
|
+
/*visibility*/
|
|
37
|
+
t[5]
|
|
38
|
+
);
|
|
39
|
+
},
|
|
40
|
+
m(s, o) {
|
|
41
|
+
q(s, e, o), b(e, i), b(i, r), b(e, f), b(e, a), m || (c = w(i, "click", function() {
|
|
42
|
+
I(
|
|
43
|
+
/*onClick*/
|
|
44
|
+
t[4]
|
|
45
|
+
) && t[4].apply(this, arguments);
|
|
46
|
+
}), m = !0);
|
|
47
|
+
},
|
|
48
|
+
p(s, [o]) {
|
|
49
|
+
t = s, o & /*content*/
|
|
50
|
+
1 && x(
|
|
51
|
+
r,
|
|
52
|
+
/*content*/
|
|
53
|
+
t[0]
|
|
54
|
+
), o & /*content*/
|
|
55
|
+
1 && g(
|
|
56
|
+
i,
|
|
57
|
+
"wide",
|
|
58
|
+
/*content*/
|
|
59
|
+
t[0].length > 3
|
|
60
|
+
), o & /*zIndex*/
|
|
61
|
+
4 && l(
|
|
62
|
+
e,
|
|
63
|
+
"z-index",
|
|
64
|
+
/*zIndex*/
|
|
65
|
+
t[2]
|
|
66
|
+
), o & /*transform*/
|
|
67
|
+
8 && l(
|
|
68
|
+
e,
|
|
69
|
+
"transform",
|
|
70
|
+
/*transform*/
|
|
71
|
+
t[3]
|
|
72
|
+
), o & /*opacity*/
|
|
73
|
+
2 && l(
|
|
74
|
+
e,
|
|
75
|
+
"opacity",
|
|
76
|
+
/*opacity*/
|
|
77
|
+
t[1]
|
|
78
|
+
), o & /*visibility*/
|
|
79
|
+
32 && l(
|
|
80
|
+
e,
|
|
81
|
+
"visibility",
|
|
82
|
+
/*visibility*/
|
|
83
|
+
t[5]
|
|
84
|
+
);
|
|
85
|
+
},
|
|
86
|
+
i: _,
|
|
87
|
+
o: _,
|
|
88
|
+
d(s) {
|
|
89
|
+
s && C(e), m = !1, c();
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
function j(t, e, i) {
|
|
94
|
+
let r, { content: f } = e, { visible: a } = e, { opacity: m = 1 } = e, { zIndex: c = 0 } = e, { transform: s } = e, { onClick: o = () => {
|
|
95
|
+
} } = e;
|
|
96
|
+
return t.$$set = (n) => {
|
|
97
|
+
"content" in n && i(0, f = n.content), "visible" in n && i(6, a = n.visible), "opacity" in n && i(1, m = n.opacity), "zIndex" in n && i(2, c = n.zIndex), "transform" in n && i(3, s = n.transform), "onClick" in n && i(4, o = n.onClick);
|
|
98
|
+
}, t.$$.update = () => {
|
|
99
|
+
t.$$.dirty & /*visible*/
|
|
100
|
+
64 && i(5, r = a ? "visible" : "hidden");
|
|
101
|
+
}, [f, m, c, s, o, r, a];
|
|
102
|
+
}
|
|
103
|
+
class G extends v {
|
|
104
|
+
constructor(e) {
|
|
105
|
+
super(), p(
|
|
106
|
+
this,
|
|
107
|
+
e,
|
|
108
|
+
j,
|
|
109
|
+
O,
|
|
110
|
+
h,
|
|
111
|
+
{
|
|
112
|
+
content: 0,
|
|
113
|
+
visible: 6,
|
|
114
|
+
opacity: 1,
|
|
115
|
+
zIndex: 2,
|
|
116
|
+
transform: 3,
|
|
117
|
+
onClick: 4
|
|
118
|
+
},
|
|
119
|
+
B
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
export {
|
|
124
|
+
G as LabelItem
|
|
125
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponentTyped as default } from 'svelte/internal';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var m = (d,
|
|
6
|
-
for (var t in
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
|
|
1
|
+
var A = Object.defineProperty, P = Object.defineProperties;
|
|
2
|
+
var E = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var g = Object.getOwnPropertySymbols;
|
|
4
|
+
var C = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var m = (d, r, t) => r in d ? A(d, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[r] = t, c = (d, r) => {
|
|
6
|
+
for (var t in r || (r = {}))
|
|
7
|
+
C.call(r, t) && m(d, t, r[t]);
|
|
8
|
+
if (g)
|
|
9
|
+
for (var t of g(r))
|
|
10
|
+
I.call(r, t) && m(d, t, r[t]);
|
|
11
11
|
return d;
|
|
12
|
-
}, v = (d,
|
|
13
|
-
var o = (d,
|
|
14
|
-
var u = (d,
|
|
15
|
-
var
|
|
12
|
+
}, v = (d, r) => P(d, E(r));
|
|
13
|
+
var o = (d, r, t) => (m(d, typeof r != "symbol" ? r + "" : r, t), t);
|
|
14
|
+
var u = (d, r, t) => new Promise((e, i) => {
|
|
15
|
+
var n = (a) => {
|
|
16
16
|
try {
|
|
17
17
|
s(t.next(a));
|
|
18
18
|
} catch (l) {
|
|
@@ -24,21 +24,21 @@ var u = (d, n, t) => new Promise((e, i) => {
|
|
|
24
24
|
} catch (l) {
|
|
25
25
|
i(l);
|
|
26
26
|
}
|
|
27
|
-
}, s = (a) => a.done ? e(a.value) : Promise.resolve(a.value).then(
|
|
28
|
-
s((t = t.apply(d,
|
|
27
|
+
}, s = (a) => a.done ? e(a.value) : Promise.resolve(a.value).then(n, h);
|
|
28
|
+
s((t = t.apply(d, r)).next());
|
|
29
29
|
});
|
|
30
|
-
import * as
|
|
30
|
+
import * as w from "three";
|
|
31
31
|
import { to as y } from "../../shared-utils/to.js";
|
|
32
32
|
import { equal as F } from "../../shared-utils/equal.js";
|
|
33
33
|
import { Main as x } from "../Components/Main.js";
|
|
34
|
-
import { formatData as
|
|
34
|
+
import { formatData as b } from "../utils/formatData.js";
|
|
35
35
|
import { CAMERA_IMAGE as M } from "../Assets/camera.js";
|
|
36
36
|
import { omit as _ } from "../../shared-utils/filter.js";
|
|
37
37
|
import { FLOOR_PLAN_ATTACHED_TO as L } from "../constant.js";
|
|
38
38
|
import { Controller as O } from "../../base/BasePluginWithData.js";
|
|
39
39
|
import { getPxmm as D, getAttachedY as T } from "../../shared-utils/getPxmm.js";
|
|
40
40
|
import { checkShowState as k, correctFiveState as H } from "../utils/correctFiveState.js";
|
|
41
|
-
import { changeModelCanvasOpacity as
|
|
41
|
+
import { changeModelCanvasOpacity as S } from "../../shared-utils/changeModelCanvasOpacity.js";
|
|
42
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";
|
|
@@ -90,11 +90,11 @@ import "../../shared-utils/absoluteUrl.js";
|
|
|
90
90
|
import "../../shared-utils/nearlyEqual.js";
|
|
91
91
|
import "../../shared-utils/five/changeMode.js";
|
|
92
92
|
function G(d) {
|
|
93
|
-
const { latitude:
|
|
93
|
+
const { latitude: r, longitude: t } = d, 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
96
|
function W(d) {
|
|
97
|
-
const { latitude:
|
|
97
|
+
const { latitude: r, longitude: t } = d, 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
100
|
class Jt extends O {
|
|
@@ -160,7 +160,7 @@ class Jt extends O {
|
|
|
160
160
|
o(this, "updateSize", () => {
|
|
161
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,
|
|
163
|
+
const { min: t, max: e } = this.data.bounding, i = e.x - t.x, n = 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(n * s);
|
|
164
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) => {
|
|
@@ -170,9 +170,9 @@ class Jt extends O {
|
|
|
170
170
|
this.highlightData = {}, this.render();
|
|
171
171
|
});
|
|
172
172
|
o(this, "_disable", (t) => {
|
|
173
|
-
var i,
|
|
173
|
+
var i, n, 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, (n = this.app) == null || n.$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;
|
|
@@ -194,7 +194,7 @@ class Jt extends O {
|
|
|
194
194
|
immediately: !1,
|
|
195
195
|
isAutoShow: !1,
|
|
196
196
|
userAction: !0
|
|
197
|
-
}, i = c(c({}, e), t),
|
|
197
|
+
}, i = c(c({}, e), t), n = () => u(this, null, function* () {
|
|
198
198
|
this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
|
|
199
199
|
let s = !1, a;
|
|
200
200
|
this.showRejection = (p) => {
|
|
@@ -207,10 +207,10 @@ class Jt extends O {
|
|
|
207
207
|
throw a ? new Error(a) : new Error(f.UnknownError);
|
|
208
208
|
this.updateSize(), this.updatePosition(), this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
|
|
209
209
|
});
|
|
210
|
-
return this.isHiddenByHideFunc = !1, this.showPromise =
|
|
210
|
+
return this.isHiddenByHideFunc = !1, this.showPromise = n().then(() => {
|
|
211
211
|
this.showPromise = void 0, this.showRejection = void 0;
|
|
212
212
|
const s = i.modelOpacity, a = i.immediately ? 0 : R;
|
|
213
|
-
|
|
213
|
+
S(this.five, s, a), this.render(a), this.hooks.emit("showAnimationEnded", {
|
|
214
214
|
auto: i.isAutoShow,
|
|
215
215
|
userAction: i.userAction
|
|
216
216
|
});
|
|
@@ -220,13 +220,13 @@ class Jt extends O {
|
|
|
220
220
|
}), this.showPromise;
|
|
221
221
|
}));
|
|
222
222
|
o(this, "_hide", (t) => {
|
|
223
|
-
var
|
|
224
|
-
(
|
|
223
|
+
var n;
|
|
224
|
+
(n = this.showRejection) == null || n.call(this, f.BreakOffByHide), this.showPromise = void 0;
|
|
225
225
|
const i = c(c({}, {
|
|
226
226
|
userAction: !0,
|
|
227
227
|
isAutoHide: !1
|
|
228
228
|
}), t);
|
|
229
|
-
|
|
229
|
+
S(this.five, 1, 0), this.hooks.emit("hide", { auto: i.isAutoHide, userAction: i.userAction }), this.render();
|
|
230
230
|
});
|
|
231
231
|
o(this, "handleClick", () => {
|
|
232
232
|
if (!this.state.visible)
|
|
@@ -236,12 +236,13 @@ class Jt extends O {
|
|
|
236
236
|
});
|
|
237
237
|
/** modelLoaded 之后自动执行 append container 操作 */
|
|
238
238
|
o(this, "onFiveModelLoaded", () => {
|
|
239
|
-
|
|
239
|
+
const e = this.five.model.bounding.getCenter(new w.Vector3());
|
|
240
|
+
if (this.showState.offset = e, this.state.enabled === !1 || this.wrapper || !this.selector)
|
|
240
241
|
return;
|
|
241
|
-
const
|
|
242
|
-
if (!
|
|
242
|
+
const i = this.selector instanceof Element ? this.selector : document.querySelector(this.selector);
|
|
243
|
+
if (!i)
|
|
243
244
|
throw new Error("不正确的父容器选择器");
|
|
244
|
-
this.wrapper =
|
|
245
|
+
this.wrapper = i, i.append(this.container);
|
|
245
246
|
});
|
|
246
247
|
/** 更改模型时,自动隐藏户型图 */
|
|
247
248
|
o(this, "onFiveModeChange", (t) => {
|
|
@@ -292,7 +293,7 @@ class Jt extends O {
|
|
|
292
293
|
mode: "Mapview",
|
|
293
294
|
longitude: 0,
|
|
294
295
|
latitude: Math.PI / 2,
|
|
295
|
-
fov:
|
|
296
|
+
fov: 80
|
|
296
297
|
};
|
|
297
298
|
const i = {
|
|
298
299
|
northDesc: "北",
|
|
@@ -312,7 +313,7 @@ class Jt extends O {
|
|
|
312
313
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
313
314
|
getRoomAreaText: (s) => (s / 1e6).toFixed(1) + "㎡",
|
|
314
315
|
getRuleDistanceText: (s) => s.toString()
|
|
315
|
-
},
|
|
316
|
+
}, n = e ? _(e, ["selector", "scale"]) : {}, h = c(c({}, i), n);
|
|
316
317
|
this.state = {
|
|
317
318
|
enabled: !0,
|
|
318
319
|
visible: !1,
|
|
@@ -321,13 +322,13 @@ class Jt extends O {
|
|
|
321
322
|
}
|
|
322
323
|
load(t, e, i = !0) {
|
|
323
324
|
return u(this, null, function* () {
|
|
324
|
-
function
|
|
325
|
+
function n(p) {
|
|
325
326
|
return Object.prototype.hasOwnProperty.apply(p, ["version"]);
|
|
326
327
|
}
|
|
327
328
|
const h = t;
|
|
328
329
|
h && !h.version && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
|
|
329
|
-
const s = JSON.parse(JSON.stringify(t)), a =
|
|
330
|
-
this.data = yield
|
|
330
|
+
const s = JSON.parse(JSON.stringify(t)), a = n(s) ? s.data : s, l = this.data;
|
|
331
|
+
this.data = yield b(a), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, l), e && this.updateState(e, i), this.render();
|
|
331
332
|
});
|
|
332
333
|
}
|
|
333
334
|
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
@@ -351,9 +352,9 @@ class Jt extends O {
|
|
|
351
352
|
}
|
|
352
353
|
/** 更改插件 State */
|
|
353
354
|
setState(t, e = {}) {
|
|
354
|
-
const i = this.state,
|
|
355
|
-
if (this.updateState(t,
|
|
356
|
-
const h = { userAction:
|
|
355
|
+
const i = this.state, n = e.userAction !== void 0 ? e.userAction : !0;
|
|
356
|
+
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) {
|
|
357
|
+
const h = { userAction: n };
|
|
357
358
|
t.visible ? this._show(h) : this._hide(h);
|
|
358
359
|
}
|
|
359
360
|
}
|
|
@@ -363,20 +364,20 @@ class Jt extends O {
|
|
|
363
364
|
/** 更新户型图位置 */
|
|
364
365
|
updatePosition() {
|
|
365
366
|
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
|
|
367
|
+
const t = T(this.five, this.floorIndex, this.state.config.attachedTo), e = (s = this.five.model) == null ? void 0 : s.bounding.getCenter(new w.Vector3()).setY(t);
|
|
367
368
|
if (!e)
|
|
368
369
|
return;
|
|
369
|
-
const i = e.clone().project(this.five.camera),
|
|
370
|
-
this.container.style.left =
|
|
370
|
+
const i = e.clone().project(this.five.camera), n = (i.x + 1) / 2, h = -(i.y - 1) / 2;
|
|
371
|
+
this.container.style.left = n * 100 + "%", this.container.style.top = h * 100 + "%";
|
|
371
372
|
}
|
|
372
373
|
formatData(t) {
|
|
373
374
|
return u(this, null, function* () {
|
|
374
|
-
return yield
|
|
375
|
+
return yield b(t.data);
|
|
375
376
|
});
|
|
376
377
|
}
|
|
377
378
|
updateState(t, e) {
|
|
378
|
-
const i = this.state,
|
|
379
|
-
this.state = v(c(c({}, this.state), t), { config:
|
|
379
|
+
const i = this.state, n = t.config ? c(c({}, i.config), t.config) : i.config;
|
|
380
|
+
this.state = v(c(c({}, this.state), t), { config: n }), !F(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
|
|
380
381
|
}
|
|
381
382
|
/** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
|
|
382
383
|
*
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import type * as THREE from 'three';
|
|
1
2
|
import type { Five, Mode } from '@realsee/five';
|
|
2
3
|
export interface ShowState {
|
|
3
4
|
latitude: number;
|
|
4
5
|
longitude: number;
|
|
5
6
|
fov: number;
|
|
6
7
|
mode: Mode;
|
|
8
|
+
offset?: THREE.Vector3;
|
|
7
9
|
}
|
|
8
10
|
/** 判断当前状态是否可以展示户型图 */
|
|
9
11
|
export declare function checkShowState(five: Five, showState: ShowState): boolean;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
var
|
|
2
|
-
var i = (
|
|
1
|
+
var c = (e, r, o) => new Promise((d, a) => {
|
|
2
|
+
var i = (t) => {
|
|
3
3
|
try {
|
|
4
|
-
u(
|
|
5
|
-
} catch (
|
|
6
|
-
a(
|
|
4
|
+
u(o.next(t));
|
|
5
|
+
} catch (f) {
|
|
6
|
+
a(f);
|
|
7
7
|
}
|
|
8
|
-
}, n = (
|
|
8
|
+
}, n = (t) => {
|
|
9
9
|
try {
|
|
10
|
-
u(
|
|
11
|
-
} catch (
|
|
12
|
-
a(
|
|
10
|
+
u(o.throw(t));
|
|
11
|
+
} catch (f) {
|
|
12
|
+
a(f);
|
|
13
13
|
}
|
|
14
|
-
}, u = (
|
|
15
|
-
u((
|
|
14
|
+
}, u = (t) => t.done ? d(t.value) : Promise.resolve(t.value).then(i, n);
|
|
15
|
+
u((o = o.apply(e, r)).next());
|
|
16
16
|
});
|
|
17
|
-
import { to as
|
|
18
|
-
import { FloorplanErrorType as
|
|
17
|
+
import { to as l } from "../../shared-utils/to.js";
|
|
18
|
+
import { FloorplanErrorType as m } from "./constant.js";
|
|
19
19
|
import { nearlyEqual as s } from "../../shared-utils/nearlyEqual.js";
|
|
20
20
|
import { changeMode as p } from "../../shared-utils/five/changeMode.js";
|
|
21
|
-
function g(
|
|
22
|
-
if (
|
|
21
|
+
function g(e, r) {
|
|
22
|
+
if (e.currentMode !== r.mode)
|
|
23
23
|
return !1;
|
|
24
|
-
const { latitude:
|
|
25
|
-
return !(!s(
|
|
24
|
+
const { latitude: o, longitude: d, fov: a, offset: i } = r, { latitude: n, longitude: u, offset: t } = e.getCurrentState(), f = e.camera.fov;
|
|
25
|
+
return !(!s(o, n, 2) || !s(d, u, 2) || i !== void 0 && i.distanceTo(t) > 0.01 || a !== f);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
return
|
|
29
|
-
if (g(
|
|
27
|
+
function y(e, r, o = !0) {
|
|
28
|
+
return c(this, null, function* () {
|
|
29
|
+
if (g(e, r) === !0)
|
|
30
30
|
return;
|
|
31
|
-
const a =
|
|
31
|
+
const a = e.getCurrentState();
|
|
32
32
|
if (a.mode !== r.mode) {
|
|
33
|
-
const [M] = yield
|
|
33
|
+
const [M] = yield l(p(e, [r.mode, r, void 0, o]));
|
|
34
34
|
if (M)
|
|
35
|
-
throw new Error(
|
|
35
|
+
throw new Error(m.ChangeModeError);
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
38
|
-
const { latitude: i, longitude: n, fov: u } = a,
|
|
38
|
+
const { latitude: i, longitude: n, fov: u } = a, t = Math.min(
|
|
39
39
|
1e3,
|
|
40
40
|
Math.max(
|
|
41
41
|
200,
|
|
@@ -43,12 +43,12 @@ function F(t, r, e = !0) {
|
|
|
43
43
|
(n > Math.PI ? 2 * Math.PI - n : n) * 500,
|
|
44
44
|
Math.abs(u - r.fov) * 10
|
|
45
45
|
)
|
|
46
|
-
), [
|
|
47
|
-
if (
|
|
48
|
-
throw new Error(
|
|
46
|
+
), [f] = yield l(e.updateCamera(r, t, o));
|
|
47
|
+
if (f)
|
|
48
|
+
throw new Error(m.UpdateCameraError);
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
export {
|
|
52
52
|
g as checkShowState,
|
|
53
|
-
|
|
53
|
+
y as correctFiveState
|
|
54
54
|
};
|