@realsee/dnalogel 3.16.2 → 3.17.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/Object3DHelperPlugin/FiveControllerWrapper.d.ts +1 -1
- package/dist/index.cjs.js +30 -30
- package/dist/index.js +1568 -1517
- package/dist/index.umd.js +26 -26
- package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +4 -4
- package/dist/shared-utils/Object3DHelper/Controller/MoveController.d.ts +8 -9
- package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -2
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +4 -3
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +4 -3
- package/docs/classes/CSS3DRender.html +4 -3
- package/docs/classes/GuideLineItem.GuideLineItem.html +4 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +4 -3
- package/docs/classes/Magnifier.html +4 -3
- package/docs/classes/ModelRoomLabelController.html +4 -3
- package/docs/classes/MoveController.html +4 -3
- package/docs/classes/Object3DHelperController.html +5 -4
- package/docs/classes/PaintBrush.html +4 -3
- package/docs/classes/PanoMeasurePluginLine.html +4 -3
- package/docs/classes/PanoMeasurePluginModel.html +4 -3
- package/docs/classes/PanoMeasurePluginPoint.html +4 -3
- package/docs/classes/PanoMeasurePluginPolyline.html +4 -3
- package/docs/classes/PanoTagPluginController.html +4 -3
- package/docs/classes/Util.BetterTween.html +4 -3
- package/docs/classes/Util.Interval.html +4 -3
- package/docs/classes/Util.LineSegments.html +4 -3
- package/docs/classes/Util.Magnifier.html +4 -3
- package/docs/classes/Util.Object3D.html +4 -3
- package/docs/classes/Util.PointDomHelper.html +4 -3
- package/docs/classes/Util.PointHelper.html +4 -3
- package/docs/classes/Util.PointSelectorHelper.html +4 -3
- package/docs/classes/Util.Rectangle.html +4 -3
- package/docs/classes/WalkController.html +4 -3
- package/docs/enums/CameraMovementEffect.html +4 -3
- package/docs/enums/ContentType.html +4 -3
- package/docs/enums/DIRECTION.html +4 -3
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +4 -3
- package/docs/enums/DimensionType.html +4 -3
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -3
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +4 -3
- package/docs/enums/PaintBrushTypeEnum.html +4 -3
- package/docs/enums/PointType.html +4 -3
- package/docs/enums/Rotation.html +4 -3
- package/docs/functions/AreaMakerPlugin.html +4 -3
- package/docs/functions/CSS3DRenderPlugin.html +4 -3
- package/docs/functions/CameraMovementPlugin.html +4 -3
- package/docs/functions/CruisePlugin.html +4 -3
- package/docs/functions/CurrentPanoImagePlugin.html +4 -3
- package/docs/functions/GuideLinePlugin.html +4 -3
- package/docs/functions/ItemLabelPlugin.html +4 -3
- package/docs/functions/MapviewFloorplanPlugin.html +4 -3
- package/docs/functions/ModelChassisCompassPlugin.html +4 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -3
- package/docs/functions/ModelFloorplanPlugin.html +4 -3
- package/docs/functions/ModelItemLabelPlugin.html +4 -3
- package/docs/functions/ModelRoomLabelPlugin.html +4 -3
- package/docs/functions/ModelTVVideoPlugin.html +4 -3
- package/docs/functions/ModelViewPlugin.html +4 -3
- package/docs/functions/MovePlugin.html +4 -3
- package/docs/functions/Object3DHelperPlugin.html +4 -3
- package/docs/functions/PanoCompassPlugin.html +4 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -3
- package/docs/functions/PanoDoorLabelPlugin.html +4 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -3
- package/docs/functions/PanoMeasurePlugin.html +4 -3
- package/docs/functions/PanoRulerPlugin.html +4 -3
- package/docs/functions/PanoRulerProPlugin.html +4 -3
- package/docs/functions/PanoSpatialTagPlugin.html +4 -3
- package/docs/functions/PanoTagPlugin.html +4 -3
- package/docs/functions/PanoVideoPlugin.html +4 -3
- package/docs/functions/PipelinePlugin.html +4 -3
- package/docs/functions/TopviewFloorplanPlugin.html +4 -3
- package/docs/functions/Util.absoluteUrl.html +4 -3
- package/docs/functions/Util.checkFiveModelLoaded.html +4 -3
- package/docs/functions/Util.equal.html +4 -3
- package/docs/functions/Util.getCoordsFromClient.html +4 -3
- package/docs/functions/Util.getCoordsFromElement.html +4 -3
- package/docs/functions/Util.getFrameTime.html +4 -3
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -3
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -3
- package/docs/functions/Util.isAbsoluteURL.html +4 -3
- package/docs/functions/Util.isModelLike.html +4 -3
- package/docs/functions/Util.isNil.html +4 -3
- package/docs/functions/Util.isPanoramaLike.html +4 -3
- package/docs/functions/Util.nextFrame.html +4 -3
- package/docs/functions/Util.notNil.html +4 -3
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -3
- package/docs/functions/Util.tweenProgress.html +4 -3
- package/docs/functions/Util.uuid.html +4 -3
- package/docs/functions/pluginFlag.html +4 -3
- package/docs/index.html +5 -4
- package/docs/interfaces/AddTagConfig.html +4 -3
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +4 -3
- package/docs/interfaces/AreaMakerPluginType.Config.html +4 -3
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +4 -3
- package/docs/interfaces/AreaMakerPluginType.Params.html +4 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +4 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +4 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +4 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +4 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +4 -3
- package/docs/interfaces/AreaMakerPluginType.State.html +4 -3
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -3
- package/docs/interfaces/CSS3DRenderPluginState.html +4 -3
- package/docs/interfaces/CameraMovementPluginExportType.html +4 -3
- package/docs/interfaces/CruisePluginTypes.Config.html +4 -3
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +4 -3
- package/docs/interfaces/CruisePluginTypes.EventMap.html +4 -3
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +4 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +4 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +4 -3
- package/docs/interfaces/CruisePluginTypes.PluginData.html +4 -3
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +4 -3
- package/docs/interfaces/CruisePluginTypes.PluginState.html +4 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +4 -3
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +4 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +4 -3
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +4 -3
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +4 -3
- package/docs/interfaces/EventMap.html +4 -3
- package/docs/interfaces/FloorplanBounding.html +4 -3
- package/docs/interfaces/FloorplanData.html +4 -3
- package/docs/interfaces/FloorplanEntrance.html +4 -3
- package/docs/interfaces/FloorplanExtraObject.html +4 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +4 -3
- package/docs/interfaces/FloorplanFloorData.html +4 -3
- package/docs/interfaces/FloorplanImagePosition.html +4 -3
- package/docs/interfaces/FloorplanObserver.html +4 -3
- package/docs/interfaces/FloorplanOutlineItem.html +4 -3
- package/docs/interfaces/FloorplanPosition.html +4 -3
- package/docs/interfaces/FloorplanRoomItem.html +4 -3
- package/docs/interfaces/FloorplanRoomLabelItem.html +4 -3
- package/docs/interfaces/FloorplanServerBounding.html +4 -3
- package/docs/interfaces/FloorplanServerComputedData.html +4 -3
- package/docs/interfaces/FloorplanServerData.html +4 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +4 -3
- package/docs/interfaces/FloorplanServerDoorPosition.html +4 -3
- package/docs/interfaces/FloorplanServerEntrance.html +4 -3
- package/docs/interfaces/FloorplanServerFloorData.html +4 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +4 -3
- package/docs/interfaces/FloorplanServerObserver.html +4 -3
- package/docs/interfaces/FloorplanServerOutlineItem.html +4 -3
- package/docs/interfaces/FloorplanServerPosition.html +4 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +4 -3
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -3
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +4 -3
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +4 -3
- package/docs/interfaces/GuideLinePluginType.EventMap.html +4 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +4 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +4 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +4 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +4 -3
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +4 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +4 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +4 -3
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +4 -3
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -3
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +4 -3
- package/docs/interfaces/GuideLinePluginType.PluginState.html +4 -3
- package/docs/interfaces/GuideLinePluginType.Route.html +4 -3
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +4 -3
- package/docs/interfaces/HelperOffset.html +4 -3
- package/docs/interfaces/ImagePlaneGroup.html +4 -3
- package/docs/interfaces/ItemLabelPluginData.html +4 -3
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +4 -3
- package/docs/interfaces/ItemLabelPluginParametersType.html +4 -3
- package/docs/interfaces/MinMax.html +4 -3
- package/docs/interfaces/ModelChassisCompassPluginData.html +4 -3
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -3
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +4 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -3
- package/docs/interfaces/ModelItemLabelPluginData.html +4 -3
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +4 -3
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +4 -3
- package/docs/interfaces/ModelRoomLabelPluginData.html +4 -3
- package/docs/interfaces/ModelTVVideoPluginData.html +4 -3
- package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -3
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +4 -3
- package/docs/interfaces/ModelViewPluginExportType.html +4 -3
- package/docs/interfaces/Object3DHelperState.html +8 -7
- package/docs/interfaces/ObjectHelperControllers.html +4 -3
- package/docs/interfaces/PaintBrushAction.html +4 -3
- package/docs/interfaces/PaintBrushConfigs.html +4 -3
- package/docs/interfaces/PaintBrushState.html +4 -3
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +4 -3
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -3
- package/docs/interfaces/PanoMeasureParameterType.html +4 -3
- package/docs/interfaces/PanoMeasurePluginLineJson.html +4 -3
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +4 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +4 -3
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +4 -3
- package/docs/interfaces/PanoRulerPluginExportType.html +4 -3
- package/docs/interfaces/PanoRulerPluginOptions.html +4 -3
- package/docs/interfaces/PanoRulerPluginParameterType.html +4 -3
- package/docs/interfaces/PanoRulerProPluginExportType.html +4 -3
- package/docs/interfaces/PanoRulerProPluginOptions.html +4 -3
- package/docs/interfaces/PanoRulerProPluginParameterType.html +4 -3
- package/docs/interfaces/PanoRulerProPluginState.html +4 -3
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -3
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -3
- package/docs/interfaces/PanoSpatialTagPluginData.html +4 -3
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +4 -3
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +4 -3
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +4 -3
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +4 -3
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +4 -3
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +4 -3
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +4 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +4 -3
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +4 -3
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +4 -3
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +4 -3
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +4 -3
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +4 -3
- package/docs/interfaces/Point.html +4 -3
- package/docs/interfaces/Room.html +4 -3
- package/docs/interfaces/RoomInfo.html +4 -3
- package/docs/interfaces/RoomLabel.html +4 -3
- package/docs/interfaces/RoomRules.html +4 -3
- package/docs/interfaces/Rooms.html +4 -3
- package/docs/interfaces/Scissor.html +4 -3
- package/docs/interfaces/State.html +4 -3
- package/docs/interfaces/TagCacheInterface.html +4 -3
- package/docs/interfaces/TagConfig.html +4 -3
- package/docs/interfaces/TagGLTFObjectGroup.html +4 -3
- package/docs/interfaces/TagIconUrl.html +4 -3
- package/docs/interfaces/TagObjectGroup.html +4 -3
- package/docs/interfaces/TagStyle.html +4 -3
- package/docs/interfaces/Tags.html +4 -3
- package/docs/interfaces/TemporaryState.html +4 -3
- package/docs/interfaces/Util.MagnifierParameter.html +4 -3
- package/docs/interfaces/Util.MouseGroupParameter.html +4 -3
- package/docs/interfaces/Util.PointIntersection.html +4 -3
- package/docs/modules/AreaMakerPluginType.html +4 -3
- package/docs/modules/CruisePluginTypes.html +4 -3
- package/docs/modules/CurrentPanoImagePluginType.html +4 -3
- package/docs/modules/GuideLineItem.html +4 -3
- package/docs/modules/GuideLineModeItem.html +4 -3
- package/docs/modules/GuideLinePluginType.html +4 -3
- package/docs/modules/PanoVideoPluginType.html +4 -3
- package/docs/modules/Util.html +4 -3
- package/docs/modules.html +6 -4
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +4 -3
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +4 -3
- package/docs/types/AreaMakerPluginType.PluginData.html +4 -3
- package/docs/types/AreaMakerPluginType.ServerData.html +4 -3
- package/docs/types/ArrayPosition.html +4 -3
- package/docs/types/AudioAppearance.html +4 -3
- package/docs/types/AudioTagTypeConfigKey.html +4 -3
- package/docs/types/CSS3DRenderExportType.html +4 -3
- package/docs/types/CSS3DRenderPluginExportType.html +4 -3
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -3
- package/docs/types/ClassFunctionParameters.html +4 -3
- package/docs/types/Color.html +4 -3
- package/docs/types/ContentTypeConfigKey.html +4 -3
- package/docs/types/ContentTypeConfigKeySplit.html +4 -3
- package/docs/types/ContentTypeMap.html +4 -3
- package/docs/types/Create3DDomContainerReturnType.html +4 -3
- package/docs/types/Create3DElementReturnType.html +4 -3
- package/docs/types/CruisePluginExportType.html +4 -3
- package/docs/types/CruisePluginTypes.CruiseData.html +4 -3
- package/docs/types/CruisePluginTypes.MoveEffect.html +4 -3
- package/docs/types/CurrentPanoImagePluginExportType.html +4 -3
- package/docs/types/DeprecatedMediaPlaneProperty.html +4 -3
- package/docs/types/DeprecatedTagProperty.html +4 -3
- package/docs/types/Direction-1.html +4 -3
- package/docs/types/Direction4.html +4 -3
- package/docs/types/ElementRenderer.html +4 -3
- package/docs/types/FloorplanRuleLabels.html +4 -3
- package/docs/types/FloorplanServerRuleLabels.html +4 -3
- package/docs/types/GuideLinePluginExportType.html +4 -3
- package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -3
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -3
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -3
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -3
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -3
- package/docs/types/GuideLinePluginType.PathItem.html +4 -3
- package/docs/types/GuideLinePluginType.PluginData.html +4 -3
- package/docs/types/HelperEventMap.html +19 -111
- package/docs/types/InternalHelperEventMap.html +380 -0
- package/docs/types/LoadTagConfig.html +4 -3
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -3
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -3
- package/docs/types/MediaData.html +4 -3
- package/docs/types/MediaStore.html +4 -3
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -3
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -3
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -3
- package/docs/types/ModelId.html +4 -3
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -3
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -3
- package/docs/types/MoveArgs.html +4 -3
- package/docs/types/MoveOpts.html +4 -3
- package/docs/types/Object3DHelperEventMap.html +5 -4
- package/docs/types/ObjectFit.html +4 -3
- package/docs/types/PaintBrushEventMap.html +4 -3
- package/docs/types/PanoCompassPluginData.html +4 -3
- package/docs/types/PanoCompassPluginExportType.html +4 -3
- package/docs/types/PanoCompassPluginParameterType.html +4 -3
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -3
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -3
- package/docs/types/PanoIndex.html +4 -3
- package/docs/types/PanoMeasurePluginEvent.html +4 -3
- package/docs/types/PanoMeasureReturnType.html +4 -3
- package/docs/types/PanoSpatialTagPluginId.html +4 -3
- package/docs/types/PanoTagPluginExportInterface.html +4 -3
- package/docs/types/PanoTagPluginParamsInterface.html +4 -3
- package/docs/types/PanoVideoPluginParameterType.html +4 -3
- package/docs/types/PanoVideoPluginReturnType.html +4 -3
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -3
- package/docs/types/PipelinePluginParameterType.html +4 -3
- package/docs/types/PipelinePluginReturnType.html +4 -3
- package/docs/types/PlaneTag.html +4 -3
- package/docs/types/Point2DTag.html +4 -3
- package/docs/types/Point3DTag.html +4 -3
- package/docs/types/PointTag.html +4 -3
- package/docs/types/PointTagInstance.html +4 -3
- package/docs/types/Position.html +4 -3
- package/docs/types/RotateArgs.html +4 -3
- package/docs/types/RotateOpts.html +4 -3
- package/docs/types/RuleLabelsKey.html +4 -3
- package/docs/types/RuleLabelsValue.html +4 -3
- package/docs/types/StickType.html +4 -3
- package/docs/types/Tag.html +4 -3
- package/docs/types/Tag2D.html +4 -3
- package/docs/types/Tag3D.html +4 -3
- package/docs/types/TagConfigByKey.html +4 -3
- package/docs/types/TagContentType.html +4 -3
- package/docs/types/TagContentTypeMapping.html +4 -3
- package/docs/types/TagDimensionType.html +4 -3
- package/docs/types/TagElement.html +4 -3
- package/docs/types/TagEvents.html +4 -3
- package/docs/types/TagGLTFObject.html +4 -3
- package/docs/types/TagHooks.html +4 -3
- package/docs/types/TagId.html +4 -3
- package/docs/types/TagInstance.html +4 -3
- package/docs/types/TagPointType.html +4 -3
- package/docs/types/TagRendererMap.html +4 -3
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -3
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -3
- package/docs/types/WorkCode.html +4 -3
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -3
- package/docs/variables/PLUGIN.html +4 -3
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -3
- package/docs/variables/ROOM_TYPE_MAP.html +4 -3
- package/docs/variables/defaultGlobalConfig.html +4 -3
- package/docs/variables/itemLabelPluginServerParams.html +4 -3
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -3
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -3
- package/libs/Object3DHelperPlugin/Controller.js +97 -70
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +1 -1
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +19 -9
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +4 -4
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +71 -70
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.d.ts +8 -9
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +49 -34
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +3 -3
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +3 -3
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +9 -9
- package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js +0 -2
- package/libs/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -2
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import * as
|
|
5
|
-
import { Subscribe as
|
|
1
|
+
var j = Object.defineProperty;
|
|
2
|
+
var u = (p, e, t) => e in p ? j(p, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[e] = t;
|
|
3
|
+
var n = (p, e, t) => (u(p, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import * as h from "three";
|
|
5
|
+
import { Subscribe as f } from "../../Subscribe.js";
|
|
6
6
|
import { DomEvents as y } from "../../threex/domevents/index.js";
|
|
7
7
|
import { notNil as m } from "../../isNil.js";
|
|
8
8
|
import { boundingBox as g } from "../utils/boundingBox.js";
|
|
9
9
|
class k {
|
|
10
10
|
constructor(e, t) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
11
|
+
n(this, "originObject3D");
|
|
12
|
+
n(this, "hooks");
|
|
13
|
+
n(this, "preventTapDefaultEvent", !1);
|
|
14
|
+
n(this, "internalHooks");
|
|
15
|
+
n(this, "disposers", []);
|
|
16
|
+
n(this, "helperObject3D");
|
|
17
|
+
n(this, "camera");
|
|
18
|
+
n(this, "model");
|
|
19
|
+
n(this, "scene");
|
|
20
|
+
n(this, "container");
|
|
21
|
+
n(this, "domEvents");
|
|
22
|
+
n(this, "isDragging", !1);
|
|
23
|
+
n(this, "enabled", !1);
|
|
24
|
+
n(this, "name", "BaseController");
|
|
25
|
+
n(this, "boundingBox");
|
|
26
|
+
n(this, "offset");
|
|
27
|
+
n(this, "onRender");
|
|
28
|
+
n(this, "onWantsTapGesture", (e) => {
|
|
28
29
|
if (this.getIntersectObject(e))
|
|
29
30
|
return !1;
|
|
30
31
|
});
|
|
31
|
-
var
|
|
32
|
-
this.hooks = (
|
|
32
|
+
var l, O, d;
|
|
33
|
+
this.hooks = (l = e.sharedHooks) != null ? l : new f(), this.internalHooks = (O = e.sharedInternalHooks) != null ? O : new f(), this.camera = e.camera, this.model = e.model, this.originObject3D = e.originObject3D, this.helperObject3D = e.helperObject3D, this.container = e.container, this.scene = e.scene, this.domEvents = new y(e.camera, e.container), this.onRender = (d = e.onRender) != null ? d : () => {
|
|
33
34
|
}, this.offset = t == null ? void 0 : t.offset, this.initialHelperPosition(), this.initialHelperQuaternion(), this.enable();
|
|
34
|
-
const
|
|
35
|
-
this.
|
|
36
|
-
this.
|
|
35
|
+
const c = (...i) => this.onSetOriginObjectScale(...i), s = (...i) => this.onSetOriginObjectRotate(...i), r = (...i) => this.onSetOriginObjectPosition(...i), o = (...i) => this.onApplyOriginObjectScale(...i), a = (...i) => this.onApplyOriginObjectRotate(...i), b = (...i) => this.onApplyOriginObjectPosition(...i);
|
|
36
|
+
this.internalHooks.on("setObjectScale", c), this.internalHooks.on("setObjectRotate", s), this.internalHooks.on("setObjectPosition", r), this.internalHooks.on("applyObjectPosition", b), this.internalHooks.on("applyObjectRotate", a), this.internalHooks.on("applyObjectScale", o), this.disposers.push(() => {
|
|
37
|
+
this.internalHooks.off("setObjectScale", c), this.internalHooks.off("setObjectRotate", s), this.internalHooks.off("setObjectPosition", r), this.internalHooks.off("applyObjectPosition", b), this.internalHooks.off("applyObjectRotate", a), this.internalHooks.off("applyObjectScale", o);
|
|
37
38
|
});
|
|
38
39
|
}
|
|
39
40
|
initialHelperPosition() {
|
|
@@ -81,7 +82,7 @@ class k {
|
|
|
81
82
|
applyHelperScaleMatrix4(e, t) {
|
|
82
83
|
this.helperObject3D.applyHelperScaleMatrix4(e, t);
|
|
83
84
|
}
|
|
84
|
-
onWantsGesture(e, t,
|
|
85
|
+
onWantsGesture(e, t, c) {
|
|
85
86
|
if (this.isDragging)
|
|
86
87
|
return !1;
|
|
87
88
|
}
|
|
@@ -124,77 +125,77 @@ class k {
|
|
|
124
125
|
}
|
|
125
126
|
updateOffsetByScale(e) {
|
|
126
127
|
if (this.boundingBox && this.offset) {
|
|
127
|
-
const t = this.originObject3D.position,
|
|
128
|
+
const t = this.originObject3D.position, c = new h.Vector3().subVectors(this.boundingBox.max, t).multiply(e).add(t), s = new h.Vector3().subVectors(this.boundingBox.min, t).multiply(e).add(t), r = this.calculateOffset(this.offset, { min: s, max: c });
|
|
128
129
|
this.helperObject3D.position.copy(r), this.helperObject3D.initialPosition();
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
|
-
hoverListener(e, t = 16777215,
|
|
132
|
-
const
|
|
133
|
-
for (const
|
|
134
|
-
if (
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
|
|
132
|
+
hoverListener(e, t = 16777215, c = 1) {
|
|
133
|
+
const s = (Array.isArray(e) ? e : [e]).filter(m), r = [];
|
|
134
|
+
for (const o of s)
|
|
135
|
+
if (o instanceof h.Mesh || o instanceof h.Group) {
|
|
136
|
+
const a = o instanceof h.Group ? o.children.filter((i) => i instanceof h.Mesh) : [o];
|
|
137
|
+
a.forEach((i) => {
|
|
138
|
+
i.__originalColor__ = i.material.color.clone(), i.__originalOpacity__ = i.material.opacity;
|
|
138
139
|
});
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
const b = () => {
|
|
141
|
+
a.forEach((i) => {
|
|
142
|
+
i.material.color.set(t), i.material.opacity = c;
|
|
142
143
|
}), this.render();
|
|
143
|
-
},
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
}, l = () => {
|
|
145
|
+
a.forEach((i) => {
|
|
146
|
+
i.material.color.copy(i.__originalColor__), i.material.opacity = i.__originalOpacity__;
|
|
146
147
|
}), this.render();
|
|
148
|
+
}, O = () => {
|
|
149
|
+
this.isDragging || b();
|
|
147
150
|
}, d = () => {
|
|
148
|
-
this.isDragging ||
|
|
149
|
-
}, c = () => {
|
|
150
|
-
this.isDragging || a();
|
|
151
|
+
this.isDragging || l();
|
|
151
152
|
};
|
|
152
|
-
for (const
|
|
153
|
-
this.domEvents.addEventListener(
|
|
154
|
-
this.domEvents.removeEventListener(
|
|
153
|
+
for (const i of a)
|
|
154
|
+
this.domEvents.addEventListener(i, "mouseover", O), this.domEvents.addEventListener(i, "mouseout", d), this.hooks.on("moveStart", b), this.hooks.on("moveEnd", l), this.hooks.on("rotateEnd", l), r.push(() => {
|
|
155
|
+
this.domEvents.removeEventListener(i, "mouseover", O), this.domEvents.removeEventListener(i, "mouseout", d), this.hooks.off("moveStart", b), this.hooks.off("moveEnd", l), this.hooks.off("rotateEnd", l);
|
|
155
156
|
});
|
|
156
157
|
}
|
|
157
|
-
return () => r.forEach((
|
|
158
|
+
return () => r.forEach((o) => o == null ? void 0 : o());
|
|
158
159
|
}
|
|
159
160
|
getIntersectObject(e) {
|
|
160
|
-
const t = this.camera.position,
|
|
161
|
-
if (!
|
|
161
|
+
const t = this.camera.position, c = this.helperObject3D;
|
|
162
|
+
if (!c)
|
|
162
163
|
return;
|
|
163
|
-
const
|
|
164
|
-
if (!
|
|
164
|
+
const s = this.helperObject3D.raycasterIntersectObject(e)[0];
|
|
165
|
+
if (!s)
|
|
165
166
|
return;
|
|
166
|
-
const r =
|
|
167
|
-
if (r.object =
|
|
168
|
-
const
|
|
169
|
-
if (
|
|
167
|
+
const r = s;
|
|
168
|
+
if (r.object = c, this.model.intersectRaycaster) {
|
|
169
|
+
const o = this.model.intersectRaycaster(e)[0];
|
|
170
|
+
if (o && o.point.distanceTo(t) < r.point.distanceTo(t))
|
|
170
171
|
return;
|
|
171
172
|
}
|
|
172
173
|
return r.object;
|
|
173
174
|
}
|
|
174
175
|
calculateOffset(e, t) {
|
|
175
|
-
const
|
|
176
|
+
const c = this.originObject3D, s = new h.Vector3(0, 0, 0);
|
|
176
177
|
if (!e)
|
|
177
|
-
return
|
|
178
|
-
const r = () => t || (this.boundingBox ? this.boundingBox : (this.boundingBox = g(
|
|
178
|
+
return s;
|
|
179
|
+
const r = () => t || (this.boundingBox ? this.boundingBox : (this.boundingBox = g(c), this.boundingBox));
|
|
179
180
|
if (typeof e.x == "number")
|
|
180
|
-
|
|
181
|
+
s.setX(e.x);
|
|
181
182
|
else if (typeof e.x == "object") {
|
|
182
|
-
const
|
|
183
|
-
|
|
183
|
+
const o = r();
|
|
184
|
+
s.setX((o.max.x - o.min.x) * e.x.percents);
|
|
184
185
|
}
|
|
185
186
|
if (typeof e.y == "number")
|
|
186
|
-
|
|
187
|
+
s.setY(e.y);
|
|
187
188
|
else if (typeof e.y == "object") {
|
|
188
|
-
const
|
|
189
|
-
|
|
189
|
+
const o = r();
|
|
190
|
+
s.setY((o.max.y - o.min.y) * e.y.percents);
|
|
190
191
|
}
|
|
191
192
|
if (typeof e.z == "number")
|
|
192
|
-
|
|
193
|
+
s.setZ(e.z);
|
|
193
194
|
else if (typeof e.z == "object") {
|
|
194
|
-
const
|
|
195
|
-
|
|
195
|
+
const o = r();
|
|
196
|
+
s.setZ((o.max.z - o.min.z) * e.z.percents);
|
|
196
197
|
}
|
|
197
|
-
return
|
|
198
|
+
return s;
|
|
198
199
|
}
|
|
199
200
|
}
|
|
200
201
|
export {
|
|
@@ -5,26 +5,25 @@ export declare class MoveController<T extends MoveHelperAbstract = MoveHelperAbs
|
|
|
5
5
|
get moveByMouseEnable(): boolean;
|
|
6
6
|
protected name: string;
|
|
7
7
|
private startInfo?;
|
|
8
|
-
private
|
|
8
|
+
private _moveByMouse;
|
|
9
9
|
private mouseInfo?;
|
|
10
10
|
private mousedownEventListenerDisposer;
|
|
11
11
|
constructor(...params: ConstructorParameters<typeof BaseController<T>>);
|
|
12
12
|
dispose(): void;
|
|
13
13
|
/**
|
|
14
14
|
* @description: 跟随鼠标移动
|
|
15
|
+
* @param {boolean} params.useFaceNormal 是否使用面的法线,默认为false
|
|
16
|
+
* @param {boolean} params.useFaceNormal.enable 是否使用面的法线,默认为true
|
|
17
|
+
* @param {Vector3} params.useFaceNormal.alignmentVector 期望对齐的方向,默认为Y轴对齐Face的法向向量,即 `{ x: 0, y: 1, z: 0 }`
|
|
15
18
|
*/
|
|
16
|
-
moveByMouse(
|
|
19
|
+
moveByMouse(params?: {
|
|
20
|
+
useFaceNormal: InstanceType<typeof MoveController>['_moveByMouse']['useFaceNormal'];
|
|
21
|
+
}): void;
|
|
17
22
|
/**
|
|
18
23
|
* @description: 禁用跟随鼠标移动
|
|
19
24
|
*/
|
|
20
25
|
disableMoveByMouse(): void;
|
|
21
|
-
onIntersectionOnModelUpdate(intersection:
|
|
22
|
-
point: THREE.Vector3;
|
|
23
|
-
}): void;
|
|
24
|
-
protected onApplyOriginObjectScale(params: {
|
|
25
|
-
matrix: THREE.Matrix4;
|
|
26
|
-
origin?: THREE.Vector3;
|
|
27
|
-
}): void;
|
|
26
|
+
onIntersectionOnModelUpdate(intersection: THREE.Intersection): void;
|
|
28
27
|
private handleMouseDown;
|
|
29
28
|
private handleMouseUp;
|
|
30
29
|
/**
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var v = Object.defineProperty;
|
|
2
|
+
var p = (m, h, e) => h in m ? v(m, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : m[h] = e;
|
|
3
|
+
var d = (m, h, e) => (p(m, typeof h != "symbol" ? h + "" : h, e), e);
|
|
4
4
|
import { BaseController as f } from "../Base/BaseController.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as u from "three";
|
|
6
6
|
import { getMouseRaycaster as g } from "../utils/getMouseRaycaster.js";
|
|
7
7
|
class w extends f {
|
|
8
8
|
constructor(...e) {
|
|
9
9
|
super(...e);
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
d(this, "name", "MoveController");
|
|
11
|
+
d(this, "startInfo");
|
|
12
|
+
d(this, "_moveByMouse", {
|
|
13
|
+
enabled: !1
|
|
14
|
+
});
|
|
15
|
+
d(this, "mouseInfo");
|
|
16
|
+
d(this, "mousedownEventListenerDisposer");
|
|
15
17
|
const t = this.helperObject3D;
|
|
16
18
|
this.hoverListener([t.xArrow, t.yArrow, t.zArrow]);
|
|
17
|
-
const o = this.dragStart.bind(this),
|
|
18
|
-
this.domEvents.addEventListener(this.helperObject3D, "mousedown", o), document.addEventListener("mousemove",
|
|
19
|
-
this.domEvents.removeEventListener(this.helperObject3D, "mousedown", o), document.removeEventListener("mousemove",
|
|
19
|
+
const o = this.dragStart.bind(this), a = this.dragging.bind(this), r = this.dragEnd.bind(this), s = this.show.bind(this), n = this.hide.bind(this);
|
|
20
|
+
this.domEvents.addEventListener(this.helperObject3D, "mousedown", o), document.addEventListener("mousemove", a), document.addEventListener("mouseup", r), this.hooks.on("rotateStart", n), this.hooks.on("rotateEnd", s), this.hooks.on("moveByMouseEnable", n), this.hooks.on("moveByMouseDisable", s), this.disposers.push(() => {
|
|
21
|
+
this.domEvents.removeEventListener(this.helperObject3D, "mousedown", o), document.removeEventListener("mousemove", a), document.removeEventListener("mouseup", r), this.hooks.off("rotateStart", n), this.hooks.off("rotateEnd", s), this.hooks.off("moveByMouseEnable", n), this.hooks.off("moveByMouseDisable", s);
|
|
20
22
|
}), this.moveByMouseEnable && this.moveByMouse();
|
|
21
23
|
}
|
|
22
24
|
get moveByMouseEnable() {
|
|
23
|
-
return this.
|
|
25
|
+
return this._moveByMouse.enabled;
|
|
24
26
|
}
|
|
25
27
|
dispose() {
|
|
26
28
|
var e;
|
|
@@ -28,14 +30,17 @@ class w extends f {
|
|
|
28
30
|
}
|
|
29
31
|
/**
|
|
30
32
|
* @description: 跟随鼠标移动
|
|
33
|
+
* @param {boolean} params.useFaceNormal 是否使用面的法线,默认为false
|
|
34
|
+
* @param {boolean} params.useFaceNormal.enable 是否使用面的法线,默认为true
|
|
35
|
+
* @param {Vector3} params.useFaceNormal.alignmentVector 期望对齐的方向,默认为Y轴对齐Face的法向向量,即 `{ x: 0, y: 1, z: 0 }`
|
|
31
36
|
*/
|
|
32
|
-
moveByMouse() {
|
|
33
|
-
this.
|
|
34
|
-
const
|
|
37
|
+
moveByMouse(e) {
|
|
38
|
+
this._moveByMouse = { enabled: !0, useFaceNormal: e == null ? void 0 : e.useFaceNormal }, this.preventTapDefaultEvent = !0;
|
|
39
|
+
const t = this.handleMouseDown.bind(this), o = this.handleMouseUp.bind(this);
|
|
35
40
|
this.hooks.emit("moveByMouseEnable"), setTimeout(() => {
|
|
36
|
-
this.container.addEventListener("mousedown",
|
|
41
|
+
this.container.addEventListener("mousedown", t), this.container.addEventListener("mouseup", o);
|
|
37
42
|
}), this.mousedownEventListenerDisposer = () => {
|
|
38
|
-
this.container.removeEventListener("mousedown",
|
|
43
|
+
this.container.removeEventListener("mousedown", t), this.container.removeEventListener("mouseup", o);
|
|
39
44
|
};
|
|
40
45
|
}
|
|
41
46
|
/**
|
|
@@ -43,12 +48,22 @@ class w extends f {
|
|
|
43
48
|
*/
|
|
44
49
|
disableMoveByMouse() {
|
|
45
50
|
var e;
|
|
46
|
-
this.
|
|
51
|
+
this._moveByMouse = { enabled: !1 }, this.preventTapDefaultEvent = !1, this.hooks.emit("moveByMouseDisable"), (e = this.mousedownEventListenerDisposer) == null || e.call(this);
|
|
47
52
|
}
|
|
48
53
|
onIntersectionOnModelUpdate(e) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
54
|
+
var r, s, n, l;
|
|
55
|
+
if (!this.moveByMouseEnable)
|
|
56
|
+
return;
|
|
57
|
+
const { point: t, face: o } = e;
|
|
58
|
+
if (!this.hooks.emit("wantToMove", t)) {
|
|
59
|
+
if (this.originObject3D.position.copy(t), (this._moveByMouse.useFaceNormal === !0 || typeof this._moveByMouse.useFaceNormal == "object" && this._moveByMouse.useFaceNormal.enable !== !1) && o != null && o.normal) {
|
|
60
|
+
let i = { x: 0, y: 1, z: 0 };
|
|
61
|
+
typeof this._moveByMouse.useFaceNormal == "object" && (i = (r = this._moveByMouse.useFaceNormal.alignmentVector) != null ? r : i);
|
|
62
|
+
const c = new u.Vector3((s = i.x) != null ? s : 0, (n = i.y) != null ? n : 0, (l = i.z) != null ? l : 0);
|
|
63
|
+
this.originObject3D.quaternion.setFromUnitVectors(c, o.normal), this.internalHooks.emit("setObjectRotate", this.originObject3D.quaternion.clone());
|
|
64
|
+
}
|
|
65
|
+
this.internalHooks.emit("setObjectPosition", t), this.hooks.emit("move", t);
|
|
66
|
+
}
|
|
52
67
|
}
|
|
53
68
|
handleMouseDown(e) {
|
|
54
69
|
const { x: t, y: o } = e;
|
|
@@ -64,7 +79,7 @@ class w extends f {
|
|
|
64
79
|
* @description: 拖动开始,找出拖的Direction
|
|
65
80
|
*/
|
|
66
81
|
dragStart(e) {
|
|
67
|
-
if (this.
|
|
82
|
+
if (this.moveByMouseEnable || this.isDragging)
|
|
68
83
|
return;
|
|
69
84
|
const t = e == null ? void 0 : e.intersect;
|
|
70
85
|
if (!t)
|
|
@@ -72,12 +87,12 @@ class w extends f {
|
|
|
72
87
|
const o = (t == null ? void 0 : t.object).direction;
|
|
73
88
|
if (!o)
|
|
74
89
|
return this.dragEnd();
|
|
75
|
-
const
|
|
90
|
+
const a = new u.Vector3(1, 0, 0).applyQuaternion(this.helperObject3D.quaternion), r = new u.Vector3(0, 1, 0).applyQuaternion(this.helperObject3D.quaternion), s = new u.Vector3(0, 0, 1).applyQuaternion(this.helperObject3D.quaternion), n = (() => {
|
|
76
91
|
switch (o) {
|
|
77
92
|
case "x":
|
|
78
|
-
return r;
|
|
79
|
-
case "y":
|
|
80
93
|
return a;
|
|
94
|
+
case "y":
|
|
95
|
+
return r;
|
|
81
96
|
case "z":
|
|
82
97
|
return s;
|
|
83
98
|
}
|
|
@@ -87,10 +102,10 @@ class w extends f {
|
|
|
87
102
|
case "y":
|
|
88
103
|
return s;
|
|
89
104
|
case "z":
|
|
90
|
-
return
|
|
105
|
+
return a;
|
|
91
106
|
}
|
|
92
|
-
})(),
|
|
93
|
-
|
|
107
|
+
})(), i = t.point.clone(), c = new u.Plane();
|
|
108
|
+
c.setFromNormalAndCoplanarPoint(l, i), this.startInfo = { startVectorProject: i.clone().projectOnVector(n), directionVector: n, plane: c }, this.helperObject3D.showDraggingHelper([o]), this.hooks.emit("moveStart"), this.isDragging = !0;
|
|
94
109
|
}
|
|
95
110
|
dragging(e) {
|
|
96
111
|
if (!this.isDragging || !this.startInfo)
|
|
@@ -101,13 +116,13 @@ class w extends f {
|
|
|
101
116
|
move(e) {
|
|
102
117
|
if (!this.startInfo)
|
|
103
118
|
return this.dragEnd();
|
|
104
|
-
const { plane: t, directionVector: o, startVectorProject:
|
|
119
|
+
const { plane: t, directionVector: o, startVectorProject: a } = this.startInfo, r = this.originObject3D, s = e.ray.intersectPlane(t, new u.Vector3());
|
|
105
120
|
if (!s)
|
|
106
121
|
return;
|
|
107
|
-
const n = s.clone().projectOnVector(o), l = n.clone().sub(
|
|
108
|
-
|
|
109
|
-
const
|
|
110
|
-
this.hooks.emit("wantToMove",
|
|
122
|
+
const n = s.clone().projectOnVector(o), l = n.clone().sub(a), i = new u.Matrix4();
|
|
123
|
+
i.setPosition(l);
|
|
124
|
+
const c = r.position.clone().applyMatrix4(i);
|
|
125
|
+
this.hooks.emit("wantToMove", c) || (r.applyMatrix4(i), a.copy(n), this.internalHooks.emit("applyObjectPosition", { matrix: i }), this.hooks.emit("move", c));
|
|
111
126
|
}
|
|
112
127
|
dragEnd() {
|
|
113
128
|
this.isDragging && (this.startInfo = void 0, this.isDragging = !1, this.helperObject3D.show(), this.hooks.emit("moveEnd"));
|
|
@@ -102,10 +102,10 @@ class _ extends Y {
|
|
|
102
102
|
case "nwse":
|
|
103
103
|
x(), S();
|
|
104
104
|
}
|
|
105
|
-
const
|
|
105
|
+
const H = new o().subVectors(n[1], n[0]).length() / D.length(), L = new o().subVectors(n[3], n[0]).length() / y.length(), R = new o(H, L, 1), u = new m.Matrix4().scale(R);
|
|
106
106
|
s.isCSS3DObjectPlus ? s.applyScaleMatrix4(u) : s.scale.applyMatrix4(u), f.position.copy(g);
|
|
107
|
-
const
|
|
108
|
-
s.applyMatrix4(d), (C = this.helperObject3D.css3DInstance) == null || C.css3DObject.applyMatrix4(d), (E = this.helperObject3D.plane) == null || E.applyMatrix4(d), this.
|
|
107
|
+
const q = new o().addVectors(n[0], n[2]).divideScalar(2), F = new o().subVectors(q, I), d = new m.Matrix4().setPosition(F);
|
|
108
|
+
s.applyMatrix4(d), (C = this.helperObject3D.css3DInstance) == null || C.css3DObject.applyMatrix4(d), (E = this.helperObject3D.plane) == null || E.applyMatrix4(d), this.internalHooks.emit("applyObjectScale", { matrix: u }), this.internalHooks.emit("applyObjectPosition", { matrix: d }), this.render();
|
|
109
109
|
}
|
|
110
110
|
dragEnd() {
|
|
111
111
|
this.isDragging && (this.startInfo = void 0, this.isDragging = !1, this.hooks.emit("scaleEnd"), this.render());
|
|
@@ -32,7 +32,7 @@ class P extends v {
|
|
|
32
32
|
if (this.hooks.emit("wantToRotate", r))
|
|
33
33
|
return;
|
|
34
34
|
const { originObject3D: c, rotateCenter: l } = this;
|
|
35
|
-
w(c, r, l), this.
|
|
35
|
+
w(c, r, l), this.internalHooks.emit("setObjectRotate", r, l), this.hooks.emit("rotate", r), this.render();
|
|
36
36
|
}
|
|
37
37
|
dispose() {
|
|
38
38
|
this.removeListener(), super.dispose();
|
|
@@ -97,10 +97,10 @@ class P extends v {
|
|
|
97
97
|
const j = new s.Vector3().subVectors(a.position, l).applyQuaternion(m).add(l);
|
|
98
98
|
a.position.copy(j);
|
|
99
99
|
}
|
|
100
|
-
a.applyQuaternion(m), this.
|
|
100
|
+
a.applyQuaternion(m), this.internalHooks.emit("applyObjectRotate", { quaternion: m, origin: l }), this.hooks.emit("rotate", a.quaternion), this.startInfo.startVector = u;
|
|
101
101
|
}
|
|
102
102
|
dragEnd() {
|
|
103
|
-
this.isDragging && (this.
|
|
103
|
+
this.isDragging && (this.internalHooks.emit("setObjectRotate", this.originObject3D.quaternion, this.rotateCenter), this.startInfo = void 0, this.isDragging = !1, this.helperObject3D.show(), this.hooks.emit("rotateEnd"));
|
|
104
104
|
}
|
|
105
105
|
getAngleHelper(n) {
|
|
106
106
|
var e, t, i;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var f = Object.defineProperty;
|
|
2
|
+
var h = (o, t, e) => t in o ? f(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
3
|
+
var m = (o, t, e) => (h(o, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
4
|
import { BaseController as p } from "../Base/BaseController.js";
|
|
5
5
|
import * as y from "three";
|
|
6
6
|
class u extends p {
|
|
7
7
|
constructor(...e) {
|
|
8
8
|
super(...e);
|
|
9
|
-
|
|
9
|
+
m(this, "name", "ScaleController");
|
|
10
10
|
}
|
|
11
11
|
setScale(e) {
|
|
12
|
-
var
|
|
13
|
-
let
|
|
14
|
-
typeof e == "number" ? (
|
|
15
|
-
const r = new y.Vector3(
|
|
16
|
-
this.hooks.emit("wantToScale", r) || (this.originObject3D.scale.copy(r), this.
|
|
12
|
+
var s, l, a;
|
|
13
|
+
let n = 1, c = 1, i = 1;
|
|
14
|
+
typeof e == "number" ? (n = e, c = e, i = e) : typeof e == "object" && (n = (s = e.x) != null ? s : 1, c = (l = e.y) != null ? l : 1, i = (a = e.z) != null ? a : 1);
|
|
15
|
+
const r = new y.Vector3(n, c, i);
|
|
16
|
+
this.hooks.emit("wantToScale", r) || (this.originObject3D.scale.copy(r), this.internalHooks.emit("setObjectScale", r), this.hooks.emit("scale", r), this.render());
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
export {
|
|
@@ -12,6 +12,10 @@ export type HelperEventMap = {
|
|
|
12
12
|
moveEnd: () => void;
|
|
13
13
|
rotateEnd: () => void;
|
|
14
14
|
scaleEnd: () => void;
|
|
15
|
+
moveByMouseEnable: () => void;
|
|
16
|
+
moveByMouseDisable: () => void;
|
|
17
|
+
};
|
|
18
|
+
export type InternalHelperEventMap = {
|
|
15
19
|
setObjectPosition: (position: THREE.Vector3) => void;
|
|
16
20
|
setObjectRotate: (quaternion: THREE.Quaternion, origin?: THREE.Vector3) => void;
|
|
17
21
|
setObjectScale: (scale: THREE.Vector3) => void;
|
|
@@ -26,8 +30,6 @@ export type HelperEventMap = {
|
|
|
26
30
|
matrix: THREE.Matrix4;
|
|
27
31
|
origin?: THREE.Vector3;
|
|
28
32
|
}) => void;
|
|
29
|
-
moveByMouseEnable: () => void;
|
|
30
|
-
moveByMouseDisable: () => void;
|
|
31
33
|
};
|
|
32
34
|
export interface Object3DHelperState {
|
|
33
35
|
enabled: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.17.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",
|