@realsee/dnalogel 3.20.6 → 3.21.0
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/Controller.d.ts +25 -18
- package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Model/area.d.ts +2 -1
- package/dist/PanoMeasurePlugin/Model/line.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +2 -55
- package/dist/PanoMeasurePlugin/utils/line.d.ts +1 -1
- package/dist/Sculpt/Meshes/Area.d.ts +30 -0
- package/dist/Sculpt/Meshes/Box.d.ts +35 -0
- package/dist/Sculpt/Meshes/Circle.d.ts +26 -0
- package/dist/Sculpt/Meshes/CircleWithEdge.d.ts +11 -0
- package/dist/Sculpt/Meshes/Cylinder.d.ts +34 -0
- package/dist/Sculpt/Meshes/Line.d.ts +27 -0
- package/dist/Sculpt/Meshes/LineWithDots.d.ts +30 -0
- package/dist/Sculpt/Meshes/Point.d.ts +22 -0
- package/dist/Sculpt/Meshes/Polygon.d.ts +31 -0
- package/dist/Sculpt/Meshes/Polyline.d.ts +34 -0
- package/dist/Sculpt/Meshes/Prism.d.ts +31 -0
- package/dist/Sculpt/Meshes/Rectangle.d.ts +24 -0
- package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +20 -0
- package/dist/Sculpt/Modules/Cursor.d.ts +13 -0
- package/dist/Sculpt/Modules/Global.d.ts +20 -0
- package/dist/Sculpt/Objects/Base/Editor.d.ts +21 -0
- package/dist/Sculpt/Objects/Base/index.d.ts +60 -0
- package/dist/Sculpt/Objects/Box/Editor.d.ts +5 -0
- package/dist/Sculpt/Objects/Box/index.d.ts +28 -0
- package/dist/Sculpt/Objects/Circle/Editor.d.ts +5 -0
- package/dist/Sculpt/Objects/Circle/index.d.ts +28 -0
- package/dist/Sculpt/Objects/Cylinder/Editor.d.ts +5 -0
- package/dist/Sculpt/Objects/Cylinder/index.d.ts +30 -0
- package/dist/Sculpt/Objects/Point/Editor.d.ts +8 -0
- package/dist/Sculpt/Objects/Point/index.d.ts +35 -0
- package/dist/Sculpt/Objects/Polygon/Editor.d.ts +8 -0
- package/dist/Sculpt/Objects/Polygon/index.d.ts +28 -0
- package/dist/Sculpt/Objects/Polyline/Editor.d.ts +25 -0
- package/dist/Sculpt/Objects/Polyline/index.d.ts +31 -0
- package/dist/Sculpt/Objects/Prism/Editor.d.ts +5 -0
- package/dist/Sculpt/Objects/Prism/index.d.ts +28 -0
- package/dist/Sculpt/Objects/Rectangle/Editor.d.ts +5 -0
- package/dist/Sculpt/Objects/Rectangle/index.d.ts +29 -0
- package/dist/Sculpt/index.d.ts +184 -0
- package/dist/Sculpt/typings/index.d.ts +16 -0
- package/dist/Sculpt/typings/utils.type.d.ts +12 -0
- package/dist/Sculpt/utils/color.d.ts +40 -0
- package/dist/Sculpt/utils/data.d.ts +7 -0
- package/dist/Sculpt/utils/getBetterNormal.d.ts +2 -0
- package/dist/Sculpt/utils/radiusToSegments.d.ts +1 -0
- package/dist/Sculpt/utils/three/ColoredMesh.d.ts +17 -0
- package/dist/Sculpt/utils/three/RectangleGeometry.d.ts +6 -0
- package/dist/Sculpt/utils/three/rayOnLine.d.ts +5 -0
- package/dist/index.cjs.js +70 -70
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11554 -9325
- package/dist/index.umd.js +63 -63
- package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +13 -5
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +17 -6
- package/dist/shared-utils/Object3DHelper/Controller/RotateController.d.ts +0 -1
- package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +14 -7
- package/dist/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +4 -2
- package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +12 -3
- package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +1 -0
- package/dist/shared-utils/Object3DHelper/typings/index.d.ts +11 -0
- package/dist/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +2 -0
- package/dist/shared-utils/createLine/index.d.ts +2 -2
- package/dist/shared-utils/five/FiveDomEvents.d.ts +50 -13
- package/dist/shared-utils/five/FiveLine.d.ts +8 -0
- package/dist/shared-utils/five/getPosition.d.ts +14 -0
- package/dist/shared-utils/five/getRaycasterByNdcPosition.d.ts +6 -0
- package/dist/shared-utils/positionToVector3.d.ts +1 -0
- package/dist/shared-utils/three/IObject3D.d.ts +4 -0
- package/dist/shared-utils/three/Magnifier.d.ts +33 -19
- package/dist/shared-utils/three/PointSelector.d.ts +25 -11
- package/dist/shared-utils/three/PointSelectorHelper.d.ts +2 -0
- package/{libs/PanoMeasurePlugin/utils → dist/shared-utils/three}/geometryUtil.d.ts +1 -1
- package/dist/shared-utils/three/getIntersect.d.ts +16 -2
- package/dist/shared-utils/three/getNormal.d.ts +1 -1
- package/dist/shared-utils/three/recurveFindObject.d.ts +2 -0
- package/dist/shared-utils/three/vector3ToArray.d.ts +3 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +9 -4
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +9 -4
- package/docs/classes/CSS3DRender.html +10 -5
- package/docs/classes/GuideLineItem.GuideLineItem.html +10 -5
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +10 -5
- package/docs/classes/ModelRoomLabelController.html +10 -5
- package/docs/classes/MoveController.html +10 -5
- package/docs/classes/Object3DHelperController.html +26 -39
- package/docs/classes/PaintBrush.html +10 -5
- package/docs/classes/PanoMeasurePluginLine.html +12 -7
- package/docs/classes/PanoMeasurePluginModel.html +10 -5
- package/docs/classes/PanoMeasurePluginPoint.html +10 -5
- package/docs/classes/PanoMeasurePluginPolyline.html +10 -5
- package/docs/classes/PanoTagPluginController.html +10 -5
- package/docs/classes/Sculpt.html +847 -0
- package/docs/classes/Util.BetterTween.html +10 -5
- package/docs/classes/Util.Interval.html +10 -5
- package/docs/classes/Util.LineSegments.html +10 -5
- package/docs/classes/Util.Magnifier.html +82 -58
- package/docs/classes/Util.Object3D.html +10 -5
- package/docs/classes/Util.PointDomHelper.html +10 -5
- package/docs/classes/Util.PointHelper.html +10 -5
- package/docs/classes/Util.PointSelectorHelper.html +23 -18
- package/docs/classes/Util.Rectangle.html +10 -5
- package/docs/classes/WalkController.html +10 -5
- package/docs/enums/CameraMovementEffect.html +10 -5
- package/docs/enums/ContentType.html +10 -5
- package/docs/enums/DIRECTION.html +10 -5
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -5
- package/docs/enums/DimensionType.html +10 -5
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -5
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -5
- package/docs/enums/PaintBrushTypeEnum.html +10 -5
- package/docs/enums/PointType.html +10 -5
- package/docs/enums/Rotation.html +10 -5
- package/docs/functions/AreaMakerPlugin.html +10 -5
- package/docs/functions/CSS3DRenderPlugin.html +10 -5
- package/docs/functions/CameraMovementPlugin.html +10 -5
- package/docs/functions/CruisePlugin.html +10 -5
- package/docs/functions/CurrentPanoImagePlugin.html +10 -5
- package/docs/functions/GuideLinePlugin.html +10 -5
- package/docs/functions/ItemLabelPlugin.html +10 -5
- package/docs/functions/MapviewFloorplanPlugin.html +10 -5
- package/docs/functions/ModelChassisCompassPlugin.html +10 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +10 -5
- package/docs/functions/ModelFloorplanPlugin.html +10 -5
- package/docs/functions/ModelItemLabelPlugin.html +10 -5
- package/docs/functions/ModelRoomLabelPlugin.html +10 -5
- package/docs/functions/ModelTVVideoPlugin.html +10 -5
- package/docs/functions/ModelViewPlugin.html +10 -5
- package/docs/functions/MovePlugin.html +10 -5
- package/docs/functions/Object3DHelperPlugin.html +10 -5
- package/docs/functions/PanoCompassPlugin.html +10 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +10 -5
- package/docs/functions/PanoDoorLabelPlugin.html +10 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +10 -5
- package/docs/functions/PanoMeasurePlugin.html +10 -5
- package/docs/functions/PanoRulerPlugin.html +10 -5
- package/docs/functions/PanoRulerProPlugin.html +10 -5
- package/docs/functions/PanoSpatialTagPlugin.html +10 -5
- package/docs/functions/PanoTagPlugin.html +10 -5
- package/docs/functions/PanoVideoPlugin.html +10 -5
- package/docs/functions/PipelinePlugin.html +10 -5
- package/docs/functions/TopviewFloorplanPlugin.html +10 -5
- package/docs/functions/Util.absoluteUrl.html +10 -5
- package/docs/functions/Util.checkFiveModelLoaded.html +10 -5
- package/docs/functions/Util.equal.html +10 -5
- package/docs/functions/Util.getCoordsFromClient.html +10 -5
- package/docs/functions/Util.getCoordsFromElement.html +10 -5
- package/docs/functions/Util.getFrameTime.html +10 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +17 -7
- package/docs/functions/Util.getRaycasterFromFivePointer.html +10 -5
- package/docs/functions/Util.isAbsoluteURL.html +10 -5
- package/docs/functions/Util.isModelLike.html +10 -5
- package/docs/functions/Util.isNil.html +10 -5
- package/docs/functions/Util.isPanoramaLike.html +10 -5
- package/docs/functions/Util.nextFrame.html +10 -5
- package/docs/functions/Util.notNil.html +10 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +10 -5
- package/docs/functions/Util.tweenProgress.html +10 -5
- package/docs/functions/Util.uuid.html +10 -5
- package/docs/functions/pluginFlag.html +10 -5
- package/docs/index.html +11 -6
- package/docs/interfaces/AddTagConfig.html +10 -5
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.Config.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.Params.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.State.html +9 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -5
- package/docs/interfaces/CSS3DRenderPluginState.html +10 -5
- package/docs/interfaces/CameraMovementPluginExportType.html +10 -5
- package/docs/interfaces/CruisePluginTypes.Config.html +9 -4
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +9 -4
- package/docs/interfaces/CruisePluginTypes.EventMap.html +9 -4
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +9 -4
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +9 -4
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +9 -4
- package/docs/interfaces/CruisePluginTypes.PluginData.html +9 -4
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +9 -4
- package/docs/interfaces/CruisePluginTypes.PluginState.html +9 -4
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +10 -5
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +10 -5
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +10 -5
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +10 -5
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +10 -5
- package/docs/interfaces/EventMap.html +10 -5
- package/docs/interfaces/FloorplanBounding.html +10 -5
- package/docs/interfaces/FloorplanData.html +10 -5
- package/docs/interfaces/FloorplanEntrance.html +10 -5
- package/docs/interfaces/FloorplanExtraObject.html +10 -5
- package/docs/interfaces/FloorplanExtraObject3D.html +10 -5
- package/docs/interfaces/FloorplanFloorData.html +10 -5
- package/docs/interfaces/FloorplanImagePosition.html +10 -5
- package/docs/interfaces/FloorplanObserver.html +10 -5
- package/docs/interfaces/FloorplanOutlineItem.html +10 -5
- package/docs/interfaces/FloorplanPosition.html +10 -5
- package/docs/interfaces/FloorplanRoomItem.html +10 -5
- package/docs/interfaces/FloorplanRoomLabelItem.html +10 -5
- package/docs/interfaces/FloorplanServerBounding.html +10 -5
- package/docs/interfaces/FloorplanServerComputedData.html +10 -5
- package/docs/interfaces/FloorplanServerData.html +10 -5
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -5
- package/docs/interfaces/FloorplanServerDoorPosition.html +10 -5
- package/docs/interfaces/FloorplanServerEntrance.html +10 -5
- package/docs/interfaces/FloorplanServerFloorData.html +10 -5
- package/docs/interfaces/FloorplanServerImagePosition.html +10 -5
- package/docs/interfaces/FloorplanServerObserver.html +10 -5
- package/docs/interfaces/FloorplanServerOutlineItem.html +10 -5
- package/docs/interfaces/FloorplanServerPosition.html +10 -5
- package/docs/interfaces/FloorplanServerRoomItem.html +10 -5
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +10 -5
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +10 -5
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -4
- package/docs/interfaces/GuideLinePluginType.EventMap.html +9 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +9 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +9 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +9 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +9 -4
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -4
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +9 -4
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +9 -4
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +9 -4
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +9 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +9 -4
- package/docs/interfaces/GuideLinePluginType.PluginState.html +9 -4
- package/docs/interfaces/GuideLinePluginType.Route.html +9 -4
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +9 -4
- package/docs/interfaces/HelperOffset.html +10 -5
- package/docs/interfaces/ImagePlaneGroup.html +10 -5
- package/docs/interfaces/ItemLabelPluginData.html +10 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -5
- package/docs/interfaces/ItemLabelPluginParametersType.html +10 -5
- package/docs/interfaces/MinMax.html +10 -5
- package/docs/interfaces/ModelChassisCompassPluginData.html +10 -5
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -5
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +10 -5
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -5
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -5
- package/docs/interfaces/ModelItemLabelPluginData.html +10 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -5
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +10 -5
- package/docs/interfaces/ModelRoomLabelPluginData.html +10 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +10 -5
- package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -5
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +10 -5
- package/docs/interfaces/ModelViewPluginExportType.html +10 -5
- package/docs/interfaces/Object3DHelperState.html +14 -9
- package/docs/interfaces/ObjectHelperControllers.html +16 -11
- package/docs/interfaces/PaintBrushAction.html +10 -5
- package/docs/interfaces/PaintBrushConfigs.html +10 -5
- package/docs/interfaces/PaintBrushState.html +10 -5
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -5
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +10 -5
- package/docs/interfaces/PanoMeasureParameterType.html +10 -5
- package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -5
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +10 -5
- package/docs/interfaces/PanoMeasurePluginPointJson.html +10 -5
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -5
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -5
- package/docs/interfaces/PanoRulerPluginOptions.html +10 -5
- package/docs/interfaces/PanoRulerPluginParameterType.html +10 -5
- package/docs/interfaces/PanoRulerProPluginExportType.html +10 -5
- package/docs/interfaces/PanoRulerProPluginOptions.html +10 -5
- package/docs/interfaces/PanoRulerProPluginParameterType.html +10 -5
- package/docs/interfaces/PanoRulerProPluginState.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -5
- package/docs/interfaces/Point.html +10 -5
- package/docs/interfaces/Room.html +10 -5
- package/docs/interfaces/RoomInfo.html +10 -5
- package/docs/interfaces/RoomLabel.html +10 -5
- package/docs/interfaces/RoomRules.html +10 -5
- package/docs/interfaces/Rooms.html +10 -5
- package/docs/interfaces/Scissor.html +10 -5
- package/docs/interfaces/State.html +10 -5
- package/docs/interfaces/TagCacheInterface.html +10 -5
- package/docs/interfaces/TagConfig.html +12 -7
- package/docs/interfaces/TagGLTFObjectGroup.html +10 -5
- package/docs/interfaces/TagIconUrl.html +10 -5
- package/docs/interfaces/TagObjectGroup.html +10 -5
- package/docs/interfaces/TagStyle.html +10 -5
- package/docs/interfaces/Tags.html +10 -5
- package/docs/interfaces/TemporaryState.html +10 -5
- package/docs/interfaces/Util.MagnifierParameter.html +32 -22
- package/docs/interfaces/Util.MouseGroupParameter.html +10 -5
- package/docs/interfaces/Util.PointIntersection.html +19 -7
- package/docs/modules/AreaMakerPluginType.html +9 -4
- package/docs/modules/CruisePluginTypes.html +9 -4
- package/docs/modules/CurrentPanoImagePluginType.html +10 -5
- package/docs/modules/GuideLineItem.html +10 -5
- package/docs/modules/GuideLineModeItem.html +10 -5
- package/docs/modules/GuideLinePluginType.html +9 -4
- package/docs/modules/PanoVideoPluginType.html +10 -5
- package/docs/modules/Util.html +10 -5
- package/docs/modules.html +22 -9
- package/docs/types/AddObject3DHelperConfig.html +310 -0
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +9 -4
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +9 -4
- package/docs/types/AreaMakerPluginType.PluginData.html +9 -4
- package/docs/types/AreaMakerPluginType.ServerData.html +9 -4
- package/docs/types/ArrayPosition.html +10 -5
- package/docs/types/AudioAppearance.html +10 -5
- package/docs/types/AudioTagTypeConfigKey.html +10 -5
- package/docs/types/CSS3DRenderExportType.html +10 -5
- package/docs/types/CSS3DRenderPluginExportType.html +10 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +10 -5
- package/docs/types/ClassFunctionParameters.html +10 -5
- package/docs/types/Color.html +10 -5
- package/docs/types/ContentTypeConfigKey.html +10 -5
- package/docs/types/ContentTypeConfigKeySplit.html +10 -5
- package/docs/types/ContentTypeMap.html +10 -5
- package/docs/types/Create3DDomContainerReturnType.html +10 -5
- package/docs/types/Create3DElementReturnType.html +10 -5
- package/docs/types/CruisePluginExportType.html +10 -5
- package/docs/types/CruisePluginTypes.CruiseData.html +9 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +9 -4
- package/docs/types/CurrentPanoImagePluginExportType.html +10 -5
- package/docs/types/DeprecatedMediaPlaneProperty.html +10 -5
- package/docs/types/DeprecatedTagProperty.html +10 -5
- package/docs/types/Direction-1.html +10 -5
- package/docs/types/Direction4.html +10 -5
- package/docs/types/ElementRenderer.html +10 -5
- package/docs/types/FloorplanRuleLabels.html +10 -5
- package/docs/types/FloorplanServerRuleLabels.html +10 -5
- package/docs/types/GuideLinePluginExportType.html +10 -5
- package/docs/types/GuideLinePluginType.GuideLineItem.html +9 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +9 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +9 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +9 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +9 -4
- package/docs/types/GuideLinePluginType.PathItem.html +9 -4
- package/docs/types/GuideLinePluginType.PluginData.html +9 -4
- package/docs/types/HelperEventMap.html +10 -5
- package/docs/types/InternalHelperEventMap.html +22 -9
- package/docs/types/LoadTagConfig.html +10 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +10 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +10 -5
- package/docs/types/MediaData.html +10 -5
- package/docs/types/MediaStore.html +10 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +10 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +10 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +10 -5
- package/docs/types/ModelId.html +10 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +10 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +10 -5
- package/docs/types/MoveArgs.html +10 -5
- package/docs/types/MoveOpts.html +10 -5
- package/docs/types/Object3DHelperEventMap.html +11 -6
- package/docs/types/ObjectFit.html +10 -5
- package/docs/types/PaintBrushEventMap.html +10 -5
- package/docs/types/PanoCompassPluginData.html +10 -5
- package/docs/types/PanoCompassPluginExportType.html +10 -5
- package/docs/types/PanoCompassPluginParameterType.html +10 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +10 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +10 -5
- package/docs/types/PanoIndex.html +10 -5
- package/docs/types/PanoMeasurePluginEvent.html +10 -5
- package/docs/types/PanoMeasureReturnType.html +10 -5
- package/docs/types/PanoSpatialTagPluginId.html +10 -5
- package/docs/types/PanoTagPluginExportInterface.html +10 -5
- package/docs/types/PanoTagPluginParamsInterface.html +10 -5
- package/docs/types/PanoVideoPluginParameterType.html +10 -5
- package/docs/types/PanoVideoPluginReturnType.html +10 -5
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +10 -5
- package/docs/types/PipelinePluginParameterType.html +10 -5
- package/docs/types/PipelinePluginReturnType.html +10 -5
- package/docs/types/PlaneTag.html +10 -5
- package/docs/types/Point2DTag.html +10 -5
- package/docs/types/Point3DTag.html +10 -5
- package/docs/types/PointTag.html +10 -5
- package/docs/types/PointTagInstance.html +10 -5
- package/docs/types/Position.html +10 -5
- package/docs/types/PositionFrom.html +297 -0
- package/docs/types/RotateArgs.html +10 -5
- package/docs/types/RotateOpts.html +10 -5
- package/docs/types/RuleLabelsKey.html +10 -5
- package/docs/types/RuleLabelsValue.html +10 -5
- package/docs/types/ScaleCallback.html +309 -0
- package/docs/types/ScalePosition.html +298 -0
- package/docs/types/StickType.html +10 -5
- package/docs/types/Tag.html +10 -5
- package/docs/types/Tag2D.html +10 -5
- package/docs/types/Tag3D.html +10 -5
- package/docs/types/TagConfigByKey.html +10 -5
- package/docs/types/TagContentType.html +10 -5
- package/docs/types/TagContentTypeMapping.html +10 -5
- package/docs/types/TagDimensionType.html +10 -5
- package/docs/types/TagElement.html +10 -5
- package/docs/types/TagEvents.html +10 -5
- package/docs/types/TagGLTFObject.html +10 -5
- package/docs/types/TagHooks.html +10 -5
- package/docs/types/TagId.html +10 -5
- package/docs/types/TagInstance.html +10 -5
- package/docs/types/TagPointType.html +10 -5
- package/docs/types/TagRendererMap.html +10 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +10 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +10 -5
- package/docs/types/WorkCode.html +10 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +10 -5
- package/docs/variables/PLUGIN.html +11 -6
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +10 -5
- package/docs/variables/ROOM_TYPE_MAP.html +10 -5
- package/docs/variables/defaultGlobalConfig.html +10 -5
- package/docs/variables/itemLabelPluginServerParams.html +10 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +10 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +10 -5
- package/libs/GuideLinePlugin/Controller.js +15 -15
- package/libs/Object3DHelperPlugin/Controller.d.ts +25 -18
- package/libs/Object3DHelperPlugin/Controller.js +91 -91
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +1 -0
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +22 -18
- package/libs/Object3DHelperPlugin/index.js +8 -6
- package/libs/PanoCursorRaycasterPlugin/index.js +9 -8
- package/libs/PanoMeasurePlugin/Components/Controller0.js +5 -5
- package/libs/PanoMeasurePlugin/Components/Controller1.js +5 -5
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +6 -6
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +10 -9
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +5 -4
- package/libs/PanoMeasurePlugin/Controller/index.js +8 -7
- package/libs/PanoMeasurePlugin/Model/area.d.ts +2 -1
- package/libs/PanoMeasurePlugin/Model/area.js +16 -8
- package/libs/PanoMeasurePlugin/Model/index.js +3 -2
- package/libs/PanoMeasurePlugin/Model/line.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Model/line.js +1 -0
- package/libs/PanoMeasurePlugin/Model/polygon.js +1 -1
- package/libs/PanoMeasurePlugin/Model/polyline.js +26 -25
- package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +2 -55
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +22 -156
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +5 -5
- package/libs/PanoMeasurePlugin/index.js +13 -13
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +1 -1
- package/libs/PanoMeasurePlugin/utils/line.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/line.js +5 -4
- package/libs/PanoTagPlugin/controller/TagRender.js +18 -13
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +20 -10
- package/libs/Sculpt/Meshes/Area.d.ts +30 -0
- package/libs/Sculpt/Meshes/Area.js +56 -0
- package/libs/Sculpt/Meshes/Box.d.ts +35 -0
- package/libs/Sculpt/Meshes/Box.js +88 -0
- package/libs/Sculpt/Meshes/Circle.d.ts +26 -0
- package/libs/Sculpt/Meshes/Circle.js +42 -0
- package/libs/Sculpt/Meshes/CircleWithEdge.d.ts +11 -0
- package/libs/Sculpt/Meshes/CircleWithEdge.js +41 -0
- package/libs/Sculpt/Meshes/Cylinder.d.ts +34 -0
- package/libs/Sculpt/Meshes/Cylinder.js +88 -0
- package/libs/Sculpt/Meshes/Line.d.ts +27 -0
- package/libs/Sculpt/Meshes/Line.js +108 -0
- package/libs/Sculpt/Meshes/LineWithDots.d.ts +30 -0
- package/libs/Sculpt/Meshes/LineWithDots.js +70 -0
- package/libs/Sculpt/Meshes/Point.d.ts +22 -0
- package/libs/Sculpt/Meshes/Point.js +74 -0
- package/libs/Sculpt/Meshes/Polygon.d.ts +31 -0
- package/libs/Sculpt/Meshes/Polygon.js +52 -0
- package/libs/Sculpt/Meshes/Polyline.d.ts +34 -0
- package/libs/Sculpt/Meshes/Polyline.js +105 -0
- package/libs/Sculpt/Meshes/Prism.d.ts +31 -0
- package/libs/Sculpt/Meshes/Prism.js +78 -0
- package/libs/Sculpt/Meshes/Rectangle.d.ts +24 -0
- package/libs/Sculpt/Meshes/Rectangle.js +49 -0
- package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +20 -0
- package/libs/Sculpt/Meshes/RectangleWithEdge.js +49 -0
- package/libs/Sculpt/Modules/Cursor.d.ts +13 -0
- package/libs/Sculpt/Modules/Cursor.js +37 -0
- package/libs/Sculpt/Modules/Global.d.ts +20 -0
- package/libs/Sculpt/Modules/Global.js +45 -0
- package/libs/Sculpt/Objects/Base/Editor.d.ts +21 -0
- package/libs/Sculpt/Objects/Base/Editor.js +52 -0
- package/libs/Sculpt/Objects/Base/index.d.ts +60 -0
- package/libs/Sculpt/Objects/Base/index.js +77 -0
- package/libs/Sculpt/Objects/Box/Editor.d.ts +5 -0
- package/libs/Sculpt/Objects/Box/Editor.js +44 -0
- package/libs/Sculpt/Objects/Box/index.d.ts +28 -0
- package/libs/Sculpt/Objects/Box/index.js +107 -0
- package/libs/Sculpt/Objects/Circle/Editor.d.ts +5 -0
- package/libs/Sculpt/Objects/Circle/Editor.js +9 -0
- package/libs/Sculpt/Objects/Circle/index.d.ts +28 -0
- package/libs/Sculpt/Objects/Circle/index.js +114 -0
- package/libs/Sculpt/Objects/Cylinder/Editor.d.ts +5 -0
- package/libs/Sculpt/Objects/Cylinder/Editor.js +41 -0
- package/libs/Sculpt/Objects/Cylinder/index.d.ts +30 -0
- package/libs/Sculpt/Objects/Cylinder/index.js +100 -0
- package/libs/Sculpt/Objects/Point/Editor.d.ts +8 -0
- package/libs/Sculpt/Objects/Point/Editor.js +25 -0
- package/libs/Sculpt/Objects/Point/index.d.ts +35 -0
- package/libs/Sculpt/Objects/Point/index.js +92 -0
- package/libs/Sculpt/Objects/Polygon/Editor.d.ts +8 -0
- package/libs/Sculpt/Objects/Polygon/Editor.js +23 -0
- package/libs/Sculpt/Objects/Polygon/index.d.ts +28 -0
- package/libs/Sculpt/Objects/Polygon/index.js +113 -0
- package/libs/Sculpt/Objects/Polyline/Editor.d.ts +25 -0
- package/libs/Sculpt/Objects/Polyline/Editor.js +68 -0
- package/libs/Sculpt/Objects/Polyline/index.d.ts +31 -0
- package/libs/Sculpt/Objects/Polyline/index.js +96 -0
- package/libs/Sculpt/Objects/Prism/Editor.d.ts +5 -0
- package/libs/Sculpt/Objects/Prism/Editor.js +44 -0
- package/libs/Sculpt/Objects/Prism/index.d.ts +28 -0
- package/libs/Sculpt/Objects/Prism/index.js +105 -0
- package/libs/Sculpt/Objects/Rectangle/Editor.d.ts +5 -0
- package/libs/Sculpt/Objects/Rectangle/Editor.js +9 -0
- package/libs/Sculpt/Objects/Rectangle/index.d.ts +29 -0
- package/libs/Sculpt/Objects/Rectangle/index.js +105 -0
- package/libs/Sculpt/index.d.ts +184 -0
- package/libs/Sculpt/index.js +209 -0
- package/libs/Sculpt/typings/index.d.ts +16 -0
- package/libs/Sculpt/typings/utils.type.d.ts +12 -0
- package/libs/Sculpt/utils/color.d.ts +40 -0
- package/libs/Sculpt/utils/color.js +7 -0
- package/libs/Sculpt/utils/data.d.ts +7 -0
- package/libs/Sculpt/utils/getBetterNormal.d.ts +2 -0
- package/libs/Sculpt/utils/getBetterNormal.js +8 -0
- package/libs/Sculpt/utils/radiusToSegments.d.ts +1 -0
- package/libs/Sculpt/utils/radiusToSegments.js +6 -0
- package/libs/Sculpt/utils/three/ColoredMesh.d.ts +17 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +58 -0
- package/libs/Sculpt/utils/three/RectangleGeometry.d.ts +6 -0
- package/libs/Sculpt/utils/three/RectangleGeometry.js +19 -0
- package/libs/Sculpt/utils/three/rayOnLine.d.ts +5 -0
- package/libs/Sculpt/utils/three/rayOnLine.js +8 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.d.ts +1 -0
- package/libs/index.js +173 -127
- package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +13 -5
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +95 -80
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +17 -6
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +40 -35
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +9 -9
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.d.ts +0 -1
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +54 -53
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +14 -7
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +49 -15
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +4 -2
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +16 -12
- package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +8 -5
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +21 -12
- package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +12 -3
- package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.js +38 -5
- package/libs/shared-utils/Object3DHelper/typings/Hooks.d.ts +1 -0
- package/libs/shared-utils/Object3DHelper/typings/index.d.ts +11 -0
- package/libs/shared-utils/Object3DHelper/utils/boundingBox.js +22 -21
- package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +2 -0
- package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.js +7 -0
- package/libs/shared-utils/Subscribe.js +1 -1
- package/libs/shared-utils/createLine/index.d.ts +2 -2
- package/libs/shared-utils/createLine/index.js +5 -5
- package/libs/shared-utils/five/FiveDomEvents.d.ts +50 -13
- package/libs/shared-utils/five/FiveDomEvents.js +135 -90
- package/libs/shared-utils/five/FiveLine.d.ts +8 -0
- package/libs/shared-utils/five/FiveLine.js +15 -0
- package/libs/shared-utils/five/getPosition.d.ts +14 -0
- package/libs/shared-utils/five/getPosition.js +45 -0
- package/libs/shared-utils/five/getRaycasterByNdcPosition.d.ts +6 -0
- package/libs/shared-utils/five/getRaycasterByNdcPosition.js +8 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/positionToVector3.d.ts +1 -0
- package/libs/shared-utils/positionToVector3.js +7 -4
- package/libs/shared-utils/three/IObject3D.d.ts +4 -0
- package/libs/shared-utils/three/IObject3D.js +22 -9
- package/libs/shared-utils/three/Magnifier.d.ts +33 -19
- package/libs/shared-utils/three/Magnifier.js +112 -70
- package/libs/shared-utils/three/PointSelector.d.ts +25 -11
- package/libs/shared-utils/three/PointSelector.js +70 -78
- package/libs/shared-utils/three/PointSelectorHelper.d.ts +2 -0
- package/libs/shared-utils/three/PointSelectorHelper.js +14 -14
- package/libs/shared-utils/three/generatePolygonGeometry.js +15 -0
- package/{dist/PanoMeasurePlugin/utils → libs/shared-utils/three}/geometryUtil.d.ts +1 -1
- package/libs/shared-utils/three/geometryUtil.js +37 -0
- package/libs/shared-utils/three/getIntersect.d.ts +16 -2
- package/libs/shared-utils/three/getIntersect.js +20 -5
- package/libs/shared-utils/three/getNormal.d.ts +1 -1
- package/libs/shared-utils/three/getNormal.js +8 -7
- package/libs/shared-utils/three/recurveFindObject.d.ts +2 -0
- package/libs/shared-utils/three/recurveFindObject.js +6 -0
- package/libs/shared-utils/three/vector3ToArray.d.ts +3 -0
- package/libs/shared-utils/three/vector3ToArray.js +6 -0
- package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +372 -0
- package/package.json +4 -3
- package/dist/shared-utils/getIntersectionFromEvent.d.ts +0 -4
- package/docs/classes/Magnifier.html +0 -485
- package/libs/PanoMeasurePlugin/utils/generatePolygonGeometry.js +0 -13
- package/libs/PanoMeasurePlugin/utils/geometryUtil.js +0 -39
- package/libs/shared-utils/getIntersectionFromEvent.d.ts +0 -4
- package/libs/shared-utils/getIntersectionFromEvent.js +0 -9
- /package/dist/{PanoMeasurePlugin/utils → shared-utils/three}/generatePolygonGeometry.d.ts +0 -0
- /package/libs/{PanoMeasurePlugin/utils → shared-utils/three}/generatePolygonGeometry.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视空间交互插件合集 - v3.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视空间交互插件合集 - v3.21.0</title><meta name="description" content="Documentation for 如视空间交互插件合集"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><link rel="stylesheet" href="../assets/custom.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
2
|
<div class="tsd-toolbar-contents container">
|
|
3
3
|
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
4
|
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<div id="tsd-toolbar-links"></div></div>
|
|
7
7
|
<ul class="results">
|
|
8
8
|
<li class="state loading">Preparing search index...</li>
|
|
9
|
-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视空间交互插件合集 - v3.
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视空间交互插件合集 - v3.21.0</a></div>
|
|
10
10
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
11
|
<div class="container container-main">
|
|
12
12
|
<div class="col-content">
|
|
@@ -38,9 +38,10 @@
|
|
|
38
38
|
<div class="tsd-theme-toggle">
|
|
39
39
|
<h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div>
|
|
40
40
|
<div class="site-menu">
|
|
41
|
-
<nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>如视空间交互插件合集 -<wbr/> v3.
|
|
41
|
+
<nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>如视空间交互插件合集 -<wbr/> v3.21.0</span></a>
|
|
42
42
|
<ul class="tsd-small-nested-navigation">
|
|
43
43
|
<li><a href="../modules.html#CruisePluginController"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-8388608"><rect fill="var(--color-icon-background)" stroke="#FF4D82" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M10.354 17V8.24H13.066C13.586 8.24 14.042 8.348 14.434 8.564C14.826 8.772 15.13 9.064 15.346 9.44C15.562 9.816 15.67 10.256 15.67 10.76C15.67 11.352 15.514 11.86 15.202 12.284C14.898 12.708 14.482 13 13.954 13.16L15.79 17H14.518L12.838 13.28H11.434V17H10.354ZM11.434 12.308H13.066C13.514 12.308 13.874 12.168 14.146 11.888C14.418 11.6 14.554 11.224 14.554 10.76C14.554 10.288 14.418 9.912 14.146 9.632C13.874 9.352 13.514 9.212 13.066 9.212H11.434V12.308Z" fill="var(--color-text)"></path></g></svg><span>Cruise<wbr/>Plugin<wbr/>Controller</span></a></li>
|
|
44
|
+
<li><a href="../modules.html#Magnifier"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8388608"></use></svg><span>Magnifier</span></a></li>
|
|
44
45
|
<li><a href="../modules/AreaMakerPluginType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>Area<wbr/>Maker<wbr/>Plugin<wbr/>Type</span></a></li>
|
|
45
46
|
<li><a href="../modules/CruisePluginTypes.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>Cruise<wbr/>Plugin<wbr/>Types</span></a></li>
|
|
46
47
|
<li><a href="../modules/CurrentPanoImagePluginType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>Current<wbr/>Pano<wbr/>Image<wbr/>Plugin<wbr/>Type</span></a></li>
|
|
@@ -60,7 +61,6 @@
|
|
|
60
61
|
<li><a href="../enums/PointType.html" class="deprecated"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Point<wbr/>Type</span></a></li>
|
|
61
62
|
<li><a href="../enums/Rotation.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Rotation</span></a></li>
|
|
62
63
|
<li><a href="../classes/CSS3DRender.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-128"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g></svg><span>CSS3DRender</span></a></li>
|
|
63
|
-
<li><a href="../classes/Magnifier.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Magnifier</span></a></li>
|
|
64
64
|
<li><a href="../classes/ModelRoomLabelController.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Model<wbr/>Room<wbr/>Label<wbr/>Controller</span></a></li>
|
|
65
65
|
<li><a href="../classes/MoveController.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Move<wbr/>Controller</span></a></li>
|
|
66
66
|
<li><a href="../classes/Object3DHelperController.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Object3DHelper<wbr/>Controller</span></a></li>
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
<li><a href="../classes/PanoMeasurePluginPoint.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Pano<wbr/>Measure<wbr/>Plugin<wbr/>Point</span></a></li>
|
|
71
71
|
<li><a href="../classes/PanoMeasurePluginPolyline.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Pano<wbr/>Measure<wbr/>Plugin<wbr/>Polyline</span></a></li>
|
|
72
72
|
<li><a href="../classes/PanoTagPluginController.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Pano<wbr/>Tag<wbr/>Plugin<wbr/>Controller</span></a></li>
|
|
73
|
+
<li><a href="../classes/Sculpt.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Sculpt</span></a></li>
|
|
73
74
|
<li><a href="../classes/WalkController.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Walk<wbr/>Controller</span></a></li>
|
|
74
75
|
<li><a href="../interfaces/AddTagConfig.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-256"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)"></path></g></svg><span>Add<wbr/>Tag<wbr/>Config</span></a></li>
|
|
75
76
|
<li><a href="../interfaces/CSS3DRenderPluginEventMap.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>CSS3DRender<wbr/>Plugin<wbr/>Event<wbr/>Map</span></a></li>
|
|
@@ -164,7 +165,8 @@
|
|
|
164
165
|
<li><a href="../interfaces/TagStyle.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Tag<wbr/>Style</span></a></li>
|
|
165
166
|
<li><a href="../interfaces/Tags.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Tags</span></a></li>
|
|
166
167
|
<li><a href="../interfaces/TemporaryState.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Temporary<wbr/>State</span></a></li>
|
|
167
|
-
<li><a href="../types/
|
|
168
|
+
<li><a href="../types/AddObject3DHelperConfig.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4194304"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g></svg><span>Add<wbr/>Object3DHelper<wbr/>Config</span></a></li>
|
|
169
|
+
<li><a href="../types/ArrayPosition.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Array<wbr/>Position</span></a></li>
|
|
168
170
|
<li><a href="../types/AudioAppearance.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Audio<wbr/>Appearance</span></a></li>
|
|
169
171
|
<li><a href="../types/AudioTagTypeConfigKey.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Audio<wbr/>Tag<wbr/>Type<wbr/>Config<wbr/>Key</span></a></li>
|
|
170
172
|
<li><a href="../types/CSS3DRenderExportType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>CSS3DRender<wbr/>Export<wbr/>Type</span></a></li>
|
|
@@ -227,10 +229,13 @@
|
|
|
227
229
|
<li><a href="../types/PointTag.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Point<wbr/>Tag</span></a></li>
|
|
228
230
|
<li><a href="../types/PointTagInstance.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Point<wbr/>Tag<wbr/>Instance</span></a></li>
|
|
229
231
|
<li><a href="../types/Position.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Position</span></a></li>
|
|
232
|
+
<li><a href="../types/PositionFrom.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Position<wbr/>From</span></a></li>
|
|
230
233
|
<li><a href="../types/RotateArgs.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Rotate<wbr/>Args</span></a></li>
|
|
231
234
|
<li><a href="../types/RotateOpts.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Rotate<wbr/>Opts</span></a></li>
|
|
232
235
|
<li><a href="../types/RuleLabelsKey.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Rule<wbr/>Labels<wbr/>Key</span></a></li>
|
|
233
236
|
<li><a href="../types/RuleLabelsValue.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Rule<wbr/>Labels<wbr/>Value</span></a></li>
|
|
237
|
+
<li><a href="../types/ScaleCallback.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Scale<wbr/>Callback</span></a></li>
|
|
238
|
+
<li><a href="../types/ScalePosition.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Scale<wbr/>Position</span></a></li>
|
|
234
239
|
<li><a href="../types/StickType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Stick<wbr/>Type</span></a></li>
|
|
235
240
|
<li><a href="../types/Tag.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Tag</span></a></li>
|
|
236
241
|
<li><a href="../types/Tag2D.html" class="deprecated"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Tag2D</span></a></li>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var S = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var C = Object.getOwnPropertySymbols;
|
|
3
3
|
var V = Object.prototype.hasOwnProperty, M = Object.prototype.propertyIsEnumerable;
|
|
4
4
|
var c = (s, o, t) => o in s ? S(s, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[o] = t, f = (s, o) => {
|
|
5
5
|
for (var t in o || (o = {}))
|
|
6
6
|
V.call(o, t) && c(s, t, o[t]);
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
7
|
+
if (C)
|
|
8
|
+
for (var t of C(o))
|
|
9
9
|
M.call(o, t) && c(s, t, o[t]);
|
|
10
10
|
return s;
|
|
11
11
|
};
|
|
@@ -30,8 +30,8 @@ import { Controller as O } from "../base/BasePluginWithData.js";
|
|
|
30
30
|
import { equal as U } from "../shared-utils/equal.js";
|
|
31
31
|
import { GuideLineItem as x } from "./GuideLineItem/index.js";
|
|
32
32
|
import N from "../CruisePlugin/Work.js";
|
|
33
|
-
import { objectAssignDeepExports as
|
|
34
|
-
import * as
|
|
33
|
+
import { objectAssignDeepExports as T } from "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
34
|
+
import * as A from "three";
|
|
35
35
|
import { waitFiveLoaded as W } from "../shared-utils/five/fiveLoaded.js";
|
|
36
36
|
import { WorkUtil as $ } from "../shared-utils/Utils/WorkUtil.js";
|
|
37
37
|
import "hammerjs";
|
|
@@ -242,21 +242,21 @@ class me extends O {
|
|
|
242
242
|
}
|
|
243
243
|
load(t, i, a = !0) {
|
|
244
244
|
return u(this, null, function* () {
|
|
245
|
-
var
|
|
245
|
+
var w, I, E, y, k, D, L;
|
|
246
246
|
const m = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, e = yield this.formatData(t);
|
|
247
247
|
this.hooks.emit("dataChange", e, m), this.data = e;
|
|
248
248
|
const r = e.config, n = {
|
|
249
249
|
panorama_style: {
|
|
250
250
|
visible: !!(!e.lines && e.routes),
|
|
251
|
-
unit_length: (
|
|
252
|
-
width: (
|
|
253
|
-
texture: { url: (
|
|
251
|
+
unit_length: (w = r == null ? void 0 : r.unitHeight) != null ? w : 0.4,
|
|
252
|
+
width: (I = r == null ? void 0 : r.unitWidth) != null ? I : 0.6,
|
|
253
|
+
texture: { url: (E = r == null ? void 0 : r.arrowTextureUrl) != null ? E : this.staticPrefix + "/release/web/arrow-white.5c2c79a5.png" }
|
|
254
254
|
}
|
|
255
|
-
}, d = (
|
|
256
|
-
var
|
|
257
|
-
return
|
|
258
|
-
})) != null ?
|
|
259
|
-
yield W(this.five), this.clear(),
|
|
255
|
+
}, d = (k = (y = e.routes) == null ? void 0 : y.map((l) => {
|
|
256
|
+
var _;
|
|
257
|
+
return T({}, n, { id: (_ = l.id) != null ? _ : P(), pano_group: l.panoIndexList });
|
|
258
|
+
})) != null ? k : [], G = (L = (D = e.lines) == null ? void 0 : D.map((l) => T({}, n, l))) != null ? L : [], v = [...d, ...G];
|
|
259
|
+
yield W(this.five), this.clear(), console.log(v), v.forEach((l) => {
|
|
260
260
|
this.addGuideLineItem(l);
|
|
261
261
|
}), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: a }), this.hooks.emit("dataLoaded", e), console.debug(`${g} loaded`, e);
|
|
262
262
|
});
|
|
@@ -319,7 +319,7 @@ class me extends O {
|
|
|
319
319
|
return Array.isArray(e) && e.every((r) => typeof r == "number");
|
|
320
320
|
}
|
|
321
321
|
function a(e, r) {
|
|
322
|
-
return new
|
|
322
|
+
return new A.Vector3().fromArray(e).distanceTo(new A.Vector3().fromArray(r)) < 0.01;
|
|
323
323
|
}
|
|
324
324
|
function m(e) {
|
|
325
325
|
var p;
|
|
@@ -2,9 +2,32 @@ import type { Five } from '@realsee/five';
|
|
|
2
2
|
import * as BasePlugin from '../base/BasePlugin';
|
|
3
3
|
import type * as THREE from 'three';
|
|
4
4
|
import { Object3DHelper } from '../shared-utils/Object3DHelper/index';
|
|
5
|
-
import type { Object3DHelperState, ObjectHelperControllers } from '../shared-utils/Object3DHelper/typings';
|
|
5
|
+
import type { Object3DHelperState, ObjectHelperControllers, PositionFrom, ScaleCallback, ScalePosition } from '../shared-utils/Object3DHelper/typings';
|
|
6
6
|
import type { HelperConfig, HelperOffset, Object3DHelperPluginEventMap, Object3DHelperPluginState } from './typings';
|
|
7
7
|
export declare const PLUGIN = "Object3DHelperPlugin";
|
|
8
|
+
export type AddObject3DHelperConfig = {
|
|
9
|
+
positionFrom?: PositionFrom;
|
|
10
|
+
offset?: HelperOffset;
|
|
11
|
+
yAxis?: THREE.Vector3;
|
|
12
|
+
xAxis?: THREE.Vector3;
|
|
13
|
+
zAxis?: THREE.Vector3;
|
|
14
|
+
moveHelper?: HelperConfig<{
|
|
15
|
+
xArrowEnable?: boolean;
|
|
16
|
+
yArrowEnable?: boolean;
|
|
17
|
+
zArrowEnable?: boolean;
|
|
18
|
+
}>;
|
|
19
|
+
rotateHelper?: HelperConfig<{
|
|
20
|
+
yzCircleEnable?: boolean;
|
|
21
|
+
xzCircleEnable?: boolean;
|
|
22
|
+
xyCircleEnable?: boolean;
|
|
23
|
+
angleTipsEnable?: boolean;
|
|
24
|
+
}>;
|
|
25
|
+
scaleHelper?: HelperConfig<{
|
|
26
|
+
positions?: Array<ScalePosition> | (() => Array<ScalePosition>);
|
|
27
|
+
scaleCallback?: ScaleCallback;
|
|
28
|
+
}>;
|
|
29
|
+
boundingBoxHelper?: HelperConfig;
|
|
30
|
+
};
|
|
8
31
|
export declare class Object3DHelperController extends BasePlugin.Controller<Object3DHelperPluginState, Object3DHelperPluginEventMap> {
|
|
9
32
|
name: string;
|
|
10
33
|
state: Object3DHelperState;
|
|
@@ -57,23 +80,7 @@ export declare class Object3DHelperController extends BasePlugin.Controller<Obje
|
|
|
57
80
|
* @param { boolean } config.rotateHelper 旋转helper
|
|
58
81
|
* @param { boolean } config.scaleHelper 缩放helper
|
|
59
82
|
*/
|
|
60
|
-
addObject3DHelper(object3D: THREE.Object3D,
|
|
61
|
-
moveHelper?: HelperConfig<{
|
|
62
|
-
offset?: HelperOffset;
|
|
63
|
-
xArrowEnable?: boolean;
|
|
64
|
-
yArrowEnable?: boolean;
|
|
65
|
-
zArrowEnable?: boolean;
|
|
66
|
-
}>;
|
|
67
|
-
rotateHelper?: HelperConfig<{
|
|
68
|
-
offset?: HelperOffset;
|
|
69
|
-
yzCircleEnable?: boolean;
|
|
70
|
-
xzCircleEnable?: boolean;
|
|
71
|
-
xyCircleEnable?: boolean;
|
|
72
|
-
angleTipsEnable?: boolean;
|
|
73
|
-
}>;
|
|
74
|
-
scaleHelper?: HelperConfig;
|
|
75
|
-
boundingBoxHelper?: HelperConfig;
|
|
76
|
-
}): ObjectHelperControllers | undefined;
|
|
83
|
+
addObject3DHelper(object3D: THREE.Object3D, paramsConfig?: AddObject3DHelperConfig): ObjectHelperControllers | undefined;
|
|
77
84
|
removeObject3DHelper(object3D: THREE.Object3D): void;
|
|
78
85
|
private handleEnable;
|
|
79
86
|
private handleVisible;
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var S = (
|
|
1
|
+
var x = Object.defineProperty;
|
|
2
|
+
var P = Object.getOwnPropertySymbols;
|
|
3
|
+
var I = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var S = (l, o, e) => o in l ? x(l, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[o] = e, n = (l, o) => {
|
|
5
5
|
for (var e in o || (o = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var e of
|
|
9
|
-
|
|
10
|
-
return
|
|
6
|
+
I.call(o, e) && S(l, e, o[e]);
|
|
7
|
+
if (P)
|
|
8
|
+
for (var e of P(o))
|
|
9
|
+
W.call(o, e) && S(l, e, o[e]);
|
|
10
|
+
return l;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var s = (
|
|
12
|
+
var f = (l, o, e) => (S(l, typeof o != "symbol" ? o + "" : o, e), e);
|
|
13
|
+
var g = (l, o, e) => new Promise((t, r) => {
|
|
14
|
+
var s = (c) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
r(
|
|
16
|
+
b(e.next(c));
|
|
17
|
+
} catch (p) {
|
|
18
|
+
r(p);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, h = (c) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
r(
|
|
22
|
+
b(e.throw(c));
|
|
23
|
+
} catch (p) {
|
|
24
|
+
r(p);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, b = (c) => c.done ? t(c.value) : Promise.resolve(c.value).then(s, h);
|
|
27
|
+
b((e = e.apply(l, o)).next());
|
|
28
28
|
});
|
|
29
|
-
import { Subscribe as
|
|
30
|
-
import { Controller as
|
|
29
|
+
import { Subscribe as R } from "@realsee/five";
|
|
30
|
+
import { Controller as L } from "../base/BasePlugin.js";
|
|
31
31
|
import "three";
|
|
32
|
-
import { MoveHelper as
|
|
33
|
-
import { RotateHelper as
|
|
34
|
-
import { CSS3DScaleHelper as
|
|
35
|
-
import { BoundingBoxHelper as
|
|
36
|
-
import { MoveController as
|
|
37
|
-
import { ControllerWrapper as
|
|
38
|
-
import { Object3DHelper as
|
|
39
|
-
import { RotateController as
|
|
40
|
-
import { CSS3DScaleController as
|
|
41
|
-
import { CSS3DRender as
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import { BoundingBoxController as
|
|
45
|
-
import { ScaleHelper as
|
|
46
|
-
import { ScaleController as
|
|
32
|
+
import { MoveHelper as _ } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
33
|
+
import { RotateHelper as $ } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
34
|
+
import { CSS3DScaleHelper as F } from "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
35
|
+
import { BoundingBoxHelper as G } from "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
36
|
+
import { MoveController as U } from "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
37
|
+
import { ControllerWrapper as H } from "./FiveControllerWrapper.js";
|
|
38
|
+
import { Object3DHelper as N } from "../shared-utils/Object3DHelper/index.js";
|
|
39
|
+
import { RotateController as V } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
40
|
+
import { CSS3DScaleController as q } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
41
|
+
import { CSS3DRender as z } from "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
42
|
+
import A from "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
43
|
+
import J from "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
44
|
+
import { BoundingBoxController as K } from "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
45
|
+
import { ScaleHelper as Q } from "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
46
|
+
import { ScaleController as T } from "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
47
47
|
import "../shared-utils/Subscribe.js";
|
|
48
48
|
import "hammerjs";
|
|
49
49
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -51,16 +51,18 @@ import "../shared-utils/url/absoluteUrl.js";
|
|
|
51
51
|
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
52
52
|
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
53
53
|
import "../shared-utils/three/IObject3D.js";
|
|
54
|
+
import "../shared-utils/Object3DHelper/utils/boundingBox.js";
|
|
54
55
|
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
55
56
|
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
56
57
|
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
58
|
+
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
57
59
|
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
58
60
|
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
59
61
|
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
60
|
-
import "../shared-utils/Object3DHelper/utils/boundingBox.js";
|
|
61
62
|
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
62
63
|
import "../shared-utils/threex/domevents/index.js";
|
|
63
64
|
import "../shared-utils/isNil.js";
|
|
65
|
+
import "../shared-utils/util.js";
|
|
64
66
|
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
65
67
|
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
66
68
|
import "../shared-utils/math/rad2Deg.js";
|
|
@@ -71,7 +73,6 @@ import "../shared-utils/positionToVector3.js";
|
|
|
71
73
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
72
74
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
73
75
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
74
|
-
import "../shared-utils/util.js";
|
|
75
76
|
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
76
77
|
import "../CSS3DRenderPlugin/utils/even.js";
|
|
77
78
|
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
@@ -80,32 +81,33 @@ import "../shared-utils/three/centerPoint.js";
|
|
|
80
81
|
import "../shared-utils/three/getObjectVisible.js";
|
|
81
82
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
82
83
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
83
|
-
|
|
84
|
+
import "../Sculpt/utils/three/rayOnLine.js";
|
|
85
|
+
const w = "Object3DHelperPlugin", D = w, X = () => {
|
|
84
86
|
console.error(`${D} is disposed`);
|
|
85
|
-
},
|
|
87
|
+
}, Y = () => {
|
|
86
88
|
console.warn(`${D} is disabled`);
|
|
87
|
-
},
|
|
89
|
+
}, Z = () => {
|
|
88
90
|
console.error(`${D} is disabled`);
|
|
89
91
|
};
|
|
90
|
-
class
|
|
92
|
+
class ir extends L {
|
|
91
93
|
constructor(e) {
|
|
92
94
|
super(e);
|
|
93
|
-
|
|
94
|
-
|
|
95
|
+
f(this, "name", w);
|
|
96
|
+
f(this, "state", {
|
|
95
97
|
visible: !0,
|
|
96
98
|
enabled: !0,
|
|
97
99
|
disposed: !1
|
|
98
100
|
});
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
this.five = e, this.css3DRender = new
|
|
101
|
+
f(this, "objectHelperMap", /* @__PURE__ */ new Map());
|
|
102
|
+
f(this, "css3DObjectParentMap", /* @__PURE__ */ new Map());
|
|
103
|
+
f(this, "css3DRender");
|
|
104
|
+
this.five = e, this.css3DRender = new z(this.five.scene), console.warn("Object3DHelper: 使用此插件,需要在初始化five时,设置five参数: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${w.toUpperCase()}_DEBUG__`]: this });
|
|
103
105
|
}
|
|
104
106
|
/**
|
|
105
107
|
* @description Show guide line
|
|
106
108
|
*/
|
|
107
109
|
show(e) {
|
|
108
|
-
return
|
|
110
|
+
return g(this, null, function* () {
|
|
109
111
|
this.setState({ visible: !0 }, e);
|
|
110
112
|
});
|
|
111
113
|
}
|
|
@@ -113,7 +115,7 @@ class Ze extends I {
|
|
|
113
115
|
* @description Hide guide line
|
|
114
116
|
*/
|
|
115
117
|
hide(e) {
|
|
116
|
-
return
|
|
118
|
+
return g(this, null, function* () {
|
|
117
119
|
this.setState({ visible: !1 }, e);
|
|
118
120
|
});
|
|
119
121
|
}
|
|
@@ -137,11 +139,11 @@ class Ze extends I {
|
|
|
137
139
|
}
|
|
138
140
|
setState(e, t) {
|
|
139
141
|
if (this.state.disposed)
|
|
140
|
-
return Q();
|
|
141
|
-
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
142
142
|
return X();
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
144
|
+
return Z();
|
|
145
|
+
const r = n({}, this.state);
|
|
146
|
+
this.state = n(n({}, this.state), e), e.disposed !== void 0 && e.disposed !== r.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== r.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== r.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: r });
|
|
145
147
|
}
|
|
146
148
|
getObject3DHelper(e) {
|
|
147
149
|
return this.objectHelperMap.get(e);
|
|
@@ -163,62 +165,60 @@ class Ze extends I {
|
|
|
163
165
|
console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
|
|
164
166
|
return;
|
|
165
167
|
}
|
|
166
|
-
const r = new
|
|
168
|
+
const r = new N(), s = [], h = (M = this.five.getElement()) == null ? void 0 : M.parentElement, b = this.five.camera, p = n(n({}, {
|
|
169
|
+
moveHelper: !0,
|
|
170
|
+
rotateHelper: !0,
|
|
171
|
+
scaleHelper: !0,
|
|
172
|
+
boundingBoxHelper: !1,
|
|
173
|
+
positionFrom: "objectPosition"
|
|
174
|
+
}), t), { moveHelper: y, rotateHelper: B, scaleHelper: j, boundingBoxHelper: k, positionFrom: ee } = p, u = new R(), v = new R(), C = (i) => {
|
|
167
175
|
if (i)
|
|
168
176
|
return typeof i == "boolean" ? i : i.enable;
|
|
169
177
|
};
|
|
170
|
-
if (
|
|
171
|
-
const i = this.getConfig(
|
|
172
|
-
r.addControllers({ moveController:
|
|
178
|
+
if (C(y)) {
|
|
179
|
+
const i = n(n({}, this.getConfig(p.moveHelper)), p), d = new _(e, n({}, i)), a = new H(this.five, U, e, d, i, u, v);
|
|
180
|
+
r.addControllers({ moveController: a.helperController }), s.push(() => a.dispose());
|
|
173
181
|
}
|
|
174
|
-
if (
|
|
175
|
-
const i = this.getConfig(
|
|
176
|
-
r.addControllers({ rotateController:
|
|
182
|
+
if (C(B)) {
|
|
183
|
+
const i = n(n({}, this.getConfig(p.rotateHelper)), p), d = new $(e, n({ container: h }, i)), a = new H(this.five, V, e, d, i, u, v);
|
|
184
|
+
r.addControllers({ rotateController: a.helperController }), s.push(() => a.dispose());
|
|
177
185
|
}
|
|
178
|
-
if (
|
|
179
|
-
const i = new
|
|
186
|
+
if (C(k)) {
|
|
187
|
+
const i = new G(e), d = new H(
|
|
180
188
|
this.five,
|
|
181
|
-
|
|
189
|
+
K,
|
|
182
190
|
e,
|
|
183
191
|
i,
|
|
184
192
|
void 0,
|
|
185
193
|
u,
|
|
186
194
|
v
|
|
187
195
|
);
|
|
188
|
-
r.addControllers({ boundingBoxController:
|
|
196
|
+
r.addControllers({ boundingBoxController: d.helperController });
|
|
189
197
|
}
|
|
190
|
-
if (
|
|
191
|
-
if (e.isCSS3DObjectPlus &&
|
|
192
|
-
const i = new
|
|
198
|
+
if (C(j))
|
|
199
|
+
if (e.isCSS3DObjectPlus && h) {
|
|
200
|
+
const i = new F(e, h, b, this.five.scene), d = new H(
|
|
193
201
|
this.five,
|
|
194
|
-
|
|
202
|
+
q,
|
|
195
203
|
e,
|
|
196
204
|
i,
|
|
197
205
|
void 0,
|
|
198
206
|
u,
|
|
199
207
|
v
|
|
200
208
|
);
|
|
201
|
-
r.addControllers({ scaleController:
|
|
202
|
-
var
|
|
209
|
+
r.addControllers({ scaleController: d.helperController }), s.push(() => d.dispose()), A(this.five).then(() => {
|
|
210
|
+
var a, O;
|
|
203
211
|
if (e.isCSS3DObjectPlus) {
|
|
204
|
-
const
|
|
205
|
-
if (!
|
|
212
|
+
const m = e;
|
|
213
|
+
if (!m || m.mode !== "front")
|
|
206
214
|
return;
|
|
207
|
-
const E = (
|
|
208
|
-
E && (this.css3DObjectParentMap.set(
|
|
215
|
+
const E = (a = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? a : J(this.five);
|
|
216
|
+
E && (this.css3DObjectParentMap.set(m, m.parent), m.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(E), (O = this.css3DRender.getBehindCSS3DObjectGroup()) == null || O.add(m), this.css3DRender.render(this.five.camera));
|
|
209
217
|
}
|
|
210
218
|
});
|
|
211
219
|
} else {
|
|
212
|
-
const i = new
|
|
213
|
-
|
|
214
|
-
K,
|
|
215
|
-
e,
|
|
216
|
-
i,
|
|
217
|
-
void 0,
|
|
218
|
-
u,
|
|
219
|
-
v
|
|
220
|
-
);
|
|
221
|
-
r.addControllers({ scaleController: l.helperController }), s.push(() => l.dispose());
|
|
220
|
+
const i = n(n({}, this.getConfig(p.scaleHelper)), p), d = new Q(e, i), a = new H(this.five, T, e, d, i, u, v);
|
|
221
|
+
r.addControllers({ scaleController: a.helperController }), s.push(() => a.dispose());
|
|
222
222
|
}
|
|
223
223
|
return this.objectHelperMap.set(e, { helper: r, disposers: s }), r.controllers;
|
|
224
224
|
}
|
|
@@ -228,8 +228,8 @@ class Ze extends I {
|
|
|
228
228
|
const { helper: t, disposers: r } = this.objectHelperMap.get(e);
|
|
229
229
|
if (t) {
|
|
230
230
|
if (e.isCSS3DObjectPlus) {
|
|
231
|
-
const s = e,
|
|
232
|
-
|
|
231
|
+
const s = e, h = this.css3DObjectParentMap.get(s);
|
|
232
|
+
h && h.add(s), this.css3DRender.render(this.five.camera);
|
|
233
233
|
}
|
|
234
234
|
this.objectHelperMap.delete(e), t.dispose(), r == null || r.forEach((s) => s == null ? void 0 : s());
|
|
235
235
|
}
|
|
@@ -253,7 +253,7 @@ class Ze extends I {
|
|
|
253
253
|
actionIfStateIsEnabled(e, t) {
|
|
254
254
|
if (this.state.enabled)
|
|
255
255
|
return e();
|
|
256
|
-
t != null && t.warnLog &&
|
|
256
|
+
t != null && t.warnLog && Y();
|
|
257
257
|
}
|
|
258
258
|
getConfig(e) {
|
|
259
259
|
if (e && typeof e != "boolean" && e.enable)
|
|
@@ -261,6 +261,6 @@ class Ze extends I {
|
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
export {
|
|
264
|
-
|
|
264
|
+
ir as Object3DHelperController,
|
|
265
265
|
D as PLUGIN
|
|
266
266
|
};
|
|
@@ -9,6 +9,7 @@ declare class ControllerWrapper<HelperControllerInterface extends new (...params
|
|
|
9
9
|
private five;
|
|
10
10
|
constructor(five: Five, HelperController: HelperControllerInterface, object: THREE.Object3D, helperObject3D: InstanceType<HelperControllerInterface>['helperObject3D'], HelperControllerConfig?: ConstructorParameters<HelperControllerInterface>[1], hooks?: Subscribe<any>, internalHooks?: Subscribe<any>);
|
|
11
11
|
dispose(): void;
|
|
12
|
+
private onFiveWantsUpdateCameraDistance;
|
|
12
13
|
private onFiveWantsTapGesture;
|
|
13
14
|
private onFiveWantsGesture;
|
|
14
15
|
private onFiveIntersectionOnModelUpdate;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var n = (r, e, t) => (
|
|
4
|
-
class
|
|
1
|
+
var v = Object.defineProperty;
|
|
2
|
+
var C = (r, e, t) => e in r ? v(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
+
var n = (r, e, t) => (C(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
class F {
|
|
5
5
|
// eslint-disable-next-line max-params
|
|
6
|
-
constructor(e, t,
|
|
6
|
+
constructor(e, t, l, h, p, d, c) {
|
|
7
7
|
n(this, "helperController");
|
|
8
8
|
n(this, "five");
|
|
9
|
+
n(this, "onFiveWantsUpdateCameraDistance", () => {
|
|
10
|
+
var e, t;
|
|
11
|
+
this.helperController && ((t = (e = this.helperController).onWantsUpdateCameraDistance) == null || t.call(e));
|
|
12
|
+
});
|
|
9
13
|
n(this, "onFiveWantsTapGesture", (e) => {
|
|
10
14
|
if (!this.helperController)
|
|
11
15
|
return;
|
|
@@ -23,33 +27,33 @@ class G {
|
|
|
23
27
|
n(this, "onFiveIntersectionOnModelUpdate", (...e) => {
|
|
24
28
|
this.helperController && this.helperController.onIntersectionOnModelUpdate(...e);
|
|
25
29
|
});
|
|
26
|
-
const { camera: s, model: o, scene:
|
|
27
|
-
if (this.five = e, !s || !o || !
|
|
30
|
+
const { camera: s, model: o, scene: a } = e, i = e.getElement();
|
|
31
|
+
if (this.five = e, !s || !o || !i || !a)
|
|
28
32
|
return;
|
|
29
|
-
const
|
|
33
|
+
const u = () => {
|
|
30
34
|
e.needsRender = !0;
|
|
31
35
|
};
|
|
32
36
|
this.helperController = new t(
|
|
33
37
|
{
|
|
34
38
|
camera: s,
|
|
35
39
|
model: o,
|
|
36
|
-
originObject3D:
|
|
40
|
+
originObject3D: l,
|
|
37
41
|
helperObject3D: h,
|
|
38
|
-
container:
|
|
39
|
-
scene:
|
|
40
|
-
onRender:
|
|
41
|
-
sharedHooks:
|
|
42
|
-
sharedInternalHooks:
|
|
42
|
+
container: i,
|
|
43
|
+
scene: a,
|
|
44
|
+
onRender: u,
|
|
45
|
+
sharedHooks: d,
|
|
46
|
+
sharedInternalHooks: c
|
|
43
47
|
},
|
|
44
48
|
p
|
|
45
|
-
), e.on("wantsTapGesture", this.onFiveWantsTapGesture), e.on("wantsGesture", this.onFiveWantsGesture), e.on("intersectionOnModelUpdate", this.onFiveIntersectionOnModelUpdate);
|
|
49
|
+
), e.on("wantsTapGesture", this.onFiveWantsTapGesture), e.on("wantsGesture", this.onFiveWantsGesture), e.on("intersectionOnModelUpdate", this.onFiveIntersectionOnModelUpdate), e.on("cameraFovUpdate", this.onFiveWantsUpdateCameraDistance), e.on("cameraPositionUpdate", this.onFiveWantsUpdateCameraDistance);
|
|
46
50
|
}
|
|
47
51
|
dispose() {
|
|
48
52
|
var e;
|
|
49
|
-
this.five.off("wantsTapGesture", this.onFiveWantsTapGesture), this.five.off("wantsGesture", this.onFiveWantsGesture), this.five.off("intersectionOnModelUpdate", this.onFiveIntersectionOnModelUpdate), (e = this.helperController) == null || e.dispose();
|
|
53
|
+
this.five.off("wantsTapGesture", this.onFiveWantsTapGesture), this.five.off("wantsGesture", this.onFiveWantsGesture), this.five.off("intersectionOnModelUpdate", this.onFiveIntersectionOnModelUpdate), this.five.off("cameraFovUpdate", this.onFiveWantsUpdateCameraDistance), this.five.off("cameraPositionUpdate", this.onFiveWantsUpdateCameraDistance), (e = this.helperController) == null || e.dispose();
|
|
50
54
|
}
|
|
51
55
|
}
|
|
52
56
|
export {
|
|
53
|
-
|
|
54
|
-
|
|
57
|
+
F as ControllerWrapper,
|
|
58
|
+
F as FiveControllerWrapper
|
|
55
59
|
};
|