@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
|
@@ -7,7 +7,11 @@ export type PointTagInterface<C extends TagContentType = TagContentType> = TagIn
|
|
|
7
7
|
export declare class PointTag<C extends TagContentType = TagContentType> extends BaseTag<C, '2DPoint' | '3DPoint'> {
|
|
8
8
|
private __Object__;
|
|
9
9
|
private requestIdleCallbackId?;
|
|
10
|
+
private iconPixelGap;
|
|
11
|
+
private _temp;
|
|
12
|
+
private _lastUpdateCache;
|
|
10
13
|
constructor(plugin: PanoTagPluginController, tagData: TagData);
|
|
14
|
+
initialTagLine(): void;
|
|
11
15
|
/**
|
|
12
16
|
* @description 展开自己,收起其他标签
|
|
13
17
|
*/
|
|
@@ -22,6 +26,11 @@ export declare class PointTag<C extends TagContentType = TagContentType> extends
|
|
|
22
26
|
*/
|
|
23
27
|
setUnfold(unfolded: boolean): void;
|
|
24
28
|
setPosition(position: ArrayPosition): void;
|
|
29
|
+
/**
|
|
30
|
+
* 更新标签连线的位置,使其端点与icon保持固定像素距离
|
|
31
|
+
* 使用屏幕空间反投影方法,确保任意视角下都保持固定像素距离
|
|
32
|
+
*/
|
|
33
|
+
private updateTagNormalLinePosition;
|
|
25
34
|
updateScreenPosition(params?: {
|
|
26
35
|
force?: boolean;
|
|
27
36
|
}): void;
|
|
@@ -29,4 +38,9 @@ export declare class PointTag<C extends TagContentType = TagContentType> extends
|
|
|
29
38
|
setData(...data: Parameters<InstanceType<typeof BaseTag<C, '2DPoint' | '3DPoint'>>['setData']>): void;
|
|
30
39
|
updateUnfoldedByPanoIndex(): void;
|
|
31
40
|
computeNormal(): THREE.Vector3;
|
|
41
|
+
removeTagNormalLine(): void;
|
|
42
|
+
/**
|
|
43
|
+
* @description 获取额外的闪烁目标,包括法线(如果有)
|
|
44
|
+
*/
|
|
45
|
+
protected getAdditionalBlinkTargets(): any | any[] | null;
|
|
32
46
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { BaseTag as
|
|
5
|
-
import * as
|
|
1
|
+
var I = Object.defineProperty;
|
|
2
|
+
var M = (p, h, t) => h in p ? I(p, h, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[h] = t;
|
|
3
|
+
var c = (p, h, t) => (M(p, typeof h != "symbol" ? h + "" : h, t), t);
|
|
4
|
+
import { BaseTag as U } from "./BaseTag.js";
|
|
5
|
+
import * as r from "three";
|
|
6
|
+
import { Line as R } from "@realsee/five/line";
|
|
7
|
+
import { anyPositionToVector3 as g } from "../../../shared-utils/positionToVector3.js";
|
|
8
|
+
import { transformPosition as P } from "../../../shared-utils/five/transformPosition.js";
|
|
6
9
|
import "../../../shared-utils/Subscribe.js";
|
|
7
10
|
import "../../utils/tag/calculateTagConfig.js";
|
|
8
11
|
import "../../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
@@ -11,13 +14,11 @@ import "../../utils/tag/adaptConfig.js";
|
|
|
11
14
|
import "../../typings/tag/TagConfig.js";
|
|
12
15
|
import "@realsee/five";
|
|
13
16
|
import "../../../shared-utils/tag.js";
|
|
14
|
-
import "../../../shared-utils/positionToVector3.js";
|
|
15
17
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
16
18
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
17
19
|
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
18
20
|
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
19
21
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
20
|
-
import "../../../shared-utils/five/transformPosition.js";
|
|
21
22
|
import "../../../shared-utils/three/temp.js";
|
|
22
23
|
import "../../../shared-utils/three/core/Raycaster.js";
|
|
23
24
|
import "../../../shared-utils/dom/resizeObserver.js";
|
|
@@ -36,7 +37,6 @@ import "../../../shared-utils/three/centerPoint.js";
|
|
|
36
37
|
import "../../../shared-utils/three/getObjectVisible.js";
|
|
37
38
|
import "../../../shared-utils/three/CSS3DRenderer/index.js";
|
|
38
39
|
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
39
|
-
import "@realsee/five/line";
|
|
40
40
|
import "../../../shared-utils/isNil.js";
|
|
41
41
|
import "../../../shared-utils/three/core/Five_LineMaterial2.js";
|
|
42
42
|
import "../../../shared-utils/three/core/Sphere.js";
|
|
@@ -88,12 +88,57 @@ import "../../../shared-utils/five/getFloorIndex.js";
|
|
|
88
88
|
import "../../../shared-utils/safeObj.js";
|
|
89
89
|
import "../../utils/Cache.js";
|
|
90
90
|
import "../../../shared-utils/promise/withResolvers.js";
|
|
91
|
-
const
|
|
92
|
-
class
|
|
93
|
-
constructor(t,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
91
|
+
const _ = new r.Vector2();
|
|
92
|
+
class _i extends U {
|
|
93
|
+
constructor(t, e) {
|
|
94
|
+
var o, i, n, s, a;
|
|
95
|
+
super(t, e);
|
|
96
|
+
c(this, "__Object__");
|
|
97
|
+
c(this, "requestIdleCallbackId");
|
|
98
|
+
// icon 与线条端点的固定像素间距
|
|
99
|
+
c(this, "iconPixelGap", 10);
|
|
100
|
+
// 优化:重用临时对象,避免频繁创建
|
|
101
|
+
c(this, "_temp", {
|
|
102
|
+
lineStart: new r.Vector3(),
|
|
103
|
+
// 线条起点(project后会变成NDC)
|
|
104
|
+
iconPos: new r.Vector3(),
|
|
105
|
+
// icon位置(project后会变成NDC)
|
|
106
|
+
screenDirPixel: new r.Vector2(),
|
|
107
|
+
// 屏幕方向(normalize后会变成单位向量)
|
|
108
|
+
targetNDC: new r.Vector2(),
|
|
109
|
+
// 目标NDC坐标
|
|
110
|
+
lineDir: new r.Vector3(),
|
|
111
|
+
// 线条方向(计算w0时重用)
|
|
112
|
+
lineEnd: new r.Vector3(),
|
|
113
|
+
// 线条终点
|
|
114
|
+
raycaster: new r.Raycaster()
|
|
115
|
+
// 射线投射器
|
|
116
|
+
});
|
|
117
|
+
// 用于变化检测的缓存值
|
|
118
|
+
c(this, "_lastUpdateCache", {
|
|
119
|
+
position: [0, 0, 0],
|
|
120
|
+
screenLeft: 0,
|
|
121
|
+
screenTop: 0,
|
|
122
|
+
scale: 1,
|
|
123
|
+
visible: !1
|
|
124
|
+
});
|
|
125
|
+
if ((i = (o = e.style) == null ? void 0 : o.point) != null && i.width) {
|
|
126
|
+
const d = (a = (s = (n = e.style) == null ? void 0 : n.point) == null ? void 0 : s.scale) != null ? a : 1;
|
|
127
|
+
this.iconPixelGap = e.style.point.width * d * 1.4 / 2 + 2;
|
|
128
|
+
}
|
|
129
|
+
e.contentType === "Audio" && (this.iconPixelGap = 34 / 2 + 2), this.initialTagLine();
|
|
130
|
+
}
|
|
131
|
+
initialTagLine() {
|
|
132
|
+
var n, s, a;
|
|
133
|
+
const t = this.config;
|
|
134
|
+
if (!this.five.renderer || !((n = t == null ? void 0 : t.tagNormalLineConfig) != null && n.enabled) || !this.normalLineLength)
|
|
135
|
+
return;
|
|
136
|
+
const e = this.five.renderer.getSize(_), o = this.five.renderer.getPixelRatio(), i = P(g(this.originPosition), this.plugin.workUtil.transform);
|
|
137
|
+
this.tagNormalLine = new R(new r.Vector3().fromArray(this.position), i), this.tagNormalLine.points.visible = !1, this.tagNormalLine.setMaterial({
|
|
138
|
+
color: new r.Vector3(1, 1, 1),
|
|
139
|
+
linewidth: (a = (s = t == null ? void 0 : t.tagNormalLineConfig) == null ? void 0 : s.lineWidth) != null ? a : 1.2,
|
|
140
|
+
dashed: !1
|
|
141
|
+
}), this.tagNormalLine.line.material.transparent = !0, this.tagNormalLine.line.material.depthWrite = !1, this.tagNormalLine.line.material.depthTest = !0, this.tagNormalLine.line.material.dashed = !1, this.tagNormalLine.line.renderOrder = 2, this.tagNormalLine.setResolution(e.width * o, e.height * o), this.tagNormalLine.visible = !1, this.tagNormalLine.name = `tagNormalLine-${this.id}`, this.plugin.group.add(this.tagNormalLine);
|
|
97
142
|
}
|
|
98
143
|
/**
|
|
99
144
|
* @description 展开自己,收起其他标签
|
|
@@ -101,20 +146,20 @@ class Lt extends g {
|
|
|
101
146
|
unfoldAndFoldOthers() {
|
|
102
147
|
if (this.isPopoverConfigEnabled())
|
|
103
148
|
return;
|
|
104
|
-
const t = this.can("fold"),
|
|
105
|
-
t &&
|
|
106
|
-
|
|
149
|
+
const t = this.can("fold"), e = this.can("unfold");
|
|
150
|
+
t && e && (this.state.unfolded = !this.state.unfolded, this.manuallyOperated = !0, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.state.unfolded && this.plugin.tags.forEach((o) => {
|
|
151
|
+
o.id !== this.id && o.fold();
|
|
107
152
|
}));
|
|
108
153
|
}
|
|
109
154
|
onClick(t) {
|
|
110
155
|
t.target === "TagPoint" && this.unfoldAndFoldOthers();
|
|
111
156
|
}
|
|
112
157
|
applyVisible() {
|
|
113
|
-
var t,
|
|
114
|
-
this.currentVisible && this.updateScreenPosition(), (t = this.tag3DContentSvelte) != null && t.css3DInstance && (this.tag3DContentSvelte.css3DInstance.visible = this.visible), (
|
|
158
|
+
var t, e;
|
|
159
|
+
this.currentVisible && this.updateScreenPosition(), (t = this.tag3DContentSvelte) != null && t.css3DInstance && (this.tag3DContentSvelte.css3DInstance.visible = this.visible), (e = this.tag3DContentSvelte) == null || e.svelteApp.$set({
|
|
115
160
|
state: this.plugin.state,
|
|
116
161
|
temporaryState: this.temporaryState
|
|
117
|
-
}), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
|
|
162
|
+
}), !this.tagNormalLine && this.normalLineLength && this.initialTagLine(), this.tagNormalLine && (this.tagNormalLine.visible = this.visible), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
|
|
118
163
|
}
|
|
119
164
|
unfold() {
|
|
120
165
|
this.isPopoverConfigEnabled() || this.setUnfold(!0);
|
|
@@ -129,45 +174,99 @@ class Lt extends g {
|
|
|
129
174
|
setUnfold(t) {
|
|
130
175
|
if (this.isPopoverConfigEnabled())
|
|
131
176
|
return;
|
|
132
|
-
const
|
|
133
|
-
|
|
177
|
+
const e = this.can("fold"), o = this.can("unfold");
|
|
178
|
+
e && o && (this.state.unfolded = t, this.hooks.emit(t ? "unfolded" : "folded"), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
|
|
134
179
|
}
|
|
135
180
|
setPosition(t) {
|
|
136
|
-
this.originPosition = t, this.position =
|
|
181
|
+
this.originPosition = t, this.position = (() => {
|
|
182
|
+
const e = this.plugin.workUtil.transform;
|
|
183
|
+
let o = P(g(t), e).toArray();
|
|
184
|
+
if (this.normal && this.normalLineLength) {
|
|
185
|
+
const i = this.computeNormal();
|
|
186
|
+
o = new r.Vector3().fromArray(o).clone().add(i.clone().setLength(this.normalLineLength)).toArray();
|
|
187
|
+
}
|
|
188
|
+
return o;
|
|
189
|
+
})(), this.cache.clear(), this._lastUpdateCache.position = [0, 0, 0], this.updateVisible(), this.updateScreenPosition(), this.updateZIndex(), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* 更新标签连线的位置,使其端点与icon保持固定像素距离
|
|
193
|
+
* 使用屏幕空间反投影方法,确保任意视角下都保持固定像素距离
|
|
194
|
+
*/
|
|
195
|
+
updateTagNormalLinePosition(t) {
|
|
196
|
+
var L, x, C, N, S, T, D;
|
|
197
|
+
if (!this.screenPosition || !this.tagNormalLine)
|
|
198
|
+
return;
|
|
199
|
+
const { force: e = !1 } = t != null ? t : {};
|
|
200
|
+
if (!(e ? this.state.visible : this.currentVisible)) {
|
|
201
|
+
this.tagNormalLine.visible = !1;
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
const i = this._lastUpdateCache;
|
|
205
|
+
if (!(this.visible !== i.visible)) {
|
|
206
|
+
const u = Math.abs(this.position[0] - i.position[0]) > 1e-3 || Math.abs(this.position[1] - i.position[1]) > 1e-3 || Math.abs(this.position[2] - i.position[2]) > 1e-3, E = Math.abs(((L = this.screenPosition.leftPx) != null ? L : 0) - i.screenLeft) > 0.5 || Math.abs(((x = this.screenPosition.topPx) != null ? x : 0) - i.screenTop) > 0.5 || Math.abs(((C = this.screenPosition.scale) != null ? C : 1) - i.scale) > 2e-3;
|
|
207
|
+
if (!u && !E)
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
if (i.position = new r.Vector3().fromArray(this.position).toArray(), i.screenLeft = (N = this.screenPosition.leftPx) != null ? N : 0, i.screenTop = (S = this.screenPosition.topPx) != null ? S : 0, i.scale = (T = this.screenPosition.scale) != null ? T : 1, i.visible = this.visible, !this.five.renderer)
|
|
211
|
+
return;
|
|
212
|
+
const s = this.five.renderer.getSize(_), a = P(g(this.originPosition), this.plugin.workUtil.transform).toArray();
|
|
213
|
+
this._temp.lineStart.fromArray(a), this._temp.iconPos.fromArray(this.position), this._temp.lineStart.project(this.five.camera), this._temp.iconPos.project(this.five.camera), this._temp.screenDirPixel.set(
|
|
214
|
+
(this._temp.iconPos.x - this._temp.lineStart.x) * s.x / 2,
|
|
215
|
+
(this._temp.iconPos.y - this._temp.lineStart.y) * s.y / 2
|
|
216
|
+
);
|
|
217
|
+
const d = this._temp.screenDirPixel.length();
|
|
218
|
+
this._temp.screenDirPixel.normalize();
|
|
219
|
+
const m = this.iconPixelGap * ((D = this.screenPosition.scale) != null ? D : 1);
|
|
220
|
+
this._temp.targetNDC.set(
|
|
221
|
+
(this._temp.iconPos.x * s.x / 2 - this._temp.screenDirPixel.x * m) / (s.x / 2),
|
|
222
|
+
(this._temp.iconPos.y * s.y / 2 - this._temp.screenDirPixel.y * m) / (s.y / 2)
|
|
223
|
+
), this._temp.raycaster.setFromCamera(this._temp.targetNDC, this.five.camera);
|
|
224
|
+
const l = this._temp.raycaster.ray;
|
|
225
|
+
this._temp.lineStart.fromArray(a), this._temp.iconPos.fromArray(this.position), this._temp.lineDir.copy(this._temp.iconPos).sub(this._temp.lineStart).normalize(), this._temp.lineEnd.copy(l.origin).sub(this._temp.lineStart);
|
|
226
|
+
const A = l.direction.dot(l.direction), f = l.direction.dot(this._temp.lineDir), y = this._temp.lineDir.dot(this._temp.lineDir), w = l.direction.dot(this._temp.lineEnd), V = this._temp.lineDir.dot(this._temp.lineEnd), v = A * y - f * f;
|
|
227
|
+
let b = 0;
|
|
228
|
+
Math.abs(v) > 1e-4 && (b = (f * V - y * w) / v), this._temp.lineEnd.copy(l.origin).add(l.direction.multiplyScalar(Math.max(0, b)));
|
|
229
|
+
const k = this._temp.lineStart.distanceTo(this._temp.iconPos);
|
|
230
|
+
if (this._temp.lineStart.distanceTo(this._temp.lineEnd) > k) {
|
|
231
|
+
const u = Math.max(0, 1 - m / d);
|
|
232
|
+
this._temp.lineEnd.copy(this._temp.lineStart).lerp(this._temp.iconPos, u);
|
|
233
|
+
}
|
|
234
|
+
this.tagNormalLine.setPoints(this._temp.lineStart, this._temp.lineEnd), this.tagNormalLine.visible = !0;
|
|
137
235
|
}
|
|
138
236
|
updateScreenPosition(t) {
|
|
139
|
-
var
|
|
237
|
+
var s;
|
|
140
238
|
if (this.stickType !== "2DPoint" && this.stickType !== "3DPoint")
|
|
141
239
|
return;
|
|
142
|
-
const { force:
|
|
240
|
+
const { force: e = !1 } = t != null ? t : {}, o = e ? this.state.visible : this.currentVisible, i = (s = this.__Object__) != null ? s : {
|
|
143
241
|
timeoutId: void 0,
|
|
144
242
|
inAnimation: !1
|
|
145
243
|
};
|
|
146
|
-
if (this.__Object__ =
|
|
244
|
+
if (this.__Object__ = i, !o && this.screenPosition ? (i.inAnimation = !0, i.timeoutId = setTimeout(() => {
|
|
147
245
|
requestAnimationFrame(() => {
|
|
148
|
-
this.currentVisible || (
|
|
246
|
+
this.currentVisible || (i.inAnimation = !1, this.screenPosition = null, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
|
|
149
247
|
});
|
|
150
|
-
}, 1e3)) :
|
|
248
|
+
}, 1e3)) : i.timeoutId && (clearTimeout(i.timeoutId), i.inAnimation = !1, i.timeoutId = void 0), !o && !i.inAnimation)
|
|
151
249
|
return;
|
|
152
250
|
const n = this.computeTagProject();
|
|
153
251
|
if (n && this.five.renderer) {
|
|
154
|
-
const
|
|
252
|
+
const a = this.getDistance(void 0, 1), d = (() => {
|
|
155
253
|
if (!this.currentConfig.simulate3D)
|
|
156
254
|
return 1;
|
|
157
|
-
const
|
|
158
|
-
return Math.max(Math.min(1 -
|
|
159
|
-
})(),
|
|
255
|
+
const l = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI);
|
|
256
|
+
return Math.max(Math.min(1 - l * a / 40, 1), 0.7);
|
|
257
|
+
})(), m = this.five.renderer.getSize(_);
|
|
160
258
|
this.screenPosition = {
|
|
161
|
-
leftPx: (n.x + 1) / 2 *
|
|
162
|
-
topPx: (-n.y + 1) / 2 *
|
|
163
|
-
scale:
|
|
164
|
-
};
|
|
259
|
+
leftPx: (n.x + 1) / 2 * m.x,
|
|
260
|
+
topPx: (-n.y + 1) / 2 * m.y,
|
|
261
|
+
scale: d
|
|
262
|
+
}, this.updateTagNormalLinePosition({ force: t == null ? void 0 : t.force });
|
|
165
263
|
} else
|
|
166
264
|
this.screenPosition = null;
|
|
167
265
|
this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
|
|
168
266
|
}
|
|
169
|
-
set(t,
|
|
170
|
-
|
|
267
|
+
set(t, e = !0) {
|
|
268
|
+
var o, i, n;
|
|
269
|
+
super.set(t, e), this.normalLineLength = (n = (i = (o = t.style) == null ? void 0 : o.point) == null ? void 0 : i.normalLen) != null ? n : 0, this._lastUpdateCache.position = [0, 0, 0], this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), t.position && this.setPosition(this.position);
|
|
171
270
|
}
|
|
172
271
|
setData(...t) {
|
|
173
272
|
super.setData(...t), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
|
|
@@ -177,14 +276,24 @@ class Lt extends g {
|
|
|
177
276
|
return;
|
|
178
277
|
const t = this.getUnfoldedByPanoIndex();
|
|
179
278
|
if (this.state && (t !== void 0 && (this.state.unfolded = t), t && !this.state.visible)) {
|
|
180
|
-
const
|
|
181
|
-
typeof
|
|
279
|
+
const e = this.getConfig();
|
|
280
|
+
typeof e.unfoldedConfig == "object" && e.unfoldedConfig.autoFoldWhenHide !== !1 && (this.state.unfolded = !1);
|
|
182
281
|
}
|
|
183
282
|
}
|
|
184
283
|
computeNormal() {
|
|
185
|
-
return new
|
|
284
|
+
return new r.Vector3().fromArray(this.normal);
|
|
285
|
+
}
|
|
286
|
+
removeTagNormalLine() {
|
|
287
|
+
this.tagNormalLine && (this.plugin.group.remove(this.tagNormalLine), this.tagNormalLine = null);
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* @description 获取额外的闪烁目标,包括法线(如果有)
|
|
291
|
+
*/
|
|
292
|
+
getAdditionalBlinkTargets() {
|
|
293
|
+
var t;
|
|
294
|
+
return (t = this.tagNormalLine) != null && t.line ? this.tagNormalLine.line : null;
|
|
186
295
|
}
|
|
187
296
|
}
|
|
188
297
|
export {
|
|
189
|
-
|
|
298
|
+
_i as PointTag
|
|
190
299
|
};
|
|
@@ -679,7 +679,7 @@ class Fs extends R {
|
|
|
679
679
|
var e;
|
|
680
680
|
this.tags.length && (this.tags.forEach((t) => {
|
|
681
681
|
var i, o, n, s, r, a;
|
|
682
|
-
(i = t.tag3DContentSvelte) == null || i.dispose(), (n = (o = t.mediaPlane) == null ? void 0 : o.parent) == null || n.remove(t.mediaPlane), (a = (r = (s = t.model) == null ? void 0 : s.object) == null ? void 0 : r.parent) == null || a.remove(t.model.object);
|
|
682
|
+
(i = t.tag3DContentSvelte) == null || i.dispose(), (n = (o = t.mediaPlane) == null ? void 0 : o.parent) == null || n.remove(t.mediaPlane), (a = (r = (s = t.model) == null ? void 0 : s.object) == null ? void 0 : r.parent) == null || a.remove(t.model.object), t != null && t.tagNormalLine && (t == null || t.removeTagNormalLine());
|
|
683
683
|
}), this.tags = [], this.tagsLengthWillUpdate = !0, this.hooks.emit("tagsLengthChange"), (e = this.TagContainerSvelte) == null || e.$destroy(), this.TagContainerSvelte = void 0, this.disposeAllCSS3DContainer()), this.enabledModelTagSet.clear(), this.cache.clear();
|
|
684
684
|
}
|
|
685
685
|
/**
|
|
@@ -356,6 +356,21 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
|
|
|
356
356
|
*/
|
|
357
357
|
beforeOpen?: (tag?: TagInstance) => boolean | undefined;
|
|
358
358
|
};
|
|
359
|
+
/**
|
|
360
|
+
* @description 标签法线相关配置
|
|
361
|
+
*/
|
|
362
|
+
tagNormalLineConfig?: {
|
|
363
|
+
/**
|
|
364
|
+
* @description 是否启用标签法线
|
|
365
|
+
* @default true
|
|
366
|
+
*/
|
|
367
|
+
enabled?: boolean;
|
|
368
|
+
/**
|
|
369
|
+
* @description 标签法线宽度
|
|
370
|
+
* @default 1.2
|
|
371
|
+
*/
|
|
372
|
+
lineWidth?: number;
|
|
373
|
+
};
|
|
359
374
|
}
|
|
360
375
|
export declare const defaultGlobalConfig: TagConfig;
|
|
361
376
|
type ConfigFunction = (five: Five, tagState: {
|
|
@@ -14,24 +14,11 @@ export type PolygonCreateConfig = Partial<PolygonStyle & CreateLimitConfig & Pol
|
|
|
14
14
|
onPointPlaced?: (points: THREE.Vector3[]) => void;
|
|
15
15
|
onUndo?: () => void;
|
|
16
16
|
onRedo?: () => void;
|
|
17
|
-
/**
|
|
18
|
-
* @description 检测到自相交时的回调
|
|
19
|
-
* @param point 尝试添加但被拒绝的点坐标
|
|
20
|
-
*/
|
|
21
|
-
__onSelfIntersect?: (point: THREE.Vector3) => void;
|
|
22
|
-
/**
|
|
23
|
-
* @description 将要添加的下一个点
|
|
24
|
-
*/
|
|
25
|
-
__onWillAddPoint?: (point: THREE.Vector3, points: THREE.Vector3[]) => void;
|
|
26
17
|
/**
|
|
27
18
|
* @description 检测是否自相交,如果自交,禁止添加下一个点
|
|
28
19
|
* @default false
|
|
29
20
|
*/
|
|
30
21
|
experimental_self_intersect_check?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* 最多允许能添加的点数
|
|
33
|
-
*/
|
|
34
|
-
experimental_max_point_count?: number;
|
|
35
22
|
};
|
|
36
23
|
export declare class Polygon extends BaseObject<PolygonImportData> {
|
|
37
24
|
readonly type = "Polygon";
|