@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,5 +1,5 @@
|
|
|
1
1
|
import { Object3DHelperController as o } from "./Controller.js";
|
|
2
|
-
import { PLUGIN as
|
|
2
|
+
import { PLUGIN as nr } from "./Controller.js";
|
|
3
3
|
import "@realsee/five";
|
|
4
4
|
import "../base/BasePlugin.js";
|
|
5
5
|
import "../shared-utils/Subscribe.js";
|
|
@@ -26,16 +26,17 @@ import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
|
26
26
|
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
27
27
|
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
28
28
|
import "../shared-utils/three/IObject3D.js";
|
|
29
|
+
import "../shared-utils/Object3DHelper/utils/boundingBox.js";
|
|
29
30
|
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
30
31
|
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
31
32
|
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
33
|
+
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
32
34
|
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
33
35
|
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
34
36
|
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
35
37
|
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
36
38
|
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
37
39
|
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
38
|
-
import "../shared-utils/Object3DHelper/utils/boundingBox.js";
|
|
39
40
|
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
40
41
|
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
41
42
|
import "../shared-utils/threex/domevents/index.js";
|
|
@@ -54,10 +55,11 @@ import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
|
54
55
|
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
55
56
|
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
56
57
|
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
57
|
-
|
|
58
|
+
import "../Sculpt/utils/three/rayOnLine.js";
|
|
59
|
+
const ir = (r) => new o(r);
|
|
58
60
|
export {
|
|
59
61
|
o as Object3DHelperController,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
ir as Object3DHelperPlugin,
|
|
63
|
+
nr as PLUGIN,
|
|
64
|
+
ir as default
|
|
63
65
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Group as g, Vector3 as r, Raycaster as C } from "three";
|
|
2
|
-
import { createLine as
|
|
2
|
+
import { createLine as u } from "../shared-utils/createLine/index.js";
|
|
3
|
+
import "../shared-utils/five/FiveLine.js";
|
|
3
4
|
import "@realsee/five/line";
|
|
4
|
-
const
|
|
5
|
+
const U = (e) => {
|
|
5
6
|
const a = {
|
|
6
7
|
intersection: null,
|
|
7
8
|
disposers: []
|
|
@@ -18,17 +19,17 @@ const O = (e) => {
|
|
|
18
19
|
const P = (t, c = 2, o = 0.1) => {
|
|
19
20
|
const s = c / 2, n = x(t, o), i = new g();
|
|
20
21
|
i.add(
|
|
21
|
-
|
|
22
|
+
u(
|
|
22
23
|
new r(n.x + s, n.y, n.z),
|
|
23
24
|
new r(n.x - s, n.y, n.z),
|
|
24
25
|
new r(1, 0, 0)
|
|
25
26
|
),
|
|
26
|
-
|
|
27
|
+
u(
|
|
27
28
|
new r(n.x, n.y + s, n.z),
|
|
28
29
|
new r(n.x, n.y - s, n.z),
|
|
29
30
|
new r(0, 1, 0)
|
|
30
31
|
),
|
|
31
|
-
|
|
32
|
+
u(
|
|
32
33
|
new r(n.x, n.y, n.z + s),
|
|
33
34
|
new r(n.x, n.y, n.z - s),
|
|
34
35
|
new r(0, 0, 1)
|
|
@@ -43,7 +44,7 @@ const O = (e) => {
|
|
|
43
44
|
const o = (d = e == null ? void 0 : e.camera) == null ? void 0 : d.position;
|
|
44
45
|
if (!o)
|
|
45
46
|
return !1;
|
|
46
|
-
const s = t.distanceTo(o),
|
|
47
|
+
const s = t.distanceTo(o), m = t.sub(o).normalize(), n = new C(o, m), i = (y = e.model.intersectRaycaster(n)) == null ? void 0 : y[0];
|
|
47
48
|
return !(i && i.distance + c < s);
|
|
48
49
|
}, z = () => a.intersection, w = () => {
|
|
49
50
|
var t, c;
|
|
@@ -55,6 +56,6 @@ const O = (e) => {
|
|
|
55
56
|
return { intersection: z, pointAxesHelper: P, movePointTowardsCamera: x, destroy: w, dispose: H, canSeePoint: h };
|
|
56
57
|
};
|
|
57
58
|
export {
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
U as PanoCursorRaycasterPlugin,
|
|
60
|
+
U as default
|
|
60
61
|
};
|
|
@@ -6,6 +6,7 @@ import { IconLine as q, IconArea as D, IconUndo as ee, IconOk as te } from "./Co
|
|
|
6
6
|
import "../Model/line.js";
|
|
7
7
|
import "../../shared-utils/uuid.js";
|
|
8
8
|
import "../utils/line.js";
|
|
9
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
9
10
|
import "@realsee/five/line";
|
|
10
11
|
import "../utils/constants.js";
|
|
11
12
|
import "three";
|
|
@@ -22,10 +23,10 @@ import "../Model/polyline.js";
|
|
|
22
23
|
import "../Model/area.js";
|
|
23
24
|
import "../Model/polygon.js";
|
|
24
25
|
import "../../shared-utils/three/IObject3D.js";
|
|
25
|
-
import "
|
|
26
|
+
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
26
27
|
import "earcut";
|
|
27
28
|
import "../utils/dom/areaDom.js";
|
|
28
|
-
import "
|
|
29
|
+
import "../../shared-utils/three/geometryUtil.js";
|
|
29
30
|
import "hammerjs";
|
|
30
31
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
31
32
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
@@ -59,9 +60,8 @@ import "../../shared-utils/url/absoluteUrl.js";
|
|
|
59
60
|
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
60
61
|
import "../../shared-utils/animationFrame/index.js";
|
|
61
62
|
import "../../shared-utils/isTouchDevice.js";
|
|
62
|
-
import "../../shared-utils/
|
|
63
|
-
import "../../shared-utils/
|
|
64
|
-
import "../../shared-utils/three/getIntersect.js";
|
|
63
|
+
import "../../shared-utils/five/getPosition.js";
|
|
64
|
+
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
65
65
|
import "../Modules/DeleteDom/index.js";
|
|
66
66
|
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
67
67
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -10,6 +10,7 @@ import "../../vendor/svelte/easing/index.js";
|
|
|
10
10
|
import "../Model/line.js";
|
|
11
11
|
import "../../shared-utils/uuid.js";
|
|
12
12
|
import "../utils/line.js";
|
|
13
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
13
14
|
import "@realsee/five/line";
|
|
14
15
|
import "../utils/constants.js";
|
|
15
16
|
import "three";
|
|
@@ -26,10 +27,10 @@ import "../Model/polyline.js";
|
|
|
26
27
|
import "../Model/area.js";
|
|
27
28
|
import "../Model/polygon.js";
|
|
28
29
|
import "../../shared-utils/three/IObject3D.js";
|
|
29
|
-
import "
|
|
30
|
+
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
30
31
|
import "earcut";
|
|
31
32
|
import "../utils/dom/areaDom.js";
|
|
32
|
-
import "
|
|
33
|
+
import "../../shared-utils/three/geometryUtil.js";
|
|
33
34
|
import "hammerjs";
|
|
34
35
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
35
36
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
@@ -63,9 +64,8 @@ import "../../shared-utils/url/absoluteUrl.js";
|
|
|
63
64
|
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
64
65
|
import "../../shared-utils/animationFrame/index.js";
|
|
65
66
|
import "../../shared-utils/isTouchDevice.js";
|
|
66
|
-
import "../../shared-utils/
|
|
67
|
-
import "../../shared-utils/
|
|
68
|
-
import "../../shared-utils/three/getIntersect.js";
|
|
67
|
+
import "../../shared-utils/five/getPosition.js";
|
|
68
|
+
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
69
69
|
import "../Modules/DeleteDom/index.js";
|
|
70
70
|
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
71
71
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -7,6 +7,7 @@ import r from "../Model/point.js";
|
|
|
7
7
|
import { preventDefault as a } from "../utils/ironbox.js";
|
|
8
8
|
import "../../shared-utils/uuid.js";
|
|
9
9
|
import "../utils/line.js";
|
|
10
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
10
11
|
import "@realsee/five/line";
|
|
11
12
|
import "../utils/constants.js";
|
|
12
13
|
import "@realsee/five";
|
|
@@ -14,7 +15,7 @@ import "../utils/dom/distanceItem.js";
|
|
|
14
15
|
import "../utils/dom/base.js";
|
|
15
16
|
import "../utils/isNDCPointInScreen.js";
|
|
16
17
|
import "../../shared-utils/three/centerPoint.js";
|
|
17
|
-
class
|
|
18
|
+
class k {
|
|
18
19
|
constructor(e) {
|
|
19
20
|
t(this, "model");
|
|
20
21
|
t(this, "five");
|
|
@@ -71,5 +72,5 @@ class C {
|
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
export {
|
|
74
|
-
|
|
75
|
+
k as default
|
|
75
76
|
};
|
|
@@ -15,6 +15,7 @@ import T from "../utils/isNDCPointInScreen.js";
|
|
|
15
15
|
import { closestPointOnLine as B } from "../utils/math.js";
|
|
16
16
|
import "../../shared-utils/uuid.js";
|
|
17
17
|
import "../utils/line.js";
|
|
18
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
18
19
|
import "@realsee/five/line";
|
|
19
20
|
import "../utils/constants.js";
|
|
20
21
|
import "@realsee/five";
|
|
@@ -24,10 +25,10 @@ import "../../shared-utils/three/centerPoint.js";
|
|
|
24
25
|
import "../utils/ironbox.js";
|
|
25
26
|
import "../Model/polygon.js";
|
|
26
27
|
import "../../shared-utils/three/IObject3D.js";
|
|
27
|
-
import "
|
|
28
|
+
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
28
29
|
import "earcut";
|
|
29
30
|
import "../utils/dom/areaDom.js";
|
|
30
|
-
import "
|
|
31
|
+
import "../../shared-utils/three/geometryUtil.js";
|
|
31
32
|
import "hammerjs";
|
|
32
33
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
33
34
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
@@ -59,9 +60,8 @@ import "../../shared-utils/url/absoluteUrl.js";
|
|
|
59
60
|
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
60
61
|
import "../../shared-utils/animationFrame/index.js";
|
|
61
62
|
import "../../shared-utils/isTouchDevice.js";
|
|
62
|
-
import "../../shared-utils/
|
|
63
|
-
import "../../shared-utils/
|
|
64
|
-
import "../../shared-utils/three/getIntersect.js";
|
|
63
|
+
import "../../shared-utils/five/getPosition.js";
|
|
64
|
+
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
65
65
|
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
66
66
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
67
67
|
import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
@@ -164,7 +164,7 @@ class Xe extends j {
|
|
|
164
164
|
this.complete();
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
167
|
-
this.area.points.length >= 3 ? this.pointSelector.setAdherePoints(this.area.points[0]) : this.pointSelector.setAdherePoints(null);
|
|
167
|
+
this.area.points.length >= 3 ? this.pointSelector.setAdherePoints([this.area.points[0]]) : this.pointSelector.setAdherePoints(null);
|
|
168
168
|
const a = (d = (l = this.editParams) == null ? void 0 : l.autoEndConfig) == null ? void 0 : d.area;
|
|
169
169
|
typeof a == "number" && (this.area.points.length >= a ? this.complete() : this.area.points.length === a - 1 && this.hook.emit("readyComplete")), this.hook.emit("pointsChange", this.area.points);
|
|
170
170
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var b = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var t = (n, s, e) => (
|
|
4
|
-
import { Model as
|
|
5
|
-
import
|
|
2
|
+
var y = (n, s, e) => s in n ? b(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e;
|
|
3
|
+
var t = (n, s, e) => (y(n, typeof s != "symbol" ? s + "" : s, e), e);
|
|
4
|
+
import { Model as D } from "../Model/index.js";
|
|
5
|
+
import S from "../Model/line.js";
|
|
6
6
|
import T from "./BaseController.js";
|
|
7
7
|
import M from "../Modules/DeleteDom/index.js";
|
|
8
8
|
import { Vector2 as m } from "three";
|
|
@@ -13,6 +13,7 @@ import W from "../Modules/rangePiece/index.js";
|
|
|
13
13
|
import "@realsee/five";
|
|
14
14
|
import "../../shared-utils/uuid.js";
|
|
15
15
|
import "../utils/line.js";
|
|
16
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
16
17
|
import "@realsee/five/line";
|
|
17
18
|
import "../utils/constants.js";
|
|
18
19
|
import "../utils/dom/distanceItem.js";
|
|
@@ -29,7 +30,7 @@ import "../../shared-utils/animationFrame/index.js";
|
|
|
29
30
|
import "../../shared-utils/noop.js";
|
|
30
31
|
import "../utils/calculateThreeMouse.js";
|
|
31
32
|
import "../utils/mouseGroup.js";
|
|
32
|
-
class
|
|
33
|
+
class ae extends T {
|
|
33
34
|
constructor(e) {
|
|
34
35
|
super(e);
|
|
35
36
|
t(this, "state", "watching");
|
|
@@ -78,7 +79,7 @@ class re extends T {
|
|
|
78
79
|
});
|
|
79
80
|
/** mobile态时更新放大镜 */
|
|
80
81
|
t(this, "updateMagnifier", (e) => {
|
|
81
|
-
this.magnifier.containerDom !== this.container && this.magnifier.appendTo(this.container), this.magnifier.
|
|
82
|
+
this.magnifier.containerDom !== this.container && this.magnifier.appendTo(this.container), this.magnifier.state.enabled || this.magnifier.enable(), requestAnimationFrame(() => this.magnifier.renderWithPoint(e.position)), this.five.needsRender = !0;
|
|
82
83
|
});
|
|
83
84
|
t(this, "onGetStartPoint", (e) => {
|
|
84
85
|
this.mobileStartPoint = e, this.polyline = new L({ model: this.model }), this.polyline.hook.on("lineAdded", () => this.hook.emit("editedPolylineChange", this.polyline)), this.polyline.hook.on("lineRemoved", () => this.hook.emit("editedPolylineChange", this.polyline));
|
|
@@ -86,7 +87,7 @@ class re extends T {
|
|
|
86
87
|
t(this, "onGetEndPoint", () => {
|
|
87
88
|
const e = this.mobileNowPoint;
|
|
88
89
|
if (this.removeLine(this.dashed), this.hasAppendDashed = !1, this.mobileStartPoint && e) {
|
|
89
|
-
const i = new
|
|
90
|
+
const i = new S(this.mobileStartPoint, e, this.model);
|
|
90
91
|
this.polyline.addLine(i), i.distanceItem.appendTo(this.container), i.distanceItem.update(this.five), i.hook.on("selected", this.chooseLine), this.disposers.push(() => i.hook.off("selected", this.chooseLine)), this.group.add(i.mesh), this.model.addPolyline(this.polyline);
|
|
91
92
|
}
|
|
92
93
|
this.mobileStartPoint = null, this.mobileNowPoint = null, this.five.needsRender = !0;
|
|
@@ -118,7 +119,7 @@ class re extends T {
|
|
|
118
119
|
t(this, "cancelDeleteClickCallback", () => {
|
|
119
120
|
this.clearHighlightLines();
|
|
120
121
|
});
|
|
121
|
-
this.model = new
|
|
122
|
+
this.model = new D(this.config), this.polyline = new L({ model: this.model }), this.rangePieceController = new W(e), this.deleteDom = new M(this.five, {
|
|
122
123
|
i18n: this.config.i18n,
|
|
123
124
|
onClick: this.deleteDomClickCallback,
|
|
124
125
|
cancel: this.cancelDeleteClickCallback
|
|
@@ -143,5 +144,5 @@ class re extends T {
|
|
|
143
144
|
}
|
|
144
145
|
}
|
|
145
146
|
export {
|
|
146
|
-
|
|
147
|
+
ae as default
|
|
147
148
|
};
|
|
@@ -7,6 +7,7 @@ import "three";
|
|
|
7
7
|
import "../Model/line.js";
|
|
8
8
|
import "../../shared-utils/uuid.js";
|
|
9
9
|
import "../utils/line.js";
|
|
10
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
10
11
|
import "@realsee/five/line";
|
|
11
12
|
import "../utils/constants.js";
|
|
12
13
|
import "@realsee/five";
|
|
@@ -16,7 +17,7 @@ import "../utils/isNDCPointInScreen.js";
|
|
|
16
17
|
import "../../shared-utils/three/centerPoint.js";
|
|
17
18
|
import "../Model/point.js";
|
|
18
19
|
import "../utils/ironbox.js";
|
|
19
|
-
class
|
|
20
|
+
class R extends h {
|
|
20
21
|
constructor(e) {
|
|
21
22
|
super(e);
|
|
22
23
|
s(this, "type", "view");
|
|
@@ -66,5 +67,5 @@ class F extends h {
|
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
export {
|
|
69
|
-
|
|
70
|
+
R as default
|
|
70
71
|
};
|
|
@@ -17,6 +17,7 @@ import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
|
17
17
|
import "../Model/line.js";
|
|
18
18
|
import "../../shared-utils/uuid.js";
|
|
19
19
|
import "../utils/line.js";
|
|
20
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
20
21
|
import "@realsee/five/line";
|
|
21
22
|
import "../utils/constants.js";
|
|
22
23
|
import "@realsee/five";
|
|
@@ -28,7 +29,7 @@ import "../utils/ironbox.js";
|
|
|
28
29
|
import "../utils/ndc2Screen.js";
|
|
29
30
|
import "../Model/polyline.js";
|
|
30
31
|
import "../utils/dom/areaDom.js";
|
|
31
|
-
import "
|
|
32
|
+
import "../../shared-utils/three/geometryUtil.js";
|
|
32
33
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
33
34
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
34
35
|
import "../../shared-utils/positionToVector3.js";
|
|
@@ -47,10 +48,10 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
|
47
48
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
48
49
|
import "../../shared-utils/isNil.js";
|
|
49
50
|
import "../../shared-utils/three/IObject3D.js";
|
|
50
|
-
import "
|
|
51
|
+
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
51
52
|
import "earcut";
|
|
52
53
|
const C = () => !1;
|
|
53
|
-
class
|
|
54
|
+
class bt extends G {
|
|
54
55
|
constructor(t) {
|
|
55
56
|
super(t);
|
|
56
57
|
s(this, "type", "watch");
|
|
@@ -223,5 +224,5 @@ class Ut extends G {
|
|
|
223
224
|
}
|
|
224
225
|
}
|
|
225
226
|
export {
|
|
226
|
-
|
|
227
|
+
bt as default
|
|
227
228
|
};
|
|
@@ -31,6 +31,7 @@ import { isTouchDevice as B } from "../../shared-utils/isTouchDevice.js";
|
|
|
31
31
|
import "../Model/line.js";
|
|
32
32
|
import "../../shared-utils/uuid.js";
|
|
33
33
|
import "../utils/line.js";
|
|
34
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
34
35
|
import "@realsee/five/line";
|
|
35
36
|
import "../utils/constants.js";
|
|
36
37
|
import "../utils/dom/distanceItem.js";
|
|
@@ -45,10 +46,10 @@ import "../Model/polyline.js";
|
|
|
45
46
|
import "../Model/area.js";
|
|
46
47
|
import "../Model/polygon.js";
|
|
47
48
|
import "../../shared-utils/three/IObject3D.js";
|
|
48
|
-
import "
|
|
49
|
+
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
49
50
|
import "earcut";
|
|
50
51
|
import "../utils/dom/areaDom.js";
|
|
51
|
-
import "
|
|
52
|
+
import "../../shared-utils/three/geometryUtil.js";
|
|
52
53
|
import "hammerjs";
|
|
53
54
|
import "../../shared-utils/isNil.js";
|
|
54
55
|
import "../utils/isIntersecting.js";
|
|
@@ -77,9 +78,8 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
77
78
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
78
79
|
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
79
80
|
import "../../shared-utils/animationFrame/index.js";
|
|
80
|
-
import "../../shared-utils/
|
|
81
|
-
import "../../shared-utils/
|
|
82
|
-
import "../../shared-utils/three/getIntersect.js";
|
|
81
|
+
import "../../shared-utils/five/getPosition.js";
|
|
82
|
+
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
83
83
|
import "../Modules/DeleteDom/index.js";
|
|
84
84
|
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
85
85
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -87,6 +87,7 @@ import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
|
87
87
|
import "../utils/math.js";
|
|
88
88
|
import "../utils/findClosestPoint.js";
|
|
89
89
|
import "../utils/ndc2Screen.js";
|
|
90
|
+
import "../../shared-utils/getPointFromHammerEvent.js";
|
|
90
91
|
import "../Modules/rangePiece/index.js";
|
|
91
92
|
import "../../shared-utils/noop.js";
|
|
92
93
|
import "../utils/calculateThreeMouse.js";
|
|
@@ -109,7 +110,7 @@ import "../../vendor/svelte/transition/index.js";
|
|
|
109
110
|
import "../../vendor/svelte/easing/index.js";
|
|
110
111
|
import "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
111
112
|
import "../Components/Tip.js";
|
|
112
|
-
class
|
|
113
|
+
class Gt {
|
|
113
114
|
constructor(e, t) {
|
|
114
115
|
r(this, "hasOpen", !1);
|
|
115
116
|
r(this, "hook", new G());
|
|
@@ -311,5 +312,5 @@ class Et {
|
|
|
311
312
|
}
|
|
312
313
|
}
|
|
313
314
|
export {
|
|
314
|
-
|
|
315
|
+
Gt as default
|
|
315
316
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
|
-
import type { Line as FiveLine } from '@realsee/five/line';
|
|
3
2
|
import { Subscribe, type Five, type SubscribeEventMap } from '@realsee/five';
|
|
4
3
|
import PolygonMesh from './polygon';
|
|
5
4
|
import { Polyline } from './polyline';
|
|
6
5
|
import type { Model } from '.';
|
|
7
6
|
import { AreaItem } from '../utils/dom/areaDom';
|
|
7
|
+
import type { FiveLine } from '../../shared-utils/five/FiveLine';
|
|
8
8
|
export interface AreaHook extends SubscribeEventMap {
|
|
9
9
|
selected: (area: Area, position: {
|
|
10
10
|
left: string;
|
|
@@ -71,4 +71,5 @@ export default class Area {
|
|
|
71
71
|
* @todo: 没写完
|
|
72
72
|
*/
|
|
73
73
|
dispose(): void;
|
|
74
|
+
toJSON(): any;
|
|
74
75
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
var d = (o, t, e) => t in o ?
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var d = (o, t, e) => t in o ? l(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
3
3
|
var i = (o, t, e) => (d(o, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
4
|
import * as r from "three";
|
|
5
5
|
import { uuid as f } from "../../shared-utils/uuid.js";
|
|
@@ -10,6 +10,7 @@ import { Polyline as y } from "./polyline.js";
|
|
|
10
10
|
import a from "./point.js";
|
|
11
11
|
import { AreaItem as C } from "../utils/dom/areaDom.js";
|
|
12
12
|
import "../utils/line.js";
|
|
13
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
13
14
|
import "@realsee/five/line";
|
|
14
15
|
import "../utils/constants.js";
|
|
15
16
|
import "../utils/dom/distanceItem.js";
|
|
@@ -17,9 +18,9 @@ import "../utils/dom/base.js";
|
|
|
17
18
|
import "../utils/isNDCPointInScreen.js";
|
|
18
19
|
import "../../shared-utils/three/centerPoint.js";
|
|
19
20
|
import "../../shared-utils/three/IObject3D.js";
|
|
20
|
-
import "
|
|
21
|
+
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
21
22
|
import "earcut";
|
|
22
|
-
import "
|
|
23
|
+
import "../../shared-utils/three/geometryUtil.js";
|
|
23
24
|
import "hammerjs";
|
|
24
25
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
25
26
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
@@ -38,7 +39,7 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
38
39
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
39
40
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
40
41
|
import "../../shared-utils/isNil.js";
|
|
41
|
-
class
|
|
42
|
+
class ot {
|
|
42
43
|
constructor(t, e) {
|
|
43
44
|
i(this, "id", f());
|
|
44
45
|
i(this, "selected", !1);
|
|
@@ -71,8 +72,8 @@ class et {
|
|
|
71
72
|
t && (this.points = t), this.model = e.model, this.polygon = new v(t), this.polyline = new y({ model: e.model }), this.areaItem = new C({
|
|
72
73
|
area: this,
|
|
73
74
|
clickCallback: (p, s) => {
|
|
74
|
-
const h = p.clientX + "px",
|
|
75
|
-
this.hook.emit("selected", this, { left: h, top:
|
|
75
|
+
const h = p.clientX + "px", m = p.clientY + "px";
|
|
76
|
+
this.hook.emit("selected", this, { left: h, top: m });
|
|
76
77
|
}
|
|
77
78
|
}), this.domContainer = e.domContainer || null, this.meshContainer = e.meshContainer || null, this.five = e.five || null, this.areaItem.appendTo(this.domContainer), (n = this.five) == null || n.on("cameraUpdate", this.updateDom);
|
|
78
79
|
}
|
|
@@ -128,7 +129,14 @@ class et {
|
|
|
128
129
|
dispose() {
|
|
129
130
|
this.remove(), this.model.areas.splice(this.model.areas.indexOf(this), 1), this.planeHelper = null, this.five.off("cameraUpdate", this.updateDom), this.five.needsRender = !0;
|
|
130
131
|
}
|
|
132
|
+
toJSON() {
|
|
133
|
+
return {
|
|
134
|
+
id: this.id,
|
|
135
|
+
points: this.points.map((t) => t.toArray()),
|
|
136
|
+
text: this.text
|
|
137
|
+
};
|
|
138
|
+
}
|
|
131
139
|
}
|
|
132
140
|
export {
|
|
133
|
-
|
|
141
|
+
ot as default
|
|
134
142
|
};
|
|
@@ -6,6 +6,7 @@ import { Subscribe as p } from "@realsee/five";
|
|
|
6
6
|
import "./line.js";
|
|
7
7
|
import "../../shared-utils/uuid.js";
|
|
8
8
|
import "../utils/line.js";
|
|
9
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
9
10
|
import "@realsee/five/line";
|
|
10
11
|
import "../utils/constants.js";
|
|
11
12
|
import "three";
|
|
@@ -14,7 +15,7 @@ import "../utils/dom/base.js";
|
|
|
14
15
|
import "../utils/isNDCPointInScreen.js";
|
|
15
16
|
import "../../shared-utils/three/centerPoint.js";
|
|
16
17
|
import "./point.js";
|
|
17
|
-
class
|
|
18
|
+
class v {
|
|
18
19
|
constructor(e) {
|
|
19
20
|
r(this, "config");
|
|
20
21
|
r(this, "polylines", []);
|
|
@@ -95,5 +96,5 @@ class I {
|
|
|
95
96
|
}
|
|
96
97
|
}
|
|
97
98
|
export {
|
|
98
|
-
|
|
99
|
+
v as Model
|
|
99
100
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Model } from '.';
|
|
2
2
|
import type Point from './point';
|
|
3
3
|
import type { LineJson } from '../typings/data';
|
|
4
|
-
import type { Line as FiveLine } from '@realsee/five/line';
|
|
5
4
|
import type { Polyline } from './polyline';
|
|
6
5
|
import { Subscribe, type SubscribeEventMap } from '@realsee/five';
|
|
7
6
|
import { DistanceItem } from '../utils/dom/distanceItem';
|
|
8
7
|
import type * as THREE from 'three';
|
|
8
|
+
import type { FiveLine } from '../../shared-utils/five/FiveLine';
|
|
9
9
|
export interface ILineHook extends SubscribeEventMap {
|
|
10
10
|
selected: (line: Line) => void;
|
|
11
11
|
textChanged: (text: string | undefined) => void;
|
|
@@ -5,6 +5,7 @@ import { uuid as p } from "../../shared-utils/uuid.js";
|
|
|
5
5
|
import { createLineMesh as n } from "../utils/line.js";
|
|
6
6
|
import { Subscribe as c } from "@realsee/five";
|
|
7
7
|
import { DistanceItem as d } from "../utils/dom/distanceItem.js";
|
|
8
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
8
9
|
import "@realsee/five/line";
|
|
9
10
|
import "../utils/constants.js";
|
|
10
11
|
import "three";
|
|
@@ -3,7 +3,7 @@ var c = (o, t, e) => t in o ? m(o, t, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var s = (o, t, e) => (c(o, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
4
|
import * as r from "three";
|
|
5
5
|
import { IObject3D as h } from "../../shared-utils/three/IObject3D.js";
|
|
6
|
-
import d from "
|
|
6
|
+
import { generatePolygonGeometry as d } from "../../shared-utils/three/generatePolygonGeometry.js";
|
|
7
7
|
import "earcut";
|
|
8
8
|
const p = new r.BufferGeometry();
|
|
9
9
|
class B extends h {
|