@realsee/dnalogel 3.74.0-alpha.3 → 3.74.1-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 +2 -15
- package/dist/PanoTagPlugin/controller/Tag/BaseTag.d.ts +8 -0
- package/dist/PanoTagPlugin/controller/Tag/PointTag.d.ts +14 -0
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +15 -0
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -0
- package/dist/Sculpt/Objects/Polygon/index.d.ts +0 -13
- package/dist/Sculpt/Objects/Prism/index.d.ts +0 -18
- package/dist/Sculpt/index.d.ts +0 -26
- package/dist/index.cjs.js +77 -77
- package/dist/index.js +4364 -4253
- package/dist/index.umd.js +66 -66
- package/libs/PanoMeasurePlugin/utils/isIntersecting.js +32 -36
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -3
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPoint.js +7 -7
- package/libs/PanoTagPlugin/Components/TagItem.js +20 -20
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +8 -0
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +362 -341
- package/libs/PanoTagPlugin/controller/Tag/PointTag.d.ts +14 -0
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +151 -42
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/PanoTagPlugin/tag.config.js +4 -0
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +15 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -0
- package/libs/Sculpt/Objects/Polygon/index.d.ts +0 -13
- package/libs/Sculpt/Objects/Polygon/index.js +104 -107
- package/libs/Sculpt/Objects/Prism/index.d.ts +0 -18
- package/libs/Sculpt/index.d.ts +0 -26
- package/libs/Sculpt/index.js +79 -95
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
- package/docs/.nojekyll +0 -1
- package/docs/assets/custom.css +0 -0
- package/docs/assets/highlight.css +0 -127
- package/docs/assets/icons.js +0 -18
- package/docs/assets/icons.svg +0 -1
- package/docs/assets/main.js +0 -60
- package/docs/assets/navigation.js +0 -1
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1493
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -59
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -71
- package/docs/classes/CSS3DRender.html +0 -100
- package/docs/classes/GuideLineItem.GuideLineItem.html +0 -21
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -70
- package/docs/classes/ModelMakerPluginInstance.html +0 -116
- package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +0 -52
- package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +0 -52
- package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +0 -53
- package/docs/classes/ModelRoomLabelController.html +0 -19
- package/docs/classes/MoveController.html +0 -45
- package/docs/classes/Object3DHelperController.html +0 -45
- package/docs/classes/PaintBrush.html +0 -15
- package/docs/classes/PanoMeasurePluginLine.html +0 -24
- package/docs/classes/PanoMeasurePluginModel.html +0 -23
- package/docs/classes/PanoMeasurePluginPoint.html +0 -7
- package/docs/classes/PanoMeasurePluginPolyline.html +0 -27
- package/docs/classes/PanoTagPluginController.html +0 -111
- package/docs/classes/Sculpt.html +0 -77
- package/docs/classes/Util.BetterTween.html +0 -6
- package/docs/classes/Util.FiveDomEvents.html +0 -13
- package/docs/classes/Util.FivePuppet.html +0 -20
- package/docs/classes/Util.Interval.html +0 -11
- package/docs/classes/Util.LegacyPointHelper.html +0 -7
- package/docs/classes/Util.LightTag.html +0 -47
- package/docs/classes/Util.LineSegments.html +0 -4
- package/docs/classes/Util.Magnifier.html +0 -26
- package/docs/classes/Util.Object3D.html +0 -8
- package/docs/classes/Util.PointDomHelper.html +0 -8
- package/docs/classes/Util.PointHelper.html +0 -10
- package/docs/classes/Util.PointSelector.html +0 -66
- package/docs/classes/Util.PointSelectorHelper.html +0 -14
- package/docs/classes/Util.Rectangle.html +0 -12
- package/docs/classes/Util.sculpt.BaseEditor.html +0 -17
- package/docs/classes/Util.sculpt.BoxMesh.html +0 -48
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.CircleMesh.html +0 -26
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +0 -26
- package/docs/classes/Util.sculpt.CylinderMesh.html +0 -25
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.LineMesh.html +0 -34
- package/docs/classes/Util.sculpt.PointMesh.html +0 -24
- package/docs/classes/Util.sculpt.PolygonMesh.html +0 -40
- package/docs/classes/Util.sculpt.PrismMesh.html +0 -48
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.RectangleMesh.html +0 -41
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +0 -44
- package/docs/classes/WalkController.html +0 -42
- package/docs/enums/CameraMovementEffect.html +0 -4
- package/docs/enums/ContentType.html +0 -34
- package/docs/enums/DIRECTION.html +0 -5
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -5
- package/docs/enums/DimensionType.html +0 -4
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -4
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -5
- package/docs/enums/PaintBrushTypeEnum.html +0 -4
- package/docs/enums/PointType.html +0 -4
- package/docs/enums/Rotation.html +0 -5
- package/docs/functions/AreaMakerPlugin.html +0 -1
- package/docs/functions/CSS3DRenderPlugin.html +0 -1
- package/docs/functions/CameraMovementPlugin.html +0 -2
- package/docs/functions/CruisePlugin.html +0 -1
- package/docs/functions/CurrentPanoImagePlugin.html +0 -1
- package/docs/functions/FloorplanGuidePlugin.html +0 -1
- package/docs/functions/GuideLinePlugin.html +0 -1
- package/docs/functions/ItemLabelPlugin.html +0 -1
- package/docs/functions/MapviewFloorplanPlugin.html +0 -1
- package/docs/functions/MeasurePlugin.html +0 -1
- package/docs/functions/ModelChassisCompassPlugin.html +0 -2
- package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -2
- package/docs/functions/ModelFloorplanPlugin.html +0 -1
- package/docs/functions/ModelItemLabelPlugin.html +0 -1
- package/docs/functions/ModelMakerPlugin.html +0 -1
- package/docs/functions/ModelRoomLabelPlugin.html +0 -1
- package/docs/functions/ModelTVVideoPlugin.html +0 -1
- package/docs/functions/ModelViewPlugin.html +0 -2
- package/docs/functions/MovePlugin.html +0 -1
- package/docs/functions/Object3DHelperPlugin.html +0 -1
- package/docs/functions/PanoCompassPlugin.html +0 -1
- package/docs/functions/PanoCursorRaycasterPlugin.html +0 -2
- package/docs/functions/PanoDoorLabelPlugin.html +0 -1
- package/docs/functions/PanoFloorplanRadarPlugin.html +0 -1
- package/docs/functions/PanoMeasurePlugin.html +0 -1
- package/docs/functions/PanoRulerPlugin.html +0 -2
- package/docs/functions/PanoRulerProPlugin.html +0 -2
- package/docs/functions/PanoSpatialTagPlugin.html +0 -2
- package/docs/functions/PanoTagPlugin.html +0 -1
- package/docs/functions/PanoVideoPlugin.html +0 -10
- package/docs/functions/PipelinePlugin.html +0 -1
- package/docs/functions/SculptPlugin.html +0 -2
- package/docs/functions/SculptPluginForFive.html +0 -2
- package/docs/functions/TopviewFloorplanPlugin.html +0 -1
- package/docs/functions/Util.awaitNextFrame.html +0 -1
- package/docs/functions/Util.blink.html +0 -13
- package/docs/functions/Util.blinkWithPreset.html +0 -6
- package/docs/functions/Util.bounding.html +0 -1
- package/docs/functions/Util.boundingBox.html +0 -1
- package/docs/functions/Util.boundingSphere.html +0 -1
- package/docs/functions/Util.boxVertex.html +0 -7
- package/docs/functions/Util.boxVertexes.html +0 -1
- package/docs/functions/Util.checkFiveModelLoaded.html +0 -2
- package/docs/functions/Util.cleanup.html +0 -3
- package/docs/functions/Util.convexHull.html +0 -2
- package/docs/functions/Util.equal.html +0 -5
- package/docs/functions/Util.fiveModelIsLoaded.html +0 -2
- package/docs/functions/Util.generatePolygonGeometry.html +0 -2
- package/docs/functions/Util.getCoordsFromClient.html +0 -1
- package/docs/functions/Util.getCoordsFromElement.html +0 -1
- package/docs/functions/Util.getFrameTime.html +0 -3
- package/docs/functions/Util.getGeometryArea.html +0 -1
- package/docs/functions/Util.getGeometryInfo.html +0 -1
- package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -1
- package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -1
- package/docs/functions/Util.initialCSS3DRender.html +0 -1
- package/docs/functions/Util.inside.html +0 -1
- package/docs/functions/Util.isModelLike.html +0 -1
- package/docs/functions/Util.isNil.html +0 -2
- package/docs/functions/Util.isPanoramaLike.html +0 -1
- package/docs/functions/Util.lookObject.html +0 -7
- package/docs/functions/Util.lookPoint.html +0 -5
- package/docs/functions/Util.nextFrame.html +0 -1
- package/docs/functions/Util.notNil.html +0 -2
- package/docs/functions/Util.reblink.html +0 -13
- package/docs/functions/Util.replaceStaticPrefix.html +0 -8
- package/docs/functions/Util.requestAnimationFrameInterval.html +0 -5
- package/docs/functions/Util.sculpt.createBox.html +0 -1
- package/docs/functions/Util.sculpt.createCircle.html +0 -1
- package/docs/functions/Util.sculpt.createCylinder.html +0 -1
- package/docs/functions/Util.sculpt.createLine.html +0 -2
- package/docs/functions/Util.sculpt.createPoint.html +0 -1
- package/docs/functions/Util.sculpt.createPolygon.html +0 -1
- package/docs/functions/Util.sculpt.createPrism.html +0 -1
- package/docs/functions/Util.sculpt.createRectangle.html +0 -2
- package/docs/functions/Util.sculpt.transformUnit.html +0 -1
- package/docs/functions/Util.sculpt.transformUnitSquare.html +0 -1
- package/docs/functions/Util.tag.html +0 -1
- package/docs/functions/Util.triangleArea.html +0 -2
- package/docs/functions/Util.triangleCenter.html +0 -2
- package/docs/functions/Util.tweenProgress.html +0 -1
- package/docs/functions/Util.uuid.html +0 -2
- package/docs/functions/Util.waitFiveModelLoaded.html +0 -2
- package/docs/functions/Util.worldBounding.html +0 -1
- package/docs/functions/Util.worldBoundingBox.html +0 -1
- package/docs/functions/Util.worldBoundingSphere.html +0 -1
- package/docs/functions/createPolyline.html +0 -2
- package/docs/functions/pluginFlag.html +0 -1
- package/docs/functions/validatePolygon.html +0 -1
- package/docs/hierarchy.html +0 -1
- package/docs/index.html +0 -70
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -4
- package/docs/interfaces/AreaMakerPluginType.Config.html +0 -8
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -25
- package/docs/interfaces/AreaMakerPluginType.Params.html +0 -4
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -20
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -13
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -9
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -3
- package/docs/interfaces/AreaMakerPluginType.State.html +0 -8
- package/docs/interfaces/BoxAnimationConfig.html +0 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -9
- package/docs/interfaces/CSS3DRenderPluginState.html +0 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +0 -11
- package/docs/interfaces/ContentTypeMapInterface.html +0 -73
- package/docs/interfaces/CruisePluginTypes.Config.html +0 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -8
- package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -33
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +0 -6
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -16
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -19
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -20
- package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -15
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -13
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -15
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -4
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -3
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -7
- package/docs/interfaces/FloorplanBounding.html +0 -9
- package/docs/interfaces/FloorplanData.html +0 -7
- package/docs/interfaces/FloorplanEntrance.html +0 -14
- package/docs/interfaces/FloorplanExtraObject.html +0 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +0 -5
- package/docs/interfaces/FloorplanFloorData.html +0 -9
- package/docs/interfaces/FloorplanImagePosition.html +0 -4
- package/docs/interfaces/FloorplanObserver.html +0 -8
- package/docs/interfaces/FloorplanOutlineItem.html +0 -6
- package/docs/interfaces/FloorplanPosition.html +0 -4
- package/docs/interfaces/FloorplanRoomItem.html +0 -24
- package/docs/interfaces/FloorplanRoomLabelItem.html +0 -6
- package/docs/interfaces/FloorplanServerBounding.html +0 -9
- package/docs/interfaces/FloorplanServerComputedData.html +0 -6
- package/docs/interfaces/FloorplanServerData.html +0 -4
- package/docs/interfaces/FloorplanServerDoorItem.html +0 -6
- package/docs/interfaces/FloorplanServerDoorPosition.html +0 -4
- package/docs/interfaces/FloorplanServerEntrance.html +0 -14
- package/docs/interfaces/FloorplanServerFloorData.html +0 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +0 -4
- package/docs/interfaces/FloorplanServerObserver.html +0 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +0 -6
- package/docs/interfaces/FloorplanServerPosition.html +0 -4
- package/docs/interfaces/FloorplanServerRoomItem.html +0 -27
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -4
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -7
- package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -13
- package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +0 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -8
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -32
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +0 -4
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -5
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -42
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -3
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -57
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +0 -13
- package/docs/interfaces/HelperOffset.html +0 -4
- package/docs/interfaces/ImagePlaneGroup.html +0 -3
- package/docs/interfaces/ItemLabelPluginData.html +0 -2
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -7
- package/docs/interfaces/ItemLabelPluginParametersType.html +0 -5
- package/docs/interfaces/MinMax.html +0 -3
- package/docs/interfaces/ModelChassisCompassPluginData.html +0 -3
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -4
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -4
- package/docs/interfaces/ModelItemLabelPluginData.html +0 -2
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -7
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -3
- package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +0 -17
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +0 -18
- package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +0 -23
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +0 -11
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +0 -10
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +0 -3
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +0 -10
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +0 -10
- package/docs/interfaces/ModelMakerPluginType.State.html +0 -8
- package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +0 -11
- package/docs/interfaces/ModelRoomLabelPluginData.html +0 -2
- package/docs/interfaces/ModelTVVideoPluginData.html +0 -5
- package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -4
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -2
- package/docs/interfaces/ModelViewPluginExportType.html +0 -8
- package/docs/interfaces/Object3DHelperState.html +0 -4
- package/docs/interfaces/ObjectHelperControllers.html +0 -5
- package/docs/interfaces/PaintBrushAction.html +0 -14
- package/docs/interfaces/PaintBrushConfigs.html +0 -8
- package/docs/interfaces/PaintBrushState.html +0 -6
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -16
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -1
- package/docs/interfaces/PanoMeasureParameterType.html +0 -20
- package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -4
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -4
- package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -3
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +0 -6
- package/docs/interfaces/PanoRulerPluginOptions.html +0 -3
- package/docs/interfaces/PanoRulerPluginParameterType.html +0 -4
- package/docs/interfaces/PanoRulerProPluginExportType.html +0 -5
- package/docs/interfaces/PanoRulerProPluginOptions.html +0 -3
- package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -3
- package/docs/interfaces/PanoRulerProPluginState.html +0 -4
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +0 -7
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -6
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -9
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -6
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -9
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -7
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -6
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -15
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -14
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -13
- package/docs/interfaces/PluginEventMap.html +0 -16
- package/docs/interfaces/Point.html +0 -4
- package/docs/interfaces/Room.html +0 -5
- package/docs/interfaces/RoomInfo.html +0 -3
- package/docs/interfaces/RoomLabel.html +0 -16
- package/docs/interfaces/RoomRules.html +0 -1
- package/docs/interfaces/Rooms.html +0 -1
- package/docs/interfaces/Scissor.html +0 -13
- package/docs/interfaces/SculptConfig.html +0 -14
- package/docs/interfaces/State.html +0 -7
- package/docs/interfaces/TagCacheInterface.html +0 -9
- package/docs/interfaces/TagConfig.html +0 -164
- package/docs/interfaces/TagGLTFObjectGroup.html +0 -3
- package/docs/interfaces/TagIconAnimationConfig.html +0 -7
- package/docs/interfaces/TagIconUrl.html +0 -20
- package/docs/interfaces/TagObjectGroup.html +0 -3
- package/docs/interfaces/TagState.html +0 -3
- package/docs/interfaces/TagStyle.html +0 -5
- package/docs/interfaces/Tags.html +0 -8
- package/docs/interfaces/TemporaryState.html +0 -2
- package/docs/interfaces/Util.AnimeInstance.html +0 -14
- package/docs/interfaces/Util.BlinkAnimeOptions.html +0 -21
- package/docs/interfaces/Util.EventHandlerConfig.html +0 -21
- package/docs/interfaces/Util.FiveDomEvent.html +0 -7
- package/docs/interfaces/Util.FiveDomEventMap.html +0 -20
- package/docs/interfaces/Util.LegacyMouseGroupParameter.html +0 -4
- package/docs/interfaces/Util.MagnifierParameter.html +0 -13
- package/docs/interfaces/Util.MouseGroupParameter.html +0 -4
- package/docs/interfaces/Util.ObjectInitialState.html +0 -9
- package/docs/interfaces/Util.PointIntersection.html +0 -21
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +0 -6
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +0 -27
- package/docs/modules/AreaMakerPluginType.html +0 -17
- package/docs/modules/CruisePluginTypes.html +0 -14
- package/docs/modules/CurrentPanoImagePluginType.html +0 -6
- package/docs/modules/GuideLineItem.html +0 -2
- package/docs/modules/GuideLineModeItem.html +0 -3
- package/docs/modules/GuideLinePluginType.html +0 -25
- package/docs/modules/ModelMakerPluginType.html +0 -19
- package/docs/modules/PanoVideoPluginType.html +0 -8
- package/docs/modules/SculptData.html +0 -9
- package/docs/modules/SculptType.html +0 -2
- package/docs/modules/Util.html +0 -91
- package/docs/modules/Util.sculpt.html +0 -27
- package/docs/modules.html +0 -281
- package/docs/types/AddObject3DHelperConfig.html +0 -19
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -7
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +0 -1
- package/docs/types/AreaMakerPluginType.PluginData.html +0 -2
- package/docs/types/AreaMakerPluginType.ServerData.html +0 -2
- package/docs/types/ArrayPosition.html +0 -1
- package/docs/types/AudioAppearance.html +0 -1
- package/docs/types/CSS3DRenderExportType.html +0 -1
- package/docs/types/CSS3DRenderPluginExportType.html +0 -1
- package/docs/types/CSS3DRenderPluginParameterType.html +0 -1
- package/docs/types/ClassFunctionParameters.html +0 -1
- package/docs/types/Color.html +0 -1
- package/docs/types/ContentTypeConfigKey.html +0 -1
- package/docs/types/ContentTypeConfigKeySplit.html +0 -1
- package/docs/types/ContentTypeMap.html +0 -1
- package/docs/types/Create3DDomContainerReturnType.html +0 -1
- package/docs/types/Create3DElementReturnType.html +0 -1
- package/docs/types/CruisePluginExportType.html +0 -1
- package/docs/types/CruisePluginTypes.CruiseData.html +0 -5
- package/docs/types/CruisePluginTypes.MoveEffect.html +0 -1
- package/docs/types/CurrentPanoImagePluginExportType.html +0 -1
- package/docs/types/DeprecatedMediaPlaneProperty.html +0 -3
- package/docs/types/DeprecatedTagProperty.html +0 -3
- package/docs/types/Direction-1.html +0 -1
- package/docs/types/Direction4.html +0 -1
- package/docs/types/ElementRenderer.html +0 -2
- package/docs/types/FloorplanGuidePluginParameterType.html +0 -1
- package/docs/types/FloorplanGuidePluginReturnType.html +0 -1
- package/docs/types/FloorplanRuleLabels.html +0 -2
- package/docs/types/FloorplanServerRuleLabels.html +0 -1
- package/docs/types/GuideLinePluginExportType.html +0 -1
- package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -2
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -1
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -1
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -2
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -2
- package/docs/types/GuideLinePluginType.PathItem.html +0 -2
- package/docs/types/GuideLinePluginType.PluginData.html +0 -2
- package/docs/types/GuideLinePluginType.RouteConfig.html +0 -4
- package/docs/types/HelperEventMap.html +0 -1
- package/docs/types/InternalHelperEventMap.html +0 -1
- package/docs/types/MapviewFloorplanPluginParameterType.html +0 -1
- package/docs/types/MapviewFloorplanPluginReturnType.html +0 -1
- package/docs/types/MeasureEndReason.html +0 -1
- package/docs/types/MeasurePluginConfig.html +0 -5
- package/docs/types/MeasurePluginEventMap.html +0 -1
- package/docs/types/MediaData.html +0 -2
- package/docs/types/MediaStore.html +0 -1
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -1
- package/docs/types/ModelFloorplanPluginParameterType.html +0 -1
- package/docs/types/ModelFloorplanPluginReturnType.html +0 -1
- package/docs/types/ModelId.html +0 -1
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +0 -1
- package/docs/types/ModelMakerPluginType.ItemType.html +0 -2
- package/docs/types/ModelMakerPluginType.MarkerItem.html +0 -1
- package/docs/types/ModelMakerPluginType.ServerItem.html +0 -2
- package/docs/types/ModelRoomLabelPluginParameters.html +0 -1
- package/docs/types/ModelRoomLabelPluginReturnType.html +0 -1
- package/docs/types/MoveArgs.html +0 -2
- package/docs/types/MoveOpts.html +0 -2
- package/docs/types/Object3DHelperEventMap.html +0 -1
- package/docs/types/ObjectFit.html +0 -1
- package/docs/types/PaintBrushEventMap.html +0 -1
- package/docs/types/PanoCompassPluginData.html +0 -1
- package/docs/types/PanoCompassPluginExportType.html +0 -1
- package/docs/types/PanoCompassPluginParameterType.html +0 -1
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -1
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -1
- package/docs/types/PanoIndex.html +0 -1
- package/docs/types/PanoMeasurePluginEvent.html +0 -1
- package/docs/types/PanoMeasureReturnType.html +0 -1
- package/docs/types/PanoSpatialTagPluginId.html +0 -1
- package/docs/types/PanoTagPluginExportInterface.html +0 -1
- package/docs/types/PanoTagPluginParamsInterface.html +0 -1
- package/docs/types/PanoVideoPluginParameterType.html +0 -1
- package/docs/types/PanoVideoPluginReturnType.html +0 -1
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -2
- package/docs/types/PipelinePluginParameterType.html +0 -1
- package/docs/types/PipelinePluginReturnType.html +0 -1
- package/docs/types/PlaneTag.html +0 -2
- package/docs/types/Point2DTag.html +0 -2
- package/docs/types/Point3DTag.html +0 -2
- package/docs/types/PointTagInstance.html +0 -1
- package/docs/types/Position.html +0 -1
- package/docs/types/PositionFrom.html +0 -1
- package/docs/types/RotateArgs.html +0 -2
- package/docs/types/RotateOpts.html +0 -2
- package/docs/types/RuleLabelsKey.html +0 -1
- package/docs/types/RuleLabelsValue.html +0 -1
- package/docs/types/ScaleCallback.html +0 -1
- package/docs/types/ScalePosition.html +0 -3
- package/docs/types/SculptData.BoxData.html +0 -1
- package/docs/types/SculptData.CircleData.html +0 -1
- package/docs/types/SculptData.CylinderData.html +0 -1
- package/docs/types/SculptData.PointData.html +0 -1
- package/docs/types/SculptData.PolygonData.html +0 -1
- package/docs/types/SculptData.PolylineData.html +0 -1
- package/docs/types/SculptData.PrismData.html +0 -1
- package/docs/types/SculptData.RectangleData.html +0 -1
- package/docs/types/SculptType.Theme.html +0 -10
- package/docs/types/StickType.html +0 -1
- package/docs/types/Tag.html +0 -17
- package/docs/types/Tag2D.html +0 -2
- package/docs/types/Tag3D.html +0 -2
- package/docs/types/TagClickParams.html +0 -1
- package/docs/types/TagConfigByKey.html +0 -1
- package/docs/types/TagContentType.html +0 -1
- package/docs/types/TagContentTypeMapping.html +0 -1
- package/docs/types/TagDimensionType.html +0 -1
- package/docs/types/TagElement.html +0 -2
- package/docs/types/TagEvents.html +0 -1
- package/docs/types/TagGLTFObject.html +0 -1
- package/docs/types/TagHooks.html +0 -1
- package/docs/types/TagId.html +0 -1
- package/docs/types/TagInstance.html +0 -1
- package/docs/types/TagPlacement.html +0 -5
- package/docs/types/TagPointType.html +0 -2
- package/docs/types/TagRendererMap.html +0 -1
- package/docs/types/TopviewFloorplanPluginParameterType.html +0 -1
- package/docs/types/TopviewFloorplanPluginReturnType.html +0 -1
- package/docs/types/Util.ActionIfNoIntersection.html +0 -1
- package/docs/types/Util.AdherePoint.html +0 -2
- package/docs/types/Util.PointSelectorConfig.html +0 -1
- package/docs/types/Util.SupportedTarget.html +0 -2
- package/docs/types/Util.Target.html +0 -2
- package/docs/types/Util.ThreeObject.html +0 -2
- package/docs/types/WorkCode.html +0 -1
- package/docs/variables/FLOOR_TYPE_MAP.html +0 -2
- package/docs/variables/PLUGIN.html +0 -1
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -2
- package/docs/variables/ROOM_TYPE_MAP.html +0 -2
- package/docs/variables/Util.ANIME_PRESETS.html +0 -2
- package/docs/variables/Util.CURRENT_PANO_IMAGE_DEFAULT_IMAGE.html +0 -2
- package/docs/variables/Util.DEFAULT_ANIME_CONFIG.html +0 -2
- package/docs/variables/Util.DEFAULT_STATIC_PREFIX.html +0 -2
- package/docs/variables/Util.DNALOGEL_DEFAULT_ASSETS.html +0 -2
- package/docs/variables/Util.ENTRY_DOOR_DEFAULT_IMAGE.html +0 -2
- package/docs/variables/Util.FLOORPLAN_DEFAULT_IMAGE.html +0 -2
- package/docs/variables/Util.GUIDELINE_DEFAULT_ARROW_TEXTURE.html +0 -2
- package/docs/variables/Util.GUIDELINE_WHITE_ARROW_TEXTURE.html +0 -2
- package/docs/variables/Util.MODEL_CHASSIS_COMPASS_DEFAULT_MODEL.html +0 -2
- package/docs/variables/Util.MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL.html +0 -2
- package/docs/variables/Util.PANO_COMPASS_DEFAULT_IMAGE.html +0 -2
- package/docs/variables/Util.PANO_SPATIAL_TAG_BLUR_IMAGE.html +0 -2
- package/docs/variables/Util.PANO_TAG_DEFAULT_LINK_ICON.html +0 -2
- package/docs/variables/defaultGlobalConfig.html +0 -1
- package/docs/variables/itemLabelPluginServerParams.html +0 -1
- package/docs/variables/modelItemLabelPluginServerParams.html +0 -1
- package/docs/variables/modelRoomLabelPluginServerParams.html +0 -1
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
for (var t in
|
|
16
|
-
|
|
17
|
-
if (
|
|
18
|
-
for (var t of
|
|
19
|
-
|
|
20
|
-
return
|
|
1
|
+
var Q = Object.defineProperty, Y = Object.defineProperties;
|
|
2
|
+
var ee = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var T = Object.getOwnPropertySymbols;
|
|
4
|
+
var E = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var U = Math.pow, S = (m, i, e) => i in m ? Q(m, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : m[i] = e, y = (m, i) => {
|
|
6
|
+
for (var e in i || (i = {}))
|
|
7
|
+
E.call(i, e) && S(m, e, i[e]);
|
|
8
|
+
if (T)
|
|
9
|
+
for (var e of T(i))
|
|
10
|
+
O.call(i, e) && S(m, e, i[e]);
|
|
11
|
+
return m;
|
|
12
|
+
}, B = (m, i) => Y(m, ee(i));
|
|
13
|
+
var _ = (m, i) => {
|
|
14
|
+
var e = {};
|
|
15
|
+
for (var t in m)
|
|
16
|
+
E.call(m, t) && i.indexOf(t) < 0 && (e[t] = m[t]);
|
|
17
|
+
if (m != null && T)
|
|
18
|
+
for (var t of T(m))
|
|
19
|
+
i.indexOf(t) < 0 && O.call(m, t) && (e[t] = m[t]);
|
|
20
|
+
return e;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
var
|
|
22
|
+
var a = (m, i, e) => (S(m, typeof i != "symbol" ? i + "" : i, e), e);
|
|
23
|
+
var F = (m, i, e) => new Promise((t, o) => {
|
|
24
24
|
var s = (n) => {
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
r(e.next(n));
|
|
27
27
|
} catch (f) {
|
|
28
28
|
o(f);
|
|
29
29
|
}
|
|
30
|
-
},
|
|
30
|
+
}, l = (n) => {
|
|
31
31
|
try {
|
|
32
|
-
|
|
32
|
+
r(e.throw(n));
|
|
33
33
|
} catch (f) {
|
|
34
34
|
o(f);
|
|
35
35
|
}
|
|
36
|
-
},
|
|
37
|
-
|
|
36
|
+
}, r = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, l);
|
|
37
|
+
r((e = e.apply(m, i)).next());
|
|
38
38
|
});
|
|
39
|
-
import { Subscribe as
|
|
40
|
-
import { calculateTagConfig as
|
|
41
|
-
import { getTagStickType as
|
|
39
|
+
import { Subscribe as ie } from "../../../shared-utils/Subscribe.js";
|
|
40
|
+
import { calculateTagConfig as A } from "../../utils/tag/calculateTagConfig.js";
|
|
41
|
+
import { getTagStickType as te } from "../../utils/tag/format.js";
|
|
42
42
|
import "../../../shared-utils/tag.js";
|
|
43
|
-
import { isPanoramaLike as
|
|
44
|
-
import * as
|
|
43
|
+
import { isPanoramaLike as D, isModelLike as V } from "../../../shared-utils/five/mode.js";
|
|
44
|
+
import * as P from "three";
|
|
45
45
|
import "../../../vendor/hammerjs/hammer.js";
|
|
46
46
|
import "../../../shared-utils/three/PointSelector/index.js";
|
|
47
|
-
import { centerPoint as
|
|
47
|
+
import { centerPoint as ne } from "../../../shared-utils/three/centerPoint.js";
|
|
48
48
|
import "../../../shared-utils/three/CSS3DRenderer/index.js";
|
|
49
49
|
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
50
|
-
import { anyPositionToVector3 as
|
|
51
|
-
import { toArray as
|
|
50
|
+
import { anyPositionToVector3 as $ } from "../../../shared-utils/positionToVector3.js";
|
|
51
|
+
import { toArray as se } from "../../../shared-utils/util.js";
|
|
52
52
|
import "@realsee/five/line";
|
|
53
|
-
import { isNil as
|
|
53
|
+
import { isNil as N, notNil as z } from "../../../shared-utils/isNil.js";
|
|
54
54
|
import "../../../shared-utils/three/core/Five_LineMaterial2.js";
|
|
55
55
|
import "../../../shared-utils/three/core/Sphere.js";
|
|
56
|
-
import { blink as
|
|
56
|
+
import { blink as oe, reblink as re } from "../../../shared-utils/three/blink.js";
|
|
57
57
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
58
58
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
59
59
|
import "../../../vendor/earcut/src/earcut.js";
|
|
60
|
-
import { vectorToCoordinates as
|
|
61
|
-
import { transformPosition as
|
|
60
|
+
import { vectorToCoordinates as le } from "../../../shared-utils/vectorToCoordinate.js";
|
|
61
|
+
import { transformPosition as W } from "../../../shared-utils/five/transformPosition.js";
|
|
62
62
|
import { lookPoint as ae } from "../../../shared-utils/five/lookPoint.js";
|
|
63
|
-
import { uuid as
|
|
63
|
+
import { uuid as fe } from "../../../shared-utils/uuid.js";
|
|
64
64
|
import "../../../shared-utils/five/FivePuppet.js";
|
|
65
|
-
import { objectAssignDeepExports as
|
|
66
|
-
import { getTagPosition as
|
|
67
|
-
import { checkRange as
|
|
68
|
-
import { isMediaPlaneTag as
|
|
69
|
-
import { getUrlExt as
|
|
70
|
-
import { getFloorIndex as
|
|
71
|
-
import { safeObj as
|
|
65
|
+
import { objectAssignDeepExports as x } from "../../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
66
|
+
import { getTagPosition as J, getTagCenterPosition as H } from "../../utils/tagPosition.js";
|
|
67
|
+
import { checkRange as M } from "../../utils/checkRange.js";
|
|
68
|
+
import { isMediaPlaneTag as q, isMediaModelTag as j } from "../../utils/tag/tagCheck.js";
|
|
69
|
+
import { getUrlExt as X } from "../../../shared-utils/url/getUrl.js";
|
|
70
|
+
import { getFloorIndex as de } from "../../../shared-utils/five/getFloorIndex.js";
|
|
71
|
+
import { safeObj as Z } from "../../../shared-utils/safeObj.js";
|
|
72
72
|
import { Cache as ce } from "../../utils/Cache.js";
|
|
73
|
-
import { _raycaster as
|
|
74
|
-
import { withResolvers as
|
|
73
|
+
import { _raycaster as L } from "../../../shared-utils/three/temp.js";
|
|
74
|
+
import { withResolvers as ue } from "../../../shared-utils/promise/withResolvers.js";
|
|
75
75
|
import "../../../shared-utils/typescript/entries.js";
|
|
76
76
|
import "../../utils/tag/adaptConfig.js";
|
|
77
77
|
import "../../typings/tag/TagConfig.js";
|
|
@@ -123,89 +123,97 @@ import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
|
123
123
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
124
124
|
import "../../../shared-utils/formatRad.js";
|
|
125
125
|
class Ji {
|
|
126
|
-
constructor(
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
126
|
+
constructor(i, e) {
|
|
127
|
+
a(this, "plugin");
|
|
128
|
+
a(this, "id");
|
|
129
|
+
a(this, "contentType");
|
|
130
|
+
a(this, "stickType");
|
|
131
|
+
a(this, "enabled");
|
|
132
|
+
a(this, "config");
|
|
133
|
+
a(this, "data");
|
|
134
|
+
a(this, "state");
|
|
135
|
+
a(this, "temporaryState", { visible: !0 });
|
|
136
|
+
a(this, "originPosition");
|
|
137
|
+
a(this, "position");
|
|
138
|
+
a(this, "fiveState");
|
|
139
|
+
a(this, "model");
|
|
140
|
+
a(this, "matrix");
|
|
141
|
+
a(this, "screenPosition");
|
|
142
|
+
a(this, "normal");
|
|
143
|
+
a(this, "mediaPlane");
|
|
144
|
+
a(this, "tagNormalLine");
|
|
145
|
+
a(this, "hooks");
|
|
146
|
+
a(this, "zIndex");
|
|
147
|
+
a(this, "manuallyOperated", !1);
|
|
148
|
+
a(this, "normalLineLength");
|
|
149
|
+
a(this, "play");
|
|
150
|
+
a(this, "pause");
|
|
151
|
+
a(this, "tag3DContentSvelte");
|
|
152
|
+
a(this, "rectanglePlane");
|
|
153
|
+
a(this, "dom");
|
|
154
|
+
a(this, "contentDom");
|
|
155
|
+
a(this, "initialConfig");
|
|
156
|
+
a(this, "computedConfig");
|
|
155
157
|
/**
|
|
156
158
|
* 存储当前的闪烁动画实例
|
|
157
159
|
* @private
|
|
158
160
|
*/
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
a(this, "_currentBlinkInstance");
|
|
162
|
+
a(this, "cache");
|
|
163
|
+
a(this, "entryFromModel");
|
|
164
|
+
a(this, "_updating", !1);
|
|
163
165
|
/**
|
|
164
166
|
* 是否启用 hover 行为,默认 为config.popoverConfig.enabled
|
|
165
167
|
*/
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
const { promise:
|
|
168
|
+
a(this, "hoverEnabled");
|
|
169
|
+
a(this, "ready", () => {
|
|
170
|
+
const { promise: i, resolve: e } = ue();
|
|
169
171
|
if (!this._updating)
|
|
170
|
-
|
|
172
|
+
e();
|
|
171
173
|
else {
|
|
172
174
|
const t = setInterval(() => {
|
|
173
|
-
this._updating || (clearInterval(t),
|
|
175
|
+
this._updating || (clearInterval(t), e());
|
|
174
176
|
}, 17);
|
|
175
177
|
setTimeout(() => {
|
|
176
|
-
clearInterval(t),
|
|
178
|
+
clearInterval(t), e();
|
|
177
179
|
}, 300);
|
|
178
180
|
}
|
|
179
|
-
return
|
|
181
|
+
return i;
|
|
180
182
|
});
|
|
181
|
-
var f,
|
|
182
|
-
this.plugin =
|
|
183
|
-
const t =
|
|
184
|
-
|
|
185
|
-
const o = JSON.parse(JSON.stringify(
|
|
186
|
-
|
|
187
|
-
const
|
|
188
|
-
|
|
183
|
+
var f, p, h, d, c, u, v, b;
|
|
184
|
+
this.plugin = i;
|
|
185
|
+
const t = te(e);
|
|
186
|
+
e.stickType = t;
|
|
187
|
+
const o = JSON.parse(JSON.stringify(e.data)), s = (f = e.initialConfig) != null ? f : e.config ? JSON.parse(JSON.stringify(e.config)) : {};
|
|
188
|
+
e.initialConfig = s;
|
|
189
|
+
const l = A(e, i.config), r = this.getConfig(e);
|
|
190
|
+
e.config = r, this.id = (p = e.id) != null ? p : fe(), this.enabled = (h = e.enabled) != null ? h : !0, this.contentType = e.contentType, this.hoverEnabled = (c = (d = r.popoverConfig) == null ? void 0 : d.enabled) != null ? c : !0, this.data = (u = r.initialData) != null && u.important ? x(e.data, o, r.initialData) : x(e.data, r.initialData, o);
|
|
189
191
|
let n;
|
|
190
|
-
typeof
|
|
192
|
+
typeof r.unfoldedConfig == "object" ? r.unfoldedConfig.keep === "unfolded" ? n = !0 : r.unfoldedConfig.keep === "folded" ? n = !1 : n = !this.can("fold") : n = !this.can("fold"), this.state = y({
|
|
191
193
|
visible: void 0,
|
|
192
194
|
unfolded: n
|
|
193
|
-
},
|
|
194
|
-
|
|
195
|
-
|
|
195
|
+
}, r.initialState), this.isPopoverConfigEnabled() && (this.state.unfolded = !1), this.normalLineLength = (b = (v = e.style) == null ? void 0 : v.point) == null ? void 0 : b.normalLen, this.originPosition = e.position, e.originPosition = this.originPosition, this.position = (() => {
|
|
196
|
+
var w;
|
|
197
|
+
const g = e.originPosition;
|
|
198
|
+
if (!g)
|
|
196
199
|
return;
|
|
197
|
-
const
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
200
|
+
const k = i.workUtil.transform;
|
|
201
|
+
let C = g;
|
|
202
|
+
if (Array.isArray(g) && g.length === 4 ? C = g.map($).map((I) => W(I, k).toArray()) : C = W($(g), k).toArray(), (e.stickType === "2DPoint" || e.stickType === "3DPoint") && ((w = r == null ? void 0 : r.tagNormalLineConfig) != null && w.enabled) && e.normal && this.normalLineLength) {
|
|
203
|
+
const I = new P.Vector3().fromArray(e.normal);
|
|
204
|
+
C = new P.Vector3().fromArray(C).clone().add(I.clone().setLength(this.normalLineLength)).toArray();
|
|
205
|
+
}
|
|
206
|
+
return C;
|
|
207
|
+
})(), this.matrix = e.matrix ? (() => {
|
|
208
|
+
const g = new P.Matrix4().fromArray(e.matrix);
|
|
209
|
+
return g.premultiply(i.workUtil.transform), g.elements;
|
|
210
|
+
})() : e.matrix, this.initialConfig = s, this.computedConfig = l, this.stickType = t, this.config = e.config, this.fiveState = e.fiveState, this.normal = e.normal, this.cache = new ce(), this.hooks = new ie(), Object.keys(e).forEach((g) => {
|
|
211
|
+
this[g] === void 0 && e[g] !== void 0 && (this[g] = e[g]);
|
|
204
212
|
});
|
|
205
213
|
}
|
|
206
214
|
get visible() {
|
|
207
|
-
var
|
|
208
|
-
return ((
|
|
215
|
+
var i;
|
|
216
|
+
return ((i = this.temporaryState) == null ? void 0 : i.visible) !== !1 && this.state.visible !== !1 && this.enabled !== !1;
|
|
209
217
|
}
|
|
210
218
|
get five() {
|
|
211
219
|
return this.plugin.five;
|
|
@@ -217,13 +225,13 @@ class Ji {
|
|
|
217
225
|
return this.plugin.workUtil;
|
|
218
226
|
}
|
|
219
227
|
get centerPosition() {
|
|
220
|
-
const
|
|
221
|
-
return
|
|
228
|
+
const i = J(this);
|
|
229
|
+
return ne(...Array.isArray(i) ? i : [i]);
|
|
222
230
|
}
|
|
223
231
|
get currentConfig() {
|
|
224
232
|
var o, s;
|
|
225
|
-
const
|
|
226
|
-
return (s = t != null ? t :
|
|
233
|
+
const i = A(this, this.plugin.config, { useCache: !0 }), e = this.five.getCurrentState().mode, t = (o = i.configWithFiveMode) == null ? void 0 : o[e];
|
|
234
|
+
return (s = t != null ? t : i) != null ? s : {};
|
|
227
235
|
}
|
|
228
236
|
get currentVisible() {
|
|
229
237
|
return !(!this.plugin.state.enabled || !this.plugin.state.visible || !this.enabled || !this.state.visible);
|
|
@@ -240,79 +248,92 @@ class Ji {
|
|
|
240
248
|
/**
|
|
241
249
|
* @description 找到标签
|
|
242
250
|
*/
|
|
243
|
-
find(
|
|
244
|
-
return
|
|
251
|
+
find(i) {
|
|
252
|
+
return F(this, null, function* () {
|
|
245
253
|
var o;
|
|
246
|
-
const
|
|
254
|
+
const e = this.fiveState;
|
|
247
255
|
if (!this.fiveState)
|
|
248
256
|
return this;
|
|
249
|
-
const t = (o =
|
|
257
|
+
const t = (o = i == null ? void 0 : i.targetMode) != null ? o : this.five.state.mode;
|
|
250
258
|
if (t === "Panorama") {
|
|
251
|
-
const s =
|
|
252
|
-
if (
|
|
259
|
+
const s = e == null ? void 0 : e.panoIndex;
|
|
260
|
+
if (N(s))
|
|
253
261
|
return this;
|
|
254
|
-
const
|
|
255
|
-
this.five.setState(
|
|
262
|
+
const l = this.workUtil.getObserverPosition(s), r = this.centerPosition.clone().sub(l).normalize();
|
|
263
|
+
this.five.setState(y({
|
|
256
264
|
mode: "Panorama",
|
|
257
265
|
workCode: this.workUtil.workCode,
|
|
258
266
|
panoIndex: s
|
|
259
|
-
},
|
|
267
|
+
}, le(r))), yield this.five.ready();
|
|
260
268
|
} else
|
|
261
|
-
t === "Mapview" && (yield ae(this.five, this.centerPosition,
|
|
269
|
+
t === "Mapview" && (yield ae(this.five, this.centerPosition, i == null ? void 0 : i.pointConfig));
|
|
262
270
|
return this;
|
|
263
271
|
});
|
|
264
272
|
}
|
|
273
|
+
/**
|
|
274
|
+
* @description 获取额外的闪烁目标(子类可以重写此方法添加额外的闪烁目标,如法线等)
|
|
275
|
+
* @returns 额外的闪烁目标或目标数组,返回 null/undefined 表示没有额外目标
|
|
276
|
+
*/
|
|
277
|
+
getAdditionalBlinkTargets() {
|
|
278
|
+
return null;
|
|
279
|
+
}
|
|
265
280
|
/**
|
|
266
281
|
* @description 闪烁
|
|
267
282
|
*/
|
|
268
|
-
blink(
|
|
269
|
-
return
|
|
270
|
-
var
|
|
271
|
-
yield this.ready(), this._currentBlinkInstance && !this._currentBlinkInstance.completed && ((n = (
|
|
272
|
-
const
|
|
273
|
-
o === !1 && (this.state.visible = !0, this.enabled = !0, this.applyVisible(), this.plugin.render(), this.computeRenderType() !== "Mesh" ? yield new Promise((
|
|
283
|
+
blink(i) {
|
|
284
|
+
return F(this, null, function* () {
|
|
285
|
+
var r, n, f, p, h, d;
|
|
286
|
+
yield this.ready(), this._currentBlinkInstance && !this._currentBlinkInstance.completed && ((n = (r = this._currentBlinkInstance).preComplete) == null || n.call(r), this._currentBlinkInstance = void 0);
|
|
287
|
+
const e = (f = this.enabled) != null ? f : !0, t = (p = this.state) == null ? void 0 : p.visible, o = e && t;
|
|
288
|
+
o === !1 && (this.state.visible = !0, this.enabled = !0, this.applyVisible(), this.plugin.render(), this.computeRenderType() !== "Mesh" ? yield new Promise((c) => {
|
|
274
289
|
if (this.dom || this.contentDom) {
|
|
275
|
-
|
|
290
|
+
c();
|
|
276
291
|
return;
|
|
277
292
|
}
|
|
278
|
-
const
|
|
279
|
-
(this.dom || this.contentDom) && (
|
|
293
|
+
const u = setInterval(() => {
|
|
294
|
+
(this.dom || this.contentDom) && (c(), clearInterval(u));
|
|
280
295
|
}, 16.7);
|
|
281
|
-
}) : this.stickType === "Model" && !((
|
|
296
|
+
}) : this.stickType === "Model" && !((h = this.model) != null && h.object) ? yield (d = this.model) == null ? void 0 : d.promise : this.stickType === "Plane" && (yield new Promise((c) => {
|
|
282
297
|
if (this.mediaPlane) {
|
|
283
|
-
|
|
298
|
+
c();
|
|
284
299
|
return;
|
|
285
300
|
}
|
|
286
|
-
const
|
|
287
|
-
this.mediaPlane && (
|
|
301
|
+
const u = setInterval(() => {
|
|
302
|
+
this.mediaPlane && (c(), clearInterval(u));
|
|
288
303
|
}, 16.7);
|
|
289
304
|
})), this.dom && (this.dom.style.visibility = "hidden"), this.contentDom && (this.contentDom.style.visibility = "hidden"));
|
|
290
305
|
const s = (() => {
|
|
291
|
-
var
|
|
292
|
-
const
|
|
293
|
-
|
|
306
|
+
var v, b, g;
|
|
307
|
+
const c = [];
|
|
308
|
+
c.push(this.dom), c.push((b = (v = this.tag3DContentSvelte) == null ? void 0 : v.css3DInstance) == null ? void 0 : b.container), c.push((g = this.model) == null ? void 0 : g.object), c.push(this.mediaPlane);
|
|
309
|
+
const u = this.getAdditionalBlinkTargets();
|
|
310
|
+
if (u) {
|
|
311
|
+
const k = Array.isArray(u) ? u : [u];
|
|
312
|
+
c.push(...k);
|
|
313
|
+
}
|
|
314
|
+
return c.filter(Boolean);
|
|
294
315
|
})();
|
|
295
316
|
if (!s.length) {
|
|
296
317
|
console.warn("tagDom is empty");
|
|
297
318
|
return;
|
|
298
319
|
}
|
|
299
|
-
const
|
|
300
|
-
this._currentBlinkInstance =
|
|
320
|
+
const l = o ? oe : re;
|
|
321
|
+
this._currentBlinkInstance = l(s, y({
|
|
301
322
|
begin: () => {
|
|
302
323
|
o === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
|
|
303
324
|
},
|
|
304
325
|
updateRender: () => {
|
|
305
326
|
this.five.needsRender = !0;
|
|
306
327
|
}
|
|
307
|
-
},
|
|
328
|
+
}, i));
|
|
308
329
|
try {
|
|
309
330
|
yield this._currentBlinkInstance.finished;
|
|
310
|
-
} catch (
|
|
311
|
-
console.debug("Blink animation interrupted:",
|
|
331
|
+
} catch (c) {
|
|
332
|
+
console.debug("Blink animation interrupted:", c);
|
|
312
333
|
} finally {
|
|
313
334
|
this._currentBlinkInstance = void 0;
|
|
314
335
|
}
|
|
315
|
-
|
|
336
|
+
e === !1 && (this.enabled = !1, this.updateVisible()), t === !1 && this.updateVisible(), o === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
|
|
316
337
|
});
|
|
317
338
|
}
|
|
318
339
|
/**
|
|
@@ -334,153 +355,153 @@ class Ji {
|
|
|
334
355
|
* @description 启用
|
|
335
356
|
*/
|
|
336
357
|
enable() {
|
|
337
|
-
this.enabled = !0, this.hooks.emit("enable"), this.applyVisible();
|
|
358
|
+
this.enabled = !0, this.hooks.emit("enable"), this.five.needsRender = !0, this.applyVisible();
|
|
338
359
|
}
|
|
339
360
|
/**
|
|
340
361
|
* @description 禁用
|
|
341
362
|
*/
|
|
342
363
|
disable() {
|
|
343
|
-
var
|
|
344
|
-
this.enabled = !1, this.hooks.emit("disable"), (
|
|
364
|
+
var i;
|
|
365
|
+
this.enabled = !1, this.hooks.emit("disable"), (i = this.rectanglePlane) == null || i.delete(), this.five.needsRender = !0, this.applyVisible();
|
|
345
366
|
}
|
|
346
367
|
/**
|
|
347
368
|
* @deprecated use `setData` instead
|
|
348
369
|
*/
|
|
349
|
-
changeData(
|
|
350
|
-
return this.setData(
|
|
370
|
+
changeData(i, e = !0) {
|
|
371
|
+
return this.setData(i, e);
|
|
351
372
|
}
|
|
352
373
|
/**
|
|
353
374
|
* @deprecated use `setPosition` instead
|
|
354
375
|
*/
|
|
355
|
-
changePosition(
|
|
356
|
-
return this.setPosition(
|
|
376
|
+
changePosition(i) {
|
|
377
|
+
return this.setPosition(i);
|
|
357
378
|
}
|
|
358
379
|
/**
|
|
359
380
|
* @description 修改标签数据
|
|
360
381
|
* @param deepMerge 是否深度合并 data,默认为 true
|
|
361
382
|
*/
|
|
362
|
-
setData(
|
|
363
|
-
|
|
383
|
+
setData(i, e = !0) {
|
|
384
|
+
e ? this.data = x(this.data, i) : this.data = y(y({}, this.data), i), this.hooks.emit("dataChanged", this.data);
|
|
364
385
|
}
|
|
365
386
|
/**
|
|
366
387
|
* @description 修改标签位置
|
|
367
388
|
*/
|
|
368
|
-
setPosition(
|
|
389
|
+
setPosition(i) {
|
|
369
390
|
throw new Error("Method not implemented.");
|
|
370
391
|
}
|
|
371
392
|
/**
|
|
372
393
|
* @description 设置标签实例的属性
|
|
373
394
|
* @param deepMerge 是否深度合并 data,默认为 true
|
|
374
395
|
*/
|
|
375
|
-
set(
|
|
376
|
-
this.plugin.tagsLengthWillUpdate = !0,
|
|
396
|
+
set(i, e = !0) {
|
|
397
|
+
this.plugin.tagsLengthWillUpdate = !0, e ? x(this, i) : Object.assign(this, i), this.cache.clear();
|
|
377
398
|
}
|
|
378
399
|
updateConfig() {
|
|
379
400
|
var t;
|
|
380
|
-
const
|
|
381
|
-
this.computedConfig =
|
|
382
|
-
const
|
|
383
|
-
if (this.config =
|
|
401
|
+
const i = this.getConfig(void 0, { useCache: !1 });
|
|
402
|
+
this.computedConfig = i;
|
|
403
|
+
const e = this.getConfig();
|
|
404
|
+
if (this.config = e, this.config.initialData) {
|
|
384
405
|
const o = JSON.parse(JSON.stringify(this.data));
|
|
385
|
-
this.data = (t =
|
|
406
|
+
this.data = (t = e.initialData) != null && t.important ? x(this.data, o, e.initialData) : x(this.data, e.initialData, o);
|
|
386
407
|
}
|
|
387
408
|
this.cache.clear();
|
|
388
409
|
}
|
|
389
410
|
updateVisible() {
|
|
390
|
-
this.enabled ? (this.state.visible = this.getVisible(), this.applyVisible()) : this.applyVisible(), this._updating = !1;
|
|
411
|
+
this.enabled ? (this.state.visible = this.getVisible(), this.applyVisible()) : this.applyVisible(), this.five.needsRender = !0, this._updating = !1;
|
|
391
412
|
}
|
|
392
413
|
updateZIndex() {
|
|
393
|
-
const
|
|
394
|
-
this.zIndex = Math.round((1e4 - (
|
|
414
|
+
const i = this.getSquaredDistance();
|
|
415
|
+
this.zIndex = Math.round((1e4 - (i != null ? i : 0)) * 100);
|
|
395
416
|
}
|
|
396
|
-
getConfig(
|
|
397
|
-
var
|
|
398
|
-
const t =
|
|
417
|
+
getConfig(i, e) {
|
|
418
|
+
var l, r, n;
|
|
419
|
+
const t = A(i != null ? i : this, this.plugin.config, { useCache: e == null ? void 0 : e.useCache }), o = (l = e == null ? void 0 : e.fiveMode) != null ? l : this.five.getCurrentState().mode, s = (r = t.configWithFiveMode) == null ? void 0 : r[o];
|
|
399
420
|
return (n = s != null ? s : t) != null ? n : {};
|
|
400
421
|
}
|
|
401
|
-
getDistance(
|
|
402
|
-
const t =
|
|
403
|
-
return !
|
|
422
|
+
getDistance(i, e = 3) {
|
|
423
|
+
const t = y(y({}, this.five.getCurrentState()), i), { panoIndex: o, mode: s } = t, l = s === "Panorama" ? this.workUtil.getObserverPosition(o) : this.five.camera.position, r = this.centerPosition;
|
|
424
|
+
return !l || !r ? -1 : l.distanceTo(r);
|
|
404
425
|
}
|
|
405
426
|
/**
|
|
406
427
|
* @description 用于排序的距离,性能更好
|
|
407
428
|
*/
|
|
408
429
|
getSquaredDistance() {
|
|
409
|
-
const
|
|
410
|
-
let
|
|
411
|
-
return Array.isArray(this.position[0]) ?
|
|
430
|
+
const i = this.five.camera.position;
|
|
431
|
+
let e;
|
|
432
|
+
return Array.isArray(this.position[0]) ? e = this.position[0] : e = this.position, U(e[0] - i.x, 2) + U(e[1] - i.y, 2) + U(e[2] - i.z, 2);
|
|
412
433
|
}
|
|
413
|
-
getVisible(
|
|
434
|
+
getVisible(i) {
|
|
414
435
|
if (!this.enabled || !this.plugin.state.enabled || !this.fiveUtil.model)
|
|
415
436
|
return !1;
|
|
416
|
-
const
|
|
417
|
-
let t = this.cache.getVisible(this,
|
|
418
|
-
return
|
|
437
|
+
const e = y(y({}, this.five.getCurrentState()), i);
|
|
438
|
+
let t = this.cache.getVisible(this, e);
|
|
439
|
+
return N(t) && (t = this.computeVisible(e).value, this.cache.setVisible(this, e, t)), t;
|
|
419
440
|
}
|
|
420
|
-
getUnfoldedByPanoIndex(
|
|
441
|
+
getUnfoldedByPanoIndex(i) {
|
|
421
442
|
if (!this.currentVisible)
|
|
422
443
|
return;
|
|
423
|
-
const t = this.computeUnfoldedByPanoIndex(
|
|
444
|
+
const t = this.computeUnfoldedByPanoIndex(i);
|
|
424
445
|
return t && this.getUnfoldedByCamera();
|
|
425
446
|
}
|
|
426
447
|
getUnfoldedByCamera() {
|
|
427
448
|
return this.currentVisible ? this.computeUnfoldedByCamera() : void 0;
|
|
428
449
|
}
|
|
429
|
-
can(
|
|
450
|
+
can(i) {
|
|
430
451
|
var t, o;
|
|
431
|
-
if ((
|
|
452
|
+
if ((i === "fold" || i === "unfold") && ((o = (t = this.currentConfig) == null ? void 0 : t.popoverConfig) == null ? void 0 : o.enabled) === !0)
|
|
432
453
|
return !1;
|
|
433
|
-
const
|
|
434
|
-
if (!
|
|
454
|
+
const e = this.currentConfig;
|
|
455
|
+
if (!e || typeof e != "object")
|
|
435
456
|
return !0;
|
|
436
|
-
if (
|
|
437
|
-
if (!
|
|
457
|
+
if (i === "show" || i === "hide") {
|
|
458
|
+
if (!e.visibleConfig || typeof e.visibleConfig != "object")
|
|
438
459
|
return !0;
|
|
439
|
-
if (
|
|
460
|
+
if (i === "show" && e.visibleConfig.keep === "hidden" || i === "hide" && e.visibleConfig.keep === "visible")
|
|
440
461
|
return !1;
|
|
441
462
|
}
|
|
442
|
-
if (
|
|
443
|
-
if (!
|
|
463
|
+
if (i === "fold" || i === "unfold") {
|
|
464
|
+
if (!e.unfoldedConfig || typeof e.unfoldedConfig != "object")
|
|
444
465
|
return !0;
|
|
445
|
-
if (
|
|
466
|
+
if (i === "fold" && e.unfoldedConfig.keep === "unfolded" || i === "unfold" && e.unfoldedConfig.keep === "folded")
|
|
446
467
|
return !1;
|
|
447
468
|
}
|
|
448
469
|
return !0;
|
|
449
470
|
}
|
|
450
|
-
onClick(
|
|
471
|
+
onClick(i) {
|
|
451
472
|
}
|
|
452
473
|
computeRenderType() {
|
|
453
|
-
const
|
|
474
|
+
const i = (() => {
|
|
454
475
|
if (this.stickType === "3DPoint")
|
|
455
476
|
return "Dom";
|
|
456
|
-
const
|
|
457
|
-
if (!
|
|
477
|
+
const e = this.getConfig();
|
|
478
|
+
if (!e || typeof e != "object" || !e.renderType)
|
|
458
479
|
return;
|
|
459
480
|
const t = this.data.mediaData;
|
|
460
|
-
if ((!t || t.length === 0) &&
|
|
461
|
-
return
|
|
462
|
-
if (
|
|
463
|
-
if (
|
|
481
|
+
if ((!t || t.length === 0) && q(this))
|
|
482
|
+
return e.renderType;
|
|
483
|
+
if (e.renderType === "Mesh") {
|
|
484
|
+
if (q(this)) {
|
|
464
485
|
if (t.length === 1) {
|
|
465
486
|
if (t[0].type === "Video")
|
|
466
487
|
return navigator.userAgent.toLowerCase().indexOf("firefox") > -1 && navigator.userAgent.toLowerCase().indexOf("mobile") > -1 ? "Dom" : "Mesh";
|
|
467
488
|
if (t[0].type === "Image")
|
|
468
|
-
return
|
|
489
|
+
return X(t[0].url) === "gif" ? "Dom" : "Mesh";
|
|
469
490
|
}
|
|
470
|
-
} else if (
|
|
471
|
-
return t.length === 1 && t[0].type === "Image" ?
|
|
491
|
+
} else if (j(this))
|
|
492
|
+
return t.length === 1 && t[0].type === "Image" ? X(t[0].url) === "gif" ? "Dom" : "Mesh" : "BehindDom";
|
|
472
493
|
}
|
|
473
494
|
})();
|
|
474
|
-
return
|
|
495
|
+
return i != null ? i : "Dom";
|
|
475
496
|
}
|
|
476
|
-
computeVisible(
|
|
477
|
-
const
|
|
497
|
+
computeVisible(i) {
|
|
498
|
+
const e = y(y({}, this.five.getCurrentState()), i), { panoIndex: t, mode: o } = e, s = [];
|
|
478
499
|
return (() => {
|
|
479
|
-
var f,
|
|
500
|
+
var f, h, d, c;
|
|
480
501
|
const n = (f = this.getConfig().visibleConfig) != null ? f : {};
|
|
481
502
|
if (typeof n == "function")
|
|
482
503
|
return {
|
|
483
|
-
value: n(this.five, { tag: this, distance: this.getDistance(
|
|
504
|
+
value: n(this.five, { tag: this, distance: this.getDistance(e, void 0) }),
|
|
484
505
|
checkedList: s,
|
|
485
506
|
reason: "config function result"
|
|
486
507
|
};
|
|
@@ -489,37 +510,37 @@ class Ji {
|
|
|
489
510
|
return { value: !1, checkedList: s, reason: "config.keep is hidden" };
|
|
490
511
|
if (n.keep === "visible")
|
|
491
512
|
return { value: !0, checkedList: s, reason: "config.keep is visible" };
|
|
492
|
-
const
|
|
493
|
-
if ((
|
|
494
|
-
return
|
|
513
|
+
const u = this.computeVisibleByFiveMode(n, o);
|
|
514
|
+
if ((u == null ? void 0 : u.value) === !1)
|
|
515
|
+
return u;
|
|
495
516
|
if (n.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (o === "Floorplan" || o === "Mapview")) {
|
|
496
|
-
const
|
|
497
|
-
if (
|
|
498
|
-
return
|
|
517
|
+
const p = this.computeVisibleByFloorIndex(), { value: v } = p, b = _(p, ["value"]);
|
|
518
|
+
if (v === !1)
|
|
519
|
+
return y({ value: !1, checkedList: s, reason: "followModelVisibility check failed" }, b);
|
|
499
520
|
}
|
|
500
|
-
if (
|
|
521
|
+
if (D(o) && n.visiblePanoIndex !== void 0 && n.visiblePanoIndex !== "all" && t !== void 0) {
|
|
501
522
|
if (s.push("visiblePanoIndex"), Array.isArray(n.visiblePanoIndex) && !n.visiblePanoIndex.includes(t))
|
|
502
523
|
return {
|
|
503
524
|
value: !1,
|
|
504
525
|
checkedList: s,
|
|
505
526
|
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${n.visiblePanoIndex}`
|
|
506
527
|
};
|
|
507
|
-
if (n.visiblePanoIndex === "current" && t !== ((
|
|
528
|
+
if (n.visiblePanoIndex === "current" && t !== ((h = this.fiveState) == null ? void 0 : h.panoIndex))
|
|
508
529
|
return {
|
|
509
530
|
value: !1,
|
|
510
531
|
checkedList: s,
|
|
511
|
-
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(
|
|
532
|
+
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(d = this.fiveState) == null ? void 0 : d.panoIndex}`
|
|
512
533
|
};
|
|
513
534
|
}
|
|
514
535
|
if (n.visibleDistance !== void 0 && (s.push("visibleDistance"), n.visibleDistance !== "unLimited")) {
|
|
515
|
-
const
|
|
516
|
-
if (
|
|
536
|
+
const v = this.getDistance(e, 1);
|
|
537
|
+
if (M(v, n.visibleDistance) === !1)
|
|
517
538
|
return {
|
|
518
539
|
value: !1,
|
|
519
540
|
checkedList: s,
|
|
520
541
|
panoIndex: t,
|
|
521
542
|
visibleDistance: n.visibleDistance,
|
|
522
|
-
reason: `distance is not in visibleDistance. distance: ${
|
|
543
|
+
reason: `distance is not in visibleDistance. distance: ${v}, visibleDistance: ${n.visibleDistance.min} - ${n.visibleDistance.max}`
|
|
523
544
|
};
|
|
524
545
|
}
|
|
525
546
|
if (n.intersectRaycaster !== !1 && (typeof n.intersectRaycaster != "object" || n.intersectRaycaster.enabled !== !1)) {
|
|
@@ -529,12 +550,12 @@ class Ji {
|
|
|
529
550
|
checkedList: s,
|
|
530
551
|
reason: `intersectRaycaster check failed: panoIndex is ${t}`
|
|
531
552
|
};
|
|
532
|
-
if (t === ((
|
|
553
|
+
if (t === ((c = this.fiveState) == null ? void 0 : c.panoIndex))
|
|
533
554
|
s.push("intersectCheckSkiped");
|
|
534
555
|
else {
|
|
535
|
-
const
|
|
536
|
-
if (
|
|
537
|
-
return Object.assign(
|
|
556
|
+
const v = this.computeVisibleByIntersect(t);
|
|
557
|
+
if (v.value === !1)
|
|
558
|
+
return Object.assign(v, { checkedList: s });
|
|
538
559
|
}
|
|
539
560
|
}
|
|
540
561
|
return {
|
|
@@ -548,26 +569,26 @@ class Ji {
|
|
|
548
569
|
/**
|
|
549
570
|
* @description 计算标签可见性
|
|
550
571
|
*/
|
|
551
|
-
computeVisibleByFiveMode(
|
|
572
|
+
computeVisibleByFiveMode(i, e) {
|
|
552
573
|
const t = () => {
|
|
553
|
-
var
|
|
554
|
-
let s = typeof
|
|
555
|
-
if (s || (s = (
|
|
556
|
-
return s.includes(
|
|
574
|
+
var l, r;
|
|
575
|
+
let s = typeof i.visibleFiveMode == "function" ? i.visibleFiveMode(this) : i.visibleFiveMode;
|
|
576
|
+
if (s || (s = (r = (l = this.fiveState) == null ? void 0 : l.mode) != null ? r : this.workUtil.observers.length ? "Panorama" : "ModelLike"), Array.isArray(s))
|
|
577
|
+
return s.includes(e);
|
|
557
578
|
if (s === "ModelLike")
|
|
558
|
-
return
|
|
579
|
+
return V(e);
|
|
559
580
|
if (s === "PanoramaLike")
|
|
560
|
-
return !
|
|
581
|
+
return !D(e);
|
|
561
582
|
if (s === "all")
|
|
562
583
|
return !0;
|
|
563
584
|
if (typeof s == "string")
|
|
564
|
-
return s ===
|
|
585
|
+
return s === e;
|
|
565
586
|
};
|
|
566
587
|
if ((() => {
|
|
567
|
-
var
|
|
588
|
+
var l;
|
|
568
589
|
const s = t();
|
|
569
|
-
if (
|
|
570
|
-
if (
|
|
590
|
+
if (z((l = this.fiveState) == null ? void 0 : l.panoIndex) && i.entryFromModel) {
|
|
591
|
+
if (V(e) && s ? this.entryFromModel = !1 : this.entryFromModel = !0, V(e))
|
|
571
592
|
return !0;
|
|
572
593
|
} else
|
|
573
594
|
this.entryFromModel = !1;
|
|
@@ -576,213 +597,213 @@ class Ji {
|
|
|
576
597
|
return {
|
|
577
598
|
value: !1,
|
|
578
599
|
reason: "current mode is not included in visibleFiveMode",
|
|
579
|
-
visibleFiveMode:
|
|
580
|
-
mode:
|
|
600
|
+
visibleFiveMode: i.visibleFiveMode,
|
|
601
|
+
mode: e
|
|
581
602
|
};
|
|
582
603
|
}
|
|
583
604
|
/** 通过射线检测标签可用性 */
|
|
584
|
-
computeVisibleByIntersect(
|
|
585
|
-
var n, f,
|
|
586
|
-
const
|
|
605
|
+
computeVisibleByIntersect(i) {
|
|
606
|
+
var n, f, p, h;
|
|
607
|
+
const e = Z(Z((n = this.getConfig().visibleConfig) != null ? n : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, o = D(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
|
|
587
608
|
if (o === void 0)
|
|
588
609
|
return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
|
|
589
|
-
const s =
|
|
610
|
+
const s = se(
|
|
590
611
|
(() => {
|
|
591
|
-
var
|
|
592
|
-
const
|
|
593
|
-
return
|
|
612
|
+
var c;
|
|
613
|
+
const d = (c = e.checkPoints) != null ? c : "center";
|
|
614
|
+
return d === "center" ? H(this) : d === "corner" ? J(this) : Array.isArray(d) ? d : [];
|
|
594
615
|
})()
|
|
595
616
|
);
|
|
596
|
-
let
|
|
597
|
-
for (const
|
|
598
|
-
const
|
|
599
|
-
let
|
|
600
|
-
|
|
601
|
-
const [
|
|
602
|
-
|
|
603
|
-
const
|
|
604
|
-
if (!
|
|
617
|
+
let l = 0, r = 0;
|
|
618
|
+
for (const d of s) {
|
|
619
|
+
const c = new P.Vector3().subVectors(d, o).normalize();
|
|
620
|
+
let u;
|
|
621
|
+
L.set(o, c);
|
|
622
|
+
const [v] = this.fiveUtil.model.intersectRaycaster(L);
|
|
623
|
+
u = v == null ? void 0 : v.distance;
|
|
624
|
+
const b = (() => {
|
|
625
|
+
if (!j(this))
|
|
605
626
|
return;
|
|
606
|
-
const
|
|
607
|
-
var
|
|
608
|
-
return (
|
|
609
|
-
}).filter(
|
|
610
|
-
return
|
|
611
|
-
})(),
|
|
612
|
-
|
|
613
|
-
const
|
|
614
|
-
if (
|
|
627
|
+
const I = this.plugin.tags.filter(j).map((K) => {
|
|
628
|
+
var R;
|
|
629
|
+
return (R = K.model) == null ? void 0 : R.object;
|
|
630
|
+
}).filter(z), [G] = L.intersectObjects(I, !0);
|
|
631
|
+
return G;
|
|
632
|
+
})(), g = o.distanceTo(d), k = (f = e.distanceAccuracy) != null ? f : 0.01;
|
|
633
|
+
u = Math.min(u != null ? u : 1 / 0, (p = b == null ? void 0 : b.distance) != null ? p : 1 / 0), u + k >= g ? l++ : r++;
|
|
634
|
+
const w = (h = e.needPassed) != null ? h : 1;
|
|
635
|
+
if (l >= w)
|
|
615
636
|
return { value: !0 };
|
|
616
637
|
}
|
|
617
|
-
return
|
|
638
|
+
return r === 0 ? { value: !0 } : {
|
|
618
639
|
value: !1,
|
|
619
640
|
reason: {
|
|
620
641
|
type: "intersectRaycaster check failed",
|
|
621
|
-
passedCount:
|
|
622
|
-
needPassed:
|
|
642
|
+
passedCount: l,
|
|
643
|
+
needPassed: e.needPassed,
|
|
623
644
|
model: this.fiveUtil.model.name
|
|
624
645
|
}
|
|
625
646
|
};
|
|
626
647
|
}
|
|
627
648
|
computeVisibleByFloorIndex() {
|
|
628
|
-
var o, s,
|
|
629
|
-
let
|
|
630
|
-
const
|
|
631
|
-
|
|
649
|
+
var o, s, l, r, n, f, p;
|
|
650
|
+
let i = 0;
|
|
651
|
+
const e = (o = this.fiveState) == null ? void 0 : o.panoIndex;
|
|
652
|
+
e !== void 0 ? i = (s = this.workUtil.getObserver(e)) == null ? void 0 : s.floorIndex : i = de(
|
|
632
653
|
this.workUtil.work,
|
|
633
|
-
(
|
|
654
|
+
(p = (f = (r = (l = this.model) == null ? void 0 : l.object) == null ? void 0 : r.position) != null ? f : (n = this.mediaPlane) == null ? void 0 : n.position) != null ? p : H(this)
|
|
634
655
|
);
|
|
635
656
|
const t = this.fiveUtil.model.shownFloor;
|
|
636
657
|
return {
|
|
637
|
-
value: t === null || t ===
|
|
658
|
+
value: t === null || t === i,
|
|
638
659
|
currentFiveFloorIndex: t,
|
|
639
|
-
tagFloorIndex:
|
|
660
|
+
tagFloorIndex: i
|
|
640
661
|
};
|
|
641
662
|
}
|
|
642
663
|
/**
|
|
643
664
|
* @description 获取是否展开
|
|
644
665
|
*/
|
|
645
|
-
computeUnfoldedByPanoIndex(
|
|
646
|
-
const
|
|
647
|
-
if (
|
|
648
|
-
if (typeof
|
|
649
|
-
return
|
|
650
|
-
if (
|
|
666
|
+
computeUnfoldedByPanoIndex(i) {
|
|
667
|
+
const e = this.getConfig().unfoldedConfig;
|
|
668
|
+
if (e) {
|
|
669
|
+
if (typeof e == "function")
|
|
670
|
+
return e(this.five, { tag: this, distance: this.getDistance({ panoIndex: i }) });
|
|
671
|
+
if (e.keep === "folded")
|
|
651
672
|
return !1;
|
|
652
|
-
if (
|
|
673
|
+
if (e.keep === "unfolded")
|
|
653
674
|
return !0;
|
|
654
|
-
if (
|
|
675
|
+
if (e.unfoldDistance && M(this.getDistance({ panoIndex: i }), e.unfoldDistance) === !1)
|
|
655
676
|
return !1;
|
|
656
677
|
}
|
|
657
678
|
}
|
|
658
679
|
// 该方法有很大优化空间,这个检测显示方法不应该挂在tagBase下,做了多次不必要计算(MinimumDistance,ScreenCenter)。
|
|
659
680
|
computeUnfoldedByCamera() {
|
|
660
|
-
var
|
|
661
|
-
if (this.entryFromModel &&
|
|
681
|
+
var e, t;
|
|
682
|
+
if (this.entryFromModel && V(this.five.state.mode))
|
|
662
683
|
return !1;
|
|
663
|
-
const
|
|
664
|
-
if (
|
|
665
|
-
if (typeof
|
|
666
|
-
return
|
|
667
|
-
if (
|
|
684
|
+
const i = this.getConfig().unfoldedConfig;
|
|
685
|
+
if (i) {
|
|
686
|
+
if (typeof i == "function")
|
|
687
|
+
return i(this.five, { tag: this, distance: this.getDistance() });
|
|
688
|
+
if (i.keep === "folded")
|
|
668
689
|
return !1;
|
|
669
|
-
if (
|
|
690
|
+
if (i.keep === "unfolded")
|
|
670
691
|
return !0;
|
|
671
|
-
if (typeof
|
|
692
|
+
if (typeof i != "object" || i.autoUnfold === void 0 || i.autoUnfold === !1 || i.autoUnfold.enable === !1 || !i.autoUnfold.strategy)
|
|
672
693
|
return;
|
|
673
|
-
if (
|
|
694
|
+
if (i.autoUnfold.strategy === "ScreenPostion") {
|
|
674
695
|
const o = this.computeTagProject();
|
|
675
|
-
if (o &&
|
|
696
|
+
if (o && M(o.x, i.autoUnfold.autoUnfoldProjectX) === !1)
|
|
676
697
|
return !1;
|
|
677
698
|
}
|
|
678
|
-
if (
|
|
679
|
-
const
|
|
699
|
+
if (i.autoUnfold.strategy === "MinimumDistance") {
|
|
700
|
+
const l = this.plugin.filterPointTag.filter((n) => n.currentVisible).filter((n) => {
|
|
680
701
|
const f = this.computeTagProject();
|
|
681
702
|
if (!f)
|
|
682
703
|
return !1;
|
|
683
|
-
const { x:
|
|
684
|
-
return !(Math.abs(
|
|
704
|
+
const { x: p, y: h, z: d } = f;
|
|
705
|
+
return !(Math.abs(d) > 1 || Math.abs(p) > 1 || Math.abs(h) > 1);
|
|
685
706
|
}).map((n) => ({ tag: n, id: n.id, tagConfig: n.getConfig().unfoldedConfig })).filter(({ tagConfig: n }) => {
|
|
686
|
-
var f,
|
|
687
|
-
return !(typeof n == "function" || n.keep || n.autoUnfold === !1 || ((f = n.autoUnfold) == null ? void 0 : f.enable) === !1 || ((
|
|
688
|
-
}).map((n) =>
|
|
689
|
-
const
|
|
690
|
-
return !(
|
|
707
|
+
var f, p;
|
|
708
|
+
return !(typeof n == "function" || n.keep || n.autoUnfold === !1 || ((f = n.autoUnfold) == null ? void 0 : f.enable) === !1 || ((p = n.autoUnfold) == null ? void 0 : p.strategy) !== "MinimumDistance");
|
|
709
|
+
}).map((n) => B(y({}, n), { distance: n.tag.getDistance() })).filter(({ distance: n, tagConfig: f }) => {
|
|
710
|
+
const p = f.autoUnfold.distance;
|
|
711
|
+
return !(p && M(n, p) === !1);
|
|
691
712
|
}).sort((n, f) => n.distance - f.distance).findIndex((n) => n.id === this.id);
|
|
692
|
-
if (
|
|
713
|
+
if (l === -1 || l <= ((e = i.autoUnfold.maxNumber) != null ? e : 1) - 1 === !1)
|
|
693
714
|
return !1;
|
|
694
715
|
}
|
|
695
|
-
if (
|
|
716
|
+
if (i.autoUnfold.strategy === "FoldWhenMove")
|
|
696
717
|
return !1;
|
|
697
|
-
if (
|
|
698
|
-
const o = this.plugin.filterPointTag, s = new
|
|
718
|
+
if (i.autoUnfold.strategy === "ScreenCenter") {
|
|
719
|
+
const o = this.plugin.filterPointTag, s = new P.Matrix4();
|
|
699
720
|
s.multiplyMatrices(this.five.camera.projectionMatrix, this.five.camera.matrixWorldInverse);
|
|
700
|
-
const
|
|
701
|
-
|
|
702
|
-
const
|
|
703
|
-
var
|
|
704
|
-
if (!
|
|
721
|
+
const l = new P.Frustum();
|
|
722
|
+
l.setFromProjectionMatrix(s);
|
|
723
|
+
const r = this.five.camera.getWorldDirection(new P.Vector3()), f = o.filter((h) => {
|
|
724
|
+
var v, b;
|
|
725
|
+
if (!h.currentVisible)
|
|
705
726
|
return !1;
|
|
706
|
-
const
|
|
707
|
-
if (
|
|
727
|
+
const d = h.getConfig().unfoldedConfig;
|
|
728
|
+
if (h.manuallyOperated || typeof d != "object" || (d == null ? void 0 : d.autoUnfold) === !1 || ((v = d == null ? void 0 : d.autoUnfold) == null ? void 0 : v.strategy) !== "ScreenCenter" || d.keep || ((b = d.autoUnfold) == null ? void 0 : b.enable) === !1 || !l.containsPoint(new P.Vector3().fromArray(h.position)))
|
|
708
729
|
return !1;
|
|
709
|
-
const
|
|
710
|
-
if (
|
|
711
|
-
const
|
|
712
|
-
if (
|
|
730
|
+
const u = d.autoUnfold.distance;
|
|
731
|
+
if (u) {
|
|
732
|
+
const g = h.getDistance();
|
|
733
|
+
if (M(g, u) === !1)
|
|
713
734
|
return !1;
|
|
714
735
|
}
|
|
715
736
|
return !0;
|
|
716
|
-
}).sort((
|
|
717
|
-
const
|
|
718
|
-
return
|
|
719
|
-
}).findIndex((
|
|
720
|
-
if (f === -1 || f <= ((t =
|
|
737
|
+
}).sort((h, d) => {
|
|
738
|
+
const c = new P.Vector3().fromArray(h.position), u = new P.Vector3().fromArray(d.position);
|
|
739
|
+
return r.angleTo(c.sub(this.five.camera.position)) - r.angleTo(u.sub(this.five.camera.position));
|
|
740
|
+
}).findIndex((h) => h.id === this.id);
|
|
741
|
+
if (f === -1 || f <= ((t = i.autoUnfold.maxNumber) != null ? t : 1) - 1 === !1)
|
|
721
742
|
return !1;
|
|
722
743
|
}
|
|
723
744
|
return !0;
|
|
724
745
|
}
|
|
725
746
|
}
|
|
726
747
|
computeTagProject() {
|
|
727
|
-
const
|
|
728
|
-
if (!
|
|
748
|
+
const i = this.centerPosition;
|
|
749
|
+
if (!i)
|
|
729
750
|
return;
|
|
730
|
-
const { x:
|
|
751
|
+
const { x: e, y: t, z: o } = i.project(this.five.camera);
|
|
731
752
|
if (!(o > 1))
|
|
732
|
-
return { x:
|
|
753
|
+
return { x: e, y: t, z: o };
|
|
733
754
|
}
|
|
734
|
-
addObjectClickHandler(
|
|
735
|
-
if (!
|
|
755
|
+
addObjectClickHandler(i, e, t) {
|
|
756
|
+
if (!e || !this.plugin.domEvents)
|
|
736
757
|
return () => {
|
|
737
758
|
};
|
|
738
|
-
const o = () => !(!
|
|
759
|
+
const o = () => !(!i.currentVisible || i.loading), s = (l) => {
|
|
739
760
|
if (!o())
|
|
740
761
|
return !1;
|
|
741
|
-
t(
|
|
762
|
+
t(l.origDomEvent);
|
|
742
763
|
};
|
|
743
|
-
return this.plugin.domEvents.addEventListener(
|
|
744
|
-
var
|
|
745
|
-
(
|
|
764
|
+
return this.plugin.domEvents.addEventListener(e, "click", s), () => {
|
|
765
|
+
var l;
|
|
766
|
+
(l = this.plugin.domEvents) == null || l.removeEventListener(e, "click", s);
|
|
746
767
|
};
|
|
747
768
|
}
|
|
748
769
|
whyHide() {
|
|
749
|
-
var
|
|
770
|
+
var e;
|
|
750
771
|
if (!this.plugin.state.enabled)
|
|
751
772
|
return { reason: `plugin.state.enabled is ${this.plugin.state.enabled}` };
|
|
752
773
|
if (!this.plugin.state.visible)
|
|
753
774
|
return { reason: `plugin.state.visible is ${this.plugin.state.visible}` };
|
|
754
775
|
if (!this.enabled)
|
|
755
776
|
return { reason: `tag ${this.id} enabled is: ${this.enabled}` };
|
|
756
|
-
const
|
|
777
|
+
const i = B(y({}, this.computeVisible()), {
|
|
757
778
|
tagInstance: this
|
|
758
779
|
});
|
|
759
|
-
return
|
|
780
|
+
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 };
|
|
760
781
|
}
|
|
761
782
|
/**
|
|
762
783
|
* @description 销毁并移除
|
|
763
784
|
*/
|
|
764
785
|
destroy() {
|
|
765
|
-
var
|
|
766
|
-
const
|
|
767
|
-
if (
|
|
786
|
+
var e, t, o, s;
|
|
787
|
+
const i = this.plugin.tags.findIndex((l) => l.id === this.id);
|
|
788
|
+
if (i === -1) {
|
|
768
789
|
console.warn(`Destroy failed: tag ${this.id} not found`);
|
|
769
790
|
return;
|
|
770
791
|
}
|
|
771
|
-
this._currentBlinkInstance && !this._currentBlinkInstance.completed && ((t = (
|
|
792
|
+
this._currentBlinkInstance && !this._currentBlinkInstance.completed && ((t = (e = this._currentBlinkInstance).preComplete) == null || t.call(e), this._currentBlinkInstance = void 0), this.disable(), (s = (o = this.tag3DContentSvelte) == null ? void 0 : o.dispose) == null || s.call(o), this.hooks.off(), this.cache.clear(), this.plugin.tags.splice(i, 1), this.plugin.tagsLengthWillUpdate = !0, this.plugin.hooks.emit("tagsLengthChange");
|
|
772
793
|
}
|
|
773
794
|
/**
|
|
774
795
|
* @description 判断 popover 是否在配置上启用(永久配置)
|
|
775
796
|
*/
|
|
776
797
|
isPopoverConfigEnabled() {
|
|
777
|
-
var
|
|
778
|
-
return ((
|
|
798
|
+
var i, e;
|
|
799
|
+
return ((e = (i = this.currentConfig) == null ? void 0 : i.popoverConfig) == null ? void 0 : e.enabled) === !0;
|
|
779
800
|
}
|
|
780
801
|
/**
|
|
781
802
|
* @description 判断当前标签是否允许临时 hover 弹出 popover(临时控制)
|
|
782
803
|
*/
|
|
783
804
|
isHoverEnabled() {
|
|
784
|
-
var
|
|
785
|
-
return !(((
|
|
805
|
+
var i;
|
|
806
|
+
return !(((i = this.plugin) == null ? void 0 : i.globalHoverEnabled) === !1 || this.hoverEnabled === !1);
|
|
786
807
|
}
|
|
787
808
|
}
|
|
788
809
|
export {
|