@realsee/dnalogel 3.2.0-dev.4 → 3.2.0-dev.6
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 +7 -2
- 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 +54 -54
- package/dist/index.js +3204 -3176
- package/dist/index.umd.js +44 -44
- package/dist/shared-utils/five/getFloorIndex.d.ts +2 -8
- package/dist/shared-utils/five/transformPosition.d.ts +2 -0
- package/docs/assets/search.js +1 -1
- 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 +56 -29
- 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 +7 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +111 -93
- 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
|
|
2
|
-
var
|
|
1
|
+
var X = Object.defineProperty, q = Object.defineProperties;
|
|
2
|
+
var K = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var R = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var e in
|
|
7
|
-
|
|
4
|
+
var Q = Object.prototype.hasOwnProperty, Y = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var w = (a, s, e) => s in a ? X(a, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[s] = e, b = (a, s) => {
|
|
6
|
+
for (var e in s || (s = {}))
|
|
7
|
+
Q.call(s, e) && w(a, e, s[e]);
|
|
8
8
|
if (R)
|
|
9
|
-
for (var e of R(
|
|
10
|
-
|
|
9
|
+
for (var e of R(s))
|
|
10
|
+
Y.call(s, e) && w(a, e, s[e]);
|
|
11
11
|
return a;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
import { defaultGlobalConfig as
|
|
15
|
-
import { objectAssignDeepExports as
|
|
16
|
-
import * as
|
|
17
|
-
import { DefaultConfig as
|
|
18
|
-
import { anyPositionToVector3 as
|
|
19
|
-
import { planeNormal as
|
|
20
|
-
import { getTagCenterPosition as
|
|
12
|
+
}, _ = (a, s) => q(a, K(s));
|
|
13
|
+
var l = (a, s, e) => (w(a, typeof s != "symbol" ? s + "" : s, e), e);
|
|
14
|
+
import { defaultGlobalConfig as Z } from "../typings/tag/TagConfig.js";
|
|
15
|
+
import { objectAssignDeepExports as y } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
16
|
+
import * as ee from "three";
|
|
17
|
+
import { DefaultConfig as ie } from "../tag.config.js";
|
|
18
|
+
import { anyPositionToVector3 as C } from "../../shared-utils/positionToVector3.js";
|
|
19
|
+
import { planeNormal as E } from "../utils/planeNormal.js";
|
|
20
|
+
import { getTagCenterPosition as B } from "../utils/tagPosition.js";
|
|
21
21
|
import { normalPositionToPositions as te } from "../utils/normalPositionToPositions.js";
|
|
22
22
|
import { TagCache as oe } from "./TagCache.js";
|
|
23
|
-
import { writable as
|
|
24
|
-
import { isIOSWX as
|
|
23
|
+
import { writable as re } from "../../vendor/svelte/store/index.js";
|
|
24
|
+
import { isIOSWX as ne } from "../../shared-utils/device.js";
|
|
25
25
|
import { Five as se } from "@realsee/five";
|
|
26
|
-
import { isMediaPlaneTag as fe, isMediaModelTag as
|
|
26
|
+
import { isMediaPlaneTag as fe, isMediaModelTag as N, isPlaneTag as ae, isPoint3DTag as ce } from "../utils/tag/tagCheck.js";
|
|
27
27
|
import { VideoPlane as le } from "../utils/model/mediaPlane.js";
|
|
28
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
35
|
import { entries as H } from "../../shared-utils/typescript/entries.js";
|
|
36
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,25 +60,32 @@ 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
|
-
class
|
|
63
|
+
class fi extends oe {
|
|
63
64
|
constructor(e) {
|
|
64
65
|
super(e);
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
l(this, "tags", []);
|
|
67
|
+
l(this, "config", ie);
|
|
68
|
+
l(this, "mediaStore", re({
|
|
68
69
|
currentMediaElement: null
|
|
69
70
|
}));
|
|
70
71
|
/** css3DRenderPlugin */
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
l(this, "css3DRenderPlugin");
|
|
73
|
+
l(this, "store", {
|
|
73
74
|
disposers: [],
|
|
74
75
|
disposed: !1,
|
|
75
76
|
resizeObserverDisposerAdding: !1,
|
|
76
77
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
77
78
|
});
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
l(this, "domEvents", new de(this.five));
|
|
80
|
+
l(this, "_workCode");
|
|
81
|
+
l(this, "getObserverPosition", (e) => {
|
|
82
|
+
var o, t;
|
|
83
|
+
const i = (o = this.work) == null ? void 0 : o.observers[e];
|
|
84
|
+
if (i)
|
|
85
|
+
return j(i.position, (t = this.work) == null ? void 0 : t.options.transform);
|
|
86
|
+
});
|
|
87
|
+
l(this, "loadVideoFirstFrame", () => {
|
|
88
|
+
ne && this.hooks.emit("loadVideoFirstFrame");
|
|
81
89
|
});
|
|
82
90
|
this.mediaStore.subscribe(({ currentMediaElement: i }) => {
|
|
83
91
|
this.tags.forEach((o) => {
|
|
@@ -90,9 +98,16 @@ class si extends oe {
|
|
|
90
98
|
});
|
|
91
99
|
});
|
|
92
100
|
}
|
|
101
|
+
set workCode(e) {
|
|
102
|
+
this._workCode = e;
|
|
103
|
+
}
|
|
104
|
+
get workCode() {
|
|
105
|
+
var e;
|
|
106
|
+
return (e = this._workCode) != null ? e : this.five.state.workCode;
|
|
107
|
+
}
|
|
93
108
|
get work() {
|
|
94
109
|
var e, i;
|
|
95
|
-
return (i = (e = this.five.works) == null ? void 0 : e.find((o) => o.workCode === this.
|
|
110
|
+
return (i = (e = this.five.works) == null ? void 0 : e.find((o) => o.workCode === this.workCode)) != null ? i : this.five.work;
|
|
96
111
|
}
|
|
97
112
|
getTagById(e) {
|
|
98
113
|
const i = this.tags.find((o) => o.id === e);
|
|
@@ -110,9 +125,9 @@ class si extends oe {
|
|
|
110
125
|
* @description: 获取标签配置
|
|
111
126
|
*/
|
|
112
127
|
getTagConfig(e, i) {
|
|
113
|
-
var
|
|
114
|
-
const o = this.calculateTagConfig(e, i), t = (
|
|
115
|
-
return
|
|
128
|
+
var r, f;
|
|
129
|
+
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];
|
|
130
|
+
return n != null ? n : o;
|
|
116
131
|
}
|
|
117
132
|
/**
|
|
118
133
|
* @description 获取标签当前状态
|
|
@@ -126,7 +141,7 @@ class si extends oe {
|
|
|
126
141
|
const i = this.getTagConfig(e, { useCache: !1 });
|
|
127
142
|
if (e.config = i, e.config.initialData) {
|
|
128
143
|
const t = JSON.parse(JSON.stringify(e.data));
|
|
129
|
-
e.data = (o = i.initialData) != null && o.important ?
|
|
144
|
+
e.data = (o = i.initialData) != null && o.important ? y(e.data, t, i.initialData) : y(e.data, i.initialData, t);
|
|
130
145
|
}
|
|
131
146
|
});
|
|
132
147
|
}
|
|
@@ -164,7 +179,7 @@ class si extends oe {
|
|
|
164
179
|
if (t[0].type === "Image")
|
|
165
180
|
return J(t[0].url) === "gif" ? "Dom" : "Mesh";
|
|
166
181
|
}
|
|
167
|
-
} else if (
|
|
182
|
+
} else if (N(e))
|
|
168
183
|
return t.length === 1 && t[0].type === "Image" ? J(t[0].url) === "gif" ? "Dom" : "Mesh" : "BehindDom";
|
|
169
184
|
}
|
|
170
185
|
})();
|
|
@@ -174,7 +189,6 @@ class si extends oe {
|
|
|
174
189
|
* @description: 获取角度
|
|
175
190
|
*/
|
|
176
191
|
getAngle(e, i) {
|
|
177
|
-
var s, n;
|
|
178
192
|
const o = i != null ? i : this.five.getCurrentState().panoIndex;
|
|
179
193
|
if (o === void 0)
|
|
180
194
|
throw new Error(`getAngle(): fivePanoIndex is ${o}`);
|
|
@@ -182,69 +196,68 @@ class si extends oe {
|
|
|
182
196
|
if (t.angle !== void 0)
|
|
183
197
|
return t.angle;
|
|
184
198
|
{
|
|
185
|
-
const
|
|
186
|
-
if (
|
|
187
|
-
throw new Error(`getAngle(): observerPosition is ${
|
|
188
|
-
const
|
|
189
|
-
if (!
|
|
199
|
+
const n = this.getObserverPosition(o);
|
|
200
|
+
if (n === void 0)
|
|
201
|
+
throw new Error(`getAngle(): observerPosition is ${n}`);
|
|
202
|
+
const r = (() => e.stickType === "3DPoint" ? C(e.normal) : E(e.position))();
|
|
203
|
+
if (!r)
|
|
190
204
|
return;
|
|
191
|
-
const
|
|
192
|
-
if (!
|
|
205
|
+
const f = B(e);
|
|
206
|
+
if (!f)
|
|
193
207
|
return;
|
|
194
|
-
const
|
|
195
|
-
return t.angle =
|
|
208
|
+
const d = new ee.Vector3().copy(n).sub(f), g = r.angleTo(d) * 180 / Math.PI;
|
|
209
|
+
return t.angle = g, t.angle;
|
|
196
210
|
}
|
|
197
211
|
}
|
|
198
212
|
/**
|
|
199
213
|
* @description: 获取距离
|
|
200
214
|
*/
|
|
201
215
|
getDistance(e, i) {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
const f = N(e);
|
|
216
|
+
const o = b(b({}, this.five.getCurrentState()), i), { panoIndex: t, mode: n } = o, r = O(n) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
|
|
217
|
+
if ((r == null ? void 0 : r.distance) !== void 0)
|
|
218
|
+
return r.distance;
|
|
219
|
+
const f = B(e);
|
|
207
220
|
if (!f)
|
|
208
221
|
return -1;
|
|
209
|
-
if (
|
|
210
|
-
const
|
|
211
|
-
if (
|
|
222
|
+
if (O(n)) {
|
|
223
|
+
const d = this.getObserverPosition(t);
|
|
224
|
+
if (d === void 0)
|
|
212
225
|
return -1;
|
|
213
|
-
const
|
|
214
|
-
return
|
|
226
|
+
const g = d.distanceTo(f);
|
|
227
|
+
return r && (r.distance = g), g;
|
|
215
228
|
}
|
|
216
|
-
if (z(
|
|
229
|
+
if (z(n))
|
|
217
230
|
return this.five.camera.position.distanceTo(f);
|
|
218
231
|
}
|
|
219
232
|
getPositions(e) {
|
|
220
233
|
if (ae(e))
|
|
221
234
|
return e.position;
|
|
222
|
-
if (
|
|
235
|
+
if (N(e))
|
|
223
236
|
return e.data.mediaPosition;
|
|
224
237
|
if (ce(e))
|
|
225
|
-
return te(this.five.camera.position,
|
|
238
|
+
return te(this.five.camera.position, C(e.position), C(e.normal));
|
|
226
239
|
}
|
|
227
240
|
addObjectClickHandler(e, i, o) {
|
|
228
241
|
if (!i || !this.domEvents)
|
|
229
242
|
return () => {
|
|
230
243
|
};
|
|
231
|
-
const t = () => !(!this.getCurrentVisibleState(e) || e.loading),
|
|
244
|
+
const t = () => !(!this.getCurrentVisibleState(e) || e.loading), n = (r) => {
|
|
232
245
|
if (!t())
|
|
233
246
|
return !1;
|
|
234
|
-
o(
|
|
247
|
+
o(r.origDomEvent);
|
|
235
248
|
};
|
|
236
|
-
return this.domEvents.addEventListener(i, "click",
|
|
237
|
-
var
|
|
238
|
-
(
|
|
249
|
+
return this.domEvents.addEventListener(i, "click", n), () => {
|
|
250
|
+
var r;
|
|
251
|
+
(r = this.domEvents) == null || r.removeEventListener(i, "click", n);
|
|
239
252
|
};
|
|
240
253
|
}
|
|
241
254
|
getTagNormal(e) {
|
|
242
255
|
if (e.normal)
|
|
243
|
-
return
|
|
256
|
+
return C(e.normal);
|
|
244
257
|
if (e.stickType === "Plane")
|
|
245
|
-
return
|
|
258
|
+
return E(e.position);
|
|
246
259
|
if (e.stickType === "Model")
|
|
247
|
-
return
|
|
260
|
+
return E(this.getPositions(e));
|
|
248
261
|
}
|
|
249
262
|
// TODO: 优化点:下面这些函数,调用比较频繁,可以按点位加缓存
|
|
250
263
|
get filterPointTag() {
|
|
@@ -269,6 +282,11 @@ class si extends oe {
|
|
|
269
282
|
return o === "BehindDom" || o === "Dom";
|
|
270
283
|
});
|
|
271
284
|
}
|
|
285
|
+
getTransformedPostion(e) {
|
|
286
|
+
var o;
|
|
287
|
+
const i = (o = this.work) == null ? void 0 : o.options.transform;
|
|
288
|
+
return e.length === 4 ? e.map(C).map((t) => j(t, i)) : j(C(e), i);
|
|
289
|
+
}
|
|
272
290
|
/**
|
|
273
291
|
* @description 检查是否已经销毁
|
|
274
292
|
* @returns isDisposed; 已经销毁返回 true,否则返回 false
|
|
@@ -280,46 +298,46 @@ class si extends oe {
|
|
|
280
298
|
* @description: 获取merge后的配置
|
|
281
299
|
*/
|
|
282
300
|
calculateTagConfig(e, i) {
|
|
283
|
-
var
|
|
284
|
-
const o = (
|
|
301
|
+
var A, S, I, W;
|
|
302
|
+
const o = (A = i == null ? void 0 : i.useCache) != null ? A : !0;
|
|
285
303
|
if (!e)
|
|
286
|
-
return (
|
|
304
|
+
return (S = this.config.globalConfig) != null ? S : {};
|
|
287
305
|
if (o && ((I = e.config) != null && I._isMerged))
|
|
288
306
|
return e.config;
|
|
289
|
-
const t = {},
|
|
307
|
+
const t = {}, n = {}, r = {};
|
|
290
308
|
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([u, p]) => {
|
|
291
|
-
var
|
|
292
|
-
const c = u, D = c.split("-"),
|
|
293
|
-
if (!
|
|
294
|
-
if (
|
|
295
|
-
const [m] =
|
|
296
|
-
(e.contentType === m || m === "Any") && (
|
|
309
|
+
var V, L;
|
|
310
|
+
const c = u, D = c.split("-"), F = u.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;
|
|
311
|
+
if (!v[c]) {
|
|
312
|
+
if (h.length === 0 && (v[c] = p), h.length === 1) {
|
|
313
|
+
const [m] = h;
|
|
314
|
+
(e.contentType === m || m === "Any") && (v[c] = p);
|
|
297
315
|
}
|
|
298
|
-
if (
|
|
299
|
-
const [m = "Any",
|
|
300
|
-
m === "Mixin" && e.contentType ===
|
|
316
|
+
if (h.length === 2) {
|
|
317
|
+
const [m = "Any", P = "Any"] = h;
|
|
318
|
+
m === "Mixin" && e.contentType === P && (v[c] = p), (e.stickType === m || m === "Any") && (e.contentType === P || P === "Any") && (v[c] = p);
|
|
301
319
|
}
|
|
302
|
-
if (
|
|
303
|
-
const [m = "Any",
|
|
304
|
-
if (
|
|
320
|
+
if (h.length === 3) {
|
|
321
|
+
const [m = "Any", P, G] = h;
|
|
322
|
+
if (P === "Audio" && e.contentType === "Audio") {
|
|
305
323
|
const x = e;
|
|
306
|
-
(x.stickType === m || m === "Any") && x.data.appearance ===
|
|
324
|
+
(x.stickType === m || m === "Any") && x.data.appearance === G && (v[c] = p);
|
|
307
325
|
}
|
|
308
326
|
}
|
|
309
327
|
}
|
|
310
328
|
});
|
|
311
|
-
const f = (
|
|
312
|
-
H(
|
|
313
|
-
|
|
314
|
-
(u === "PanoramaLike" &&
|
|
329
|
+
const f = (W = e.config) != null && W._isMerged ? e.initialConfig : e.config, d = y({}, Z, this.config.globalConfig, ...Object.values(t)), g = y({}, d, f), k = {}, U = Object.values(se.Mode);
|
|
330
|
+
H(n).forEach(([u, p]) => {
|
|
331
|
+
U.forEach((c) => {
|
|
332
|
+
(u === "PanoramaLike" && O(c) || u === "ModelLike" && z(c)) && (k[c] = y({}, d, ...Object.values(p), f));
|
|
315
333
|
});
|
|
316
|
-
}), H(
|
|
317
|
-
|
|
334
|
+
}), H(r).forEach(([u, p]) => {
|
|
335
|
+
k[u] = y({}, d, ...Object.values(p), f);
|
|
318
336
|
});
|
|
319
|
-
const
|
|
320
|
-
return $(
|
|
337
|
+
const M = _(b({}, g), { configWithFiveMode: k });
|
|
338
|
+
return $(M, e), Object.values(k).forEach((u) => $(u, e)), M._isMerged = !0, M;
|
|
321
339
|
}
|
|
322
340
|
}
|
|
323
341
|
export {
|
|
324
|
-
|
|
342
|
+
fi as TagUtil
|
|
325
343
|
};
|
|
@@ -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
|
};
|