@realsee/dnalogel 3.63.2-alpha.0 → 3.63.3
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/PanoVideoPlugin/VideoMeshController.d.ts +0 -4
- package/dist/index.cjs.js +6 -6
- package/dist/index.js +48 -45
- package/dist/index.umd.js +6 -6
- package/dist/shared-utils/Utils/WorkUtil.d.ts +0 -1
- package/dist/shared-utils/three/PointSelector/index.d.ts +9 -6
- 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 +2 -2
- 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/MeasurePlugin/Controller.js +66 -60
- package/libs/PanoVideoPlugin/Controller.js +23 -25
- package/libs/PanoVideoPlugin/VideoMeshController.d.ts +0 -4
- package/libs/PanoVideoPlugin/VideoMeshController.js +40 -39
- package/libs/Sculpt/utils/Modules/Cursor.js +1 -1
- package/libs/base/BasePlugin.js +3 -3
- package/libs/shared-utils/Utils/WorkUtil.d.ts +0 -1
- package/libs/shared-utils/Utils/WorkUtil.js +21 -24
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/index.d.ts +9 -6
- package/libs/shared-utils/three/PointSelector/index.js +25 -24
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
1
|
+
var g = Object.defineProperty, f = Object.defineProperties;
|
|
2
2
|
var b = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var h = Object.getOwnPropertySymbols;
|
|
4
4
|
var M = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var l = (
|
|
5
|
+
var l = (e, i, r) => i in e ? g(e, i, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[i] = r, p = (e, i) => {
|
|
6
6
|
for (var r in i || (i = {}))
|
|
7
|
-
M.call(i, r) && l(
|
|
7
|
+
M.call(i, r) && l(e, r, i[r]);
|
|
8
8
|
if (h)
|
|
9
9
|
for (var r of h(i))
|
|
10
|
-
W.call(i, r) && l(
|
|
11
|
-
return
|
|
12
|
-
}, a = (
|
|
13
|
-
var s = (
|
|
10
|
+
W.call(i, r) && l(e, r, i[r]);
|
|
11
|
+
return e;
|
|
12
|
+
}, a = (e, i) => f(e, b(i));
|
|
13
|
+
var s = (e, i, r) => (l(e, typeof i != "symbol" ? i + "" : i, r), r);
|
|
14
14
|
import { VideoMeshController as m } from "./VideoMeshController.js";
|
|
15
15
|
import { Controller as _ } from "../base/BasePlugin.js";
|
|
16
16
|
import "./utils/shader.js";
|
|
@@ -75,7 +75,7 @@ import "../Sculpt/utils/three/rayOnLine.js";
|
|
|
75
75
|
import "../shared-utils/animationFrame/index.js";
|
|
76
76
|
import "./utils/index.js";
|
|
77
77
|
import "../shared-utils/url/absoluteUrl.js";
|
|
78
|
-
class
|
|
78
|
+
class Pr extends _ {
|
|
79
79
|
constructor(r) {
|
|
80
80
|
super(r);
|
|
81
81
|
s(this, "controllerMap", /* @__PURE__ */ new Map());
|
|
@@ -95,18 +95,17 @@ class Ir extends _ {
|
|
|
95
95
|
}
|
|
96
96
|
/** 加载点位视频数据,加载数据并不代表会加载点位视频。 */
|
|
97
97
|
load(r, t) {
|
|
98
|
-
var
|
|
98
|
+
var o;
|
|
99
99
|
if (this.disposed)
|
|
100
100
|
return this.logWarning("插件已被销毁");
|
|
101
|
-
typeof ((
|
|
102
|
-
const c = n.pano_index,
|
|
101
|
+
typeof ((o = t == null ? void 0 : t.initialState) == null ? void 0 : o.enabled) != "undefined" && t.initialState.enabled !== this.enabled && (t.initialState.enabled ? this.enable() : this.disable()), r.list.forEach((n) => {
|
|
102
|
+
const c = n.pano_index, u = n.render_id;
|
|
103
103
|
n.video_list.forEach((d) => {
|
|
104
104
|
this.controllerMap.set(
|
|
105
105
|
d.render_id,
|
|
106
106
|
new m(this.five, a(p({}, d), {
|
|
107
|
-
fiveUtil: this.fiveUtil,
|
|
108
107
|
panoIndex: c,
|
|
109
|
-
renderID:
|
|
108
|
+
renderID: u,
|
|
110
109
|
hooks: this.hooks,
|
|
111
110
|
initialState: { enabled: this.enabled }
|
|
112
111
|
}))
|
|
@@ -116,24 +115,24 @@ class Ir extends _ {
|
|
|
116
115
|
}
|
|
117
116
|
/** 开启插件功能。 */
|
|
118
117
|
enable(r) {
|
|
119
|
-
var
|
|
118
|
+
var o;
|
|
120
119
|
if (this.disposed)
|
|
121
120
|
return this.logWarning("插件已被销毁");
|
|
122
121
|
if (this.enabled)
|
|
123
122
|
return;
|
|
124
123
|
this.enabled = !0, Array.from(this.controllerMap.values()).forEach((n) => n.enable());
|
|
125
|
-
const t = (
|
|
124
|
+
const t = (o = r == null ? void 0 : r.userAction) != null ? o : !0;
|
|
126
125
|
this.hooks.emit("enable", { userAction: t });
|
|
127
126
|
}
|
|
128
127
|
/** 禁用插件功能。 */
|
|
129
128
|
disable(r) {
|
|
130
|
-
var
|
|
129
|
+
var o;
|
|
131
130
|
if (this.disposed)
|
|
132
131
|
return this.logWarning("插件已被销毁");
|
|
133
132
|
if (!this.enabled)
|
|
134
133
|
return;
|
|
135
134
|
this.enabled = !1, Array.from(this.controllerMap.values()).forEach((n) => n.disable());
|
|
136
|
-
const t = (
|
|
135
|
+
const t = (o = r == null ? void 0 : r.userAction) != null ? o : !0;
|
|
137
136
|
this.hooks.emit("disable", { userAction: t });
|
|
138
137
|
}
|
|
139
138
|
/** 看向某个视频。
|
|
@@ -176,14 +175,13 @@ class Ir extends _ {
|
|
|
176
175
|
add(r, t) {
|
|
177
176
|
if (this.disposed)
|
|
178
177
|
return this.logWarning("插件已被销毁");
|
|
179
|
-
t.forEach((
|
|
180
|
-
if (this.controllerMap.get(
|
|
181
|
-
return this.logWarning(`ID 为 ${
|
|
182
|
-
const n =
|
|
178
|
+
t.forEach((o) => {
|
|
179
|
+
if (this.controllerMap.get(o.render_id))
|
|
180
|
+
return this.logWarning(`ID 为 ${o.render_id} 的点位视频已存在`);
|
|
181
|
+
const n = o.render_id;
|
|
183
182
|
this.controllerMap.set(
|
|
184
|
-
|
|
185
|
-
new m(this.five, a(p({},
|
|
186
|
-
fiveUtil: this.fiveUtil,
|
|
183
|
+
o.render_id,
|
|
184
|
+
new m(this.five, a(p({}, o), {
|
|
187
185
|
panoIndex: r,
|
|
188
186
|
renderID: n,
|
|
189
187
|
hooks: this.hooks,
|
|
@@ -220,5 +218,5 @@ class Ir extends _ {
|
|
|
220
218
|
}
|
|
221
219
|
}
|
|
222
220
|
export {
|
|
223
|
-
|
|
221
|
+
Pr as PanoVideoPluginController
|
|
224
222
|
};
|
|
@@ -3,7 +3,6 @@ import type { VideoMeshParams } from './typings';
|
|
|
3
3
|
import type { Subscribe } from '../shared-utils/Subscribe';
|
|
4
4
|
import type { PluginEventMap } from './typings';
|
|
5
5
|
import type { Simplify } from 'type-fest';
|
|
6
|
-
import type { FiveUtil } from '../shared-utils/Utils/FiveUtil';
|
|
7
6
|
/** 点位视频控制器
|
|
8
7
|
* @description 控制器存在副作用,包括:
|
|
9
8
|
* - 对 Five 事件的监听。
|
|
@@ -24,7 +23,6 @@ export declare class VideoMeshController {
|
|
|
24
23
|
/** 是否已经启用 */
|
|
25
24
|
get enabled(): boolean;
|
|
26
25
|
video: HTMLVideoElement;
|
|
27
|
-
private fiveUtil?;
|
|
28
26
|
private _id;
|
|
29
27
|
/** 视频资源地址 */
|
|
30
28
|
private readonly url;
|
|
@@ -52,8 +50,6 @@ export declare class VideoMeshController {
|
|
|
52
50
|
private hooks;
|
|
53
51
|
/** 初始化视频、模型以及相关事件监听。 */
|
|
54
52
|
constructor(five: Five, params: VideoMeshParams & {
|
|
55
|
-
fiveUtil?: FiveUtil;
|
|
56
|
-
} & {
|
|
57
53
|
hooks: Subscribe<Simplify<PluginEventMap>>;
|
|
58
54
|
});
|
|
59
55
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var t = (v, i, e) => (
|
|
4
|
-
import { vertexShader as
|
|
1
|
+
var g = Object.defineProperty;
|
|
2
|
+
var I = (v, i, e) => i in v ? g(v, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : v[i] = e;
|
|
3
|
+
var t = (v, i, e) => (I(v, typeof i != "symbol" ? i + "" : i, e), e);
|
|
4
|
+
import { vertexShader as M, fragmentShader as P } from "./utils/shader.js";
|
|
5
5
|
import "../shared-utils/tag.js";
|
|
6
|
-
import { VideoTexture as
|
|
6
|
+
import { VideoTexture as F, LinearFilter as c, ShaderMaterial as y, Vector4 as x, SphereBufferGeometry as L, Mesh as V, Vector3 as p, Quaternion as b } from "three";
|
|
7
7
|
import "../vendor/hammerjs/hammer.js";
|
|
8
8
|
import "../shared-utils/three/PointSelector/index.js";
|
|
9
9
|
import "../shared-utils/three/CSS3DRenderer/index.js";
|
|
@@ -11,10 +11,10 @@ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
|
11
11
|
import "@realsee/five/line";
|
|
12
12
|
import "../shared-utils/three/core/Five_LineMaterial2.js";
|
|
13
13
|
import "../shared-utils/three/core/Sphere.js";
|
|
14
|
-
import { anime as
|
|
15
|
-
import { requestAnimationFrameInterval as
|
|
14
|
+
import { anime as A } from "../vendor/animejs/lib/anime.es.js";
|
|
15
|
+
import { requestAnimationFrameInterval as D } from "../shared-utils/animationFrame/index.js";
|
|
16
16
|
import "../shared-utils/five/FivePuppet.js";
|
|
17
|
-
import
|
|
17
|
+
import E from "./utils/index.js";
|
|
18
18
|
import "../shared-utils/positionToVector3.js";
|
|
19
19
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
20
20
|
import "../shared-utils/five/getFiveModel.js";
|
|
@@ -62,11 +62,10 @@ import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
|
62
62
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
63
63
|
import "../Sculpt/utils/three/rayOnLine.js";
|
|
64
64
|
import "@realsee/five";
|
|
65
|
-
class
|
|
65
|
+
class qi {
|
|
66
66
|
/** 初始化视频、模型以及相关事件监听。 */
|
|
67
67
|
constructor(i, e) {
|
|
68
68
|
t(this, "video");
|
|
69
|
-
t(this, "fiveUtil");
|
|
70
69
|
t(this, "_id");
|
|
71
70
|
/** 视频资源地址 */
|
|
72
71
|
t(this, "url");
|
|
@@ -102,26 +101,28 @@ class Si {
|
|
|
102
101
|
});
|
|
103
102
|
/** 把 uv 值转换成位置 */
|
|
104
103
|
t(this, "uv2Position", (i, e) => {
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
var f;
|
|
105
|
+
const o = Math.PI, a = Math.PI * 2, d = i, s = 1 - e, r = new p(
|
|
106
|
+
-1 * Math.cos(a * d) * Math.sin(o * s),
|
|
107
107
|
1 * Math.cos(o * s),
|
|
108
|
-
1 * Math.sin(
|
|
108
|
+
1 * Math.sin(a * d) * Math.sin(o * s)
|
|
109
109
|
);
|
|
110
|
-
|
|
111
|
-
const h = this.
|
|
110
|
+
r.setX(-r.x);
|
|
111
|
+
const h = (f = this.five.work) == null ? void 0 : f.observers[this.panoIndex];
|
|
112
112
|
if (!h)
|
|
113
113
|
return this.logWarning(`点位 ${this.panoIndex} 不存在,请检查 Five 数据是否正常。`);
|
|
114
|
-
const
|
|
115
|
-
return u.applyAxisAngle(new p(0, 1, 0), Math.PI / 2), u.applyQuaternion(
|
|
114
|
+
const m = h.position.clone(), l = h.quaternion.clone(), u = r.clone();
|
|
115
|
+
return u.applyAxisAngle(new p(0, 1, 0), Math.PI / 2), u.applyQuaternion(l), u.add(m), u;
|
|
116
116
|
});
|
|
117
117
|
/** Five 数据加载后需要根据点位位姿调整点位模型位置 */
|
|
118
118
|
t(this, "onFiveDataLoaded", () => {
|
|
119
|
-
|
|
119
|
+
var r;
|
|
120
|
+
const i = (r = this.five.work) == null ? void 0 : r.observers[this.panoIndex];
|
|
120
121
|
if (!i)
|
|
121
122
|
return this.logWarning(`点位 ${this.panoIndex} 不存在,请检查 Five 数据是否正常。`);
|
|
122
123
|
this.observer = i;
|
|
123
|
-
const { x: e, y: n, z: o, w:
|
|
124
|
-
this.videoMesh.position.fromArray([s.x, s.y, s.z]), this.videoMesh.quaternion.set(0, 0, 0, 1), this.videoMesh.rotateOnAxis(new p(0, 1, 0), Math.PI / 2), this.videoMesh.applyQuaternion(
|
|
124
|
+
const { x: e, y: n, z: o, w: a } = i.quaternion, d = new b(e, n, o, a), s = i.position;
|
|
125
|
+
this.videoMesh.position.fromArray([s.x, s.y, s.z]), this.videoMesh.quaternion.set(0, 0, 0, 1), this.videoMesh.rotateOnAxis(new p(0, 1, 0), Math.PI / 2), this.videoMesh.applyQuaternion(d);
|
|
125
126
|
});
|
|
126
127
|
/** 兼容视频播放 */
|
|
127
128
|
t(this, "onFiveWantsMoveToPano", (i) => {
|
|
@@ -193,13 +194,13 @@ class Si {
|
|
|
193
194
|
this.video.addEventListener(
|
|
194
195
|
"timeupdate",
|
|
195
196
|
() => {
|
|
196
|
-
if (this.enabled && this.panoIndex === this.five.getCurrentState().panoIndex && this.five.getCurrentState().mode === "Panorama" && (this.renderFiveDisposer || (this.renderFiveDisposer =
|
|
197
|
+
if (this.enabled && this.panoIndex === this.five.getCurrentState().panoIndex && this.five.getCurrentState().mode === "Panorama" && (this.renderFiveDisposer || (this.renderFiveDisposer = D(() => {
|
|
197
198
|
this.five.needsRender = !0;
|
|
198
199
|
}, 30)), this.five.scene.add(this.videoMesh), this.videoMesh.material.uniforms.opacity.value === 0)) {
|
|
199
200
|
const i = {
|
|
200
201
|
value: 0
|
|
201
202
|
};
|
|
202
|
-
|
|
203
|
+
A({
|
|
203
204
|
targets: i,
|
|
204
205
|
value: 1,
|
|
205
206
|
duration: 300,
|
|
@@ -221,28 +222,28 @@ class Si {
|
|
|
221
222
|
var i;
|
|
222
223
|
(i = this.renderFiveDisposer) == null || i.call(this), this.renderFiveDisposer = void 0;
|
|
223
224
|
});
|
|
224
|
-
var
|
|
225
|
-
this.five = i, this.panoIndex = e.panoIndex, this.
|
|
225
|
+
var r, h;
|
|
226
|
+
this.five = i, this.panoIndex = e.panoIndex, this._id = e.renderID, this.url = e.url, this.origin = e.origin.slice(), this.hooks = e.hooks, this._enabled = (h = (r = e.initialState) == null ? void 0 : r.enabled) != null ? h : !0;
|
|
226
227
|
const n = document.createElement("video");
|
|
227
228
|
n.crossOrigin = "anonymous", n.autoplay = !1, n.muted = !0, n.loop = !0, n.playsInline = !0, this.video = n;
|
|
228
|
-
const o = new
|
|
229
|
-
o.minFilter =
|
|
230
|
-
const
|
|
231
|
-
vertexShader:
|
|
232
|
-
fragmentShader:
|
|
229
|
+
const o = new F(this.video);
|
|
230
|
+
o.minFilter = c, o.magFilter = c;
|
|
231
|
+
const a = new y({
|
|
232
|
+
vertexShader: M,
|
|
233
|
+
fragmentShader: P,
|
|
233
234
|
uniforms: {
|
|
234
235
|
map: { value: o },
|
|
235
236
|
size: {
|
|
236
|
-
value: new
|
|
237
|
+
value: new x(this.origin[0], 1 - this.origin[1] - this.origin[3], this.origin[2], this.origin[3])
|
|
237
238
|
},
|
|
238
239
|
opacity: { value: 0 }
|
|
239
240
|
},
|
|
240
241
|
depthTest: !0,
|
|
241
242
|
transparent: !0
|
|
242
|
-
}),
|
|
243
|
-
|
|
244
|
-
const s = new
|
|
245
|
-
s.name = "pano-video-plugin", this.videoMesh = s, this.
|
|
243
|
+
}), d = new L(1, 64, 64);
|
|
244
|
+
d.scale(-1, 1, 1);
|
|
245
|
+
const s = new V(d, a);
|
|
246
|
+
s.name = "pano-video-plugin", this.videoMesh = s, this.five.work && this.onFiveDataLoaded(), this.enabled && this.addEventListeners(), this.mountIfNeeded(), window[`__PANOVIDEO_${this.renderID}_DEBUG__`] = this;
|
|
246
247
|
}
|
|
247
248
|
/** 传入的 ID,不可更改 */
|
|
248
249
|
get renderID() {
|
|
@@ -279,8 +280,8 @@ class Si {
|
|
|
279
280
|
const e = this.uv2Position(i[0], i[1]);
|
|
280
281
|
if (!e)
|
|
281
282
|
return;
|
|
282
|
-
const n = new p().subVectors(e, this.observer.position).normalize(), { longitude: o, latitude:
|
|
283
|
-
this.five.setState({ panoIndex: this.panoIndex, longitude: o, latitude:
|
|
283
|
+
const n = new p().subVectors(e, this.observer.position).normalize(), { longitude: o, latitude: a } = E(n);
|
|
284
|
+
this.five.setState({ panoIndex: this.panoIndex, longitude: o, latitude: a }), this.onFiveWantsMoveToPano(this.panoIndex);
|
|
284
285
|
}
|
|
285
286
|
/** 获取视频中心点的 uv */
|
|
286
287
|
getUVCenter() {
|
|
@@ -332,10 +333,10 @@ class Si {
|
|
|
332
333
|
checkIntersectionInBounding(i, e) {
|
|
333
334
|
if (!e.uv)
|
|
334
335
|
return !1;
|
|
335
|
-
const [n, o] = e.uv.toArray(), [
|
|
336
|
-
return n >=
|
|
336
|
+
const [n, o] = e.uv.toArray(), [a, d, s, r] = i, h = 1 - d - r, m = a + s, l = h + r;
|
|
337
|
+
return n >= a && n <= m && o >= h && o <= l;
|
|
337
338
|
}
|
|
338
339
|
}
|
|
339
340
|
export {
|
|
340
|
-
|
|
341
|
+
qi as VideoMeshController
|
|
341
342
|
};
|
|
@@ -27,7 +27,7 @@ class p {
|
|
|
27
27
|
showDeleteButton(t) {
|
|
28
28
|
const { clientX: i, clientY: n, container: o = this.container, onClick: r } = t;
|
|
29
29
|
let e = this.deleteButton;
|
|
30
|
-
return e || (e = document.createElement("div"), e.style.position = "absolute", e.style.width = "20px", e.style.height = "20px", e.style.transform = "translate(-50%, -40px)", e.style.borderRadius = "50%", e.style.cursor = "pointer", e.style.zIndex = "9999", e.style.cursor = "pointer", e.style.userSelect = "none", e.style.display = "flex", e.style.alignItems = "center", e.style.justifyContent = "center", e.style.backgroundImage = "url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTciIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIxMC43MDYlIiB5MT0iNDIuNzQ0JSIgeDI9Ijg5LjA2NCUiIHkyPSI1Ny4yMDglIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBzdG9wLW9wYWNpdHk9IjAiIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBzdG9wLW9wYWNpdHk9Ii4zMDgiIG9mZnNldD0iNDkuNTY5JSIvPjxzdG9wIHN0b3AtY29sb3I9IiNGRkYiIHN0b3Atb3BhY2l0eT0iMCIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHJlY3QgeD0iLS4yNSIgeT0iLS4yNSIgd2lkdGg9IjU3LjUiIGhlaWdodD0iMjMuNSIgcng9IjExLjI1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDEpIiBmaWxsPSIjMkMyQzJDIiBzdHJva2U9InVybCgjcHJlZml4X19hKSIgc3Ryb2tlLXdpZHRoPSIuNSIgZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsLW9wYWNpdHk9Ii4zMDMiLz48L3N2Zz4=)", e.innerHTML = '<svg width="16px" height="17px" viewBox="0 0 16 17" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><linearGradient x1="22.185491%" y1="100%" x2="66.8316686%" y2="6.67239121%" id="1"><stop stop-color="#FFFCFC" stop-opacity="0.6"></stop><stop stop-color="#FFFFFF" offset="100%"></stop></linearGradient></defs> <path fill="url(#1)" fill-rule="nonzero" transform="translate(2.16 2.16)" d="M11.2979686,2.71818182 C11.611378,2.71818182 11.8654465,2.97561809 11.8654465,3.29318182 C11.8654465,3.58428191 11.6519584,3.82485822 11.374972,3.86293275 L11.2979686,3.86818182 L10.464,3.868 L9.7236795,10.6246222 C9.64153248,11.3737453 9.04854423,11.9512142 8.32013277,12.0165596 L8.18206028,12.0227273 L3.68338622,12.0227273 C2.89302127,12.0227273 2.22904821,11.4205655 2.141767,10.6246222 L2.141767,10.6246222 L1.4,3.868 L0.567477876,3.86818182 C0.254068499,3.86818182 0,3.61074555 0,3.29318182 C0,3.00208173 0.213488114,2.76150541 0.49047449,2.72343089 L0.567477876,2.71818182 L11.2979686,2.71818182 Z M9.322,3.868 L2.542,3.868 L3.26978106,10.4976259 C3.28762252,10.6603274 3.39528004,10.7928487 3.53932022,10.8467307 L3.61412483,10.866894 L3.68338622,10.8727273 L8.18206028,10.8727273 C8.39410941,10.8727273 8.57224853,10.7111717 8.59566544,10.4976259 L8.59566544,10.4976259 L9.322,3.868 Z M8.16824216,0 C8.48165153,0 8.73572003,0.257436269 8.73572003,0.575 C8.73572003,0.866100087 8.52223192,1.1066764 8.24524554,1.14475093 L8.16824216,1.15 L3.69720434,1.15 C3.38379497,1.15 3.12972647,0.892563731 3.12972647,0.575 C3.12972647,0.283899913 3.34321458,0.0433235966 3.62020096,0.00524907226 L3.69720434,0 L8.16824216,0 Z"></path></svg>'), this.deleteButton = e, o.appendChild(e), e.style.left = `${i}px`, e.style.top = `${n}px`, e.onclick = () => {
|
|
30
|
+
return e || (e = document.createElement("div"), e.style.position = "absolute", e.style.width = "20px", e.style.height = "20px", e.style.transform = "translate(-50%, -40px)", e.style.borderRadius = "50%", e.style.cursor = "pointer", e.style.zIndex = "9999", e.style.cursor = "pointer", e.style.userSelect = "none", e.style.display = "flex", e.style.pointerEvents = "auto", e.style.alignItems = "center", e.style.justifyContent = "center", e.style.backgroundImage = "url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTciIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIxMC43MDYlIiB5MT0iNDIuNzQ0JSIgeDI9Ijg5LjA2NCUiIHkyPSI1Ny4yMDglIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBzdG9wLW9wYWNpdHk9IjAiIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBzdG9wLW9wYWNpdHk9Ii4zMDgiIG9mZnNldD0iNDkuNTY5JSIvPjxzdG9wIHN0b3AtY29sb3I9IiNGRkYiIHN0b3Atb3BhY2l0eT0iMCIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHJlY3QgeD0iLS4yNSIgeT0iLS4yNSIgd2lkdGg9IjU3LjUiIGhlaWdodD0iMjMuNSIgcng9IjExLjI1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDEpIiBmaWxsPSIjMkMyQzJDIiBzdHJva2U9InVybCgjcHJlZml4X19hKSIgc3Ryb2tlLXdpZHRoPSIuNSIgZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsLW9wYWNpdHk9Ii4zMDMiLz48L3N2Zz4=)", e.innerHTML = '<svg width="16px" height="17px" viewBox="0 0 16 17" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><linearGradient x1="22.185491%" y1="100%" x2="66.8316686%" y2="6.67239121%" id="1"><stop stop-color="#FFFCFC" stop-opacity="0.6"></stop><stop stop-color="#FFFFFF" offset="100%"></stop></linearGradient></defs> <path fill="url(#1)" fill-rule="nonzero" transform="translate(2.16 2.16)" d="M11.2979686,2.71818182 C11.611378,2.71818182 11.8654465,2.97561809 11.8654465,3.29318182 C11.8654465,3.58428191 11.6519584,3.82485822 11.374972,3.86293275 L11.2979686,3.86818182 L10.464,3.868 L9.7236795,10.6246222 C9.64153248,11.3737453 9.04854423,11.9512142 8.32013277,12.0165596 L8.18206028,12.0227273 L3.68338622,12.0227273 C2.89302127,12.0227273 2.22904821,11.4205655 2.141767,10.6246222 L2.141767,10.6246222 L1.4,3.868 L0.567477876,3.86818182 C0.254068499,3.86818182 0,3.61074555 0,3.29318182 C0,3.00208173 0.213488114,2.76150541 0.49047449,2.72343089 L0.567477876,2.71818182 L11.2979686,2.71818182 Z M9.322,3.868 L2.542,3.868 L3.26978106,10.4976259 C3.28762252,10.6603274 3.39528004,10.7928487 3.53932022,10.8467307 L3.61412483,10.866894 L3.68338622,10.8727273 L8.18206028,10.8727273 C8.39410941,10.8727273 8.57224853,10.7111717 8.59566544,10.4976259 L8.59566544,10.4976259 L9.322,3.868 Z M8.16824216,0 C8.48165153,0 8.73572003,0.257436269 8.73572003,0.575 C8.73572003,0.866100087 8.52223192,1.1066764 8.24524554,1.14475093 L8.16824216,1.15 L3.69720434,1.15 C3.38379497,1.15 3.12972647,0.892563731 3.12972647,0.575 C3.12972647,0.283899913 3.34321458,0.0433235966 3.62020096,0.00524907226 L3.69720434,0 L8.16824216,0 Z"></path></svg>'), this.deleteButton = e, o.appendChild(e), e.style.left = `${i}px`, e.style.top = `${n}px`, e.onclick = () => {
|
|
31
31
|
o.removeChild(e), r();
|
|
32
32
|
}, e;
|
|
33
33
|
}
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -13,7 +13,7 @@ import "../shared-utils/three/core/Five_LineMaterial2.js";
|
|
|
13
13
|
import "../shared-utils/three/core/Sphere.js";
|
|
14
14
|
import "../vendor/animejs/lib/anime.es.js";
|
|
15
15
|
import { FiveUtil as m } from "../shared-utils/Utils/FiveUtil.js";
|
|
16
|
-
import { absoluteUrl as
|
|
16
|
+
import { absoluteUrl as p } from "../shared-utils/url/absoluteUrl.js";
|
|
17
17
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
18
18
|
import "../shared-utils/five/FivePuppet.js";
|
|
19
19
|
let E = class {
|
|
@@ -21,7 +21,7 @@ let E = class {
|
|
|
21
21
|
/**
|
|
22
22
|
* @realsee/dnalogel 版本号
|
|
23
23
|
*/
|
|
24
|
-
i(this, "VERSION", "3.63.
|
|
24
|
+
i(this, "VERSION", "3.63.3");
|
|
25
25
|
i(this, "NAME");
|
|
26
26
|
i(this, "five");
|
|
27
27
|
i(this, "workUtil");
|
|
@@ -52,7 +52,7 @@ let E = class {
|
|
|
52
52
|
* @description: 获取静态资源的url
|
|
53
53
|
*/
|
|
54
54
|
absoluteUrl(t) {
|
|
55
|
-
return
|
|
55
|
+
return p(this.staticPrefix, t);
|
|
56
56
|
}
|
|
57
57
|
onWorkCodeChange() {
|
|
58
58
|
}
|
|
@@ -20,7 +20,6 @@ export declare class WorkUtil extends BaseUtil {
|
|
|
20
20
|
get observers(): import("@realsee/five").WorkObserver[];
|
|
21
21
|
get transform(): THREE.Matrix4;
|
|
22
22
|
constructor(five: Five);
|
|
23
|
-
getResolvedObserver(observerIndex: number): import("@realsee/five").WorkResolvedObserver;
|
|
24
23
|
/**
|
|
25
24
|
* @description 获取全景点坐标
|
|
26
25
|
*/
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
var
|
|
2
|
-
var h = (s,
|
|
3
|
-
var
|
|
4
|
-
import { BaseUtil as
|
|
5
|
-
import * as
|
|
6
|
-
import { transformPosition as
|
|
1
|
+
var k = Object.defineProperty;
|
|
2
|
+
var h = (s, e, r) => e in s ? k(s, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : s[e] = r;
|
|
3
|
+
var f = (s, e, r) => (h(s, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
|
+
import { BaseUtil as m } from "./BaseUtil.js";
|
|
5
|
+
import * as d from "three";
|
|
6
|
+
import { transformPosition as a } from "../five/transformPosition.js";
|
|
7
7
|
const n = /* @__PURE__ */ new Map();
|
|
8
|
-
class
|
|
8
|
+
class v extends m {
|
|
9
9
|
constructor(r) {
|
|
10
10
|
super(r);
|
|
11
|
-
|
|
11
|
+
f(this, "_workCode");
|
|
12
12
|
}
|
|
13
13
|
get fromType() {
|
|
14
|
-
var
|
|
14
|
+
var t, i;
|
|
15
15
|
const r = this.workCode;
|
|
16
16
|
if (n.has(r))
|
|
17
17
|
return n.get(r);
|
|
18
|
-
const o = (i = (
|
|
18
|
+
const o = (i = (t = JSON.parse(this.work.raw.works[0])) == null ? void 0 : t.from_type) != null ? i : "vr";
|
|
19
19
|
return n.set(r, o), o;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
@@ -36,37 +36,34 @@ class c extends d {
|
|
|
36
36
|
*/
|
|
37
37
|
get work() {
|
|
38
38
|
var r, o;
|
|
39
|
-
return (o = (r = this.five.works) == null ? void 0 : r.find((
|
|
39
|
+
return (o = (r = this.five.works) == null ? void 0 : r.find((t) => t.workCode === this.workCode)) != null ? o : this.five.work;
|
|
40
40
|
}
|
|
41
41
|
get observers() {
|
|
42
42
|
var r;
|
|
43
43
|
return (r = this.work) == null ? void 0 : r.observers;
|
|
44
44
|
}
|
|
45
45
|
get transform() {
|
|
46
|
-
var o,
|
|
47
|
-
const r = (w = (o = this.work) == null ? void 0 : o.transform) != null ? w : (i = (
|
|
48
|
-
return r ? r.clone() : new
|
|
49
|
-
}
|
|
50
|
-
getResolvedObserver(r) {
|
|
51
|
-
return this.five.works.getResolvedObserver({ workCode: this.workCode, panoIndex: r });
|
|
46
|
+
var o, t, i, w;
|
|
47
|
+
const r = (w = (o = this.work) == null ? void 0 : o.transform) != null ? w : (i = (t = this.work) == null ? void 0 : t.options) == null ? void 0 : i.transform;
|
|
48
|
+
return r ? r.clone() : new d.Matrix4();
|
|
52
49
|
}
|
|
53
50
|
/**
|
|
54
51
|
* @description 获取全景点坐标
|
|
55
52
|
*/
|
|
56
53
|
getObserverPosition(r) {
|
|
57
|
-
var
|
|
58
|
-
const o = (
|
|
54
|
+
var t;
|
|
55
|
+
const o = (t = this.getObserver(r)) == null ? void 0 : t.position;
|
|
59
56
|
if (o)
|
|
60
|
-
return
|
|
57
|
+
return a(o, this.transform);
|
|
61
58
|
}
|
|
62
59
|
/**
|
|
63
60
|
* @description 获取全景点位和模型的地面坐标
|
|
64
61
|
*/
|
|
65
62
|
getObserverStandingPosition(r) {
|
|
66
|
-
var
|
|
67
|
-
const o = (
|
|
63
|
+
var t;
|
|
64
|
+
const o = (t = this.getObserver(r)) == null ? void 0 : t.standingPosition;
|
|
68
65
|
if (o)
|
|
69
|
-
return
|
|
66
|
+
return a(o, this.transform);
|
|
70
67
|
}
|
|
71
68
|
/**
|
|
72
69
|
* @description 获取observer
|
|
@@ -77,5 +74,5 @@ class c extends d {
|
|
|
77
74
|
}
|
|
78
75
|
}
|
|
79
76
|
export {
|
|
80
|
-
|
|
77
|
+
v as WorkUtil
|
|
81
78
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.63.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.63.3",
|
|
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",
|
|
@@ -38,23 +38,23 @@ interface Config {
|
|
|
38
38
|
export type PointSelectorConfig = Partial<Config>;
|
|
39
39
|
type EventMap = {
|
|
40
40
|
/**
|
|
41
|
-
* @description
|
|
41
|
+
* @description 与模型交点更新时触发,移出监听范围时为null
|
|
42
42
|
*/
|
|
43
43
|
intersectionUpdate: (intersection: PointIntersection | null) => void;
|
|
44
44
|
/**
|
|
45
|
-
* @description
|
|
45
|
+
* @description 试图打点,返回false则不打点
|
|
46
46
|
*/
|
|
47
47
|
wantsSelect: (intersection: PointIntersection) => boolean | void;
|
|
48
48
|
/**
|
|
49
|
-
* @description
|
|
49
|
+
* @description 打点成功
|
|
50
50
|
*/
|
|
51
51
|
select: (intersection: PointIntersection) => void;
|
|
52
52
|
/**
|
|
53
|
-
* @description
|
|
53
|
+
* @description 功能开启
|
|
54
54
|
*/
|
|
55
55
|
enable: () => void;
|
|
56
56
|
/**
|
|
57
|
-
* @description
|
|
57
|
+
* @description 功能关闭
|
|
58
58
|
*/
|
|
59
59
|
disable: () => void;
|
|
60
60
|
};
|
|
@@ -139,11 +139,14 @@ export declare class PointSelector extends Subscribe<EventMap> {
|
|
|
139
139
|
* @description: 鼠标进入five canvas时
|
|
140
140
|
*/
|
|
141
141
|
private onEnter;
|
|
142
|
+
/**
|
|
143
|
+
* @description: 鼠标进入five canvas时
|
|
144
|
+
*/
|
|
142
145
|
private onMouseEnter;
|
|
143
146
|
/**
|
|
144
147
|
* @description: 鼠标离开five canvas时
|
|
145
148
|
*/
|
|
146
|
-
private
|
|
149
|
+
private onMouseLeave;
|
|
147
150
|
private onMouseDown;
|
|
148
151
|
private onMouseUp;
|
|
149
152
|
private onTouchStart;
|
|
@@ -2,7 +2,7 @@ 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 E = (l, h, e) => h in l ? R(l, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[h] = e,
|
|
5
|
+
var E = (l, h, e) => h in l ? R(l, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[h] = e, P = (l, h) => {
|
|
6
6
|
for (var e in h || (h = {}))
|
|
7
7
|
Y.call(h, e) && E(l, e, h[e]);
|
|
8
8
|
if (N)
|
|
@@ -92,18 +92,19 @@ class se extends A {
|
|
|
92
92
|
/**
|
|
93
93
|
* @description: 鼠标进入five canvas时
|
|
94
94
|
*/
|
|
95
|
-
i(this, "onEnter", (
|
|
96
|
-
|
|
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);
|
|
95
|
+
i(this, "onEnter", () => {
|
|
96
|
+
this.cursorError || this.pointSelectorHelper.show(), this.outOfFive = !1;
|
|
99
97
|
});
|
|
98
|
+
/**
|
|
99
|
+
* @description: 鼠标进入five canvas时
|
|
100
|
+
*/
|
|
100
101
|
i(this, "onMouseEnter", () => {
|
|
101
|
-
this.onEnter();
|
|
102
|
+
this.onEnter(), this.emit("intersectionUpdate", this.position);
|
|
102
103
|
});
|
|
103
104
|
/**
|
|
104
105
|
* @description: 鼠标离开five canvas时
|
|
105
106
|
*/
|
|
106
|
-
i(this, "
|
|
107
|
+
i(this, "onMouseLeave", () => {
|
|
107
108
|
this.pointSelectorHelper.hide(), this.outOfFive = !0, this.emit("intersectionUpdate", null);
|
|
108
109
|
});
|
|
109
110
|
i(this, "onMouseDown", (e) => {
|
|
@@ -183,7 +184,7 @@ class se extends A {
|
|
|
183
184
|
const t = G(this.five, e);
|
|
184
185
|
let s = k(this.five, t);
|
|
185
186
|
if (s) {
|
|
186
|
-
if (this.plane && this.planeMode === "vertical" && (s = M(
|
|
187
|
+
if (this.plane && this.planeMode === "vertical" && (s = M(P({}, s), {
|
|
187
188
|
point: this.plane.projectPoint(s.point, new o.Vector3()),
|
|
188
189
|
face: new o.Face3(0, 0, 0, this.plane.normal.clone()),
|
|
189
190
|
originalPoint: s.point.clone()
|
|
@@ -229,11 +230,11 @@ class se extends A {
|
|
|
229
230
|
i(this, "updatePointSelectorHelperIntersect", (e) => {
|
|
230
231
|
var s, c, u, d, n, f, L, T;
|
|
231
232
|
if (!e) {
|
|
232
|
-
this.
|
|
233
|
+
this.onMouseLeave(), this.five.getElement().style.cursor = V;
|
|
233
234
|
return;
|
|
234
235
|
}
|
|
235
|
-
this.onEnter(
|
|
236
|
-
const t =
|
|
236
|
+
this.onEnter(), this.cursorError || (this.five.getElement().style.cursor = "");
|
|
237
|
+
const t = P({}, e);
|
|
237
238
|
if (this.adhereEnabled && this.mouseNdcPosition && this.five.renderer) {
|
|
238
239
|
const S = {
|
|
239
240
|
x: this.mouseNdcPosition.x,
|
|
@@ -254,11 +255,11 @@ class se extends A {
|
|
|
254
255
|
raycaster: new z(this.five.camera.position, e.point.clone().sub(this.five.camera.position).normalize()),
|
|
255
256
|
line: r,
|
|
256
257
|
clampToLine: !1
|
|
257
|
-
}),
|
|
258
|
-
if (
|
|
258
|
+
}), v = p.clone().project(this.five.camera);
|
|
259
|
+
if (v.z <= 1) {
|
|
259
260
|
const y = {
|
|
260
|
-
x: (
|
|
261
|
-
y: (1 -
|
|
261
|
+
x: (v.x + 1) / 2,
|
|
262
|
+
y: (1 - v.y) / 2
|
|
262
263
|
}, b = {
|
|
263
264
|
x: Math.abs(y.x - S.x) * H.width,
|
|
264
265
|
y: Math.abs(y.y - S.y) * H.height
|
|
@@ -276,12 +277,12 @@ class se extends A {
|
|
|
276
277
|
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
278
|
break;
|
|
278
279
|
} else {
|
|
279
|
-
const
|
|
280
|
-
if (
|
|
280
|
+
const v = a.clone().project(this.five.camera);
|
|
281
|
+
if (v.z > 1)
|
|
281
282
|
continue;
|
|
282
283
|
const y = this.five.renderer.getSize(new o.Vector2()), b = {
|
|
283
|
-
x: (
|
|
284
|
-
y: (1 -
|
|
284
|
+
x: (v.x + 1) / 2,
|
|
285
|
+
y: (1 - v.y) / 2
|
|
285
286
|
}, m = {
|
|
286
287
|
x: Math.abs(b.x - S.x) * y.width,
|
|
287
288
|
y: Math.abs(b.y - S.y) * y.height
|
|
@@ -327,15 +328,15 @@ class se extends A {
|
|
|
327
328
|
i(this, "emitIntersectionUpdate", (e) => {
|
|
328
329
|
this.emit("intersectionUpdate", e);
|
|
329
330
|
});
|
|
330
|
-
this.five = e, this.config =
|
|
331
|
+
this.five = e, this.config = P(P({}, this.config), t), this.actionIfNoIntersection = (d = (u = t == null ? void 0 : t.actionIfNoIntersection) != null ? u : t == null ? void 0 : t.actionIfNoModelUnderMouse) != null ? d : "virtualPoint";
|
|
331
332
|
const s = (n = t == null ? void 0 : t.mode) != null ? n : "auto";
|
|
332
333
|
s === "auto" ? this.mode = j ? "fixed" : "cursor" : this.mode = s;
|
|
333
334
|
const c = {
|
|
334
335
|
autoFixPCPosition: this.mode === "cursor",
|
|
335
336
|
initialPosition: this.mode === "fixed" ? { left: "35%", top: "20%" } : void 0
|
|
336
337
|
};
|
|
337
|
-
this.pointSelectorHelper = new C(this.five, M(
|
|
338
|
-
magnifierParams:
|
|
338
|
+
this.pointSelectorHelper = new C(this.five, M(P({}, t == null ? void 0 : t.helper), {
|
|
339
|
+
magnifierParams: P(P({}, c), (f = t == null ? void 0 : t.helper) == null ? void 0 : f.magnifierParams)
|
|
339
340
|
})), this.pointSelectorHelper.hide();
|
|
340
341
|
}
|
|
341
342
|
get position() {
|
|
@@ -372,14 +373,14 @@ class se extends A {
|
|
|
372
373
|
const e = this.five.getElement();
|
|
373
374
|
if (!e)
|
|
374
375
|
throw new Error("five element not found");
|
|
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.
|
|
376
|
+
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.onMouseLeave), 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");
|
|
376
377
|
}
|
|
377
378
|
disable() {
|
|
378
379
|
if (!this.enabled)
|
|
379
380
|
return;
|
|
380
381
|
this.enabled = !1, this.adherePoints = null, this.adhereLine = [], this.adherePlane = [], this.plane = void 0, this.pointSelectorHelper.disable(), this.five.getElement().style.cursor = "";
|
|
381
382
|
const e = this.five.getElement();
|
|
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.
|
|
383
|
+
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.onMouseLeave), 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");
|
|
383
384
|
}
|
|
384
385
|
dispose() {
|
|
385
386
|
this.disable(), this.pointSelectorHelper.dispose();
|