@realsee/dnalogel 3.77.2 → 3.78.0-alpha.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 +3 -0
- package/dist/CruisePlugin/Work.d.ts +4 -0
- package/dist/CruisePlugin/typing.d.ts +7 -0
- package/dist/CruisePlugin/utils/coordinatesAngle.d.ts +19 -3
- package/dist/PanoTagPlugin/controller/Tag/BaseTag.d.ts +5 -1
- package/dist/PanoTagPlugin/controller/Tag/BoxTag.d.ts +118 -0
- package/dist/PanoTagPlugin/controller/Tag/MaskTag.d.ts +157 -0
- package/dist/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +13 -0
- package/dist/PanoTagPlugin/controller/Tag/PolygonTag.d.ts +112 -0
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/index.d.ts +36 -1
- package/dist/PanoTagPlugin/typings/controller.d.ts +10 -0
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +8 -3
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +50 -1
- package/dist/PanoTagPlugin/utils/sculptDataToBoxPosition.d.ts +6 -0
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +6 -0
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +2 -2
- package/dist/index.cjs.js +160 -82
- package/dist/index.js +12244 -10999
- package/dist/index.umd.js +159 -81
- package/docs/.nojekyll +1 -0
- package/docs/assets/custom.css +0 -0
- package/docs/assets/highlight.css +127 -0
- package/docs/assets/icons.js +18 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +60 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1493 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +59 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +71 -0
- package/docs/classes/CSS3DRender.html +100 -0
- package/docs/classes/GuideLineItem.GuideLineItem.html +21 -0
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +70 -0
- package/docs/classes/ModelMakerPluginInstance.html +116 -0
- package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +52 -0
- package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +52 -0
- package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +53 -0
- package/docs/classes/ModelRoomLabelController.html +19 -0
- package/docs/classes/MoveController.html +45 -0
- package/docs/classes/Object3DHelperController.html +45 -0
- package/docs/classes/PaintBrush.html +15 -0
- package/docs/classes/PanoMeasurePluginLine.html +24 -0
- package/docs/classes/PanoMeasurePluginModel.html +23 -0
- package/docs/classes/PanoMeasurePluginPoint.html +7 -0
- package/docs/classes/PanoMeasurePluginPolyline.html +27 -0
- package/docs/classes/PanoTagPluginController.html +119 -0
- package/docs/classes/Sculpt.html +77 -0
- package/docs/classes/Util.BetterTween.html +6 -0
- package/docs/classes/Util.FiveDomEvents.html +13 -0
- package/docs/classes/Util.FivePuppet.html +20 -0
- package/docs/classes/Util.Interval.html +11 -0
- package/docs/classes/Util.LegacyPointHelper.html +7 -0
- package/docs/classes/Util.LightTag.html +47 -0
- package/docs/classes/Util.LineSegments.html +4 -0
- package/docs/classes/Util.Magnifier.html +26 -0
- package/docs/classes/Util.Object3D.html +8 -0
- package/docs/classes/Util.PointDomHelper.html +8 -0
- package/docs/classes/Util.PointHelper.html +10 -0
- package/docs/classes/Util.PointSelector.html +66 -0
- package/docs/classes/Util.PointSelectorHelper.html +14 -0
- package/docs/classes/Util.Rectangle.html +12 -0
- package/docs/classes/Util.sculpt.BaseEditor.html +17 -0
- package/docs/classes/Util.sculpt.BoxMesh.html +48 -0
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +18 -0
- package/docs/classes/Util.sculpt.CircleMesh.html +26 -0
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +18 -0
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +26 -0
- package/docs/classes/Util.sculpt.CylinderMesh.html +25 -0
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +18 -0
- package/docs/classes/Util.sculpt.LineMesh.html +34 -0
- package/docs/classes/Util.sculpt.PointMesh.html +24 -0
- package/docs/classes/Util.sculpt.PolygonMesh.html +40 -0
- package/docs/classes/Util.sculpt.PrismMesh.html +48 -0
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +18 -0
- package/docs/classes/Util.sculpt.RectangleMesh.html +41 -0
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +18 -0
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +44 -0
- package/docs/classes/WalkController.html +42 -0
- package/docs/enums/CameraMovementEffect.html +4 -0
- package/docs/enums/ContentType.html +34 -0
- package/docs/enums/DIRECTION.html +5 -0
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +5 -0
- package/docs/enums/DimensionType.html +4 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -0
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +5 -0
- package/docs/enums/PaintBrushTypeEnum.html +4 -0
- package/docs/enums/PointType.html +4 -0
- package/docs/enums/Rotation.html +5 -0
- package/docs/functions/AreaMakerPlugin.html +1 -0
- package/docs/functions/CSS3DRenderPlugin.html +1 -0
- package/docs/functions/CameraMovementPlugin.html +2 -0
- package/docs/functions/CruisePlugin.html +1 -0
- package/docs/functions/CurrentPanoImagePlugin.html +1 -0
- package/docs/functions/FloorplanGuidePlugin.html +1 -0
- package/docs/functions/GuideLinePlugin.html +1 -0
- package/docs/functions/ItemLabelPlugin.html +1 -0
- package/docs/functions/MapviewFloorplanPlugin.html +1 -0
- package/docs/functions/MeasurePlugin.html +1 -0
- package/docs/functions/ModelChassisCompassPlugin.html +2 -0
- package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -0
- package/docs/functions/ModelFloorplanPlugin.html +1 -0
- package/docs/functions/ModelItemLabelPlugin.html +1 -0
- package/docs/functions/ModelMakerPlugin.html +1 -0
- package/docs/functions/ModelRoomLabelPlugin.html +1 -0
- package/docs/functions/ModelTVVideoPlugin.html +1 -0
- package/docs/functions/ModelViewPlugin.html +2 -0
- package/docs/functions/MovePlugin.html +1 -0
- package/docs/functions/Object3DHelperPlugin.html +1 -0
- package/docs/functions/PanoCompassPlugin.html +1 -0
- package/docs/functions/PanoCursorRaycasterPlugin.html +2 -0
- package/docs/functions/PanoDoorLabelPlugin.html +1 -0
- package/docs/functions/PanoFloorplanRadarPlugin.html +1 -0
- package/docs/functions/PanoMeasurePlugin.html +1 -0
- package/docs/functions/PanoRulerPlugin.html +2 -0
- package/docs/functions/PanoRulerProPlugin.html +2 -0
- package/docs/functions/PanoSpatialTagPlugin.html +2 -0
- package/docs/functions/PanoTagPlugin.html +1 -0
- package/docs/functions/PanoVideoPlugin.html +10 -0
- package/docs/functions/PipelinePlugin.html +1 -0
- package/docs/functions/SculptPlugin.html +2 -0
- package/docs/functions/SculptPluginForFive.html +2 -0
- package/docs/functions/TopviewFloorplanPlugin.html +1 -0
- package/docs/functions/Util.awaitNextFrame.html +1 -0
- package/docs/functions/Util.blink.html +13 -0
- package/docs/functions/Util.blinkWithPreset.html +6 -0
- package/docs/functions/Util.bounding.html +1 -0
- package/docs/functions/Util.boundingBox.html +1 -0
- package/docs/functions/Util.boundingSphere.html +1 -0
- package/docs/functions/Util.boxVertex.html +7 -0
- package/docs/functions/Util.boxVertexes.html +1 -0
- package/docs/functions/Util.checkFiveModelLoaded.html +2 -0
- package/docs/functions/Util.cleanup.html +3 -0
- package/docs/functions/Util.convexHull.html +2 -0
- package/docs/functions/Util.equal.html +5 -0
- package/docs/functions/Util.fiveModelIsLoaded.html +2 -0
- package/docs/functions/Util.generatePolygonGeometry.html +2 -0
- package/docs/functions/Util.getCoordsFromClient.html +1 -0
- package/docs/functions/Util.getCoordsFromElement.html +1 -0
- package/docs/functions/Util.getFrameTime.html +3 -0
- package/docs/functions/Util.getGeometryArea.html +1 -0
- package/docs/functions/Util.getGeometryInfo.html +1 -0
- package/docs/functions/Util.getIntersectFromRelativePosition.html +1 -0
- package/docs/functions/Util.getRaycasterFromFivePointer.html +1 -0
- package/docs/functions/Util.initialCSS3DRender.html +1 -0
- package/docs/functions/Util.inside.html +1 -0
- package/docs/functions/Util.isModelLike.html +1 -0
- package/docs/functions/Util.isNil.html +2 -0
- package/docs/functions/Util.isPanoramaLike.html +1 -0
- package/docs/functions/Util.lookObject.html +7 -0
- package/docs/functions/Util.lookPoint.html +5 -0
- package/docs/functions/Util.nextFrame.html +1 -0
- package/docs/functions/Util.notNil.html +2 -0
- package/docs/functions/Util.reblink.html +13 -0
- package/docs/functions/Util.replaceStaticPrefix.html +8 -0
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -0
- package/docs/functions/Util.sculpt.createBox.html +1 -0
- package/docs/functions/Util.sculpt.createCircle.html +1 -0
- package/docs/functions/Util.sculpt.createCylinder.html +1 -0
- package/docs/functions/Util.sculpt.createLine.html +2 -0
- package/docs/functions/Util.sculpt.createPoint.html +1 -0
- package/docs/functions/Util.sculpt.createPolygon.html +1 -0
- package/docs/functions/Util.sculpt.createPrism.html +1 -0
- package/docs/functions/Util.sculpt.createRectangle.html +2 -0
- package/docs/functions/Util.sculpt.transformUnit.html +1 -0
- package/docs/functions/Util.sculpt.transformUnitSquare.html +1 -0
- package/docs/functions/Util.tag.html +1 -0
- package/docs/functions/Util.triangleArea.html +2 -0
- package/docs/functions/Util.triangleCenter.html +2 -0
- package/docs/functions/Util.tweenProgress.html +1 -0
- package/docs/functions/Util.uuid.html +2 -0
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -0
- package/docs/functions/Util.worldBounding.html +1 -0
- package/docs/functions/Util.worldBoundingBox.html +1 -0
- package/docs/functions/Util.worldBoundingSphere.html +1 -0
- package/docs/functions/createPolyline.html +2 -0
- package/docs/functions/pluginFlag.html +1 -0
- package/docs/functions/validatePolygon.html +1 -0
- package/docs/hierarchy.html +1 -0
- package/docs/index.html +70 -0
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +4 -0
- package/docs/interfaces/AreaMakerPluginType.Config.html +8 -0
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +25 -0
- package/docs/interfaces/AreaMakerPluginType.Params.html +4 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +20 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +13 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +9 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -0
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -0
- package/docs/interfaces/AreaMakerPluginType.State.html +8 -0
- package/docs/interfaces/BoxAnimationConfig.html +6 -0
- package/docs/interfaces/BoxPosition.html +8 -0
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +9 -0
- package/docs/interfaces/CSS3DRenderPluginState.html +7 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +11 -0
- package/docs/interfaces/ContentTypeMapInterface.html +73 -0
- package/docs/interfaces/CruisePluginTypes.Config.html +7 -0
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +8 -0
- package/docs/interfaces/CruisePluginTypes.EventMap.html +33 -0
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +6 -0
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +16 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +19 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +20 -0
- package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -0
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -0
- package/docs/interfaces/CruisePluginTypes.PluginState.html +15 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +13 -0
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +15 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +4 -0
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -0
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +7 -0
- package/docs/interfaces/FloorplanBounding.html +9 -0
- package/docs/interfaces/FloorplanData.html +7 -0
- package/docs/interfaces/FloorplanEntrance.html +14 -0
- package/docs/interfaces/FloorplanExtraObject.html +9 -0
- package/docs/interfaces/FloorplanExtraObject3D.html +5 -0
- package/docs/interfaces/FloorplanFloorData.html +9 -0
- package/docs/interfaces/FloorplanImagePosition.html +4 -0
- package/docs/interfaces/FloorplanObserver.html +8 -0
- package/docs/interfaces/FloorplanOutlineItem.html +6 -0
- package/docs/interfaces/FloorplanPosition.html +4 -0
- package/docs/interfaces/FloorplanRoomItem.html +24 -0
- package/docs/interfaces/FloorplanRoomLabelItem.html +6 -0
- package/docs/interfaces/FloorplanServerBounding.html +9 -0
- package/docs/interfaces/FloorplanServerComputedData.html +6 -0
- package/docs/interfaces/FloorplanServerData.html +4 -0
- package/docs/interfaces/FloorplanServerDoorItem.html +6 -0
- package/docs/interfaces/FloorplanServerDoorPosition.html +4 -0
- package/docs/interfaces/FloorplanServerEntrance.html +14 -0
- package/docs/interfaces/FloorplanServerFloorData.html +8 -0
- package/docs/interfaces/FloorplanServerImagePosition.html +4 -0
- package/docs/interfaces/FloorplanServerObserver.html +8 -0
- package/docs/interfaces/FloorplanServerOutlineItem.html +6 -0
- package/docs/interfaces/FloorplanServerPosition.html +4 -0
- package/docs/interfaces/FloorplanServerRoomItem.html +27 -0
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -0
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +4 -0
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +7 -0
- package/docs/interfaces/GuideLinePluginType.EventMap.html +13 -0
- package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +5 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +8 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +32 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +4 -0
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +5 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +42 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -0
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +57 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -0
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -0
- package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -0
- package/docs/interfaces/GuideLinePluginType.Route.html +13 -0
- package/docs/interfaces/HelperOffset.html +4 -0
- package/docs/interfaces/ImagePlaneGroup.html +3 -0
- package/docs/interfaces/ItemLabelPluginData.html +2 -0
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +7 -0
- package/docs/interfaces/ItemLabelPluginParametersType.html +5 -0
- package/docs/interfaces/MinMax.html +3 -0
- package/docs/interfaces/ModelChassisCompassPluginData.html +3 -0
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -0
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -0
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -0
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +7 -0
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -0
- package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +17 -0
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +18 -0
- package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +23 -0
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +11 -0
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +10 -0
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +3 -0
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +10 -0
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +10 -0
- package/docs/interfaces/ModelMakerPluginType.State.html +8 -0
- package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +11 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -0
- package/docs/interfaces/ModelTVVideoPluginData.html +5 -0
- package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -0
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -0
- package/docs/interfaces/ModelViewPluginExportType.html +8 -0
- package/docs/interfaces/Object3DHelperState.html +4 -0
- package/docs/interfaces/ObjectHelperControllers.html +5 -0
- package/docs/interfaces/PaintBrushAction.html +14 -0
- package/docs/interfaces/PaintBrushConfigs.html +8 -0
- package/docs/interfaces/PaintBrushState.html +6 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +16 -0
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -0
- package/docs/interfaces/PanoMeasureParameterType.html +20 -0
- package/docs/interfaces/PanoMeasurePluginLineJson.html +4 -0
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +4 -0
- package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -0
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +6 -0
- package/docs/interfaces/PanoRulerPluginOptions.html +3 -0
- package/docs/interfaces/PanoRulerPluginParameterType.html +4 -0
- package/docs/interfaces/PanoRulerProPluginExportType.html +5 -0
- package/docs/interfaces/PanoRulerProPluginOptions.html +3 -0
- package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -0
- package/docs/interfaces/PanoRulerProPluginState.html +4 -0
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +7 -0
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +6 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +9 -0
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +6 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +9 -0
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +7 -0
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +6 -0
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -0
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -0
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -0
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +15 -0
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -0
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +14 -0
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +13 -0
- package/docs/interfaces/PluginEventMap.html +16 -0
- package/docs/interfaces/Point.html +4 -0
- package/docs/interfaces/Room.html +5 -0
- package/docs/interfaces/RoomInfo.html +3 -0
- package/docs/interfaces/RoomLabel.html +16 -0
- package/docs/interfaces/RoomRules.html +1 -0
- package/docs/interfaces/Rooms.html +1 -0
- package/docs/interfaces/Scissor.html +13 -0
- package/docs/interfaces/SculptConfig.html +19 -0
- package/docs/interfaces/State.html +7 -0
- package/docs/interfaces/TagCacheInterface.html +9 -0
- package/docs/interfaces/TagConfig.html +174 -0
- package/docs/interfaces/TagGLTFObjectGroup.html +3 -0
- package/docs/interfaces/TagIconAnimationConfig.html +7 -0
- package/docs/interfaces/TagIconUrl.html +22 -0
- package/docs/interfaces/TagObjectGroup.html +3 -0
- package/docs/interfaces/TagState.html +3 -0
- package/docs/interfaces/TagStyle.html +17 -0
- package/docs/interfaces/Tags.html +8 -0
- package/docs/interfaces/TemporaryState.html +2 -0
- package/docs/interfaces/Util.AnimeInstance.html +14 -0
- package/docs/interfaces/Util.BlinkAnimeOptions.html +21 -0
- package/docs/interfaces/Util.EventHandlerConfig.html +21 -0
- package/docs/interfaces/Util.FiveDomEvent.html +7 -0
- package/docs/interfaces/Util.FiveDomEventMap.html +20 -0
- package/docs/interfaces/Util.LegacyMouseGroupParameter.html +4 -0
- package/docs/interfaces/Util.MagnifierParameter.html +13 -0
- package/docs/interfaces/Util.MouseGroupParameter.html +4 -0
- package/docs/interfaces/Util.ObjectInitialState.html +9 -0
- package/docs/interfaces/Util.PointIntersection.html +21 -0
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +6 -0
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +27 -0
- package/docs/modules/AreaMakerPluginType.html +17 -0
- package/docs/modules/CruisePluginTypes.html +14 -0
- package/docs/modules/CurrentPanoImagePluginType.html +6 -0
- package/docs/modules/GuideLineItem.html +2 -0
- package/docs/modules/GuideLineModeItem.html +3 -0
- package/docs/modules/GuideLinePluginType.html +25 -0
- package/docs/modules/ModelMakerPluginType.html +19 -0
- package/docs/modules/PanoVideoPluginType.html +8 -0
- package/docs/modules/SculptData.html +9 -0
- package/docs/modules/SculptType.html +2 -0
- package/docs/modules/Util.html +91 -0
- package/docs/modules/Util.sculpt.html +27 -0
- package/docs/modules.html +287 -0
- package/docs/types/AddObject3DHelperConfig.html +19 -0
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +7 -0
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -0
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -0
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -0
- package/docs/types/ArrayPosition.html +1 -0
- package/docs/types/AudioAppearance.html +1 -0
- package/docs/types/BoxTag.html +2 -0
- package/docs/types/CSS3DRenderExportType.html +1 -0
- package/docs/types/CSS3DRenderPluginExportType.html +1 -0
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -0
- package/docs/types/ClassFunctionParameters.html +1 -0
- package/docs/types/Color.html +1 -0
- package/docs/types/ContentTypeConfigKey.html +1 -0
- package/docs/types/ContentTypeConfigKeySplit.html +1 -0
- package/docs/types/ContentTypeMap.html +1 -0
- package/docs/types/Create3DDomContainerReturnType.html +1 -0
- package/docs/types/Create3DElementReturnType.html +1 -0
- package/docs/types/CruisePluginExportType.html +1 -0
- package/docs/types/CruisePluginTypes.CruiseData.html +6 -0
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -0
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -0
- package/docs/types/DeprecatedMediaPlaneProperty.html +3 -0
- package/docs/types/DeprecatedTagProperty.html +3 -0
- package/docs/types/Direction-1.html +1 -0
- package/docs/types/Direction4.html +1 -0
- package/docs/types/ElementRenderer.html +2 -0
- package/docs/types/FloorplanGuidePluginParameterType.html +1 -0
- package/docs/types/FloorplanGuidePluginReturnType.html +1 -0
- package/docs/types/FloorplanRuleLabels.html +2 -0
- package/docs/types/FloorplanServerRuleLabels.html +1 -0
- package/docs/types/GuideLinePluginExportType.html +1 -0
- package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -0
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -0
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -0
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -0
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -0
- package/docs/types/GuideLinePluginType.PathItem.html +2 -0
- package/docs/types/GuideLinePluginType.PluginData.html +2 -0
- package/docs/types/GuideLinePluginType.RouteConfig.html +4 -0
- package/docs/types/HelperEventMap.html +1 -0
- package/docs/types/InternalHelperEventMap.html +1 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +1 -0
- package/docs/types/MapviewFloorplanPluginReturnType.html +1 -0
- package/docs/types/MaskPosition.html +3 -0
- package/docs/types/MaskTag.html +2 -0
- package/docs/types/MeasureEndReason.html +1 -0
- package/docs/types/MeasurePluginConfig.html +5 -0
- package/docs/types/MeasurePluginEventMap.html +1 -0
- package/docs/types/MediaData.html +2 -0
- package/docs/types/MediaStore.html +1 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -0
- package/docs/types/ModelFloorplanPluginParameterType.html +1 -0
- package/docs/types/ModelFloorplanPluginReturnType.html +1 -0
- package/docs/types/ModelId.html +1 -0
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -0
- package/docs/types/ModelMakerPluginType.ItemType.html +2 -0
- package/docs/types/ModelMakerPluginType.MarkerItem.html +1 -0
- package/docs/types/ModelMakerPluginType.ServerItem.html +2 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +1 -0
- package/docs/types/ModelRoomLabelPluginReturnType.html +1 -0
- package/docs/types/MoveArgs.html +2 -0
- package/docs/types/MoveOpts.html +2 -0
- package/docs/types/Object3DHelperEventMap.html +1 -0
- package/docs/types/ObjectFit.html +1 -0
- package/docs/types/PaintBrushEventMap.html +1 -0
- package/docs/types/PanoCompassPluginData.html +1 -0
- package/docs/types/PanoCompassPluginExportType.html +1 -0
- package/docs/types/PanoCompassPluginParameterType.html +1 -0
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -0
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -0
- package/docs/types/PanoIndex.html +1 -0
- package/docs/types/PanoMeasurePluginEvent.html +1 -0
- package/docs/types/PanoMeasureReturnType.html +1 -0
- package/docs/types/PanoSpatialTagPluginId.html +1 -0
- package/docs/types/PanoTagPluginExportInterface.html +1 -0
- package/docs/types/PanoTagPluginParamsInterface.html +1 -0
- package/docs/types/PanoVideoPluginParameterType.html +1 -0
- package/docs/types/PanoVideoPluginReturnType.html +1 -0
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -0
- package/docs/types/PipelinePluginParameterType.html +1 -0
- package/docs/types/PipelinePluginReturnType.html +1 -0
- package/docs/types/PlaneTag.html +2 -0
- package/docs/types/Point2DTag.html +2 -0
- package/docs/types/Point3DTag.html +2 -0
- package/docs/types/PointTagInstance.html +1 -0
- package/docs/types/PolygonPosition.html +3 -0
- package/docs/types/PolygonTag.html +2 -0
- package/docs/types/Position.html +1 -0
- package/docs/types/PositionFrom.html +1 -0
- package/docs/types/RotateArgs.html +2 -0
- package/docs/types/RotateOpts.html +2 -0
- package/docs/types/RuleLabelsKey.html +1 -0
- package/docs/types/RuleLabelsValue.html +1 -0
- package/docs/types/ScaleCallback.html +1 -0
- package/docs/types/ScalePosition.html +3 -0
- package/docs/types/SculptData.BoxData.html +1 -0
- package/docs/types/SculptData.CircleData.html +1 -0
- package/docs/types/SculptData.CylinderData.html +1 -0
- package/docs/types/SculptData.PointData.html +1 -0
- package/docs/types/SculptData.PolygonData.html +1 -0
- package/docs/types/SculptData.PolylineData.html +1 -0
- package/docs/types/SculptData.PrismData.html +1 -0
- package/docs/types/SculptData.RectangleData.html +1 -0
- package/docs/types/SculptType.Theme.html +10 -0
- package/docs/types/StickType.html +1 -0
- package/docs/types/Tag.html +17 -0
- package/docs/types/Tag2D.html +2 -0
- package/docs/types/Tag3D.html +2 -0
- package/docs/types/TagClickParams.html +1 -0
- package/docs/types/TagConfigByKey.html +1 -0
- package/docs/types/TagContentType.html +1 -0
- package/docs/types/TagContentTypeMapping.html +1 -0
- package/docs/types/TagDimensionType.html +1 -0
- package/docs/types/TagElement.html +2 -0
- package/docs/types/TagEvents.html +1 -0
- package/docs/types/TagGLTFObject.html +1 -0
- package/docs/types/TagHooks.html +1 -0
- package/docs/types/TagId.html +1 -0
- package/docs/types/TagInstance.html +1 -0
- package/docs/types/TagPlacement.html +5 -0
- package/docs/types/TagPointType.html +2 -0
- package/docs/types/TagRendererMap.html +1 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +1 -0
- package/docs/types/TopviewFloorplanPluginReturnType.html +1 -0
- package/docs/types/Util.ActionIfNoIntersection.html +1 -0
- package/docs/types/Util.AdherePoint.html +2 -0
- package/docs/types/Util.PointSelectorConfig.html +1 -0
- package/docs/types/Util.SupportedTarget.html +2 -0
- package/docs/types/Util.Target.html +2 -0
- package/docs/types/Util.ThreeObject.html +2 -0
- package/docs/types/WorkCode.html +1 -0
- package/docs/variables/FLOOR_TYPE_MAP.html +2 -0
- package/docs/variables/PLUGIN.html +1 -0
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -0
- package/docs/variables/ROOM_TYPE_MAP.html +2 -0
- package/docs/variables/Util.ANIME_PRESETS.html +2 -0
- package/docs/variables/Util.CURRENT_PANO_IMAGE_DEFAULT_IMAGE.html +2 -0
- package/docs/variables/Util.DEFAULT_ANIME_CONFIG.html +2 -0
- package/docs/variables/Util.DEFAULT_STATIC_PREFIX.html +2 -0
- package/docs/variables/Util.DNALOGEL_DEFAULT_ASSETS.html +2 -0
- package/docs/variables/Util.ENTRY_DOOR_DEFAULT_IMAGE.html +2 -0
- package/docs/variables/Util.FLOORPLAN_DEFAULT_IMAGE.html +2 -0
- package/docs/variables/Util.GUIDELINE_DEFAULT_ARROW_TEXTURE.html +2 -0
- package/docs/variables/Util.GUIDELINE_WHITE_ARROW_TEXTURE.html +2 -0
- package/docs/variables/Util.MODEL_CHASSIS_COMPASS_DEFAULT_MODEL.html +2 -0
- package/docs/variables/Util.MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL.html +2 -0
- package/docs/variables/Util.PANO_COMPASS_DEFAULT_IMAGE.html +2 -0
- package/docs/variables/Util.PANO_SPATIAL_TAG_BLUR_IMAGE.html +2 -0
- package/docs/variables/Util.PANO_TAG_DEFAULT_LINK_ICON.html +2 -0
- package/docs/variables/defaultGlobalConfig.html +1 -0
- package/docs/variables/itemLabelPluginServerParams.html +1 -0
- package/docs/variables/modelItemLabelPluginServerParams.html +1 -0
- package/docs/variables/modelRoomLabelPluginServerParams.html +1 -0
- package/libs/CruisePlugin/BaseController.js +8 -1
- package/libs/CruisePlugin/Move.js +7 -2
- package/libs/CruisePlugin/Work.d.ts +4 -0
- package/libs/CruisePlugin/Work.js +302 -213
- package/libs/CruisePlugin/index.js +11 -6
- package/libs/CruisePlugin/typing.d.ts +7 -0
- package/libs/CruisePlugin/utils/coordinatesAngle.d.ts +19 -3
- package/libs/CruisePlugin/utils/coordinatesAngle.js +10 -5
- package/libs/GuideLinePlugin/Controller.js +9 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +7 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +7 -2
- package/libs/GuideLinePlugin/index.js +11 -6
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +7 -10
- package/libs/PanoTagPlugin/Components/TagItem.js +122 -122
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +5 -1
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +320 -289
- package/libs/PanoTagPlugin/controller/Tag/BoxTag.d.ts +118 -0
- package/libs/PanoTagPlugin/controller/Tag/BoxTag.js +505 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.d.ts +157 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.js +492 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +13 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.js +89 -0
- package/libs/PanoTagPlugin/controller/Tag/PolygonTag.d.ts +112 -0
- package/libs/PanoTagPlugin/controller/Tag/PolygonTag.js +478 -0
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/TagUtil.js +21 -19
- package/libs/PanoTagPlugin/controller/index.d.ts +36 -1
- package/libs/PanoTagPlugin/controller/index.js +184 -121
- package/libs/PanoTagPlugin/index.js +16 -11
- package/libs/PanoTagPlugin/typings/controller.d.ts +10 -0
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +8 -3
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +50 -1
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +27 -13
- package/libs/PanoTagPlugin/utils/sculptDataToBoxPosition.d.ts +6 -0
- package/libs/PanoTagPlugin/utils/sculptDataToBoxPosition.js +18 -0
- package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +6 -0
- package/libs/PanoTagPlugin/utils/tag/tagCheck.js +26 -14
- package/libs/PanoTagPlugin/utils/tagPosition.d.ts +2 -2
- package/libs/PanoTagPlugin/utils/tagPosition.js +46 -17
- package/libs/base/BasePlugin.js +5 -5
- package/libs/index.js +155 -150
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,68 +1,71 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var w = Object.defineProperty, _ = Object.defineProperties;
|
|
2
|
+
var I = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var k = Object.getOwnPropertySymbols;
|
|
4
|
+
var L = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var c = (h, p, e) => p in h ? w(h, p, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[p] = e, d = (h, p) => {
|
|
6
6
|
for (var e in p || (p = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
|
|
7
|
+
L.call(p, e) && c(h, e, p[e]);
|
|
8
|
+
if (k)
|
|
9
|
+
for (var e of k(p))
|
|
10
|
+
B.call(p, e) && c(h, e, p[e]);
|
|
11
11
|
return h;
|
|
12
|
-
},
|
|
13
|
-
var m = (h, p, e) => (
|
|
14
|
-
var
|
|
12
|
+
}, u = (h, p) => _(h, I(p));
|
|
13
|
+
var m = (h, p, e) => (c(h, typeof p != "symbol" ? p + "" : p, e), e);
|
|
14
|
+
var l = (h, p, e) => new Promise((t, i) => {
|
|
15
15
|
var o = (r) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
n(e.next(r));
|
|
18
18
|
} catch (a) {
|
|
19
19
|
i(a);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, s = (r) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
n(e.throw(r));
|
|
24
24
|
} catch (a) {
|
|
25
25
|
i(a);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(o, s);
|
|
28
|
+
n((e = e.apply(h, p)).next());
|
|
29
29
|
});
|
|
30
|
-
import * as
|
|
31
|
-
import { objectAssignDeepExports as
|
|
32
|
-
import { arrayPositionToVector3 as
|
|
33
|
-
import { isModelTag as
|
|
34
|
-
import { debounce as
|
|
35
|
-
import { throttle as
|
|
36
|
-
import
|
|
37
|
-
import { generateBlankAudio as
|
|
38
|
-
import { resizeObserver as
|
|
39
|
-
import { TagRender as
|
|
30
|
+
import * as v from "three";
|
|
31
|
+
import { objectAssignDeepExports as f } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
32
|
+
import { arrayPositionToVector3 as T } from "../../shared-utils/positionToVector3.js";
|
|
33
|
+
import { isModelTag as G, isMediaModelTag as O } from "../utils/tag/tagCheck.js";
|
|
34
|
+
import { debounce as D } from "../utils/debounce.js";
|
|
35
|
+
import { throttle as R } from "../utils/throttle.js";
|
|
36
|
+
import N, { getTagStickType as V } from "../utils/tag/format.js";
|
|
37
|
+
import { generateBlankAudio as x, AudioNamespace as z } from "../../shared-utils/audio.js";
|
|
38
|
+
import { resizeObserver as E } from "../../shared-utils/dom/resizeObserver.js";
|
|
39
|
+
import { TagRender as $ } from "./TagRender.js";
|
|
40
40
|
import "../../shared-utils/tag.js";
|
|
41
|
-
import { isModelLike as
|
|
41
|
+
import { isModelLike as A } from "../../shared-utils/five/mode.js";
|
|
42
42
|
import "../../vendor/hammerjs/hammer.js";
|
|
43
43
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
44
44
|
import "../../shared-utils/three/CSS3DRenderer/index.js";
|
|
45
|
-
import { waitFiveModelLoaded as
|
|
45
|
+
import { waitFiveModelLoaded as j } from "../../shared-utils/five/fiveModelLoad.js";
|
|
46
46
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
47
47
|
import "@realsee/five/line";
|
|
48
48
|
import "../../shared-utils/three/core/Five_LineMaterial2.js";
|
|
49
49
|
import "../../shared-utils/three/core/Sphere.js";
|
|
50
50
|
import "../../shared-utils/three/blink.js";
|
|
51
|
-
import { getFiveModel as
|
|
51
|
+
import { getFiveModel as Q } from "../../shared-utils/five/getFiveModel.js";
|
|
52
52
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
53
53
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
54
54
|
import "../../vendor/earcut/src/earcut.js";
|
|
55
|
-
import { nextFrame as
|
|
55
|
+
import { nextFrame as H } from "../../shared-utils/animationFrame/index.js";
|
|
56
56
|
import "../../shared-utils/five/FivePuppet.js";
|
|
57
|
-
import { DebugUtil as
|
|
58
|
-
import { safeObj as
|
|
59
|
-
import { PointTag as
|
|
60
|
-
import { ModelTag as
|
|
61
|
-
import { PlaneTag as
|
|
62
|
-
import
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import
|
|
57
|
+
import { DebugUtil as W } from "../utils/DebugUtil.js";
|
|
58
|
+
import { safeObj as M } from "../../shared-utils/safeObj.js";
|
|
59
|
+
import { PointTag as q } from "./Tag/PointTag.js";
|
|
60
|
+
import { ModelTag as J } from "./Tag/ModelTag.js";
|
|
61
|
+
import { PlaneTag as Z } from "./Tag/PlaneTag.js";
|
|
62
|
+
import { BoxTag as Y } from "./Tag/BoxTag.js";
|
|
63
|
+
import { PolygonTag as K } from "./Tag/PolygonTag.js";
|
|
64
|
+
import { MaskTag as y } from "./Tag/MaskTag.js";
|
|
65
|
+
import X from "../Components/TagContainer.js";
|
|
66
|
+
import { fiveEveryReadyListener as ee } from "../../shared-utils/five/fiveEveryReadyListener.js";
|
|
67
|
+
import { vector3ToArray as U } from "../../shared-utils/three/vector3ToArray.js";
|
|
68
|
+
import { tweenProgress as te } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
66
69
|
import "../../shared-utils/url/defaultUrls.js";
|
|
67
70
|
import "./TagUtil.js";
|
|
68
71
|
import "../typings/tag/TagConfig.js";
|
|
@@ -313,6 +316,8 @@ import "../../Sculpt/Meshes/Box.js";
|
|
|
313
316
|
import "../../shared-utils/forReverseEach.js";
|
|
314
317
|
import "../../Sculpt/Objects/Line/index.js";
|
|
315
318
|
import "../../shared-utils/five/getFloorMesh.js";
|
|
319
|
+
import "../utils/sculptDataToBoxPosition.js";
|
|
320
|
+
import "./Tag/MaskTag.shaders.js";
|
|
316
321
|
import "../Components/TagItem.js";
|
|
317
322
|
import "../Components/Common/TagPoint.js";
|
|
318
323
|
import "../Components/Tag/AudioTag/AudioPoint.js";
|
|
@@ -329,21 +334,21 @@ import "../Components/Common/TagPopover/TagPopoverToolBar.js";
|
|
|
329
334
|
import "../Components/Common/TagPopover/ArrowRightIcon.js";
|
|
330
335
|
import "../Components/Common/TagPopover/ShareIcon.js";
|
|
331
336
|
import "../utils/popoverContainer.js";
|
|
332
|
-
const
|
|
333
|
-
class
|
|
337
|
+
const F = "Dnalogel-PanoTagPlugin", Vs = (h) => `${F}--${h}`;
|
|
338
|
+
class xs extends $ {
|
|
334
339
|
constructor(e, t) {
|
|
335
340
|
super(e);
|
|
336
341
|
/** state */
|
|
337
342
|
m(this, "state", { enabled: !0, visible: !0 });
|
|
338
343
|
/** debug */
|
|
339
344
|
m(this, "debug");
|
|
340
|
-
m(this, "debugUtil", new
|
|
345
|
+
m(this, "debugUtil", new W(this));
|
|
341
346
|
/** 全局 hover 启用状态,默认 true */
|
|
342
347
|
m(this, "globalHoverEnabled", !0);
|
|
343
348
|
/** 更改 tag 模型 */
|
|
344
|
-
m(this, "changeTagModel", (e, t) =>
|
|
349
|
+
m(this, "changeTagModel", (e, t) => l(this, null, function* () {
|
|
345
350
|
var i;
|
|
346
|
-
e.data =
|
|
351
|
+
e.data = f({}, e.data, t), yield (i = e.loadModel) == null ? void 0 : i.call(e);
|
|
347
352
|
}));
|
|
348
353
|
m(this, "handleFiveModeChange", (e) => {
|
|
349
354
|
const t = () => {
|
|
@@ -351,7 +356,9 @@ class Fs extends R {
|
|
|
351
356
|
i.state.visible = !1, i.applyVisible();
|
|
352
357
|
}), this.five.ready().then(() => {
|
|
353
358
|
this.tagsDo(this.tags, (i) => {
|
|
354
|
-
i.updateVisible(),
|
|
359
|
+
i.updateVisible(), O(i) && e !== "Panorama" && this.changeTagMode(i, "behind");
|
|
360
|
+
}), e === "Panorama" ? this.updateMaskTagsForCurrentPano() : this.filterMaskTag.forEach((i) => {
|
|
361
|
+
i.state.visible = !1, i.applyVisible();
|
|
355
362
|
});
|
|
356
363
|
});
|
|
357
364
|
};
|
|
@@ -377,25 +384,25 @@ class Fs extends R {
|
|
|
377
384
|
this.five.off("render.prepare", this.handleFiveCameraUpdate);
|
|
378
385
|
}, 1e3);
|
|
379
386
|
});
|
|
380
|
-
m(this, "handleFivePanoArrived", () =>
|
|
387
|
+
m(this, "handleFivePanoArrived", () => l(this, null, function* () {
|
|
381
388
|
this.filter2DPointTag.forEach((e) => {
|
|
382
389
|
e.state.visible = !1, e.applyVisible();
|
|
383
390
|
}), this.tagsDo(this.tags, (e) => {
|
|
384
391
|
e.updateVisible();
|
|
385
|
-
}), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }), yield this.setUnfolded(), this.tags.filter(
|
|
392
|
+
}), this.updateMaskTagsForCurrentPano(), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }), yield this.setUnfolded(), this.tags.filter(G).filter((e) => {
|
|
386
393
|
var t;
|
|
387
394
|
return (t = e.getConfig().modelConfig) == null ? void 0 : t.autoLookAtEnabled;
|
|
388
395
|
}).forEach((e) => {
|
|
389
396
|
var a;
|
|
390
|
-
const t = new
|
|
397
|
+
const t = new v.Mesh(new v.BoxGeometry(), new v.MeshBasicMaterial()), i = (a = e.model) == null ? void 0 : a.object;
|
|
391
398
|
if (!i)
|
|
392
399
|
return;
|
|
393
400
|
t.position.copy(i.position), t.quaternion.copy(i.quaternion);
|
|
394
401
|
const o = this.five.camera.position;
|
|
395
402
|
t.lookAt(o.clone().setY(t.position.y));
|
|
396
|
-
const
|
|
397
|
-
r.onUpdate(({ progress:
|
|
398
|
-
i.quaternion.copy(
|
|
403
|
+
const s = i.quaternion.clone(), n = t.quaternion.clone(), r = te();
|
|
404
|
+
r.onUpdate(({ progress: g }) => {
|
|
405
|
+
i.quaternion.copy(s.clone().slerp(n, g));
|
|
399
406
|
}), r.play();
|
|
400
407
|
});
|
|
401
408
|
}));
|
|
@@ -403,19 +410,19 @@ class Fs extends R {
|
|
|
403
410
|
m(this, "handleFiveModelShownFloorChange", () => {
|
|
404
411
|
this.tagsDo(this.tags, (e) => e.updateVisible());
|
|
405
412
|
});
|
|
406
|
-
m(this, "onFiveRefined",
|
|
407
|
-
|
|
413
|
+
m(this, "onFiveRefined", D(() => {
|
|
414
|
+
A(this.five.getCurrentState().mode) ? this.setUnfoldedByCamera() : this.tags.forEach((e) => e.cache.clear()), this.tagsDo(this.tags, (e) => e.updateVisible());
|
|
408
415
|
}));
|
|
409
416
|
m(this, "onFiveEveryReady", () => {
|
|
410
|
-
this.setUnfoldedByCamera(),
|
|
417
|
+
this.setUnfoldedByCamera(), A(this.five.getCurrentState().mode) && this.tagsDo(this.tags, (e) => e.updateVisible());
|
|
411
418
|
});
|
|
412
419
|
m(this, "render", () => {
|
|
413
420
|
this.renderQueue.forEach((e, t) => {
|
|
414
421
|
const { keys: i } = e;
|
|
415
422
|
if (t === "TagContainerSvelte") {
|
|
416
|
-
const
|
|
423
|
+
const s = this.filterPointTag.filter((r) => r.screenPosition), n = {
|
|
417
424
|
hooks: this.hooks,
|
|
418
|
-
tags:
|
|
425
|
+
tags: s,
|
|
419
426
|
state: this.state,
|
|
420
427
|
temporaryState: this.temporaryState,
|
|
421
428
|
mediaStore: this.mediaStore,
|
|
@@ -426,18 +433,18 @@ class Fs extends R {
|
|
|
426
433
|
if (this.TagContainerSvelte) {
|
|
427
434
|
let r = {};
|
|
428
435
|
if (i.length === 0)
|
|
429
|
-
r =
|
|
436
|
+
r = n;
|
|
430
437
|
else
|
|
431
438
|
for (const a of i)
|
|
432
|
-
r[a] =
|
|
439
|
+
r[a] = n[a];
|
|
433
440
|
this.TagContainerSvelte.$set(r);
|
|
434
441
|
} else {
|
|
435
442
|
if (!this.container)
|
|
436
443
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
437
|
-
this.TagContainerSvelte = new
|
|
444
|
+
this.TagContainerSvelte = new X({
|
|
438
445
|
target: this.container,
|
|
439
|
-
props:
|
|
440
|
-
}),
|
|
446
|
+
props: u(d({}, n), { state: u(d({}, this.state), { enabled: !1 }) })
|
|
447
|
+
}), H(() => {
|
|
441
448
|
var r;
|
|
442
449
|
(r = this.TagContainerSvelte) == null || r.$set({ state: this.state });
|
|
443
450
|
});
|
|
@@ -445,9 +452,9 @@ class Fs extends R {
|
|
|
445
452
|
}
|
|
446
453
|
}), this.renderQueue.clear();
|
|
447
454
|
});
|
|
448
|
-
this.params =
|
|
455
|
+
this.params = f({}, { debug: !1, config: this.config }, d({}, t)), this.debug = this.params.debug, this.config = this.params.config, this.debug && this.debugUtil.bindLog(), x(1, { namespace: z.PlayAudio });
|
|
449
456
|
try {
|
|
450
|
-
Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), this.NAME =
|
|
457
|
+
Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), this.NAME = F + "-" + window.__PANOTAGPLUGIN_DEBUG_LIST__.length, window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ || Object.defineProperty(window, "__PANOTAGPLUGIN_DEBUG__", {
|
|
451
458
|
get: function() {
|
|
452
459
|
return window.__PANOTAGPLUGIN_DEBUG_LIST__.sort((i, o) => o.tags.length - i.tags.length)[0];
|
|
453
460
|
}
|
|
@@ -456,62 +463,57 @@ class Fs extends R {
|
|
|
456
463
|
}
|
|
457
464
|
}
|
|
458
465
|
appendTo(e) {
|
|
459
|
-
var i, o,
|
|
466
|
+
var i, o, s;
|
|
460
467
|
this.container = e;
|
|
461
468
|
const t = (o = (i = this.TagContainerSvelte) == null ? void 0 : i.$$) == null ? void 0 : o.root;
|
|
462
|
-
t && t !== this.container && ((
|
|
469
|
+
t && t !== this.container && ((s = this.TagContainerSvelte) == null || s.$destroy(), this.TagContainerSvelte = void 0);
|
|
463
470
|
}
|
|
464
471
|
/**
|
|
465
472
|
* @description 加载数据
|
|
466
473
|
*/
|
|
467
474
|
load(e) {
|
|
468
|
-
return
|
|
469
|
-
var o,
|
|
475
|
+
return l(this, null, function* () {
|
|
476
|
+
var o, s;
|
|
470
477
|
this.clearTags();
|
|
471
478
|
try {
|
|
472
479
|
console.debug(this.NAME, " load:", { data: JSON.parse(JSON.stringify(e)) });
|
|
473
|
-
} catch (
|
|
480
|
+
} catch (n) {
|
|
474
481
|
}
|
|
475
|
-
const t =
|
|
476
|
-
e.tagList.forEach((
|
|
477
|
-
if (
|
|
482
|
+
const t = Q(this.five);
|
|
483
|
+
e.tagList.forEach((n) => {
|
|
484
|
+
if (n.enu_position && this.isValidArrayPosition(n.enu_position))
|
|
478
485
|
try {
|
|
479
|
-
const r =
|
|
480
|
-
|
|
486
|
+
const r = T(n.enu_position), a = t.viewLayers[0].scene.enuToWorld(r);
|
|
487
|
+
n.position = U(a);
|
|
481
488
|
} catch (r) {
|
|
482
489
|
}
|
|
483
|
-
if (
|
|
490
|
+
if (n.enu_normal && this.isValidArrayPosition(n.enu_normal))
|
|
484
491
|
try {
|
|
485
|
-
const r =
|
|
486
|
-
|
|
492
|
+
const r = T(n.enu_normal), a = t.viewLayers[0].scene.enuToWorld(r);
|
|
493
|
+
n.normal = U(a);
|
|
487
494
|
} catch (r) {
|
|
488
495
|
}
|
|
489
|
-
}), this.config =
|
|
496
|
+
}), this.config = f({}, this.config, {
|
|
490
497
|
globalConfig: (o = e.globalConfig) != null ? o : {},
|
|
491
|
-
contentTypeConfig: (
|
|
498
|
+
contentTypeConfig: (s = e.contentTypeConfig) != null ? s : {}
|
|
492
499
|
});
|
|
493
500
|
const i = yield this.addTag(e.tagList);
|
|
494
|
-
return this.hooks.emit("loaded"), i;
|
|
501
|
+
return this.five.state.mode === "Panorama" && this.updateMaskTagsForCurrentPano(), this.hooks.emit("loaded"), i;
|
|
495
502
|
});
|
|
496
503
|
}
|
|
497
504
|
/**
|
|
498
505
|
* @description 添加标签
|
|
499
506
|
*/
|
|
500
507
|
addTag(e) {
|
|
501
|
-
return
|
|
502
|
-
const
|
|
503
|
-
const n =
|
|
504
|
-
|
|
505
|
-
return new Q(this, o);
|
|
506
|
-
if (n === "Model")
|
|
507
|
-
return new $(this, o);
|
|
508
|
-
if (n === "Plane")
|
|
509
|
-
return new H(this, o);
|
|
508
|
+
return l(this, null, function* () {
|
|
509
|
+
const o = (Array.isArray(e) ? e : [e]).filter((s) => s.stickType === "3DBox" || s.stickType === "Mask" || s.position).map((s) => {
|
|
510
|
+
const n = V(s);
|
|
511
|
+
return n === "2DPoint" || n === "3DPoint" ? new q(this, s) : n === "Model" ? new J(this, s) : n === "Plane" ? new Z(this, s) : n === "3DBox" ? new Y(this, s) : n === "Polygon" ? new K(this, s) : n === "Mask" ? new y(this, s) : null;
|
|
510
512
|
});
|
|
511
|
-
return
|
|
512
|
-
var
|
|
513
|
-
this.store.eventListenerDisposer && ((n = (
|
|
514
|
-
this.tags.includes(
|
|
513
|
+
return o.forEach((s) => N(s)), this.tags.push(...o), this.tagsLengthWillUpdate = !0, j(this.five).then(() => l(this, null, function* () {
|
|
514
|
+
var s, n;
|
|
515
|
+
this.store.eventListenerDisposer && ((n = (s = this.store).eventListenerDisposer) == null || n.call(s)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.tagsDo(o, (r) => {
|
|
516
|
+
this.tags.includes(r) && (r.updateVisible(), r.updateZIndex());
|
|
515
517
|
}), this.setUnfolded(), this.addRenderQueue({ type: "TagContainerSvelte" }), this.hooks.emit("tagsLengthChange");
|
|
516
518
|
}));
|
|
517
519
|
});
|
|
@@ -520,7 +522,7 @@ class Fs extends R {
|
|
|
520
522
|
* @description 改变配置
|
|
521
523
|
*/
|
|
522
524
|
changeConfig(e, t = !0) {
|
|
523
|
-
t ? this.config =
|
|
525
|
+
t ? this.config = f({}, this.config, e) : this.config = e, this.tags.forEach((i) => {
|
|
524
526
|
i.updateConfig();
|
|
525
527
|
}), this.tagsDo(this.tags, (i) => i.updateVisible());
|
|
526
528
|
}
|
|
@@ -528,7 +530,7 @@ class Fs extends R {
|
|
|
528
530
|
* @description 改变全局配置
|
|
529
531
|
*/
|
|
530
532
|
changeGlobalConfig(e, t = !0) {
|
|
531
|
-
t ? this.config.globalConfig =
|
|
533
|
+
t ? this.config.globalConfig = f({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.tags.forEach((i) => {
|
|
532
534
|
i.updateConfig();
|
|
533
535
|
}), this.tagsDo(this.tags, (i) => {
|
|
534
536
|
i.updateVisible();
|
|
@@ -538,14 +540,14 @@ class Fs extends R {
|
|
|
538
540
|
* @description 改变类型配置
|
|
539
541
|
*/
|
|
540
542
|
changeContentTypeConfig(e, t, i = !0) {
|
|
541
|
-
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] =
|
|
543
|
+
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = f({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.tags.forEach((o) => {
|
|
542
544
|
o.updateConfig();
|
|
543
545
|
}), this.tagsDo(this.tags, (o) => {
|
|
544
546
|
o.updateVisible();
|
|
545
547
|
});
|
|
546
548
|
}
|
|
547
549
|
show(e) {
|
|
548
|
-
return
|
|
550
|
+
return l(this, null, function* () {
|
|
549
551
|
if (this.checkDisposed())
|
|
550
552
|
return;
|
|
551
553
|
const { userAction: t = !0 } = e != null ? e : {};
|
|
@@ -553,7 +555,7 @@ class Fs extends R {
|
|
|
553
555
|
});
|
|
554
556
|
}
|
|
555
557
|
hide(e) {
|
|
556
|
-
return
|
|
558
|
+
return l(this, null, function* () {
|
|
557
559
|
if (this.checkDisposed())
|
|
558
560
|
return;
|
|
559
561
|
const { userAction: t = !0 } = e != null ? e : {};
|
|
@@ -575,21 +577,21 @@ class Fs extends R {
|
|
|
575
577
|
setState(e, t) {
|
|
576
578
|
if (this.checkDisposed())
|
|
577
579
|
return;
|
|
578
|
-
const { userAction: i = !0 } = t != null ? t : {}, o =
|
|
580
|
+
const { userAction: i = !0 } = t != null ? t : {}, o = d({}, this.state);
|
|
579
581
|
this.state = Object.assign(this.state, e), o.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), o.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: i });
|
|
580
582
|
}
|
|
581
583
|
/**
|
|
582
584
|
* @description 销毁
|
|
583
585
|
*/
|
|
584
586
|
dispose() {
|
|
585
|
-
var e, t, i, o,
|
|
587
|
+
var e, t, i, o, s, n;
|
|
586
588
|
this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filterCSS3DTag.forEach((r) => {
|
|
587
589
|
var a;
|
|
588
590
|
return (a = r.tag3DContentSvelte) == null ? void 0 : a.svelteApp.$destroy();
|
|
589
591
|
}), this.tags.forEach((r) => {
|
|
590
592
|
var a;
|
|
591
593
|
(a = r.rectanglePlane) == null || a.editor.disable(), r.cache.clear();
|
|
592
|
-
}), this.tags = [], this.tagsLengthWillUpdate = !0, this.hooks.emit("tagsLengthChange"), (t = this.store.disposers) == null || t.forEach((r) => r == null ? void 0 : r()), this.store.disposers = [], (o = (i = this.store).eventListenerDisposer) == null || o.call(i), this.store.eventListenerDisposer = void 0, (
|
|
594
|
+
}), this.tags = [], this.tagsLengthWillUpdate = !0, this.hooks.emit("tagsLengthChange"), (t = this.store.disposers) == null || t.forEach((r) => r == null ? void 0 : r()), this.store.disposers = [], (o = (i = this.store).eventListenerDisposer) == null || o.call(i), this.store.eventListenerDisposer = void 0, (n = (s = this.store).resizeObserverDisposer) == null || n.call(s), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.five.scene.remove(this.group), this.group.remove(...this.group.children), this.gltfObjectGroup.remove(...this.gltfObjectGroup.children), this.imagePlaneGroup.remove(...this.imagePlaneGroup.children), this.five.needsRender = !0, this.store.disposed = !0, this.hooks.emit("dispose");
|
|
593
595
|
}
|
|
594
596
|
/**
|
|
595
597
|
* @description 闪烁标签
|
|
@@ -597,7 +599,7 @@ class Fs extends R {
|
|
|
597
599
|
* @param {Partial<anime.AnimeParams>} animeConfig
|
|
598
600
|
*/
|
|
599
601
|
blinkTagById(e, t) {
|
|
600
|
-
return
|
|
602
|
+
return l(this, null, function* () {
|
|
601
603
|
var i;
|
|
602
604
|
return (i = this.getTagById(e)) == null ? void 0 : i.blink(t);
|
|
603
605
|
});
|
|
@@ -628,7 +630,7 @@ class Fs extends R {
|
|
|
628
630
|
*/
|
|
629
631
|
changeTagNormalById(e, t) {
|
|
630
632
|
const i = this.getTagById(e);
|
|
631
|
-
i && i.tag3DContentSvelte && (i.tag3DContentSvelte.currentNormal =
|
|
633
|
+
i && i.tag3DContentSvelte && (i.tag3DContentSvelte.currentNormal = T(t));
|
|
632
634
|
}
|
|
633
635
|
/**
|
|
634
636
|
* @description 改变data
|
|
@@ -655,7 +657,15 @@ class Fs extends R {
|
|
|
655
657
|
*/
|
|
656
658
|
changeTagById(e, t, i = !0) {
|
|
657
659
|
const o = this.getTagById(e);
|
|
658
|
-
|
|
660
|
+
if (o) {
|
|
661
|
+
if (t.stickType && t.stickType !== o.stickType) {
|
|
662
|
+
console.log(`[PanoTagPlugin] stickType changed from ${o.stickType} to ${t.stickType}, recreating tag`);
|
|
663
|
+
const s = d({}, o);
|
|
664
|
+
this.destroyTagById(e), this.addTag(d(d({}, s), t));
|
|
665
|
+
return;
|
|
666
|
+
}
|
|
667
|
+
o.set(t), o.updateVisible(), this.clearUnusedPanelTag(), o.hooks.emit("dataChanged", o.data);
|
|
668
|
+
}
|
|
659
669
|
}
|
|
660
670
|
/**
|
|
661
671
|
* @description 销毁tag
|
|
@@ -678,15 +688,15 @@ class Fs extends R {
|
|
|
678
688
|
clearTags() {
|
|
679
689
|
var e;
|
|
680
690
|
this.tags.length && (this.tags.forEach((t) => {
|
|
681
|
-
var i, o,
|
|
682
|
-
(i = t.tag3DContentSvelte) == null || i.dispose(), (
|
|
691
|
+
var i, o, s, n, r, a, g, b, C, P, S;
|
|
692
|
+
(i = t.tag3DContentSvelte) == null || i.dispose(), (s = (o = t.mediaPlane) == null ? void 0 : o.parent) == null || s.remove(t.mediaPlane), (a = (r = (n = t.model) == null ? void 0 : n.object) == null ? void 0 : r.parent) == null || a.remove(t.model.object), (b = (g = t.rectanglePlane) == null ? void 0 : g.parent) == null || b.remove(t.rectanglePlane), (C = t.boxShape) != null && C.parent && t.boxShape.parent.remove(t.boxShape), (S = (P = t.polygonShape) == null ? void 0 : P.parent) == null || S.remove(t.polygonShape), t != null && t.tagNormalLine && (t == null || t.removeTagNormalLine());
|
|
683
693
|
}), this.tags = [], this.tagsLengthWillUpdate = !0, this.hooks.emit("tagsLengthChange"), (e = this.TagContainerSvelte) == null || e.$destroy(), this.TagContainerSvelte = void 0, this.disposeAllCSS3DContainer()), this.enabledModelTagSet.clear(), this.cache.clear();
|
|
684
694
|
}
|
|
685
695
|
/**
|
|
686
696
|
* @description 设置 unfolded
|
|
687
697
|
*/
|
|
688
698
|
setUnfolded() {
|
|
689
|
-
return
|
|
699
|
+
return l(this, null, function* () {
|
|
690
700
|
return new Promise((e) => {
|
|
691
701
|
setTimeout(() => {
|
|
692
702
|
this.setUnfoldedByCamera(), e();
|
|
@@ -706,8 +716,8 @@ class Fs extends R {
|
|
|
706
716
|
handleDisable() {
|
|
707
717
|
var e, t, i;
|
|
708
718
|
this.pauseCurrentMedia(), this.tags.forEach((o) => {
|
|
709
|
-
var
|
|
710
|
-
return (
|
|
719
|
+
var s;
|
|
720
|
+
return (s = o.rectanglePlane) == null ? void 0 : s.delete();
|
|
711
721
|
}), this.state.enabled = !1, (t = (e = this.store).eventListenerDisposer) == null || t.call(e), this.five.scene.remove(this.group), (i = this.TagContainerSvelte) == null || i.$set({ tags: [] }), this.five.needsRender = !0;
|
|
712
722
|
}
|
|
713
723
|
addResizeListener() {
|
|
@@ -725,17 +735,17 @@ class Fs extends R {
|
|
|
725
735
|
this.state.enabled && (this.filterPointTag.forEach((a) => a.updateScreenPosition({ force: !0 })), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }));
|
|
726
736
|
}, i = () => {
|
|
727
737
|
this.state.enabled && (this.temporaryState.visible = !1, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }));
|
|
728
|
-
}, { observe: o, unobserve:
|
|
729
|
-
|
|
738
|
+
}, { observe: o, unobserve: s } = E(
|
|
739
|
+
R(() => {
|
|
730
740
|
this.store.resizeObserverDisposer && i();
|
|
731
741
|
}, 500),
|
|
732
742
|
e
|
|
733
|
-
), { observe:
|
|
734
|
-
|
|
743
|
+
), { observe: n, unobserve: r } = E(
|
|
744
|
+
D(() => t(), 400),
|
|
735
745
|
e
|
|
736
746
|
);
|
|
737
|
-
return o(),
|
|
738
|
-
|
|
747
|
+
return o(), n(), () => {
|
|
748
|
+
s(), r();
|
|
739
749
|
};
|
|
740
750
|
}
|
|
741
751
|
setUnfoldedByCamera() {
|
|
@@ -745,13 +755,13 @@ class Fs extends R {
|
|
|
745
755
|
if (t.state && i !== void 0) {
|
|
746
756
|
if (i === !0 && t.screenPosition) {
|
|
747
757
|
const o = t.getConfig().unfoldedConfig;
|
|
748
|
-
|
|
758
|
+
M(o).keep !== "unfolded" && (e = !0);
|
|
749
759
|
}
|
|
750
760
|
t.state.unfolded = i;
|
|
751
761
|
}
|
|
752
762
|
}), e && this.filterPointTag.forEach((t) => {
|
|
753
763
|
const i = t.getConfig().unfoldedConfig;
|
|
754
|
-
typeof i == "object" && (i.autoUnfold || i.autoUnfold === !1 ||
|
|
764
|
+
typeof i == "object" && (i.autoUnfold || i.autoUnfold === !1 || M(i.autoUnfold).enable === !1 || i.keep) || t.state && (t.state.unfolded = !1);
|
|
755
765
|
});
|
|
756
766
|
}
|
|
757
767
|
changeTagMode(e, t) {
|
|
@@ -762,7 +772,7 @@ class Fs extends R {
|
|
|
762
772
|
* @description 添加 cameraUpdate, panoArrived 等事件监听
|
|
763
773
|
*/
|
|
764
774
|
addEventListener() {
|
|
765
|
-
const { five: e, hooks: t } = this, i =
|
|
775
|
+
const { five: e, hooks: t } = this, i = ee(this.five, this.onFiveEveryReady);
|
|
766
776
|
return this.handleFivePanoArrived(), e.on("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.on("models.refined", this.onFiveRefined), e.on("modeChange", this.handleFiveModeChange), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", this.handleFiveCameraUpdate), e.on("cameraFovUpdate", this.handleFiveCameraFovUpdate), e.on("panoArrived", this.handleFivePanoArrived), e.on("panoArrived", this.loadVideoFirstFrame), e.on("render.prepare", this.render), t.on("click", this.clickhandler), () => {
|
|
767
777
|
i(), e.off("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.off("models.refined", this.onFiveRefined), e.off("modeChange", this.handleFiveModeChange), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", this.handleFiveCameraUpdate), e.off("cameraFovUpdate", this.handleFiveCameraFovUpdate), e.off("panoArrived", this.handleFivePanoArrived), e.off("panoArrived", this.loadVideoFirstFrame), e.off("render.prepare", this.render), t.off("click", this.clickhandler), this.store.eventListenerDisposer = void 0;
|
|
768
778
|
};
|
|
@@ -801,9 +811,62 @@ class Fs extends R {
|
|
|
801
811
|
isValidArrayPosition(e) {
|
|
802
812
|
return !Array.isArray(e) || e.length !== 3 ? !1 : e.every((t) => typeof t == "number" && !isNaN(t) && isFinite(t));
|
|
803
813
|
}
|
|
814
|
+
/**
|
|
815
|
+
* 更新当前点位的 Mask 标签
|
|
816
|
+
* Mask 标签仅在当前点位可见
|
|
817
|
+
*/
|
|
818
|
+
updateMaskTagsForCurrentPano() {
|
|
819
|
+
const e = this.five.getCurrentState().panoIndex;
|
|
820
|
+
console.log(
|
|
821
|
+
"[PanoTagPlugin] updateMaskTagsForCurrentPano, current panoIndex:",
|
|
822
|
+
e,
|
|
823
|
+
"mask tags count:",
|
|
824
|
+
this.filterMaskTag.length
|
|
825
|
+
), this.filterMaskTag.forEach((t) => {
|
|
826
|
+
var o;
|
|
827
|
+
const i = (o = t.fiveState) == null ? void 0 : o.panoIndex;
|
|
828
|
+
console.log(
|
|
829
|
+
"[PanoTagPlugin] Processing mask tag:",
|
|
830
|
+
t.id,
|
|
831
|
+
"tagPanoIndex:",
|
|
832
|
+
i,
|
|
833
|
+
"matches current:",
|
|
834
|
+
i === e
|
|
835
|
+
), i === e ? (console.log("[PanoTagPlugin] Tag matches current pano, updating visibility..."), t.updateVisible(), t.applyVisible()) : t.visible && (console.log("[PanoTagPlugin] Tag is from different pano, hiding..."), t.state.visible = !1, t.applyVisible());
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
/**
|
|
839
|
+
* 获取所有 Mask 类型的标签
|
|
840
|
+
*/
|
|
841
|
+
get filterMaskTag() {
|
|
842
|
+
return this.tags.filter((e) => e.stickType === "Mask");
|
|
843
|
+
}
|
|
844
|
+
/**
|
|
845
|
+
* 获取 MaskTag 性能统计信息(用于性能监控和调试)
|
|
846
|
+
* @returns 性能统计信息
|
|
847
|
+
*/
|
|
848
|
+
getMaskTagPerformanceStats() {
|
|
849
|
+
const e = y.getCacheStats(), t = this.filterMaskTag.length, i = this.filterMaskTag.filter((o) => o.visible).length;
|
|
850
|
+
return {
|
|
851
|
+
// 标签统计
|
|
852
|
+
totalMaskTags: t,
|
|
853
|
+
visibleMaskTags: i,
|
|
854
|
+
// 纹理缓存统计
|
|
855
|
+
textureCache: e,
|
|
856
|
+
// 当前点位
|
|
857
|
+
currentPanoIndex: this.five.state.panoIndex
|
|
858
|
+
};
|
|
859
|
+
}
|
|
860
|
+
/**
|
|
861
|
+
* 清理所有 MaskTag 纹理缓存(用于内存管理)
|
|
862
|
+
* 注意:这会释放所有纹理缓存,谨慎使用
|
|
863
|
+
*/
|
|
864
|
+
clearMaskTagCache() {
|
|
865
|
+
y.clearAllCache();
|
|
866
|
+
}
|
|
804
867
|
}
|
|
805
868
|
export {
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
869
|
+
xs as PanoTagPluginController,
|
|
870
|
+
xs as default,
|
|
871
|
+
Vs as pluginFlag
|
|
809
872
|
};
|
|
@@ -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 Ri } from "./controller/index.js";
|
|
3
|
+
import { defaultGlobalConfig as Ui } from "./typings/tag/TagConfig.js";
|
|
4
|
+
import { ContentType as Wi, DimensionType as Xi, PointType as Yi } from "./Archive/deprecated.js";
|
|
5
5
|
import "three";
|
|
6
6
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
7
7
|
import "../shared-utils/positionToVector3.js";
|
|
@@ -285,6 +285,11 @@ import "../Sculpt/Meshes/Box.js";
|
|
|
285
285
|
import "../shared-utils/forReverseEach.js";
|
|
286
286
|
import "../Sculpt/Objects/Line/index.js";
|
|
287
287
|
import "../shared-utils/five/getFloorMesh.js";
|
|
288
|
+
import "./controller/Tag/BoxTag.js";
|
|
289
|
+
import "./utils/sculptDataToBoxPosition.js";
|
|
290
|
+
import "./controller/Tag/PolygonTag.js";
|
|
291
|
+
import "./controller/Tag/MaskTag.js";
|
|
292
|
+
import "./controller/Tag/MaskTag.shaders.js";
|
|
288
293
|
import "./Components/TagContainer.js";
|
|
289
294
|
import "./Components/TagItem.js";
|
|
290
295
|
import "./Components/Common/TagPoint.js";
|
|
@@ -303,14 +308,14 @@ import "./Components/Common/TagPopover/ArrowRightIcon.js";
|
|
|
303
308
|
import "./Components/Common/TagPopover/ShareIcon.js";
|
|
304
309
|
import "./utils/popoverContainer.js";
|
|
305
310
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
306
|
-
const
|
|
311
|
+
const Ni = (o, t) => new r(o, t);
|
|
307
312
|
export {
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
313
|
+
Wi as ContentType,
|
|
314
|
+
Xi as DimensionType,
|
|
315
|
+
Ni as PanoTagPlugin,
|
|
311
316
|
r as PanoTagPluginController,
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
317
|
+
Yi as PointType,
|
|
318
|
+
Ni as default,
|
|
319
|
+
Ui as defaultGlobalConfig,
|
|
320
|
+
Ri as pluginFlag
|
|
316
321
|
};
|