@realsee/dnalogel 3.2.0-dev.3 → 3.2.0-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +4 -3
- package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +1 -0
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -2
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +2 -3
- package/dist/index.cjs.js +36 -36
- package/dist/index.js +1696 -1683
- package/dist/index.umd.js +35 -35
- package/dist/shared-utils/five/getFloorIndex.d.ts +2 -8
- package/dist/shared-utils/five/transformPosition.d.ts +2 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +3 -3
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +3 -3
- package/docs/classes/CSS3DRender.html +3 -3
- package/docs/classes/CruisePluginController.html +3 -3
- package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +3 -3
- package/docs/classes/Magnifier.html +3 -3
- package/docs/classes/ModelRoomLabelController.html +3 -3
- package/docs/classes/Object3DHelperController.html +3 -3
- package/docs/classes/PaintBrush.html +3 -3
- package/docs/classes/PanoMeasurePluginLine.html +3 -3
- package/docs/classes/PanoMeasurePluginModel.html +3 -3
- package/docs/classes/PanoMeasurePluginPoint.html +3 -3
- package/docs/classes/PanoMeasurePluginPolyline.html +3 -3
- package/docs/classes/PanoTagPluginController.html +25 -25
- package/docs/classes/Util.BetterTween.html +3 -3
- package/docs/classes/Util.Interval.html +3 -3
- package/docs/classes/Util.LineSegments.html +3 -3
- package/docs/classes/Util.Magnifier.html +3 -3
- package/docs/classes/Util.Object3D.html +3 -3
- package/docs/classes/Util.PointDomHelper.html +3 -3
- package/docs/classes/Util.PointHelper.html +3 -3
- package/docs/classes/Util.PointSelectorHelper.html +3 -3
- package/docs/classes/Util.Rectangle.html +3 -3
- package/docs/enums/CameraMovementEffect.html +3 -3
- package/docs/enums/ContentType.html +3 -3
- package/docs/enums/DIRECTION.html +3 -3
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/DimensionType.html +3 -3
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -3
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/PaintBrushTypeEnum.html +3 -3
- package/docs/enums/PointType.html +3 -3
- package/docs/enums/Rotation.html +3 -3
- package/docs/functions/AreaMakerPlugin.html +3 -3
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/CurrentPanoImagePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +3 -3
- package/docs/functions/ItemLabelPlugin.html +3 -3
- package/docs/functions/MapviewFloorplanPlugin.html +3 -3
- package/docs/functions/ModelChassisCompassPlugin.html +3 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
- package/docs/functions/ModelFloorplanPlugin.html +3 -3
- package/docs/functions/ModelItemLabelPlugin.html +3 -3
- package/docs/functions/ModelRoomLabelPlugin.html +3 -3
- package/docs/functions/ModelTVVideoPlugin.html +3 -3
- package/docs/functions/ModelViewPlugin.html +3 -3
- package/docs/functions/Object3DHelperPlugin.html +3 -3
- package/docs/functions/PanoCompassPlugin.html +3 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
- package/docs/functions/PanoDoorLabelPlugin.html +3 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
- package/docs/functions/PanoMeasurePlugin.html +3 -3
- package/docs/functions/PanoRulerPlugin.html +3 -3
- package/docs/functions/PanoRulerProPlugin.html +3 -3
- package/docs/functions/PanoSpatialTagPlugin.html +3 -3
- package/docs/functions/PanoTagPlugin.html +3 -3
- package/docs/functions/PanoVideoPlugin.html +3 -3
- package/docs/functions/PipelinePlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.absoluteUrl.html +3 -3
- package/docs/functions/Util.checkFiveModelLoaded.html +3 -3
- package/docs/functions/Util.equal.html +3 -3
- package/docs/functions/Util.getCoordsFromClient.html +3 -3
- package/docs/functions/Util.getCoordsFromElement.html +3 -3
- package/docs/functions/Util.getFrameTime.html +3 -3
- package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -3
- package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -3
- package/docs/functions/Util.isAbsoluteURL.html +3 -3
- package/docs/functions/Util.isModelLike.html +3 -3
- package/docs/functions/Util.isNil.html +3 -3
- package/docs/functions/Util.isPanoramaLike.html +3 -3
- package/docs/functions/Util.nextFrame.html +3 -3
- package/docs/functions/Util.notNil.html +3 -3
- package/docs/functions/Util.requestAnimationFrameInterval.html +3 -3
- package/docs/functions/Util.tweenProgress.html +3 -3
- package/docs/functions/Util.uuid.html +3 -3
- package/docs/functions/pluginFlag.html +3 -3
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.State.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
- package/docs/interfaces/CruisePluginTypes.Config.html +3 -3
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
- package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginState.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +3 -3
- package/docs/interfaces/EventMap.html +3 -3
- package/docs/interfaces/FloorplanBounding.html +3 -3
- package/docs/interfaces/FloorplanData.html +3 -3
- package/docs/interfaces/FloorplanEntrance.html +3 -3
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
- package/docs/interfaces/FloorplanFloorData.html +3 -3
- package/docs/interfaces/FloorplanImagePosition.html +3 -3
- package/docs/interfaces/FloorplanObserver.html +3 -3
- package/docs/interfaces/FloorplanOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanPosition.html +3 -3
- package/docs/interfaces/FloorplanRoomItem.html +3 -3
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +3 -3
- package/docs/interfaces/FloorplanServerComputedData.html +3 -3
- package/docs/interfaces/FloorplanServerData.html +3 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +3 -3
- package/docs/interfaces/FloorplanServerDoorPosition.html +3 -3
- package/docs/interfaces/FloorplanServerEntrance.html +3 -3
- package/docs/interfaces/FloorplanServerFloorData.html +3 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
- package/docs/interfaces/FloorplanServerObserver.html +3 -3
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanServerPosition.html +3 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +3 -3
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
- package/docs/interfaces/GuideLinePluginType.EventMap.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginState.html +3 -3
- package/docs/interfaces/GuideLinePluginType.Route.html +3 -3
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +3 -3
- package/docs/interfaces/HelperOffset.html +3 -3
- package/docs/interfaces/ImagePlaneGroup.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +3 -3
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/MinMax.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginData.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginData.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/ModelRoomLabelPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -3
- package/docs/interfaces/ModelViewPluginExportType.html +3 -3
- package/docs/interfaces/Object3DHelperState.html +3 -3
- package/docs/interfaces/ObjectHelperControllers.html +3 -3
- package/docs/interfaces/PaintBrushAction.html +3 -3
- package/docs/interfaces/PaintBrushConfigs.html +3 -3
- package/docs/interfaces/PaintBrushState.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -3
- package/docs/interfaces/PanoMeasureParameterType.html +3 -3
- package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -3
- package/docs/interfaces/PanoRulerPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginState.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginData.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -3
- package/docs/interfaces/Point.html +3 -3
- package/docs/interfaces/Room.html +3 -3
- package/docs/interfaces/RoomInfo.html +3 -3
- package/docs/interfaces/RoomLabel.html +3 -3
- package/docs/interfaces/RoomRules.html +3 -3
- package/docs/interfaces/Rooms.html +3 -3
- package/docs/interfaces/Scissor.html +3 -3
- package/docs/interfaces/State.html +3 -3
- package/docs/interfaces/TagCacheInterface.html +3 -3
- package/docs/interfaces/TagConfig.html +3 -3
- package/docs/interfaces/TagGLTFObjectGroup.html +3 -3
- package/docs/interfaces/TagIconUrl.html +3 -3
- package/docs/interfaces/TagObjectGroup.html +3 -3
- package/docs/interfaces/TagStyle.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/interfaces/TemporaryState.html +3 -3
- package/docs/interfaces/Util.MagnifierParameter.html +3 -3
- package/docs/interfaces/Util.MouseGroupParameter.html +3 -3
- package/docs/interfaces/Util.PointIntersection.html +3 -3
- package/docs/modules/AreaMakerPluginType.html +3 -3
- package/docs/modules/CruisePluginTypes.html +3 -3
- package/docs/modules/CurrentPanoImagePluginType.html +3 -3
- package/docs/modules/GuideLineItem.html +3 -3
- package/docs/modules/GuideLineModeItem.html +3 -3
- package/docs/modules/GuideLinePluginType.html +3 -3
- package/docs/modules/PanoVideoPluginType.html +3 -3
- package/docs/modules/Util.html +3 -3
- package/docs/modules.html +4 -4
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +3 -3
- package/docs/types/AreaMakerPluginType.PluginData.html +3 -3
- package/docs/types/AreaMakerPluginType.ServerData.html +3 -3
- package/docs/types/ArrayPosition.html +3 -3
- package/docs/types/AudioAppearance.html +3 -3
- package/docs/types/AudioTagTypeConfigKey.html +3 -3
- package/docs/types/CSS3DRenderExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginParameterType.html +3 -3
- package/docs/types/ClassFunctionParameters.html +3 -3
- package/docs/types/Color.html +3 -3
- package/docs/types/ContentTypeConfigKey.html +3 -3
- package/docs/types/ContentTypeConfigKeySplit.html +3 -3
- package/docs/types/ContentTypeMap.html +3 -3
- package/docs/types/Create3DDomContainerReturnType.html +3 -3
- package/docs/types/Create3DElementReturnType.html +3 -3
- package/docs/types/CruisePluginExportType.html +3 -3
- package/docs/types/CruisePluginTypes.CruiseData.html +3 -3
- package/docs/types/CruisePluginTypes.MoveEffect.html +3 -3
- package/docs/types/CurrentPanoImagePluginExportType.html +3 -3
- package/docs/types/DeprecatedMediaPlaneProperty.html +3 -3
- package/docs/types/DeprecatedTagProperty.html +3 -3
- package/docs/types/Direction-1.html +3 -3
- package/docs/types/Direction4.html +3 -3
- package/docs/types/ElementRenderer.html +3 -3
- package/docs/types/FloorplanRuleLabels.html +3 -3
- package/docs/types/FloorplanServerRuleLabels.html +3 -3
- package/docs/types/GuideLinePluginExportType.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItem.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +3 -3
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +3 -3
- package/docs/types/GuideLinePluginType.PathItem.html +3 -3
- package/docs/types/GuideLinePluginType.PluginData.html +3 -3
- package/docs/types/HelperEventMap.html +3 -3
- package/docs/types/LoadTagConfig.html +3 -3
- package/docs/types/MapviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/MapviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/MediaData.html +3 -3
- package/docs/types/MediaStore.html +3 -3
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginReturnType.html +3 -3
- package/docs/types/ModelId.html +3 -3
- package/docs/types/ModelRoomLabelPluginParameters.html +3 -3
- package/docs/types/ModelRoomLabelPluginReturnType.html +3 -3
- package/docs/types/MoveArgs.html +3 -3
- package/docs/types/MoveOpts.html +3 -3
- package/docs/types/Object3DHelperEventMap.html +3 -3
- package/docs/types/ObjectFit.html +3 -3
- package/docs/types/PaintBrushEventMap.html +3 -3
- package/docs/types/PanoCompassPluginData.html +3 -3
- package/docs/types/PanoCompassPluginExportType.html +3 -3
- package/docs/types/PanoCompassPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -3
- package/docs/types/PanoIndex.html +3 -3
- package/docs/types/PanoMeasurePluginEvent.html +3 -3
- package/docs/types/PanoMeasureReturnType.html +3 -3
- package/docs/types/PanoSpatialTagPluginId.html +3 -3
- package/docs/types/PanoTagPluginExportInterface.html +3 -3
- package/docs/types/PanoTagPluginParamsInterface.html +3 -3
- package/docs/types/PanoVideoPluginParameterType.html +3 -3
- package/docs/types/PanoVideoPluginReturnType.html +3 -3
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +3 -3
- package/docs/types/PipelinePluginParameterType.html +3 -3
- package/docs/types/PipelinePluginReturnType.html +3 -3
- package/docs/types/PlaneTag.html +3 -3
- package/docs/types/Point2DTag.html +3 -3
- package/docs/types/Point3DTag.html +3 -3
- package/docs/types/PointTag.html +3 -3
- package/docs/types/PointTagInstance.html +3 -3
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +3 -3
- package/docs/types/RotateOpts.html +3 -3
- package/docs/types/RuleLabelsKey.html +3 -3
- package/docs/types/RuleLabelsValue.html +3 -3
- package/docs/types/StickType.html +3 -3
- package/docs/types/Tag.html +3 -3
- package/docs/types/Tag2D.html +3 -3
- package/docs/types/Tag3D.html +3 -3
- package/docs/types/TagConfigByKey.html +3 -3
- package/docs/types/TagContentType.html +3 -3
- package/docs/types/TagDimensionType.html +3 -3
- package/docs/types/TagElement.html +3 -3
- package/docs/types/TagEvents.html +3 -3
- package/docs/types/TagGLTFObject.html +3 -3
- package/docs/types/TagHooks.html +3 -3
- package/docs/types/TagId.html +3 -3
- package/docs/types/TagInstance.html +6 -4
- package/docs/types/TagPointType.html +3 -3
- package/docs/types/TagRendererMap.html +3 -3
- package/docs/types/TopviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/TopviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/WorkCode.html +3 -3
- package/docs/variables/FLOOR_TYPE_MAP.html +3 -3
- package/docs/variables/PLUGIN.html +3 -3
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -3
- package/docs/variables/ROOM_TYPE_MAP.html +3 -3
- package/docs/variables/defaultGlobalConfig.html +3 -3
- package/docs/variables/itemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
- package/libs/CruisePlugin/Controller.js +35 -34
- package/libs/CruisePlugin/index.js +6 -5
- package/libs/GuideLinePlugin/Controller.js +5 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
- package/libs/GuideLinePlugin/index.js +8 -7
- package/libs/PanoTagPlugin/controller/TagComputer.js +69 -68
- package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +4 -3
- package/libs/PanoTagPlugin/controller/TagUtil.js +108 -105
- package/libs/PanoTagPlugin/controller/index.js +8 -5
- package/libs/PanoTagPlugin/index.js +12 -11
- package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +1 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -2
- package/libs/PanoTagPlugin/utils/tagPosition.d.ts +2 -3
- package/libs/PanoTagPlugin/utils/tagPosition.js +15 -15
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +117 -116
- package/libs/shared-utils/five/getFloorIndex.d.ts +2 -8
- package/libs/shared-utils/five/getFloorIndex.js +16 -12
- package/libs/shared-utils/five/transformPosition.d.ts +2 -0
- package/libs/shared-utils/five/transformPosition.js +10 -0
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
var
|
|
1
|
+
var X = Object.defineProperty, q = Object.defineProperties;
|
|
2
2
|
var K = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var R = Object.getOwnPropertySymbols;
|
|
4
4
|
var Q = Object.prototype.hasOwnProperty, Y = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var E = (a, s, e) => s in a ? X(a, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[s] = e, M = (a, s) => {
|
|
6
6
|
for (var e in s || (s = {}))
|
|
7
|
-
Q.call(s, e) &&
|
|
7
|
+
Q.call(s, e) && E(a, e, s[e]);
|
|
8
8
|
if (R)
|
|
9
9
|
for (var e of R(s))
|
|
10
|
-
Y.call(s, e) &&
|
|
10
|
+
Y.call(s, e) && E(a, e, s[e]);
|
|
11
11
|
return a;
|
|
12
|
-
}, B = (a, s) =>
|
|
13
|
-
var
|
|
12
|
+
}, B = (a, s) => q(a, K(s));
|
|
13
|
+
var m = (a, s, e) => (E(a, typeof s != "symbol" ? s + "" : s, e), e);
|
|
14
14
|
import { defaultGlobalConfig as Z } from "../typings/tag/TagConfig.js";
|
|
15
|
-
import { objectAssignDeepExports as
|
|
15
|
+
import { objectAssignDeepExports as y } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
16
16
|
import * as ee from "three";
|
|
17
17
|
import { DefaultConfig as ie } from "../tag.config.js";
|
|
18
|
-
import { anyPositionToVector3 as
|
|
19
|
-
import { planeNormal as
|
|
18
|
+
import { anyPositionToVector3 as P } from "../../shared-utils/positionToVector3.js";
|
|
19
|
+
import { planeNormal as w } from "../utils/planeNormal.js";
|
|
20
20
|
import { getTagCenterPosition as N } from "../utils/tagPosition.js";
|
|
21
|
-
import { normalPositionToPositions as
|
|
22
|
-
import { TagCache as
|
|
21
|
+
import { normalPositionToPositions as te } from "../utils/normalPositionToPositions.js";
|
|
22
|
+
import { TagCache as oe } from "./TagCache.js";
|
|
23
23
|
import { writable as re } from "../../vendor/svelte/store/index.js";
|
|
24
|
-
import { isIOSWX as
|
|
25
|
-
import { Five as
|
|
26
|
-
import { isMediaPlaneTag as
|
|
27
|
-
import { VideoPlane as
|
|
28
|
-
import { FiveDomEvents as
|
|
24
|
+
import { isIOSWX as ne } from "../../shared-utils/device.js";
|
|
25
|
+
import { Five as se } from "@realsee/five";
|
|
26
|
+
import { isMediaPlaneTag as fe, isMediaModelTag as _, isPlaneTag as ae, isPoint3DTag as ce } from "../utils/tag/tagCheck.js";
|
|
27
|
+
import { VideoPlane as le } from "../utils/model/mediaPlane.js";
|
|
28
|
+
import { FiveDomEvents as de } from "../../shared-utils/five/FiveDomEvents.js";
|
|
29
29
|
import $ from "../utils/tag/adaptConfig.js";
|
|
30
|
-
import { isPanoramaLike as
|
|
30
|
+
import { isPanoramaLike as O, isModelLike as z } from "../../shared-utils/five/mode.js";
|
|
31
31
|
import "hammerjs";
|
|
32
32
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
33
33
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
34
34
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
35
|
-
import { entries as
|
|
36
|
-
import { getUrlExt as
|
|
35
|
+
import { entries as H } from "../../shared-utils/typescript/entries.js";
|
|
36
|
+
import { getUrlExt as J } from "../../shared-utils/url/getUrl.js";
|
|
37
|
+
import { transformPosition as j } from "../../shared-utils/five/transformPosition.js";
|
|
37
38
|
import "../../shared-utils/three/centerPoint.js";
|
|
38
39
|
import "../../base/BasePlugin.js";
|
|
39
40
|
import "../../shared-utils/Subscribe.js";
|
|
@@ -59,47 +60,46 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
|
59
60
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
60
61
|
import "../../shared-utils/three/getNormal.js";
|
|
61
62
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
62
|
-
|
|
63
|
-
class fi extends ne {
|
|
63
|
+
class fi extends oe {
|
|
64
64
|
constructor(e) {
|
|
65
65
|
super(e);
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
h(this, "mediaStore", re({
|
|
66
|
+
m(this, "tags", []);
|
|
67
|
+
m(this, "config", ie);
|
|
68
|
+
m(this, "mediaStore", re({
|
|
70
69
|
currentMediaElement: null
|
|
71
70
|
}));
|
|
72
71
|
/** css3DRenderPlugin */
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
m(this, "css3DRenderPlugin");
|
|
73
|
+
m(this, "store", {
|
|
75
74
|
disposers: [],
|
|
76
75
|
disposed: !1,
|
|
77
76
|
resizeObserverDisposerAdding: !1,
|
|
78
77
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
79
78
|
});
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
m(this, "domEvents", new de(this.five));
|
|
80
|
+
m(this, "getObserverPosition", (e) => {
|
|
81
|
+
var o, t;
|
|
82
|
+
const i = (o = this.work) == null ? void 0 : o.observers[e];
|
|
83
|
+
if (i)
|
|
84
|
+
return j(i.position, (t = this.work) == null ? void 0 : t.options.transform);
|
|
83
85
|
});
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
};
|
|
87
|
-
this.
|
|
88
|
-
this.tags.forEach((
|
|
89
|
-
var
|
|
90
|
-
if (
|
|
91
|
-
if (!((
|
|
86
|
+
m(this, "loadVideoFirstFrame", () => {
|
|
87
|
+
ne && this.hooks.emit("loadVideoFirstFrame");
|
|
88
|
+
});
|
|
89
|
+
this.mediaStore.subscribe(({ currentMediaElement: i }) => {
|
|
90
|
+
this.tags.forEach((o) => {
|
|
91
|
+
var t;
|
|
92
|
+
if (o.mediaPlane instanceof le && i !== o.mediaPlane.videoInstance) {
|
|
93
|
+
if (!((t = o.mediaPlane.videoInstance) != null && t.src) || i === o.mediaPlane.videoInstance)
|
|
92
94
|
return;
|
|
93
|
-
|
|
95
|
+
o.mediaPlane.pause();
|
|
94
96
|
}
|
|
95
97
|
});
|
|
96
|
-
}), this.store.disposers.push(() => {
|
|
97
|
-
this.five.off("pano.request", i);
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
get work() {
|
|
101
101
|
var e, i;
|
|
102
|
-
return (i = (e = this.five.works) == null ? void 0 : e.find((o) => o.workCode === this.workCode)) != null ? i : this.five.work;
|
|
102
|
+
return (i = (e = this.five.works) == null ? void 0 : e.find((o) => o.workCode === this.five.state.workCode)) != null ? i : this.five.work;
|
|
103
103
|
}
|
|
104
104
|
getTagById(e) {
|
|
105
105
|
const i = this.tags.find((o) => o.id === e);
|
|
@@ -117,9 +117,9 @@ class fi extends ne {
|
|
|
117
117
|
* @description: 获取标签配置
|
|
118
118
|
*/
|
|
119
119
|
getTagConfig(e, i) {
|
|
120
|
-
var
|
|
121
|
-
const o = this.calculateTagConfig(e, i), t = (
|
|
122
|
-
return
|
|
120
|
+
var r, f;
|
|
121
|
+
const o = this.calculateTagConfig(e, i), t = (r = i == null ? void 0 : i.fiveMode) != null ? r : this.five.getCurrentState().mode, n = (f = o.configWithFiveMode) == null ? void 0 : f[t];
|
|
122
|
+
return n != null ? n : o;
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* @description 获取标签当前状态
|
|
@@ -133,7 +133,7 @@ class fi extends ne {
|
|
|
133
133
|
const i = this.getTagConfig(e, { useCache: !1 });
|
|
134
134
|
if (e.config = i, e.config.initialData) {
|
|
135
135
|
const t = JSON.parse(JSON.stringify(e.data));
|
|
136
|
-
e.data = (o = i.initialData) != null && o.important ?
|
|
136
|
+
e.data = (o = i.initialData) != null && o.important ? y(e.data, t, i.initialData) : y(e.data, i.initialData, t);
|
|
137
137
|
}
|
|
138
138
|
});
|
|
139
139
|
}
|
|
@@ -164,15 +164,15 @@ class fi extends ne {
|
|
|
164
164
|
return;
|
|
165
165
|
const t = e.data.mediaData;
|
|
166
166
|
if (!(!t || t.length === 0) && o.renderType === "Mesh") {
|
|
167
|
-
if (
|
|
167
|
+
if (fe(e)) {
|
|
168
168
|
if (t.length === 1) {
|
|
169
169
|
if (t[0].type === "Video")
|
|
170
170
|
return "Mesh";
|
|
171
171
|
if (t[0].type === "Image")
|
|
172
|
-
return
|
|
172
|
+
return J(t[0].url) === "gif" ? "Dom" : "Mesh";
|
|
173
173
|
}
|
|
174
174
|
} else if (_(e))
|
|
175
|
-
return t.length === 1 && t[0].type === "Image" ?
|
|
175
|
+
return t.length === 1 && t[0].type === "Image" ? J(t[0].url) === "gif" ? "Dom" : "Mesh" : "BehindDom";
|
|
176
176
|
}
|
|
177
177
|
})();
|
|
178
178
|
return i != null ? i : "Dom";
|
|
@@ -181,7 +181,6 @@ class fi extends ne {
|
|
|
181
181
|
* @description: 获取角度
|
|
182
182
|
*/
|
|
183
183
|
getAngle(e, i) {
|
|
184
|
-
var r, n;
|
|
185
184
|
const o = i != null ? i : this.five.getCurrentState().panoIndex;
|
|
186
185
|
if (o === void 0)
|
|
187
186
|
throw new Error(`getAngle(): fivePanoIndex is ${o}`);
|
|
@@ -189,69 +188,68 @@ class fi extends ne {
|
|
|
189
188
|
if (t.angle !== void 0)
|
|
190
189
|
return t.angle;
|
|
191
190
|
{
|
|
192
|
-
const
|
|
193
|
-
if (
|
|
194
|
-
throw new Error(`getAngle(): observerPosition is ${
|
|
195
|
-
const
|
|
196
|
-
if (!
|
|
191
|
+
const n = this.getObserverPosition(o);
|
|
192
|
+
if (n === void 0)
|
|
193
|
+
throw new Error(`getAngle(): observerPosition is ${n}`);
|
|
194
|
+
const r = (() => e.stickType === "3DPoint" ? P(e.normal) : w(e.position))();
|
|
195
|
+
if (!r)
|
|
197
196
|
return;
|
|
198
|
-
const
|
|
199
|
-
if (!
|
|
197
|
+
const f = N(e);
|
|
198
|
+
if (!f)
|
|
200
199
|
return;
|
|
201
|
-
const l = new ee.Vector3().copy(
|
|
202
|
-
return t.angle =
|
|
200
|
+
const l = new ee.Vector3().copy(n).sub(f), g = r.angleTo(l) * 180 / Math.PI;
|
|
201
|
+
return t.angle = g, t.angle;
|
|
203
202
|
}
|
|
204
203
|
}
|
|
205
204
|
/**
|
|
206
205
|
* @description: 获取距离
|
|
207
206
|
*/
|
|
208
207
|
getDistance(e, i) {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
return n.distance;
|
|
208
|
+
const o = M(M({}, this.five.getCurrentState()), i), { panoIndex: t, mode: n } = o, r = O(n) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
|
|
209
|
+
if ((r == null ? void 0 : r.distance) !== void 0)
|
|
210
|
+
return r.distance;
|
|
213
211
|
const f = N(e);
|
|
214
212
|
if (!f)
|
|
215
213
|
return -1;
|
|
216
|
-
if (
|
|
217
|
-
const l =
|
|
214
|
+
if (O(n)) {
|
|
215
|
+
const l = this.getObserverPosition(t);
|
|
218
216
|
if (l === void 0)
|
|
219
217
|
return -1;
|
|
220
|
-
const
|
|
221
|
-
return
|
|
218
|
+
const g = l.distanceTo(f);
|
|
219
|
+
return r && (r.distance = g), g;
|
|
222
220
|
}
|
|
223
|
-
if (
|
|
221
|
+
if (z(n))
|
|
224
222
|
return this.five.camera.position.distanceTo(f);
|
|
225
223
|
}
|
|
226
224
|
getPositions(e) {
|
|
227
|
-
if (
|
|
225
|
+
if (ae(e))
|
|
228
226
|
return e.position;
|
|
229
227
|
if (_(e))
|
|
230
228
|
return e.data.mediaPosition;
|
|
231
|
-
if (
|
|
232
|
-
return
|
|
229
|
+
if (ce(e))
|
|
230
|
+
return te(this.five.camera.position, P(e.position), P(e.normal));
|
|
233
231
|
}
|
|
234
232
|
addObjectClickHandler(e, i, o) {
|
|
235
233
|
if (!i || !this.domEvents)
|
|
236
234
|
return () => {
|
|
237
235
|
};
|
|
238
|
-
const t = () => !(!this.getCurrentVisibleState(e) || e.loading),
|
|
236
|
+
const t = () => !(!this.getCurrentVisibleState(e) || e.loading), n = (r) => {
|
|
239
237
|
if (!t())
|
|
240
238
|
return !1;
|
|
241
|
-
o(
|
|
239
|
+
o(r.origDomEvent);
|
|
242
240
|
};
|
|
243
|
-
return this.domEvents.addEventListener(i, "click",
|
|
244
|
-
var
|
|
245
|
-
(
|
|
241
|
+
return this.domEvents.addEventListener(i, "click", n), () => {
|
|
242
|
+
var r;
|
|
243
|
+
(r = this.domEvents) == null || r.removeEventListener(i, "click", n);
|
|
246
244
|
};
|
|
247
245
|
}
|
|
248
246
|
getTagNormal(e) {
|
|
249
247
|
if (e.normal)
|
|
250
|
-
return
|
|
248
|
+
return P(e.normal);
|
|
251
249
|
if (e.stickType === "Plane")
|
|
252
|
-
return
|
|
250
|
+
return w(e.position);
|
|
253
251
|
if (e.stickType === "Model")
|
|
254
|
-
return
|
|
252
|
+
return w(this.getPositions(e));
|
|
255
253
|
}
|
|
256
254
|
// TODO: 优化点:下面这些函数,调用比较频繁,可以按点位加缓存
|
|
257
255
|
get filterPointTag() {
|
|
@@ -276,6 +274,11 @@ class fi extends ne {
|
|
|
276
274
|
return o === "BehindDom" || o === "Dom";
|
|
277
275
|
});
|
|
278
276
|
}
|
|
277
|
+
getTransformedPostion(e) {
|
|
278
|
+
var o;
|
|
279
|
+
const i = (o = this.work) == null ? void 0 : o.options.transform;
|
|
280
|
+
return e.length === 4 ? e.map(P).map((t) => j(t, i)) : j(P(e), i);
|
|
281
|
+
}
|
|
279
282
|
/**
|
|
280
283
|
* @description 检查是否已经销毁
|
|
281
284
|
* @returns isDisposed; 已经销毁返回 true,否则返回 false
|
|
@@ -287,44 +290,44 @@ class fi extends ne {
|
|
|
287
290
|
* @description: 获取merge后的配置
|
|
288
291
|
*/
|
|
289
292
|
calculateTagConfig(e, i) {
|
|
290
|
-
var
|
|
291
|
-
const o = (
|
|
293
|
+
var A, S, I, W;
|
|
294
|
+
const o = (A = i == null ? void 0 : i.useCache) != null ? A : !0;
|
|
292
295
|
if (!e)
|
|
293
|
-
return (
|
|
296
|
+
return (S = this.config.globalConfig) != null ? S : {};
|
|
294
297
|
if (o && ((I = e.config) != null && I._isMerged))
|
|
295
298
|
return e.config;
|
|
296
|
-
const t = {},
|
|
297
|
-
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([
|
|
298
|
-
var
|
|
299
|
-
const c =
|
|
300
|
-
if (!
|
|
301
|
-
if (
|
|
302
|
-
const [
|
|
303
|
-
(e.contentType ===
|
|
299
|
+
const t = {}, n = {}, r = {};
|
|
300
|
+
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([d, u]) => {
|
|
301
|
+
var V, L;
|
|
302
|
+
const c = d, D = c.split("-"), F = d.startsWith("["), T = F ? D[0].slice(1, -1) : void 0, h = F ? D.slice(1) : D, v = T ? ["PanoramaLike", "ModelLike"].includes(T) ? (V = n[T]) != null ? V : n[T] = {} : (L = r[T]) != null ? L : r[T] = {} : t;
|
|
303
|
+
if (!v[c]) {
|
|
304
|
+
if (h.length === 0 && (v[c] = u), h.length === 1) {
|
|
305
|
+
const [p] = h;
|
|
306
|
+
(e.contentType === p || p === "Any") && (v[c] = u);
|
|
304
307
|
}
|
|
305
|
-
if (
|
|
306
|
-
const [
|
|
307
|
-
|
|
308
|
+
if (h.length === 2) {
|
|
309
|
+
const [p = "Any", b = "Any"] = h;
|
|
310
|
+
p === "Mixin" && e.contentType === b && (v[c] = u), (e.stickType === p || p === "Any") && (e.contentType === b || b === "Any") && (v[c] = u);
|
|
308
311
|
}
|
|
309
|
-
if (
|
|
310
|
-
const [
|
|
311
|
-
if (
|
|
312
|
+
if (h.length === 3) {
|
|
313
|
+
const [p = "Any", b, G] = h;
|
|
314
|
+
if (b === "Audio" && e.contentType === "Audio") {
|
|
312
315
|
const x = e;
|
|
313
|
-
(x.stickType ===
|
|
316
|
+
(x.stickType === p || p === "Any") && x.data.appearance === G && (v[c] = u);
|
|
314
317
|
}
|
|
315
318
|
}
|
|
316
319
|
}
|
|
317
320
|
});
|
|
318
|
-
const f = (W = e.config) != null && W._isMerged ? e.initialConfig : e.config,
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
(
|
|
321
|
+
const f = (W = e.config) != null && W._isMerged ? e.initialConfig : e.config, l = y({}, Z, this.config.globalConfig, ...Object.values(t)), g = y({}, l, f), C = {}, U = Object.values(se.Mode);
|
|
322
|
+
H(n).forEach(([d, u]) => {
|
|
323
|
+
U.forEach((c) => {
|
|
324
|
+
(d === "PanoramaLike" && O(c) || d === "ModelLike" && z(c)) && (C[c] = y({}, l, ...Object.values(u), f));
|
|
322
325
|
});
|
|
323
|
-
}),
|
|
324
|
-
|
|
326
|
+
}), H(r).forEach(([d, u]) => {
|
|
327
|
+
C[d] = y({}, l, ...Object.values(u), f);
|
|
325
328
|
});
|
|
326
|
-
const
|
|
327
|
-
return $(
|
|
329
|
+
const k = B(M({}, g), { configWithFiveMode: C });
|
|
330
|
+
return $(k, e), Object.values(C).forEach((d) => $(d, e)), k._isMerged = !0, k;
|
|
328
331
|
}
|
|
329
332
|
}
|
|
330
333
|
export {
|
|
@@ -89,6 +89,7 @@ import "../../shared-utils/five/calculateThreeMouse.js";
|
|
|
89
89
|
import "../utils/tag/adaptConfig.js";
|
|
90
90
|
import "../../shared-utils/typescript/entries.js";
|
|
91
91
|
import "../../shared-utils/url/getUrl.js";
|
|
92
|
+
import "../../shared-utils/five/transformPosition.js";
|
|
92
93
|
import "../../shared-utils/five/getFloorIndex.js";
|
|
93
94
|
import "../../shared-utils/safeObj.js";
|
|
94
95
|
import "../Components/TagContainer.js";
|
|
@@ -167,8 +168,8 @@ import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
|
167
168
|
import "../../shared-utils/three/GLTFLoader.js";
|
|
168
169
|
import "@realsee/five/gltf-loader";
|
|
169
170
|
import "../../shared-utils/animationFrame/index.js";
|
|
170
|
-
const P = "Dnalogel-PanoTagPlugin",
|
|
171
|
-
class
|
|
171
|
+
const P = "Dnalogel-PanoTagPlugin", Pi = (d) => `${P}--${d}`;
|
|
172
|
+
class Si extends N {
|
|
172
173
|
constructor(e, t) {
|
|
173
174
|
super(e);
|
|
174
175
|
/** state */
|
|
@@ -313,6 +314,8 @@ class Pi extends N {
|
|
|
313
314
|
unfolded: !this.can("fold", o)
|
|
314
315
|
}, n.initialState),
|
|
315
316
|
hooks: new B(),
|
|
317
|
+
originPosition: o.position,
|
|
318
|
+
position: this.getTransformedPostion(o.position),
|
|
316
319
|
initialConfig: h,
|
|
317
320
|
config: n,
|
|
318
321
|
unfold: () => this.changeUnfoldedById(o.id, !0),
|
|
@@ -536,7 +539,7 @@ class Pi extends N {
|
|
|
536
539
|
}
|
|
537
540
|
}
|
|
538
541
|
export {
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
+
Si as PanoTagPluginController,
|
|
543
|
+
Si as default,
|
|
544
|
+
Pi as pluginFlag
|
|
542
545
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r from "./controller/index.js";
|
|
2
|
-
import { pluginFlag as
|
|
3
|
-
import { defaultGlobalConfig as
|
|
4
|
-
import { ContentType as
|
|
2
|
+
import { pluginFlag as Mt } from "./controller/index.js";
|
|
3
|
+
import { defaultGlobalConfig as Ot } from "./typings/tag/TagConfig.js";
|
|
4
|
+
import { ContentType as Rt, DimensionType as St, PointType as Ut } from "./Archive/deprecated.js";
|
|
5
5
|
import "three";
|
|
6
6
|
import "@realsee/five";
|
|
7
7
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
@@ -60,6 +60,7 @@ import "../shared-utils/five/calculateThreeMouse.js";
|
|
|
60
60
|
import "./utils/tag/adaptConfig.js";
|
|
61
61
|
import "../shared-utils/typescript/entries.js";
|
|
62
62
|
import "../shared-utils/url/getUrl.js";
|
|
63
|
+
import "../shared-utils/five/transformPosition.js";
|
|
63
64
|
import "../shared-utils/five/getFloorIndex.js";
|
|
64
65
|
import "../shared-utils/safeObj.js";
|
|
65
66
|
import "./Components/TagContainer.js";
|
|
@@ -141,14 +142,14 @@ import "@realsee/five/gltf-loader";
|
|
|
141
142
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
142
143
|
import "../shared-utils/animationFrame/index.js";
|
|
143
144
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
144
|
-
const
|
|
145
|
+
const Jt = (o, t) => new r(o, t);
|
|
145
146
|
export {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
Rt as ContentType,
|
|
148
|
+
St as DimensionType,
|
|
149
|
+
Jt as PanoTagPlugin,
|
|
149
150
|
r as PanoTagPluginController,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
151
|
+
Ut as PointType,
|
|
152
|
+
Jt as default,
|
|
153
|
+
Ot as defaultGlobalConfig,
|
|
154
|
+
Mt as pluginFlag
|
|
154
155
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GLTFObject } from '@realsee/five/gltf-loader';
|
|
2
|
-
import type { Group } from 'three';
|
|
2
|
+
import type { Group, Vector3 } from 'three';
|
|
3
3
|
import type { TagContentType } from './TagData';
|
|
4
4
|
import type { ImagePlane } from '../../utils/model/mediaPlane';
|
|
5
5
|
import type { TagInstance } from './TagInstance';
|
|
@@ -7,7 +7,7 @@ import type { TagConfig } from '../..';
|
|
|
7
7
|
import type { Mode } from '@realsee/five';
|
|
8
8
|
export type TagId = string | number;
|
|
9
9
|
export type ArrayPosition = number[];
|
|
10
|
-
export type Position = ArrayPosition;
|
|
10
|
+
export type Position = ArrayPosition | Vector3;
|
|
11
11
|
export type PanoIndex = number;
|
|
12
12
|
export type WorkCode = string;
|
|
13
13
|
export type ModelId = string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Vector3 } from 'three';
|
|
2
1
|
import type { TagInstance } from '../typings';
|
|
3
|
-
export declare function getTagPosition(tag: TagInstance): Vector3 | Vector3[];
|
|
4
|
-
export declare function getTagCenterPosition(tag: TagInstance): Vector3;
|
|
2
|
+
export declare function getTagPosition(tag: TagInstance): import("three").Vector3 | import("three").Vector3[];
|
|
3
|
+
export declare function getTagCenterPosition(tag: TagInstance): import("three").Vector3;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { Matrix4 as n
|
|
2
|
-
import { centerPoint as
|
|
3
|
-
import { isMediaModelTag as
|
|
4
|
-
import { vector3Position as s } from "../../shared-utils/positionToVector3.js";
|
|
5
|
-
function p(
|
|
6
|
-
const
|
|
7
|
-
if (
|
|
8
|
-
const
|
|
9
|
-
return
|
|
1
|
+
import { Matrix4 as n } from "three";
|
|
2
|
+
import { centerPoint as e } from "../../shared-utils/three/centerPoint.js";
|
|
3
|
+
import { isMediaModelTag as a } from "./tag/tagCheck.js";
|
|
4
|
+
import { anyPositionToVector3 as m, vector3Position as s } from "../../shared-utils/positionToVector3.js";
|
|
5
|
+
function p(o) {
|
|
6
|
+
const i = (() => {
|
|
7
|
+
if (a(o) && o.matrix) {
|
|
8
|
+
const r = new n().fromArray(o.matrix);
|
|
9
|
+
return o.data.mediaPosition.map((t) => m(t).clone().applyMatrix4(r));
|
|
10
10
|
} else
|
|
11
|
-
return
|
|
11
|
+
return o.position;
|
|
12
12
|
})();
|
|
13
|
-
return s(
|
|
13
|
+
return s(i);
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
const
|
|
17
|
-
return
|
|
15
|
+
function x(o) {
|
|
16
|
+
const i = p(o);
|
|
17
|
+
return e(...Array.isArray(i) ? i : [i]);
|
|
18
18
|
}
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
x as getTagCenterPosition,
|
|
21
21
|
p as getTagPosition
|
|
22
22
|
};
|