@realsee/dnalogel 3.2.0 → 3.3.0-dev.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/PanoTagPlugin/controller/TagUtil.d.ts +8 -4
- package/dist/PanoTagPlugin/controller/index.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +1 -0
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -2
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +2 -3
- package/dist/index.cjs.js +55 -55
- package/dist/index.js +4088 -4068
- package/dist/index.umd.js +52 -52
- package/dist/shared-utils/five/getFloorIndex.d.ts +2 -8
- package/dist/shared-utils/five/transformPosition.d.ts +2 -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/AreaMakerPluginType.AreaMakerController.html +725 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +678 -0
- package/docs/classes/CSS3DRender.html +773 -0
- package/docs/classes/CruisePluginController.html +672 -0
- package/docs/classes/GuideLineItem.GuideLineItem.html +476 -0
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +856 -0
- package/docs/classes/Magnifier.html +480 -0
- package/docs/classes/ModelRoomLabelController.html +398 -0
- package/docs/classes/Object3DHelperController.html +640 -0
- package/docs/classes/PaintBrush.html +502 -0
- package/docs/classes/PanoMeasurePluginLine.html +522 -0
- package/docs/classes/PanoMeasurePluginModel.html +571 -0
- package/docs/classes/PanoMeasurePluginPoint.html +362 -0
- package/docs/classes/PanoMeasurePluginPolyline.html +567 -0
- package/docs/classes/PanoTagPluginController.html +1077 -0
- package/docs/classes/Util.BetterTween.html +416 -0
- package/docs/classes/Util.Interval.html +432 -0
- package/docs/classes/Util.LineSegments.html +384 -0
- package/docs/classes/Util.Magnifier.html +503 -0
- package/docs/classes/Util.Object3D.html +406 -0
- package/docs/classes/Util.PointDomHelper.html +407 -0
- package/docs/classes/Util.PointHelper.html +398 -0
- package/docs/classes/Util.PointSelectorHelper.html +454 -0
- package/docs/classes/Util.Rectangle.html +455 -0
- package/docs/enums/CameraMovementEffect.html +310 -0
- package/docs/enums/ContentType.html +446 -0
- package/docs/enums/DIRECTION.html +320 -0
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +320 -0
- package/docs/enums/DimensionType.html +310 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +313 -0
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +320 -0
- package/docs/enums/PaintBrushTypeEnum.html +313 -0
- package/docs/enums/PointType.html +310 -0
- package/docs/enums/Rotation.html +317 -0
- package/docs/functions/AreaMakerPlugin.html +290 -0
- package/docs/functions/CSS3DRenderPlugin.html +288 -0
- package/docs/functions/CameraMovementPlugin.html +293 -0
- package/docs/functions/CruisePlugin.html +290 -0
- package/docs/functions/CurrentPanoImagePlugin.html +290 -0
- package/docs/functions/GuideLinePlugin.html +290 -0
- package/docs/functions/ItemLabelPlugin.html +290 -0
- package/docs/functions/MapviewFloorplanPlugin.html +290 -0
- package/docs/functions/ModelChassisCompassPlugin.html +293 -0
- package/docs/functions/ModelEntryDoorGuidePlugin.html +293 -0
- package/docs/functions/ModelFloorplanPlugin.html +290 -0
- package/docs/functions/ModelItemLabelPlugin.html +290 -0
- package/docs/functions/ModelRoomLabelPlugin.html +288 -0
- package/docs/functions/ModelTVVideoPlugin.html +290 -0
- package/docs/functions/ModelViewPlugin.html +293 -0
- package/docs/functions/Object3DHelperPlugin.html +288 -0
- package/docs/functions/PanoCompassPlugin.html +290 -0
- package/docs/functions/PanoCursorRaycasterPlugin.html +294 -0
- package/docs/functions/PanoDoorLabelPlugin.html +290 -0
- package/docs/functions/PanoFloorplanRadarPlugin.html +290 -0
- package/docs/functions/PanoMeasurePlugin.html +290 -0
- package/docs/functions/PanoRulerPlugin.html +293 -0
- package/docs/functions/PanoRulerProPlugin.html +293 -0
- package/docs/functions/PanoSpatialTagPlugin.html +293 -0
- package/docs/functions/PanoTagPlugin.html +295 -0
- package/docs/functions/PanoVideoPlugin.html +299 -0
- package/docs/functions/PipelinePlugin.html +288 -0
- package/docs/functions/TopviewFloorplanPlugin.html +290 -0
- package/docs/functions/Util.absoluteUrl.html +326 -0
- package/docs/functions/Util.checkFiveModelLoaded.html +329 -0
- package/docs/functions/Util.equal.html +338 -0
- package/docs/functions/Util.getCoordsFromClient.html +328 -0
- package/docs/functions/Util.getCoordsFromElement.html +328 -0
- package/docs/functions/Util.getFrameTime.html +320 -0
- package/docs/functions/Util.getIntersectFromRelativePosition.html +328 -0
- package/docs/functions/Util.getRaycasterFromFivePointer.html +328 -0
- package/docs/functions/Util.isAbsoluteURL.html +321 -0
- package/docs/functions/Util.isModelLike.html +321 -0
- package/docs/functions/Util.isNil.html +329 -0
- package/docs/functions/Util.isPanoramaLike.html +321 -0
- package/docs/functions/Util.nextFrame.html +334 -0
- package/docs/functions/Util.notNil.html +329 -0
- package/docs/functions/Util.requestAnimationFrameInterval.html +350 -0
- package/docs/functions/Util.tweenProgress.html +323 -0
- package/docs/functions/Util.uuid.html +319 -0
- package/docs/functions/pluginFlag.html +288 -0
- package/docs/index.html +354 -0
- package/docs/interfaces/AddTagConfig.html +303 -0
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +329 -0
- package/docs/interfaces/AreaMakerPluginType.Config.html +334 -0
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +620 -0
- package/docs/interfaces/AreaMakerPluginType.Params.html +333 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +383 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +368 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +333 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +326 -0
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +325 -0
- package/docs/interfaces/AreaMakerPluginType.State.html +354 -0
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +449 -0
- package/docs/interfaces/CSS3DRenderPluginState.html +325 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +358 -0
- package/docs/interfaces/CruisePluginTypes.Config.html +359 -0
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +361 -0
- package/docs/interfaces/CruisePluginTypes.EventMap.html +696 -0
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +385 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +421 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +411 -0
- package/docs/interfaces/CruisePluginTypes.PluginData.html +351 -0
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +319 -0
- package/docs/interfaces/CruisePluginTypes.PluginState.html +408 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +382 -0
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +521 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +323 -0
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +315 -0
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +337 -0
- package/docs/interfaces/EventMap.html +542 -0
- package/docs/interfaces/FloorplanBounding.html +332 -0
- package/docs/interfaces/FloorplanData.html +335 -0
- package/docs/interfaces/FloorplanEntrance.html +360 -0
- package/docs/interfaces/FloorplanExtraObject.html +350 -0
- package/docs/interfaces/FloorplanExtraObject3D.html +339 -0
- package/docs/interfaces/FloorplanFloorData.html +328 -0
- package/docs/interfaces/FloorplanImagePosition.html +314 -0
- package/docs/interfaces/FloorplanObserver.html +332 -0
- package/docs/interfaces/FloorplanOutlineItem.html +328 -0
- package/docs/interfaces/FloorplanPosition.html +314 -0
- package/docs/interfaces/FloorplanRoomItem.html +379 -0
- package/docs/interfaces/FloorplanRoomLabelItem.html +320 -0
- package/docs/interfaces/FloorplanServerBounding.html +332 -0
- package/docs/interfaces/FloorplanServerComputedData.html +331 -0
- package/docs/interfaces/FloorplanServerData.html +314 -0
- package/docs/interfaces/FloorplanServerDoorItem.html +331 -0
- package/docs/interfaces/FloorplanServerDoorPosition.html +317 -0
- package/docs/interfaces/FloorplanServerEntrance.html +360 -0
- package/docs/interfaces/FloorplanServerFloorData.html +328 -0
- package/docs/interfaces/FloorplanServerImagePosition.html +314 -0
- package/docs/interfaces/FloorplanServerObserver.html +332 -0
- package/docs/interfaces/FloorplanServerOutlineItem.html +328 -0
- package/docs/interfaces/FloorplanServerPosition.html +314 -0
- package/docs/interfaces/FloorplanServerRoomItem.html +391 -0
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +320 -0
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +323 -0
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +362 -0
- package/docs/interfaces/GuideLinePluginType.EventMap.html +526 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +357 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +348 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +415 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +337 -0
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +347 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +483 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +344 -0
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +483 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +309 -0
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +330 -0
- package/docs/interfaces/GuideLinePluginType.PluginState.html +355 -0
- package/docs/interfaces/GuideLinePluginType.Route.html +371 -0
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +353 -0
- package/docs/interfaces/HelperOffset.html +332 -0
- package/docs/interfaces/ImagePlaneGroup.html +306 -0
- package/docs/interfaces/ItemLabelPluginData.html +303 -0
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +388 -0
- package/docs/interfaces/ItemLabelPluginParametersType.html +324 -0
- package/docs/interfaces/MinMax.html +310 -0
- package/docs/interfaces/ModelChassisCompassPluginData.html +310 -0
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +346 -0
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +310 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +317 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +354 -0
- package/docs/interfaces/ModelItemLabelPluginData.html +303 -0
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +388 -0
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +310 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +303 -0
- package/docs/interfaces/ModelTVVideoPluginData.html +324 -0
- package/docs/interfaces/ModelTVVideoPluginExportType.html +348 -0
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +303 -0
- package/docs/interfaces/ModelViewPluginExportType.html +416 -0
- package/docs/interfaces/Object3DHelperState.html +317 -0
- package/docs/interfaces/ObjectHelperControllers.html +324 -0
- package/docs/interfaces/PaintBrushAction.html +363 -0
- package/docs/interfaces/PaintBrushConfigs.html +361 -0
- package/docs/interfaces/PaintBrushState.html +345 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +425 -0
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +282 -0
- package/docs/interfaces/PanoMeasureParameterType.html +449 -0
- package/docs/interfaces/PanoMeasurePluginLineJson.html +317 -0
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +314 -0
- package/docs/interfaces/PanoMeasurePluginPointJson.html +310 -0
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +320 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +377 -0
- package/docs/interfaces/PanoRulerPluginOptions.html +326 -0
- package/docs/interfaces/PanoRulerPluginParameterType.html +317 -0
- package/docs/interfaces/PanoRulerProPluginExportType.html +353 -0
- package/docs/interfaces/PanoRulerProPluginOptions.html +323 -0
- package/docs/interfaces/PanoRulerProPluginParameterType.html +310 -0
- package/docs/interfaces/PanoRulerProPluginState.html +317 -0
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +296 -0
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +285 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +353 -0
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +335 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +431 -0
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +331 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +352 -0
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +338 -0
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +331 -0
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +323 -0
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +341 -0
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +314 -0
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +420 -0
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +314 -0
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +349 -0
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +368 -0
- package/docs/interfaces/Point.html +317 -0
- package/docs/interfaces/Room.html +324 -0
- package/docs/interfaces/RoomInfo.html +310 -0
- package/docs/interfaces/RoomLabel.html +386 -0
- package/docs/interfaces/RoomRules.html +285 -0
- package/docs/interfaces/Rooms.html +285 -0
- package/docs/interfaces/Scissor.html +344 -0
- package/docs/interfaces/State.html +331 -0
- package/docs/interfaces/TagCacheInterface.html +362 -0
- package/docs/interfaces/TagConfig.html +565 -0
- package/docs/interfaces/TagGLTFObjectGroup.html +306 -0
- package/docs/interfaces/TagIconUrl.html +363 -0
- package/docs/interfaces/TagObjectGroup.html +306 -0
- package/docs/interfaces/TagStyle.html +316 -0
- package/docs/interfaces/Tags.html +2688 -0
- package/docs/interfaces/TemporaryState.html +303 -0
- package/docs/interfaces/Util.MagnifierParameter.html +391 -0
- package/docs/interfaces/Util.MouseGroupParameter.html +350 -0
- package/docs/interfaces/Util.PointIntersection.html +365 -0
- package/docs/modules/AreaMakerPluginType.html +323 -0
- package/docs/modules/CruisePluginTypes.html +328 -0
- package/docs/modules/CurrentPanoImagePluginType.html +297 -0
- package/docs/modules/GuideLineItem.html +289 -0
- package/docs/modules/GuideLineModeItem.html +294 -0
- package/docs/modules/GuideLinePluginType.html +350 -0
- package/docs/modules/PanoVideoPluginType.html +301 -0
- package/docs/modules/Util.html +351 -0
- package/docs/modules.html +540 -0
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +331 -0
- package/docs/types/AreaMakerPluginType.PluginData.html +301 -0
- package/docs/types/AreaMakerPluginType.ServerData.html +301 -0
- package/docs/types/ArrayPosition.html +279 -0
- package/docs/types/AudioAppearance.html +279 -0
- package/docs/types/AudioTagTypeConfigKey.html +279 -0
- package/docs/types/CSS3DRenderExportType.html +279 -0
- package/docs/types/CSS3DRenderPluginExportType.html +279 -0
- package/docs/types/CSS3DRenderPluginParameterType.html +279 -0
- package/docs/types/ClassFunctionParameters.html +286 -0
- package/docs/types/Color.html +279 -0
- package/docs/types/ContentTypeConfigKey.html +279 -0
- package/docs/types/ContentTypeConfigKeySplit.html +279 -0
- package/docs/types/ContentTypeMap.html +279 -0
- package/docs/types/Create3DDomContainerReturnType.html +279 -0
- package/docs/types/Create3DElementReturnType.html +279 -0
- package/docs/types/CruisePluginExportType.html +279 -0
- package/docs/types/CruisePluginTypes.CruiseData.html +318 -0
- package/docs/types/CruisePluginTypes.MoveEffect.html +295 -0
- package/docs/types/CurrentPanoImagePluginExportType.html +279 -0
- package/docs/types/DeprecatedMediaPlaneProperty.html +291 -0
- package/docs/types/DeprecatedTagProperty.html +294 -0
- package/docs/types/Direction-1.html +279 -0
- package/docs/types/Direction4.html +279 -0
- package/docs/types/ElementRenderer.html +303 -0
- package/docs/types/FloorplanRuleLabels.html +282 -0
- package/docs/types/FloorplanServerRuleLabels.html +279 -0
- package/docs/types/GuideLinePluginExportType.html +279 -0
- package/docs/types/GuideLinePluginType.GuideLineItem.html +352 -0
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +373 -0
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +306 -0
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +309 -0
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +309 -0
- package/docs/types/GuideLinePluginType.PathItem.html +309 -0
- package/docs/types/GuideLinePluginType.PluginData.html +318 -0
- package/docs/types/HelperEventMap.html +517 -0
- package/docs/types/LoadTagConfig.html +279 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +279 -0
- package/docs/types/MapviewFloorplanPluginReturnType.html +279 -0
- package/docs/types/MediaData.html +295 -0
- package/docs/types/MediaStore.html +284 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +286 -0
- package/docs/types/ModelFloorplanPluginParameterType.html +279 -0
- package/docs/types/ModelFloorplanPluginReturnType.html +279 -0
- package/docs/types/ModelId.html +279 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +279 -0
- package/docs/types/ModelRoomLabelPluginReturnType.html +279 -0
- package/docs/types/MoveArgs.html +289 -0
- package/docs/types/MoveOpts.html +287 -0
- package/docs/types/Object3DHelperEventMap.html +372 -0
- package/docs/types/ObjectFit.html +279 -0
- package/docs/types/PaintBrushEventMap.html +310 -0
- package/docs/types/PanoCompassPluginData.html +279 -0
- package/docs/types/PanoCompassPluginExportType.html +279 -0
- package/docs/types/PanoCompassPluginParameterType.html +279 -0
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +279 -0
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +279 -0
- package/docs/types/PanoIndex.html +279 -0
- package/docs/types/PanoMeasurePluginEvent.html +279 -0
- package/docs/types/PanoMeasureReturnType.html +279 -0
- package/docs/types/PanoSpatialTagPluginId.html +279 -0
- package/docs/types/PanoTagPluginExportInterface.html +279 -0
- package/docs/types/PanoTagPluginParamsInterface.html +279 -0
- package/docs/types/PanoVideoPluginParameterType.html +279 -0
- package/docs/types/PanoVideoPluginReturnType.html +279 -0
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +287 -0
- package/docs/types/PipelinePluginParameterType.html +279 -0
- package/docs/types/PipelinePluginReturnType.html +279 -0
- package/docs/types/PlaneTag.html +287 -0
- package/docs/types/Point2DTag.html +287 -0
- package/docs/types/Point3DTag.html +287 -0
- package/docs/types/PointTag.html +284 -0
- package/docs/types/PointTagInstance.html +284 -0
- package/docs/types/Position.html +279 -0
- package/docs/types/RotateArgs.html +291 -0
- package/docs/types/RotateOpts.html +287 -0
- package/docs/types/RuleLabelsKey.html +279 -0
- package/docs/types/RuleLabelsValue.html +279 -0
- package/docs/types/StickType.html +279 -0
- package/docs/types/Tag.html +345 -0
- package/docs/types/Tag2D.html +287 -0
- package/docs/types/Tag3D.html +287 -0
- package/docs/types/TagConfigByKey.html +284 -0
- package/docs/types/TagContentType.html +279 -0
- package/docs/types/TagDimensionType.html +281 -0
- package/docs/types/TagElement.html +289 -0
- package/docs/types/TagEvents.html +332 -0
- package/docs/types/TagGLTFObject.html +302 -0
- package/docs/types/TagHooks.html +279 -0
- package/docs/types/TagId.html +279 -0
- package/docs/types/TagInstance.html +355 -0
- package/docs/types/TagPointType.html +282 -0
- package/docs/types/TagRendererMap.html +284 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +279 -0
- package/docs/types/TopviewFloorplanPluginReturnType.html +279 -0
- package/docs/types/WorkCode.html +279 -0
- package/docs/variables/FLOOR_TYPE_MAP.html +289 -0
- package/docs/variables/PLUGIN.html +279 -0
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +282 -0
- package/docs/variables/ROOM_TYPE_MAP.html +289 -0
- package/docs/variables/defaultGlobalConfig.html +279 -0
- package/docs/variables/itemLabelPluginServerParams.html +286 -0
- package/docs/variables/modelItemLabelPluginServerParams.html +286 -0
- package/docs/variables/modelRoomLabelPluginServerParams.html +286 -0
- package/libs/CruisePlugin/Controller.js +35 -34
- package/libs/CruisePlugin/index.js +6 -5
- package/libs/GuideLinePlugin/Controller.js +5 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
- package/libs/GuideLinePlugin/index.js +8 -7
- package/libs/PanoTagPlugin/controller/TagComputer.js +90 -96
- package/libs/PanoTagPlugin/controller/TagRender.js +86 -86
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +8 -4
- package/libs/PanoTagPlugin/controller/TagUtil.js +119 -103
- package/libs/PanoTagPlugin/controller/index.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/index.js +43 -38
- package/libs/PanoTagPlugin/index.js +12 -11
- package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +1 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -2
- package/libs/PanoTagPlugin/utils/tagPosition.d.ts +2 -3
- package/libs/PanoTagPlugin/utils/tagPosition.js +15 -15
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +117 -116
- package/libs/shared-utils/five/getFloorIndex.d.ts +2 -8
- package/libs/shared-utils/five/getFloorIndex.js +16 -12
- package/libs/shared-utils/five/transformPosition.d.ts +2 -0
- package/libs/shared-utils/five/transformPosition.js +10 -0
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import i from "./Controller.js";
|
|
2
|
-
import { typing as
|
|
2
|
+
import { typing as fo } from "./typing/index.js";
|
|
3
3
|
import "../base/BasePluginWithData.js";
|
|
4
4
|
import "../base/BasePlugin.js";
|
|
5
5
|
import "../shared-utils/Subscribe.js";
|
|
@@ -78,6 +78,7 @@ import "../shared-utils/five/calculateThreeMouse.js";
|
|
|
78
78
|
import "../PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
79
79
|
import "../shared-utils/typescript/entries.js";
|
|
80
80
|
import "../shared-utils/url/getUrl.js";
|
|
81
|
+
import "../shared-utils/five/transformPosition.js";
|
|
81
82
|
import "../shared-utils/five/getFloorIndex.js";
|
|
82
83
|
import "../shared-utils/safeObj.js";
|
|
83
84
|
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
@@ -169,10 +170,10 @@ import "./utils/vectorToCoordinates.js";
|
|
|
169
170
|
import "./utils/formatRad.js";
|
|
170
171
|
import "./utils/linerValue.js";
|
|
171
172
|
import "./utils/sleep.js";
|
|
172
|
-
const
|
|
173
|
+
const go = (r) => new i(r);
|
|
173
174
|
export {
|
|
174
|
-
|
|
175
|
+
go as CruisePlugin,
|
|
175
176
|
i as CruisePluginController,
|
|
176
|
-
|
|
177
|
-
|
|
177
|
+
fo as CruisePluginTypes,
|
|
178
|
+
go as default
|
|
178
179
|
};
|
|
@@ -103,6 +103,7 @@ import "../shared-utils/five/calculateThreeMouse.js";
|
|
|
103
103
|
import "../PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
104
104
|
import "../shared-utils/typescript/entries.js";
|
|
105
105
|
import "../shared-utils/url/getUrl.js";
|
|
106
|
+
import "../shared-utils/five/transformPosition.js";
|
|
106
107
|
import "../shared-utils/five/getFloorIndex.js";
|
|
107
108
|
import "../shared-utils/safeObj.js";
|
|
108
109
|
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
@@ -196,8 +197,8 @@ import "../CruisePlugin/utils/vectorToCoordinates.js";
|
|
|
196
197
|
import "../CruisePlugin/utils/formatRad.js";
|
|
197
198
|
import "../CruisePlugin/utils/linerValue.js";
|
|
198
199
|
import "../CruisePlugin/utils/sleep.js";
|
|
199
|
-
const V = "v1.1.0", b = "GuideLinePlugin", g = `${b}@${V}`,
|
|
200
|
-
class
|
|
200
|
+
const V = "v1.1.0", b = "GuideLinePlugin", g = `${b}@${V}`, zr = (p) => `${g}--${p}`;
|
|
201
|
+
class Kr extends P {
|
|
201
202
|
constructor(t, i) {
|
|
202
203
|
super(t, i);
|
|
203
204
|
d(this, "version", V);
|
|
@@ -356,6 +357,6 @@ class zr extends P {
|
|
|
356
357
|
}
|
|
357
358
|
}
|
|
358
359
|
export {
|
|
359
|
-
|
|
360
|
-
|
|
360
|
+
Kr as default,
|
|
361
|
+
zr as pluginFlag
|
|
361
362
|
};
|
|
@@ -4,7 +4,7 @@ import "../shared-utils/log.js";
|
|
|
4
4
|
import "../shared-utils/to.js";
|
|
5
5
|
import "@realsee/five";
|
|
6
6
|
import "../shared-utils/five/changeMode.js";
|
|
7
|
-
import { GuideLineItem as
|
|
7
|
+
import { GuideLineItem as xo } from "./GuideLineItem/index.js";
|
|
8
8
|
import "three";
|
|
9
9
|
import "./utils/createLineGeometry.js";
|
|
10
10
|
import "../vendor/polyline-normals/index.js";
|
|
@@ -74,6 +74,7 @@ import "../shared-utils/five/calculateThreeMouse.js";
|
|
|
74
74
|
import "../PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
75
75
|
import "../shared-utils/typescript/entries.js";
|
|
76
76
|
import "../shared-utils/url/getUrl.js";
|
|
77
|
+
import "../shared-utils/five/transformPosition.js";
|
|
77
78
|
import "../shared-utils/five/getFloorIndex.js";
|
|
78
79
|
import "../shared-utils/safeObj.js";
|
|
79
80
|
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
@@ -169,5 +170,5 @@ import "../CruisePlugin/utils/formatRad.js";
|
|
|
169
170
|
import "../CruisePlugin/utils/linerValue.js";
|
|
170
171
|
import "../CruisePlugin/utils/sleep.js";
|
|
171
172
|
export {
|
|
172
|
-
|
|
173
|
+
xo as GuideLineItem
|
|
173
174
|
};
|
|
@@ -13,7 +13,7 @@ import "../PanoTagPlugin/controller/index.js";
|
|
|
13
13
|
import "./Components/Tag.js";
|
|
14
14
|
import "./utils/index.js";
|
|
15
15
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
16
|
-
import { GuideLineModeItem as
|
|
16
|
+
import { GuideLineModeItem as Wi } from "./GuideLineModeItem/index.js";
|
|
17
17
|
import "../vendor/polyline-normals/index.js";
|
|
18
18
|
import "../vendor/polyline-miter-util/index.js";
|
|
19
19
|
import "../vendor/gl-vec2/add.js";
|
|
@@ -72,6 +72,7 @@ import "../shared-utils/five/calculateThreeMouse.js";
|
|
|
72
72
|
import "../PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
73
73
|
import "../shared-utils/typescript/entries.js";
|
|
74
74
|
import "../shared-utils/url/getUrl.js";
|
|
75
|
+
import "../shared-utils/five/transformPosition.js";
|
|
75
76
|
import "../shared-utils/five/getFloorIndex.js";
|
|
76
77
|
import "../shared-utils/safeObj.js";
|
|
77
78
|
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
@@ -152,5 +153,5 @@ import "../shared-utils/three/GLTFLoader.js";
|
|
|
152
153
|
import "@realsee/five/gltf-loader";
|
|
153
154
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
154
155
|
export {
|
|
155
|
-
|
|
156
|
+
Wi as GuideLineModeItem
|
|
156
157
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import t from "./Controller.js";
|
|
2
|
-
import { GuideLineItem$1 as
|
|
3
|
-
import { GuideLineModeItem$1 as
|
|
2
|
+
import { GuideLineItem$1 as lt } from "./GuideLineItem/index.js";
|
|
3
|
+
import { GuideLineModeItem$1 as It } from "./GuideLineModeItem/index.js";
|
|
4
4
|
import "../base/BasePluginWithData.js";
|
|
5
5
|
import "../base/BasePlugin.js";
|
|
6
6
|
import "../shared-utils/Subscribe.js";
|
|
@@ -85,6 +85,7 @@ import "../shared-utils/five/calculateThreeMouse.js";
|
|
|
85
85
|
import "../PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
86
86
|
import "../shared-utils/typescript/entries.js";
|
|
87
87
|
import "../shared-utils/url/getUrl.js";
|
|
88
|
+
import "../shared-utils/five/transformPosition.js";
|
|
88
89
|
import "../shared-utils/five/getFloorIndex.js";
|
|
89
90
|
import "../shared-utils/safeObj.js";
|
|
90
91
|
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
@@ -168,10 +169,10 @@ import "./utils/index.js";
|
|
|
168
169
|
import "../shared-utils/to.js";
|
|
169
170
|
import "../shared-utils/five/changeMode.js";
|
|
170
171
|
import "../shared-utils/nearlyEqual.js";
|
|
171
|
-
const
|
|
172
|
+
const Lt = (i, o) => new t(i, o);
|
|
172
173
|
export {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
lt as GuideLineItem,
|
|
175
|
+
It as GuideLineModeItem,
|
|
176
|
+
Lt as GuideLinePlugin,
|
|
177
|
+
Lt as default
|
|
177
178
|
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var B = Object.defineProperty, E = Object.defineProperties;
|
|
2
|
+
var $ = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var C = Object.getOwnPropertySymbols;
|
|
4
|
+
var w = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var k = (m, e, i) => e in m ? B(m, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : m[e] = i, g = (m, e) => {
|
|
6
6
|
for (var i in e || (e = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var i of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
7
|
+
w.call(e, i) && k(m, i, e[i]);
|
|
8
|
+
if (C)
|
|
9
|
+
for (var i of C(e))
|
|
10
|
+
O.call(e, i) && k(m, i, e[i]);
|
|
11
|
+
return m;
|
|
12
|
+
}, M = (m, e) => E(m, $(e));
|
|
13
13
|
import * as j from "three";
|
|
14
|
-
import { is3DTag as
|
|
15
|
-
import { getTagCenterPosition as
|
|
16
|
-
import { checkRange as
|
|
17
|
-
import { isPanoramaLike as b, isModelLike as
|
|
14
|
+
import { is3DTag as L, isMediaModelTag as D } from "../utils/tag/tagCheck.js";
|
|
15
|
+
import { getTagCenterPosition as x, getTagPosition as z } from "../utils/tagPosition.js";
|
|
16
|
+
import { checkRange as p } from "../utils/checkRange.js";
|
|
17
|
+
import { isPanoramaLike as b, isModelLike as Z } from "../../shared-utils/five/mode.js";
|
|
18
18
|
import "hammerjs";
|
|
19
19
|
import "@realsee/five";
|
|
20
20
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
21
21
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
22
22
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
23
|
-
import { notNil as
|
|
24
|
-
import { TagUtil as
|
|
25
|
-
import { getFloorIndex as
|
|
26
|
-
import { safeObj as
|
|
27
|
-
import { toArray as
|
|
23
|
+
import { notNil as H } from "../../shared-utils/isNil.js";
|
|
24
|
+
import { TagUtil as N } from "./TagUtil.js";
|
|
25
|
+
import { getFloorIndex as q } from "../../shared-utils/five/getFloorIndex.js";
|
|
26
|
+
import { safeObj as R } from "../../shared-utils/safeObj.js";
|
|
27
|
+
import { toArray as W } from "../../shared-utils/util.js";
|
|
28
28
|
import "../../shared-utils/three/centerPoint.js";
|
|
29
29
|
import "../../shared-utils/positionToVector3.js";
|
|
30
30
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
@@ -63,8 +63,9 @@ import "../../shared-utils/five/calculateThreeMouse.js";
|
|
|
63
63
|
import "../utils/tag/adaptConfig.js";
|
|
64
64
|
import "../../shared-utils/typescript/entries.js";
|
|
65
65
|
import "../../shared-utils/url/getUrl.js";
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
import "../../shared-utils/five/transformPosition.js";
|
|
67
|
+
const I = new j.Raycaster();
|
|
68
|
+
class Je extends N {
|
|
68
69
|
constructor(e) {
|
|
69
70
|
super(e);
|
|
70
71
|
}
|
|
@@ -72,13 +73,13 @@ class Je extends q {
|
|
|
72
73
|
* @description: 获取是否可见
|
|
73
74
|
*/
|
|
74
75
|
getVisible(e, i) {
|
|
75
|
-
const l =
|
|
76
|
-
if ((
|
|
77
|
-
return
|
|
76
|
+
const l = g(g({}, this.five.getCurrentState()), i), { panoIndex: t, mode: n } = l, f = b(n) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
|
|
77
|
+
if ((f == null ? void 0 : f.visible) !== void 0)
|
|
78
|
+
return f.visible;
|
|
78
79
|
{
|
|
79
|
-
const s = [],
|
|
80
|
-
var r,
|
|
81
|
-
const o = (r = e.
|
|
80
|
+
const s = [], u = (() => {
|
|
81
|
+
var r, c, v;
|
|
82
|
+
const o = (r = this.getTagConfig(e).visibleConfig) != null ? r : {};
|
|
82
83
|
if (typeof o == "function")
|
|
83
84
|
return { value: o(this.five, { tag: e, distance: this.getDistance(e) }), checkedList: s, reason: "config function result" };
|
|
84
85
|
if (o.keep === "hidden")
|
|
@@ -87,8 +88,8 @@ class Je extends q {
|
|
|
87
88
|
return { value: !0, checkedList: s, reason: "config.keep is visible" };
|
|
88
89
|
if (o.visibleFiveMode !== void 0) {
|
|
89
90
|
const a = typeof o.visibleFiveMode == "function" ? o.visibleFiveMode(e) : o.visibleFiveMode;
|
|
90
|
-
let
|
|
91
|
-
if (Array.isArray(a) ?
|
|
91
|
+
let d = !1;
|
|
92
|
+
if (Array.isArray(a) ? d = a.includes(n) : a === "ModelLike" ? d = Z(n) : a === "PanoramaLike" ? d = !b(n) : a === "all" ? d = !0 : typeof a == "string" && (d = a === n), d === !1)
|
|
92
93
|
return {
|
|
93
94
|
value: !1,
|
|
94
95
|
checkedList: s,
|
|
@@ -106,26 +107,26 @@ class Je extends q {
|
|
|
106
107
|
checkedList: s,
|
|
107
108
|
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${o.visiblePanoIndex}`
|
|
108
109
|
};
|
|
109
|
-
if (o.visiblePanoIndex === "current" && t !== ((
|
|
110
|
+
if (o.visiblePanoIndex === "current" && t !== ((c = e.fiveState) == null ? void 0 : c.panoIndex))
|
|
110
111
|
return {
|
|
111
112
|
value: !1,
|
|
112
113
|
checkedList: s,
|
|
113
|
-
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(
|
|
114
|
+
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(v = e.fiveState) == null ? void 0 : v.panoIndex}`
|
|
114
115
|
};
|
|
115
116
|
}
|
|
116
|
-
if (
|
|
117
|
+
if (o.visibleDistance !== void 0 && (s.push("visibleDistance"), o.visibleDistance !== "unLimited")) {
|
|
117
118
|
const a = this.getDistance(e);
|
|
118
|
-
if (
|
|
119
|
+
if (p(a, o.visibleDistance) === !1)
|
|
119
120
|
return {
|
|
120
121
|
value: !1,
|
|
121
122
|
checkedList: s,
|
|
122
123
|
reason: `distance is not in visibleDistance. distance: ${a}, visibleDistance: ${o.visibleDistance}`
|
|
123
124
|
};
|
|
124
125
|
}
|
|
125
|
-
if (b(n) && o.angleRange &&
|
|
126
|
+
if (b(n) && o.angleRange && L(e)) {
|
|
126
127
|
s.push("angleRange");
|
|
127
128
|
const a = this.getAngle(e);
|
|
128
|
-
if (
|
|
129
|
+
if (p(a, o.angleRange) === !1)
|
|
129
130
|
return { value: !1, checkedList: s, reason: `angle is not in angleRange. angle: ${a}, angleRange: ${o.angleRange}` };
|
|
130
131
|
}
|
|
131
132
|
if (o.intersectRaycaster !== !1 && (typeof o.intersectRaycaster != "object" || o.intersectRaycaster.enabled !== !1)) {
|
|
@@ -145,7 +146,7 @@ class Je extends q {
|
|
|
145
146
|
reason: "all check passed"
|
|
146
147
|
};
|
|
147
148
|
})();
|
|
148
|
-
return
|
|
149
|
+
return f && (f.visible = u.value, f.__debug_visible_reason__ = u), u.value;
|
|
149
150
|
}
|
|
150
151
|
}
|
|
151
152
|
/**
|
|
@@ -161,17 +162,17 @@ class Je extends q {
|
|
|
161
162
|
const n = this.getTagConfig(e).unfoldedConfig;
|
|
162
163
|
if (!n)
|
|
163
164
|
return;
|
|
164
|
-
const
|
|
165
|
+
const f = (() => {
|
|
165
166
|
if (typeof n == "function")
|
|
166
167
|
return n(this.five, { tag: e, distance: this.getDistance(e) });
|
|
167
168
|
if (n.keep === "folded")
|
|
168
169
|
return !1;
|
|
169
170
|
if (n.keep === "unfolded")
|
|
170
171
|
return !0;
|
|
171
|
-
if (n.unfoldDistance &&
|
|
172
|
+
if (n.unfoldDistance && p(this.getDistance(e), n.unfoldDistance) === !1)
|
|
172
173
|
return !1;
|
|
173
174
|
})();
|
|
174
|
-
t.unfolded =
|
|
175
|
+
t.unfolded = f;
|
|
175
176
|
const s = this.getUnfoldedByCamera(e);
|
|
176
177
|
return s !== void 0 ? s : t.unfolded;
|
|
177
178
|
}
|
|
@@ -193,25 +194,25 @@ class Je extends q {
|
|
|
193
194
|
if (t.autoUnfold === void 0 || t.autoUnfold === !1 || t.autoUnfold.enable === !1 || !t.autoUnfold.strategy)
|
|
194
195
|
return;
|
|
195
196
|
if (t.autoUnfold.strategy === "ScreenPostion") {
|
|
196
|
-
const
|
|
197
|
-
if (
|
|
197
|
+
const f = this.getTagProject(e);
|
|
198
|
+
if (f && p(f.x, t.autoUnfold.autoUnfoldProjectX) === !1)
|
|
198
199
|
return !1;
|
|
199
200
|
}
|
|
200
201
|
if (t.autoUnfold.strategy === "MinimumDistance") {
|
|
201
|
-
const
|
|
202
|
-
const
|
|
203
|
-
if (!
|
|
202
|
+
const u = this.filterPointTag.filter((r) => this.getCurrentVisibleState(r)).filter((r) => {
|
|
203
|
+
const c = this.getTagProject(r);
|
|
204
|
+
if (!c)
|
|
204
205
|
return !1;
|
|
205
|
-
const { x:
|
|
206
|
-
return !(Math.abs(
|
|
207
|
-
}).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig:
|
|
208
|
-
var
|
|
209
|
-
return !(typeof
|
|
210
|
-
}).map((r) =>
|
|
211
|
-
const
|
|
212
|
-
return !(
|
|
213
|
-
}).sort((r,
|
|
214
|
-
if (
|
|
206
|
+
const { x: v, y: a, z: d } = c;
|
|
207
|
+
return !(Math.abs(d) > 1 || Math.abs(v) > 1 || Math.abs(a) > 1);
|
|
208
|
+
}).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: c }) => {
|
|
209
|
+
var v, a;
|
|
210
|
+
return !(typeof c == "function" || c.keep || c.autoUnfold === !1 || ((v = c.autoUnfold) == null ? void 0 : v.enable) === !1 || ((a = c.autoUnfold) == null ? void 0 : a.strategy) !== "MinimumDistance");
|
|
211
|
+
}).map((r) => M(g({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: c }) => {
|
|
212
|
+
const v = c.autoUnfold.distance;
|
|
213
|
+
return !(v && p(r, v) === !1);
|
|
214
|
+
}).sort((r, c) => r.distance - c.distance).findIndex((r) => r.id === e.id);
|
|
215
|
+
if (u === -1 || u <= ((n = t.autoUnfold.maxNumber) != null ? n : 1) - 1 === !1)
|
|
215
216
|
return !1;
|
|
216
217
|
}
|
|
217
218
|
return !0;
|
|
@@ -233,21 +234,17 @@ class Je extends q {
|
|
|
233
234
|
setPointTagPosition() {
|
|
234
235
|
const e = this.filterPointTag;
|
|
235
236
|
e.length !== 0 && e.forEach((i) => {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
237
|
+
var f;
|
|
238
|
+
const l = this.getCurrentVisibleState(i), t = (f = i.__Object__) != null ? f : {
|
|
239
|
+
timeoutId: void 0,
|
|
240
|
+
inAnimation: !0
|
|
241
|
+
};
|
|
242
|
+
if (i.__Object__ = t, !l && i.screenPosition ? (t.inAnimation = !0, t.timeoutId = setTimeout(() => {
|
|
243
|
+
this.getCurrentVisibleState(i) || (t.inAnimation = !1, i.screenPosition = null);
|
|
244
|
+
}, 1e3)) : t.timeoutId && (t.inAnimation = !1, clearTimeout(t.timeoutId)), !l && !t.inAnimation)
|
|
242
245
|
return;
|
|
243
|
-
}
|
|
244
|
-
clearTimeout(t);
|
|
245
246
|
const n = this.getTagProject(i);
|
|
246
|
-
|
|
247
|
-
i.screenPosition = null;
|
|
248
|
-
return;
|
|
249
|
-
}
|
|
250
|
-
i.screenPosition = { leftPercent: (n.x + 1) / 2 * 100, topPercent: (-n.y + 1) / 2 * 100 };
|
|
247
|
+
n ? i.screenPosition = { leftPercent: (n.x + 1) / 2 * 100, topPercent: (-n.y + 1) / 2 * 100 } : i.screenPosition = null;
|
|
251
248
|
});
|
|
252
249
|
}
|
|
253
250
|
setVisible(e) {
|
|
@@ -269,7 +266,7 @@ class Je extends q {
|
|
|
269
266
|
* @description 一个点的标签
|
|
270
267
|
*/
|
|
271
268
|
getTagProject(e) {
|
|
272
|
-
const i =
|
|
269
|
+
const i = x(e);
|
|
273
270
|
if (!i)
|
|
274
271
|
return;
|
|
275
272
|
const { x: l, y: t, z: n } = i.project(this.five.camera);
|
|
@@ -278,36 +275,36 @@ class Je extends q {
|
|
|
278
275
|
}
|
|
279
276
|
/** 通过射线检测标签可用性 */
|
|
280
277
|
getTagEnableByIntersect(e, i) {
|
|
281
|
-
var o, r,
|
|
282
|
-
const l =
|
|
278
|
+
var o, r, c, v, a;
|
|
279
|
+
const l = R(R((o = this.getTagConfig(e).visibleConfig) != null ? o : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, n = b(this.five.getCurrentState().mode) ? this.getObserverPosition(t) : this.five.camera.position;
|
|
283
280
|
if (n === void 0)
|
|
284
281
|
return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
|
|
285
|
-
const
|
|
282
|
+
const f = W(
|
|
286
283
|
(() => {
|
|
287
|
-
var
|
|
288
|
-
const
|
|
289
|
-
return
|
|
284
|
+
var h;
|
|
285
|
+
const d = (h = l.checkPoints) != null ? h : "center";
|
|
286
|
+
return d === "center" ? x(e) : d === "corner" ? z(e) : Array.isArray(d) ? d : [];
|
|
290
287
|
})()
|
|
291
288
|
);
|
|
292
|
-
let s = 0,
|
|
293
|
-
for (const
|
|
294
|
-
const
|
|
295
|
-
|
|
296
|
-
const
|
|
297
|
-
if (!
|
|
289
|
+
let s = 0, u = 0;
|
|
290
|
+
for (const d of f) {
|
|
291
|
+
const h = new j.Vector3().subVectors(d, n).normalize();
|
|
292
|
+
I.set(n, h);
|
|
293
|
+
const U = n.distanceTo(d), [y] = this.five.model.intersectRaycaster(I), P = (() => {
|
|
294
|
+
if (!D(e))
|
|
298
295
|
return;
|
|
299
|
-
const
|
|
300
|
-
var
|
|
301
|
-
return (
|
|
302
|
-
}).filter(
|
|
303
|
-
return
|
|
304
|
-
})(),
|
|
305
|
-
Math.min((
|
|
306
|
-
const
|
|
307
|
-
if (s >=
|
|
296
|
+
const A = this.tags.filter(D).map((V) => {
|
|
297
|
+
var T;
|
|
298
|
+
return (T = V.model) == null ? void 0 : T.object;
|
|
299
|
+
}).filter(H), [S] = I.intersectObjects(A, !0);
|
|
300
|
+
return S;
|
|
301
|
+
})(), _ = (r = l.distanceAccuracy) != null ? r : 0.01;
|
|
302
|
+
Math.min((c = y == null ? void 0 : y.distance) != null ? c : 1 / 0, (v = P == null ? void 0 : P.distance) != null ? v : 1 / 0) + _ >= U ? s++ : u++;
|
|
303
|
+
const F = (a = l.needPassed) != null ? a : 1;
|
|
304
|
+
if (s >= F)
|
|
308
305
|
return { value: !0 };
|
|
309
306
|
}
|
|
310
|
-
return
|
|
307
|
+
return u === 0 ? { value: !0 } : {
|
|
311
308
|
value: !1,
|
|
312
309
|
reason: {
|
|
313
310
|
type: "intersectRaycaster check failed",
|
|
@@ -318,13 +315,10 @@ class Je extends q {
|
|
|
318
315
|
}
|
|
319
316
|
/** 检测是否匹配当前楼层 */
|
|
320
317
|
getVisibleByFloorIndex(e) {
|
|
321
|
-
var n,
|
|
318
|
+
var n, f, s, u, o, r, c;
|
|
322
319
|
let i = 0;
|
|
323
320
|
const l = (n = e.fiveState) == null ? void 0 : n.panoIndex;
|
|
324
|
-
l !== void 0 ? i = (
|
|
325
|
-
this.five.work.observers,
|
|
326
|
-
(f = (r = (c = (s = e.model) == null ? void 0 : s.object) == null ? void 0 : c.position) != null ? r : (o = e.mediaPlane) == null ? void 0 : o.position) != null ? f : I(e)
|
|
327
|
-
);
|
|
321
|
+
l !== void 0 ? i = (f = this.work.observers[l]) == null ? void 0 : f.floorIndex : i = q(this.work, (c = (r = (u = (s = e.model) == null ? void 0 : s.object) == null ? void 0 : u.position) != null ? r : (o = e.mediaPlane) == null ? void 0 : o.position) != null ? c : x(e));
|
|
328
322
|
const t = this.five.model.shownFloor;
|
|
329
323
|
return t === null || t === i;
|
|
330
324
|
}
|