@realsee/dnalogel 3.41.7 → 3.42.0-alpha-tag.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +116 -0
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +2 -0
- package/dist/PanoTagPlugin/controller/index.d.ts +1 -0
- package/dist/PanoTagPlugin/typings/controller.d.ts +17 -16
- package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +3 -2
- package/dist/index.cjs.js +30 -30
- package/dist/index.js +754 -771
- package/dist/index.umd.js +24 -24
- package/docs/.nojekyll +1 -0
- package/docs/assets/custom.css +0 -0
- package/docs/assets/highlight.css +127 -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 +731 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +694 -0
- package/docs/classes/CSS3DRender.html +778 -0
- package/docs/classes/GuideLineItem.GuideLineItem.html +481 -0
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +894 -0
- package/docs/classes/Magnifier.html +485 -0
- package/docs/classes/ModelRoomLabelController.html +403 -0
- package/docs/classes/MoveController.html +681 -0
- package/docs/classes/Object3DHelperController.html +645 -0
- package/docs/classes/PaintBrush.html +507 -0
- package/docs/classes/PanoMeasurePluginLine.html +527 -0
- package/docs/classes/PanoMeasurePluginModel.html +576 -0
- package/docs/classes/PanoMeasurePluginPoint.html +367 -0
- package/docs/classes/PanoMeasurePluginPolyline.html +572 -0
- package/docs/classes/PanoTagPluginController.html +1132 -0
- package/docs/classes/Util.BetterTween.html +421 -0
- package/docs/classes/Util.Interval.html +437 -0
- package/docs/classes/Util.LineSegments.html +389 -0
- package/docs/classes/Util.Magnifier.html +508 -0
- package/docs/classes/Util.Object3D.html +411 -0
- package/docs/classes/Util.PointDomHelper.html +412 -0
- package/docs/classes/Util.PointHelper.html +403 -0
- package/docs/classes/Util.PointSelectorHelper.html +459 -0
- package/docs/classes/Util.Rectangle.html +460 -0
- package/docs/classes/WalkController.html +700 -0
- package/docs/enums/CameraMovementEffect.html +315 -0
- package/docs/enums/ContentType.html +461 -0
- package/docs/enums/DIRECTION.html +325 -0
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +325 -0
- package/docs/enums/DimensionType.html +315 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +318 -0
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +325 -0
- package/docs/enums/PaintBrushTypeEnum.html +318 -0
- package/docs/enums/PointType.html +315 -0
- package/docs/enums/Rotation.html +322 -0
- package/docs/functions/AreaMakerPlugin.html +295 -0
- package/docs/functions/CSS3DRenderPlugin.html +293 -0
- package/docs/functions/CameraMovementPlugin.html +298 -0
- package/docs/functions/CruisePlugin.html +295 -0
- package/docs/functions/CurrentPanoImagePlugin.html +295 -0
- package/docs/functions/GuideLinePlugin.html +295 -0
- package/docs/functions/ItemLabelPlugin.html +295 -0
- package/docs/functions/MapviewFloorplanPlugin.html +295 -0
- package/docs/functions/ModelChassisCompassPlugin.html +298 -0
- package/docs/functions/ModelEntryDoorGuidePlugin.html +298 -0
- package/docs/functions/ModelFloorplanPlugin.html +295 -0
- package/docs/functions/ModelItemLabelPlugin.html +295 -0
- package/docs/functions/ModelRoomLabelPlugin.html +293 -0
- package/docs/functions/ModelTVVideoPlugin.html +295 -0
- package/docs/functions/ModelViewPlugin.html +298 -0
- package/docs/functions/MovePlugin.html +295 -0
- package/docs/functions/Object3DHelperPlugin.html +293 -0
- package/docs/functions/PanoCompassPlugin.html +295 -0
- package/docs/functions/PanoCursorRaycasterPlugin.html +299 -0
- package/docs/functions/PanoDoorLabelPlugin.html +295 -0
- package/docs/functions/PanoFloorplanRadarPlugin.html +295 -0
- package/docs/functions/PanoMeasurePlugin.html +295 -0
- package/docs/functions/PanoRulerPlugin.html +298 -0
- package/docs/functions/PanoRulerProPlugin.html +298 -0
- package/docs/functions/PanoSpatialTagPlugin.html +298 -0
- package/docs/functions/PanoTagPlugin.html +300 -0
- package/docs/functions/PanoVideoPlugin.html +304 -0
- package/docs/functions/PipelinePlugin.html +293 -0
- package/docs/functions/TopviewFloorplanPlugin.html +295 -0
- package/docs/functions/Util.absoluteUrl.html +331 -0
- package/docs/functions/Util.checkFiveModelLoaded.html +334 -0
- package/docs/functions/Util.equal.html +343 -0
- package/docs/functions/Util.getCoordsFromClient.html +333 -0
- package/docs/functions/Util.getCoordsFromElement.html +333 -0
- package/docs/functions/Util.getFrameTime.html +325 -0
- package/docs/functions/Util.getIntersectFromRelativePosition.html +333 -0
- package/docs/functions/Util.getRaycasterFromFivePointer.html +333 -0
- package/docs/functions/Util.isAbsoluteURL.html +326 -0
- package/docs/functions/Util.isModelLike.html +326 -0
- package/docs/functions/Util.isNil.html +334 -0
- package/docs/functions/Util.isPanoramaLike.html +326 -0
- package/docs/functions/Util.nextFrame.html +339 -0
- package/docs/functions/Util.notNil.html +334 -0
- package/docs/functions/Util.requestAnimationFrameInterval.html +355 -0
- package/docs/functions/Util.tweenProgress.html +328 -0
- package/docs/functions/Util.uuid.html +324 -0
- package/docs/functions/pluginFlag.html +293 -0
- package/docs/index.html +358 -0
- package/docs/interfaces/AddTagConfig.html +308 -0
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +335 -0
- package/docs/interfaces/AreaMakerPluginType.Config.html +340 -0
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +626 -0
- package/docs/interfaces/AreaMakerPluginType.Params.html +339 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +397 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +382 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +339 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +332 -0
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +331 -0
- package/docs/interfaces/AreaMakerPluginType.State.html +360 -0
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +454 -0
- package/docs/interfaces/CSS3DRenderPluginState.html +330 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +363 -0
- package/docs/interfaces/CruisePluginTypes.Config.html +364 -0
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +366 -0
- package/docs/interfaces/CruisePluginTypes.EventMap.html +724 -0
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +390 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +426 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +416 -0
- package/docs/interfaces/CruisePluginTypes.PluginData.html +356 -0
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +324 -0
- package/docs/interfaces/CruisePluginTypes.PluginState.html +392 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +387 -0
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +526 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +328 -0
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +320 -0
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +342 -0
- package/docs/interfaces/EventMap.html +547 -0
- package/docs/interfaces/FloorplanBounding.html +337 -0
- package/docs/interfaces/FloorplanData.html +340 -0
- package/docs/interfaces/FloorplanEntrance.html +365 -0
- package/docs/interfaces/FloorplanExtraObject.html +355 -0
- package/docs/interfaces/FloorplanExtraObject3D.html +344 -0
- package/docs/interfaces/FloorplanFloorData.html +333 -0
- package/docs/interfaces/FloorplanImagePosition.html +319 -0
- package/docs/interfaces/FloorplanObserver.html +337 -0
- package/docs/interfaces/FloorplanOutlineItem.html +333 -0
- package/docs/interfaces/FloorplanPosition.html +319 -0
- package/docs/interfaces/FloorplanRoomItem.html +407 -0
- package/docs/interfaces/FloorplanRoomLabelItem.html +325 -0
- package/docs/interfaces/FloorplanServerBounding.html +337 -0
- package/docs/interfaces/FloorplanServerComputedData.html +336 -0
- package/docs/interfaces/FloorplanServerData.html +319 -0
- package/docs/interfaces/FloorplanServerDoorItem.html +336 -0
- package/docs/interfaces/FloorplanServerDoorPosition.html +322 -0
- package/docs/interfaces/FloorplanServerEntrance.html +365 -0
- package/docs/interfaces/FloorplanServerFloorData.html +333 -0
- package/docs/interfaces/FloorplanServerImagePosition.html +319 -0
- package/docs/interfaces/FloorplanServerObserver.html +337 -0
- package/docs/interfaces/FloorplanServerOutlineItem.html +333 -0
- package/docs/interfaces/FloorplanServerPosition.html +319 -0
- package/docs/interfaces/FloorplanServerRoomItem.html +419 -0
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +325 -0
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +328 -0
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +367 -0
- package/docs/interfaces/GuideLinePluginType.EventMap.html +531 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +362 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +353 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +452 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +342 -0
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +352 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +522 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +349 -0
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +532 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +314 -0
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +335 -0
- package/docs/interfaces/GuideLinePluginType.PluginState.html +360 -0
- package/docs/interfaces/GuideLinePluginType.Route.html +376 -0
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +358 -0
- package/docs/interfaces/HelperOffset.html +337 -0
- package/docs/interfaces/ImagePlaneGroup.html +311 -0
- package/docs/interfaces/ItemLabelPluginData.html +308 -0
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +393 -0
- package/docs/interfaces/ItemLabelPluginParametersType.html +329 -0
- package/docs/interfaces/MinMax.html +315 -0
- package/docs/interfaces/ModelChassisCompassPluginData.html +315 -0
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +351 -0
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +315 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +322 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +359 -0
- package/docs/interfaces/ModelItemLabelPluginData.html +308 -0
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +393 -0
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +315 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +308 -0
- package/docs/interfaces/ModelTVVideoPluginData.html +329 -0
- package/docs/interfaces/ModelTVVideoPluginExportType.html +353 -0
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +308 -0
- package/docs/interfaces/ModelViewPluginExportType.html +421 -0
- package/docs/interfaces/Object3DHelperState.html +322 -0
- package/docs/interfaces/ObjectHelperControllers.html +329 -0
- package/docs/interfaces/PaintBrushAction.html +368 -0
- package/docs/interfaces/PaintBrushConfigs.html +366 -0
- package/docs/interfaces/PaintBrushState.html +350 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +430 -0
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +287 -0
- package/docs/interfaces/PanoMeasureParameterType.html +454 -0
- package/docs/interfaces/PanoMeasurePluginLineJson.html +322 -0
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +319 -0
- package/docs/interfaces/PanoMeasurePluginPointJson.html +315 -0
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +325 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +382 -0
- package/docs/interfaces/PanoRulerPluginOptions.html +331 -0
- package/docs/interfaces/PanoRulerPluginParameterType.html +322 -0
- package/docs/interfaces/PanoRulerProPluginExportType.html +358 -0
- package/docs/interfaces/PanoRulerProPluginOptions.html +328 -0
- package/docs/interfaces/PanoRulerProPluginParameterType.html +315 -0
- package/docs/interfaces/PanoRulerProPluginState.html +322 -0
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +301 -0
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +290 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +358 -0
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +340 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +436 -0
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +336 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +357 -0
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +343 -0
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +336 -0
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +328 -0
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +346 -0
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +319 -0
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +425 -0
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +319 -0
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +354 -0
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +373 -0
- package/docs/interfaces/Point.html +322 -0
- package/docs/interfaces/Room.html +329 -0
- package/docs/interfaces/RoomInfo.html +315 -0
- package/docs/interfaces/RoomLabel.html +391 -0
- package/docs/interfaces/RoomRules.html +290 -0
- package/docs/interfaces/Rooms.html +290 -0
- package/docs/interfaces/Scissor.html +349 -0
- package/docs/interfaces/State.html +336 -0
- package/docs/interfaces/TagCacheInterface.html +367 -0
- package/docs/interfaces/TagConfig.html +570 -0
- package/docs/interfaces/TagGLTFObjectGroup.html +311 -0
- package/docs/interfaces/TagIconUrl.html +368 -0
- package/docs/interfaces/TagObjectGroup.html +311 -0
- package/docs/interfaces/TagStyle.html +321 -0
- package/docs/interfaces/Tags.html +2825 -0
- package/docs/interfaces/TemporaryState.html +308 -0
- package/docs/interfaces/Util.MagnifierParameter.html +396 -0
- package/docs/interfaces/Util.MouseGroupParameter.html +355 -0
- package/docs/interfaces/Util.PointIntersection.html +370 -0
- package/docs/modules/AreaMakerPluginType.html +330 -0
- package/docs/modules/CruisePluginTypes.html +333 -0
- package/docs/modules/CurrentPanoImagePluginType.html +302 -0
- package/docs/modules/GuideLineItem.html +294 -0
- package/docs/modules/GuideLineModeItem.html +299 -0
- package/docs/modules/GuideLinePluginType.html +355 -0
- package/docs/modules/PanoVideoPluginType.html +306 -0
- package/docs/modules/Util.html +356 -0
- package/docs/modules.html +564 -0
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +359 -0
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +325 -0
- package/docs/types/AreaMakerPluginType.PluginData.html +307 -0
- package/docs/types/AreaMakerPluginType.ServerData.html +307 -0
- package/docs/types/ArrayPosition.html +284 -0
- package/docs/types/AudioAppearance.html +284 -0
- package/docs/types/AudioTagTypeConfigKey.html +284 -0
- package/docs/types/CSS3DRenderExportType.html +284 -0
- package/docs/types/CSS3DRenderPluginExportType.html +284 -0
- package/docs/types/CSS3DRenderPluginParameterType.html +284 -0
- package/docs/types/ClassFunctionParameters.html +291 -0
- package/docs/types/Color.html +284 -0
- package/docs/types/ContentTypeConfigKey.html +284 -0
- package/docs/types/ContentTypeConfigKeySplit.html +284 -0
- package/docs/types/ContentTypeMap.html +284 -0
- package/docs/types/Create3DDomContainerReturnType.html +284 -0
- package/docs/types/Create3DElementReturnType.html +284 -0
- package/docs/types/CruisePluginExportType.html +284 -0
- package/docs/types/CruisePluginTypes.CruiseData.html +323 -0
- package/docs/types/CruisePluginTypes.MoveEffect.html +300 -0
- package/docs/types/CurrentPanoImagePluginExportType.html +284 -0
- package/docs/types/DeprecatedMediaPlaneProperty.html +296 -0
- package/docs/types/DeprecatedTagProperty.html +299 -0
- package/docs/types/Direction-1.html +284 -0
- package/docs/types/Direction4.html +284 -0
- package/docs/types/ElementRenderer.html +308 -0
- package/docs/types/FloorplanRuleLabels.html +287 -0
- package/docs/types/FloorplanServerRuleLabels.html +284 -0
- package/docs/types/GuideLinePluginExportType.html +284 -0
- package/docs/types/GuideLinePluginType.GuideLineItem.html +357 -0
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +378 -0
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +311 -0
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +314 -0
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +314 -0
- package/docs/types/GuideLinePluginType.PathItem.html +314 -0
- package/docs/types/GuideLinePluginType.PluginData.html +323 -0
- package/docs/types/HelperEventMap.html +429 -0
- package/docs/types/InternalHelperEventMap.html +380 -0
- package/docs/types/LoadTagConfig.html +284 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +284 -0
- package/docs/types/MapviewFloorplanPluginReturnType.html +284 -0
- package/docs/types/MediaData.html +305 -0
- package/docs/types/MediaStore.html +289 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +291 -0
- package/docs/types/ModelFloorplanPluginParameterType.html +284 -0
- package/docs/types/ModelFloorplanPluginReturnType.html +284 -0
- package/docs/types/ModelId.html +284 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +284 -0
- package/docs/types/ModelRoomLabelPluginReturnType.html +284 -0
- package/docs/types/MoveArgs.html +294 -0
- package/docs/types/MoveOpts.html +292 -0
- package/docs/types/Object3DHelperEventMap.html +377 -0
- package/docs/types/ObjectFit.html +284 -0
- package/docs/types/PaintBrushEventMap.html +315 -0
- package/docs/types/PanoCompassPluginData.html +284 -0
- package/docs/types/PanoCompassPluginExportType.html +284 -0
- package/docs/types/PanoCompassPluginParameterType.html +284 -0
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +284 -0
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +284 -0
- package/docs/types/PanoIndex.html +284 -0
- package/docs/types/PanoMeasurePluginEvent.html +284 -0
- package/docs/types/PanoMeasureReturnType.html +284 -0
- package/docs/types/PanoSpatialTagPluginId.html +284 -0
- package/docs/types/PanoTagPluginExportInterface.html +284 -0
- package/docs/types/PanoTagPluginParamsInterface.html +284 -0
- package/docs/types/PanoVideoPluginParameterType.html +284 -0
- package/docs/types/PanoVideoPluginReturnType.html +284 -0
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +292 -0
- package/docs/types/PipelinePluginParameterType.html +284 -0
- package/docs/types/PipelinePluginReturnType.html +284 -0
- package/docs/types/PlaneTag.html +292 -0
- package/docs/types/Point2DTag.html +292 -0
- package/docs/types/Point3DTag.html +292 -0
- package/docs/types/PointTag.html +289 -0
- package/docs/types/PointTagInstance.html +289 -0
- package/docs/types/Position.html +284 -0
- package/docs/types/RotateArgs.html +296 -0
- package/docs/types/RotateOpts.html +292 -0
- package/docs/types/RuleLabelsKey.html +284 -0
- package/docs/types/RuleLabelsValue.html +284 -0
- package/docs/types/StickType.html +284 -0
- package/docs/types/Tag.html +350 -0
- package/docs/types/Tag2D.html +292 -0
- package/docs/types/Tag3D.html +292 -0
- package/docs/types/TagConfigByKey.html +289 -0
- package/docs/types/TagContentType.html +284 -0
- package/docs/types/TagContentTypeMapping.html +284 -0
- package/docs/types/TagDimensionType.html +286 -0
- package/docs/types/TagElement.html +294 -0
- package/docs/types/TagEvents.html +337 -0
- package/docs/types/TagGLTFObject.html +307 -0
- package/docs/types/TagHooks.html +284 -0
- package/docs/types/TagId.html +284 -0
- package/docs/types/TagInstance.html +362 -0
- package/docs/types/TagPointType.html +287 -0
- package/docs/types/TagRendererMap.html +291 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +284 -0
- package/docs/types/TopviewFloorplanPluginReturnType.html +284 -0
- package/docs/types/WorkCode.html +284 -0
- package/docs/variables/FLOOR_TYPE_MAP.html +294 -0
- package/docs/variables/PLUGIN.html +284 -0
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +287 -0
- package/docs/variables/ROOM_TYPE_MAP.html +294 -0
- package/docs/variables/defaultGlobalConfig.html +284 -0
- package/docs/variables/itemLabelPluginServerParams.html +291 -0
- package/docs/variables/modelItemLabelPluginServerParams.html +291 -0
- package/docs/variables/modelRoomLabelPluginServerParams.html +291 -0
- package/libs/PanoTagPlugin/Components/TagItem.js +235 -273
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/TagRender.js +70 -62
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +2 -0
- package/libs/PanoTagPlugin/controller/TagUtil.js +22 -20
- package/libs/PanoTagPlugin/controller/index.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/index.js +68 -62
- package/libs/PanoTagPlugin/tag.config.js +5 -0
- package/libs/PanoTagPlugin/typings/controller.d.ts +17 -16
- package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +3 -2
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -65,7 +65,7 @@ export declare abstract class TagRender extends TagComputer {
|
|
|
65
65
|
/**
|
|
66
66
|
* @description 一个点的标签
|
|
67
67
|
*/
|
|
68
|
-
protected setPointTagPosition(tag?: TagInstance | TagInstance[])
|
|
68
|
+
protected setPointTagPosition: (tag?: TagInstance | TagInstance[]) => void;
|
|
69
69
|
/**
|
|
70
70
|
* @description 渲染单个点的标签
|
|
71
71
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var I = Object.defineProperty;
|
|
2
2
|
var j = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
3
|
+
var V = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
4
4
|
var C = (u, l, e) => l in u ? I(u, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[l] = e, k = (u, l) => {
|
|
5
5
|
for (var e in l || (l = {}))
|
|
6
|
-
|
|
6
|
+
V.call(l, e) && C(u, e, l[e]);
|
|
7
7
|
if (j)
|
|
8
8
|
for (var e of j(l))
|
|
9
9
|
O.call(l, e) && C(u, e, l[e]);
|
|
@@ -13,18 +13,18 @@ var h = (u, l, e) => (C(u, typeof l != "symbol" ? l + "" : l, e), e);
|
|
|
13
13
|
var M = (u, l, e) => new Promise((o, t) => {
|
|
14
14
|
var i = (s) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
t(
|
|
16
|
+
a(e.next(s));
|
|
17
|
+
} catch (n) {
|
|
18
|
+
t(n);
|
|
19
19
|
}
|
|
20
20
|
}, r = (s) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
t(
|
|
22
|
+
a(e.throw(s));
|
|
23
|
+
} catch (n) {
|
|
24
|
+
t(n);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, a = (s) => s.done ? o(s.value) : Promise.resolve(s.value).then(i, r);
|
|
27
|
+
a((e = e.apply(u, l)).next());
|
|
28
28
|
});
|
|
29
29
|
import { TagComputer as E } from "./TagComputer.js";
|
|
30
30
|
import { Group as R, Quaternion as G, Vector3 as D, Matrix4 as g } from "three";
|
|
@@ -102,7 +102,6 @@ import "../../vendor/svelte/easing/index.js";
|
|
|
102
102
|
import "../Components/Common/Icon/Icon.js";
|
|
103
103
|
import "../utils/getImageInfo.js";
|
|
104
104
|
import "../utils/px2rem.js";
|
|
105
|
-
import "../../vendor/classnames/index.js";
|
|
106
105
|
import "../Components/Tag/TextTag/index.js";
|
|
107
106
|
import "../Components/Tag/TextTag/TextTag.js";
|
|
108
107
|
import "../Components/Common/Line/Straight.js";
|
|
@@ -163,6 +162,7 @@ import "../Components/Tag/MediaPlane.js";
|
|
|
163
162
|
import "../Components/Tag/LinkTag.js";
|
|
164
163
|
import "../Components/Tag/PanoramaTag.js";
|
|
165
164
|
import "../Components/Tag/CustomTag.js";
|
|
165
|
+
import "../../vendor/classnames/index.js";
|
|
166
166
|
import "@realsee/five/gltf-loader";
|
|
167
167
|
const B = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map();
|
|
168
168
|
class Si extends E {
|
|
@@ -184,7 +184,7 @@ class Si extends E {
|
|
|
184
184
|
*/
|
|
185
185
|
h(this, "updateRender3DDomTag", (e) => {
|
|
186
186
|
(e ? v(e) : this.filterCSS3DTag).forEach((t) => {
|
|
187
|
-
var i, r,
|
|
187
|
+
var i, r, a, s, n;
|
|
188
188
|
if (t.tag3DContentSvelte) {
|
|
189
189
|
const { svelteApp: c, css3DInstance: m, initialNormal: f, currentNormal: d } = t.tag3DContentSvelte;
|
|
190
190
|
if ((r = m == null ? void 0 : m.css3DObject) == null || r.setVisible((this.state.visible && ((i = t.state) == null ? void 0 : i.visible)) !== !1), c.$set({ tag: t, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !f.equals(d)) {
|
|
@@ -193,7 +193,7 @@ class Si extends E {
|
|
|
193
193
|
}
|
|
194
194
|
return;
|
|
195
195
|
} else {
|
|
196
|
-
if (y(t) && !((
|
|
196
|
+
if (y(t) && !((a = t.model) != null && a.object) || ((s = t.state) == null ? void 0 : s.visible) === !1 || !this.state.visible || !this.state.enabled || !this.css3DRenderPlugin)
|
|
197
197
|
return;
|
|
198
198
|
if (t.stickType === "3DPoint" && !t.normal)
|
|
199
199
|
return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
|
|
@@ -206,12 +206,12 @@ class Si extends E {
|
|
|
206
206
|
const f = this.getTagConfig(t), d = k({ wrapperStyle: { zIndex: this.calculateTagZIndex(t).toString() } }, f.tag3DConfig);
|
|
207
207
|
if (this.getRenderType(t) === "BehindDom" || d.mode === "behind") {
|
|
208
208
|
d.mode = "behind", d.container = document.createElement("div");
|
|
209
|
-
const
|
|
210
|
-
d.container.style.backgroundColor =
|
|
209
|
+
const T = "black";
|
|
210
|
+
d.container.style.backgroundColor = T, d.container.style.border = `3px solid ${T}`, this.css3DRenderPlugin.hooks.on("render", () => {
|
|
211
211
|
var b;
|
|
212
212
|
if (p.css3DObject.opacityMesh && f.clickable !== !1) {
|
|
213
|
-
const A = this.addObjectClickHandler(t, p.css3DObject.opacityMesh, (
|
|
214
|
-
this.hooks.emit("click", { event:
|
|
213
|
+
const A = this.addObjectClickHandler(t, p.css3DObject.opacityMesh, (x) => {
|
|
214
|
+
this.hooks.emit("click", { event: x, target: "TagContent", tag: t });
|
|
215
215
|
});
|
|
216
216
|
(b = this.store.css3DRenderDisposer.get(t.id)) == null || b.push(A);
|
|
217
217
|
}
|
|
@@ -221,7 +221,7 @@ class Si extends E {
|
|
|
221
221
|
if (!p)
|
|
222
222
|
return;
|
|
223
223
|
this.store.css3DRenderDisposer.set(t.id, [p.dispose]);
|
|
224
|
-
const
|
|
224
|
+
const P = new _({
|
|
225
225
|
target: p.container,
|
|
226
226
|
props: {
|
|
227
227
|
tag: t,
|
|
@@ -233,18 +233,47 @@ class Si extends E {
|
|
|
233
233
|
}
|
|
234
234
|
});
|
|
235
235
|
t.tag3DContentSvelte = {
|
|
236
|
-
svelteApp:
|
|
236
|
+
svelteApp: P,
|
|
237
237
|
domContainer: p,
|
|
238
238
|
css3DInstance: p,
|
|
239
239
|
initialNormal: m,
|
|
240
240
|
currentNormal: m,
|
|
241
241
|
dispose: () => {
|
|
242
|
-
|
|
242
|
+
P.$destroy(), p.dispose();
|
|
243
243
|
}
|
|
244
|
-
}, y(t) && ((
|
|
244
|
+
}, y(t) && ((n = t.model) != null && n.object) && this.updateTagCss3DObjectMatrix(t, t.model.object);
|
|
245
245
|
}
|
|
246
246
|
}), this.clearUnusedPanelTag();
|
|
247
247
|
});
|
|
248
|
+
/**
|
|
249
|
+
* @description 一个点的标签
|
|
250
|
+
*/
|
|
251
|
+
h(this, "setPointTagPosition", (e) => {
|
|
252
|
+
const o = e ? v(e) : this.filterPointTag;
|
|
253
|
+
o.length !== 0 && o.forEach((t) => {
|
|
254
|
+
var s;
|
|
255
|
+
const i = this.getCurrentVisibleState(t), r = (s = t.__Object__) != null ? s : {
|
|
256
|
+
timeoutId: void 0,
|
|
257
|
+
inAnimation: !1
|
|
258
|
+
};
|
|
259
|
+
if (t.__Object__ = r, !i && t.screenPosition ? (r.inAnimation = !0, r.timeoutId = setTimeout(() => {
|
|
260
|
+
requestAnimationFrame(() => {
|
|
261
|
+
this.getCurrentVisibleState(t) || (r.inAnimation = !1, t.screenPosition = null, this.updateDomView());
|
|
262
|
+
});
|
|
263
|
+
}, 1e3)) : r.timeoutId && (clearTimeout(r.timeoutId), r.inAnimation = !1, r.timeoutId = void 0), !i && !r.inAnimation)
|
|
264
|
+
return;
|
|
265
|
+
const a = this.getTagProject(t);
|
|
266
|
+
if (a) {
|
|
267
|
+
const n = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), c = this.getDistance(t);
|
|
268
|
+
t.screenPosition = {
|
|
269
|
+
leftPx: (a.x + 1) / 2 * this.renderWidthPx,
|
|
270
|
+
topPx: (-a.y + 1) / 2 * this.renderHeightPx,
|
|
271
|
+
scale: Math.max(Math.min(1 - n * c / 40, 1), 0.5)
|
|
272
|
+
};
|
|
273
|
+
} else
|
|
274
|
+
t.screenPosition = null;
|
|
275
|
+
});
|
|
276
|
+
});
|
|
248
277
|
/**
|
|
249
278
|
* @description 渲染单个点的标签
|
|
250
279
|
*/
|
|
@@ -254,14 +283,14 @@ class Si extends E {
|
|
|
254
283
|
});
|
|
255
284
|
/** 加载外部模型 */
|
|
256
285
|
h(this, "loadModel", (e) => M(this, null, function* () {
|
|
257
|
-
var
|
|
286
|
+
var a;
|
|
258
287
|
const o = e.data.modelUrl;
|
|
259
288
|
if (!o)
|
|
260
289
|
return;
|
|
261
290
|
e.loading = !0;
|
|
262
291
|
const t = L(o).then((s) => {
|
|
263
292
|
var m;
|
|
264
|
-
const
|
|
293
|
+
const n = Object.assign(s.scene, {
|
|
265
294
|
customID: e.id,
|
|
266
295
|
isTagModel: !0,
|
|
267
296
|
removeEventListener: this.getTagConfig(e).clickable === !1 ? () => {
|
|
@@ -269,11 +298,11 @@ class Si extends E {
|
|
|
269
298
|
this.hooks.emit("click", { target: "TagModel", tag: e, event: f });
|
|
270
299
|
})
|
|
271
300
|
});
|
|
272
|
-
return
|
|
301
|
+
return n.visible = this.getCurrentVisibleState(e), new g().fromArray(e.matrix).decompose(n.position, n.quaternion, n.scale), n.updateWorldMatrix(!0, !0), n.visible = this.getVisible(e), (m = this.getTagConfig(e).modelConfig) != null && m.autoLookAtEnabled && n.lookAt(this.five.camera.position.clone().setY(n.position.y)), n;
|
|
273
302
|
});
|
|
274
303
|
e.model = { promise: t };
|
|
275
304
|
const i = yield t;
|
|
276
|
-
if (e.loading = !1, ((
|
|
305
|
+
if (e.loading = !1, ((a = e.model) == null ? void 0 : a.promise) !== t || !this.tags.includes(e))
|
|
277
306
|
return;
|
|
278
307
|
e.model.object = i;
|
|
279
308
|
const r = this.gltfObjectGroup.children.find((s) => s.customID === e.id);
|
|
@@ -283,8 +312,8 @@ class Si extends E {
|
|
|
283
312
|
e.mediaPlane = new w(e.data.mediaData[0].url, e.data.mediaPosition.map(S), {
|
|
284
313
|
objectFit: e.data.objectFit
|
|
285
314
|
});
|
|
286
|
-
const
|
|
287
|
-
e.mediaPlane.position.copy(
|
|
315
|
+
const n = new D().addVectors(s[0], s[2]).divideScalar(2);
|
|
316
|
+
e.mediaPlane.position.copy(n), i.add(e.mediaPlane);
|
|
288
317
|
}
|
|
289
318
|
this.getRenderType(e) !== "Mesh" && (i.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(e, i), i.updateTagCss3DObjectMatrix());
|
|
290
319
|
}
|
|
@@ -366,8 +395,8 @@ class Si extends E {
|
|
|
366
395
|
const { url: r } = i;
|
|
367
396
|
if (!r)
|
|
368
397
|
return;
|
|
369
|
-
const
|
|
370
|
-
if ((s || c) && t.mediaPlane && (this.imagePlaneGroup.remove(t.mediaPlane), t.mediaPlane.dispose(), t.mediaPlane.removeFromParent(), t.mediaPlane = void 0),
|
|
398
|
+
const a = this.getCurrentVisibleState(t), s = (() => !!(t.mediaPlane && !a))(), n = (() => !!(!t.mediaPlane && a))(), c = (() => !!(t.mediaPlane && t.mediaPlane.src !== r))();
|
|
399
|
+
if ((s || c) && t.mediaPlane && (this.imagePlaneGroup.remove(t.mediaPlane), t.mediaPlane.dispose(), t.mediaPlane.removeFromParent(), t.mediaPlane = void 0), n || c) {
|
|
371
400
|
const f = t.position.map(S), d = new q(r, f, {
|
|
372
401
|
videoCoverSrc: i.videoCoverUrl,
|
|
373
402
|
playButton: t.data.playIcon,
|
|
@@ -377,10 +406,10 @@ class Si extends E {
|
|
|
377
406
|
ImageTextureMap: N,
|
|
378
407
|
domEvents: this.domEvents
|
|
379
408
|
});
|
|
380
|
-
d.onVideoReady = (
|
|
381
|
-
|
|
409
|
+
d.onVideoReady = (P) => {
|
|
410
|
+
P.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: d.videoInstance }));
|
|
382
411
|
};
|
|
383
|
-
const p = (
|
|
412
|
+
const p = (P) => (this.five.on("renderFrame", P), () => this.five.off("renderFrame", P));
|
|
384
413
|
d.initialRenderHooks(p), t.mediaPlane = d, this.imagePlaneGroup.add(t.mediaPlane);
|
|
385
414
|
}
|
|
386
415
|
});
|
|
@@ -396,8 +425,8 @@ class Si extends E {
|
|
|
396
425
|
const { url: i } = t.data.mediaData[0];
|
|
397
426
|
if (!i)
|
|
398
427
|
return;
|
|
399
|
-
const r = t.position.map(S),
|
|
400
|
-
(s || c) && t.mediaPlane && (this.imagePlaneGroup.remove(t.mediaPlane), t.mediaPlane.dispose(), t.mediaPlane.removeFromParent(), t.mediaPlane = void 0), (
|
|
428
|
+
const r = t.position.map(S), a = this.getCurrentVisibleState(t), s = (() => !!(t.mediaPlane && !a))(), n = (() => !!(!t.mediaPlane && a))(), c = (() => !!(t.mediaPlane && t.mediaPlane.src !== i))();
|
|
429
|
+
(s || c) && t.mediaPlane && (this.imagePlaneGroup.remove(t.mediaPlane), t.mediaPlane.dispose(), t.mediaPlane.removeFromParent(), t.mediaPlane = void 0), (n || c) && (t.mediaPlane = new w(i, r, { objectFit: t.data.objectFit }), this.getTagConfig(t).clickable !== !1 && this.domEvents.addAutoBindEventListener(
|
|
401
430
|
t.mediaPlane,
|
|
402
431
|
"click",
|
|
403
432
|
(m) => {
|
|
@@ -418,8 +447,8 @@ class Si extends E {
|
|
|
418
447
|
const e = (i) => !this.enabledModelTagSet.has(i.customID), o = this.gltfObjectGroup.children.filter(e);
|
|
419
448
|
o.forEach((i) => i.removeEventListener()), this.gltfObjectGroup.remove(...o), this.tags.filter((i) => i.stickType === "Model").forEach((i) => {
|
|
420
449
|
var r;
|
|
421
|
-
(r = i.model) == null || r.promise.then((
|
|
422
|
-
|
|
450
|
+
(r = i.model) == null || r.promise.then((a) => {
|
|
451
|
+
a.visible = this.getCurrentVisibleState(i);
|
|
423
452
|
});
|
|
424
453
|
}), this.five.needsRender = !0;
|
|
425
454
|
}
|
|
@@ -435,15 +464,15 @@ class Si extends E {
|
|
|
435
464
|
* @param model 模型
|
|
436
465
|
*/
|
|
437
466
|
updateTagCss3DObjectMatrix(e, o) {
|
|
438
|
-
var
|
|
439
|
-
const t = (
|
|
467
|
+
var P, T, b;
|
|
468
|
+
const t = (T = (P = this.getTagConfig(e).tag3DConfig) == null ? void 0 : P.ratio) != null ? T : 216e-5, i = (b = e.tag3DContentSvelte) == null ? void 0 : b.css3DInstance.css3DObject;
|
|
440
469
|
if (!i)
|
|
441
470
|
return;
|
|
442
471
|
const r = y(e) ? e.data.mediaPosition : e.position;
|
|
443
472
|
if (!r || r.length !== 4 || !Array.isArray(r[0]) || !Array.isArray(r[2]))
|
|
444
473
|
return;
|
|
445
474
|
o.updateWorldMatrix(!1, !1);
|
|
446
|
-
const
|
|
475
|
+
const a = o.matrixWorld, s = new D().fromArray(r[0]), n = new D().fromArray(r[2]), c = U(s, n).add(new D(0, 0, 5e-4)), m = new g().setPosition(c), f = new g().makeScale(t, t, t), d = new g().multiply(a).multiply(m).multiply(f);
|
|
447
476
|
d.decompose(i.position, i.quaternion, i.scale);
|
|
448
477
|
const p = i.opacityMesh;
|
|
449
478
|
p && d.decompose(p.position, p.quaternion, p.scale);
|
|
@@ -455,27 +484,6 @@ class Si extends E {
|
|
|
455
484
|
yield Promise.all(o), this.setVisible(), this.updateRenderAllTags();
|
|
456
485
|
});
|
|
457
486
|
}
|
|
458
|
-
/**
|
|
459
|
-
* @description 一个点的标签
|
|
460
|
-
*/
|
|
461
|
-
setPointTagPosition(e) {
|
|
462
|
-
const o = e ? v(e) : this.filterPointTag;
|
|
463
|
-
o.length !== 0 && o.forEach((t) => {
|
|
464
|
-
var s;
|
|
465
|
-
const i = this.getCurrentVisibleState(t), r = (s = t.__Object__) != null ? s : {
|
|
466
|
-
timeoutId: void 0,
|
|
467
|
-
inAnimation: !1
|
|
468
|
-
};
|
|
469
|
-
if (t.__Object__ = r, !i && t.screenPosition ? (r.inAnimation = !0, r.timeoutId = setTimeout(() => {
|
|
470
|
-
requestAnimationFrame(() => {
|
|
471
|
-
this.getCurrentVisibleState(t) || (r.inAnimation = !1, t.screenPosition = null, this.updateDomView());
|
|
472
|
-
});
|
|
473
|
-
}, 1e3)) : r.timeoutId && (clearTimeout(r.timeoutId), r.inAnimation = !1, r.timeoutId = void 0), !i && !r.inAnimation)
|
|
474
|
-
return;
|
|
475
|
-
const n = this.getTagProject(t);
|
|
476
|
-
n ? t.screenPosition = { leftPercent: (n.x + 1) / 2 * 100, topPercent: (-n.y + 1) / 2 * 100 } : t.screenPosition = null;
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
487
|
updateTagContainerVisible() {
|
|
480
488
|
var e;
|
|
481
489
|
(e = this.TagContainerSvelte) == null || e.$set({
|
|
@@ -483,8 +491,8 @@ class Si extends E {
|
|
|
483
491
|
temporaryState: this.temporaryState,
|
|
484
492
|
withAnimation: this.store.visibleWithAnimation
|
|
485
493
|
}), this.filterCSS3DTag.forEach((o) => {
|
|
486
|
-
var t, i, r,
|
|
487
|
-
(
|
|
494
|
+
var t, i, r, a, s;
|
|
495
|
+
(a = (i = (t = o.tag3DContentSvelte) == null ? void 0 : t.css3DInstance) == null ? void 0 : i.css3DObject) == null || a.setVisible((this.state.visible && ((r = o.state) == null ? void 0 : r.visible)) !== !1), (s = o.tag3DContentSvelte) == null || s.svelteApp.$set({
|
|
488
496
|
state: this.state,
|
|
489
497
|
temporaryState: this.temporaryState,
|
|
490
498
|
withAnimation: this.store.visibleWithAnimation
|
|
@@ -8,6 +8,8 @@ import type { Mode } from '@realsee/five';
|
|
|
8
8
|
import { FiveDomEvents } from '../../shared-utils/five/FiveDomEvents';
|
|
9
9
|
export declare abstract class TagUtil extends TagCache {
|
|
10
10
|
tags: TagInstance[];
|
|
11
|
+
renderWidthPx?: number;
|
|
12
|
+
renderHeightPx?: number;
|
|
11
13
|
get container(): Element;
|
|
12
14
|
set container(container: Element);
|
|
13
15
|
config: Pick<Tags, 'globalConfig' | 'contentTypeConfig'>;
|
|
@@ -12,10 +12,10 @@ var k = (l, s, e) => s in l ? q(l, s, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
}, V = (l, s) => K(l, Q(s));
|
|
13
13
|
var f = (l, s, e) => (k(l, typeof s != "symbol" ? s + "" : s, e), e);
|
|
14
14
|
import { defaultGlobalConfig as ie } from "../typings/tag/TagConfig.js";
|
|
15
|
-
import { objectAssignDeepExports as
|
|
15
|
+
import { objectAssignDeepExports as P } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
16
16
|
import * as U from "three";
|
|
17
17
|
import { DefaultConfig as te } from "../tag.config.js";
|
|
18
|
-
import { anyPositionToVector3 as
|
|
18
|
+
import { anyPositionToVector3 as y } from "../../shared-utils/positionToVector3.js";
|
|
19
19
|
import { planeNormal as E } from "../utils/planeNormal.js";
|
|
20
20
|
import { getTagCenterPosition as B } from "../utils/tagPosition.js";
|
|
21
21
|
import { normalPositionToPositions as oe } from "../utils/normalPositionToPositions.js";
|
|
@@ -28,11 +28,11 @@ import { isMediaPlaneTag as ce, isMediaModelTag as N, isPlaneTag as le, isPoint3
|
|
|
28
28
|
import { VideoPlane as ue } from "../utils/model/mediaPlane.js";
|
|
29
29
|
import { FiveDomEvents as me } from "../../shared-utils/five/FiveDomEvents.js";
|
|
30
30
|
import z from "../utils/tag/adaptConfig.js";
|
|
31
|
-
import { isPanoramaLike as S, isModelLike as
|
|
31
|
+
import { isPanoramaLike as S, isModelLike as H } from "../../shared-utils/five/mode.js";
|
|
32
32
|
import "hammerjs";
|
|
33
33
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
34
34
|
import "animejs";
|
|
35
|
-
import { entries as
|
|
35
|
+
import { entries as $ } from "../../shared-utils/typescript/entries.js";
|
|
36
36
|
import { getUrlExt as J } from "../../shared-utils/url/getUrl.js";
|
|
37
37
|
import { transformPosition as G } from "../../shared-utils/five/transformPosition.js";
|
|
38
38
|
import "../../shared-utils/three/centerPoint.js";
|
|
@@ -72,6 +72,8 @@ class Ti extends ne {
|
|
|
72
72
|
constructor(e) {
|
|
73
73
|
super(e);
|
|
74
74
|
f(this, "tags", []);
|
|
75
|
+
f(this, "renderWidthPx");
|
|
76
|
+
f(this, "renderHeightPx");
|
|
75
77
|
f(this, "config", te);
|
|
76
78
|
/** 插件参数 */
|
|
77
79
|
f(this, "params");
|
|
@@ -187,7 +189,7 @@ class Ti extends ne {
|
|
|
187
189
|
const o = this.getTagConfig(e);
|
|
188
190
|
if (e.config = o, e.config.initialData) {
|
|
189
191
|
const n = JSON.parse(JSON.stringify(e.data));
|
|
190
|
-
e.data = (t = o.initialData) != null && t.important ?
|
|
192
|
+
e.data = (t = o.initialData) != null && t.important ? P(e.data, n, o.initialData) : P(e.data, o.initialData, n);
|
|
191
193
|
}
|
|
192
194
|
});
|
|
193
195
|
}
|
|
@@ -245,7 +247,7 @@ class Ti extends ne {
|
|
|
245
247
|
const n = this.workUtil.getObserverPosition(o);
|
|
246
248
|
if (n === void 0)
|
|
247
249
|
throw new Error(`getAngle(): observerPosition is ${n}`);
|
|
248
|
-
const r = (() => e.stickType === "3DPoint" ?
|
|
250
|
+
const r = (() => e.stickType === "3DPoint" ? y(e.normal) : E(e.position))();
|
|
249
251
|
if (!r)
|
|
250
252
|
return;
|
|
251
253
|
const a = B(e);
|
|
@@ -272,7 +274,7 @@ class Ti extends ne {
|
|
|
272
274
|
const g = d.distanceTo(a);
|
|
273
275
|
return r && (r.distance = g), g;
|
|
274
276
|
}
|
|
275
|
-
if (
|
|
277
|
+
if (H(n))
|
|
276
278
|
return this.five.camera.position.distanceTo(a);
|
|
277
279
|
}
|
|
278
280
|
getPositions(e) {
|
|
@@ -281,7 +283,7 @@ class Ti extends ne {
|
|
|
281
283
|
if (N(e))
|
|
282
284
|
return e.data.mediaPosition;
|
|
283
285
|
if (de(e))
|
|
284
|
-
return oe(this.five.camera.position,
|
|
286
|
+
return oe(this.five.camera.position, y(e.position), y(e.normal));
|
|
285
287
|
}
|
|
286
288
|
addObjectClickHandler(e, i, o) {
|
|
287
289
|
if (!i || !this.domEvents)
|
|
@@ -299,7 +301,7 @@ class Ti extends ne {
|
|
|
299
301
|
}
|
|
300
302
|
getTagNormal(e) {
|
|
301
303
|
if (e.normal)
|
|
302
|
-
return
|
|
304
|
+
return y(e.normal);
|
|
303
305
|
if (e.stickType === "Plane")
|
|
304
306
|
return E(e.position);
|
|
305
307
|
if (e.stickType === "Model")
|
|
@@ -309,7 +311,7 @@ class Ti extends ne {
|
|
|
309
311
|
if (!e)
|
|
310
312
|
return;
|
|
311
313
|
const i = this.workUtil.transform;
|
|
312
|
-
return Array.isArray(e) && e.length === 4 ? e.map(
|
|
314
|
+
return Array.isArray(e) && e.length === 4 ? e.map(y).map((o) => G(o, i)) : G(y(e), i);
|
|
313
315
|
}
|
|
314
316
|
getTransformedMatrix(e) {
|
|
315
317
|
const i = new U.Matrix4().fromArray(e);
|
|
@@ -326,20 +328,20 @@ class Ti extends ne {
|
|
|
326
328
|
* @description 获取merge后的配置
|
|
327
329
|
*/
|
|
328
330
|
calculateTagConfig(e, i) {
|
|
329
|
-
var w,
|
|
331
|
+
var w, x, A, O, I;
|
|
330
332
|
const o = (w = i == null ? void 0 : i.useCache) != null ? w : !0;
|
|
331
333
|
if (!e)
|
|
332
|
-
return (
|
|
334
|
+
return (x = this.config.globalConfig) != null ? x : {};
|
|
333
335
|
if (o) {
|
|
334
|
-
if ((
|
|
336
|
+
if ((A = e == null ? void 0 : e.computedConfig) != null && A._isMerged)
|
|
335
337
|
return e.computedConfig;
|
|
336
338
|
if ((O = e == null ? void 0 : e.config) != null && O._isMerged)
|
|
337
339
|
return e.config;
|
|
338
340
|
}
|
|
339
341
|
const t = {}, n = {}, r = {};
|
|
340
342
|
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([u, m]) => {
|
|
341
|
-
var
|
|
342
|
-
const c = u, _ = c.split("-"),
|
|
343
|
+
var j, R;
|
|
344
|
+
const c = u, _ = c.split("-"), W = u.startsWith("["), T = W ? _[0].slice(1, -1) : void 0, h = W ? _.slice(1) : _, v = T ? ["PanoramaLike", "ModelLike"].includes(T) ? (j = n[T]) != null ? j : n[T] = {} : (R = r[T]) != null ? R : r[T] = {} : t;
|
|
343
345
|
if (!v[c]) {
|
|
344
346
|
if (h.length === 0 && (v[c] = m), h.length === 1) {
|
|
345
347
|
const [p] = h;
|
|
@@ -358,14 +360,14 @@ class Ti extends ne {
|
|
|
358
360
|
}
|
|
359
361
|
}
|
|
360
362
|
});
|
|
361
|
-
const a = (I = e.initialConfig) != null ? I : {}, d =
|
|
362
|
-
|
|
363
|
+
const a = (I = e.initialConfig) != null ? I : {}, d = P({}, ie, this.config.globalConfig, ...Object.values(t)), g = P({}, d, a), C = {}, X = Object.values(ae.Mode);
|
|
364
|
+
$(n).forEach(([u, m]) => {
|
|
363
365
|
X.forEach((c) => {
|
|
364
|
-
(u === "PanoramaLike" && S(c) || u === "ModelLike" &&
|
|
366
|
+
(u === "PanoramaLike" && S(c) || u === "ModelLike" && H(c)) && (C[c] = P({}, d, ...Object.values(m), a, { _isMerged: !0 }));
|
|
365
367
|
});
|
|
366
|
-
}),
|
|
368
|
+
}), $(r).forEach(([u, m]) => {
|
|
367
369
|
const c = C[u];
|
|
368
|
-
C[u] =
|
|
370
|
+
C[u] = P({}, d, c, ...Object.values(m), a, { _isMerged: !0 });
|
|
369
371
|
});
|
|
370
372
|
const b = V(D({}, g), { configWithFiveMode: C });
|
|
371
373
|
return z(b), Object.values(C).forEach((u) => z(u)), b._isMerged = !0, b;
|
|
@@ -148,6 +148,7 @@ declare class PanoTagPluginController extends TagRender {
|
|
|
148
148
|
*/
|
|
149
149
|
private clickhandler;
|
|
150
150
|
private handleFiveCameraUpdate;
|
|
151
|
+
private handleFiveCameraFovUpdate;
|
|
151
152
|
private handleFivePanoArrived;
|
|
152
153
|
/** 楼层切换时,需要更新标签可见性 */
|
|
153
154
|
private handleFiveModelShownFloorChange;
|