@realsee/dnalogel 3.64.8 → 3.64.9-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/MeasurePlugin/Controller.d.ts +1 -0
- package/dist/Sculpt/utils/renderDom.d.ts +1 -1
- package/dist/index.cjs.js +18 -18
- package/dist/index.js +323 -301
- package/dist/index.umd.js +18 -18
- 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 +2 -2
- 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 +5 -5
- 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.ExtraRouteData.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/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/SculptType.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/GuideLinePluginType.RouteConfig.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/MeasurePluginConfig.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/SculptType.Theme.html +2 -2
- 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.d.ts +1 -0
- package/libs/MeasurePlugin/Controller.js +122 -102
- package/libs/Sculpt/Meshes/Line.js +17 -15
- package/libs/Sculpt/utils/renderDom.d.ts +1 -1
- package/libs/base/BasePlugin.js +3 -3
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.js +17 -17
- package/package.json +1 -1
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
var
|
|
1
|
+
var D = Object.defineProperty, _ = Object.defineProperties;
|
|
2
2
|
var L = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var w = Object.getOwnPropertySymbols;
|
|
4
4
|
var k = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var E = (c, s, e) => s in c ? D(c, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[s] = e, y = (c, s) => {
|
|
6
6
|
for (var e in s || (s = {}))
|
|
7
|
-
k.call(s, e) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
F.call(s, e) &&
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
import * as
|
|
7
|
+
k.call(s, e) && E(c, e, s[e]);
|
|
8
|
+
if (w)
|
|
9
|
+
for (var e of w(s))
|
|
10
|
+
F.call(s, e) && E(c, e, s[e]);
|
|
11
|
+
return c;
|
|
12
|
+
}, P = (c, s) => _(c, L(s));
|
|
13
|
+
var i = (c, s, e) => (E(c, typeof s != "symbol" ? s + "" : s, e), e);
|
|
14
|
+
import * as a from "three";
|
|
15
15
|
import "../shared-utils/tag.js";
|
|
16
16
|
import "../vendor/hammerjs/hammer.js";
|
|
17
17
|
import { Subscribe as H } from "../shared-utils/Subscribe.js";
|
|
18
18
|
import { PointSelector as C } from "../shared-utils/three/PointSelector/index.js";
|
|
19
19
|
import "../shared-utils/three/CSS3DRenderer/index.js";
|
|
20
20
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
21
|
-
import { IObject3D as
|
|
21
|
+
import { IObject3D as I } from "../shared-utils/three/IObject3D.js";
|
|
22
22
|
import "@realsee/five/line";
|
|
23
23
|
import "../shared-utils/three/core/Five_LineMaterial2.js";
|
|
24
24
|
import "../shared-utils/three/core/Sphere.js";
|
|
25
25
|
import "../vendor/animejs/lib/anime.es.js";
|
|
26
|
-
import { FiveDomEvents as
|
|
26
|
+
import { FiveDomEvents as x } from "../shared-utils/five/FiveDomEvents.js";
|
|
27
27
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
28
28
|
import "../shared-utils/five/FivePuppet.js";
|
|
29
|
-
import { MeasureMesh as
|
|
30
|
-
import { PointMesh as
|
|
31
|
-
import { LineWithDotsMesh as
|
|
32
|
-
import { hotkeys as
|
|
33
|
-
import { PolygonMesh as
|
|
34
|
-
import { validatePolygon as
|
|
35
|
-
import { Cursor as
|
|
29
|
+
import { MeasureMesh as U } from "./utils/MeasureMesh.js";
|
|
30
|
+
import { PointMesh as T } from "../Sculpt/Meshes/Point.js";
|
|
31
|
+
import { LineWithDotsMesh as b } from "../Sculpt/Meshes/LineWithDots.js";
|
|
32
|
+
import { hotkeys as d } from "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
33
|
+
import { PolygonMesh as V } from "../Sculpt/Meshes/Polygon.js";
|
|
34
|
+
import { validatePolygon as z } from "./utils/validatePolygon.js";
|
|
35
|
+
import { Cursor as A } from "../Sculpt/utils/Modules/Cursor.js";
|
|
36
|
+
import { THREERaycaster as R } from "../shared-utils/three/core/Raycaster.js";
|
|
36
37
|
import "../shared-utils/positionToVector3.js";
|
|
37
38
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
38
39
|
import "../shared-utils/five/getFiveModel.js";
|
|
@@ -41,7 +42,6 @@ import "../shared-utils/Utils/BaseUtil.js";
|
|
|
41
42
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
42
43
|
import "../shared-utils/five/transformPosition.js";
|
|
43
44
|
import "../shared-utils/three/temp.js";
|
|
44
|
-
import "../shared-utils/three/core/Raycaster.js";
|
|
45
45
|
import "../shared-utils/dom/resizeObserver.js";
|
|
46
46
|
import "../shared-utils/five/fiveEveryReadyListener.js";
|
|
47
47
|
import "../shared-utils/throttle.js";
|
|
@@ -88,23 +88,23 @@ import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
|
88
88
|
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
89
89
|
import "../shared-utils/three/geometryUtil.js";
|
|
90
90
|
import "../shared-utils/three/vectorIsEqual.js";
|
|
91
|
-
class
|
|
91
|
+
class ct extends H {
|
|
92
92
|
constructor(e, t) {
|
|
93
93
|
super();
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
94
|
+
i(this, "name", "MeasurePlugin");
|
|
95
|
+
i(this, "currentMeasureMesh");
|
|
96
|
+
i(this, "five");
|
|
97
|
+
i(this, "group");
|
|
98
|
+
i(this, "_pointSelector");
|
|
99
|
+
i(this, "_fiveDomEvents");
|
|
100
|
+
i(this, "_cursor");
|
|
101
|
+
i(this, "_config");
|
|
102
|
+
i(this, "lineStyle", {
|
|
103
103
|
lengthEnable: !0,
|
|
104
104
|
occlusionVisibility: !0,
|
|
105
105
|
lengthUnit: "m"
|
|
106
106
|
});
|
|
107
|
-
|
|
107
|
+
i(this, "polygonStyle", {
|
|
108
108
|
lengthEnable: !0,
|
|
109
109
|
occlusionVisibility: !0,
|
|
110
110
|
opacity: 0.2,
|
|
@@ -113,148 +113,168 @@ class ht extends H {
|
|
|
113
113
|
/**
|
|
114
114
|
* @description 开始测量
|
|
115
115
|
*/
|
|
116
|
-
|
|
117
|
-
this.listener.addMeasureListener(), this.listener.removeClickListener(), this.group.children.forEach((
|
|
118
|
-
const e = new
|
|
116
|
+
i(this, "measure", () => {
|
|
117
|
+
this.listener.addMeasureListener(), this.listener.removeClickListener(), this.group.children.forEach((n) => n.unselect()), this.cursor.removeDeleteButton();
|
|
118
|
+
const e = new U({
|
|
119
119
|
lineStyle: this.lineStyle,
|
|
120
120
|
polygonStyle: this.polygonStyle
|
|
121
121
|
});
|
|
122
122
|
this.currentMeasureMesh = e, this.pointSelector.actionIfNoIntersection = "disable", this.updateSelectAdsorbedHelper();
|
|
123
|
-
const t = new
|
|
124
|
-
t.removeFromParent(),
|
|
123
|
+
const t = new T(), r = new b(P(y({}, this.lineStyle), { dashed: !0 })), o = new V(this.polygonStyle), h = new b(P(y({}, this.lineStyle), { lineOpacity: 0.5, dashed: !0 })), p = new b(P(y({}, this.lineStyle), { lineOpacity: 0.5, dashed: !0 })), m = () => {
|
|
124
|
+
t.removeFromParent(), r.removeFromParent(), o.removeFromParent(), h.removeFromParent(), p.removeFromParent();
|
|
125
125
|
};
|
|
126
126
|
this.group.add(e);
|
|
127
|
-
const
|
|
128
|
-
if (!
|
|
129
|
-
|
|
127
|
+
const v = (n) => {
|
|
128
|
+
if (!n) {
|
|
129
|
+
m();
|
|
130
130
|
return;
|
|
131
131
|
}
|
|
132
|
-
if (e.points.length === 0 && (this.pointSelector.actionIfNoIntersection = "disable", this.group.addIfNotExists(t), t.position.copy(
|
|
133
|
-
if (this.pointSelector.actionIfNoIntersection = "virtualPoint", t.removeFromParent(), this.group.addIfNotExists(
|
|
134
|
-
|
|
132
|
+
if (e.points.length === 0 && (this.pointSelector.actionIfNoIntersection = "disable", this.group.addIfNotExists(t), t.position.copy(n.point)), e.points.length >= 1)
|
|
133
|
+
if (this.pointSelector.actionIfNoIntersection = "virtualPoint", t.removeFromParent(), this.group.addIfNotExists(r), r.setPoints([e.points.at(-1), n.point]), n.isAdsorbed)
|
|
134
|
+
h.removeFromParent(), p.removeFromParent();
|
|
135
135
|
else {
|
|
136
136
|
const l = e.points.at(-1);
|
|
137
|
-
if (Math.abs(
|
|
138
|
-
const
|
|
139
|
-
|
|
137
|
+
if (Math.abs(n.point.y - l.y) > 0.2) {
|
|
138
|
+
const u = new a.Vector3(n.point.x, l.y, n.point.z);
|
|
139
|
+
h.setPoints([l, u]), p.setPoints([u, n.point]);
|
|
140
140
|
} else {
|
|
141
|
-
let
|
|
142
|
-
Math.abs(
|
|
141
|
+
let u = new a.Vector3();
|
|
142
|
+
Math.abs(n.point.x - l.x) < Math.abs(n.point.z - l.z) ? u = new a.Vector3(n.point.x, l.y, l.z) : u = new a.Vector3(l.x, l.y, n.point.z), h.setPoints([l, u]), p.setPoints([u, n.point]);
|
|
143
143
|
}
|
|
144
|
-
this.group.addIfNotExists(
|
|
144
|
+
this.group.addIfNotExists(h, p);
|
|
145
145
|
}
|
|
146
146
|
if (e.points.length >= 2) {
|
|
147
|
-
const l = [...e.points,
|
|
148
|
-
|
|
147
|
+
const l = [...e.points, n.point];
|
|
148
|
+
z(l) ? (o.setPoints(l), this.group.addIfNotExists(o)) : o.removeFromParent();
|
|
149
149
|
}
|
|
150
|
-
},
|
|
151
|
-
|
|
152
|
-
},
|
|
153
|
-
var
|
|
154
|
-
e == null || e.setPoints(e.points.slice(0, -1)),
|
|
155
|
-
},
|
|
156
|
-
this.pointSelector.off("intersectionUpdate",
|
|
150
|
+
}, f = (n) => {
|
|
151
|
+
n && (m(), e.setPoints([...e.points, n.point]), this.updateSelectAdsorbedHelper(), e.isPolygon && this.pointSelector.disable());
|
|
152
|
+
}, M = () => {
|
|
153
|
+
var n, l;
|
|
154
|
+
e == null || e.setPoints(e.points.slice(0, -1)), m(), (l = (n = this.pointSelector.pointSelectorHelper) == null ? void 0 : n.magnifier) == null || l.render(), this.updateSelectAdsorbedHelper(), this.five.needsRender = !0;
|
|
155
|
+
}, g = () => {
|
|
156
|
+
this.pointSelector.off("intersectionUpdate", v), this.pointSelector.off("select", f), this.pointSelector.off("disable", g), this.off("undo", M), m(), e.points.length < 2 && e.removeFromParent(), e.__five_pano_index = this.five.panoIndex, this.currentMeasureMesh = null, this.listener.addClickListener(), this.listener.removeMeasureListener(), this.emit("measureEnd");
|
|
157
157
|
};
|
|
158
|
-
this.on("undo",
|
|
158
|
+
this.on("undo", M), this.pointSelector.on("intersectionUpdate", v), this.pointSelector.on("select", f), this.pointSelector.on("disable", g), this.pointSelector.enable();
|
|
159
159
|
});
|
|
160
160
|
/**
|
|
161
161
|
* @description 结束测量
|
|
162
162
|
*/
|
|
163
|
-
|
|
163
|
+
i(this, "endMeasure", () => {
|
|
164
164
|
this.pointSelector.disable();
|
|
165
165
|
});
|
|
166
166
|
/**
|
|
167
167
|
* @description 取消本次测量
|
|
168
168
|
*/
|
|
169
|
-
|
|
169
|
+
i(this, "cancel", () => {
|
|
170
170
|
var e;
|
|
171
171
|
(e = this.currentMeasureMesh) == null || e.removeFromParent(), this.pointSelector.disable();
|
|
172
172
|
});
|
|
173
173
|
/**
|
|
174
174
|
* @description 撤销上一步
|
|
175
175
|
*/
|
|
176
|
-
|
|
176
|
+
i(this, "undo", () => {
|
|
177
177
|
this.emit("undo");
|
|
178
178
|
});
|
|
179
179
|
/**
|
|
180
180
|
* @description 清空正在测量的内容
|
|
181
181
|
*/
|
|
182
|
-
|
|
182
|
+
i(this, "clearCurrentMeasure", () => {
|
|
183
183
|
var e;
|
|
184
184
|
(e = this.currentMeasureMesh) == null || e.removeFromParent(), this.currentMeasureMesh = null, this.pointSelector.disable();
|
|
185
185
|
});
|
|
186
186
|
/**
|
|
187
187
|
* @description 清空所有测量内容
|
|
188
188
|
*/
|
|
189
|
-
|
|
189
|
+
i(this, "clear", () => {
|
|
190
190
|
this.currentMeasureMesh = null, this.pointSelector.disable(), this.group.removeChildren(), this.cursor.removeDeleteButton();
|
|
191
191
|
});
|
|
192
|
-
|
|
192
|
+
i(this, "dispose", () => {
|
|
193
193
|
this.listener.removeMeasureListener(), this.listener.removeClickListener(), this.pointSelector.disable(), this.clear();
|
|
194
194
|
});
|
|
195
195
|
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
196
|
-
|
|
196
|
+
i(this, "listener", {
|
|
197
197
|
// 点击事件
|
|
198
198
|
addClickListener: () => {
|
|
199
199
|
this.group.children.forEach((e) => {
|
|
200
200
|
var t;
|
|
201
|
-
(t = e.line.doms) == null || t.forEach((
|
|
202
|
-
|
|
203
|
-
}), e.polygon.areaDom && (e.polygon.areaDom.container.onclick = (
|
|
201
|
+
(t = e.line.doms) == null || t.forEach((r) => {
|
|
202
|
+
r.container.onclick = (o) => this.onClick({ origDomEvent: o, target: e }), r.container.onmouseenter = () => this.onHover({ target: e }), r.container.onmouseleave = () => this.onUnHover({ target: e });
|
|
203
|
+
}), e.polygon.areaDom && (e.polygon.areaDom.container.onclick = (r) => this.onClick({ origDomEvent: r, target: e }), e.polygon.areaDom.container.onmouseenter = () => this.onHover({ target: e }), e.polygon.areaDom.container.onmouseleave = () => this.onUnHover({ target: e })), this.fiveDomEvents.addEventListener(e, "click", this.onClick), this.fiveDomEvents.addEventListener(e, "hover", this.onHover), this.fiveDomEvents.addEventListener(e, "unHover", this.onUnHover), this.five.on("panoArrived", this.onMoveToPano), d("delete, backspace", this.deleteSelectedMesh);
|
|
204
204
|
});
|
|
205
205
|
},
|
|
206
206
|
removeClickListener: () => {
|
|
207
207
|
this.group.children.forEach((e) => {
|
|
208
|
-
var t,
|
|
209
|
-
(t = e.line.doms) == null || t.forEach((
|
|
210
|
-
|
|
211
|
-
}), (
|
|
212
|
-
}), this.fiveDomEvents.clear(),
|
|
208
|
+
var t, r;
|
|
209
|
+
(t = e.line.doms) == null || t.forEach((o) => {
|
|
210
|
+
o != null && o.container && (o.container.onclick = null, o.container.onmouseenter = null, o.container.onmouseleave = null);
|
|
211
|
+
}), (r = e.polygon.areaDom) != null && r.container && (e.polygon.areaDom.container.onclick = null, e.polygon.areaDom.container.onmouseenter = null, e.polygon.areaDom.container.onmouseleave = null);
|
|
212
|
+
}), this.fiveDomEvents.clear(), this.five.off("panoArrived", this.onMoveToPano), d.unbind("delete, backspace");
|
|
213
213
|
},
|
|
214
214
|
// 绘制快捷键
|
|
215
215
|
addMeasureListener: () => {
|
|
216
|
-
|
|
216
|
+
d("ctrl+z, command+z", this.undo), d("esc", this.cancel), d("enter", this.endMeasure), this.five.on("mode.change", this.endMeasure), this.five.on("model.changeShownFloor", this.endMeasure);
|
|
217
217
|
},
|
|
218
218
|
removeMeasureListener: () => {
|
|
219
|
-
|
|
219
|
+
d.unbind("ctrl+z, command+z"), d.unbind("esc"), d.unbind("enter"), this.five.off("mode.change", this.endMeasure), this.five.off("model.changeShownFloor", this.endMeasure);
|
|
220
220
|
}
|
|
221
221
|
});
|
|
222
|
-
|
|
223
|
-
const
|
|
224
|
-
|
|
222
|
+
i(this, "onMoveToPano", (e) => {
|
|
223
|
+
const t = this.group.children.filter((o) => o !== this.currentMeasureMesh), r = new R();
|
|
224
|
+
t.forEach((o) => {
|
|
225
|
+
var p;
|
|
226
|
+
if (o.unselect(), o.__five_pano_index === e) {
|
|
227
|
+
o.visible = !0;
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
((p = o.line.points) == null ? void 0 : p.some((m) => {
|
|
231
|
+
var S, u;
|
|
232
|
+
const v = m.clone().sub(this.five.camera.position).normalize();
|
|
233
|
+
r.set(this.five.camera.position, v);
|
|
234
|
+
const f = (u = (S = this.five.model.intersectRaycaster(r, void 0, !0)) == null ? void 0 : S[0]) == null ? void 0 : u.point;
|
|
235
|
+
if (!f)
|
|
236
|
+
return !0;
|
|
237
|
+
const M = 0.01, g = m.distanceTo(this.five.camera.position);
|
|
238
|
+
return f.distanceTo(this.five.camera.position) + M > g;
|
|
239
|
+
})) ? o.visible = !0 : o.visible = !1, this.five.needsRender = !0;
|
|
240
|
+
});
|
|
241
|
+
});
|
|
242
|
+
i(this, "onClick", ({ origDomEvent: e, target: t }) => {
|
|
243
|
+
const r = t;
|
|
244
|
+
if (!r)
|
|
225
245
|
return;
|
|
226
|
-
let
|
|
227
|
-
if (e instanceof TouchEvent ? (
|
|
246
|
+
let o, h;
|
|
247
|
+
if (e instanceof TouchEvent ? (o = e.touches[0].clientX, h = e.touches[0].clientY) : e instanceof MouseEvent && (o = e.clientX, h = e.clientY), o === void 0 || h === void 0)
|
|
228
248
|
return;
|
|
229
|
-
this.group.children.forEach((
|
|
230
|
-
const
|
|
231
|
-
|
|
249
|
+
this.group.children.forEach((m) => m.unselect()), r.select();
|
|
250
|
+
const p = () => {
|
|
251
|
+
r.removeFromParent(), this.cursor.removeDeleteButton(), this.five.needsRender = !0, d.unbind("delete, backspace");
|
|
232
252
|
};
|
|
233
253
|
this.cursor.showDeleteButton({
|
|
234
|
-
clientX:
|
|
235
|
-
clientY:
|
|
254
|
+
clientX: o,
|
|
255
|
+
clientY: h,
|
|
236
256
|
container: this.five.getElement().parentElement,
|
|
237
|
-
onClick:
|
|
257
|
+
onClick: p
|
|
238
258
|
}), this.five.once("cameraUpdate", () => {
|
|
239
|
-
|
|
259
|
+
r.unselect(), this.cursor.removeDeleteButton();
|
|
240
260
|
});
|
|
241
261
|
});
|
|
242
|
-
|
|
262
|
+
i(this, "onHover", ({ target: e }) => {
|
|
243
263
|
if (this.currentMeasureMesh)
|
|
244
264
|
return;
|
|
245
265
|
const t = e;
|
|
246
266
|
t && t.hover();
|
|
247
267
|
});
|
|
248
|
-
|
|
268
|
+
i(this, "onUnHover", ({ target: e }) => {
|
|
249
269
|
if (this.currentMeasureMesh)
|
|
250
270
|
return;
|
|
251
271
|
const t = e;
|
|
252
272
|
t && t.unhover();
|
|
253
273
|
});
|
|
254
|
-
|
|
274
|
+
i(this, "deleteSelectedMesh", () => {
|
|
255
275
|
this.group.children.filter((t) => t.selected).forEach((t) => t.removeFromParent()), this.five.needsRender = !0;
|
|
256
276
|
});
|
|
257
|
-
|
|
277
|
+
i(this, "updateSelectAdsorbedHelper", () => {
|
|
258
278
|
if (!this.currentMeasureMesh || this.currentMeasureMesh.points.length === 0) {
|
|
259
279
|
this.pointSelector.setAdherePoints(null), this.pointSelector.adhereLine = [], this.pointSelector.adherePlane = [];
|
|
260
280
|
return;
|
|
@@ -263,13 +283,13 @@ class ht extends H {
|
|
|
263
283
|
this.pointSelector.setAdherePoints([this.currentMeasureMesh.points[0]]);
|
|
264
284
|
const e = this.currentMeasureMesh.points.at(-1);
|
|
265
285
|
this.pointSelector.adhereLine = [
|
|
266
|
-
new
|
|
267
|
-
new
|
|
268
|
-
new
|
|
286
|
+
new a.Line3(new a.Vector3(1, 0, 0).add(e), new a.Vector3(-1, 0, 0).add(e)),
|
|
287
|
+
new a.Line3(new a.Vector3(0, 1, 0).add(e), new a.Vector3(0, -1, 0).add(e)),
|
|
288
|
+
new a.Line3(new a.Vector3(0, 0, 1).add(e), new a.Vector3(0, 0, -1).add(e))
|
|
269
289
|
], this.pointSelector.adherePlane = [];
|
|
270
290
|
}
|
|
271
291
|
if (this.currentMeasureMesh.points.length >= 3) {
|
|
272
|
-
const e = new
|
|
292
|
+
const e = new a.Plane().setFromCoplanarPoints(
|
|
273
293
|
this.currentMeasureMesh.points[0],
|
|
274
294
|
this.currentMeasureMesh.points[1],
|
|
275
295
|
this.currentMeasureMesh.points[2]
|
|
@@ -278,25 +298,25 @@ class ht extends H {
|
|
|
278
298
|
} else
|
|
279
299
|
this.pointSelector.adherePlane = [];
|
|
280
300
|
});
|
|
281
|
-
this.five = e, this.config = t != null ? t : { unit: "
|
|
301
|
+
this.five = e, this.config = t != null ? t : { unit: "m" }, this.group = new I(), this.group.name = "MeasureGroup", this.five.scene.add(this.group);
|
|
282
302
|
}
|
|
283
303
|
get pointSelector() {
|
|
284
304
|
return this._pointSelector ? this._pointSelector : (this._pointSelector = new C(this.five, { mode: "cursor", helper: { pointHelper: "highlight" } }), this._pointSelector);
|
|
285
305
|
}
|
|
286
306
|
get fiveDomEvents() {
|
|
287
|
-
return this._fiveDomEvents ? this._fiveDomEvents : (this._fiveDomEvents = new
|
|
307
|
+
return this._fiveDomEvents ? this._fiveDomEvents : (this._fiveDomEvents = new x(this.five, { fiveModels: null }), this._fiveDomEvents);
|
|
288
308
|
}
|
|
289
309
|
get cursor() {
|
|
290
|
-
return this._cursor ? this._cursor : (this._cursor = new
|
|
310
|
+
return this._cursor ? this._cursor : (this._cursor = new A(), this._cursor);
|
|
291
311
|
}
|
|
292
312
|
get config() {
|
|
293
313
|
return this._config;
|
|
294
314
|
}
|
|
295
315
|
set config(e) {
|
|
296
|
-
var t,
|
|
297
|
-
this._config = e, this.lineStyle.lengthUnit = e.unit, this.polygonStyle.lengthUnit = e.unit, (
|
|
316
|
+
var t, r;
|
|
317
|
+
this._config = e, this.lineStyle.lengthUnit = e.unit, this.polygonStyle.lengthUnit = e.unit, (r = (t = this.group) == null ? void 0 : t.children) == null || r.forEach((o) => o.changeConfig({ lineStyle: this.lineStyle, polygonStyle: this.polygonStyle }));
|
|
298
318
|
}
|
|
299
319
|
}
|
|
300
320
|
export {
|
|
301
|
-
|
|
321
|
+
ct as MeasureController
|
|
302
322
|
};
|
|
@@ -31,12 +31,12 @@ import { transformUnit as A } from "../utils/unit.js";
|
|
|
31
31
|
import { RenderDom as u } from "../utils/renderDom.js";
|
|
32
32
|
import "../../shared-utils/three/core/Sphere.js";
|
|
33
33
|
import "../../vendor/animejs/lib/anime.es.js";
|
|
34
|
-
import { notNil as
|
|
34
|
+
import { notNil as c } from "../../shared-utils/isNil.js";
|
|
35
35
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
36
36
|
import "../../shared-utils/five/FivePuppet.js";
|
|
37
37
|
class ae extends B {
|
|
38
38
|
constructor(e) {
|
|
39
|
-
var h, m,
|
|
39
|
+
var h, m, d, a;
|
|
40
40
|
super();
|
|
41
41
|
o(this, "name", "LineMesh");
|
|
42
42
|
o(this, "type", "Line2");
|
|
@@ -67,8 +67,10 @@ class ae extends B {
|
|
|
67
67
|
const s = {
|
|
68
68
|
color: new y.Color((h = e == null ? void 0 : e.lineColor) != null ? h : I),
|
|
69
69
|
linewidth: (m = e == null ? void 0 : e.lineWidth) != null ? m : C,
|
|
70
|
-
dashScale:
|
|
71
|
-
|
|
70
|
+
dashScale: 1,
|
|
71
|
+
dashSize: 0.02,
|
|
72
|
+
gapSize: 0.02,
|
|
73
|
+
opacity: (d = e == null ? void 0 : e.lineOpacity) != null ? d : 1,
|
|
72
74
|
depthWrite: !1,
|
|
73
75
|
transparent: !0
|
|
74
76
|
}, i = new P(S(f({}, s), { dashed: !1, depthTest: !0 })), t = new j(S(f({}, s), { dashed: !0, depthTest: !1 }));
|
|
@@ -137,7 +139,7 @@ class ae extends B {
|
|
|
137
139
|
setPoints(e) {
|
|
138
140
|
if (this.points.length === 0 && e.length === 0)
|
|
139
141
|
return;
|
|
140
|
-
const s = e.map(R).filter(
|
|
142
|
+
const s = e.map(R).filter(c);
|
|
141
143
|
if (this.points = s, s.length < 2) {
|
|
142
144
|
const t = new H();
|
|
143
145
|
this.line1.geometry = t, this.line2.geometry = t, this.updateDomItems();
|
|
@@ -158,13 +160,13 @@ class ae extends B {
|
|
|
158
160
|
(t.x !== e || t.y !== s) && (t.set(e, s), this.needsRender = !0);
|
|
159
161
|
}
|
|
160
162
|
setStyle(e) {
|
|
161
|
-
var t, h, m,
|
|
162
|
-
if (this.paramsStyle = f(f({}, this.paramsStyle), e),
|
|
163
|
+
var t, h, m, d;
|
|
164
|
+
if (this.paramsStyle = f(f({}, this.paramsStyle), e), c(e.lineColor)) {
|
|
163
165
|
const a = new y.Color(e.lineColor);
|
|
164
166
|
this.line1.material.three_color = a, this.line2.material.three_color = a;
|
|
165
167
|
}
|
|
166
|
-
|
|
167
|
-
const s = (h = (t = e.occlusionVisibility) != null ? t : this.paramsStyle.occlusionVisibility) != null ? h : !0, i = (
|
|
168
|
+
c(e.lineWidth) && (this.line1.material.linewidth = e.lineWidth, this.line2.material.linewidth = e.lineWidth), c(e.dashed) && (this.line1.material.dashed = e.dashed), c(e.lineOpacity) && (this.line1.material.opacity = e.lineOpacity, this.line2.material.opacity = e.lineOpacity), this.updateDomItems();
|
|
169
|
+
const s = (h = (t = e.occlusionVisibility) != null ? t : this.paramsStyle.occlusionVisibility) != null ? h : !0, i = (d = (m = e.occlusionMode) != null ? m : this.paramsStyle.occlusionMode) != null ? d : "translucence";
|
|
168
170
|
s ? this.dashed ? (this.remove(this.line2), this.line1.material.dashed = !0, this.line1.material.depthTest = !1) : i === "depthTest" ? (this.remove(this.line2), this.line1.material.dashed = !1, this.line1.material.depthTest = !1) : i === "translucence" && (this.line1.material.depthTest = !0, this.line2.material.depthTest = !1, this.line1.material.dashed = !0, this.line2.material.dashed = !0, this.addIfNotExists(this.line2)) : (this.remove(this.line2), this.line1.material.depthTest = !0, this.line1.material.dashed = this.paramsStyle.dashed), this.doms.forEach((a) => a.intersectCheck = !s), this.needsRender = !0;
|
|
169
171
|
}
|
|
170
172
|
highlight(e) {
|
|
@@ -180,7 +182,7 @@ class ae extends B {
|
|
|
180
182
|
this.needsRender = !0;
|
|
181
183
|
}
|
|
182
184
|
unhighlight() {
|
|
183
|
-
this.highlighted && (this.highlighted = !1,
|
|
185
|
+
this.highlighted && (this.highlighted = !1, c(this.opacityBeforeHighlight) && (this.line1.material.opacity = this.opacityBeforeHighlight, this.line2.material.opacity = this.line1.material.opacity, this.opacityBeforeHighlight = void 0), c(this.colorBeforeHighlight) && (this.line1.material.three_color = this.colorBeforeHighlight, this.line2.material.three_color = this.colorBeforeHighlight, this.colorBeforeHighlight = void 0), this.needsRender = !0);
|
|
184
186
|
}
|
|
185
187
|
updateDomItems() {
|
|
186
188
|
const e = () => {
|
|
@@ -193,7 +195,7 @@ class ae extends B {
|
|
|
193
195
|
const s = this.points.map((i, t) => {
|
|
194
196
|
if (t !== 0)
|
|
195
197
|
return [this.points[t - 1], i];
|
|
196
|
-
}).filter(
|
|
198
|
+
}).filter(c).map((i) => L(this, i));
|
|
197
199
|
s.forEach(([i, t], h) => {
|
|
198
200
|
var a;
|
|
199
201
|
const m = x(i, t);
|
|
@@ -202,17 +204,17 @@ class ae extends B {
|
|
|
202
204
|
const n = new W(this.five), g = (_ = this.paramsStyle.occlusionVisibility) != null ? _ : !0;
|
|
203
205
|
return n.intersectCheck = !g, n.simulate3D = !0, n;
|
|
204
206
|
})(), this.doms[h].setPosition(m, [i, t]);
|
|
205
|
-
const
|
|
207
|
+
const d = (n) => {
|
|
206
208
|
var g;
|
|
207
209
|
this.doms[h].__text !== n && (this.doms[h].__text = n, n instanceof HTMLElement ? (this.doms[h].container.innerHTML = "", this.doms[h].container.appendChild(n)) : n ? this.doms[h].container.innerHTML = V(n, {
|
|
208
|
-
style: `color: #${
|
|
210
|
+
style: `color: #${c((g = this.style) == null ? void 0 : g.lineColor) ? new y.Color(this.style.lineColor).getHexString() : "ffffff"}`
|
|
209
211
|
}) : this.doms[h].container.innerHTML = "");
|
|
210
212
|
};
|
|
211
213
|
if (this.paramsStyle.tip)
|
|
212
|
-
|
|
214
|
+
d(this.paramsStyle.tip);
|
|
213
215
|
else {
|
|
214
216
|
const n = A(i.distanceTo(t), this.paramsStyle.lengthUnit);
|
|
215
|
-
|
|
217
|
+
d(n || null);
|
|
216
218
|
}
|
|
217
219
|
}), this.doms.length > s.length && (this.doms.slice(s.length).forEach((i) => i.destroy()), this.doms.length = s.length);
|
|
218
220
|
}
|
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 a } 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.64.
|
|
24
|
+
i(this, "VERSION", "3.64.9-alpha.1");
|
|
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 a(this.staticPrefix, t);
|
|
56
56
|
}
|
|
57
57
|
onWorkCodeChange() {
|
|
58
58
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.64.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.64.9-alpha.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",
|
package/libs/shared-utils/tag.js
CHANGED
|
@@ -5,16 +5,16 @@ var u = (p, e, t) => new Promise((o, n) => {
|
|
|
5
5
|
var a = (i) => {
|
|
6
6
|
try {
|
|
7
7
|
s(t.next(i));
|
|
8
|
-
} catch (
|
|
9
|
-
n(
|
|
8
|
+
} catch (h) {
|
|
9
|
+
n(h);
|
|
10
10
|
}
|
|
11
|
-
},
|
|
11
|
+
}, l = (i) => {
|
|
12
12
|
try {
|
|
13
13
|
s(t.throw(i));
|
|
14
|
-
} catch (
|
|
15
|
-
n(
|
|
14
|
+
} catch (h) {
|
|
15
|
+
n(h);
|
|
16
16
|
}
|
|
17
|
-
}, s = (i) => i.done ? o(i.value) : Promise.resolve(i.value).then(a,
|
|
17
|
+
}, s = (i) => i.done ? o(i.value) : Promise.resolve(i.value).then(a, l);
|
|
18
18
|
s((t = t.apply(p, e)).next());
|
|
19
19
|
});
|
|
20
20
|
import { anyPositionToVector3 as f } from "./positionToVector3.js";
|
|
@@ -110,7 +110,7 @@ class M {
|
|
|
110
110
|
this.visibles[3] === !0 || this.visibles.every((t) => t !== !1) ? (this.container.style.opacity = "1", this.container.style.pointerEvents = "auto") : (this.container.style.opacity = "0", this.container.style.pointerEvents = "none");
|
|
111
111
|
});
|
|
112
112
|
r(this, "updateIntersectCheckVisible", () => {
|
|
113
|
-
var i,
|
|
113
|
+
var i, h;
|
|
114
114
|
if (!this.position)
|
|
115
115
|
return;
|
|
116
116
|
if (!this.intersectCheck) {
|
|
@@ -121,11 +121,11 @@ class M {
|
|
|
121
121
|
this.fiveUtil.workUtil.fromType === "poincare" && (t = 0.05);
|
|
122
122
|
const o = this.transformedPosition.clone().sub(this.five.camera.position).normalize();
|
|
123
123
|
v.set(this.five.camera.position, o);
|
|
124
|
-
const n = (i = U(this.five).intersectRaycaster(v)) != null ? i : [], a = (
|
|
124
|
+
const n = (i = U(this.five).intersectRaycaster(v)) != null ? i : [], a = (h = v.intersectObjects(this.extraObjectsForIntersectCheck, !0)) != null ? h : [], s = [...n, ...a].sort((c, d) => c.distance - d.distance)[0];
|
|
125
125
|
s ? e = (s == null ? void 0 : s.distance) + t > this.transformedPosition.distanceTo(this.five.camera.position) : e = !0, this.visibles[1] = e;
|
|
126
126
|
});
|
|
127
|
-
var n, a,
|
|
128
|
-
this.five = e, this.fiveUtil = (n = e.__fiveUtil__) != null ? n : e.__fiveUtil__ = new w(e), this.originPosition = t ? f(t).clone() : void 0, this.transformedPosition = (a = this.originPosition) == null ? void 0 : a.clone(), this.positionsForRotate = (
|
|
127
|
+
var n, a, l;
|
|
128
|
+
this.five = e, this.fiveUtil = (n = e.__fiveUtil__) != null ? n : e.__fiveUtil__ = new w(e), this.originPosition = t ? f(t).clone() : void 0, this.transformedPosition = (a = this.originPosition) == null ? void 0 : a.clone(), this.positionsForRotate = (l = o == null ? void 0 : o.positionsForRotate) == null ? void 0 : l.map((s) => f(s).clone()), this.config = o != null ? o : {}, this.container = (() => {
|
|
129
129
|
const s = document.createElement("div");
|
|
130
130
|
return s.classList.add("light-tag"), s.style.width = "0", s.style.height = "0", s.style.position = "absolute", s.style.transition = "opacity 0.2s linear", s;
|
|
131
131
|
})(), this.addResizeListener(), this.show(), this.enable(), setTimeout(() => {
|
|
@@ -155,14 +155,14 @@ class M {
|
|
|
155
155
|
*/
|
|
156
156
|
enable() {
|
|
157
157
|
return u(this, null, function* () {
|
|
158
|
-
var o, n, a,
|
|
158
|
+
var o, n, a, l;
|
|
159
159
|
if (this.enabled || (this.enabled = !0, yield F(this.five), !this.enabled))
|
|
160
160
|
return;
|
|
161
161
|
if (this.wrapper = (n = this.config.wrapper) != null ? n : (o = this.five.getElement()) == null ? void 0 : o.parentElement, !this.wrapper) {
|
|
162
162
|
console.error("lighttag: wrapper is required");
|
|
163
163
|
return;
|
|
164
164
|
}
|
|
165
|
-
const e = `light-tag-wrapper-${(
|
|
165
|
+
const e = `light-tag-wrapper-${(l = (a = this.config) == null ? void 0 : a.namespace) != null ? l : "default"}`;
|
|
166
166
|
if (!this.tagWrapper) {
|
|
167
167
|
let s = Array.from(this.wrapper.children).find((i) => i.id === e);
|
|
168
168
|
if (!s) {
|
|
@@ -222,15 +222,15 @@ class M {
|
|
|
222
222
|
const o = (() => {
|
|
223
223
|
if (!this.simulate3D)
|
|
224
224
|
return 1;
|
|
225
|
-
const
|
|
226
|
-
return Math.max(Math.min(1 -
|
|
225
|
+
const s = 3 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), i = this.transformedPosition.distanceTo(this.five.camera.position);
|
|
226
|
+
return Math.max(Math.min(1 - s * i / 40, 1), 0.5);
|
|
227
227
|
})(), n = (() => {
|
|
228
228
|
if (this.positionsForRotate === void 0 || this.positionsForRotate.length !== 2)
|
|
229
229
|
return 0;
|
|
230
|
-
const [
|
|
231
|
-
if (!i || !
|
|
230
|
+
const [l, s] = this.positionsForRotate, i = m(this.five.camera, l, e), h = m(this.five.camera, s, e);
|
|
231
|
+
if (!i || !h)
|
|
232
232
|
return 0;
|
|
233
|
-
const c = i.leftPx >
|
|
233
|
+
const c = i.leftPx > h.leftPx ? h : i, d = i.leftPx > h.leftPx ? i : h, y = d.leftPx - c.leftPx, b = d.topPx - c.topPx;
|
|
234
234
|
return Math.atan2(b, y) * (180 / Math.PI);
|
|
235
235
|
})();
|
|
236
236
|
this.container.style.left = t.leftPx + "px", this.container.style.top = t.topPx + "px", this.container.style.transformOrigin = "center", this.container.style.transform = `scale(${o})`, n && (this.container.style.transform += ` rotate(${n}deg)`);
|