@realsee/dnalogel 3.72.4 → 3.72.5-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/PanoTagPlugin/controller/Tag/BaseTag.d.ts +8 -0
- package/dist/PanoTagPlugin/controller/Tag/PointTag.d.ts +13 -0
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +15 -0
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -0
- package/dist/index.cjs.js +71 -71
- package/dist/index.js +6211 -6086
- package/dist/index.umd.js +64 -64
- package/libs/ItemLabelPlugin/ItemLabelItem.js +85 -85
- package/libs/PanoMeasurePlugin/Components/Tip.js +51 -51
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +316 -316
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +8 -0
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +351 -331
- package/libs/PanoTagPlugin/controller/Tag/PointTag.d.ts +13 -0
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +143 -42
- 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/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +2 -2
- 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.getCoordsFromClient.html +0 -1
- package/docs/functions/Util.getCoordsFromElement.html +0 -1
- package/docs/functions/Util.getFrameTime.html +0 -3
- 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.tag.html +0 -1
- 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/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 -86
- package/docs/modules/Util.sculpt.html +0 -25
- package/docs/modules.html +0 -279
- 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/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,76 +1,76 @@
|
|
|
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 w = Object.getOwnPropertySymbols;
|
|
4
|
+
var E = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var T = Math.pow, V = (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) && V(m, e, i[e]);
|
|
8
|
+
if (w)
|
|
9
|
+
for (var e of w(i))
|
|
10
|
+
O.call(i, e) && V(m, e, i[e]);
|
|
11
|
+
return m;
|
|
12
|
+
}, S = (m, i) => Y(m, ee(i));
|
|
13
|
+
var R = (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 && w)
|
|
18
|
+
for (var t of w(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) => (V(m, typeof i != "symbol" ? i + "" : i, e), e);
|
|
23
|
+
var B = (m, i, e) => new Promise((t, o) => {
|
|
24
24
|
var s = (n) => {
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
l(e.next(n));
|
|
27
27
|
} catch (f) {
|
|
28
28
|
o(f);
|
|
29
29
|
}
|
|
30
30
|
}, r = (n) => {
|
|
31
31
|
try {
|
|
32
|
-
|
|
32
|
+
l(e.throw(n));
|
|
33
33
|
} catch (f) {
|
|
34
34
|
o(f);
|
|
35
35
|
}
|
|
36
|
-
},
|
|
37
|
-
|
|
36
|
+
}, l = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, r);
|
|
37
|
+
l((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 F } 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 A, isModelLike as U } 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 $, notNil as N } 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
|
-
import { vectorToCoordinates as
|
|
60
|
-
import { transformPosition as
|
|
59
|
+
import { vectorToCoordinates as le } from "../../../shared-utils/vectorToCoordinate.js";
|
|
60
|
+
import { transformPosition as z } from "../../../shared-utils/five/transformPosition.js";
|
|
61
61
|
import { lookPoint as ae } from "../../../shared-utils/five/lookPoint.js";
|
|
62
|
-
import { uuid as
|
|
62
|
+
import { uuid as fe } from "../../../shared-utils/uuid.js";
|
|
63
63
|
import "../../../shared-utils/five/FivePuppet.js";
|
|
64
|
-
import { objectAssignDeepExports as
|
|
65
|
-
import { getTagPosition as
|
|
66
|
-
import { checkRange as
|
|
67
|
-
import { isMediaPlaneTag as
|
|
68
|
-
import { getUrlExt as
|
|
69
|
-
import { getFloorIndex as
|
|
70
|
-
import { safeObj as
|
|
71
|
-
import { Cache as
|
|
72
|
-
import { _raycaster as
|
|
73
|
-
import { withResolvers as
|
|
64
|
+
import { objectAssignDeepExports as x } from "../../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
65
|
+
import { getTagPosition as W, getTagCenterPosition as J } from "../../utils/tagPosition.js";
|
|
66
|
+
import { checkRange as M } from "../../utils/checkRange.js";
|
|
67
|
+
import { isMediaPlaneTag as H, isMediaModelTag as D } from "../../utils/tag/tagCheck.js";
|
|
68
|
+
import { getUrlExt as q } from "../../../shared-utils/url/getUrl.js";
|
|
69
|
+
import { getFloorIndex as ce } from "../../../shared-utils/five/getFloorIndex.js";
|
|
70
|
+
import { safeObj as X } from "../../../shared-utils/safeObj.js";
|
|
71
|
+
import { Cache as de } from "../../utils/Cache.js";
|
|
72
|
+
import { _raycaster as j } from "../../../shared-utils/three/temp.js";
|
|
73
|
+
import { withResolvers as ue } from "../../../shared-utils/promise/withResolvers.js";
|
|
74
74
|
import "../../../shared-utils/typescript/entries.js";
|
|
75
75
|
import "../../utils/tag/adaptConfig.js";
|
|
76
76
|
import "../../typings/tag/TagConfig.js";
|
|
@@ -122,89 +122,96 @@ import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
|
122
122
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
123
123
|
import "../../../shared-utils/formatRad.js";
|
|
124
124
|
class Wi {
|
|
125
|
-
constructor(
|
|
126
|
-
|
|
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
|
-
|
|
125
|
+
constructor(i, e) {
|
|
126
|
+
a(this, "plugin");
|
|
127
|
+
a(this, "id");
|
|
128
|
+
a(this, "contentType");
|
|
129
|
+
a(this, "stickType");
|
|
130
|
+
a(this, "enabled");
|
|
131
|
+
a(this, "config");
|
|
132
|
+
a(this, "data");
|
|
133
|
+
a(this, "state");
|
|
134
|
+
a(this, "temporaryState", { visible: !0 });
|
|
135
|
+
a(this, "originPosition");
|
|
136
|
+
a(this, "position");
|
|
137
|
+
a(this, "fiveState");
|
|
138
|
+
a(this, "model");
|
|
139
|
+
a(this, "matrix");
|
|
140
|
+
a(this, "screenPosition");
|
|
141
|
+
a(this, "normal");
|
|
142
|
+
a(this, "mediaPlane");
|
|
143
|
+
a(this, "tagNormalLine");
|
|
144
|
+
a(this, "hooks");
|
|
145
|
+
a(this, "zIndex");
|
|
146
|
+
a(this, "manuallyOperated", !1);
|
|
147
|
+
a(this, "normalLineLength");
|
|
148
|
+
a(this, "play");
|
|
149
|
+
a(this, "pause");
|
|
150
|
+
a(this, "tag3DContentSvelte");
|
|
151
|
+
a(this, "rectanglePlane");
|
|
152
|
+
a(this, "dom");
|
|
153
|
+
a(this, "contentDom");
|
|
154
|
+
a(this, "initialConfig");
|
|
155
|
+
a(this, "computedConfig");
|
|
154
156
|
/**
|
|
155
157
|
* 存储当前的闪烁动画实例
|
|
156
158
|
* @private
|
|
157
159
|
*/
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
160
|
+
a(this, "_currentBlinkInstance");
|
|
161
|
+
a(this, "cache");
|
|
162
|
+
a(this, "entryFromModel");
|
|
163
|
+
a(this, "_updating", !1);
|
|
162
164
|
/**
|
|
163
165
|
* 是否启用 hover 行为,默认 为config.popoverConfig.enabled
|
|
164
166
|
*/
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
const { promise:
|
|
167
|
+
a(this, "hoverEnabled");
|
|
168
|
+
a(this, "ready", () => {
|
|
169
|
+
const { promise: i, resolve: e } = ue();
|
|
168
170
|
if (!this._updating)
|
|
169
|
-
|
|
171
|
+
e();
|
|
170
172
|
else {
|
|
171
173
|
const t = setInterval(() => {
|
|
172
|
-
this._updating || (clearInterval(t),
|
|
174
|
+
this._updating || (clearInterval(t), e());
|
|
173
175
|
}, 17);
|
|
174
176
|
setTimeout(() => {
|
|
175
|
-
clearInterval(t),
|
|
177
|
+
clearInterval(t), e();
|
|
176
178
|
}, 300);
|
|
177
179
|
}
|
|
178
|
-
return
|
|
180
|
+
return i;
|
|
179
181
|
});
|
|
180
|
-
var f,
|
|
181
|
-
this.plugin =
|
|
182
|
-
const t =
|
|
183
|
-
|
|
184
|
-
const o = JSON.parse(JSON.stringify(
|
|
185
|
-
|
|
186
|
-
const r =
|
|
187
|
-
|
|
182
|
+
var f, p, h, c, d, u, v, b;
|
|
183
|
+
this.plugin = i;
|
|
184
|
+
const t = te(e);
|
|
185
|
+
e.stickType = t;
|
|
186
|
+
const o = JSON.parse(JSON.stringify(e.data)), s = (f = e.initialConfig) != null ? f : e.config ? JSON.parse(JSON.stringify(e.config)) : {};
|
|
187
|
+
e.initialConfig = s;
|
|
188
|
+
const r = F(e, i.config), l = this.getConfig(e);
|
|
189
|
+
e.config = l, this.id = (p = e.id) != null ? p : fe(), this.enabled = (h = e.enabled) != null ? h : !0, this.contentType = e.contentType, this.hoverEnabled = (d = (c = l.popoverConfig) == null ? void 0 : c.enabled) != null ? d : !0, this.data = (u = l.initialData) != null && u.important ? x(e.data, o, l.initialData) : x(e.data, l.initialData, o);
|
|
188
190
|
let n;
|
|
189
|
-
typeof
|
|
191
|
+
typeof l.unfoldedConfig == "object" ? l.unfoldedConfig.keep === "unfolded" ? n = !0 : l.unfoldedConfig.keep === "folded" ? n = !1 : n = !this.can("fold") : n = !this.can("fold"), this.state = y({
|
|
190
192
|
visible: void 0,
|
|
191
193
|
unfolded: n
|
|
192
|
-
},
|
|
193
|
-
const
|
|
194
|
-
if (!
|
|
194
|
+
}, l.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 = (() => {
|
|
195
|
+
const g = e.originPosition;
|
|
196
|
+
if (!g)
|
|
195
197
|
return;
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
198
|
+
const k = i.workUtil.transform;
|
|
199
|
+
let C = g;
|
|
200
|
+
if (Array.isArray(g) && g.length === 4 ? C = g.map(_).map((I) => z(I, k).toArray()) : C = z(_(g), k).toArray(), (e.stickType === "2DPoint" || e.stickType === "3DPoint") && e.normal && this.normalLineLength) {
|
|
201
|
+
const I = new P.Vector3().fromArray(e.normal);
|
|
202
|
+
C = new P.Vector3().fromArray(C).clone().add(I.clone().setLength(this.normalLineLength)).toArray();
|
|
203
|
+
}
|
|
204
|
+
return C;
|
|
205
|
+
})(), this.matrix = e.matrix ? (() => {
|
|
206
|
+
const g = new P.Matrix4().fromArray(e.matrix);
|
|
207
|
+
return g.premultiply(i.workUtil.transform), g.elements;
|
|
208
|
+
})() : e.matrix, this.initialConfig = s, this.computedConfig = r, this.stickType = t, this.config = e.config, this.fiveState = e.fiveState, this.normal = e.normal, this.cache = new de(), this.hooks = new ie(), Object.keys(e).forEach((g) => {
|
|
209
|
+
this[g] === void 0 && e[g] !== void 0 && (this[g] = e[g]);
|
|
203
210
|
});
|
|
204
211
|
}
|
|
205
212
|
get visible() {
|
|
206
|
-
var
|
|
207
|
-
return ((
|
|
213
|
+
var i;
|
|
214
|
+
return ((i = this.temporaryState) == null ? void 0 : i.visible) !== !1 && this.state.visible !== !1 && this.enabled !== !1;
|
|
208
215
|
}
|
|
209
216
|
get five() {
|
|
210
217
|
return this.plugin.five;
|
|
@@ -216,13 +223,13 @@ class Wi {
|
|
|
216
223
|
return this.plugin.workUtil;
|
|
217
224
|
}
|
|
218
225
|
get centerPosition() {
|
|
219
|
-
const
|
|
220
|
-
return
|
|
226
|
+
const i = W(this);
|
|
227
|
+
return ne(...Array.isArray(i) ? i : [i]);
|
|
221
228
|
}
|
|
222
229
|
get currentConfig() {
|
|
223
230
|
var o, s;
|
|
224
|
-
const
|
|
225
|
-
return (s = t != null ? t :
|
|
231
|
+
const i = F(this, this.plugin.config, { useCache: !0 }), e = this.five.getCurrentState().mode, t = (o = i.configWithFiveMode) == null ? void 0 : o[e];
|
|
232
|
+
return (s = t != null ? t : i) != null ? s : {};
|
|
226
233
|
}
|
|
227
234
|
get currentVisible() {
|
|
228
235
|
return !(!this.plugin.state.enabled || !this.plugin.state.visible || !this.enabled || !this.state.visible);
|
|
@@ -239,79 +246,92 @@ class Wi {
|
|
|
239
246
|
/**
|
|
240
247
|
* @description 找到标签
|
|
241
248
|
*/
|
|
242
|
-
find(
|
|
243
|
-
return
|
|
249
|
+
find(i) {
|
|
250
|
+
return B(this, null, function* () {
|
|
244
251
|
var o;
|
|
245
|
-
const
|
|
252
|
+
const e = this.fiveState;
|
|
246
253
|
if (!this.fiveState)
|
|
247
254
|
return this;
|
|
248
|
-
const t = (o =
|
|
255
|
+
const t = (o = i == null ? void 0 : i.targetMode) != null ? o : this.five.state.mode;
|
|
249
256
|
if (t === "Panorama") {
|
|
250
|
-
const s =
|
|
251
|
-
if (
|
|
257
|
+
const s = e == null ? void 0 : e.panoIndex;
|
|
258
|
+
if ($(s))
|
|
252
259
|
return this;
|
|
253
|
-
const r = this.workUtil.getObserverPosition(s),
|
|
254
|
-
this.five.setState(
|
|
260
|
+
const r = this.workUtil.getObserverPosition(s), l = this.centerPosition.clone().sub(r).normalize();
|
|
261
|
+
this.five.setState(y({
|
|
255
262
|
mode: "Panorama",
|
|
256
263
|
workCode: this.workUtil.workCode,
|
|
257
264
|
panoIndex: s
|
|
258
|
-
},
|
|
265
|
+
}, le(l))), yield this.five.ready();
|
|
259
266
|
} else
|
|
260
|
-
t === "Mapview" && (yield ae(this.five, this.centerPosition,
|
|
267
|
+
t === "Mapview" && (yield ae(this.five, this.centerPosition, i == null ? void 0 : i.pointConfig));
|
|
261
268
|
return this;
|
|
262
269
|
});
|
|
263
270
|
}
|
|
271
|
+
/**
|
|
272
|
+
* @description 获取额外的闪烁目标(子类可以重写此方法添加额外的闪烁目标,如法线等)
|
|
273
|
+
* @returns 额外的闪烁目标或目标数组,返回 null/undefined 表示没有额外目标
|
|
274
|
+
*/
|
|
275
|
+
getAdditionalBlinkTargets() {
|
|
276
|
+
return null;
|
|
277
|
+
}
|
|
264
278
|
/**
|
|
265
279
|
* @description 闪烁
|
|
266
280
|
*/
|
|
267
|
-
blink(
|
|
268
|
-
return
|
|
269
|
-
var
|
|
270
|
-
yield this.ready(), this._currentBlinkInstance && !this._currentBlinkInstance.completed && ((n = (
|
|
271
|
-
const
|
|
272
|
-
o === !1 && (this.state.visible = !0, this.enabled = !0, this.applyVisible(), this.plugin.render(), this.computeRenderType() !== "Mesh" ? yield new Promise((
|
|
281
|
+
blink(i) {
|
|
282
|
+
return B(this, null, function* () {
|
|
283
|
+
var l, n, f, p, h, c;
|
|
284
|
+
yield this.ready(), this._currentBlinkInstance && !this._currentBlinkInstance.completed && ((n = (l = this._currentBlinkInstance).preComplete) == null || n.call(l), this._currentBlinkInstance = void 0);
|
|
285
|
+
const e = (f = this.enabled) != null ? f : !0, t = (p = this.state) == null ? void 0 : p.visible, o = e && t;
|
|
286
|
+
o === !1 && (this.state.visible = !0, this.enabled = !0, this.applyVisible(), this.plugin.render(), this.computeRenderType() !== "Mesh" ? yield new Promise((d) => {
|
|
273
287
|
if (this.dom || this.contentDom) {
|
|
274
|
-
|
|
288
|
+
d();
|
|
275
289
|
return;
|
|
276
290
|
}
|
|
277
|
-
const
|
|
278
|
-
(this.dom || this.contentDom) && (
|
|
291
|
+
const u = setInterval(() => {
|
|
292
|
+
(this.dom || this.contentDom) && (d(), clearInterval(u));
|
|
279
293
|
}, 16.7);
|
|
280
|
-
}) : this.stickType === "Model" && !((
|
|
294
|
+
}) : this.stickType === "Model" && !((h = this.model) != null && h.object) ? yield (c = this.model) == null ? void 0 : c.promise : this.stickType === "Plane" && (yield new Promise((d) => {
|
|
281
295
|
if (this.mediaPlane) {
|
|
282
|
-
|
|
296
|
+
d();
|
|
283
297
|
return;
|
|
284
298
|
}
|
|
285
|
-
const
|
|
286
|
-
this.mediaPlane && (
|
|
299
|
+
const u = setInterval(() => {
|
|
300
|
+
this.mediaPlane && (d(), clearInterval(u));
|
|
287
301
|
}, 16.7);
|
|
288
302
|
})), this.dom && (this.dom.style.visibility = "hidden"), this.contentDom && (this.contentDom.style.visibility = "hidden"));
|
|
289
303
|
const s = (() => {
|
|
290
|
-
var
|
|
291
|
-
const
|
|
292
|
-
|
|
304
|
+
var v, b, g;
|
|
305
|
+
const d = [];
|
|
306
|
+
d.push(this.dom), d.push((b = (v = this.tag3DContentSvelte) == null ? void 0 : v.css3DInstance) == null ? void 0 : b.container), d.push((g = this.model) == null ? void 0 : g.object), d.push(this.mediaPlane);
|
|
307
|
+
const u = this.getAdditionalBlinkTargets();
|
|
308
|
+
if (u) {
|
|
309
|
+
const k = Array.isArray(u) ? u : [u];
|
|
310
|
+
d.push(...k);
|
|
311
|
+
}
|
|
312
|
+
return d.filter(Boolean);
|
|
293
313
|
})();
|
|
294
314
|
if (!s.length) {
|
|
295
315
|
console.warn("tagDom is empty");
|
|
296
316
|
return;
|
|
297
317
|
}
|
|
298
|
-
const r = o ?
|
|
299
|
-
this._currentBlinkInstance = r(s,
|
|
318
|
+
const r = o ? oe : re;
|
|
319
|
+
this._currentBlinkInstance = r(s, y({
|
|
300
320
|
begin: () => {
|
|
301
321
|
o === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
|
|
302
322
|
},
|
|
303
323
|
updateRender: () => {
|
|
304
324
|
this.five.needsRender = !0;
|
|
305
325
|
}
|
|
306
|
-
},
|
|
326
|
+
}, i));
|
|
307
327
|
try {
|
|
308
328
|
yield this._currentBlinkInstance.finished;
|
|
309
|
-
} catch (
|
|
310
|
-
console.debug("Blink animation interrupted:",
|
|
329
|
+
} catch (d) {
|
|
330
|
+
console.debug("Blink animation interrupted:", d);
|
|
311
331
|
} finally {
|
|
312
332
|
this._currentBlinkInstance = void 0;
|
|
313
333
|
}
|
|
314
|
-
|
|
334
|
+
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 = ""));
|
|
315
335
|
});
|
|
316
336
|
}
|
|
317
337
|
/**
|
|
@@ -339,49 +359,49 @@ class Wi {
|
|
|
339
359
|
* @description 禁用
|
|
340
360
|
*/
|
|
341
361
|
disable() {
|
|
342
|
-
var
|
|
343
|
-
this.enabled = !1, this.hooks.emit("disable"), (
|
|
362
|
+
var i;
|
|
363
|
+
this.enabled = !1, this.hooks.emit("disable"), (i = this.rectanglePlane) == null || i.delete(), this.applyVisible();
|
|
344
364
|
}
|
|
345
365
|
/**
|
|
346
366
|
* @deprecated use `setData` instead
|
|
347
367
|
*/
|
|
348
|
-
changeData(
|
|
349
|
-
return this.setData(
|
|
368
|
+
changeData(i, e = !0) {
|
|
369
|
+
return this.setData(i, e);
|
|
350
370
|
}
|
|
351
371
|
/**
|
|
352
372
|
* @deprecated use `setPosition` instead
|
|
353
373
|
*/
|
|
354
|
-
changePosition(
|
|
355
|
-
return this.setPosition(
|
|
374
|
+
changePosition(i) {
|
|
375
|
+
return this.setPosition(i);
|
|
356
376
|
}
|
|
357
377
|
/**
|
|
358
378
|
* @description 修改标签数据
|
|
359
379
|
* @param deepMerge 是否深度合并 data,默认为 true
|
|
360
380
|
*/
|
|
361
|
-
setData(
|
|
362
|
-
|
|
381
|
+
setData(i, e = !0) {
|
|
382
|
+
e ? this.data = x(this.data, i) : this.data = y(y({}, this.data), i), this.hooks.emit("dataChanged", this.data);
|
|
363
383
|
}
|
|
364
384
|
/**
|
|
365
385
|
* @description 修改标签位置
|
|
366
386
|
*/
|
|
367
|
-
setPosition(
|
|
387
|
+
setPosition(i) {
|
|
368
388
|
throw new Error("Method not implemented.");
|
|
369
389
|
}
|
|
370
390
|
/**
|
|
371
391
|
* @description 设置标签实例的属性
|
|
372
392
|
* @param deepMerge 是否深度合并 data,默认为 true
|
|
373
393
|
*/
|
|
374
|
-
set(
|
|
375
|
-
this.plugin.tagsLengthWillUpdate = !0,
|
|
394
|
+
set(i, e = !0) {
|
|
395
|
+
this.plugin.tagsLengthWillUpdate = !0, e ? x(this, i) : Object.assign(this, i), this.cache.clear();
|
|
376
396
|
}
|
|
377
397
|
updateConfig() {
|
|
378
398
|
var t;
|
|
379
|
-
const
|
|
380
|
-
this.computedConfig =
|
|
381
|
-
const
|
|
382
|
-
if (this.config =
|
|
399
|
+
const i = this.getConfig(void 0, { useCache: !1 });
|
|
400
|
+
this.computedConfig = i;
|
|
401
|
+
const e = this.getConfig();
|
|
402
|
+
if (this.config = e, this.config.initialData) {
|
|
383
403
|
const o = JSON.parse(JSON.stringify(this.data));
|
|
384
|
-
this.data = (t =
|
|
404
|
+
this.data = (t = e.initialData) != null && t.important ? x(this.data, o, e.initialData) : x(this.data, e.initialData, o);
|
|
385
405
|
}
|
|
386
406
|
this.cache.clear();
|
|
387
407
|
}
|
|
@@ -389,97 +409,97 @@ class Wi {
|
|
|
389
409
|
this.enabled ? (this.state.visible = this.getVisible(), this.applyVisible()) : this.applyVisible(), this._updating = !1;
|
|
390
410
|
}
|
|
391
411
|
updateZIndex() {
|
|
392
|
-
const
|
|
393
|
-
this.zIndex = Math.round((1e4 - (
|
|
412
|
+
const i = this.getSquaredDistance();
|
|
413
|
+
this.zIndex = Math.round((1e4 - (i != null ? i : 0)) * 100);
|
|
394
414
|
}
|
|
395
|
-
getConfig(
|
|
396
|
-
var r,
|
|
397
|
-
const t =
|
|
415
|
+
getConfig(i, e) {
|
|
416
|
+
var r, l, n;
|
|
417
|
+
const t = F(i != null ? i : this, this.plugin.config, { useCache: e == null ? void 0 : e.useCache }), o = (r = e == null ? void 0 : e.fiveMode) != null ? r : this.five.getCurrentState().mode, s = (l = t.configWithFiveMode) == null ? void 0 : l[o];
|
|
398
418
|
return (n = s != null ? s : t) != null ? n : {};
|
|
399
419
|
}
|
|
400
|
-
getDistance(
|
|
401
|
-
const t =
|
|
402
|
-
return !r || !
|
|
420
|
+
getDistance(i, e = 3) {
|
|
421
|
+
const t = y(y({}, this.five.getCurrentState()), i), { panoIndex: o, mode: s } = t, r = s === "Panorama" ? this.workUtil.getObserverPosition(o) : this.five.camera.position, l = this.centerPosition;
|
|
422
|
+
return !r || !l ? -1 : r.distanceTo(l);
|
|
403
423
|
}
|
|
404
424
|
/**
|
|
405
425
|
* @description 用于排序的距离,性能更好
|
|
406
426
|
*/
|
|
407
427
|
getSquaredDistance() {
|
|
408
|
-
const
|
|
409
|
-
let
|
|
410
|
-
return Array.isArray(this.position[0]) ?
|
|
428
|
+
const i = this.five.camera.position;
|
|
429
|
+
let e;
|
|
430
|
+
return Array.isArray(this.position[0]) ? e = this.position[0] : e = this.position, T(e[0] - i.x, 2) + T(e[1] - i.y, 2) + T(e[2] - i.z, 2);
|
|
411
431
|
}
|
|
412
|
-
getVisible(
|
|
432
|
+
getVisible(i) {
|
|
413
433
|
if (!this.enabled || !this.plugin.state.enabled || !this.fiveUtil.model)
|
|
414
434
|
return !1;
|
|
415
|
-
const
|
|
416
|
-
let t = this.cache.getVisible(this,
|
|
417
|
-
return
|
|
435
|
+
const e = y(y({}, this.five.getCurrentState()), i);
|
|
436
|
+
let t = this.cache.getVisible(this, e);
|
|
437
|
+
return $(t) && (t = this.computeVisible(e).value, this.cache.setVisible(this, e, t)), t;
|
|
418
438
|
}
|
|
419
|
-
getUnfoldedByPanoIndex(
|
|
439
|
+
getUnfoldedByPanoIndex(i) {
|
|
420
440
|
if (!this.currentVisible)
|
|
421
441
|
return;
|
|
422
|
-
const t = this.computeUnfoldedByPanoIndex(
|
|
442
|
+
const t = this.computeUnfoldedByPanoIndex(i);
|
|
423
443
|
return t && this.getUnfoldedByCamera();
|
|
424
444
|
}
|
|
425
445
|
getUnfoldedByCamera() {
|
|
426
446
|
return this.currentVisible ? this.computeUnfoldedByCamera() : void 0;
|
|
427
447
|
}
|
|
428
|
-
can(
|
|
448
|
+
can(i) {
|
|
429
449
|
var t, o;
|
|
430
|
-
if ((
|
|
450
|
+
if ((i === "fold" || i === "unfold") && ((o = (t = this.currentConfig) == null ? void 0 : t.popoverConfig) == null ? void 0 : o.enabled) === !0)
|
|
431
451
|
return !1;
|
|
432
|
-
const
|
|
433
|
-
if (!
|
|
452
|
+
const e = this.currentConfig;
|
|
453
|
+
if (!e || typeof e != "object")
|
|
434
454
|
return !0;
|
|
435
|
-
if (
|
|
436
|
-
if (!
|
|
455
|
+
if (i === "show" || i === "hide") {
|
|
456
|
+
if (!e.visibleConfig || typeof e.visibleConfig != "object")
|
|
437
457
|
return !0;
|
|
438
|
-
if (
|
|
458
|
+
if (i === "show" && e.visibleConfig.keep === "hidden" || i === "hide" && e.visibleConfig.keep === "visible")
|
|
439
459
|
return !1;
|
|
440
460
|
}
|
|
441
|
-
if (
|
|
442
|
-
if (!
|
|
461
|
+
if (i === "fold" || i === "unfold") {
|
|
462
|
+
if (!e.unfoldedConfig || typeof e.unfoldedConfig != "object")
|
|
443
463
|
return !0;
|
|
444
|
-
if (
|
|
464
|
+
if (i === "fold" && e.unfoldedConfig.keep === "unfolded" || i === "unfold" && e.unfoldedConfig.keep === "folded")
|
|
445
465
|
return !1;
|
|
446
466
|
}
|
|
447
467
|
return !0;
|
|
448
468
|
}
|
|
449
|
-
onClick(
|
|
469
|
+
onClick(i) {
|
|
450
470
|
}
|
|
451
471
|
computeRenderType() {
|
|
452
|
-
const
|
|
472
|
+
const i = (() => {
|
|
453
473
|
if (this.stickType === "3DPoint")
|
|
454
474
|
return "Dom";
|
|
455
|
-
const
|
|
456
|
-
if (!
|
|
475
|
+
const e = this.getConfig();
|
|
476
|
+
if (!e || typeof e != "object" || !e.renderType)
|
|
457
477
|
return;
|
|
458
478
|
const t = this.data.mediaData;
|
|
459
|
-
if ((!t || t.length === 0) &&
|
|
460
|
-
return
|
|
461
|
-
if (
|
|
462
|
-
if (
|
|
479
|
+
if ((!t || t.length === 0) && H(this))
|
|
480
|
+
return e.renderType;
|
|
481
|
+
if (e.renderType === "Mesh") {
|
|
482
|
+
if (H(this)) {
|
|
463
483
|
if (t.length === 1) {
|
|
464
484
|
if (t[0].type === "Video")
|
|
465
485
|
return navigator.userAgent.toLowerCase().indexOf("firefox") > -1 && navigator.userAgent.toLowerCase().indexOf("mobile") > -1 ? "Dom" : "Mesh";
|
|
466
486
|
if (t[0].type === "Image")
|
|
467
|
-
return
|
|
487
|
+
return q(t[0].url) === "gif" ? "Dom" : "Mesh";
|
|
468
488
|
}
|
|
469
|
-
} else if (
|
|
470
|
-
return t.length === 1 && t[0].type === "Image" ?
|
|
489
|
+
} else if (D(this))
|
|
490
|
+
return t.length === 1 && t[0].type === "Image" ? q(t[0].url) === "gif" ? "Dom" : "Mesh" : "BehindDom";
|
|
471
491
|
}
|
|
472
492
|
})();
|
|
473
|
-
return
|
|
493
|
+
return i != null ? i : "Dom";
|
|
474
494
|
}
|
|
475
|
-
computeVisible(
|
|
476
|
-
const
|
|
495
|
+
computeVisible(i) {
|
|
496
|
+
const e = y(y({}, this.five.getCurrentState()), i), { panoIndex: t, mode: o } = e, s = [];
|
|
477
497
|
return (() => {
|
|
478
|
-
var f,
|
|
498
|
+
var f, h, c, d;
|
|
479
499
|
const n = (f = this.getConfig().visibleConfig) != null ? f : {};
|
|
480
500
|
if (typeof n == "function")
|
|
481
501
|
return {
|
|
482
|
-
value: n(this.five, { tag: this, distance: this.getDistance(
|
|
502
|
+
value: n(this.five, { tag: this, distance: this.getDistance(e, void 0) }),
|
|
483
503
|
checkedList: s,
|
|
484
504
|
reason: "config function result"
|
|
485
505
|
};
|
|
@@ -488,22 +508,22 @@ class Wi {
|
|
|
488
508
|
return { value: !1, checkedList: s, reason: "config.keep is hidden" };
|
|
489
509
|
if (n.keep === "visible")
|
|
490
510
|
return { value: !0, checkedList: s, reason: "config.keep is visible" };
|
|
491
|
-
const
|
|
492
|
-
if ((
|
|
493
|
-
return
|
|
511
|
+
const u = this.computeVisibleByFiveMode(n, o);
|
|
512
|
+
if ((u == null ? void 0 : u.value) === !1)
|
|
513
|
+
return u;
|
|
494
514
|
if (n.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (o === "Floorplan" || o === "Mapview")) {
|
|
495
|
-
const
|
|
496
|
-
if (
|
|
497
|
-
return
|
|
515
|
+
const p = this.computeVisibleByFloorIndex(), { value: v } = p, b = R(p, ["value"]);
|
|
516
|
+
if (v === !1)
|
|
517
|
+
return y({ value: !1, checkedList: s, reason: "followModelVisibility check failed" }, b);
|
|
498
518
|
}
|
|
499
|
-
if (
|
|
519
|
+
if (A(o) && n.visiblePanoIndex !== void 0 && n.visiblePanoIndex !== "all" && t !== void 0) {
|
|
500
520
|
if (s.push("visiblePanoIndex"), Array.isArray(n.visiblePanoIndex) && !n.visiblePanoIndex.includes(t))
|
|
501
521
|
return {
|
|
502
522
|
value: !1,
|
|
503
523
|
checkedList: s,
|
|
504
524
|
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${n.visiblePanoIndex}`
|
|
505
525
|
};
|
|
506
|
-
if (n.visiblePanoIndex === "current" && t !== ((
|
|
526
|
+
if (n.visiblePanoIndex === "current" && t !== ((h = this.fiveState) == null ? void 0 : h.panoIndex))
|
|
507
527
|
return {
|
|
508
528
|
value: !1,
|
|
509
529
|
checkedList: s,
|
|
@@ -511,14 +531,14 @@ class Wi {
|
|
|
511
531
|
};
|
|
512
532
|
}
|
|
513
533
|
if (n.visibleDistance !== void 0 && (s.push("visibleDistance"), n.visibleDistance !== "unLimited")) {
|
|
514
|
-
const
|
|
515
|
-
if (
|
|
534
|
+
const v = this.getDistance(e, 1);
|
|
535
|
+
if (M(v, n.visibleDistance) === !1)
|
|
516
536
|
return {
|
|
517
537
|
value: !1,
|
|
518
538
|
checkedList: s,
|
|
519
539
|
panoIndex: t,
|
|
520
540
|
visibleDistance: n.visibleDistance,
|
|
521
|
-
reason: `distance is not in visibleDistance. distance: ${
|
|
541
|
+
reason: `distance is not in visibleDistance. distance: ${v}, visibleDistance: ${n.visibleDistance.min} - ${n.visibleDistance.max}`
|
|
522
542
|
};
|
|
523
543
|
}
|
|
524
544
|
if (n.intersectRaycaster !== !1 && (typeof n.intersectRaycaster != "object" || n.intersectRaycaster.enabled !== !1)) {
|
|
@@ -528,12 +548,12 @@ class Wi {
|
|
|
528
548
|
checkedList: s,
|
|
529
549
|
reason: `intersectRaycaster check failed: panoIndex is ${t}`
|
|
530
550
|
};
|
|
531
|
-
if (t === ((
|
|
551
|
+
if (t === ((d = this.fiveState) == null ? void 0 : d.panoIndex))
|
|
532
552
|
s.push("intersectCheckSkiped");
|
|
533
553
|
else {
|
|
534
|
-
const
|
|
535
|
-
if (
|
|
536
|
-
return Object.assign(
|
|
554
|
+
const v = this.computeVisibleByIntersect(t);
|
|
555
|
+
if (v.value === !1)
|
|
556
|
+
return Object.assign(v, { checkedList: s });
|
|
537
557
|
}
|
|
538
558
|
}
|
|
539
559
|
return {
|
|
@@ -547,26 +567,26 @@ class Wi {
|
|
|
547
567
|
/**
|
|
548
568
|
* @description 计算标签可见性
|
|
549
569
|
*/
|
|
550
|
-
computeVisibleByFiveMode(
|
|
570
|
+
computeVisibleByFiveMode(i, e) {
|
|
551
571
|
const t = () => {
|
|
552
|
-
var r,
|
|
553
|
-
let s = typeof
|
|
554
|
-
if (s || (s = (
|
|
555
|
-
return s.includes(
|
|
572
|
+
var r, l;
|
|
573
|
+
let s = typeof i.visibleFiveMode == "function" ? i.visibleFiveMode(this) : i.visibleFiveMode;
|
|
574
|
+
if (s || (s = (l = (r = this.fiveState) == null ? void 0 : r.mode) != null ? l : this.workUtil.observers.length ? "Panorama" : "ModelLike"), Array.isArray(s))
|
|
575
|
+
return s.includes(e);
|
|
556
576
|
if (s === "ModelLike")
|
|
557
|
-
return
|
|
577
|
+
return U(e);
|
|
558
578
|
if (s === "PanoramaLike")
|
|
559
|
-
return !
|
|
579
|
+
return !A(e);
|
|
560
580
|
if (s === "all")
|
|
561
581
|
return !0;
|
|
562
582
|
if (typeof s == "string")
|
|
563
|
-
return s ===
|
|
583
|
+
return s === e;
|
|
564
584
|
};
|
|
565
585
|
if ((() => {
|
|
566
586
|
var r;
|
|
567
587
|
const s = t();
|
|
568
|
-
if (
|
|
569
|
-
if (
|
|
588
|
+
if (N((r = this.fiveState) == null ? void 0 : r.panoIndex) && i.entryFromModel) {
|
|
589
|
+
if (U(e) && s ? this.entryFromModel = !1 : this.entryFromModel = !0, U(e))
|
|
570
590
|
return !0;
|
|
571
591
|
} else
|
|
572
592
|
this.entryFromModel = !1;
|
|
@@ -575,213 +595,213 @@ class Wi {
|
|
|
575
595
|
return {
|
|
576
596
|
value: !1,
|
|
577
597
|
reason: "current mode is not included in visibleFiveMode",
|
|
578
|
-
visibleFiveMode:
|
|
579
|
-
mode:
|
|
598
|
+
visibleFiveMode: i.visibleFiveMode,
|
|
599
|
+
mode: e
|
|
580
600
|
};
|
|
581
601
|
}
|
|
582
602
|
/** 通过射线检测标签可用性 */
|
|
583
|
-
computeVisibleByIntersect(
|
|
584
|
-
var n, f,
|
|
585
|
-
const
|
|
603
|
+
computeVisibleByIntersect(i) {
|
|
604
|
+
var n, f, p, h;
|
|
605
|
+
const e = X(X((n = this.getConfig().visibleConfig) != null ? n : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, o = A(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
|
|
586
606
|
if (o === void 0)
|
|
587
607
|
return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
|
|
588
|
-
const s =
|
|
608
|
+
const s = se(
|
|
589
609
|
(() => {
|
|
590
|
-
var
|
|
591
|
-
const c = (
|
|
592
|
-
return c === "center" ?
|
|
610
|
+
var d;
|
|
611
|
+
const c = (d = e.checkPoints) != null ? d : "center";
|
|
612
|
+
return c === "center" ? J(this) : c === "corner" ? W(this) : Array.isArray(c) ? c : [];
|
|
593
613
|
})()
|
|
594
614
|
);
|
|
595
|
-
let r = 0,
|
|
615
|
+
let r = 0, l = 0;
|
|
596
616
|
for (const c of s) {
|
|
597
|
-
const
|
|
598
|
-
let
|
|
599
|
-
|
|
600
|
-
const [
|
|
601
|
-
|
|
602
|
-
const
|
|
603
|
-
if (!
|
|
617
|
+
const d = new P.Vector3().subVectors(c, o).normalize();
|
|
618
|
+
let u;
|
|
619
|
+
j.set(o, d);
|
|
620
|
+
const [v] = this.fiveUtil.model.intersectRaycaster(j);
|
|
621
|
+
u = v == null ? void 0 : v.distance;
|
|
622
|
+
const b = (() => {
|
|
623
|
+
if (!D(this))
|
|
604
624
|
return;
|
|
605
|
-
const
|
|
606
|
-
var
|
|
607
|
-
return (
|
|
608
|
-
}).filter(
|
|
609
|
-
return
|
|
610
|
-
})(),
|
|
611
|
-
|
|
612
|
-
const
|
|
613
|
-
if (r >=
|
|
625
|
+
const Z = this.plugin.tags.filter(D).map((K) => {
|
|
626
|
+
var L;
|
|
627
|
+
return (L = K.model) == null ? void 0 : L.object;
|
|
628
|
+
}).filter(N), [G] = j.intersectObjects(Z, !0);
|
|
629
|
+
return G;
|
|
630
|
+
})(), g = o.distanceTo(c), k = (f = e.distanceAccuracy) != null ? f : 0.01;
|
|
631
|
+
u = Math.min(u != null ? u : 1 / 0, (p = b == null ? void 0 : b.distance) != null ? p : 1 / 0), u + k >= g ? r++ : l++;
|
|
632
|
+
const I = (h = e.needPassed) != null ? h : 1;
|
|
633
|
+
if (r >= I)
|
|
614
634
|
return { value: !0 };
|
|
615
635
|
}
|
|
616
|
-
return
|
|
636
|
+
return l === 0 ? { value: !0 } : {
|
|
617
637
|
value: !1,
|
|
618
638
|
reason: {
|
|
619
639
|
type: "intersectRaycaster check failed",
|
|
620
640
|
passedCount: r,
|
|
621
|
-
needPassed:
|
|
641
|
+
needPassed: e.needPassed,
|
|
622
642
|
model: this.fiveUtil.model.name
|
|
623
643
|
}
|
|
624
644
|
};
|
|
625
645
|
}
|
|
626
646
|
computeVisibleByFloorIndex() {
|
|
627
|
-
var o, s, r,
|
|
628
|
-
let
|
|
629
|
-
const
|
|
630
|
-
|
|
647
|
+
var o, s, r, l, n, f, p;
|
|
648
|
+
let i = 0;
|
|
649
|
+
const e = (o = this.fiveState) == null ? void 0 : o.panoIndex;
|
|
650
|
+
e !== void 0 ? i = (s = this.workUtil.getObserver(e)) == null ? void 0 : s.floorIndex : i = ce(
|
|
631
651
|
this.workUtil.work,
|
|
632
|
-
(
|
|
652
|
+
(p = (f = (l = (r = this.model) == null ? void 0 : r.object) == null ? void 0 : l.position) != null ? f : (n = this.mediaPlane) == null ? void 0 : n.position) != null ? p : J(this)
|
|
633
653
|
);
|
|
634
654
|
const t = this.fiveUtil.model.shownFloor;
|
|
635
655
|
return {
|
|
636
|
-
value: t === null || t ===
|
|
656
|
+
value: t === null || t === i,
|
|
637
657
|
currentFiveFloorIndex: t,
|
|
638
|
-
tagFloorIndex:
|
|
658
|
+
tagFloorIndex: i
|
|
639
659
|
};
|
|
640
660
|
}
|
|
641
661
|
/**
|
|
642
662
|
* @description 获取是否展开
|
|
643
663
|
*/
|
|
644
|
-
computeUnfoldedByPanoIndex(
|
|
645
|
-
const
|
|
646
|
-
if (
|
|
647
|
-
if (typeof
|
|
648
|
-
return
|
|
649
|
-
if (
|
|
664
|
+
computeUnfoldedByPanoIndex(i) {
|
|
665
|
+
const e = this.getConfig().unfoldedConfig;
|
|
666
|
+
if (e) {
|
|
667
|
+
if (typeof e == "function")
|
|
668
|
+
return e(this.five, { tag: this, distance: this.getDistance({ panoIndex: i }) });
|
|
669
|
+
if (e.keep === "folded")
|
|
650
670
|
return !1;
|
|
651
|
-
if (
|
|
671
|
+
if (e.keep === "unfolded")
|
|
652
672
|
return !0;
|
|
653
|
-
if (
|
|
673
|
+
if (e.unfoldDistance && M(this.getDistance({ panoIndex: i }), e.unfoldDistance) === !1)
|
|
654
674
|
return !1;
|
|
655
675
|
}
|
|
656
676
|
}
|
|
657
677
|
// 该方法有很大优化空间,这个检测显示方法不应该挂在tagBase下,做了多次不必要计算(MinimumDistance,ScreenCenter)。
|
|
658
678
|
computeUnfoldedByCamera() {
|
|
659
|
-
var
|
|
660
|
-
if (this.entryFromModel &&
|
|
679
|
+
var e, t;
|
|
680
|
+
if (this.entryFromModel && U(this.five.state.mode))
|
|
661
681
|
return !1;
|
|
662
|
-
const
|
|
663
|
-
if (
|
|
664
|
-
if (typeof
|
|
665
|
-
return
|
|
666
|
-
if (
|
|
682
|
+
const i = this.getConfig().unfoldedConfig;
|
|
683
|
+
if (i) {
|
|
684
|
+
if (typeof i == "function")
|
|
685
|
+
return i(this.five, { tag: this, distance: this.getDistance() });
|
|
686
|
+
if (i.keep === "folded")
|
|
667
687
|
return !1;
|
|
668
|
-
if (
|
|
688
|
+
if (i.keep === "unfolded")
|
|
669
689
|
return !0;
|
|
670
|
-
if (typeof
|
|
690
|
+
if (typeof i != "object" || i.autoUnfold === void 0 || i.autoUnfold === !1 || i.autoUnfold.enable === !1 || !i.autoUnfold.strategy)
|
|
671
691
|
return;
|
|
672
|
-
if (
|
|
692
|
+
if (i.autoUnfold.strategy === "ScreenPostion") {
|
|
673
693
|
const o = this.computeTagProject();
|
|
674
|
-
if (o &&
|
|
694
|
+
if (o && M(o.x, i.autoUnfold.autoUnfoldProjectX) === !1)
|
|
675
695
|
return !1;
|
|
676
696
|
}
|
|
677
|
-
if (
|
|
697
|
+
if (i.autoUnfold.strategy === "MinimumDistance") {
|
|
678
698
|
const r = this.plugin.filterPointTag.filter((n) => n.currentVisible).filter((n) => {
|
|
679
699
|
const f = this.computeTagProject();
|
|
680
700
|
if (!f)
|
|
681
701
|
return !1;
|
|
682
|
-
const { x:
|
|
683
|
-
return !(Math.abs(c) > 1 || Math.abs(
|
|
702
|
+
const { x: p, y: h, z: c } = f;
|
|
703
|
+
return !(Math.abs(c) > 1 || Math.abs(p) > 1 || Math.abs(h) > 1);
|
|
684
704
|
}).map((n) => ({ tag: n, id: n.id, tagConfig: n.getConfig().unfoldedConfig })).filter(({ tagConfig: n }) => {
|
|
685
|
-
var f,
|
|
686
|
-
return !(typeof n == "function" || n.keep || n.autoUnfold === !1 || ((f = n.autoUnfold) == null ? void 0 : f.enable) === !1 || ((
|
|
687
|
-
}).map((n) =>
|
|
688
|
-
const
|
|
689
|
-
return !(
|
|
705
|
+
var f, p;
|
|
706
|
+
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");
|
|
707
|
+
}).map((n) => S(y({}, n), { distance: n.tag.getDistance() })).filter(({ distance: n, tagConfig: f }) => {
|
|
708
|
+
const p = f.autoUnfold.distance;
|
|
709
|
+
return !(p && M(n, p) === !1);
|
|
690
710
|
}).sort((n, f) => n.distance - f.distance).findIndex((n) => n.id === this.id);
|
|
691
|
-
if (r === -1 || r <= ((
|
|
711
|
+
if (r === -1 || r <= ((e = i.autoUnfold.maxNumber) != null ? e : 1) - 1 === !1)
|
|
692
712
|
return !1;
|
|
693
713
|
}
|
|
694
|
-
if (
|
|
714
|
+
if (i.autoUnfold.strategy === "FoldWhenMove")
|
|
695
715
|
return !1;
|
|
696
|
-
if (
|
|
697
|
-
const o = this.plugin.filterPointTag, s = new
|
|
716
|
+
if (i.autoUnfold.strategy === "ScreenCenter") {
|
|
717
|
+
const o = this.plugin.filterPointTag, s = new P.Matrix4();
|
|
698
718
|
s.multiplyMatrices(this.five.camera.projectionMatrix, this.five.camera.matrixWorldInverse);
|
|
699
|
-
const r = new
|
|
719
|
+
const r = new P.Frustum();
|
|
700
720
|
r.setFromProjectionMatrix(s);
|
|
701
|
-
const
|
|
702
|
-
var
|
|
703
|
-
if (!
|
|
721
|
+
const l = this.five.camera.getWorldDirection(new P.Vector3()), f = o.filter((h) => {
|
|
722
|
+
var v, b;
|
|
723
|
+
if (!h.currentVisible)
|
|
704
724
|
return !1;
|
|
705
|
-
const c =
|
|
706
|
-
if (
|
|
725
|
+
const c = h.getConfig().unfoldedConfig;
|
|
726
|
+
if (h.manuallyOperated || typeof c != "object" || (c == null ? void 0 : c.autoUnfold) === !1 || ((v = c == null ? void 0 : c.autoUnfold) == null ? void 0 : v.strategy) !== "ScreenCenter" || c.keep || ((b = c.autoUnfold) == null ? void 0 : b.enable) === !1 || !r.containsPoint(new P.Vector3().fromArray(h.position)))
|
|
707
727
|
return !1;
|
|
708
|
-
const
|
|
709
|
-
if (
|
|
710
|
-
const
|
|
711
|
-
if (
|
|
728
|
+
const u = c.autoUnfold.distance;
|
|
729
|
+
if (u) {
|
|
730
|
+
const g = h.getDistance();
|
|
731
|
+
if (M(g, u) === !1)
|
|
712
732
|
return !1;
|
|
713
733
|
}
|
|
714
734
|
return !0;
|
|
715
|
-
}).sort((
|
|
716
|
-
const
|
|
717
|
-
return
|
|
718
|
-
}).findIndex((
|
|
719
|
-
if (f === -1 || f <= ((t =
|
|
735
|
+
}).sort((h, c) => {
|
|
736
|
+
const d = new P.Vector3().fromArray(h.position), u = new P.Vector3().fromArray(c.position);
|
|
737
|
+
return l.angleTo(d.sub(this.five.camera.position)) - l.angleTo(u.sub(this.five.camera.position));
|
|
738
|
+
}).findIndex((h) => h.id === this.id);
|
|
739
|
+
if (f === -1 || f <= ((t = i.autoUnfold.maxNumber) != null ? t : 1) - 1 === !1)
|
|
720
740
|
return !1;
|
|
721
741
|
}
|
|
722
742
|
return !0;
|
|
723
743
|
}
|
|
724
744
|
}
|
|
725
745
|
computeTagProject() {
|
|
726
|
-
const
|
|
727
|
-
if (!
|
|
746
|
+
const i = this.centerPosition;
|
|
747
|
+
if (!i)
|
|
728
748
|
return;
|
|
729
|
-
const { x:
|
|
749
|
+
const { x: e, y: t, z: o } = i.project(this.five.camera);
|
|
730
750
|
if (!(o > 1))
|
|
731
|
-
return { x:
|
|
751
|
+
return { x: e, y: t, z: o };
|
|
732
752
|
}
|
|
733
|
-
addObjectClickHandler(
|
|
734
|
-
if (!
|
|
753
|
+
addObjectClickHandler(i, e, t) {
|
|
754
|
+
if (!e || !this.plugin.domEvents)
|
|
735
755
|
return () => {
|
|
736
756
|
};
|
|
737
|
-
const o = () => !(!
|
|
757
|
+
const o = () => !(!i.currentVisible || i.loading), s = (r) => {
|
|
738
758
|
if (!o())
|
|
739
759
|
return !1;
|
|
740
760
|
t(r.origDomEvent);
|
|
741
761
|
};
|
|
742
|
-
return this.plugin.domEvents.addEventListener(
|
|
762
|
+
return this.plugin.domEvents.addEventListener(e, "click", s), () => {
|
|
743
763
|
var r;
|
|
744
|
-
(r = this.plugin.domEvents) == null || r.removeEventListener(
|
|
764
|
+
(r = this.plugin.domEvents) == null || r.removeEventListener(e, "click", s);
|
|
745
765
|
};
|
|
746
766
|
}
|
|
747
767
|
whyHide() {
|
|
748
|
-
var
|
|
768
|
+
var e;
|
|
749
769
|
if (!this.plugin.state.enabled)
|
|
750
770
|
return { reason: `plugin.state.enabled is ${this.plugin.state.enabled}` };
|
|
751
771
|
if (!this.plugin.state.visible)
|
|
752
772
|
return { reason: `plugin.state.visible is ${this.plugin.state.visible}` };
|
|
753
773
|
if (!this.enabled)
|
|
754
774
|
return { reason: `tag ${this.id} enabled is: ${this.enabled}` };
|
|
755
|
-
const
|
|
775
|
+
const i = S(y({}, this.computeVisible()), {
|
|
756
776
|
tagInstance: this
|
|
757
777
|
});
|
|
758
|
-
return
|
|
778
|
+
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 };
|
|
759
779
|
}
|
|
760
780
|
/**
|
|
761
781
|
* @description 销毁并移除
|
|
762
782
|
*/
|
|
763
783
|
destroy() {
|
|
764
|
-
var
|
|
765
|
-
const
|
|
766
|
-
if (
|
|
784
|
+
var e, t, o, s;
|
|
785
|
+
const i = this.plugin.tags.findIndex((r) => r.id === this.id);
|
|
786
|
+
if (i === -1) {
|
|
767
787
|
console.warn(`Destroy failed: tag ${this.id} not found`);
|
|
768
788
|
return;
|
|
769
789
|
}
|
|
770
|
-
this._currentBlinkInstance && !this._currentBlinkInstance.completed && ((t = (
|
|
790
|
+
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");
|
|
771
791
|
}
|
|
772
792
|
/**
|
|
773
793
|
* @description 判断 popover 是否在配置上启用(永久配置)
|
|
774
794
|
*/
|
|
775
795
|
isPopoverConfigEnabled() {
|
|
776
|
-
var
|
|
777
|
-
return ((
|
|
796
|
+
var i, e;
|
|
797
|
+
return ((e = (i = this.currentConfig) == null ? void 0 : i.popoverConfig) == null ? void 0 : e.enabled) === !0;
|
|
778
798
|
}
|
|
779
799
|
/**
|
|
780
800
|
* @description 判断当前标签是否允许临时 hover 弹出 popover(临时控制)
|
|
781
801
|
*/
|
|
782
802
|
isHoverEnabled() {
|
|
783
|
-
var
|
|
784
|
-
return !(((
|
|
803
|
+
var i;
|
|
804
|
+
return !(((i = this.plugin) == null ? void 0 : i.globalHoverEnabled) === !1 || this.hoverEnabled === !1);
|
|
785
805
|
}
|
|
786
806
|
}
|
|
787
807
|
export {
|