@realsee/dnalogel 3.55.0 → 3.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/PanoTagPlugin/controller/Tag/BaseTag.d.ts +7 -3
- package/dist/PanoTagPlugin/controller/Tag/PointTag.d.ts +0 -1
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +4 -2
- package/dist/index.cjs.js +58 -58
- package/dist/index.js +3177 -3154
- package/dist/index.umd.js +48 -48
- package/dist/shared-utils/tag.d.ts +6 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
- package/docs/classes/CSS3DRender.html +2 -2
- package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +2 -2
- package/docs/classes/ModelMakerPluginInstance.html +2 -2
- package/docs/classes/ModelRoomLabelController.html +2 -2
- package/docs/classes/MoveController.html +2 -2
- package/docs/classes/Object3DHelperController.html +2 -2
- package/docs/classes/PaintBrush.html +2 -2
- package/docs/classes/PanoMeasurePluginLine.html +2 -2
- package/docs/classes/PanoMeasurePluginModel.html +2 -2
- package/docs/classes/PanoMeasurePluginPoint.html +2 -2
- package/docs/classes/PanoMeasurePluginPolyline.html +2 -2
- package/docs/classes/PanoTagPluginController.html +26 -26
- package/docs/classes/Sculpt.html +2 -2
- package/docs/classes/Util.BetterTween.html +2 -2
- package/docs/classes/Util.FiveDomEvents.html +2 -2
- package/docs/classes/Util.FivePuppet.html +2 -2
- package/docs/classes/Util.Interval.html +2 -2
- package/docs/classes/Util.LightTag.html +14 -14
- package/docs/classes/Util.LineSegments.html +2 -2
- package/docs/classes/Util.Magnifier.html +2 -2
- package/docs/classes/Util.Object3D.html +2 -2
- package/docs/classes/Util.PointHelper.html +2 -2
- package/docs/classes/Util.PointSelector.html +2 -2
- package/docs/classes/Util.PointSelectorHelper.html +2 -2
- package/docs/classes/Util.Rectangle.html +2 -2
- package/docs/classes/Util.sculpt.BaseEditor.html +2 -2
- package/docs/classes/Util.sculpt.BoxMesh.html +2 -2
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleMesh.html +2 -2
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.LineMesh.html +2 -2
- package/docs/classes/Util.sculpt.PointMesh.html +2 -2
- package/docs/classes/Util.sculpt.PolygonMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMesh.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +2 -2
- package/docs/classes/WalkController.html +2 -2
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +2 -2
- package/docs/enums/DIRECTION.html +2 -2
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/DimensionType.html +2 -2
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/PaintBrushTypeEnum.html +2 -2
- package/docs/enums/PointType.html +2 -2
- package/docs/enums/Rotation.html +2 -2
- package/docs/functions/AreaMakerPlugin.html +1 -1
- package/docs/functions/CSS3DRenderPlugin.html +1 -1
- package/docs/functions/CameraMovementPlugin.html +2 -2
- package/docs/functions/CruisePlugin.html +1 -1
- package/docs/functions/CurrentPanoImagePlugin.html +1 -1
- package/docs/functions/GuideLinePlugin.html +1 -1
- package/docs/functions/ItemLabelPlugin.html +1 -1
- package/docs/functions/MapviewFloorplanPlugin.html +1 -1
- package/docs/functions/ModelChassisCompassPlugin.html +2 -2
- package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
- package/docs/functions/ModelFloorplanPlugin.html +1 -1
- package/docs/functions/ModelItemLabelPlugin.html +1 -1
- package/docs/functions/ModelMakerPlugin.html +1 -1
- package/docs/functions/ModelRoomLabelPlugin.html +1 -1
- package/docs/functions/ModelTVVideoPlugin.html +1 -1
- package/docs/functions/ModelViewPlugin.html +2 -2
- package/docs/functions/MovePlugin.html +1 -1
- package/docs/functions/Object3DHelperPlugin.html +1 -1
- package/docs/functions/PanoCompassPlugin.html +1 -1
- package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
- package/docs/functions/PanoDoorLabelPlugin.html +1 -1
- package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
- package/docs/functions/PanoMeasurePlugin.html +1 -1
- package/docs/functions/PanoRulerPlugin.html +2 -2
- package/docs/functions/PanoRulerProPlugin.html +2 -2
- package/docs/functions/PanoSpatialTagPlugin.html +2 -2
- package/docs/functions/PanoTagPlugin.html +1 -1
- package/docs/functions/PanoVideoPlugin.html +2 -2
- package/docs/functions/PipelinePlugin.html +1 -1
- package/docs/functions/SculptPlugin.html +2 -2
- package/docs/functions/TopviewFloorplanPlugin.html +1 -1
- package/docs/functions/Util.absoluteUrl.html +2 -2
- package/docs/functions/Util.awaitNextFrame.html +1 -1
- package/docs/functions/Util.blink.html +2 -2
- package/docs/functions/Util.bounding.html +1 -1
- package/docs/functions/Util.boundingBox.html +1 -1
- package/docs/functions/Util.boundingSphere.html +1 -1
- package/docs/functions/Util.boxVertex.html +2 -2
- package/docs/functions/Util.boxVertexes.html +1 -1
- package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
- package/docs/functions/Util.convexHull.html +2 -2
- package/docs/functions/Util.equal.html +2 -2
- package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
- package/docs/functions/Util.getCoordsFromClient.html +1 -1
- package/docs/functions/Util.getCoordsFromElement.html +1 -1
- package/docs/functions/Util.getFrameTime.html +2 -2
- package/docs/functions/Util.inside.html +1 -1
- package/docs/functions/Util.isAbsoluteURL.html +1 -1
- package/docs/functions/Util.isModelLike.html +1 -1
- package/docs/functions/Util.isNil.html +2 -2
- package/docs/functions/Util.isPanoramaLike.html +1 -1
- package/docs/functions/Util.lookObject.html +2 -2
- package/docs/functions/Util.lookPoint.html +2 -2
- package/docs/functions/Util.nextFrame.html +1 -1
- package/docs/functions/Util.notNil.html +2 -2
- package/docs/functions/Util.reblink.html +2 -2
- package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
- package/docs/functions/Util.sculpt.createBox.html +1 -1
- package/docs/functions/Util.sculpt.createCircle.html +1 -1
- package/docs/functions/Util.sculpt.createCylinder.html +1 -1
- package/docs/functions/Util.sculpt.createLine.html +2 -2
- package/docs/functions/Util.sculpt.createPoint.html +1 -1
- package/docs/functions/Util.sculpt.createPolygon.html +1 -1
- package/docs/functions/Util.sculpt.createPrism.html +1 -1
- package/docs/functions/Util.sculpt.createRectangle.html +2 -2
- package/docs/functions/Util.tag.html +1 -1
- package/docs/functions/Util.tweenProgress.html +1 -1
- package/docs/functions/Util.uuid.html +2 -2
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
- package/docs/functions/Util.worldBounding.html +1 -1
- package/docs/functions/Util.worldBoundingBox.html +1 -1
- package/docs/functions/Util.worldBoundingSphere.html +1 -1
- package/docs/functions/createPolyline.html +2 -2
- package/docs/functions/pluginFlag.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Config.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Params.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.State.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/ContentTypeMapInterface.html +2 -2
- package/docs/interfaces/CruisePluginTypes.Config.html +2 -2
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
- package/docs/interfaces/CruisePluginTypes.EventMap.html +2 -2
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +2 -2
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +2 -2
- package/docs/interfaces/FloorplanExtraObject.html +2 -2
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +2 -2
- package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
- package/docs/interfaces/FloorplanServerBounding.html +2 -2
- package/docs/interfaces/FloorplanServerComputedData.html +2 -2
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
- package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +2 -2
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +2 -2
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +2 -2
- package/docs/interfaces/GuideLinePluginType.EventMap.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +2 -2
- package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +2 -2
- package/docs/interfaces/HelperOffset.html +2 -2
- package/docs/interfaces/ImagePlaneGroup.html +2 -2
- package/docs/interfaces/ItemLabelPluginData.html +2 -2
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/MinMax.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.State.html +2 -2
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
- package/docs/interfaces/ModelViewPluginExportType.html +2 -2
- package/docs/interfaces/Object3DHelperState.html +2 -2
- package/docs/interfaces/ObjectHelperControllers.html +2 -2
- package/docs/interfaces/PaintBrushAction.html +2 -2
- package/docs/interfaces/PaintBrushConfigs.html +2 -2
- package/docs/interfaces/PaintBrushState.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +2 -2
- package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +2 -2
- package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginState.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +2 -2
- package/docs/interfaces/PluginEventMap.html +2 -2
- package/docs/interfaces/Point.html +2 -2
- package/docs/interfaces/Room.html +2 -2
- package/docs/interfaces/RoomInfo.html +2 -2
- package/docs/interfaces/RoomLabel.html +2 -2
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +2 -2
- package/docs/interfaces/State.html +2 -2
- package/docs/interfaces/TagCacheInterface.html +2 -2
- package/docs/interfaces/TagConfig.html +2 -2
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconUrl.html +2 -2
- package/docs/interfaces/TagObjectGroup.html +2 -2
- package/docs/interfaces/TagStyle.html +2 -2
- package/docs/interfaces/Tags.html +2 -2
- package/docs/interfaces/TemporaryState.html +2 -2
- package/docs/interfaces/Util.AnimeInstance.html +2 -2
- package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
- package/docs/interfaces/Util.EventHandlerConfig.html +2 -2
- package/docs/interfaces/Util.FiveDomEvent.html +2 -2
- package/docs/interfaces/Util.FiveDomEventMap.html +2 -2
- package/docs/interfaces/Util.MagnifierParameter.html +2 -2
- package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.PointIntersection.html +2 -2
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +2 -2
- package/docs/modules/AreaMakerPluginType.html +2 -2
- package/docs/modules/CruisePluginTypes.html +2 -2
- package/docs/modules/CurrentPanoImagePluginType.html +2 -2
- package/docs/modules/GuideLineItem.html +2 -2
- package/docs/modules/GuideLineModeItem.html +2 -2
- package/docs/modules/GuideLinePluginType.html +2 -2
- package/docs/modules/ModelMakerPluginType.html +2 -2
- package/docs/modules/PanoVideoPluginType.html +2 -2
- package/docs/modules/SculptData.html +2 -2
- package/docs/modules/Util.html +2 -2
- package/docs/modules/Util.sculpt.html +2 -2
- package/docs/modules.html +2 -2
- package/docs/types/AddObject3DHelperConfig.html +2 -2
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
- package/docs/types/ArrayPosition.html +1 -1
- package/docs/types/AudioAppearance.html +1 -1
- package/docs/types/CSS3DRenderExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
- package/docs/types/ClassFunctionParameters.html +1 -1
- package/docs/types/Color.html +1 -1
- package/docs/types/ContentTypeConfigKey.html +1 -1
- package/docs/types/ContentTypeConfigKeySplit.html +1 -1
- package/docs/types/ContentTypeMap.html +1 -1
- package/docs/types/Create3DDomContainerReturnType.html +1 -1
- package/docs/types/Create3DElementReturnType.html +1 -1
- package/docs/types/CruisePluginExportType.html +1 -1
- package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
- package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
- package/docs/types/DeprecatedTagProperty.html +2 -2
- package/docs/types/Direction-1.html +1 -1
- package/docs/types/Direction4.html +1 -1
- package/docs/types/ElementRenderer.html +2 -2
- package/docs/types/FloorplanRuleLabels.html +2 -2
- package/docs/types/FloorplanServerRuleLabels.html +1 -1
- package/docs/types/GuideLinePluginExportType.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
- package/docs/types/GuideLinePluginType.PathItem.html +2 -2
- package/docs/types/GuideLinePluginType.PluginData.html +2 -2
- package/docs/types/HelperEventMap.html +1 -1
- package/docs/types/InternalHelperEventMap.html +1 -1
- package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/MediaData.html +2 -2
- package/docs/types/MediaStore.html +1 -1
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
- package/docs/types/ModelId.html +1 -1
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
- package/docs/types/ModelMakerPluginType.ItemType.html +1 -1
- package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
- package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
- package/docs/types/MoveArgs.html +2 -2
- package/docs/types/MoveOpts.html +2 -2
- package/docs/types/Object3DHelperEventMap.html +1 -1
- package/docs/types/ObjectFit.html +1 -1
- package/docs/types/PaintBrushEventMap.html +1 -1
- package/docs/types/PanoCompassPluginData.html +1 -1
- package/docs/types/PanoCompassPluginExportType.html +1 -1
- package/docs/types/PanoCompassPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
- package/docs/types/PanoIndex.html +1 -1
- package/docs/types/PanoMeasurePluginEvent.html +1 -1
- package/docs/types/PanoMeasureReturnType.html +1 -1
- package/docs/types/PanoSpatialTagPluginId.html +1 -1
- package/docs/types/PanoTagPluginExportInterface.html +1 -1
- package/docs/types/PanoTagPluginParamsInterface.html +1 -1
- package/docs/types/PanoVideoPluginParameterType.html +1 -1
- package/docs/types/PanoVideoPluginReturnType.html +1 -1
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
- package/docs/types/PipelinePluginParameterType.html +1 -1
- package/docs/types/PipelinePluginReturnType.html +1 -1
- package/docs/types/PlaneTag.html +2 -2
- package/docs/types/Point2DTag.html +2 -2
- package/docs/types/Point3DTag.html +2 -2
- package/docs/types/PointTagInstance.html +1 -1
- package/docs/types/Position.html +1 -1
- package/docs/types/PositionFrom.html +1 -1
- package/docs/types/RotateArgs.html +2 -2
- package/docs/types/RotateOpts.html +2 -2
- package/docs/types/RuleLabelsKey.html +1 -1
- package/docs/types/RuleLabelsValue.html +1 -1
- package/docs/types/ScaleCallback.html +1 -1
- package/docs/types/ScalePosition.html +2 -2
- package/docs/types/SculptData.BoxData.html +1 -1
- package/docs/types/SculptData.CircleData.html +1 -1
- package/docs/types/SculptData.CylinderData.html +1 -1
- package/docs/types/SculptData.PointData.html +1 -1
- package/docs/types/SculptData.PolygonData.html +1 -1
- package/docs/types/SculptData.PolylineData.html +1 -1
- package/docs/types/SculptData.PrismData.html +1 -1
- package/docs/types/SculptData.RectangleData.html +1 -1
- package/docs/types/StickType.html +1 -1
- package/docs/types/Tag.html +2 -2
- package/docs/types/Tag2D.html +2 -2
- package/docs/types/Tag3D.html +2 -2
- package/docs/types/TagClickParams.html +1 -1
- package/docs/types/TagConfigByKey.html +1 -1
- package/docs/types/TagContentType.html +1 -1
- package/docs/types/TagContentTypeMapping.html +1 -1
- package/docs/types/TagDimensionType.html +1 -1
- package/docs/types/TagElement.html +2 -2
- package/docs/types/TagEvents.html +1 -1
- package/docs/types/TagGLTFObject.html +1 -1
- package/docs/types/TagHooks.html +1 -1
- package/docs/types/TagId.html +1 -1
- package/docs/types/TagInstance.html +1 -1
- package/docs/types/TagPointType.html +2 -2
- package/docs/types/TagRendererMap.html +1 -1
- package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/Util.ActionIfNoModelUnderMouse.html +1 -1
- package/docs/types/Util.PointSelectorConfig.html +1 -1
- package/docs/types/WorkCode.html +1 -1
- package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
- package/docs/variables/PLUGIN.html +1 -1
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
- package/docs/variables/ROOM_TYPE_MAP.html +2 -2
- package/docs/variables/Util.animeMap.html +1 -1
- package/docs/variables/defaultGlobalConfig.html +1 -1
- package/docs/variables/itemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
- package/libs/ModelMakerPlugin/item/polygonItem.js +5 -5
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +7 -3
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +86 -78
- package/libs/PanoTagPlugin/controller/Tag/PointTag.d.ts +0 -1
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +30 -47
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +4 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +85 -70
- package/libs/PanoTagPlugin/controller/index.js +61 -51
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +6 -1
- package/libs/shared-utils/tag.js +34 -27
- package/package.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var G = Object.defineProperty, K = Object.defineProperties;
|
|
2
|
+
var Q = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var P = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var D = Object.prototype.hasOwnProperty, j = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var C = Math.pow, I = (c, i, e) => i in c ? G(c, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[i] = e, p = (c, i) => {
|
|
6
6
|
for (var e in i || (i = {}))
|
|
7
|
-
|
|
7
|
+
D.call(i, e) && I(c, e, i[e]);
|
|
8
8
|
if (P)
|
|
9
9
|
for (var e of P(i))
|
|
10
|
-
|
|
10
|
+
j.call(i, e) && I(c, e, i[e]);
|
|
11
11
|
return c;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, w = (c, i) => K(c, Q(i));
|
|
13
|
+
var A = (c, i) => {
|
|
14
14
|
var e = {};
|
|
15
15
|
for (var t in c)
|
|
16
|
-
|
|
16
|
+
D.call(c, t) && i.indexOf(t) < 0 && (e[t] = c[t]);
|
|
17
17
|
if (c != null && P)
|
|
18
18
|
for (var t of P(c))
|
|
19
|
-
i.indexOf(t) < 0 &&
|
|
19
|
+
i.indexOf(t) < 0 && j.call(c, t) && (e[t] = c[t]);
|
|
20
20
|
return e;
|
|
21
21
|
};
|
|
22
|
-
var f = (c, i, e) => (
|
|
22
|
+
var f = (c, i, e) => (I(c, typeof i != "symbol" ? i + "" : i, e), e);
|
|
23
23
|
var y = (c, i, e) => new Promise((t, r) => {
|
|
24
24
|
var n = (s) => {
|
|
25
25
|
try {
|
|
@@ -36,38 +36,38 @@ var y = (c, i, e) => new Promise((t, r) => {
|
|
|
36
36
|
}, o = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(n, l);
|
|
37
37
|
o((e = e.apply(c, i)).next());
|
|
38
38
|
});
|
|
39
|
-
import { Subscribe as
|
|
40
|
-
import { calculateTagConfig as
|
|
41
|
-
import { getTagStickType as
|
|
39
|
+
import { Subscribe as Y } from "../../../shared-utils/Subscribe.js";
|
|
40
|
+
import { calculateTagConfig as U } from "../../utils/tag/calculateTagConfig.js";
|
|
41
|
+
import { getTagStickType as ee } from "../../utils/tag/format.js";
|
|
42
42
|
import "../../../shared-utils/tag.js";
|
|
43
|
-
import { isPanoramaLike as
|
|
43
|
+
import { isPanoramaLike as T, isModelLike as k } from "../../../shared-utils/five/mode.js";
|
|
44
44
|
import * as B from "three";
|
|
45
45
|
import "hammerjs";
|
|
46
46
|
import "../../../shared-utils/three/PointSelector/index.js";
|
|
47
47
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
48
|
-
import { centerPoint as
|
|
49
|
-
import { anyPositionToVector3 as
|
|
50
|
-
import { toArray as
|
|
48
|
+
import { centerPoint as ie } from "../../../shared-utils/three/centerPoint.js";
|
|
49
|
+
import { anyPositionToVector3 as O } from "../../../shared-utils/positionToVector3.js";
|
|
50
|
+
import { toArray as te } from "../../../shared-utils/util.js";
|
|
51
51
|
import "@realsee/five/line";
|
|
52
|
-
import { isNil as
|
|
52
|
+
import { isNil as R, notNil as E } from "../../../shared-utils/isNil.js";
|
|
53
53
|
import "../../../shared-utils/three/core/Five_LineMaterial2.js";
|
|
54
54
|
import "../../../shared-utils/three/core/Sphere.js";
|
|
55
|
-
import { blink as
|
|
56
|
-
import { vectorToCoordinates as
|
|
57
|
-
import { transformPosition as
|
|
58
|
-
import { lookPoint as
|
|
59
|
-
import { uuid as
|
|
55
|
+
import { blink as ne, reblink as se } from "../../../shared-utils/three/blink.js";
|
|
56
|
+
import { vectorToCoordinates as oe } from "../../../shared-utils/vectorToCoordinate.js";
|
|
57
|
+
import { transformPosition as L } from "../../../shared-utils/five/transformPosition.js";
|
|
58
|
+
import { lookPoint as re } from "../../../shared-utils/five/lookPoint.js";
|
|
59
|
+
import { uuid as le } from "../../../shared-utils/uuid.js";
|
|
60
60
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
61
61
|
import "../../../shared-utils/five/FivePuppet.js";
|
|
62
62
|
import { objectAssignDeepExports as b } from "../../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
63
|
-
import { getTagPosition as
|
|
64
|
-
import { checkRange as
|
|
65
|
-
import { isMediaPlaneTag as
|
|
63
|
+
import { getTagPosition as $, getTagCenterPosition as z } from "../../utils/tagPosition.js";
|
|
64
|
+
import { checkRange as x } from "../../utils/checkRange.js";
|
|
65
|
+
import { isMediaPlaneTag as ae, isMediaModelTag as V } from "../../utils/tag/tagCheck.js";
|
|
66
66
|
import { getUrlExt as N } from "../../../shared-utils/url/getUrl.js";
|
|
67
|
-
import { getFloorIndex as
|
|
68
|
-
import { safeObj as
|
|
69
|
-
import { Cache as
|
|
70
|
-
import { _raycaster as
|
|
67
|
+
import { getFloorIndex as fe } from "../../../shared-utils/five/getFloorIndex.js";
|
|
68
|
+
import { safeObj as J } from "../../../shared-utils/safeObj.js";
|
|
69
|
+
import { Cache as de } from "../../utils/Cache.js";
|
|
70
|
+
import { _raycaster as S } from "../../../shared-utils/three/temp.js";
|
|
71
71
|
import "../../../shared-utils/typescript/entries.js";
|
|
72
72
|
import "../../utils/tag/adaptConfig.js";
|
|
73
73
|
import "../../typings/tag/TagConfig.js";
|
|
@@ -112,7 +112,7 @@ import "../../../shared-utils/five/getPosition.js";
|
|
|
112
112
|
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
113
113
|
import "../../../shared-utils/three/PointSelector/utils/contents.js";
|
|
114
114
|
import "../../../shared-utils/formatRad.js";
|
|
115
|
-
class
|
|
115
|
+
class Ai {
|
|
116
116
|
constructor(i, e) {
|
|
117
117
|
f(this, "plugin");
|
|
118
118
|
f(this, "id");
|
|
@@ -144,12 +144,12 @@ class ji {
|
|
|
144
144
|
f(this, "entryFromModel");
|
|
145
145
|
var s, d, h, u;
|
|
146
146
|
this.plugin = i;
|
|
147
|
-
const t =
|
|
147
|
+
const t = ee(e);
|
|
148
148
|
e.stickType = t;
|
|
149
149
|
const r = JSON.parse(JSON.stringify(e.data)), n = (s = e.initialConfig) != null ? s : e.config ? JSON.parse(JSON.stringify(e.config)) : {};
|
|
150
150
|
e.initialConfig = n;
|
|
151
|
-
const l =
|
|
152
|
-
e.config = o, this.id = (d = e.id) != null ? d :
|
|
151
|
+
const l = U(e, i.config), o = this.getConfig(e);
|
|
152
|
+
e.config = o, this.id = (d = e.id) != null ? d : le(), this.enabled = (h = e.enabled) != null ? h : !0, this.contentType = e.contentType, this.data = (u = o.initialData) != null && u.important ? b(e.data, r, o.initialData) : b(e.data, o.initialData, r), this.state = p({
|
|
153
153
|
visible: void 0,
|
|
154
154
|
unfolded: !this.can("fold")
|
|
155
155
|
}, o.initialState), this.originPosition = e.position, e.originPosition = this.originPosition, this.position = (() => {
|
|
@@ -157,11 +157,11 @@ class ji {
|
|
|
157
157
|
if (!a)
|
|
158
158
|
return;
|
|
159
159
|
const g = i.workUtil.transform;
|
|
160
|
-
return Array.isArray(a) && a.length === 4 ? a.map(
|
|
160
|
+
return Array.isArray(a) && a.length === 4 ? a.map(O).map((m) => L(m, g).toArray()) : L(O(a), g).toArray();
|
|
161
161
|
})(), this.matrix = e.matrix ? (() => {
|
|
162
162
|
const a = new B.Matrix4().fromArray(e.matrix);
|
|
163
163
|
return a.premultiply(i.workUtil.transform), a.elements;
|
|
164
|
-
})() : e.matrix, this.initialConfig = n, this.computedConfig = l, this.stickType = t, this.config = e.config, this.fiveState = e.fiveState, this.normal = e.normal, this.cache = new
|
|
164
|
+
})() : e.matrix, this.initialConfig = n, this.computedConfig = l, this.stickType = t, this.config = e.config, this.fiveState = e.fiveState, this.normal = e.normal, this.cache = new de(), this.hooks = new Y(), Object.keys(e).forEach((a) => {
|
|
165
165
|
this[a] === void 0 && e[a] !== void 0 && (this[a] = e[a]);
|
|
166
166
|
});
|
|
167
167
|
}
|
|
@@ -175,12 +175,12 @@ class ji {
|
|
|
175
175
|
return this.plugin.workUtil;
|
|
176
176
|
}
|
|
177
177
|
get centerPosition() {
|
|
178
|
-
const i =
|
|
179
|
-
return
|
|
178
|
+
const i = $(this);
|
|
179
|
+
return ie(...Array.isArray(i) ? i : [i]);
|
|
180
180
|
}
|
|
181
181
|
get currentConfig() {
|
|
182
182
|
var r, n;
|
|
183
|
-
const i =
|
|
183
|
+
const i = U(this, this.plugin.config, { useCache: !0 }), e = this.five.getCurrentState().mode, t = (r = i.configWithFiveMode) == null ? void 0 : r[e];
|
|
184
184
|
return (n = t != null ? t : i) != null ? n : {};
|
|
185
185
|
}
|
|
186
186
|
get currentVisible() {
|
|
@@ -207,16 +207,16 @@ class ji {
|
|
|
207
207
|
const t = (r = i == null ? void 0 : i.targetMode) != null ? r : this.five.state.mode;
|
|
208
208
|
if (t === "Panorama") {
|
|
209
209
|
const n = e == null ? void 0 : e.panoIndex;
|
|
210
|
-
if (
|
|
210
|
+
if (R(n))
|
|
211
211
|
return;
|
|
212
212
|
const l = this.workUtil.getObserverPosition(n), o = this.centerPosition.clone().sub(l).normalize();
|
|
213
213
|
this.five.setState(p({
|
|
214
214
|
mode: "Panorama",
|
|
215
215
|
workCode: this.workUtil.workCode,
|
|
216
216
|
panoIndex: n
|
|
217
|
-
},
|
|
217
|
+
}, oe(o))), yield this.five.ready();
|
|
218
218
|
} else
|
|
219
|
-
t === "Mapview" && (yield
|
|
219
|
+
t === "Mapview" && (yield re(this.five, this.centerPosition, i == null ? void 0 : i.pointConfig));
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
222
|
/**
|
|
@@ -252,7 +252,7 @@ class ji {
|
|
|
252
252
|
console.warn("tagDom is empty");
|
|
253
253
|
return;
|
|
254
254
|
}
|
|
255
|
-
yield (r ?
|
|
255
|
+
yield (r ? ne : se)(n, p({
|
|
256
256
|
begin: () => {
|
|
257
257
|
r === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
|
|
258
258
|
},
|
|
@@ -336,24 +336,32 @@ class ji {
|
|
|
336
336
|
this.state.visible = this.getVisible(), this.applyVisible();
|
|
337
337
|
}
|
|
338
338
|
updateZIndex() {
|
|
339
|
-
const i = this.
|
|
339
|
+
const i = this.getSquaredDistance();
|
|
340
340
|
this.zIndex = Math.round((1e4 - (i != null ? i : 0)) * 100);
|
|
341
341
|
}
|
|
342
342
|
getConfig(i, e) {
|
|
343
343
|
var l, o, s;
|
|
344
|
-
const t =
|
|
344
|
+
const t = U(i != null ? i : this, this.plugin.config, { useCache: e == null ? void 0 : e.useCache }), r = (l = e == null ? void 0 : e.fiveMode) != null ? l : this.five.getCurrentState().mode, n = (o = t.configWithFiveMode) == null ? void 0 : o[r];
|
|
345
345
|
return (s = n != null ? n : t) != null ? s : {};
|
|
346
346
|
}
|
|
347
347
|
getDistance(i, e = 3) {
|
|
348
348
|
const t = p(p({}, this.five.getCurrentState()), i), { panoIndex: r, mode: n } = t, l = n === "Panorama" ? this.workUtil.getObserverPosition(r) : this.five.camera.position, o = this.centerPosition;
|
|
349
349
|
return !l || !o ? -1 : l.distanceTo(o);
|
|
350
350
|
}
|
|
351
|
+
/**
|
|
352
|
+
* @description 用于排序的距离,性能更好
|
|
353
|
+
*/
|
|
354
|
+
getSquaredDistance() {
|
|
355
|
+
const i = this.five.camera.position;
|
|
356
|
+
let e;
|
|
357
|
+
return Array.isArray(this.position[0]) ? e = this.position[0] : e = this.position, C(e[0] - i.x, 2) + C(e[1] - i.y, 2) + C(e[2] - i.z, 2);
|
|
358
|
+
}
|
|
351
359
|
getVisible(i) {
|
|
352
360
|
if (!this.enabled || !this.plugin.state.enabled || !this.fiveUtil.model)
|
|
353
361
|
return !1;
|
|
354
362
|
const e = p(p({}, this.five.getCurrentState()), i);
|
|
355
363
|
let t = this.cache.getVisible(this, e);
|
|
356
|
-
return
|
|
364
|
+
return R(t) && (t = this.computeVisible(e).value, this.cache.setVisible(this, e, t)), t;
|
|
357
365
|
}
|
|
358
366
|
getUnfoldedByPanoIndex(i) {
|
|
359
367
|
if (!this.currentVisible)
|
|
@@ -393,14 +401,14 @@ class ji {
|
|
|
393
401
|
return;
|
|
394
402
|
const t = this.data.mediaData;
|
|
395
403
|
if (!(!t || t.length === 0) && e.renderType === "Mesh") {
|
|
396
|
-
if (
|
|
404
|
+
if (ae(this)) {
|
|
397
405
|
if (t.length === 1) {
|
|
398
406
|
if (t[0].type === "Video")
|
|
399
407
|
return navigator.userAgent.toLowerCase().indexOf("firefox") > -1 && navigator.userAgent.toLowerCase().indexOf("mobile") > -1 ? "Dom" : "Mesh";
|
|
400
408
|
if (t[0].type === "Image")
|
|
401
409
|
return N(t[0].url) === "gif" ? "Dom" : "Mesh";
|
|
402
410
|
}
|
|
403
|
-
} else if (
|
|
411
|
+
} else if (V(this))
|
|
404
412
|
return t.length === 1 && t[0].type === "Image" ? N(t[0].url) === "gif" ? "Dom" : "Mesh" : "BehindDom";
|
|
405
413
|
}
|
|
406
414
|
})();
|
|
@@ -426,11 +434,11 @@ class ji {
|
|
|
426
434
|
if ((g == null ? void 0 : g.value) === !1)
|
|
427
435
|
return g;
|
|
428
436
|
if (s.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (r === "Floorplan" || r === "Mapview")) {
|
|
429
|
-
const h = this.computeVisibleByFloorIndex(), { value: m } = h, v =
|
|
437
|
+
const h = this.computeVisibleByFloorIndex(), { value: m } = h, v = A(h, ["value"]);
|
|
430
438
|
if (m === !1)
|
|
431
439
|
return p({ value: !1, checkedList: n, reason: "followModelVisibility check failed" }, v);
|
|
432
440
|
}
|
|
433
|
-
if (
|
|
441
|
+
if (T(r) && s.visiblePanoIndex !== void 0 && s.visiblePanoIndex !== "all" && t !== void 0) {
|
|
434
442
|
if (n.push("visiblePanoIndex"), Array.isArray(s.visiblePanoIndex) && !s.visiblePanoIndex.includes(t))
|
|
435
443
|
return {
|
|
436
444
|
value: !1,
|
|
@@ -446,7 +454,7 @@ class ji {
|
|
|
446
454
|
}
|
|
447
455
|
if (s.visibleDistance !== void 0 && (n.push("visibleDistance"), s.visibleDistance !== "unLimited")) {
|
|
448
456
|
const m = this.getDistance(e, 1);
|
|
449
|
-
if (
|
|
457
|
+
if (x(m, s.visibleDistance) === !1)
|
|
450
458
|
return {
|
|
451
459
|
value: !1,
|
|
452
460
|
checkedList: n,
|
|
@@ -484,9 +492,9 @@ class ji {
|
|
|
484
492
|
if (n || (n = (o = (l = this.fiveState) == null ? void 0 : l.mode) != null ? o : this.workUtil.observers.length ? "Panorama" : "ModelLike"), Array.isArray(n))
|
|
485
493
|
return n.includes(e);
|
|
486
494
|
if (n === "ModelLike")
|
|
487
|
-
return
|
|
495
|
+
return k(e);
|
|
488
496
|
if (n === "PanoramaLike")
|
|
489
|
-
return !
|
|
497
|
+
return !T(e);
|
|
490
498
|
if (n === "all")
|
|
491
499
|
return !0;
|
|
492
500
|
if (typeof n == "string")
|
|
@@ -495,8 +503,8 @@ class ji {
|
|
|
495
503
|
if ((() => {
|
|
496
504
|
var l;
|
|
497
505
|
const n = t();
|
|
498
|
-
if (
|
|
499
|
-
if (
|
|
506
|
+
if (E((l = this.fiveState) == null ? void 0 : l.panoIndex) && i.entryFromModel) {
|
|
507
|
+
if (k(e) && n ? this.entryFromModel = !1 : this.entryFromModel = !0, k(e))
|
|
500
508
|
return !0;
|
|
501
509
|
} else
|
|
502
510
|
this.entryFromModel = !1;
|
|
@@ -512,33 +520,33 @@ class ji {
|
|
|
512
520
|
/** 通过射线检测标签可用性 */
|
|
513
521
|
computeVisibleByIntersect(i) {
|
|
514
522
|
var s, d, h, u;
|
|
515
|
-
const e =
|
|
523
|
+
const e = J(J((s = this.getConfig().visibleConfig) != null ? s : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, r = T(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
|
|
516
524
|
if (r === void 0)
|
|
517
525
|
return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
|
|
518
|
-
const n =
|
|
526
|
+
const n = te(
|
|
519
527
|
(() => {
|
|
520
528
|
var g;
|
|
521
529
|
const a = (g = e.checkPoints) != null ? g : "center";
|
|
522
|
-
return a === "center" ?
|
|
530
|
+
return a === "center" ? z(this) : a === "corner" ? $(this) : Array.isArray(a) ? a : [];
|
|
523
531
|
})()
|
|
524
532
|
);
|
|
525
533
|
let l = 0, o = 0;
|
|
526
534
|
for (const a of n) {
|
|
527
535
|
const g = new B.Vector3().subVectors(a, r).normalize();
|
|
528
536
|
let m;
|
|
529
|
-
|
|
530
|
-
const [v] = this.fiveUtil.model.intersectRaycaster(
|
|
537
|
+
S.set(r, g);
|
|
538
|
+
const [v] = this.fiveUtil.model.intersectRaycaster(S);
|
|
531
539
|
m = v == null ? void 0 : v.distance;
|
|
532
|
-
const
|
|
533
|
-
if (!
|
|
540
|
+
const M = (() => {
|
|
541
|
+
if (!V(this))
|
|
534
542
|
return;
|
|
535
|
-
const _ = this.plugin.tags.filter(
|
|
543
|
+
const _ = this.plugin.tags.filter(V).map((Z) => {
|
|
536
544
|
var F;
|
|
537
|
-
return (F =
|
|
538
|
-
}).filter(
|
|
539
|
-
return
|
|
540
|
-
})(),
|
|
541
|
-
m = Math.min(m != null ? m : 1 / 0, (h =
|
|
545
|
+
return (F = Z.model) == null ? void 0 : F.object;
|
|
546
|
+
}).filter(E), [X] = S.intersectObjects(_, !0);
|
|
547
|
+
return X;
|
|
548
|
+
})(), W = r.distanceTo(a), q = (d = e.distanceAccuracy) != null ? d : 0.01;
|
|
549
|
+
m = Math.min(m != null ? m : 1 / 0, (h = M == null ? void 0 : M.distance) != null ? h : 1 / 0), m + q >= W ? l++ : o++;
|
|
542
550
|
const H = (u = e.needPassed) != null ? u : 1;
|
|
543
551
|
if (l >= H)
|
|
544
552
|
return { value: !0 };
|
|
@@ -557,9 +565,9 @@ class ji {
|
|
|
557
565
|
var r, n, l, o, s, d, h;
|
|
558
566
|
let i = 0;
|
|
559
567
|
const e = (r = this.fiveState) == null ? void 0 : r.panoIndex;
|
|
560
|
-
e !== void 0 ? i = (n = this.workUtil.getObserver(e)) == null ? void 0 : n.floorIndex : i =
|
|
568
|
+
e !== void 0 ? i = (n = this.workUtil.getObserver(e)) == null ? void 0 : n.floorIndex : i = fe(
|
|
561
569
|
this.workUtil.work,
|
|
562
|
-
(h = (d = (o = (l = this.model) == null ? void 0 : l.object) == null ? void 0 : o.position) != null ? d : (s = this.mediaPlane) == null ? void 0 : s.position) != null ? h :
|
|
570
|
+
(h = (d = (o = (l = this.model) == null ? void 0 : l.object) == null ? void 0 : o.position) != null ? d : (s = this.mediaPlane) == null ? void 0 : s.position) != null ? h : z(this)
|
|
563
571
|
);
|
|
564
572
|
const t = this.fiveUtil.model.shownFloor;
|
|
565
573
|
return {
|
|
@@ -580,13 +588,13 @@ class ji {
|
|
|
580
588
|
return !1;
|
|
581
589
|
if (e.keep === "unfolded")
|
|
582
590
|
return !0;
|
|
583
|
-
if (e.unfoldDistance &&
|
|
591
|
+
if (e.unfoldDistance && x(this.getDistance({ panoIndex: i }), e.unfoldDistance) === !1)
|
|
584
592
|
return !1;
|
|
585
593
|
}
|
|
586
594
|
}
|
|
587
595
|
computeUnfoldedByCamera() {
|
|
588
596
|
var e;
|
|
589
|
-
if (this.entryFromModel &&
|
|
597
|
+
if (this.entryFromModel && k(this.five.state.mode))
|
|
590
598
|
return !1;
|
|
591
599
|
const i = this.getConfig().unfoldedConfig;
|
|
592
600
|
if (i) {
|
|
@@ -600,7 +608,7 @@ class ji {
|
|
|
600
608
|
return;
|
|
601
609
|
if (i.autoUnfold.strategy === "ScreenPostion") {
|
|
602
610
|
const t = this.computeTagProject();
|
|
603
|
-
if (t &&
|
|
611
|
+
if (t && x(t.x, i.autoUnfold.autoUnfoldProjectX) === !1)
|
|
604
612
|
return !1;
|
|
605
613
|
}
|
|
606
614
|
if (i.autoUnfold.strategy === "MinimumDistance") {
|
|
@@ -613,9 +621,9 @@ class ji {
|
|
|
613
621
|
}).map((o) => ({ tag: o, id: o.id, tagConfig: o.getConfig().unfoldedConfig })).filter(({ tagConfig: o }) => {
|
|
614
622
|
var s, d;
|
|
615
623
|
return !(typeof o == "function" || o.keep || o.autoUnfold === !1 || ((s = o.autoUnfold) == null ? void 0 : s.enable) === !1 || ((d = o.autoUnfold) == null ? void 0 : d.strategy) !== "MinimumDistance");
|
|
616
|
-
}).map((o) =>
|
|
624
|
+
}).map((o) => w(p({}, o), { distance: o.tag.getDistance() })).filter(({ distance: o, tagConfig: s }) => {
|
|
617
625
|
const d = s.autoUnfold.distance;
|
|
618
|
-
return !(d &&
|
|
626
|
+
return !(d && x(o, d) === !1);
|
|
619
627
|
}).sort((o, s) => o.distance - s.distance).findIndex((o) => o.id === this.id);
|
|
620
628
|
if (n === -1 || n <= ((e = i.autoUnfold.maxNumber) != null ? e : 1) - 1 === !1)
|
|
621
629
|
return !1;
|
|
@@ -653,7 +661,7 @@ class ji {
|
|
|
653
661
|
return { reason: `plugin.state.visible is ${this.plugin.state.visible}` };
|
|
654
662
|
if (!this.enabled)
|
|
655
663
|
return { reason: `tag ${this.id} enabled is: ${this.enabled}` };
|
|
656
|
-
const i =
|
|
664
|
+
const i = w(p({}, this.computeVisible()), {
|
|
657
665
|
tagInstance: this
|
|
658
666
|
});
|
|
659
667
|
return i.value !== this.state.visible ? { reason: "插件故障,请联系维护人员, err: 0", info: i } : this.state.visible ? { reason: "应该是能看见才对", info: i } : i.value === !0 ? { reason: "插件故障,请联系维护人员, err: 1", info: i } : { reason: (e = i.reason.type) != null ? e : i.reason, info: i };
|
|
@@ -671,5 +679,5 @@ class ji {
|
|
|
671
679
|
}
|
|
672
680
|
}
|
|
673
681
|
export {
|
|
674
|
-
|
|
682
|
+
Ai as BaseTag
|
|
675
683
|
};
|
|
@@ -12,7 +12,6 @@ export declare class PointTag<C extends TagContentType = TagContentType> extends
|
|
|
12
12
|
*/
|
|
13
13
|
unfoldAndFoldOthers(): void;
|
|
14
14
|
onClick(params: Pick<TagClickParams, 'target'>): void;
|
|
15
|
-
updateVisible(): void;
|
|
16
15
|
applyVisible(): void;
|
|
17
16
|
unfold(): void;
|
|
18
17
|
fold(): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var h = Object.defineProperty;
|
|
2
|
+
var f = (s, r, t) => r in s ? h(s, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[r] = t;
|
|
3
|
+
var p = (s, r, t) => (f(s, typeof r != "symbol" ? r + "" : r, t), t);
|
|
4
4
|
import { BaseTag as g } from "./BaseTag.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as l from "three";
|
|
6
6
|
import "../../../shared-utils/Subscribe.js";
|
|
7
7
|
import "../../utils/tag/calculateTagConfig.js";
|
|
8
8
|
import "../../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
@@ -78,45 +78,28 @@ import "../../../shared-utils/url/getUrl.js";
|
|
|
78
78
|
import "../../../shared-utils/five/getFloorIndex.js";
|
|
79
79
|
import "../../../shared-utils/safeObj.js";
|
|
80
80
|
import "../../utils/Cache.js";
|
|
81
|
-
const
|
|
82
|
-
class
|
|
83
|
-
constructor(t,
|
|
84
|
-
super(t,
|
|
85
|
-
|
|
86
|
-
|
|
81
|
+
const y = new l.Vector2();
|
|
82
|
+
class wt extends g {
|
|
83
|
+
constructor(t, i) {
|
|
84
|
+
super(t, i);
|
|
85
|
+
p(this, "__Object__");
|
|
86
|
+
p(this, "requestIdleCallbackId");
|
|
87
87
|
}
|
|
88
88
|
/**
|
|
89
89
|
* @description 展开自己,收起其他标签
|
|
90
90
|
*/
|
|
91
91
|
unfoldAndFoldOthers() {
|
|
92
|
-
const t = this.can("fold"),
|
|
93
|
-
t &&
|
|
92
|
+
const t = this.can("fold"), i = this.can("unfold");
|
|
93
|
+
t && i && (this.state.unfolded = !this.state.unfolded, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.state.unfolded && this.plugin.tags.forEach((o) => {
|
|
94
94
|
o.id !== this.id && o.fold();
|
|
95
95
|
}));
|
|
96
96
|
}
|
|
97
97
|
onClick(t) {
|
|
98
98
|
t.target === "TagPoint" && this.unfoldAndFoldOthers();
|
|
99
99
|
}
|
|
100
|
-
updateVisible() {
|
|
101
|
-
if (typeof window.requestIdleCallback == "undefined") {
|
|
102
|
-
super.updateVisible();
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
const t = () => {
|
|
106
|
-
this.requestIdleCallbackId && cancelIdleCallback(this.requestIdleCallbackId), this.requestIdleCallbackId = requestIdleCallback(() => {
|
|
107
|
-
super.updateVisible();
|
|
108
|
-
});
|
|
109
|
-
};
|
|
110
|
-
let e = !1;
|
|
111
|
-
requestIdleCallback(() => {
|
|
112
|
-
e = !0;
|
|
113
|
-
}), t(), setTimeout(() => {
|
|
114
|
-
e || (this.requestIdleCallbackId && cancelIdleCallback(this.requestIdleCallbackId), super.updateVisible());
|
|
115
|
-
}, 200);
|
|
116
|
-
}
|
|
117
100
|
applyVisible() {
|
|
118
|
-
var t,
|
|
119
|
-
this.currentVisible && this.updateScreenPosition(), (o = (
|
|
101
|
+
var t, i, o, e;
|
|
102
|
+
this.currentVisible && this.updateScreenPosition(), (o = (i = (t = this.tag3DContentSvelte) == null ? void 0 : t.css3DInstance) == null ? void 0 : i.css3DObject) == null || o.setVisible(this.currentVisible), (e = this.tag3DContentSvelte) == null || e.svelteApp.$set({
|
|
120
103
|
state: this.plugin.state,
|
|
121
104
|
temporaryState: this.temporaryState
|
|
122
105
|
}), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
|
|
@@ -132,38 +115,38 @@ class Et extends g {
|
|
|
132
115
|
* @param {boolean} unfolded
|
|
133
116
|
*/
|
|
134
117
|
setUnfold(t) {
|
|
135
|
-
const
|
|
136
|
-
|
|
118
|
+
const i = this.can("fold"), o = this.can("unfold");
|
|
119
|
+
i && o && (this.state.unfolded = t, this.hooks.emit(t ? "unfolded" : "folded"), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
|
|
137
120
|
}
|
|
138
121
|
setPosition(t) {
|
|
139
122
|
this.originPosition = t, this.position = t, this.cache.clear(), this.updateVisible(), this.updateScreenPosition(), this.updateZIndex(), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
|
|
140
123
|
}
|
|
141
124
|
updateScreenPosition(t) {
|
|
142
|
-
var
|
|
125
|
+
var m;
|
|
143
126
|
if (this.stickType !== "2DPoint" && this.stickType !== "3DPoint")
|
|
144
127
|
return;
|
|
145
|
-
const { force:
|
|
128
|
+
const { force: i = !1 } = t != null ? t : {}, o = i ? this.state.visible : this.currentVisible, e = (m = this.__Object__) != null ? m : {
|
|
146
129
|
timeoutId: void 0,
|
|
147
130
|
inAnimation: !1
|
|
148
131
|
};
|
|
149
|
-
if (this.__Object__ =
|
|
132
|
+
if (this.__Object__ = e, !o && this.screenPosition ? (e.inAnimation = !0, e.timeoutId = setTimeout(() => {
|
|
150
133
|
requestAnimationFrame(() => {
|
|
151
|
-
this.currentVisible || (
|
|
134
|
+
this.currentVisible || (e.inAnimation = !1, this.screenPosition = null, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
|
|
152
135
|
});
|
|
153
|
-
}, 1e3)) :
|
|
136
|
+
}, 1e3)) : e.timeoutId && (clearTimeout(e.timeoutId), e.inAnimation = !1, e.timeoutId = void 0), !o && !e.inAnimation)
|
|
154
137
|
return;
|
|
155
138
|
const n = this.computeTagProject();
|
|
156
139
|
if (n) {
|
|
157
|
-
const
|
|
140
|
+
const a = (() => {
|
|
158
141
|
if (!this.currentConfig.simulate3D)
|
|
159
142
|
return 1;
|
|
160
143
|
const u = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), c = this.getDistance(void 0, 1);
|
|
161
144
|
return Math.max(Math.min(1 - u * c / 40, 1), 0.5);
|
|
162
|
-
})(),
|
|
145
|
+
})(), d = this.five.renderer.getSize(y);
|
|
163
146
|
this.screenPosition = {
|
|
164
|
-
leftPx: (n.x + 1) / 2 *
|
|
165
|
-
topPx: (-n.y + 1) / 2 *
|
|
166
|
-
scale:
|
|
147
|
+
leftPx: (n.x + 1) / 2 * d.x,
|
|
148
|
+
topPx: (-n.y + 1) / 2 * d.y,
|
|
149
|
+
scale: a
|
|
167
150
|
};
|
|
168
151
|
} else
|
|
169
152
|
this.screenPosition = null;
|
|
@@ -172,14 +155,14 @@ class Et extends g {
|
|
|
172
155
|
updateUnfoldedByPanoIndex() {
|
|
173
156
|
const t = this.getUnfoldedByPanoIndex();
|
|
174
157
|
if (this.state && (t !== void 0 && (this.state.unfolded = t), t && !this.state.visible)) {
|
|
175
|
-
const
|
|
176
|
-
typeof
|
|
158
|
+
const i = this.getConfig();
|
|
159
|
+
typeof i.unfoldedConfig == "object" && i.unfoldedConfig.autoFoldWhenHide !== !1 && (this.state.unfolded = !1);
|
|
177
160
|
}
|
|
178
161
|
}
|
|
179
162
|
computeNormal() {
|
|
180
|
-
return new
|
|
163
|
+
return new l.Vector3().fromArray(this.normal);
|
|
181
164
|
}
|
|
182
165
|
}
|
|
183
166
|
export {
|
|
184
|
-
|
|
167
|
+
wt as PointTag
|
|
185
168
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TagContentType, StickType, TagId, MediaStore, State, PluginEventMap } from '../typings';
|
|
1
|
+
import type { TagContentType, StickType, TagId, MediaStore, State, PluginEventMap, TagInstance, ArrayPosition } from '../typings';
|
|
2
2
|
import * as THREE from 'three';
|
|
3
3
|
import type { Tags } from '../typings';
|
|
4
4
|
import { Five } from '@realsee/five';
|
|
@@ -48,6 +48,7 @@ export declare abstract class TagUtil extends BasePlugin.Controller<State, Plugi
|
|
|
48
48
|
get filterCSS3DTag(): (BaseTag<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Model"> | BaseTag<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Plane"> | BaseTag<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "3DPoint">)[];
|
|
49
49
|
private _container;
|
|
50
50
|
private _css3DRenderPlugin;
|
|
51
|
+
private timeoutIds;
|
|
51
52
|
protected constructor(five: Five);
|
|
52
53
|
addRenderQueue(params: {
|
|
53
54
|
type: RenderQueueType;
|
|
@@ -69,8 +70,9 @@ export declare abstract class TagUtil extends BasePlugin.Controller<State, Plugi
|
|
|
69
70
|
/** 暂停当前标签内进行的所有多媒体 */
|
|
70
71
|
pauseCurrentMedia(): void;
|
|
71
72
|
protected loadVideoFirstFrame: () => void;
|
|
72
|
-
protected getPositions(tag: BaseTag): [THREE.Vector3, THREE.Vector3, THREE.Vector3, THREE.Vector3] | [
|
|
73
|
+
protected getPositions(tag: BaseTag): [THREE.Vector3, THREE.Vector3, THREE.Vector3, THREE.Vector3] | [ArrayPosition, ArrayPosition, ArrayPosition, ArrayPosition];
|
|
73
74
|
protected addObjectClickHandler(tag: BaseTag, object: THREE.Object3D | undefined, handler: (event: Event) => any): () => void;
|
|
75
|
+
protected tagsDo: (tags: TagInstance[], func: (tag: TagInstance) => any) => void;
|
|
74
76
|
/**
|
|
75
77
|
* @description 检查是否已经销毁
|
|
76
78
|
* @returns isDisposed; 已经销毁返回 true,否则返回 false
|