@realsee/dnalogel 3.10.2 → 3.11.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/CruisePlugin/BaseController.d.ts +8 -0
- package/dist/CruisePlugin/Work.d.ts +1 -1
- package/dist/GuideLinePlugin/Controller.d.ts +5 -1
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +2 -3
- package/dist/base/BasePlugin.d.ts +1 -1
- package/dist/index.cjs.js +32 -32
- package/dist/index.js +1286 -1225
- package/dist/index.umd.js +39 -39
- package/dist/shared-utils/Utils/BaseUtil.d.ts +5 -0
- package/dist/shared-utils/Utils/WorkUtil.d.ts +33 -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 +730 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +693 -0
- package/docs/classes/CSS3DRender.html +777 -0
- package/docs/classes/GuideLineItem.GuideLineItem.html +480 -0
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +860 -0
- package/docs/classes/Magnifier.html +484 -0
- package/docs/classes/ModelRoomLabelController.html +402 -0
- package/docs/classes/MoveController.html +653 -0
- package/docs/classes/Object3DHelperController.html +644 -0
- package/docs/classes/PaintBrush.html +506 -0
- package/docs/classes/PanoMeasurePluginLine.html +526 -0
- package/docs/classes/PanoMeasurePluginModel.html +575 -0
- package/docs/classes/PanoMeasurePluginPoint.html +366 -0
- package/docs/classes/PanoMeasurePluginPolyline.html +571 -0
- package/docs/classes/PanoTagPluginController.html +1131 -0
- package/docs/classes/Util.BetterTween.html +420 -0
- package/docs/classes/Util.Interval.html +436 -0
- package/docs/classes/Util.LineSegments.html +388 -0
- package/docs/classes/Util.Magnifier.html +507 -0
- package/docs/classes/Util.Object3D.html +410 -0
- package/docs/classes/Util.PointDomHelper.html +411 -0
- package/docs/classes/Util.PointHelper.html +402 -0
- package/docs/classes/Util.PointSelectorHelper.html +458 -0
- package/docs/classes/Util.Rectangle.html +459 -0
- package/docs/classes/WalkController.html +672 -0
- package/docs/enums/CameraMovementEffect.html +314 -0
- package/docs/enums/ContentType.html +460 -0
- package/docs/enums/DIRECTION.html +324 -0
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +324 -0
- package/docs/enums/DimensionType.html +314 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +317 -0
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +324 -0
- package/docs/enums/PaintBrushTypeEnum.html +317 -0
- package/docs/enums/PointType.html +314 -0
- package/docs/enums/Rotation.html +321 -0
- package/docs/functions/AreaMakerPlugin.html +294 -0
- package/docs/functions/CSS3DRenderPlugin.html +292 -0
- package/docs/functions/CameraMovementPlugin.html +297 -0
- package/docs/functions/CruisePlugin.html +294 -0
- package/docs/functions/CurrentPanoImagePlugin.html +294 -0
- package/docs/functions/GuideLinePlugin.html +294 -0
- package/docs/functions/ItemLabelPlugin.html +294 -0
- package/docs/functions/MapviewFloorplanPlugin.html +294 -0
- package/docs/functions/ModelChassisCompassPlugin.html +297 -0
- package/docs/functions/ModelEntryDoorGuidePlugin.html +297 -0
- package/docs/functions/ModelFloorplanPlugin.html +294 -0
- package/docs/functions/ModelItemLabelPlugin.html +294 -0
- package/docs/functions/ModelRoomLabelPlugin.html +292 -0
- package/docs/functions/ModelTVVideoPlugin.html +294 -0
- package/docs/functions/ModelViewPlugin.html +297 -0
- package/docs/functions/MovePlugin.html +294 -0
- package/docs/functions/Object3DHelperPlugin.html +292 -0
- package/docs/functions/PanoCompassPlugin.html +294 -0
- package/docs/functions/PanoCursorRaycasterPlugin.html +298 -0
- package/docs/functions/PanoDoorLabelPlugin.html +294 -0
- package/docs/functions/PanoFloorplanRadarPlugin.html +294 -0
- package/docs/functions/PanoMeasurePlugin.html +294 -0
- package/docs/functions/PanoRulerPlugin.html +297 -0
- package/docs/functions/PanoRulerProPlugin.html +297 -0
- package/docs/functions/PanoSpatialTagPlugin.html +297 -0
- package/docs/functions/PanoTagPlugin.html +299 -0
- package/docs/functions/PanoVideoPlugin.html +303 -0
- package/docs/functions/PipelinePlugin.html +292 -0
- package/docs/functions/TopviewFloorplanPlugin.html +294 -0
- package/docs/functions/Util.absoluteUrl.html +330 -0
- package/docs/functions/Util.checkFiveModelLoaded.html +333 -0
- package/docs/functions/Util.equal.html +342 -0
- package/docs/functions/Util.getCoordsFromClient.html +332 -0
- package/docs/functions/Util.getCoordsFromElement.html +332 -0
- package/docs/functions/Util.getFrameTime.html +324 -0
- package/docs/functions/Util.getIntersectFromRelativePosition.html +332 -0
- package/docs/functions/Util.getRaycasterFromFivePointer.html +332 -0
- package/docs/functions/Util.isAbsoluteURL.html +325 -0
- package/docs/functions/Util.isModelLike.html +325 -0
- package/docs/functions/Util.isNil.html +333 -0
- package/docs/functions/Util.isPanoramaLike.html +325 -0
- package/docs/functions/Util.nextFrame.html +338 -0
- package/docs/functions/Util.notNil.html +333 -0
- package/docs/functions/Util.requestAnimationFrameInterval.html +354 -0
- package/docs/functions/Util.tweenProgress.html +327 -0
- package/docs/functions/Util.uuid.html +323 -0
- package/docs/functions/pluginFlag.html +292 -0
- package/docs/index.html +358 -0
- package/docs/interfaces/AddTagConfig.html +307 -0
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +334 -0
- package/docs/interfaces/AreaMakerPluginType.Config.html +339 -0
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +625 -0
- package/docs/interfaces/AreaMakerPluginType.Params.html +338 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +396 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +381 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +338 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +331 -0
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +330 -0
- package/docs/interfaces/AreaMakerPluginType.State.html +359 -0
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +453 -0
- package/docs/interfaces/CSS3DRenderPluginState.html +329 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +362 -0
- package/docs/interfaces/CruisePluginTypes.Config.html +363 -0
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +365 -0
- package/docs/interfaces/CruisePluginTypes.EventMap.html +723 -0
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +389 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +425 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +415 -0
- package/docs/interfaces/CruisePluginTypes.PluginData.html +355 -0
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +323 -0
- package/docs/interfaces/CruisePluginTypes.PluginState.html +391 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +386 -0
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +525 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +327 -0
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +319 -0
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +341 -0
- package/docs/interfaces/EventMap.html +546 -0
- package/docs/interfaces/FloorplanBounding.html +336 -0
- package/docs/interfaces/FloorplanData.html +339 -0
- package/docs/interfaces/FloorplanEntrance.html +364 -0
- package/docs/interfaces/FloorplanExtraObject.html +354 -0
- package/docs/interfaces/FloorplanExtraObject3D.html +343 -0
- package/docs/interfaces/FloorplanFloorData.html +332 -0
- package/docs/interfaces/FloorplanImagePosition.html +318 -0
- package/docs/interfaces/FloorplanObserver.html +336 -0
- package/docs/interfaces/FloorplanOutlineItem.html +332 -0
- package/docs/interfaces/FloorplanPosition.html +318 -0
- package/docs/interfaces/FloorplanRoomItem.html +383 -0
- package/docs/interfaces/FloorplanRoomLabelItem.html +324 -0
- package/docs/interfaces/FloorplanServerBounding.html +336 -0
- package/docs/interfaces/FloorplanServerComputedData.html +335 -0
- package/docs/interfaces/FloorplanServerData.html +318 -0
- package/docs/interfaces/FloorplanServerDoorItem.html +335 -0
- package/docs/interfaces/FloorplanServerDoorPosition.html +321 -0
- package/docs/interfaces/FloorplanServerEntrance.html +364 -0
- package/docs/interfaces/FloorplanServerFloorData.html +332 -0
- package/docs/interfaces/FloorplanServerImagePosition.html +318 -0
- package/docs/interfaces/FloorplanServerObserver.html +336 -0
- package/docs/interfaces/FloorplanServerOutlineItem.html +332 -0
- package/docs/interfaces/FloorplanServerPosition.html +318 -0
- package/docs/interfaces/FloorplanServerRoomItem.html +395 -0
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +324 -0
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +327 -0
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +366 -0
- package/docs/interfaces/GuideLinePluginType.EventMap.html +530 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +361 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +352 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +419 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +341 -0
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +351 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +487 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +348 -0
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +487 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +313 -0
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +334 -0
- package/docs/interfaces/GuideLinePluginType.PluginState.html +359 -0
- package/docs/interfaces/GuideLinePluginType.Route.html +375 -0
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +357 -0
- package/docs/interfaces/HelperOffset.html +336 -0
- package/docs/interfaces/ImagePlaneGroup.html +310 -0
- package/docs/interfaces/ItemLabelPluginData.html +307 -0
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +392 -0
- package/docs/interfaces/ItemLabelPluginParametersType.html +328 -0
- package/docs/interfaces/MinMax.html +314 -0
- package/docs/interfaces/ModelChassisCompassPluginData.html +314 -0
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +350 -0
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +314 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +321 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +358 -0
- package/docs/interfaces/ModelItemLabelPluginData.html +307 -0
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +392 -0
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +314 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +307 -0
- package/docs/interfaces/ModelTVVideoPluginData.html +328 -0
- package/docs/interfaces/ModelTVVideoPluginExportType.html +352 -0
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +307 -0
- package/docs/interfaces/ModelViewPluginExportType.html +420 -0
- package/docs/interfaces/Object3DHelperState.html +321 -0
- package/docs/interfaces/ObjectHelperControllers.html +328 -0
- package/docs/interfaces/PaintBrushAction.html +367 -0
- package/docs/interfaces/PaintBrushConfigs.html +365 -0
- package/docs/interfaces/PaintBrushState.html +349 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +429 -0
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +286 -0
- package/docs/interfaces/PanoMeasureParameterType.html +453 -0
- package/docs/interfaces/PanoMeasurePluginLineJson.html +321 -0
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +318 -0
- package/docs/interfaces/PanoMeasurePluginPointJson.html +314 -0
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +324 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +381 -0
- package/docs/interfaces/PanoRulerPluginOptions.html +330 -0
- package/docs/interfaces/PanoRulerPluginParameterType.html +321 -0
- package/docs/interfaces/PanoRulerProPluginExportType.html +357 -0
- package/docs/interfaces/PanoRulerProPluginOptions.html +327 -0
- package/docs/interfaces/PanoRulerProPluginParameterType.html +314 -0
- package/docs/interfaces/PanoRulerProPluginState.html +321 -0
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +300 -0
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +289 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +357 -0
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +339 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +435 -0
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +335 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +356 -0
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +342 -0
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +335 -0
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +327 -0
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +345 -0
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +318 -0
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +424 -0
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +318 -0
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +353 -0
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +372 -0
- package/docs/interfaces/Point.html +321 -0
- package/docs/interfaces/Room.html +328 -0
- package/docs/interfaces/RoomInfo.html +314 -0
- package/docs/interfaces/RoomLabel.html +390 -0
- package/docs/interfaces/RoomRules.html +289 -0
- package/docs/interfaces/Rooms.html +289 -0
- package/docs/interfaces/Scissor.html +348 -0
- package/docs/interfaces/State.html +335 -0
- package/docs/interfaces/TagCacheInterface.html +366 -0
- package/docs/interfaces/TagConfig.html +569 -0
- package/docs/interfaces/TagGLTFObjectGroup.html +310 -0
- package/docs/interfaces/TagIconUrl.html +367 -0
- package/docs/interfaces/TagObjectGroup.html +310 -0
- package/docs/interfaces/TagStyle.html +320 -0
- package/docs/interfaces/Tags.html +2824 -0
- package/docs/interfaces/TemporaryState.html +307 -0
- package/docs/interfaces/Util.MagnifierParameter.html +395 -0
- package/docs/interfaces/Util.MouseGroupParameter.html +354 -0
- package/docs/interfaces/Util.PointIntersection.html +369 -0
- package/docs/modules/AreaMakerPluginType.html +329 -0
- package/docs/modules/CruisePluginTypes.html +332 -0
- package/docs/modules/CurrentPanoImagePluginType.html +301 -0
- package/docs/modules/GuideLineItem.html +293 -0
- package/docs/modules/GuideLineModeItem.html +298 -0
- package/docs/modules/GuideLinePluginType.html +354 -0
- package/docs/modules/PanoVideoPluginType.html +305 -0
- package/docs/modules/Util.html +355 -0
- package/docs/modules.html +562 -0
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +336 -0
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +324 -0
- package/docs/types/AreaMakerPluginType.PluginData.html +306 -0
- package/docs/types/AreaMakerPluginType.ServerData.html +306 -0
- package/docs/types/ArrayPosition.html +283 -0
- package/docs/types/AudioAppearance.html +283 -0
- package/docs/types/AudioTagTypeConfigKey.html +283 -0
- package/docs/types/CSS3DRenderExportType.html +283 -0
- package/docs/types/CSS3DRenderPluginExportType.html +283 -0
- package/docs/types/CSS3DRenderPluginParameterType.html +283 -0
- package/docs/types/ClassFunctionParameters.html +290 -0
- package/docs/types/Color.html +283 -0
- package/docs/types/ContentTypeConfigKey.html +283 -0
- package/docs/types/ContentTypeConfigKeySplit.html +283 -0
- package/docs/types/ContentTypeMap.html +283 -0
- package/docs/types/Create3DDomContainerReturnType.html +283 -0
- package/docs/types/Create3DElementReturnType.html +283 -0
- package/docs/types/CruisePluginExportType.html +283 -0
- package/docs/types/CruisePluginTypes.CruiseData.html +322 -0
- package/docs/types/CruisePluginTypes.MoveEffect.html +299 -0
- package/docs/types/CurrentPanoImagePluginExportType.html +283 -0
- package/docs/types/DeprecatedMediaPlaneProperty.html +295 -0
- package/docs/types/DeprecatedTagProperty.html +298 -0
- package/docs/types/Direction-1.html +283 -0
- package/docs/types/Direction4.html +283 -0
- package/docs/types/ElementRenderer.html +307 -0
- package/docs/types/FloorplanRuleLabels.html +286 -0
- package/docs/types/FloorplanServerRuleLabels.html +283 -0
- package/docs/types/GuideLinePluginExportType.html +283 -0
- package/docs/types/GuideLinePluginType.GuideLineItem.html +356 -0
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +377 -0
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +310 -0
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +313 -0
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +313 -0
- package/docs/types/GuideLinePluginType.PathItem.html +313 -0
- package/docs/types/GuideLinePluginType.PluginData.html +322 -0
- package/docs/types/HelperEventMap.html +521 -0
- package/docs/types/LoadTagConfig.html +283 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +283 -0
- package/docs/types/MapviewFloorplanPluginReturnType.html +283 -0
- package/docs/types/MediaData.html +304 -0
- package/docs/types/MediaStore.html +288 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +290 -0
- package/docs/types/ModelFloorplanPluginParameterType.html +283 -0
- package/docs/types/ModelFloorplanPluginReturnType.html +283 -0
- package/docs/types/ModelId.html +283 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +283 -0
- package/docs/types/ModelRoomLabelPluginReturnType.html +283 -0
- package/docs/types/MoveArgs.html +293 -0
- package/docs/types/MoveOpts.html +291 -0
- package/docs/types/Object3DHelperEventMap.html +376 -0
- package/docs/types/ObjectFit.html +283 -0
- package/docs/types/PaintBrushEventMap.html +314 -0
- package/docs/types/PanoCompassPluginData.html +283 -0
- package/docs/types/PanoCompassPluginExportType.html +283 -0
- package/docs/types/PanoCompassPluginParameterType.html +283 -0
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +283 -0
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +283 -0
- package/docs/types/PanoIndex.html +283 -0
- package/docs/types/PanoMeasurePluginEvent.html +283 -0
- package/docs/types/PanoMeasureReturnType.html +283 -0
- package/docs/types/PanoSpatialTagPluginId.html +283 -0
- package/docs/types/PanoTagPluginExportInterface.html +283 -0
- package/docs/types/PanoTagPluginParamsInterface.html +283 -0
- package/docs/types/PanoVideoPluginParameterType.html +283 -0
- package/docs/types/PanoVideoPluginReturnType.html +283 -0
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +291 -0
- package/docs/types/PipelinePluginParameterType.html +283 -0
- package/docs/types/PipelinePluginReturnType.html +283 -0
- package/docs/types/PlaneTag.html +291 -0
- package/docs/types/Point2DTag.html +291 -0
- package/docs/types/Point3DTag.html +291 -0
- package/docs/types/PointTag.html +288 -0
- package/docs/types/PointTagInstance.html +288 -0
- package/docs/types/Position.html +283 -0
- package/docs/types/RotateArgs.html +295 -0
- package/docs/types/RotateOpts.html +291 -0
- package/docs/types/RuleLabelsKey.html +283 -0
- package/docs/types/RuleLabelsValue.html +283 -0
- package/docs/types/StickType.html +283 -0
- package/docs/types/Tag.html +349 -0
- package/docs/types/Tag2D.html +291 -0
- package/docs/types/Tag3D.html +291 -0
- package/docs/types/TagConfigByKey.html +288 -0
- package/docs/types/TagContentType.html +283 -0
- package/docs/types/TagContentTypeMapping.html +283 -0
- package/docs/types/TagDimensionType.html +285 -0
- package/docs/types/TagElement.html +293 -0
- package/docs/types/TagEvents.html +336 -0
- package/docs/types/TagGLTFObject.html +306 -0
- package/docs/types/TagHooks.html +283 -0
- package/docs/types/TagId.html +283 -0
- package/docs/types/TagInstance.html +361 -0
- package/docs/types/TagPointType.html +286 -0
- package/docs/types/TagRendererMap.html +290 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +283 -0
- package/docs/types/TopviewFloorplanPluginReturnType.html +283 -0
- package/docs/types/WorkCode.html +283 -0
- package/docs/variables/FLOOR_TYPE_MAP.html +293 -0
- package/docs/variables/PLUGIN.html +283 -0
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +286 -0
- package/docs/variables/ROOM_TYPE_MAP.html +293 -0
- package/docs/variables/defaultGlobalConfig.html +283 -0
- package/docs/variables/itemLabelPluginServerParams.html +290 -0
- package/docs/variables/modelItemLabelPluginServerParams.html +290 -0
- package/docs/variables/modelRoomLabelPluginServerParams.html +290 -0
- package/libs/CruisePlugin/BaseController.d.ts +8 -0
- package/libs/CruisePlugin/BaseController.js +57 -52
- package/libs/CruisePlugin/Move.js +5 -2
- package/libs/CruisePlugin/Work.d.ts +1 -1
- package/libs/CruisePlugin/Work.js +178 -177
- package/libs/CruisePlugin/index.js +8 -6
- package/libs/GuideLinePlugin/Controller.d.ts +5 -1
- package/libs/GuideLinePlugin/Controller.js +44 -35
- package/libs/GuideLinePlugin/GuideLineItem.js +4 -2
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +61 -61
- package/libs/GuideLinePlugin/GuideLineModeItem.js +4 -2
- package/libs/GuideLinePlugin/index.js +21 -19
- package/libs/PanoTagPlugin/controller/TagComputer.js +24 -22
- package/libs/PanoTagPlugin/controller/TagRender.js +4 -2
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +2 -3
- package/libs/PanoTagPlugin/controller/TagUtil.js +94 -104
- package/libs/PanoTagPlugin/controller/index.js +7 -5
- package/libs/PanoTagPlugin/index.js +13 -11
- package/libs/base/BasePlugin.d.ts +1 -1
- package/libs/base/BasePlugin.js +2 -2
- package/libs/index.js +127 -125
- package/libs/shared-utils/Utils/BaseUtil.d.ts +5 -0
- package/libs/shared-utils/Utils/BaseUtil.js +12 -0
- package/libs/shared-utils/Utils/WorkUtil.d.ts +33 -0
- package/libs/shared-utils/Utils/WorkUtil.js +68 -0
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var c = (s, o, t) => o in s ?
|
|
1
|
+
var S = Object.defineProperty;
|
|
2
|
+
var _ = Object.getOwnPropertySymbols;
|
|
3
|
+
var V = Object.prototype.hasOwnProperty, M = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var c = (s, o, t) => o in s ? S(s, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[o] = t, f = (s, o) => {
|
|
5
5
|
for (var t in o || (o = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
|
|
6
|
+
V.call(o, t) && c(s, t, o[t]);
|
|
7
|
+
if (_)
|
|
8
|
+
for (var t of _(o))
|
|
9
|
+
M.call(o, t) && c(s, t, o[t]);
|
|
10
10
|
return s;
|
|
11
11
|
};
|
|
12
12
|
var h = (s, o, t) => (c(s, typeof o != "symbol" ? o + "" : o, t), t);
|
|
@@ -26,13 +26,14 @@ var u = (s, o, t) => new Promise((i, a) => {
|
|
|
26
26
|
}, r = (p) => p.done ? i(p.value) : Promise.resolve(p.value).then(m, e);
|
|
27
27
|
r((t = t.apply(s, o)).next());
|
|
28
28
|
});
|
|
29
|
-
import { Controller as
|
|
30
|
-
import { equal as
|
|
31
|
-
import { GuideLineItem as
|
|
32
|
-
import
|
|
33
|
-
import { objectAssignDeepExports as
|
|
34
|
-
import * as
|
|
35
|
-
import { waitFiveLoaded as
|
|
29
|
+
import { Controller as O } from "../base/BasePluginWithData.js";
|
|
30
|
+
import { equal as U } from "../shared-utils/equal.js";
|
|
31
|
+
import { GuideLineItem as x } from "./GuideLineItem/index.js";
|
|
32
|
+
import N from "../CruisePlugin/Work.js";
|
|
33
|
+
import { objectAssignDeepExports as C } from "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
34
|
+
import * as T from "three";
|
|
35
|
+
import { waitFiveLoaded as W } from "../shared-utils/five/fiveLoaded.js";
|
|
36
|
+
import { WorkUtil as $ } from "../shared-utils/Utils/WorkUtil.js";
|
|
36
37
|
import "../base/BasePlugin.js";
|
|
37
38
|
import "../shared-utils/Subscribe.js";
|
|
38
39
|
import "hammerjs";
|
|
@@ -190,23 +191,25 @@ import "./utils/index.js";
|
|
|
190
191
|
import "../shared-utils/to.js";
|
|
191
192
|
import "../shared-utils/five/changeMode.js";
|
|
192
193
|
import "../shared-utils/nearlyEqual.js";
|
|
193
|
-
import "../CruisePlugin/
|
|
194
|
+
import "../CruisePlugin/Move.js";
|
|
195
|
+
import "../CruisePlugin/BaseController.js";
|
|
196
|
+
import "../shared-utils/Utils/BaseUtil.js";
|
|
197
|
+
import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
198
|
+
import "../shared-utils/vectorToCoordinate.js";
|
|
199
|
+
import "../shared-utils/formatRad.js";
|
|
194
200
|
import "./index.js";
|
|
195
201
|
import "./Controller.js";
|
|
196
202
|
import "../CruisePlugin/utils/coordinatesAngle.js";
|
|
197
203
|
import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
198
204
|
import "../CruisePlugin/utils/safeCall.js";
|
|
199
205
|
import "../CruisePlugin/utils/sleep.js";
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
import "../CruisePlugin/BaseController.js";
|
|
203
|
-
import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
204
|
-
const b = "GuideLinePlugin", g = `${b}`, Yr = (s) => `${g}--${s}`;
|
|
205
|
-
class Zr extends x {
|
|
206
|
+
const b = "GuideLinePlugin", g = `${b}`, ie = (s) => `${g}--${s}`;
|
|
207
|
+
class re extends O {
|
|
206
208
|
constructor(t, i) {
|
|
207
209
|
super(t, i);
|
|
208
210
|
h(this, "name", b);
|
|
209
211
|
h(this, "cruisePlugin");
|
|
212
|
+
h(this, "workUtils", new $(this.five));
|
|
210
213
|
/** GuideLineItem 索引 */
|
|
211
214
|
h(this, "itemMap", /* @__PURE__ */ new Map());
|
|
212
215
|
h(this, "state", {
|
|
@@ -221,7 +224,13 @@ class Zr extends x {
|
|
|
221
224
|
h(this, "disposedErrorLog", () => {
|
|
222
225
|
console.error(`${g} is disposed`);
|
|
223
226
|
});
|
|
224
|
-
this._config = i != null ? i : {}, this.cruisePlugin = new
|
|
227
|
+
this._config = i != null ? i : {}, this.cruisePlugin = new N(t), Object.assign(window, { [`__${b}_DEBUG__`]: this });
|
|
228
|
+
}
|
|
229
|
+
set workCode(t) {
|
|
230
|
+
this.workUtils.workCode = t;
|
|
231
|
+
}
|
|
232
|
+
get workCode() {
|
|
233
|
+
return this.workUtils.workCode;
|
|
225
234
|
}
|
|
226
235
|
get config() {
|
|
227
236
|
return this._config;
|
|
@@ -231,7 +240,7 @@ class Zr extends x {
|
|
|
231
240
|
}
|
|
232
241
|
load(t, i, a = !0) {
|
|
233
242
|
return u(this, null, function* () {
|
|
234
|
-
var v,
|
|
243
|
+
var v, w, I, E, y, D, k;
|
|
235
244
|
if (this.disposed)
|
|
236
245
|
return;
|
|
237
246
|
const m = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, e = yield this.formatData(t);
|
|
@@ -240,14 +249,14 @@ class Zr extends x {
|
|
|
240
249
|
panorama_style: {
|
|
241
250
|
visible: !!(!e.lines && e.routes),
|
|
242
251
|
unit_length: (v = r == null ? void 0 : r.unitHeight) != null ? v : 0.4,
|
|
243
|
-
width: (
|
|
244
|
-
texture: { url: (
|
|
252
|
+
width: (w = r == null ? void 0 : r.unitWidth) != null ? w : 0.6,
|
|
253
|
+
texture: { url: (I = r == null ? void 0 : r.arrowTextureUrl) != null ? I : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png" }
|
|
245
254
|
}
|
|
246
255
|
}, d = (y = (E = e.routes) == null ? void 0 : E.map((l) => {
|
|
247
|
-
var
|
|
248
|
-
return
|
|
249
|
-
})) != null ? y : [],
|
|
250
|
-
yield
|
|
256
|
+
var L;
|
|
257
|
+
return C({}, n, { id: (L = l.id) != null ? L : Date.now(), pano_group: l.panoIndexList });
|
|
258
|
+
})) != null ? y : [], A = (k = (D = e.lines) == null ? void 0 : D.map((l) => C({}, n, l))) != null ? k : [], G = [...d, ...A];
|
|
259
|
+
yield W(this.five), this.clear(), G.forEach((l) => {
|
|
251
260
|
this.addGuideLineItem(l);
|
|
252
261
|
}), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: a }), this.hooks.emit("dataLoaded", e), console.debug(`${g} loaded`, e);
|
|
253
262
|
});
|
|
@@ -286,13 +295,13 @@ class Zr extends x {
|
|
|
286
295
|
if (this.disposed)
|
|
287
296
|
return this.disposedErrorLog();
|
|
288
297
|
const a = f({}, this.state);
|
|
289
|
-
this.state = f(f({}, this.state), t), t.visible !== void 0 && t.visible !== a.visible && this.handleVisible(t.visible, i == null ? void 0 : i.userAction), t.enabled !== void 0 && t.enabled !== a.enabled && this.handleEnable(t.enabled, i == null ? void 0 : i.userAction),
|
|
298
|
+
this.state = f(f({}, this.state), t), t.visible !== void 0 && t.visible !== a.visible && this.handleVisible(t.visible, i == null ? void 0 : i.userAction), t.enabled !== void 0 && t.enabled !== a.enabled && this.handleEnable(t.enabled, i == null ? void 0 : i.userAction), U(a, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: a, userAction: (m = i == null ? void 0 : i.userAction) != null ? m : !0 }), this.five.needsRender = !0);
|
|
290
299
|
}
|
|
291
300
|
/** 添加一个 GuideLineItem */
|
|
292
301
|
addGuideLineItem(t) {
|
|
293
302
|
const i = t.render_id || t.id, a = this.itemMap.get(i);
|
|
294
303
|
a && this.removeGuideLineItem(a);
|
|
295
|
-
const m = new
|
|
304
|
+
const m = new x({ five: this.five, id: i, plugin: this });
|
|
296
305
|
return this.itemMap.set(i, m), t && m.setData(t), this.heightOffset += 1e-4, m.modelItem.setHeightOffset(this.heightOffset), m.panoramaItem.setHeightOffset(this.heightOffset), m;
|
|
297
306
|
}
|
|
298
307
|
/** 获取 Plugin 内的 GuideLineItem */
|
|
@@ -310,7 +319,7 @@ class Zr extends x {
|
|
|
310
319
|
return Array.isArray(e) && e.every((r) => typeof r == "number");
|
|
311
320
|
}
|
|
312
321
|
function a(e, r) {
|
|
313
|
-
return new
|
|
322
|
+
return new T.Vector3().fromArray(e).distanceTo(new T.Vector3().fromArray(r)) < 0.01;
|
|
314
323
|
}
|
|
315
324
|
function m(e) {
|
|
316
325
|
var p;
|
|
@@ -344,6 +353,6 @@ class Zr extends x {
|
|
|
344
353
|
}
|
|
345
354
|
}
|
|
346
355
|
export {
|
|
347
|
-
|
|
348
|
-
|
|
356
|
+
re as default,
|
|
357
|
+
ie as pluginFlag
|
|
349
358
|
};
|
|
@@ -5,7 +5,7 @@ import "@realsee/five";
|
|
|
5
5
|
import "../shared-utils/five/changeMode.js";
|
|
6
6
|
import "../CruisePlugin/Move.js";
|
|
7
7
|
import "../CruisePlugin/Work.js";
|
|
8
|
-
import { GuideLineItem as
|
|
8
|
+
import { GuideLineItem as co } from "./GuideLineItem/index.js";
|
|
9
9
|
import "three";
|
|
10
10
|
import "./utils/createLineGeometry.js";
|
|
11
11
|
import "../vendor/polyline-normals/index.js";
|
|
@@ -76,6 +76,8 @@ import "../PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
|
76
76
|
import "../shared-utils/typescript/entries.js";
|
|
77
77
|
import "../shared-utils/url/getUrl.js";
|
|
78
78
|
import "../shared-utils/five/transformPosition.js";
|
|
79
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
80
|
+
import "../shared-utils/Utils/BaseUtil.js";
|
|
79
81
|
import "../shared-utils/five/getFloorIndex.js";
|
|
80
82
|
import "../shared-utils/safeObj.js";
|
|
81
83
|
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
@@ -174,5 +176,5 @@ import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
|
174
176
|
import "../CruisePlugin/utils/safeCall.js";
|
|
175
177
|
import "../CruisePlugin/utils/sleep.js";
|
|
176
178
|
export {
|
|
177
|
-
|
|
179
|
+
co as GuideLineItem
|
|
178
180
|
};
|
|
@@ -2,26 +2,26 @@ var P = Object.defineProperty, V = Object.defineProperties;
|
|
|
2
2
|
var T = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var k = Object.getOwnPropertySymbols;
|
|
4
4
|
var F = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var v = (h, e, t) => e in h ? P(h, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[e] = t, d = (h, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
|
-
F.call(e, t) &&
|
|
7
|
+
F.call(e, t) && v(h, t, e[t]);
|
|
8
8
|
if (k)
|
|
9
9
|
for (var t of k(e))
|
|
10
|
-
L.call(e, t) &&
|
|
10
|
+
L.call(e, t) && v(h, t, e[t]);
|
|
11
11
|
return h;
|
|
12
12
|
}, p = (h, e) => V(h, T(e));
|
|
13
|
-
var i = (h, e, t) => (
|
|
13
|
+
var i = (h, e, t) => (v(h, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
14
|
import * as n from "three";
|
|
15
|
-
import { logWarning as
|
|
16
|
-
import { createLineGeometry as
|
|
17
|
-
import { isPanoramaLike as M, isModelLike as
|
|
15
|
+
import { logWarning as S, logError as U } from "../../shared-utils/log.js";
|
|
16
|
+
import { createLineGeometry as x } from "../utils/createLineGeometry.js";
|
|
17
|
+
import { isPanoramaLike as M, isModelLike as O } 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 { BetterTween as
|
|
24
|
-
import { loadTexture as
|
|
23
|
+
import { BetterTween as _, tweenProgress as A } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
24
|
+
import { loadTexture as G } from "../../shared-utils/three/loadTexture.js";
|
|
25
25
|
import w from "../../PanoTagPlugin/controller/index.js";
|
|
26
26
|
import E from "../Components/Tag.js";
|
|
27
27
|
import { filterAdjacentDistinct as B } from "../utils/index.js";
|
|
@@ -155,8 +155,8 @@ class N {
|
|
|
155
155
|
i(this, "plugin");
|
|
156
156
|
i(this, "textureHasLoaded", !1);
|
|
157
157
|
i(this, "disposed", !1);
|
|
158
|
-
i(this, "flowAnime", new
|
|
159
|
-
i(this, "flickerAnime",
|
|
158
|
+
i(this, "flowAnime", new _({ progress: 0 }).to({ progress: 1 }).duration(1500).repeat(1 / 0));
|
|
159
|
+
i(this, "flickerAnime", A(300).yoyo(!0).repeat(5));
|
|
160
160
|
/** 缓存 panoGroup 中每个点距离起点的长度 */
|
|
161
161
|
i(this, "cacheLengths", []);
|
|
162
162
|
/** 为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
|
|
@@ -175,7 +175,7 @@ class N {
|
|
|
175
175
|
});
|
|
176
176
|
/** 模型状态变更 */
|
|
177
177
|
i(this, "onFiveModeChange", (e) => {
|
|
178
|
-
this.modeVisible = this.mode === "panorama" ? M(e) :
|
|
178
|
+
this.modeVisible = this.mode === "panorama" ? M(e) : O(e), this.updateVisible();
|
|
179
179
|
});
|
|
180
180
|
i(this, "onFiveModelShownFloorChange", (e) => {
|
|
181
181
|
this.floorVisible = e === null || this.visibleFloorIndexes === null || this.visibleFloorIndexes.includes(e), this.updateVisible();
|
|
@@ -190,17 +190,17 @@ class N {
|
|
|
190
190
|
this.mesh.material.uniforms.vOffset.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
191
191
|
});
|
|
192
192
|
i(this, "onFlickerAnimeUpdate", (e) => {
|
|
193
|
-
var s,
|
|
193
|
+
var s, o, a, l;
|
|
194
194
|
const { progress: t } = e, r = 1 - t;
|
|
195
|
-
this.mesh.material.uniforms.flicker.value = r, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && y(this.startTagContainer.tag) && ((
|
|
195
|
+
this.mesh.material.uniforms.flicker.value = r, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && y(this.startTagContainer.tag) && ((a = this.startTagContainer.app) == null || a.$set(p(d({}, this.startTagContainer.tag.data), {
|
|
196
196
|
opacity: r,
|
|
197
197
|
name: this.name,
|
|
198
|
-
distance: Math.round((
|
|
199
|
-
}))), this.endTagContainer.tag && y(this.endTagContainer.tag) && ((
|
|
198
|
+
distance: Math.round((o = (s = this.curvePath) == null ? void 0 : s.getLength()) != null ? o : 0)
|
|
199
|
+
}))), this.endTagContainer.tag && y(this.endTagContainer.tag) && ((l = this.endTagContainer.app) == null || l.$set(p(d({}, this.endTagContainer.tag.data), { opacity: r })));
|
|
200
200
|
});
|
|
201
|
-
i(this, "logWarning", (e) =>
|
|
202
|
-
i(this, "logError", (e) =>
|
|
203
|
-
var
|
|
201
|
+
i(this, "logWarning", (e) => S("GuideLineModeItem: ", e));
|
|
202
|
+
i(this, "logError", (e) => U("GuideLineModeItem: ", e));
|
|
203
|
+
var o, a;
|
|
204
204
|
this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.startTagContainer = { tag: null, plugin: new w(this.five) }, this.endTagContainer = { tag: null, plugin: new w(this.five) };
|
|
205
205
|
const r = new n.BufferGeometry(), s = new n.ShaderMaterial({
|
|
206
206
|
vertexShader: R,
|
|
@@ -221,7 +221,7 @@ class N {
|
|
|
221
221
|
vOffset: { value: 0 }
|
|
222
222
|
}
|
|
223
223
|
});
|
|
224
|
-
this.mesh = new n.Mesh(r, s), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.updateVisible(), this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveModelShownFloorChange((
|
|
224
|
+
this.mesh = new n.Mesh(r, s), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.updateVisible(), this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveModelShownFloorChange((a = (o = this.five.model) == null ? void 0 : o.shownFloor) != null ? a : null), this.flowAnime.onUpdate(this.onFlowAnimeUpdate), this.flickerAnime.onUpdate(this.onFlickerAnimeUpdate), this.parent.hooks.on("show", this.updateVisible), this.parent.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("show", this.updateVisible), this.plugin.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("enable", this.updateVisible), this.plugin.hooks.on("disable", this.updateVisible), this.plugin.hooks.on("dispose", this.dispose), this.five.on("modeChange", this.onFiveModeChange), this.five.on("modelShownFloorChange", this.onFiveModelShownFloorChange);
|
|
225
225
|
}
|
|
226
226
|
get panoGroup() {
|
|
227
227
|
return this._panoGroup;
|
|
@@ -270,28 +270,28 @@ class N {
|
|
|
270
270
|
return this.logError("setPathByPanoGroup: work is not ready");
|
|
271
271
|
const r = B(e);
|
|
272
272
|
if (this._panoGroup = r, (t == null ? void 0 : t.skipPanoGroup) !== void 0) {
|
|
273
|
-
const
|
|
274
|
-
this.skippedPositions =
|
|
273
|
+
const o = t.skipPanoGroup ? r.map((a) => this.plugin.workUtils.getObserverStandingPosition(a)) : null;
|
|
274
|
+
this.skippedPositions = o;
|
|
275
275
|
}
|
|
276
276
|
const s = this.getPathFromPanoGroup(r, this.five.work, t);
|
|
277
277
|
this.path = s, this.setGeometryByPath(s, t);
|
|
278
278
|
}
|
|
279
279
|
/** 通过路径设置线条形状 */
|
|
280
280
|
setGeometryByPath(e, t) {
|
|
281
|
-
var
|
|
281
|
+
var c, b, C;
|
|
282
282
|
if (this.disposed)
|
|
283
283
|
return this.logError("disposed");
|
|
284
|
-
const r = (
|
|
285
|
-
this.scale = r, this.width = s, this.unitLength =
|
|
286
|
-
const { geometry:
|
|
284
|
+
const r = (c = t == null ? void 0 : t.scale) != null ? c : this.scale, s = (b = t == null ? void 0 : t.width) != null ? b : this.width, o = (C = t == null ? void 0 : t.unit_length) != null ? C : this.unitLength;
|
|
285
|
+
this.scale = r, this.width = s, this.unitLength = o;
|
|
286
|
+
const { geometry: a, maxU: l, curvePath: u, curvePoints: g } = x({
|
|
287
287
|
path: e,
|
|
288
288
|
width: s * r,
|
|
289
|
-
unitLength:
|
|
289
|
+
unitLength: o * r,
|
|
290
290
|
skipPositions: this.skippedPositions
|
|
291
291
|
});
|
|
292
|
-
this._curvePath =
|
|
293
|
-
const
|
|
294
|
-
this.path =
|
|
292
|
+
this._curvePath = u, this._curvePoints = g, this.mesh.geometry = a, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = l, this.five.needsRender = !0;
|
|
293
|
+
const m = e, f = d(d({}, this.geometryStyle), t);
|
|
294
|
+
this.path = m, this.geometryStyle = f;
|
|
295
295
|
}
|
|
296
296
|
/** 设置线条材质 */
|
|
297
297
|
setMartial(e) {
|
|
@@ -299,24 +299,24 @@ class N {
|
|
|
299
299
|
if (this.disposed)
|
|
300
300
|
return this.logError("disposed");
|
|
301
301
|
(e == null ? void 0 : e.visible) !== void 0 && this.setDefaultVisible(e.visible), (e == null ? void 0 : e.color) !== void 0 && this.setColor(e.color), (e == null ? void 0 : e.opacity) !== void 0 && this.setOpacity(e.opacity), ((r = e == null ? void 0 : e.texture) == null ? void 0 : r.url) !== void 0 && this.setTextureUrl(e.texture.url), (e == null ? void 0 : e.background_color) !== void 0 && this.setBackgroundColor(e.background_color), (e == null ? void 0 : e.background_opacity) !== void 0 && this.setBackgroundOpacity(e.background_opacity), (e == null ? void 0 : e.border_color) !== void 0 && this.setBorderColor(e.border_color), (e == null ? void 0 : e.border_opacity) !== void 0 && this.setBorderOpacity(e.border_opacity);
|
|
302
|
-
const t =
|
|
302
|
+
const t = d(d({}, this.materialStyle), e);
|
|
303
303
|
this.materialStyle = t;
|
|
304
304
|
}
|
|
305
305
|
/** 设置模型状态 */
|
|
306
306
|
setMeshStyle(e) {
|
|
307
307
|
if (e != null && e.translate) {
|
|
308
|
-
const s = new n.Vector3(),
|
|
309
|
-
|
|
308
|
+
const s = new n.Vector3(), o = new n.Vector3().fromArray(e.translate);
|
|
309
|
+
o.y += this.heightOffset, s.add(o), this.mesh.position.copy(s), r(this.startTagContainer, o), r(this.endTagContainer, o);
|
|
310
310
|
}
|
|
311
|
-
const t =
|
|
311
|
+
const t = d(d({}, this.meshStyle), e);
|
|
312
312
|
this.meshStyle = t;
|
|
313
|
-
function r(s,
|
|
313
|
+
function r(s, o) {
|
|
314
314
|
if (!s.tag)
|
|
315
315
|
return;
|
|
316
|
-
const
|
|
317
|
-
|
|
318
|
-
const
|
|
319
|
-
s.plugin.changeTagById(s.tag.id, { position:
|
|
316
|
+
const a = new n.Vector3().fromArray(s.tag.position);
|
|
317
|
+
a.add(o);
|
|
318
|
+
const l = a.toArray();
|
|
319
|
+
s.plugin.changeTagById(s.tag.id, { position: l });
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
/** 设置 Y 轴上的偏移量,为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
|
|
@@ -370,7 +370,7 @@ class N {
|
|
|
370
370
|
setTextureUrl(e) {
|
|
371
371
|
if (this.disposed)
|
|
372
372
|
return this.logError("disposed");
|
|
373
|
-
this.textureUrl = e,
|
|
373
|
+
this.textureUrl = e, G(e).then((t) => {
|
|
374
374
|
this.disposed || this.textureUrl === e && (t.wrapT = n.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.uniforms.map.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.mesh.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
|
|
375
375
|
});
|
|
376
376
|
}
|
|
@@ -402,42 +402,42 @@ class N {
|
|
|
402
402
|
return this.disposed ? this.logError("disposed") : this.cacheLengths.length !== 0 ? this.cacheLengths[e] : (this.cacheLengths = this.getPanoGroupLengths(), this.cacheLengths[e]);
|
|
403
403
|
}
|
|
404
404
|
getPanoGroupLengths() {
|
|
405
|
-
var
|
|
405
|
+
var u;
|
|
406
406
|
if (!this.curvePoints || !this.curvePath)
|
|
407
407
|
return [];
|
|
408
|
-
const e = this.
|
|
409
|
-
let
|
|
410
|
-
for (let
|
|
411
|
-
const
|
|
408
|
+
const e = this.curvePoints.length, t = this.curvePath.getLength(), r = e - 1, s = t / r, o = (u = this.curvePath.getLengths(r)) != null ? u : [], a = [];
|
|
409
|
+
let l = 0;
|
|
410
|
+
for (let g = 0; g < e; g++) {
|
|
411
|
+
const m = this.curvePoints[g], f = this.plugin.workUtils.getObserverStandingPosition(l);
|
|
412
412
|
if (!f)
|
|
413
413
|
break;
|
|
414
|
-
f.
|
|
414
|
+
f.clone().setY(0).distanceTo(m.clone().setY(0)) < s && (a.push(o[g]), l += 1);
|
|
415
415
|
}
|
|
416
|
-
return
|
|
416
|
+
return a;
|
|
417
417
|
}
|
|
418
418
|
setTag(e, t) {
|
|
419
419
|
const r = this.curvePath, s = e === "start" ? this.startTagContainer : this.endTagContainer;
|
|
420
420
|
if (!(t != null && t.data))
|
|
421
421
|
return s.plugin.clearTags();
|
|
422
|
-
const
|
|
422
|
+
const a = I({}, {
|
|
423
423
|
contentType: "Custom",
|
|
424
424
|
stickType: "2DPoint",
|
|
425
425
|
config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
|
|
426
426
|
style: { point: { enabled: !1 } },
|
|
427
427
|
data: {}
|
|
428
428
|
}, t);
|
|
429
|
-
s.tag =
|
|
430
|
-
var
|
|
431
|
-
(
|
|
432
|
-
const
|
|
433
|
-
return s.app =
|
|
429
|
+
s.tag = a, y(a) && (s.tag.element = (u) => {
|
|
430
|
+
var f, c;
|
|
431
|
+
(f = s.app) == null || f.$destroy();
|
|
432
|
+
const g = e === "start" ? p(d({}, a.data), { name: this.name, distance: Math.round((c = r.getLength()) != null ? c : 0), i18n: this.plugin.config.i18n }) : a.data, m = new E({ target: u, intro: !0, props: g });
|
|
433
|
+
return s.app = m, () => m.$destroy();
|
|
434
434
|
}), s.plugin.load({ tagList: [s.tag] });
|
|
435
|
-
const
|
|
436
|
-
if (
|
|
437
|
-
const
|
|
438
|
-
|
|
439
|
-
const
|
|
440
|
-
s.plugin.changeTagById(s.tag.id, { position:
|
|
435
|
+
const l = this.meshStyle.translate;
|
|
436
|
+
if (l && a.position) {
|
|
437
|
+
const u = new n.Vector3().fromArray(a.position), g = new n.Vector3().fromArray(l);
|
|
438
|
+
u.add(g), u.y += this.heightOffset;
|
|
439
|
+
const m = u.toArray();
|
|
440
|
+
s.plugin.changeTagById(s.tag.id, { position: m });
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
443
|
doShow() {
|
|
@@ -450,8 +450,8 @@ class N {
|
|
|
450
450
|
getPathFromPanoGroup(e, t, r) {
|
|
451
451
|
if (e.length < 2)
|
|
452
452
|
return [];
|
|
453
|
-
const
|
|
454
|
-
return [
|
|
453
|
+
const s = e.map((o) => this.plugin.workUtils.getObserverStandingPosition(o).toArray());
|
|
454
|
+
return [d({ type: "CatmullRomCurve3", points: s }, r)];
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
457
|
function y(h) {
|
|
@@ -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 Zi } 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";
|
|
@@ -73,6 +73,8 @@ import "../PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
|
73
73
|
import "../shared-utils/typescript/entries.js";
|
|
74
74
|
import "../shared-utils/url/getUrl.js";
|
|
75
75
|
import "../shared-utils/five/transformPosition.js";
|
|
76
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
77
|
+
import "../shared-utils/Utils/BaseUtil.js";
|
|
76
78
|
import "../shared-utils/five/getFloorIndex.js";
|
|
77
79
|
import "../shared-utils/safeObj.js";
|
|
78
80
|
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
@@ -154,5 +156,5 @@ import "../shared-utils/three/GLTFLoader.js";
|
|
|
154
156
|
import "@realsee/five/gltf-loader";
|
|
155
157
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
156
158
|
export {
|
|
157
|
-
|
|
159
|
+
Zi as GuideLineModeItem
|
|
158
160
|
};
|
|
@@ -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 ct } from "./GuideLineItem/index.js";
|
|
3
|
+
import { GuideLineModeItem$1 as wt } from "./GuideLineModeItem/index.js";
|
|
4
4
|
import "../base/BasePluginWithData.js";
|
|
5
5
|
import "../base/BasePlugin.js";
|
|
6
6
|
import "../shared-utils/Subscribe.js";
|
|
@@ -26,14 +26,21 @@ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
|
26
26
|
import "../shared-utils/url/absoluteUrl.js";
|
|
27
27
|
import "../shared-utils/equal.js";
|
|
28
28
|
import "../shared-utils/isTruelyObject.js";
|
|
29
|
-
import "../CruisePlugin/
|
|
30
|
-
import "
|
|
31
|
-
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
29
|
+
import "../CruisePlugin/Work.js";
|
|
30
|
+
import "./index.js";
|
|
32
31
|
import "../shared-utils/uuid.js";
|
|
33
|
-
import "../CruisePlugin/utils/
|
|
32
|
+
import "../CruisePlugin/utils/coordinatesAngle.js";
|
|
33
|
+
import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
34
|
+
import "../CruisePlugin/utils/safeCall.js";
|
|
35
|
+
import "../CruisePlugin/utils/sleep.js";
|
|
36
|
+
import "../shared-utils/five/fiveLoaded.js";
|
|
34
37
|
import "../shared-utils/vectorToCoordinate.js";
|
|
35
38
|
import "../shared-utils/formatRad.js";
|
|
36
|
-
import "../
|
|
39
|
+
import "../CruisePlugin/BaseController.js";
|
|
40
|
+
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
41
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
42
|
+
import "../shared-utils/Utils/BaseUtil.js";
|
|
43
|
+
import "../shared-utils/five/transformPosition.js";
|
|
37
44
|
import "../shared-utils/log.js";
|
|
38
45
|
import "./utils/createLineGeometry.js";
|
|
39
46
|
import "../vendor/polyline-normals/index.js";
|
|
@@ -82,7 +89,6 @@ import "../shared-utils/five/calculateThreeMouse.js";
|
|
|
82
89
|
import "../PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
83
90
|
import "../shared-utils/typescript/entries.js";
|
|
84
91
|
import "../shared-utils/url/getUrl.js";
|
|
85
|
-
import "../shared-utils/five/transformPosition.js";
|
|
86
92
|
import "../shared-utils/five/getFloorIndex.js";
|
|
87
93
|
import "../shared-utils/safeObj.js";
|
|
88
94
|
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
@@ -167,16 +173,12 @@ import "./utils/index.js";
|
|
|
167
173
|
import "../shared-utils/to.js";
|
|
168
174
|
import "../shared-utils/five/changeMode.js";
|
|
169
175
|
import "../shared-utils/nearlyEqual.js";
|
|
170
|
-
import "../CruisePlugin/
|
|
171
|
-
import "
|
|
172
|
-
|
|
173
|
-
import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
174
|
-
import "../CruisePlugin/utils/safeCall.js";
|
|
175
|
-
import "../CruisePlugin/utils/sleep.js";
|
|
176
|
-
const st = (i, o) => new t(i, o);
|
|
176
|
+
import "../CruisePlugin/Move.js";
|
|
177
|
+
import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
178
|
+
const xt = (i, o) => new t(i, o);
|
|
177
179
|
export {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
180
|
+
ct as GuideLineItem,
|
|
181
|
+
wt as GuideLineModeItem,
|
|
182
|
+
xt as GuideLinePlugin,
|
|
183
|
+
xt as default
|
|
182
184
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
1
|
+
var A = Object.defineProperty, $ = Object.defineProperties;
|
|
2
2
|
var E = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var T = Object.getOwnPropertySymbols;
|
|
4
4
|
var L = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var M = (b, e, i) => e in b ?
|
|
5
|
+
var M = (b, e, i) => e in b ? A(b, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : b[e] = i, x = (b, e) => {
|
|
6
6
|
for (var i in e || (e = {}))
|
|
7
7
|
L.call(e, i) && M(b, i, e[i]);
|
|
8
|
-
if (
|
|
9
|
-
for (var i of
|
|
8
|
+
if (T)
|
|
9
|
+
for (var i of T(e))
|
|
10
10
|
_.call(e, i) && M(b, i, e[i]);
|
|
11
11
|
return b;
|
|
12
|
-
},
|
|
12
|
+
}, U = (b, e) => $(b, E(e));
|
|
13
13
|
import * as F from "three";
|
|
14
|
-
import { is3DTag as
|
|
15
|
-
import { getTagCenterPosition as C, getTagPosition as
|
|
14
|
+
import { is3DTag as O, isMediaModelTag as D } from "../utils/tag/tagCheck.js";
|
|
15
|
+
import { getTagCenterPosition as C, getTagPosition as z } from "../utils/tagPosition.js";
|
|
16
16
|
import { checkRange as h } from "../utils/checkRange.js";
|
|
17
17
|
import { isPanoramaLike as y, isModelLike as Z } from "../../shared-utils/five/mode.js";
|
|
18
18
|
import "hammerjs";
|
|
@@ -23,7 +23,7 @@ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
|
23
23
|
import { notNil as q } from "../../shared-utils/isNil.js";
|
|
24
24
|
import { TagUtil as H } from "./TagUtil.js";
|
|
25
25
|
import { getFloorIndex as N } from "../../shared-utils/five/getFloorIndex.js";
|
|
26
|
-
import { safeObj as
|
|
26
|
+
import { safeObj as R } from "../../shared-utils/safeObj.js";
|
|
27
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";
|
|
@@ -64,9 +64,11 @@ import "../utils/tag/adaptConfig.js";
|
|
|
64
64
|
import "../../shared-utils/typescript/entries.js";
|
|
65
65
|
import "../../shared-utils/url/getUrl.js";
|
|
66
66
|
import "../../shared-utils/five/transformPosition.js";
|
|
67
|
+
import "../../shared-utils/Utils/WorkUtil.js";
|
|
68
|
+
import "../../shared-utils/Utils/BaseUtil.js";
|
|
67
69
|
const I = new F.Raycaster();
|
|
68
70
|
I.params.Points.threshold = 0.1;
|
|
69
|
-
class
|
|
71
|
+
class Qe extends H {
|
|
70
72
|
constructor(e) {
|
|
71
73
|
super(e);
|
|
72
74
|
}
|
|
@@ -131,7 +133,7 @@ class Je extends H {
|
|
|
131
133
|
reason: `distance is not in visibleDistance. distance: ${l}, visibleDistance: ${n.visibleDistance}`
|
|
132
134
|
};
|
|
133
135
|
}
|
|
134
|
-
if (y(o) && n.angleRange &&
|
|
136
|
+
if (y(o) && n.angleRange && O(e)) {
|
|
135
137
|
s.push("angleRange");
|
|
136
138
|
const l = this.getAngle(e);
|
|
137
139
|
if (h(l, n.angleRange) === !1)
|
|
@@ -216,7 +218,7 @@ class Je extends H {
|
|
|
216
218
|
}).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: a }) => {
|
|
217
219
|
var u, m;
|
|
218
220
|
return !(typeof a == "function" || a.keep || a.autoUnfold === !1 || ((u = a.autoUnfold) == null ? void 0 : u.enable) === !1 || ((m = a.autoUnfold) == null ? void 0 : m.strategy) !== "MinimumDistance");
|
|
219
|
-
}).map((r) =>
|
|
221
|
+
}).map((r) => U(x({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: a }) => {
|
|
220
222
|
const u = a.autoUnfold.distance;
|
|
221
223
|
return !(u && h(r, u) === !1);
|
|
222
224
|
}).sort((r, a) => r.distance - a.distance).findIndex((r) => r.id === e.id);
|
|
@@ -265,14 +267,14 @@ class Je extends H {
|
|
|
265
267
|
/** 通过射线检测标签可用性 */
|
|
266
268
|
getTagEnableByIntersect(e, i) {
|
|
267
269
|
var n, r, a, u, m;
|
|
268
|
-
const f =
|
|
270
|
+
const f = R(R((n = this.getTagConfig(e).visibleConfig) != null ? n : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, o = y(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
|
|
269
271
|
if (o === void 0)
|
|
270
272
|
return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
|
|
271
273
|
const d = W(
|
|
272
274
|
(() => {
|
|
273
275
|
var g;
|
|
274
276
|
const v = (g = f.checkPoints) != null ? g : "center";
|
|
275
|
-
return v === "center" ? C(e) : v === "corner" ?
|
|
277
|
+
return v === "center" ? C(e) : v === "corner" ? z(e) : Array.isArray(v) ? v : [];
|
|
276
278
|
})()
|
|
277
279
|
);
|
|
278
280
|
let s = 0, c = 0;
|
|
@@ -280,13 +282,13 @@ class Je extends H {
|
|
|
280
282
|
const g = new F.Vector3().subVectors(v, o).normalize();
|
|
281
283
|
I.set(o, g);
|
|
282
284
|
const P = o.distanceTo(v), [l] = this.five.model.intersectRaycaster(I), p = (() => {
|
|
283
|
-
if (!
|
|
285
|
+
if (!D(e))
|
|
284
286
|
return;
|
|
285
|
-
const V = this.tags.filter(
|
|
286
|
-
var
|
|
287
|
-
return (
|
|
288
|
-
}).filter(q), [
|
|
289
|
-
return
|
|
287
|
+
const V = this.tags.filter(D).map((B) => {
|
|
288
|
+
var k;
|
|
289
|
+
return (k = B.model) == null ? void 0 : k.object;
|
|
290
|
+
}).filter(q), [w] = I.intersectObjects(V, !0);
|
|
291
|
+
return w;
|
|
290
292
|
})(), S = (r = f.distanceAccuracy) != null ? r : 0.01;
|
|
291
293
|
Math.min((a = l == null ? void 0 : l.distance) != null ? a : 1 / 0, (u = p == null ? void 0 : p.distance) != null ? u : 1 / 0) + S >= P ? s++ : c++;
|
|
292
294
|
const j = (m = f.needPassed) != null ? m : 1;
|
|
@@ -307,11 +309,11 @@ class Je extends H {
|
|
|
307
309
|
var o, d, s, c, n, r, a;
|
|
308
310
|
let i = 0;
|
|
309
311
|
const f = (o = e.fiveState) == null ? void 0 : o.panoIndex;
|
|
310
|
-
f !== void 0 ? i = (d = this.
|
|
312
|
+
f !== void 0 ? i = (d = this.workUtil.getObserver(f)) == null ? void 0 : d.floorIndex : i = N(this.workUtil.work, (a = (r = (c = (s = e.model) == null ? void 0 : s.object) == null ? void 0 : c.position) != null ? r : (n = e.mediaPlane) == null ? void 0 : n.position) != null ? a : C(e));
|
|
311
313
|
const t = this.five.model.shownFloor;
|
|
312
314
|
return t === null || t === i;
|
|
313
315
|
}
|
|
314
316
|
}
|
|
315
317
|
export {
|
|
316
|
-
|
|
318
|
+
Qe as TagComputer
|
|
317
319
|
};
|