@realsee/dnalogel 3.62.0 → 3.63.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 +8 -0
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +4 -0
- package/dist/index.cjs.js +53 -53
- package/dist/index.js +5062 -5007
- package/dist/index.umd.js +44 -44
- package/dist/shared-utils/three/PointSelector/index.d.ts +1 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
- package/docs/classes/CSS3DRender.html +2 -2
- package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +2 -2
- package/docs/classes/ModelMakerPluginInstance.html +2 -2
- package/docs/classes/ModelRoomLabelController.html +2 -2
- package/docs/classes/MoveController.html +2 -2
- package/docs/classes/Object3DHelperController.html +2 -2
- package/docs/classes/PaintBrush.html +2 -2
- package/docs/classes/PanoMeasurePluginLine.html +2 -2
- package/docs/classes/PanoMeasurePluginModel.html +2 -2
- package/docs/classes/PanoMeasurePluginPoint.html +2 -2
- package/docs/classes/PanoMeasurePluginPolyline.html +2 -2
- package/docs/classes/PanoTagPluginController.html +2 -2
- package/docs/classes/Sculpt.html +2 -2
- package/docs/classes/Util.BetterTween.html +2 -2
- package/docs/classes/Util.FiveDomEvents.html +2 -2
- package/docs/classes/Util.FivePuppet.html +2 -2
- package/docs/classes/Util.Interval.html +2 -2
- package/docs/classes/Util.LightTag.html +2 -2
- package/docs/classes/Util.LineSegments.html +2 -2
- package/docs/classes/Util.Magnifier.html +2 -2
- package/docs/classes/Util.Object3D.html +2 -2
- package/docs/classes/Util.PointHelper.html +2 -2
- package/docs/classes/Util.PointSelector.html +12 -12
- package/docs/classes/Util.PointSelectorHelper.html +2 -2
- package/docs/classes/Util.Rectangle.html +2 -2
- package/docs/classes/Util.sculpt.BaseEditor.html +2 -2
- package/docs/classes/Util.sculpt.BoxMesh.html +2 -2
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleMesh.html +2 -2
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.LineMesh.html +2 -2
- package/docs/classes/Util.sculpt.PointMesh.html +2 -2
- package/docs/classes/Util.sculpt.PolygonMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMesh.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +2 -2
- package/docs/classes/WalkController.html +2 -2
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +2 -2
- package/docs/enums/DIRECTION.html +2 -2
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/DimensionType.html +2 -2
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/PaintBrushTypeEnum.html +2 -2
- package/docs/enums/PointType.html +2 -2
- package/docs/enums/Rotation.html +2 -2
- package/docs/functions/AreaMakerPlugin.html +1 -1
- package/docs/functions/CSS3DRenderPlugin.html +1 -1
- package/docs/functions/CameraMovementPlugin.html +2 -2
- package/docs/functions/CruisePlugin.html +1 -1
- package/docs/functions/CurrentPanoImagePlugin.html +1 -1
- package/docs/functions/GuideLinePlugin.html +1 -1
- package/docs/functions/ItemLabelPlugin.html +1 -1
- package/docs/functions/MapviewFloorplanPlugin.html +1 -1
- package/docs/functions/MeasurePlugin.html +1 -1
- package/docs/functions/ModelChassisCompassPlugin.html +2 -2
- package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
- package/docs/functions/ModelFloorplanPlugin.html +1 -1
- package/docs/functions/ModelItemLabelPlugin.html +1 -1
- package/docs/functions/ModelMakerPlugin.html +1 -1
- package/docs/functions/ModelRoomLabelPlugin.html +1 -1
- package/docs/functions/ModelTVVideoPlugin.html +1 -1
- package/docs/functions/ModelViewPlugin.html +2 -2
- package/docs/functions/MovePlugin.html +1 -1
- package/docs/functions/Object3DHelperPlugin.html +1 -1
- package/docs/functions/PanoCompassPlugin.html +1 -1
- package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
- package/docs/functions/PanoDoorLabelPlugin.html +1 -1
- package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
- package/docs/functions/PanoMeasurePlugin.html +1 -1
- package/docs/functions/PanoRulerPlugin.html +2 -2
- package/docs/functions/PanoRulerProPlugin.html +2 -2
- package/docs/functions/PanoSpatialTagPlugin.html +2 -2
- package/docs/functions/PanoTagPlugin.html +1 -1
- package/docs/functions/PanoVideoPlugin.html +2 -2
- package/docs/functions/PipelinePlugin.html +1 -1
- package/docs/functions/SculptPlugin.html +2 -2
- package/docs/functions/TopviewFloorplanPlugin.html +1 -1
- package/docs/functions/Util.absoluteUrl.html +2 -2
- package/docs/functions/Util.awaitNextFrame.html +1 -1
- package/docs/functions/Util.blink.html +2 -2
- package/docs/functions/Util.bounding.html +1 -1
- package/docs/functions/Util.boundingBox.html +1 -1
- package/docs/functions/Util.boundingSphere.html +1 -1
- package/docs/functions/Util.boxVertex.html +2 -2
- package/docs/functions/Util.boxVertexes.html +1 -1
- package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
- package/docs/functions/Util.convexHull.html +2 -2
- package/docs/functions/Util.equal.html +2 -2
- package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
- package/docs/functions/Util.getCoordsFromClient.html +1 -1
- package/docs/functions/Util.getCoordsFromElement.html +1 -1
- package/docs/functions/Util.getFrameTime.html +2 -2
- package/docs/functions/Util.initialCSS3DRender.html +1 -1
- package/docs/functions/Util.inside.html +1 -1
- package/docs/functions/Util.isAbsoluteURL.html +1 -1
- package/docs/functions/Util.isModelLike.html +1 -1
- package/docs/functions/Util.isNil.html +2 -2
- package/docs/functions/Util.isPanoramaLike.html +1 -1
- package/docs/functions/Util.lookObject.html +2 -2
- package/docs/functions/Util.lookPoint.html +2 -2
- package/docs/functions/Util.nextFrame.html +1 -1
- package/docs/functions/Util.notNil.html +2 -2
- package/docs/functions/Util.reblink.html +2 -2
- package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
- package/docs/functions/Util.sculpt.createBox.html +1 -1
- package/docs/functions/Util.sculpt.createCircle.html +1 -1
- package/docs/functions/Util.sculpt.createCylinder.html +1 -1
- package/docs/functions/Util.sculpt.createLine.html +2 -2
- package/docs/functions/Util.sculpt.createPoint.html +1 -1
- package/docs/functions/Util.sculpt.createPolygon.html +1 -1
- package/docs/functions/Util.sculpt.createPrism.html +1 -1
- package/docs/functions/Util.sculpt.createRectangle.html +2 -2
- package/docs/functions/Util.tag.html +1 -1
- package/docs/functions/Util.tweenProgress.html +1 -1
- package/docs/functions/Util.uuid.html +2 -2
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
- package/docs/functions/Util.worldBounding.html +1 -1
- package/docs/functions/Util.worldBoundingBox.html +1 -1
- package/docs/functions/Util.worldBoundingSphere.html +1 -1
- package/docs/functions/createPolyline.html +2 -2
- package/docs/functions/pluginFlag.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Config.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Params.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.State.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/ContentTypeMapInterface.html +2 -2
- package/docs/interfaces/CruisePluginTypes.Config.html +2 -2
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
- package/docs/interfaces/CruisePluginTypes.EventMap.html +2 -2
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +2 -2
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +2 -2
- package/docs/interfaces/FloorplanExtraObject.html +2 -2
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +2 -2
- package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
- package/docs/interfaces/FloorplanServerBounding.html +2 -2
- package/docs/interfaces/FloorplanServerComputedData.html +2 -2
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
- package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +2 -2
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +2 -2
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +2 -2
- package/docs/interfaces/GuideLinePluginType.EventMap.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +2 -2
- package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +2 -2
- package/docs/interfaces/HelperOffset.html +2 -2
- package/docs/interfaces/ImagePlaneGroup.html +2 -2
- package/docs/interfaces/ItemLabelPluginData.html +2 -2
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/MinMax.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.State.html +2 -2
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
- package/docs/interfaces/ModelViewPluginExportType.html +2 -2
- package/docs/interfaces/Object3DHelperState.html +2 -2
- package/docs/interfaces/ObjectHelperControllers.html +2 -2
- package/docs/interfaces/PaintBrushAction.html +2 -2
- package/docs/interfaces/PaintBrushConfigs.html +2 -2
- package/docs/interfaces/PaintBrushState.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +2 -2
- package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +2 -2
- package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginState.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +2 -2
- package/docs/interfaces/PluginEventMap.html +2 -2
- package/docs/interfaces/Point.html +2 -2
- package/docs/interfaces/Room.html +2 -2
- package/docs/interfaces/RoomInfo.html +2 -2
- package/docs/interfaces/RoomLabel.html +2 -2
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +2 -2
- package/docs/interfaces/State.html +2 -2
- package/docs/interfaces/TagCacheInterface.html +2 -2
- package/docs/interfaces/TagConfig.html +2 -2
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconUrl.html +12 -8
- package/docs/interfaces/TagObjectGroup.html +2 -2
- package/docs/interfaces/TagStyle.html +2 -2
- package/docs/interfaces/Tags.html +2 -2
- package/docs/interfaces/TemporaryState.html +2 -2
- package/docs/interfaces/Util.AnimeInstance.html +2 -2
- package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
- package/docs/interfaces/Util.EventHandlerConfig.html +2 -2
- package/docs/interfaces/Util.FiveDomEvent.html +2 -2
- package/docs/interfaces/Util.FiveDomEventMap.html +2 -2
- package/docs/interfaces/Util.MagnifierParameter.html +2 -2
- package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.PointIntersection.html +2 -2
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +2 -2
- package/docs/modules/AreaMakerPluginType.html +2 -2
- package/docs/modules/CruisePluginTypes.html +2 -2
- package/docs/modules/CurrentPanoImagePluginType.html +2 -2
- package/docs/modules/GuideLineItem.html +2 -2
- package/docs/modules/GuideLineModeItem.html +2 -2
- package/docs/modules/GuideLinePluginType.html +2 -2
- package/docs/modules/ModelMakerPluginType.html +2 -2
- package/docs/modules/PanoVideoPluginType.html +2 -2
- package/docs/modules/SculptData.html +2 -2
- package/docs/modules/Util.html +2 -2
- package/docs/modules/Util.sculpt.html +2 -2
- package/docs/modules.html +2 -2
- package/docs/types/AddObject3DHelperConfig.html +2 -2
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
- package/docs/types/ArrayPosition.html +1 -1
- package/docs/types/AudioAppearance.html +1 -1
- package/docs/types/CSS3DRenderExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
- package/docs/types/ClassFunctionParameters.html +1 -1
- package/docs/types/Color.html +1 -1
- package/docs/types/ContentTypeConfigKey.html +1 -1
- package/docs/types/ContentTypeConfigKeySplit.html +1 -1
- package/docs/types/ContentTypeMap.html +1 -1
- package/docs/types/Create3DDomContainerReturnType.html +1 -1
- package/docs/types/Create3DElementReturnType.html +1 -1
- package/docs/types/CruisePluginExportType.html +1 -1
- package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
- package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
- package/docs/types/DeprecatedTagProperty.html +2 -2
- package/docs/types/Direction-1.html +1 -1
- package/docs/types/Direction4.html +1 -1
- package/docs/types/ElementRenderer.html +2 -2
- package/docs/types/FloorplanRuleLabels.html +2 -2
- package/docs/types/FloorplanServerRuleLabels.html +1 -1
- package/docs/types/GuideLinePluginExportType.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
- package/docs/types/GuideLinePluginType.PathItem.html +2 -2
- package/docs/types/GuideLinePluginType.PluginData.html +2 -2
- package/docs/types/HelperEventMap.html +1 -1
- package/docs/types/InternalHelperEventMap.html +1 -1
- package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/MediaData.html +2 -2
- package/docs/types/MediaStore.html +1 -1
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
- package/docs/types/ModelId.html +1 -1
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
- package/docs/types/ModelMakerPluginType.ItemType.html +1 -1
- package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
- package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
- package/docs/types/MoveArgs.html +2 -2
- package/docs/types/MoveOpts.html +2 -2
- package/docs/types/Object3DHelperEventMap.html +1 -1
- package/docs/types/ObjectFit.html +1 -1
- package/docs/types/PaintBrushEventMap.html +1 -1
- package/docs/types/PanoCompassPluginData.html +1 -1
- package/docs/types/PanoCompassPluginExportType.html +1 -1
- package/docs/types/PanoCompassPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
- package/docs/types/PanoIndex.html +1 -1
- package/docs/types/PanoMeasurePluginEvent.html +1 -1
- package/docs/types/PanoMeasureReturnType.html +1 -1
- package/docs/types/PanoSpatialTagPluginId.html +1 -1
- package/docs/types/PanoTagPluginExportInterface.html +1 -1
- package/docs/types/PanoTagPluginParamsInterface.html +1 -1
- package/docs/types/PanoVideoPluginParameterType.html +1 -1
- package/docs/types/PanoVideoPluginReturnType.html +1 -1
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
- package/docs/types/PipelinePluginParameterType.html +1 -1
- package/docs/types/PipelinePluginReturnType.html +1 -1
- package/docs/types/PlaneTag.html +2 -2
- package/docs/types/Point2DTag.html +2 -2
- package/docs/types/Point3DTag.html +2 -2
- package/docs/types/PointTagInstance.html +1 -1
- package/docs/types/Position.html +1 -1
- package/docs/types/PositionFrom.html +1 -1
- package/docs/types/RotateArgs.html +2 -2
- package/docs/types/RotateOpts.html +2 -2
- package/docs/types/RuleLabelsKey.html +1 -1
- package/docs/types/RuleLabelsValue.html +1 -1
- package/docs/types/ScaleCallback.html +1 -1
- package/docs/types/ScalePosition.html +2 -2
- package/docs/types/SculptData.BoxData.html +1 -1
- package/docs/types/SculptData.CircleData.html +1 -1
- package/docs/types/SculptData.CylinderData.html +1 -1
- package/docs/types/SculptData.PointData.html +1 -1
- package/docs/types/SculptData.PolygonData.html +1 -1
- package/docs/types/SculptData.PolylineData.html +1 -1
- package/docs/types/SculptData.PrismData.html +1 -1
- package/docs/types/SculptData.RectangleData.html +1 -1
- package/docs/types/StickType.html +1 -1
- package/docs/types/Tag.html +2 -2
- package/docs/types/Tag2D.html +2 -2
- package/docs/types/Tag3D.html +2 -2
- package/docs/types/TagClickParams.html +1 -1
- package/docs/types/TagConfigByKey.html +1 -1
- package/docs/types/TagContentType.html +1 -1
- package/docs/types/TagContentTypeMapping.html +1 -1
- package/docs/types/TagDimensionType.html +1 -1
- package/docs/types/TagElement.html +2 -2
- package/docs/types/TagEvents.html +1 -1
- package/docs/types/TagGLTFObject.html +1 -1
- package/docs/types/TagHooks.html +1 -1
- package/docs/types/TagId.html +1 -1
- package/docs/types/TagInstance.html +1 -1
- package/docs/types/TagPointType.html +2 -2
- package/docs/types/TagRendererMap.html +1 -1
- package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/Util.ActionIfNoIntersection.html +1 -1
- package/docs/types/Util.AdherePoint.html +2 -2
- package/docs/types/Util.PointSelectorConfig.html +1 -1
- package/docs/types/WorkCode.html +1 -1
- package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
- package/docs/variables/PLUGIN.html +1 -1
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
- package/docs/variables/ROOM_TYPE_MAP.html +2 -2
- package/docs/variables/Util.animeMap.html +1 -1
- package/docs/variables/defaultGlobalConfig.html +1 -1
- package/docs/variables/itemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
- package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +286 -239
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +80 -80
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +4 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/index.d.ts +1 -0
- package/libs/shared-utils/three/PointSelector/index.js +84 -76
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as j, init as q, safe_not_equal as O, append_styles as U, element as
|
|
1
|
+
import { SvelteComponent as j, init as q, safe_not_equal as O, append_styles as U, element as g, space as k, create_component as z, attr as y, set_style as b, toggle_class as _, insert as W, append as w, mount_component as A, listen as X, transition_in as D, transition_out as I, detach as B, destroy_component as R, getContext as E, bubble as G } from "../../../vendor/svelte/internal/index.js";
|
|
2
2
|
import H from "./Shadow.js";
|
|
3
3
|
import J from "./Icon/Icon.js";
|
|
4
4
|
import { Image_Default_Point as K } from "../../Assets/Icon.js";
|
|
@@ -67,10 +67,10 @@ import "../../../shared-utils/three/PointSelector/utils/contents.js";
|
|
|
67
67
|
import "../../../Sculpt/utils/three/rayOnLine.js";
|
|
68
68
|
import "@realsee/five";
|
|
69
69
|
function Q(t) {
|
|
70
|
-
U(t, "svelte-
|
|
70
|
+
U(t, "svelte-fwhwvn", '@charset "UTF-8";.tag-point-click-helper.svelte-fwhwvn.svelte-fwhwvn{position:absolute;pointer-events:auto;cursor:pointer;width:141%;height:141%;left:50%;top:50%;transform:translate(-50%, -50%)}.tag-point-wrapper.svelte-fwhwvn.svelte-fwhwvn{pointer-events:none;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.tag-folded-point.svelte-fwhwvn.svelte-fwhwvn,.tag-unfolded-point.svelte-fwhwvn.svelte-fwhwvn{transition:all 0.5s}.tag-point-wrapper.svelte-fwhwvn .tag-unfolded-point.svelte-fwhwvn{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;border-radius:50%}.tag-point-wrapper.svelte-fwhwvn .tag-unfolded-point.svelte-fwhwvn:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.3125rem;height:0.3125rem;border-radius:50%;background-color:white}.tag-point-wrapper.svelte-fwhwvn .tag-unfolded-point.svelte-fwhwvn:before{content:"";position:absolute;width:0.875rem;height:0.875rem;border-radius:50%;background-color:rgba(0, 0, 0, 0.2)}.tag-point-wrapper.folded.svelte-fwhwvn .tag-folded-point.svelte-fwhwvn{opacity:1;scale:1}.tag-point-wrapper.folded.svelte-fwhwvn .tag-unfolded-point.svelte-fwhwvn{opacity:0;scale:1}.tag-point-wrapper.unfolded.svelte-fwhwvn .tag-folded-point.svelte-fwhwvn{opacity:0;scale:0.2}.tag-point-wrapper.unfolded.svelte-fwhwvn .tag-unfolded-point.svelte-fwhwvn{opacity:1;scale:1}');
|
|
71
71
|
}
|
|
72
72
|
function V(t) {
|
|
73
|
-
let
|
|
73
|
+
let i, p, f, s, u, m, h, e, r, a, v, c;
|
|
74
74
|
return s = new H({
|
|
75
75
|
props: {
|
|
76
76
|
center: !0,
|
|
@@ -78,7 +78,7 @@ function V(t) {
|
|
|
78
78
|
spreadRadius: 5,
|
|
79
79
|
opacity: 0.3
|
|
80
80
|
}
|
|
81
|
-
}),
|
|
81
|
+
}), r = new J({
|
|
82
82
|
props: {
|
|
83
83
|
icon: (
|
|
84
84
|
/*url*/
|
|
@@ -89,13 +89,13 @@ function V(t) {
|
|
|
89
89
|
t[1]
|
|
90
90
|
)
|
|
91
91
|
}
|
|
92
|
-
}),
|
|
92
|
+
}), r.$on(
|
|
93
93
|
"iconLoaded",
|
|
94
94
|
/*iconLoaded_handler*/
|
|
95
95
|
t[7]
|
|
96
96
|
), {
|
|
97
97
|
c() {
|
|
98
|
-
|
|
98
|
+
i = g("div"), p = g("div"), f = k(), z(s.$$.fragment), u = k(), m = g("div"), h = k(), e = g("div"), z(r.$$.fragment), y(p, "class", "tag-point-click-helper svelte-fwhwvn"), y(m, "class", "tag-unfolded-point svelte-fwhwvn"), b(
|
|
99
99
|
m,
|
|
100
100
|
"transition-delay",
|
|
101
101
|
/*folded*/
|
|
@@ -103,7 +103,7 @@ function V(t) {
|
|
|
103
103
|
/*foldDelay*/
|
|
104
104
|
t[5]
|
|
105
105
|
) : 0) + "ms"
|
|
106
|
-
),
|
|
106
|
+
), y(e, "class", "tag-folded-point svelte-fwhwvn"), b(
|
|
107
107
|
e,
|
|
108
108
|
"transition-delay",
|
|
109
109
|
/*folded*/
|
|
@@ -111,134 +111,134 @@ function V(t) {
|
|
|
111
111
|
/*foldDelay*/
|
|
112
112
|
t[5]
|
|
113
113
|
) : 0) + "ms"
|
|
114
|
-
),
|
|
115
|
-
|
|
114
|
+
), y(i, "class", "tag-point-wrapper svelte-fwhwvn"), _(
|
|
115
|
+
i,
|
|
116
116
|
"unfolded",
|
|
117
117
|
/*unfolded*/
|
|
118
118
|
t[0]
|
|
119
|
-
),
|
|
120
|
-
|
|
119
|
+
), _(
|
|
120
|
+
i,
|
|
121
121
|
"folded",
|
|
122
122
|
/*folded*/
|
|
123
123
|
t[3]
|
|
124
124
|
);
|
|
125
125
|
},
|
|
126
|
-
m(
|
|
127
|
-
W(
|
|
128
|
-
|
|
126
|
+
m(o, l) {
|
|
127
|
+
W(o, i, l), w(i, p), w(i, f), A(s, i, null), w(i, u), w(i, m), w(i, h), w(i, e), A(r, e, null), a = !0, v || (c = X(
|
|
128
|
+
p,
|
|
129
129
|
"click",
|
|
130
130
|
/*handlePointClick*/
|
|
131
131
|
t[4]
|
|
132
|
-
),
|
|
132
|
+
), v = !0);
|
|
133
133
|
},
|
|
134
|
-
p(
|
|
134
|
+
p(o, [l]) {
|
|
135
135
|
l & /*folded*/
|
|
136
|
-
8 &&
|
|
136
|
+
8 && b(
|
|
137
137
|
m,
|
|
138
138
|
"transition-delay",
|
|
139
139
|
/*folded*/
|
|
140
|
-
(
|
|
140
|
+
(o[3] ? (
|
|
141
141
|
/*foldDelay*/
|
|
142
|
-
|
|
142
|
+
o[5]
|
|
143
143
|
) : 0) + "ms"
|
|
144
144
|
);
|
|
145
|
-
const
|
|
145
|
+
const n = {};
|
|
146
146
|
l & /*url*/
|
|
147
|
-
4 && (
|
|
148
|
-
|
|
149
|
-
2 && (
|
|
150
|
-
|
|
151
|
-
8 &&
|
|
147
|
+
4 && (n.icon = /*url*/
|
|
148
|
+
o[2]), l & /*width*/
|
|
149
|
+
2 && (n.width = /*width*/
|
|
150
|
+
o[1]), r.$set(n), l & /*folded*/
|
|
151
|
+
8 && b(
|
|
152
152
|
e,
|
|
153
153
|
"transition-delay",
|
|
154
154
|
/*folded*/
|
|
155
|
-
(
|
|
155
|
+
(o[3] ? (
|
|
156
156
|
/*foldDelay*/
|
|
157
|
-
|
|
157
|
+
o[5]
|
|
158
158
|
) : 0) + "ms"
|
|
159
|
-
), (!
|
|
160
|
-
1) &&
|
|
161
|
-
|
|
159
|
+
), (!a || l & /*unfolded*/
|
|
160
|
+
1) && _(
|
|
161
|
+
i,
|
|
162
162
|
"unfolded",
|
|
163
163
|
/*unfolded*/
|
|
164
|
-
|
|
165
|
-
), (!
|
|
166
|
-
8) &&
|
|
167
|
-
|
|
164
|
+
o[0]
|
|
165
|
+
), (!a || l & /*folded*/
|
|
166
|
+
8) && _(
|
|
167
|
+
i,
|
|
168
168
|
"folded",
|
|
169
169
|
/*folded*/
|
|
170
|
-
|
|
170
|
+
o[3]
|
|
171
171
|
);
|
|
172
172
|
},
|
|
173
|
-
i(
|
|
174
|
-
|
|
173
|
+
i(o) {
|
|
174
|
+
a || (D(s.$$.fragment, o), D(r.$$.fragment, o), a = !0);
|
|
175
175
|
},
|
|
176
|
-
o(
|
|
177
|
-
I(s.$$.fragment,
|
|
176
|
+
o(o) {
|
|
177
|
+
I(s.$$.fragment, o), I(r.$$.fragment, o), a = !1;
|
|
178
178
|
},
|
|
179
|
-
d(
|
|
180
|
-
|
|
179
|
+
d(o) {
|
|
180
|
+
o && B(i), R(s), R(r), v = !1, c();
|
|
181
181
|
}
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
|
-
function Y(t,
|
|
185
|
-
let
|
|
186
|
-
const
|
|
187
|
-
let { tag: e } =
|
|
188
|
-
const
|
|
189
|
-
|
|
184
|
+
function Y(t, i, p) {
|
|
185
|
+
let f, s, u, m;
|
|
186
|
+
const h = E("hooks");
|
|
187
|
+
let { tag: e } = i, r, a = !1;
|
|
188
|
+
const v = () => {
|
|
189
|
+
r !== void 0 && clearTimeout(r), a = !0, r = setTimeout(
|
|
190
190
|
() => {
|
|
191
|
-
|
|
191
|
+
a = !1;
|
|
192
192
|
},
|
|
193
193
|
800
|
|
194
194
|
);
|
|
195
|
-
},
|
|
196
|
-
|
|
197
|
-
},
|
|
198
|
-
function l(
|
|
199
|
-
G.call(this, t,
|
|
195
|
+
}, c = (n) => {
|
|
196
|
+
a || (e.entryFromModel && N(e.five.state.mode) ? e.find({ targetMode: "Panorama" }).then(() => e.unfoldAndFoldOthers()) : h.emit("click", { event: n, target: "TagPoint", tag: e }));
|
|
197
|
+
}, o = (() => e.contentType === "Text" && e.data.appearance === "plane" ? 500 : 800)();
|
|
198
|
+
function l(n) {
|
|
199
|
+
G.call(this, t, n);
|
|
200
200
|
}
|
|
201
|
-
return t.$$set = (
|
|
202
|
-
"tag" in
|
|
201
|
+
return t.$$set = (n) => {
|
|
202
|
+
"tag" in n && p(6, e = n.tag);
|
|
203
203
|
}, t.$$.update = () => {
|
|
204
|
-
var
|
|
204
|
+
var n, T, L, P;
|
|
205
205
|
t.$$.dirty & /*tag*/
|
|
206
|
-
64 &&
|
|
207
|
-
1 &&
|
|
208
|
-
64 &&
|
|
209
|
-
64 &&
|
|
210
|
-
var
|
|
211
|
-
const
|
|
212
|
-
if (typeof
|
|
213
|
-
return
|
|
214
|
-
const
|
|
215
|
-
if (typeof
|
|
216
|
-
return
|
|
217
|
-
if (
|
|
206
|
+
64 && p(0, f = (n = e.state) == null ? void 0 : n.unfolded), t.$$.dirty & /*unfolded*/
|
|
207
|
+
1 && p(3, s = !f), t.$$.dirty & /*tag*/
|
|
208
|
+
64 && p(2, u = (L = (T = e.style) == null ? void 0 : T.point) != null && L.url ? (P = e.style) == null ? void 0 : P.point : { url: K }), t.$$.dirty & /*tag*/
|
|
209
|
+
64 && p(1, m = (() => {
|
|
210
|
+
var $, C, F, S;
|
|
211
|
+
const M = (C = ($ = e.style) == null ? void 0 : $.point) == null ? void 0 : C.width;
|
|
212
|
+
if (typeof M == "number")
|
|
213
|
+
return M;
|
|
214
|
+
const d = (S = (F = e.style) == null ? void 0 : F.point) == null ? void 0 : S.size;
|
|
215
|
+
if (typeof d == "number")
|
|
216
|
+
return d;
|
|
217
|
+
if (d === "S")
|
|
218
218
|
return 18;
|
|
219
|
-
if (
|
|
219
|
+
if (d === "M")
|
|
220
220
|
return 20;
|
|
221
|
-
if (
|
|
221
|
+
if (d === "L")
|
|
222
222
|
return 24;
|
|
223
|
-
if (
|
|
223
|
+
if (d === "XL")
|
|
224
224
|
return 28;
|
|
225
225
|
})());
|
|
226
|
-
},
|
|
227
|
-
|
|
226
|
+
}, v(), [
|
|
227
|
+
f,
|
|
228
228
|
m,
|
|
229
|
-
|
|
229
|
+
u,
|
|
230
230
|
s,
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
c,
|
|
232
|
+
o,
|
|
233
233
|
e,
|
|
234
234
|
l
|
|
235
235
|
];
|
|
236
236
|
}
|
|
237
|
-
class
|
|
238
|
-
constructor(
|
|
239
|
-
super(), q(this,
|
|
237
|
+
class de extends j {
|
|
238
|
+
constructor(i) {
|
|
239
|
+
super(), q(this, i, Y, V, O, { tag: 6 }, Q);
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
export {
|
|
243
|
-
|
|
243
|
+
de as default
|
|
244
244
|
};
|
|
@@ -18,6 +18,10 @@ export interface MinMax {
|
|
|
18
18
|
export type StickType = '2DPoint' | '3DPoint' | 'Plane' | 'Model';
|
|
19
19
|
export interface TagIconUrl {
|
|
20
20
|
url?: string;
|
|
21
|
+
/** 背景色 */
|
|
22
|
+
bgcolor?: string;
|
|
23
|
+
/** 背景透明度 */
|
|
24
|
+
bgopacity?: number;
|
|
21
25
|
/** 是否使用默认 tag point,默认为 true */
|
|
22
26
|
enabled?: boolean;
|
|
23
27
|
/** 指切图是几倍图,如 2倍图, 3倍图,默认值为 3 */
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.63.1",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
|
@@ -2,15 +2,15 @@ var R = Object.defineProperty, O = Object.defineProperties;
|
|
|
2
2
|
var X = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var N = Object.getOwnPropertySymbols;
|
|
4
4
|
var Y = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var E = (l, h, e) => h in l ? R(l, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[h] = e, v = (l, h) => {
|
|
6
6
|
for (var e in h || (h = {}))
|
|
7
|
-
Y.call(h, e) &&
|
|
7
|
+
Y.call(h, e) && E(l, e, h[e]);
|
|
8
8
|
if (N)
|
|
9
9
|
for (var e of N(h))
|
|
10
|
-
B.call(h, e) &&
|
|
10
|
+
B.call(h, e) && E(l, e, h[e]);
|
|
11
11
|
return l;
|
|
12
|
-
},
|
|
13
|
-
var i = (l, h, e) => (
|
|
12
|
+
}, M = (l, h) => O(l, X(h));
|
|
13
|
+
var i = (l, h, e) => (E(l, typeof h != "symbol" ? h + "" : h, e), e);
|
|
14
14
|
import { PointSelectorHelper as C } from "./utils/PointSelectorHelper.js";
|
|
15
15
|
import { isTouchDevice as j } from "../../isTouchDevice.js";
|
|
16
16
|
import * as o from "three";
|
|
@@ -92,8 +92,13 @@ class se extends A {
|
|
|
92
92
|
/**
|
|
93
93
|
* @description: 鼠标进入five canvas时
|
|
94
94
|
*/
|
|
95
|
-
i(this, "onEnter", () => {
|
|
96
|
-
|
|
95
|
+
i(this, "onEnter", (e) => {
|
|
96
|
+
var s;
|
|
97
|
+
const t = (s = e == null ? void 0 : e.emitEvent) != null ? s : !0;
|
|
98
|
+
this.cursorError || this.pointSelectorHelper.show(), this.outOfFive = !1, t && this.emit("intersectionUpdate", this.position);
|
|
99
|
+
});
|
|
100
|
+
i(this, "onMouseEnter", () => {
|
|
101
|
+
this.onEnter();
|
|
97
102
|
});
|
|
98
103
|
/**
|
|
99
104
|
* @description: 鼠标离开five canvas时
|
|
@@ -178,7 +183,7 @@ class se extends A {
|
|
|
178
183
|
const t = G(this.five, e);
|
|
179
184
|
let s = k(this.five, t);
|
|
180
185
|
if (s) {
|
|
181
|
-
if (this.plane && this.planeMode === "vertical" && (s =
|
|
186
|
+
if (this.plane && this.planeMode === "vertical" && (s = M(v({}, s), {
|
|
182
187
|
point: this.plane.projectPoint(s.point, new o.Vector3()),
|
|
183
188
|
face: new o.Face3(0, 0, 0, this.plane.normal.clone()),
|
|
184
189
|
originalPoint: s.point.clone()
|
|
@@ -222,76 +227,79 @@ class se extends A {
|
|
|
222
227
|
* @description: 更新 pointSelectorHelper 的焦点位置
|
|
223
228
|
*/
|
|
224
229
|
i(this, "updatePointSelectorHelperIntersect", (e) => {
|
|
225
|
-
var u, d, n, f, L, T
|
|
230
|
+
var s, c, u, d, n, f, L, T;
|
|
226
231
|
if (!e) {
|
|
227
232
|
this.onLeave(), this.five.getElement().style.cursor = V;
|
|
228
233
|
return;
|
|
229
234
|
}
|
|
230
|
-
this.onEnter(), this.cursorError || (this.five.getElement().style.cursor = "");
|
|
231
|
-
const t =
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
235
|
+
this.onEnter({ emitEvent: !1 }), this.cursorError || (this.five.getElement().style.cursor = "");
|
|
236
|
+
const t = v({}, e);
|
|
237
|
+
if (this.adhereEnabled && this.mouseNdcPosition && this.five.renderer) {
|
|
238
|
+
const S = {
|
|
239
|
+
x: this.mouseNdcPosition.x,
|
|
240
|
+
y: 1 - this.mouseNdcPosition.y
|
|
241
|
+
}, H = this.five.renderer.getSize(new o.Vector2());
|
|
242
|
+
if (this.adhereEnabled && typeof this.adherePoints == "function" && typeof this.adhereRadius == "number") {
|
|
243
|
+
for (const r of this.adherePlane) {
|
|
244
|
+
const a = r.distanceToPoint(e.point);
|
|
245
|
+
let p = r.projectPoint(e.point, new o.Vector3());
|
|
246
|
+
(!this.plane || this.plane.distanceToPoint(p) < 0.01) && (p = (c = (s = this.plane) == null ? void 0 : s.projectPoint(p, new o.Vector3())) != null ? c : p, a < this.adhereRadius && (t.point = p.clone(), t.adherePoint = p.clone(), this.plane || (t.face = new o.Face3(0, 0, 0, r.normal.clone())), t.isAdsorbed = !0));
|
|
247
|
+
}
|
|
248
|
+
for (const r of this.adhereLine) {
|
|
249
|
+
let a = r.closestPointToPoint(e.point, !1, new o.Vector3());
|
|
250
|
+
if (a.distanceTo(e.point) < this.adhereRadius)
|
|
251
|
+
(!this.plane || this.plane.distanceToPoint(a) < 0.01) && (a = (d = (u = this.plane) == null ? void 0 : u.projectPoint(a, new o.Vector3())) != null ? d : a, t.point = a.clone(), t.adhereLine = r.clone(), t.isAdsorbed = !0);
|
|
252
|
+
else {
|
|
253
|
+
const p = W({
|
|
254
|
+
raycaster: new z(this.five.camera.position, e.point.clone().sub(this.five.camera.position).normalize()),
|
|
255
|
+
line: r,
|
|
256
|
+
clampToLine: !1
|
|
257
|
+
}), P = p.clone().project(this.five.camera);
|
|
258
|
+
if (P.z <= 1) {
|
|
259
|
+
const y = {
|
|
260
|
+
x: (P.x + 1) / 2,
|
|
261
|
+
y: (1 - P.y) / 2
|
|
262
|
+
}, b = {
|
|
263
|
+
x: Math.abs(y.x - S.x) * H.width,
|
|
264
|
+
y: Math.abs(y.y - S.y) * H.height
|
|
265
|
+
};
|
|
266
|
+
let m = p.clone();
|
|
267
|
+
b.x < 10 && b.y < 10 && (!this.plane || this.plane.distanceToPoint(m) < 0.01) && (m = (f = (n = this.plane) == null ? void 0 : n.projectPoint(m, new o.Vector3())) != null ? f : m, t.point = m.clone(), t.adhereLine = r.clone(), t.isAdsorbed = !0);
|
|
268
|
+
}
|
|
261
269
|
}
|
|
262
270
|
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
if (a.IsAlwaysVisible = r.IsAlwaysVisible, this.plane && this.plane.distanceToPoint(a) > 0.01)
|
|
267
|
-
continue;
|
|
268
|
-
if (a.distanceTo(e.point) < this.adhereRadius) {
|
|
269
|
-
t.point = (H = (M = this.plane) == null ? void 0 : M.projectPoint(a, new o.Vector3())) != null ? H : a.clone(), !this.plane && r instanceof o.Face3 && (t.face = r), t.isAdsorbed = !0;
|
|
270
|
-
break;
|
|
271
|
-
} else {
|
|
272
|
-
const v = a.clone().project(this.five.camera);
|
|
273
|
-
if (v.z > 1)
|
|
271
|
+
for (const r of this.adherePoints({ intersection: e, pointSelectorInstance: this })) {
|
|
272
|
+
const a = r instanceof o.Face3 ? new o.Vector3(r.a, r.b, r.c) : r;
|
|
273
|
+
if (a.IsAlwaysVisible = r.IsAlwaysVisible, this.plane && this.plane.distanceToPoint(a) > 0.01)
|
|
274
274
|
continue;
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
275
|
+
if (a.distanceTo(e.point) < this.adhereRadius) {
|
|
276
|
+
t.point = (T = (L = this.plane) == null ? void 0 : L.projectPoint(a, new o.Vector3())) != null ? T : a.clone(), !this.plane && r instanceof o.Face3 && (t.face = r), t.isAdsorbed = !0;
|
|
277
|
+
break;
|
|
278
|
+
} else {
|
|
279
|
+
const P = a.clone().project(this.five.camera);
|
|
280
|
+
if (P.z > 1)
|
|
281
|
+
continue;
|
|
282
|
+
const y = this.five.renderer.getSize(new o.Vector2()), b = {
|
|
283
|
+
x: (P.x + 1) / 2,
|
|
284
|
+
y: (1 - P.y) / 2
|
|
285
|
+
}, m = {
|
|
286
|
+
x: Math.abs(b.x - S.x) * y.width,
|
|
287
|
+
y: Math.abs(b.y - S.y) * y.height
|
|
288
|
+
};
|
|
289
|
+
if (m.x < 10 && m.y < 10) {
|
|
290
|
+
let I = !1;
|
|
291
|
+
if (a.IsAlwaysVisible)
|
|
292
|
+
I = !0;
|
|
293
|
+
else {
|
|
294
|
+
const D = new o.Raycaster();
|
|
295
|
+
D.setFromCamera(a.clone(), this.five.camera);
|
|
296
|
+
const F = this.five.model.intersectRaycaster(D, void 0, !0)[0], x = 0.1, U = this.five.camera.position.distanceTo(a);
|
|
297
|
+
F && F.distance < U + x && (I = !0);
|
|
298
|
+
}
|
|
299
|
+
if (I) {
|
|
300
|
+
t.point = a.clone(), !this.plane && r instanceof o.Face3 && (t.face = r), t.isAdsorbed = !0;
|
|
301
|
+
break;
|
|
302
|
+
}
|
|
295
303
|
}
|
|
296
304
|
}
|
|
297
305
|
}
|
|
@@ -319,15 +327,15 @@ class se extends A {
|
|
|
319
327
|
i(this, "emitIntersectionUpdate", (e) => {
|
|
320
328
|
this.emit("intersectionUpdate", e);
|
|
321
329
|
});
|
|
322
|
-
this.five = e, this.config =
|
|
330
|
+
this.five = e, this.config = v(v({}, this.config), t), this.actionIfNoIntersection = (d = (u = t == null ? void 0 : t.actionIfNoIntersection) != null ? u : t == null ? void 0 : t.actionIfNoModelUnderMouse) != null ? d : "virtualPoint";
|
|
323
331
|
const s = (n = t == null ? void 0 : t.mode) != null ? n : "auto";
|
|
324
332
|
s === "auto" ? this.mode = j ? "fixed" : "cursor" : this.mode = s;
|
|
325
333
|
const c = {
|
|
326
334
|
autoFixPCPosition: this.mode === "cursor",
|
|
327
335
|
initialPosition: this.mode === "fixed" ? { left: "35%", top: "20%" } : void 0
|
|
328
336
|
};
|
|
329
|
-
this.pointSelectorHelper = new C(this.five,
|
|
330
|
-
magnifierParams:
|
|
337
|
+
this.pointSelectorHelper = new C(this.five, M(v({}, t == null ? void 0 : t.helper), {
|
|
338
|
+
magnifierParams: v(v({}, c), (f = t == null ? void 0 : t.helper) == null ? void 0 : f.magnifierParams)
|
|
331
339
|
})), this.pointSelectorHelper.hide();
|
|
332
340
|
}
|
|
333
341
|
get position() {
|
|
@@ -364,14 +372,14 @@ class se extends A {
|
|
|
364
372
|
const e = this.five.getElement();
|
|
365
373
|
if (!e)
|
|
366
374
|
throw new Error("five element not found");
|
|
367
|
-
this.mode === "cursor" ? (this.five.on("wantsMoveToPano", w), this.five.on("wantsChangeMode", w), this.five.on("wantsTapGesture", w), e.addEventListener("touchstart", this.onTouchStart, { passive: !0 }), e.addEventListener("touchmove", this.onTouchMove), e.addEventListener("touchend", this.onTouchEnd), e.addEventListener("mousedown", this.onMouseDown), e.addEventListener("mouseup", this.onMouseUp), e.addEventListener("mousemove", this.updateByMousePosition), e.addEventListener("wheel", this.onMouseWheel), e.addEventListener("mouseenter", this.
|
|
375
|
+
this.mode === "cursor" ? (this.five.on("wantsMoveToPano", w), this.five.on("wantsChangeMode", w), this.five.on("wantsTapGesture", w), e.addEventListener("touchstart", this.onTouchStart, { passive: !0 }), e.addEventListener("touchmove", this.onTouchMove), e.addEventListener("touchend", this.onTouchEnd), e.addEventListener("mousedown", this.onMouseDown), e.addEventListener("mouseup", this.onMouseUp), e.addEventListener("mousemove", this.updateByMousePosition), e.addEventListener("wheel", this.onMouseWheel), e.addEventListener("mouseenter", this.onMouseEnter), e.addEventListener("mouseout", this.onLeave), this.five.on("wantsPanGesture", this.onFiveWantsPanGesture)) : this.mode === "fixed" && (this.five.on("panoArrived", this.renderScreenCenter), this.five.on("panGesture", this.renderScreenCenter), this.five.on("interiaPan", this.renderScreenCenter), this.renderScreenCenter(), this.pointSelectorHelper.show()), document.addEventListener("keydown", this.onKeyDown), document.addEventListener("keyup", this.onKeyUp), this.pointSelectorHelper.hooks.on("intersectionUpdate", this.emitIntersectionUpdate), this.lastFiveHelperVisible = this.five.helperVisible, this.five.helperVisible = !1, this.emit("enable");
|
|
368
376
|
}
|
|
369
377
|
disable() {
|
|
370
378
|
if (!this.enabled)
|
|
371
379
|
return;
|
|
372
380
|
this.enabled = !1, this.adherePoints = null, this.adhereLine = [], this.adherePlane = [], this.plane = void 0, this.pointSelectorHelper.disable(), this.five.getElement().style.cursor = "";
|
|
373
381
|
const e = this.five.getElement();
|
|
374
|
-
this.five.off("wantsPanGesture", this.onFiveWantsPanGesture), this.five.off("wantsMoveToPano", w), this.five.off("wantsChangeMode", w), this.five.off("wantsTapGesture", w), this.five.helperVisible = this.lastFiveHelperVisible, e == null || e.removeEventListener("touchstart", this.onTouchStart), e == null || e.removeEventListener("touchmove", this.onTouchMove), e == null || e.removeEventListener("touchend", this.onTouchEnd), e == null || e.removeEventListener("mousedown", this.onMouseDown), e == null || e.removeEventListener("mouseup", this.onMouseUp), e == null || e.removeEventListener("mousemove", this.updateByMousePosition), e == null || e.removeEventListener("wheel", this.onMouseWheel), e == null || e.removeEventListener("mouseenter", this.
|
|
382
|
+
this.five.off("wantsPanGesture", this.onFiveWantsPanGesture), this.five.off("wantsMoveToPano", w), this.five.off("wantsChangeMode", w), this.five.off("wantsTapGesture", w), this.five.helperVisible = this.lastFiveHelperVisible, e == null || e.removeEventListener("touchstart", this.onTouchStart), e == null || e.removeEventListener("touchmove", this.onTouchMove), e == null || e.removeEventListener("touchend", this.onTouchEnd), e == null || e.removeEventListener("mousedown", this.onMouseDown), e == null || e.removeEventListener("mouseup", this.onMouseUp), e == null || e.removeEventListener("mousemove", this.updateByMousePosition), e == null || e.removeEventListener("wheel", this.onMouseWheel), e == null || e.removeEventListener("mouseenter", this.onMouseEnter), e == null || e.removeEventListener("mouseout", this.onLeave), this.five.off("panoArrived", this.renderScreenCenter), this.five.off("panGesture", this.renderScreenCenter), this.five.off("interiaPan", this.renderScreenCenter), document.removeEventListener("keydown", this.onKeyDown), document.removeEventListener("keyup", this.onKeyUp), this.pointSelectorHelper.hooks.off("intersectionUpdate", this.emitIntersectionUpdate), this.emit("disable");
|
|
375
383
|
}
|
|
376
384
|
dispose() {
|
|
377
385
|
this.disable(), this.pointSelectorHelper.dispose();
|