@realsee/dnalogel 3.69.13-alpha-2 → 3.69.13-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -8
- package/dist/Sculpt/Objects/Box/index.d.ts +0 -11
- package/dist/index.cjs.js +84 -84
- package/dist/index.js +11572 -12232
- package/dist/index.umd.js +73 -73
- package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +0 -3
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +0 -5
- package/dist/shared-utils/Object3DHelper/Controller/MoveController.d.ts +0 -7
- package/dist/shared-utils/Object3DHelper/Controller/RotateController.d.ts +0 -11
- package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +0 -35
- package/dist/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +0 -1
- package/dist/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.d.ts +2 -2
- package/dist/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +0 -3
- package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +0 -24
- package/dist/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +0 -45
- package/dist/shared-utils/Object3DHelper/typings/Direction.d.ts +1 -1
- package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -3
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
- package/docs/classes/CSS3DRender.html +2 -2
- package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +2 -2
- package/docs/classes/ModelMakerPluginInstance.html +16 -16
- package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +2 -2
- package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +2 -2
- package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.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.LegacyPointHelper.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.PointDomHelper.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 +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/FloorplanGuidePlugin.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/SculptPluginForFive.html +2 -2
- package/docs/functions/TopviewFloorplanPlugin.html +1 -1
- package/docs/functions/Util.awaitNextFrame.html +1 -1
- package/docs/functions/Util.blink.html +2 -2
- package/docs/functions/Util.blinkWithPreset.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.cleanup.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.getIntersectFromRelativePosition.html +1 -1
- package/docs/functions/Util.getRaycasterFromFivePointer.html +1 -1
- package/docs/functions/Util.initialCSS3DRender.html +1 -1
- package/docs/functions/Util.inside.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.replaceStaticPrefix.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.BoxItemObjectData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.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/ModelMakerPluginType.TrianglesItemObjectData.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/SculptConfig.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/TagState.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.LegacyMouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.MagnifierParameter.html +2 -2
- package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.ObjectInitialState.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/FloorplanGuidePluginParameterType.html +1 -1
- package/docs/types/FloorplanGuidePluginReturnType.html +1 -1
- 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/MeasureEndReason.html +1 -1
- package/docs/types/MeasurePluginConfig.html +2 -2
- 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 +2 -2
- package/docs/types/ModelMakerPluginType.MarkerItem.html +1 -1
- package/docs/types/ModelMakerPluginType.ServerItem.html +2 -2
- 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/TagPlacement.html +2 -2
- 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/Util.SupportedTarget.html +2 -2
- package/docs/types/Util.Target.html +2 -2
- package/docs/types/Util.ThreeObject.html +2 -2
- 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.ANIME_PRESETS.html +2 -2
- package/docs/variables/Util.CURRENT_PANO_IMAGE_DEFAULT_IMAGE.html +2 -2
- package/docs/variables/Util.DEFAULT_ANIME_CONFIG.html +2 -2
- package/docs/variables/Util.DEFAULT_STATIC_PREFIX.html +2 -2
- package/docs/variables/Util.DNALOGEL_DEFAULT_ASSETS.html +2 -2
- package/docs/variables/Util.ENTRY_DOOR_DEFAULT_IMAGE.html +2 -2
- package/docs/variables/Util.FLOORPLAN_DEFAULT_IMAGE.html +2 -2
- package/docs/variables/Util.GUIDELINE_DEFAULT_ARROW_TEXTURE.html +2 -2
- package/docs/variables/Util.GUIDELINE_WHITE_ARROW_TEXTURE.html +2 -2
- package/docs/variables/Util.MODEL_CHASSIS_COMPASS_DEFAULT_MODEL.html +2 -2
- package/docs/variables/Util.MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL.html +2 -2
- package/docs/variables/Util.PANO_COMPASS_DEFAULT_IMAGE.html +2 -2
- package/docs/variables/Util.PANO_SPATIAL_TAG_BLUR_IMAGE.html +2 -2
- package/docs/variables/Util.PANO_TAG_DEFAULT_LINK_ICON.html +2 -2
- 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/AreaMakerPlugin/Controller.js +2 -2
- package/libs/AreaMakerPlugin/index.js +7 -7
- package/libs/AreaMakerPlugin/utils/Item.js +2 -2
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +2 -2
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +1 -1
- package/libs/CruisePlugin/BaseController.js +2 -2
- package/libs/CruisePlugin/Move.js +2 -2
- package/libs/CruisePlugin/Work.js +1 -1
- package/libs/CruisePlugin/index.js +8 -8
- package/libs/CurrentPanoImagePlugin/Controller.js +2 -2
- package/libs/CurrentPanoImagePlugin/index.js +8 -8
- package/libs/GuideLinePlugin/Controller.js +2 -2
- package/libs/GuideLinePlugin/GuideLineItem.js +8 -8
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +1 -1
- package/libs/GuideLinePlugin/GuideLineModeItem.js +2 -2
- package/libs/GuideLinePlugin/index.js +8 -8
- package/libs/MeasurePlugin/Controller.js +2 -2
- package/libs/MeasurePlugin/index.js +8 -8
- package/libs/MeasurePlugin/utils/MeasureMesh.js +8 -8
- package/libs/ModelChassisCompassPlugin/Plugin.js +2 -2
- package/libs/ModelChassisCompassPlugin/index.js +8 -8
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +2 -2
- package/libs/ModelEntryDoorGuidePlugin/index.js +8 -8
- package/libs/ModelMakerPlugin/Controller.js +2 -2
- package/libs/ModelMakerPlugin/index.js +8 -8
- package/libs/ModelMakerPlugin/item/baseItem.js +8 -8
- package/libs/ModelMakerPlugin/item/boxItem.js +8 -8
- package/libs/ModelMakerPlugin/item/polygonItem.js +8 -8
- package/libs/ModelMakerPlugin/item/prismItem.js +2 -2
- package/libs/ModelViewPlugin/Plugin.js +2 -2
- package/libs/ModelViewPlugin/index.js +8 -8
- package/libs/Object3DHelperPlugin/Controller.js +56 -58
- package/libs/Object3DHelperPlugin/index.js +13 -14
- package/libs/PanoCompassPlugin/Controller.js +8 -8
- package/libs/PanoCompassPlugin/index.js +8 -8
- package/libs/PanoDoorLabelPlugin/Controller.js +2 -2
- package/libs/PanoDoorLabelPlugin/index.js +8 -8
- package/libs/PanoMeasurePlugin/Components/Controller0.js +7 -7
- package/libs/PanoMeasurePlugin/Components/Controller1.js +7 -7
- package/libs/PanoMeasurePlugin/Controller/EditController.js +2 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +7 -7
- package/libs/PanoMeasurePlugin/Controller/index.js +2 -2
- package/libs/PanoMeasurePlugin/Model/area.js +7 -7
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +2 -2
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +7 -7
- package/libs/PanoMeasurePlugin/index.js +2 -2
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +2 -2
- package/libs/PanoRulerProPlugin/Controller.js +7 -7
- package/libs/PanoRulerProPlugin/RulerItems.js +2 -2
- package/libs/PanoRulerProPlugin/index.js +7 -7
- package/libs/PanoSpatialTagPlugin/Plugin.js +4 -4
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +2 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +8 -8
- package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +2 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/index.js +2 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +2 -2
- package/libs/PanoTagPlugin/Components/Tag/index.js +1 -1
- package/libs/PanoTagPlugin/Components/TagContainer.js +6 -6
- package/libs/PanoTagPlugin/Components/TagItem.js +1 -1
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +2 -2
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +8 -8
- package/libs/PanoTagPlugin/controller/TagRender.js +8 -8
- package/libs/PanoTagPlugin/controller/TagUtil.js +2 -2
- package/libs/PanoTagPlugin/controller/index.js +2 -2
- package/libs/PanoTagPlugin/index.js +8 -8
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +2 -2
- package/libs/PanoTagPlugin/utils/tag/format.js +2 -2
- package/libs/PanoVideoPlugin/Controller.js +8 -8
- package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
- package/libs/PanoVideoPlugin/index.js +8 -8
- package/libs/PipelinePlugin/Controller.js +2 -2
- package/libs/PipelinePlugin/index.js +8 -8
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +2 -2
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +2 -2
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +2 -2
- package/libs/Sculpt/Meshes/Circle.js +1 -1
- package/libs/Sculpt/Meshes/Cylinder.js +1 -1
- package/libs/Sculpt/Meshes/Line.js +1 -1
- package/libs/Sculpt/Meshes/LineWithDots.js +1 -1
- package/libs/Sculpt/Meshes/Point.js +1 -1
- package/libs/Sculpt/Meshes/Rectangle.js +1 -1
- package/libs/Sculpt/Objects/Base/index.js +1 -1
- package/libs/Sculpt/Objects/Box/index.d.ts +0 -11
- package/libs/Sculpt/Objects/Box/index.js +58 -79
- package/libs/Sculpt/Objects/Line/Editor.js +1 -1
- package/libs/Sculpt/index.js +1 -1
- package/libs/Sculpt/utils/three/ColoredMesh.js +1 -1
- package/libs/base/BasePlugin.js +2 -2
- package/libs/floorplan/FloorplanGuidePlugin/Controller.js +2 -2
- package/libs/floorplan/FloorplanGuidePlugin/index.js +8 -8
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +2 -2
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +8 -8
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +2 -2
- package/libs/floorplan/ModelFloorplanPlugin/index.js +8 -8
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +2 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +8 -8
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +2 -2
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +8 -8
- package/libs/floorplan/index.js +1 -1
- package/libs/index.js +148 -149
- package/libs/shared-utils/CSS3DRender/CSS3DObject.js +1 -1
- package/libs/shared-utils/CSS3DRender/index.js +21 -20
- package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +0 -3
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +0 -5
- package/libs/shared-utils/Object3DHelper/Constants/color.js +3 -3
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.d.ts +0 -7
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +40 -105
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.d.ts +0 -11
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +82 -152
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +0 -35
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +46 -200
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +0 -1
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +15 -19
- package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.d.ts +2 -2
- package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +16 -17
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +0 -3
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +26 -45
- package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +4 -6
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +0 -24
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +57 -96
- package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +0 -45
- package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.js +34 -182
- package/libs/shared-utils/Object3DHelper/typings/Direction.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -3
- package/libs/shared-utils/five/index.js +1 -1
- package/libs/shared-utils/five/initialCSS3DRender.js +1 -0
- package/libs/shared-utils/five/lookObject.js +1 -1
- package/libs/shared-utils/index.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.js +1 -1
- package/libs/shared-utils/three/PointDomHelper.js +3 -2
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +1 -1
- package/libs/shared-utils/three/index.js +1 -1
- package/libs/shared-utils/threex/domevents/index.js +23 -55
- package/package.json +2 -2
- package/dist/shared-utils/Object3DHelper/utils/dashGuide.d.ts +0 -56
- package/dist/shared-utils/math/quaternionUtils.d.ts +0 -333
- package/libs/shared-utils/Object3DHelper/utils/dashGuide.d.ts +0 -56
- package/libs/shared-utils/Object3DHelper/utils/dashGuide.js +0 -123
- package/libs/shared-utils/math/quaternionUtils.d.ts +0 -333
|
@@ -1,59 +1,53 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import * as
|
|
5
|
-
import { RotateHelperAbstract as
|
|
6
|
-
import { AXES_THREE_COLOR as
|
|
7
|
-
import { tipsDom as
|
|
8
|
-
import { calculateScaleByCamera as
|
|
9
|
-
class
|
|
10
|
-
constructor(t,
|
|
11
|
-
super(t,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
(
|
|
1
|
+
var m = Object.defineProperty;
|
|
2
|
+
var w = (a, s, t) => s in a ? m(a, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[s] = t;
|
|
3
|
+
var i = (a, s, t) => (w(a, typeof s != "symbol" ? s + "" : s, t), t);
|
|
4
|
+
import * as r from "three";
|
|
5
|
+
import { RotateHelperAbstract as u } from "../Base/BaseHelper.js";
|
|
6
|
+
import { AXES_THREE_COLOR as l } from "../Constants/color.js";
|
|
7
|
+
import { tipsDom as y } from "./HTML/tipsDom.js";
|
|
8
|
+
import { calculateScaleByCamera as C } from "../utils/calculateScaleByCamera.js";
|
|
9
|
+
class D extends u {
|
|
10
|
+
constructor(t, e) {
|
|
11
|
+
super(t, e);
|
|
12
|
+
i(this, "name", "RotateHelper");
|
|
13
|
+
i(this, "xCircle");
|
|
14
|
+
i(this, "yCircle");
|
|
15
|
+
i(this, "zCircle");
|
|
16
|
+
i(this, "children", []);
|
|
17
|
+
i(this, "angleTips");
|
|
18
|
+
i(this, "container");
|
|
19
|
+
(e == null ? void 0 : e.yzCircleEnable) !== !1 && (this.xCircle = new n({ direction: "x", color: l.X })), (e == null ? void 0 : e.xzCircleEnable) !== !1 && (this.yCircle = new n({ direction: "y", color: l.Y })), (e == null ? void 0 : e.xyCircleEnable) !== !1 && (this.zCircle = new n({ direction: "z", color: l.Z })), e != null && e.container && (e == null ? void 0 : e.angleTipsEnable) !== !1 && (this.container = e == null ? void 0 : e.container, this.angleTips = y({ display: "none" }), this.container.appendChild(this.angleTips.element)), this.add(...[this.xCircle, this.yCircle, this.zCircle].filter(Boolean)), this.show();
|
|
20
20
|
}
|
|
21
21
|
hide() {
|
|
22
22
|
this.children.forEach((t) => t.hide());
|
|
23
23
|
}
|
|
24
24
|
show() {
|
|
25
25
|
var t;
|
|
26
|
-
this.children.forEach((
|
|
26
|
+
this.children.forEach((e) => e.showCircle()), (t = this.angleTips) == null || t.hide();
|
|
27
27
|
}
|
|
28
28
|
setScaleByCamera(t) {
|
|
29
|
-
this.scale.setScalar(
|
|
30
|
-
}
|
|
31
|
-
update(t) {
|
|
32
|
-
if (t.type === "OrthographicCamera")
|
|
33
|
-
return;
|
|
34
|
-
const i = new e.Vector3(0, 0, -1).applyQuaternion(t.quaternion), h = new e.Vector3(1, 0, 0).applyQuaternion(this.quaternion), f = new e.Vector3(0, 1, 0).applyQuaternion(this.quaternion), g = new e.Vector3(0, 0, 1).applyQuaternion(this.quaternion), y = i.angleTo(h), C = i.angleTo(f), d = i.angleTo(g), m = Math.PI / 2, l = C >= m, c = d >= m, n = y >= m;
|
|
35
|
-
this.xCircle && (l && c ? this.xCircle.circle.geometry = new e.RingGeometry(0.25, 0.3, 20, 8, 0, Math.PI / 2) : l && !c ? this.xCircle.circle.geometry = new e.RingGeometry(0.25, 0.3, 20, 8, Math.PI / 2, Math.PI / 2) : !l && c ? this.xCircle.circle.geometry = new e.RingGeometry(0.25, 0.3, 20, 8, Math.PI / 2 * 3, Math.PI / 2) : !l && !c && (this.xCircle.circle.geometry = new e.RingGeometry(0.25, 0.3, 20, 8, Math.PI, Math.PI / 2)), this.xCircle.angleSector && (this.xCircle.angleSector.offsetAngle = (r) => r, l && c ? this.xCircle.angleSector.baseAxes = new e.Vector3(0, 0, 1) : l && !c ? this.xCircle.angleSector.baseAxes = new e.Vector3(0, 0, 1) : !l && c ? (this.xCircle.angleSector.baseAxes = new e.Vector3(0, -1, 0), this.xCircle.angleSector.offsetAngle = (r) => r - Math.PI / 2) : !l && !c && (this.xCircle.angleSector.baseAxes = new e.Vector3(0, 0, -1), this.xCircle.angleSector.offsetAngle = (r) => r - Math.PI))), this.yCircle && (this.yCircle.angleSector.offsetAngle = (r) => r, n && c ? this.yCircle.circle.geometry = new e.RingGeometry(0.25, 0.3, 20, 8, 0, Math.PI / 2) : n && !c ? this.yCircle.circle.geometry = new e.RingGeometry(0.25, 0.3, 20, 8, Math.PI / 2 * 3, Math.PI / 2) : !n && c ? this.yCircle.circle.geometry = new e.RingGeometry(0.25, 0.3, 20, 8, Math.PI / 2, Math.PI / 2) : !n && !c && (this.yCircle.circle.geometry = new e.RingGeometry(0.25, 0.3, 20, 8, Math.PI, Math.PI / 2)), n && c ? this.yCircle.angleSector.baseAxes = new e.Vector3(1, 0, 0) : n && !c ? (this.yCircle.angleSector.baseAxes = new e.Vector3(0, 0, -1), this.yCircle.angleSector.offsetAngle = (r) => r - Math.PI / 2) : !n && c ? (this.yCircle.angleSector.baseAxes = new e.Vector3(0, 0, 1), this.yCircle.angleSector.offsetAngle = (r) => r + Math.PI / 2) : !n && !c && (this.yCircle.angleSector.baseAxes = new e.Vector3(-1, 0, 0), this.yCircle.angleSector.offsetAngle = (r) => r + Math.PI)), this.zCircle && (this.zCircle.angleSector.offsetAngle = (r) => r, n && l ? this.zCircle.circle.geometry = new e.RingGeometry(0.25, 0.3, 20, 8, 0, Math.PI / 2) : n && !l ? this.zCircle.circle.geometry = new e.RingGeometry(0.25, 0.3, 20, 8, Math.PI / 2 * 3, Math.PI / 2) : !n && l ? this.zCircle.circle.geometry = new e.RingGeometry(0.25, 0.3, 20, 8, Math.PI / 2, Math.PI / 2) : !n && !l && (this.zCircle.circle.geometry = new e.RingGeometry(0.25, 0.3, 20, 8, Math.PI, Math.PI / 2)), this.zCircle.angleSector && (n && l ? this.zCircle.angleSector.baseAxes = new e.Vector3(1, 0, 0) : n && !l ? (this.zCircle.angleSector.baseAxes = new e.Vector3(0, -1, 0), this.zCircle.angleSector.offsetAngle = (r) => r - Math.PI / 2) : !n && l ? (this.zCircle.angleSector.baseAxes = new e.Vector3(0, 1, 0), this.zCircle.angleSector.offsetAngle = (r) => r + Math.PI / 2) : !n && !l && (this.zCircle.angleSector.baseAxes = new e.Vector3(-1, 0, 0), this.zCircle.angleSector.offsetAngle = (r) => r + Math.PI)));
|
|
29
|
+
this.scale.setScalar(C(t, this.position));
|
|
36
30
|
}
|
|
37
31
|
showDraggingHelper(t) {
|
|
38
|
-
var
|
|
39
|
-
this.hide(), this.children.filter((h) => t.includes(h.direction)).forEach((h) => h.showRing()), (
|
|
32
|
+
var e;
|
|
33
|
+
this.hide(), this.children.filter((h) => t.includes(h.direction)).forEach((h) => h.showRing()), (e = this.angleTips) == null || e.show();
|
|
40
34
|
}
|
|
41
35
|
dispose() {
|
|
42
|
-
var t,
|
|
43
|
-
this.removeFromParent(), (
|
|
36
|
+
var t, e;
|
|
37
|
+
this.removeFromParent(), (e = (t = this.angleTips) == null ? void 0 : t.element) == null || e.remove();
|
|
44
38
|
}
|
|
45
39
|
}
|
|
46
|
-
class
|
|
40
|
+
class n extends r.Group {
|
|
47
41
|
constructor(t) {
|
|
48
42
|
super();
|
|
49
|
-
|
|
43
|
+
i(this, "direction");
|
|
50
44
|
/** 1/4 圆 */
|
|
51
|
-
|
|
45
|
+
i(this, "circle");
|
|
52
46
|
/** 旋转过程中展示的背景圆环 */
|
|
53
|
-
|
|
47
|
+
i(this, "ring");
|
|
54
48
|
/** 旋转过程中表示角度的扇形 */
|
|
55
|
-
|
|
56
|
-
this.direction = t.direction, this.circle = new
|
|
49
|
+
i(this, "angleSector");
|
|
50
|
+
this.direction = t.direction, this.circle = new x(t), this.ring = new b(t), this.angleSector = new M(t), this.add(this.circle, this.ring, this.angleSector), this.direction === "y" ? this.rotateX(Math.PI / 2) : this.direction === "x" && this.rotateY(-Math.PI / 2);
|
|
57
51
|
}
|
|
58
52
|
showCircle() {
|
|
59
53
|
this.add(this.circle), this.remove(this.ring, this.angleSector);
|
|
@@ -65,106 +59,73 @@ class p extends e.Group {
|
|
|
65
59
|
this.remove(this.ring, this.angleSector, this.circle);
|
|
66
60
|
}
|
|
67
61
|
}
|
|
68
|
-
class
|
|
62
|
+
class x extends r.Mesh {
|
|
69
63
|
constructor(t) {
|
|
70
|
-
var
|
|
64
|
+
var e;
|
|
71
65
|
super();
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
this.material = new
|
|
66
|
+
i(this, "direction");
|
|
67
|
+
i(this, "gapAngle", 0.02);
|
|
68
|
+
i(this, "geometry", new r.RingGeometry(0.25, 0.3, 20, 8, this.gapAngle, Math.PI / 2 - this.gapAngle * 2));
|
|
69
|
+
this.material = new r.MeshBasicMaterial({
|
|
76
70
|
opacity: 0.6,
|
|
77
|
-
color: (
|
|
71
|
+
color: (e = t.color) != null ? e : 16777215,
|
|
78
72
|
transparent: !0,
|
|
79
|
-
side:
|
|
73
|
+
side: r.DoubleSide,
|
|
80
74
|
depthTest: !1,
|
|
81
75
|
depthWrite: !1
|
|
82
76
|
}), this.renderOrder = 50, this.direction = t.direction, this.geometry.name = `RotateHelperCircleGeometry-${this.direction}`;
|
|
83
77
|
}
|
|
84
78
|
}
|
|
85
|
-
class
|
|
79
|
+
class b extends r.Group {
|
|
86
80
|
constructor(t) {
|
|
87
81
|
super();
|
|
88
|
-
|
|
82
|
+
i(this, "direction");
|
|
89
83
|
this.direction = t.direction;
|
|
90
|
-
const
|
|
91
|
-
const
|
|
84
|
+
const e = 0.015, h = new Array(8).fill(null).map((R, c) => {
|
|
85
|
+
const d = new r.RingGeometry(0.25, 0.3, 20, 8, Math.PI / 4 * c + e, Math.PI / 4 - e * 2), p = new r.MeshBasicMaterial({
|
|
92
86
|
opacity: 1,
|
|
93
87
|
color: 16777215,
|
|
94
88
|
depthTest: !1,
|
|
95
89
|
depthWrite: !1,
|
|
96
90
|
transparent: !0,
|
|
97
|
-
side:
|
|
91
|
+
side: r.DoubleSide
|
|
98
92
|
});
|
|
99
93
|
this.renderOrder = 50;
|
|
100
|
-
const
|
|
101
|
-
return
|
|
94
|
+
const o = new r.Mesh(d, p);
|
|
95
|
+
return o.name = `AxesDashedRing-${this.direction}-${c}`, o;
|
|
102
96
|
});
|
|
103
97
|
this.add(...h);
|
|
104
98
|
}
|
|
105
99
|
}
|
|
106
|
-
class
|
|
100
|
+
class M extends r.Mesh {
|
|
107
101
|
constructor(t) {
|
|
108
102
|
var h;
|
|
109
103
|
super();
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
s(this, "angleDirection");
|
|
104
|
+
i(this, "direction");
|
|
105
|
+
i(this, "baseAxes");
|
|
106
|
+
i(this, "angleDirection");
|
|
114
107
|
switch (t.direction) {
|
|
115
108
|
case "x":
|
|
116
|
-
this.baseAxes = new
|
|
109
|
+
this.baseAxes = new r.Vector3(0, 0, 1);
|
|
117
110
|
break;
|
|
118
111
|
case "y":
|
|
119
|
-
this.baseAxes = new
|
|
112
|
+
this.baseAxes = new r.Vector3(1, 0, 0);
|
|
120
113
|
break;
|
|
121
114
|
case "z":
|
|
122
|
-
this.baseAxes = new
|
|
115
|
+
this.baseAxes = new r.Vector3(1, 0, 0);
|
|
123
116
|
break;
|
|
124
117
|
}
|
|
125
|
-
const
|
|
126
|
-
this.geometry = new
|
|
118
|
+
const e = 0.3 + 5e-4;
|
|
119
|
+
this.geometry = new r.CircleGeometry(e, 48, 0, 1e-4), this.material = new r.MeshBasicMaterial({
|
|
127
120
|
opacity: 0.4,
|
|
128
121
|
color: (h = t.color) != null ? h : 16777215,
|
|
129
122
|
depthTest: !1,
|
|
130
123
|
depthWrite: !1,
|
|
131
124
|
transparent: !0,
|
|
132
|
-
side:
|
|
125
|
+
side: r.DoubleSide
|
|
133
126
|
}), this.renderOrder = 50, this.direction = t.direction, this.angleDirection = this.direction === "z" ? 1 : -1;
|
|
134
127
|
}
|
|
135
|
-
/**
|
|
136
|
-
* 设置扇形旋转方向为顺时针
|
|
137
|
-
*/
|
|
138
|
-
setClockwiseDirection() {
|
|
139
|
-
this.angleDirection = -1;
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* 设置扇形旋转方向为逆时针
|
|
143
|
-
*/
|
|
144
|
-
setCounterClockwiseDirection() {
|
|
145
|
-
this.angleDirection = 1;
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* 切换扇形旋转方向
|
|
149
|
-
*/
|
|
150
|
-
toggleDirection() {
|
|
151
|
-
this.angleDirection = this.angleDirection === 1 ? -1 : 1;
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* 设置扇形的基础轴向
|
|
155
|
-
* @param axes 新的基础轴向向量
|
|
156
|
-
*/
|
|
157
|
-
setBaseAxes(t) {
|
|
158
|
-
this.baseAxes = t.clone().normalize();
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* 获取当前旋转方向
|
|
162
|
-
* @returns 'clockwise' | 'counterclockwise'
|
|
163
|
-
*/
|
|
164
|
-
getDirection() {
|
|
165
|
-
return this.angleDirection === -1 ? "clockwise" : "counterclockwise";
|
|
166
|
-
}
|
|
167
128
|
}
|
|
168
129
|
export {
|
|
169
|
-
|
|
130
|
+
D as RotateHelper
|
|
170
131
|
};
|
|
@@ -1,61 +1,16 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
import { ScaleHelperAbstract, type BaseHelperConfig } from '../Base/BaseHelper';
|
|
3
3
|
import type { ScalePosition } from '../typings';
|
|
4
|
-
interface LineConnection {
|
|
5
|
-
line: THREE.Line;
|
|
6
|
-
mesh1: THREE.Object3D & {
|
|
7
|
-
scalePosition: ScalePosition;
|
|
8
|
-
};
|
|
9
|
-
mesh2: THREE.Object3D & {
|
|
10
|
-
scalePosition: ScalePosition;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
4
|
export declare class ScaleHelper<T extends THREE.Object3D = THREE.Object3D> extends ScaleHelperAbstract<T> {
|
|
14
5
|
name: string;
|
|
15
6
|
scaleMeshes: Array<THREE.Object3D & {
|
|
16
7
|
scalePosition: ScalePosition;
|
|
17
8
|
}>;
|
|
18
|
-
lineConnections: Array<LineConnection>;
|
|
19
9
|
private positions;
|
|
20
|
-
private container;
|
|
21
|
-
private needsInitialScaling;
|
|
22
|
-
private lastCamera;
|
|
23
|
-
private isInitializing;
|
|
24
10
|
constructor(originObject3D: T, config?: {
|
|
25
11
|
positions?: Array<ScalePosition> | (() => Array<ScalePosition>);
|
|
26
|
-
container?: HTMLElement | null;
|
|
27
12
|
} & BaseHelperConfig);
|
|
28
13
|
initQuaternion(): void;
|
|
29
14
|
initialPosition(offset?: THREE.Vector3): void;
|
|
30
|
-
/**
|
|
31
|
-
* 清理所有缩放球
|
|
32
|
-
*/
|
|
33
|
-
private clearAllSpheres;
|
|
34
|
-
/**
|
|
35
|
-
* 创建中心对称球之间的直线连接
|
|
36
|
-
*/
|
|
37
|
-
private createLineConnections;
|
|
38
|
-
update(camera: THREE.Camera): void;
|
|
39
|
-
/**
|
|
40
|
-
* 应用球的缩放逻辑
|
|
41
|
-
*/
|
|
42
|
-
private applySphereScaling;
|
|
43
|
-
/**
|
|
44
|
-
* 应用直线缩放逻辑(直线不需要特殊的缩放处理)
|
|
45
|
-
*/
|
|
46
|
-
private applyLineScaling;
|
|
47
|
-
/**
|
|
48
|
-
* 显示所有直线连接
|
|
49
|
-
*/
|
|
50
|
-
showLineConnections(): void;
|
|
51
|
-
/**
|
|
52
|
-
* 隐藏所有直线连接
|
|
53
|
-
*/
|
|
54
|
-
hideLineConnections(): void;
|
|
55
|
-
/**
|
|
56
|
-
* 更新直线连接的位置和可见性
|
|
57
|
-
*/
|
|
58
|
-
private updateLineConnections;
|
|
59
15
|
setScaleByCamera(camera: THREE.PerspectiveCamera | THREE.OrthographicCamera): void;
|
|
60
16
|
}
|
|
61
|
-
export {};
|
|
@@ -1,202 +1,54 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import * as
|
|
5
|
-
import { ScaleHelperAbstract as
|
|
6
|
-
import { calculateScaleByCamera as
|
|
7
|
-
class
|
|
8
|
-
constructor(e,
|
|
9
|
-
super(e,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
l(this, "container");
|
|
15
|
-
l(this, "needsInitialScaling", !1);
|
|
16
|
-
l(this, "lastCamera", null);
|
|
17
|
-
l(this, "isInitializing", !1);
|
|
18
|
-
i && (this.positions = i.positions, this.container = i.container), this.raycast = () => {
|
|
19
|
-
};
|
|
1
|
+
var p = Object.defineProperty;
|
|
2
|
+
var h = (i, t, e) => t in i ? p(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
+
var c = (i, t, e) => (h(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
+
import * as n from "three";
|
|
5
|
+
import { ScaleHelperAbstract as d } from "../Base/BaseHelper.js";
|
|
6
|
+
import { calculateScaleByCamera as u } from "../utils/calculateScaleByCamera.js";
|
|
7
|
+
class S extends d {
|
|
8
|
+
constructor(e, s) {
|
|
9
|
+
super(e, s);
|
|
10
|
+
c(this, "name", "ScaleHelper");
|
|
11
|
+
c(this, "scaleMeshes", []);
|
|
12
|
+
c(this, "positions", []);
|
|
13
|
+
s && (this.positions = s.positions);
|
|
20
14
|
}
|
|
21
15
|
initQuaternion() {
|
|
22
16
|
this.quaternion.copy(this.originObject3D.quaternion);
|
|
23
17
|
}
|
|
24
18
|
initialPosition(e) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
const i = typeof this.positions == "function" ? this.positions() : this.positions;
|
|
33
|
-
if (!i) {
|
|
34
|
-
this.isInitializing = !1;
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
this.clearAllSpheres(), this.scaleMeshes = i.map((s, n) => {
|
|
38
|
-
const o = y();
|
|
39
|
-
return o.position.copy(s.handlePosition), o.scalePosition = s, o.children.forEach((h) => {
|
|
40
|
-
h.scalePosition = s;
|
|
41
|
-
}), this.add(o), o;
|
|
42
|
-
}), this.createLineConnections(), this.needsInitialScaling = !0, this.lastCamera && (this.applySphereScaling(this.lastCamera), this.applyLineScaling(this.lastCamera), this.needsInitialScaling = !1);
|
|
43
|
-
} finally {
|
|
44
|
-
this.isInitializing = !1;
|
|
45
|
-
}
|
|
19
|
+
this.position.copy(this.originObject3D.position);
|
|
20
|
+
const s = typeof this.positions == "function" ? this.positions() : this.positions;
|
|
21
|
+
s && (this.scaleMeshes = s.map((a, r) => {
|
|
22
|
+
var l;
|
|
23
|
+
const o = (l = this.scaleMeshes[r]) != null ? l : m();
|
|
24
|
+
return o.position.copy(a.handlePosition), o.scalePosition = a, this.addIfNotExists(o), o;
|
|
25
|
+
}));
|
|
46
26
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
this.scaleMeshes.forEach((i) => {
|
|
52
|
-
this.remove(i);
|
|
53
|
-
}), this.scaleMeshes = [];
|
|
54
|
-
const e = this.children.filter((i) => i.name === "ScaleHelperSphere");
|
|
55
|
-
e.length > 0 && e.forEach((i) => {
|
|
56
|
-
this.remove(i);
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* 创建中心对称球之间的直线连接
|
|
61
|
-
*/
|
|
62
|
-
createLineConnections() {
|
|
63
|
-
this.lineConnections.forEach((s) => {
|
|
64
|
-
this.remove(s.line);
|
|
65
|
-
}), this.lineConnections = [];
|
|
66
|
-
const e = {
|
|
67
|
-
top: "bottom",
|
|
68
|
-
bottom: "top",
|
|
69
|
-
left: "right",
|
|
70
|
-
right: "left",
|
|
71
|
-
front: "back",
|
|
72
|
-
back: "front"
|
|
73
|
-
}, i = /* @__PURE__ */ new Set();
|
|
74
|
-
for (const s of this.scaleMeshes) {
|
|
75
|
-
const n = s.scalePosition.id;
|
|
76
|
-
if (!n || i.has(n))
|
|
77
|
-
continue;
|
|
78
|
-
const o = e[n];
|
|
79
|
-
if (!o)
|
|
80
|
-
continue;
|
|
81
|
-
const h = this.scaleMeshes.find((m) => m.scalePosition.id === o);
|
|
82
|
-
if (!h)
|
|
83
|
-
continue;
|
|
84
|
-
const c = w(s.position.clone(), h.position.clone());
|
|
85
|
-
this.add(c), this.lineConnections.push({
|
|
86
|
-
line: c,
|
|
87
|
-
mesh1: s,
|
|
88
|
-
mesh2: h
|
|
89
|
-
}), i.add(n), i.add(o);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
update(e) {
|
|
93
|
-
if (e.type !== "OrthographicCamera")
|
|
94
|
-
return;
|
|
95
|
-
const i = e.position.clone(), s = this.originObject3D.getWorldPosition(new t.Vector3()), n = i.sub(s).normalize(), o = {
|
|
96
|
-
front: new t.Vector3(0, 0, 1).applyQuaternion(this.originObject3D.getWorldQuaternion(new t.Quaternion())),
|
|
97
|
-
back: new t.Vector3(0, 0, -1).applyQuaternion(this.originObject3D.getWorldQuaternion(new t.Quaternion())),
|
|
98
|
-
left: new t.Vector3(-1, 0, 0).applyQuaternion(this.originObject3D.getWorldQuaternion(new t.Quaternion())),
|
|
99
|
-
right: new t.Vector3(1, 0, 0).applyQuaternion(this.originObject3D.getWorldQuaternion(new t.Quaternion())),
|
|
100
|
-
top: new t.Vector3(0, 1, 0).applyQuaternion(this.originObject3D.getWorldQuaternion(new t.Quaternion())),
|
|
101
|
-
bottom: new t.Vector3(0, -1, 0).applyQuaternion(this.originObject3D.getWorldQuaternion(new t.Quaternion()))
|
|
102
|
-
};
|
|
103
|
-
let h = -1, c = "";
|
|
104
|
-
Object.entries(o).forEach(([p, d]) => {
|
|
105
|
-
const f = n.dot(d);
|
|
106
|
-
f > h && (h = f, c = p);
|
|
107
|
-
});
|
|
108
|
-
const m = {
|
|
109
|
-
top: "bottom",
|
|
110
|
-
bottom: "top",
|
|
111
|
-
left: "right",
|
|
112
|
-
right: "left",
|
|
113
|
-
front: "back",
|
|
114
|
-
back: "front"
|
|
115
|
-
};
|
|
116
|
-
this.scaleMeshes.forEach((p) => {
|
|
117
|
-
const d = p.scalePosition.id, f = m[c];
|
|
118
|
-
d === c || d === f ? p.visible = !1 : p.visible = !0;
|
|
119
|
-
}), this.updateLineConnections(), this.lastCamera && (this.applySphereScaling(this.lastCamera), this.applyLineScaling(this.lastCamera));
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* 应用球的缩放逻辑
|
|
123
|
-
*/
|
|
124
|
-
applySphereScaling(e) {
|
|
125
|
-
this.updateMatrixWorld(!0), this.scaleMeshes.forEach((i) => {
|
|
126
|
-
i.scale.setScalar(
|
|
127
|
-
b(e, i.scalePosition.handlePosition.clone().applyMatrix4(this.matrixWorld))
|
|
27
|
+
setScaleByCamera(e) {
|
|
28
|
+
this.scaleMeshes.forEach((s) => {
|
|
29
|
+
s.scale.setScalar(
|
|
30
|
+
u(e, s.scalePosition.handlePosition.clone().applyMatrix4(this.matrixWorld))
|
|
128
31
|
);
|
|
129
32
|
});
|
|
130
33
|
}
|
|
131
|
-
/**
|
|
132
|
-
* 应用直线缩放逻辑(直线不需要特殊的缩放处理)
|
|
133
|
-
*/
|
|
134
|
-
applyLineScaling(e) {
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* 显示所有直线连接
|
|
138
|
-
*/
|
|
139
|
-
showLineConnections() {
|
|
140
|
-
this.lineConnections.forEach((e) => {
|
|
141
|
-
const i = e.mesh1.visible && e.mesh2.visible;
|
|
142
|
-
e.line.visible = i;
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* 隐藏所有直线连接
|
|
147
|
-
*/
|
|
148
|
-
hideLineConnections() {
|
|
149
|
-
this.lineConnections.forEach((e) => {
|
|
150
|
-
e.line.visible = !1;
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* 更新直线连接的位置和可见性
|
|
155
|
-
*/
|
|
156
|
-
updateLineConnections() {
|
|
157
|
-
this.lineConnections.forEach((e) => {
|
|
158
|
-
e.line.scale.set(1, 1, 1), e.line.position.set(0, 0, 0), e.line.rotation.set(0, 0, 0);
|
|
159
|
-
const s = e.line.geometry.attributes.position;
|
|
160
|
-
s.setXYZ(0, e.mesh1.position.x, e.mesh1.position.y, e.mesh1.position.z), s.setXYZ(1, e.mesh2.position.x, e.mesh2.position.y, e.mesh2.position.z), s.needsUpdate = !0;
|
|
161
|
-
const n = e.mesh1.visible && e.mesh2.visible;
|
|
162
|
-
e.line.visible = n;
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
setScaleByCamera(e) {
|
|
166
|
-
this.lastCamera = e, this.applySphereScaling(e), this.applyLineScaling(e), this.needsInitialScaling && requestAnimationFrame(() => {
|
|
167
|
-
this.applySphereScaling(e), this.applyLineScaling(e);
|
|
168
|
-
}), this.needsInitialScaling = !1;
|
|
169
|
-
}
|
|
170
34
|
}
|
|
171
|
-
function
|
|
172
|
-
const
|
|
173
|
-
|
|
174
|
-
const
|
|
35
|
+
function m() {
|
|
36
|
+
const i = new n.Group();
|
|
37
|
+
i.name = "ScaleHelperCube";
|
|
38
|
+
const t = 0.05, e = new n.BoxGeometry(t, t, t), s = new n.MeshBasicMaterial({
|
|
175
39
|
color: 16776960,
|
|
176
40
|
transparent: !0,
|
|
177
|
-
side:
|
|
178
|
-
}),
|
|
41
|
+
side: n.DoubleSide
|
|
42
|
+
}), a = new n.MeshBasicMaterial({
|
|
179
43
|
color: 16776960,
|
|
180
44
|
opacity: 0.4,
|
|
181
45
|
depthTest: !1,
|
|
182
46
|
depthWrite: !1,
|
|
183
47
|
transparent: !0,
|
|
184
|
-
side:
|
|
185
|
-
}),
|
|
186
|
-
return
|
|
187
|
-
}
|
|
188
|
-
function w(a, r) {
|
|
189
|
-
const e = new t.BufferGeometry(), i = [a, r];
|
|
190
|
-
e.setFromPoints(i);
|
|
191
|
-
const s = new t.LineBasicMaterial({
|
|
192
|
-
color: 16776960,
|
|
193
|
-
// 黄色,与球的颜色一致
|
|
194
|
-
transparent: !0,
|
|
195
|
-
opacity: 0.8
|
|
196
|
-
}), n = new t.Line(e, s);
|
|
197
|
-
return n.name = "ScaleHelperSolidLine", n.renderOrder = 9, n.raycast = () => {
|
|
198
|
-
}, n;
|
|
48
|
+
side: n.DoubleSide
|
|
49
|
+
}), r = new n.Mesh(e, s), o = new n.Mesh(e, a);
|
|
50
|
+
return r.name = "ScaleHelperCube-front", o.name = "ScaleHelperCube-behind", r.renderOrder = 11, o.renderOrder = 10, i.add(r, o), i;
|
|
199
51
|
}
|
|
200
52
|
export {
|
|
201
|
-
|
|
53
|
+
S as ScaleHelper
|
|
202
54
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type Direction = 'x' | 'y' | 'z'
|
|
1
|
+
export type Direction = 'x' | 'y' | 'z';
|
|
2
2
|
export type Direction4 = 'nesw' | 'nwse' | 'ns' | 'ew';
|
|
@@ -14,9 +14,6 @@ export type HelperEventMap = {
|
|
|
14
14
|
scaleEnd: () => void;
|
|
15
15
|
moveByMouseEnable: () => void;
|
|
16
16
|
moveByMouseDisable: () => void;
|
|
17
|
-
updateOtherHelpers: (params: {
|
|
18
|
-
camera: THREE.Camera;
|
|
19
|
-
}) => void;
|
|
20
17
|
};
|
|
21
18
|
export type InternalHelperEventMap = {
|
|
22
19
|
initialHelperPosition: () => void;
|
|
@@ -4,13 +4,13 @@ import "../three/PointSelector/index.js";
|
|
|
4
4
|
import "../tag.js";
|
|
5
5
|
import "../three/CSS3DRenderer/index.js";
|
|
6
6
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
7
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
7
8
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
8
9
|
import "./FivePuppet.js";
|
|
9
10
|
import "@realsee/five/line";
|
|
10
11
|
import "../three/core/Five_LineMaterial2.js";
|
|
11
12
|
import "../three/core/Sphere.js";
|
|
12
13
|
import "../three/blink.js";
|
|
13
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
14
14
|
function g(e) {
|
|
15
15
|
return e.model ? e.work ? e.model.loaded ? e.model.name !== e.work.model.file ? { result: !1, msg: "five.model.name 与 five.work.model.file 不一致" } : { result: !0, msg: "" } : { result: !1, msg: "five.model 未加载完成" } : { result: !1, msg: "five 数据未加载" } : { result: !1, msg: "five.model 不存在" };
|
|
16
16
|
}
|
|
@@ -34,13 +34,13 @@ import { FiveUtil as Y } from "../Utils/FiveUtil.js";
|
|
|
34
34
|
import { notNil as k } from "../isNil.js";
|
|
35
35
|
import "../three/CSS3DRenderer/index.js";
|
|
36
36
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
37
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
37
38
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
38
39
|
import "./FivePuppet.js";
|
|
39
40
|
import "@realsee/five/line";
|
|
40
41
|
import "../three/core/Five_LineMaterial2.js";
|
|
41
42
|
import { worldBoundingSphere as j } from "../three/boundingBox.js";
|
|
42
43
|
import "../three/blink.js";
|
|
43
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
44
44
|
function rt(o, e, t) {
|
|
45
45
|
return g(this, null, function* () {
|
|
46
46
|
var P, x, z;
|
|
@@ -6,8 +6,8 @@ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
6
6
|
import "./five/FivePuppet.js";
|
|
7
7
|
import "./three/CSS3DRenderer/index.js";
|
|
8
8
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
9
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
9
10
|
import "@realsee/five/line";
|
|
10
11
|
import "./three/core/Five_LineMaterial2.js";
|
|
11
12
|
import "./three/core/Sphere.js";
|
|
12
13
|
import "./three/blink.js";
|
|
13
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.69.13-alpha
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.69.13-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
|
@@ -30,12 +30,12 @@ import "./three/PointSelector/index.js";
|
|
|
30
30
|
import "./three/CSS3DRenderer/index.js";
|
|
31
31
|
import { waitFiveModelLoaded as F } from "./five/fiveModelLoad.js";
|
|
32
32
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
33
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
33
34
|
import "@realsee/five/line";
|
|
34
35
|
import "./three/core/Five_LineMaterial2.js";
|
|
35
36
|
import "./three/core/Sphere.js";
|
|
36
37
|
import "./three/blink.js";
|
|
37
38
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
38
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
39
39
|
import "./five/FivePuppet.js";
|
|
40
40
|
const M = new E();
|
|
41
41
|
class R {
|
|
@@ -8,6 +8,7 @@ import "../../vendor/hammerjs/hammer.js";
|
|
|
8
8
|
import "./PointSelector/index.js";
|
|
9
9
|
import "./CSS3DRenderer/index.js";
|
|
10
10
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
11
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
11
12
|
import "@realsee/five/line";
|
|
12
13
|
import "./core/Five_LineMaterial2.js";
|
|
13
14
|
import "./core/Sphere.js";
|
|
@@ -16,7 +17,7 @@ import { rangePieceImg as h } from "../../PanoMeasurePlugin/Modules/rangePiece/h
|
|
|
16
17
|
import { CSS3DRenderPlugin as b } from "../../CSS3DRenderPlugin/index.js";
|
|
17
18
|
import { BetterTween as u } from "../animationFrame/BetterTween.js";
|
|
18
19
|
import "../five/FivePuppet.js";
|
|
19
|
-
class
|
|
20
|
+
class H {
|
|
20
21
|
constructor(t) {
|
|
21
22
|
n(this, "five");
|
|
22
23
|
n(this, "contentElement", document.createElement("div"));
|
|
@@ -65,5 +66,5 @@ class V {
|
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
68
|
export {
|
|
68
|
-
|
|
69
|
+
H as PointDomHelper
|
|
69
70
|
};
|
|
@@ -23,8 +23,8 @@ import "../../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
23
23
|
import "../../../tag.js";
|
|
24
24
|
import "../../CSS3DRenderer/index.js";
|
|
25
25
|
import "../../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
26
|
-
import "../../../five/FivePuppet.js";
|
|
27
26
|
import "../../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
27
|
+
import "../../../five/FivePuppet.js";
|
|
28
28
|
class A {
|
|
29
29
|
constructor(i, e) {
|
|
30
30
|
r(this, "five");
|