@realsee/dnalogel 2.25.0 → 2.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CruisePlugin/typing.d.ts +1 -1
- package/dist/GuideLinePlugin/typing.d.ts +1 -1
- package/dist/PanoCompassPlugin/typings.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Model/point.d.ts +0 -4
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +1 -1
- package/dist/PipelinePlugin/Controller.d.ts +108 -0
- package/dist/PipelinePlugin/index.d.ts +6 -0
- package/dist/PipelinePlugin/typing/PluginData.d.ts +20 -0
- package/dist/PipelinePlugin/typing/ServerData.d.ts +28 -0
- package/dist/PipelinePlugin/typing/index.d.ts +79 -0
- package/dist/PipelinePlugin/utils/Objects/FlowPipe.d.ts +34 -0
- package/dist/PipelinePlugin/utils/Objects/Pipe.d.ts +49 -0
- package/dist/PipelinePlugin/utils/formatData.d.ts +12 -0
- package/dist/base/BasePluginWithData.d.ts +3 -15
- package/dist/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +1 -1
- package/dist/floorplan/typings/index.d.ts +1 -1
- package/dist/index.cjs.js +100 -65
- package/dist/index.d.ts +1 -0
- package/dist/index.js +9180 -8600
- package/dist/index.umd.js +89 -54
- package/dist/shared-utils/three/Extras/Core/Interpolations.d.ts +11 -0
- package/dist/shared-utils/three/Extras/Curves/BezierCurve3.d.ts +13 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +33 -30
- package/docs/classes/CruisePluginController.html +28 -25
- package/docs/classes/GuideLineItem.GuideLineItem.html +22 -19
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +37 -34
- package/docs/classes/Magnifier.html +22 -19
- package/docs/classes/ModelRoomLabelController.html +13 -10
- package/docs/classes/Object3DHelperController.html +27 -24
- package/docs/classes/PaintBrush.html +17 -14
- package/docs/classes/PanoMeasurePluginLine.html +29 -26
- package/docs/classes/PanoMeasurePluginModel.html +29 -26
- package/docs/classes/PanoMeasurePluginPoint.html +14 -48
- package/docs/classes/PanoMeasurePluginPolyline.html +43 -32
- package/docs/classes/PanoTagPluginController.html +49 -46
- package/docs/classes/Util.BetterTween.html +11 -8
- package/docs/classes/Util.Interval.html +14 -11
- package/docs/classes/Util.Magnifier.html +22 -19
- package/docs/classes/Util.PointDomHelper.html +13 -10
- package/docs/classes/Util.PointHelper.html +13 -10
- package/docs/classes/Util.PointSelectorHelper.html +18 -15
- package/docs/classes/Util.Rectangle.html +15 -12
- package/docs/enums/CameraMovementEffect.html +9 -6
- package/docs/enums/ContentType.html +22 -19
- package/docs/enums/DIRECTION.html +11 -8
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +11 -8
- package/docs/enums/DimensionType.html +9 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -7
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +11 -8
- package/docs/enums/PaintBrushTypeEnum.html +10 -7
- package/docs/enums/PointType.html +9 -6
- package/docs/enums/Rotation.html +10 -7
- package/docs/functions/CSS3DRenderPlugin.html +6 -3
- package/docs/functions/CameraMovementPlugin.html +6 -3
- package/docs/functions/CruisePlugin.html +6 -3
- package/docs/functions/GuideLinePlugin.html +7 -4
- package/docs/functions/ItemLabelPlugin.html +6 -3
- package/docs/functions/MapviewFloorplanPlugin.html +6 -3
- package/docs/functions/ModelChassisCompassPlugin.html +6 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -3
- package/docs/functions/ModelFloorplanPlugin.html +6 -3
- package/docs/functions/ModelItemLabelPlugin.html +6 -3
- package/docs/functions/ModelRoomLabelPlugin.html +6 -3
- package/docs/functions/ModelTVVideoPlugin.html +6 -3
- package/docs/functions/ModelViewPlugin.html +6 -3
- package/docs/functions/Object3DHelperPlugin.html +6 -3
- package/docs/functions/PanoCompassPlugin.html +6 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +6 -3
- package/docs/functions/PanoDoorLabelPlugin.html +6 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +6 -3
- package/docs/functions/PanoMeasurePlugin.html +6 -3
- package/docs/functions/PanoRulerPlugin.html +6 -3
- package/docs/functions/PanoRulerProPlugin.html +6 -3
- package/docs/functions/PanoSpatialTagPlugin.html +6 -3
- package/docs/functions/PanoTagPlugin.html +6 -3
- package/docs/functions/PanoVideoPlugin.html +6 -3
- package/docs/functions/PipelinePlugin.html +280 -0
- package/docs/functions/TopviewFloorplanPlugin.html +6 -3
- package/docs/functions/Util.absoluteUrl.html +7 -4
- package/docs/functions/Util.getCoordsFromClient.html +7 -4
- package/docs/functions/Util.getCoordsFromElement.html +7 -4
- package/docs/functions/Util.getFrameTime.html +7 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +7 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +7 -4
- package/docs/functions/Util.isAbsoluteURL.html +7 -4
- package/docs/functions/Util.isModelLike.html +7 -4
- package/docs/functions/Util.isNil.html +7 -4
- package/docs/functions/Util.isPanoramaLike.html +7 -4
- package/docs/functions/Util.nextFrame.html +7 -4
- package/docs/functions/Util.notNil.html +7 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +7 -4
- package/docs/functions/Util.tweenProgress.html +7 -4
- package/docs/functions/Util.uuid.html +7 -4
- package/docs/functions/pluginFlag.html +7 -4
- package/docs/index.html +7 -4
- package/docs/interfaces/AddTagConfig.html +8 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +13 -10
- package/docs/interfaces/CSS3DRenderPluginState.html +10 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +9 -6
- package/docs/interfaces/CruisePluginTypes.Config.html +10 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +14 -11
- package/docs/interfaces/CruisePluginTypes.EventMap.html +22 -19
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +14 -11
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +16 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +16 -13
- package/docs/interfaces/CruisePluginTypes.PluginData.html +11 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +10 -21
- package/docs/interfaces/CruisePluginTypes.PluginState.html +13 -10
- package/docs/interfaces/EventMap.html +17 -14
- package/docs/interfaces/FloorplanBounding.html +10 -7
- package/docs/interfaces/FloorplanData.html +12 -9
- package/docs/interfaces/FloorplanEntrance.html +13 -10
- package/docs/interfaces/FloorplanExtraObject.html +12 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +10 -7
- package/docs/interfaces/FloorplanFloorData.html +11 -8
- package/docs/interfaces/FloorplanImagePosition.html +9 -6
- package/docs/interfaces/FloorplanObserver.html +11 -8
- package/docs/interfaces/FloorplanOutlineItem.html +11 -8
- package/docs/interfaces/FloorplanPosition.html +9 -6
- package/docs/interfaces/FloorplanRoomItem.html +15 -12
- package/docs/interfaces/FloorplanRoomLabelItem.html +9 -6
- package/docs/interfaces/FloorplanServerBounding.html +10 -7
- package/docs/interfaces/FloorplanServerComputedData.html +12 -9
- package/docs/interfaces/FloorplanServerData.html +9 -6
- package/docs/interfaces/FloorplanServerDoorItem.html +12 -9
- package/docs/interfaces/FloorplanServerDoorPosition.html +10 -7
- package/docs/interfaces/FloorplanServerEntrance.html +13 -10
- package/docs/interfaces/FloorplanServerFloorData.html +11 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +9 -6
- package/docs/interfaces/FloorplanServerObserver.html +11 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +11 -8
- package/docs/interfaces/FloorplanServerPosition.html +9 -6
- package/docs/interfaces/FloorplanServerRoomItem.html +16 -13
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +9 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +10 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +12 -9
- package/docs/interfaces/GuideLinePluginType.EventMap.html +15 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +10 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +8 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +15 -12
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +10 -7
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +20 -17
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +9 -6
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +20 -17
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +7 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +10 -21
- package/docs/interfaces/GuideLinePluginType.PluginState.html +10 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +13 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +11 -8
- package/docs/interfaces/HelperOffset.html +10 -7
- package/docs/interfaces/ImagePlaneGroup.html +8 -5
- package/docs/interfaces/ItemLabelPluginData.html +8 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +13 -10
- package/docs/interfaces/ItemLabelPluginParametersType.html +11 -8
- package/docs/interfaces/MinMax.html +9 -6
- package/docs/interfaces/ModelChassisCompassPluginData.html +9 -6
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -7
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +9 -6
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -7
- package/docs/interfaces/ModelItemLabelPluginData.html +8 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +13 -10
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +9 -6
- package/docs/interfaces/ModelRoomLabelPluginData.html +8 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +11 -8
- package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -7
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +8 -5
- package/docs/interfaces/ModelViewPluginExportType.html +13 -10
- package/docs/interfaces/Object3DHelperState.html +10 -7
- package/docs/interfaces/ObjectHelperControllers.html +11 -8
- package/docs/interfaces/PaintBrushAction.html +14 -11
- package/docs/interfaces/PaintBrushConfigs.html +14 -11
- package/docs/interfaces/PaintBrushState.html +12 -9
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +12 -9
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -4
- package/docs/interfaces/PanoMeasureParameterType.html +18 -15
- package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -7
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +9 -6
- package/docs/interfaces/PanoMeasurePluginPointJson.html +9 -6
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +12 -9
- package/docs/interfaces/PanoRulerPluginOptions.html +9 -6
- package/docs/interfaces/PanoRulerPluginParameterType.html +10 -7
- package/docs/interfaces/PanoRulerProPluginExportType.html +11 -8
- package/docs/interfaces/PanoRulerProPluginOptions.html +9 -6
- package/docs/interfaces/PanoRulerProPluginParameterType.html +9 -6
- package/docs/interfaces/PanoRulerProPluginState.html +10 -7
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +13 -10
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +12 -9
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +15 -12
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +12 -9
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +15 -12
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +13 -10
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +12 -9
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +8 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -7
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +8 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +11 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +8 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -7
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +12 -9
- package/docs/interfaces/Point.html +10 -7
- package/docs/interfaces/Room.html +11 -8
- package/docs/interfaces/RoomInfo.html +9 -6
- package/docs/interfaces/RoomLabel.html +16 -13
- package/docs/interfaces/RoomRules.html +7 -4
- package/docs/interfaces/Rooms.html +7 -4
- package/docs/interfaces/Scissor.html +11 -8
- package/docs/interfaces/State.html +10 -7
- package/docs/interfaces/TagCacheInterface.html +14 -11
- package/docs/interfaces/TagConfig.html +15 -12
- package/docs/interfaces/TagGLTFObjectGroup.html +8 -5
- package/docs/interfaces/TagIconUrl.html +14 -11
- package/docs/interfaces/TagObjectGroup.html +8 -5
- package/docs/interfaces/TagStyle.html +8 -5
- package/docs/interfaces/Tags.html +11 -8
- package/docs/interfaces/TemporaryState.html +8 -5
- package/docs/interfaces/Util.MagnifierParameter.html +13 -10
- package/docs/interfaces/Util.MouseGroupParameter.html +10 -7
- package/docs/interfaces/Util.PointIntersection.html +10 -7
- package/docs/modules/CruisePluginTypes.html +7 -4
- package/docs/modules/GuideLineItem.html +7 -4
- package/docs/modules/GuideLineModeItem.html +7 -4
- package/docs/modules/GuideLinePluginType.html +7 -4
- package/docs/modules/PanoVideoPluginType.html +7 -4
- package/docs/modules/Util.html +7 -4
- package/docs/modules.html +10 -4
- package/docs/types/ArrayPosition.html +7 -4
- package/docs/types/AudioAppearance.html +7 -4
- package/docs/types/AudioTagTypeConfigKey.html +7 -4
- package/docs/types/CSS3DRenderExportType.html +7 -4
- package/docs/types/CSS3DRenderPluginExportType.html +7 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +7 -4
- package/docs/types/ClassFunctionParameters.html +7 -4
- package/docs/types/Color.html +7 -4
- package/docs/types/ContentTypeConfigKey.html +7 -4
- package/docs/types/ContentTypeConfigKeySplit.html +7 -4
- package/docs/types/ContentTypeMap.html +7 -4
- package/docs/types/Create3DDomContainerReturnType.html +7 -4
- package/docs/types/Create3DElementReturnType.html +7 -4
- package/docs/types/CruisePluginExportType.html +7 -4
- package/docs/types/CruisePluginTypes.CruiseData.html +7 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +7 -4
- package/docs/types/DeprecatedMediaPlaneProperty.html +7 -4
- package/docs/types/DeprecatedTagProperty.html +7 -4
- package/docs/types/Direction-1.html +7 -4
- package/docs/types/Direction4.html +7 -4
- package/docs/types/ElementRenderer.html +7 -4
- package/docs/types/FloorplanRuleLabels.html +7 -4
- package/docs/types/FloorplanServerRuleLabels.html +7 -4
- package/docs/types/GuideLinePluginExportType.html +7 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +7 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +7 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +7 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +7 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +7 -4
- package/docs/types/GuideLinePluginType.PathItem.html +7 -4
- package/docs/types/GuideLinePluginType.PluginData.html +7 -4
- package/docs/types/HelperEventMap.html +7 -4
- package/docs/types/LoadTagConfig.html +7 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +7 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +7 -4
- package/docs/types/MediaData.html +7 -4
- package/docs/types/MediaStore.html +7 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +7 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +7 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +7 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +7 -4
- package/docs/types/MoveArgs.html +7 -4
- package/docs/types/MoveOpts.html +7 -4
- package/docs/types/Object3DHelperEventMap.html +7 -4
- package/docs/types/ObjectFit.html +7 -4
- package/docs/types/PaintBrushEventMap.html +7 -4
- package/docs/types/PanoCompassPluginData.html +7 -4
- package/docs/types/PanoCompassPluginExportType.html +7 -4
- package/docs/types/PanoCompassPluginParameterType.html +7 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -4
- package/docs/types/PanoIndex.html +7 -4
- package/docs/types/PanoMeasurePluginEvent.html +7 -4
- package/docs/types/PanoMeasureReturnType.html +7 -4
- package/docs/types/PanoSpatialTagPluginId.html +7 -4
- package/docs/types/PanoTagPluginExportInterface.html +7 -4
- package/docs/types/PanoTagPluginParamsInterface.html +7 -4
- package/docs/types/PanoVideoPluginParameterType.html +7 -4
- package/docs/types/PanoVideoPluginReturnType.html +7 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +7 -4
- package/docs/types/PipelinePluginParameterType.html +271 -0
- package/docs/types/PipelinePluginReturnType.html +271 -0
- package/docs/types/PlaneTag.html +7 -4
- package/docs/types/Point2DTag.html +7 -4
- package/docs/types/Point3DTag.html +7 -4
- package/docs/types/PointTag.html +7 -4
- package/docs/types/PointTagInstance.html +7 -4
- package/docs/types/Position.html +7 -4
- package/docs/types/RotateArgs.html +7 -4
- package/docs/types/RotateOpts.html +7 -4
- package/docs/types/RuleLabelsKey.html +7 -4
- package/docs/types/RuleLabelsValue.html +7 -4
- package/docs/types/StickType.html +7 -4
- package/docs/types/Tag.html +7 -4
- package/docs/types/Tag2D.html +7 -4
- package/docs/types/Tag3D.html +7 -4
- package/docs/types/TagContentType.html +7 -4
- package/docs/types/TagDimensionType.html +7 -4
- package/docs/types/TagElement.html +7 -4
- package/docs/types/TagEvents.html +7 -4
- package/docs/types/TagGLTFObject.html +7 -4
- package/docs/types/TagHooks.html +7 -4
- package/docs/types/TagId.html +7 -4
- package/docs/types/TagInstance.html +7 -4
- package/docs/types/TagPointType.html +7 -4
- package/docs/types/TagRendererMap.html +7 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +7 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +7 -4
- package/docs/types/WorkCode.html +7 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +7 -4
- package/docs/variables/PLUGIN.html +7 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -4
- package/docs/variables/ROOM_TYPE_MAP.html +7 -4
- package/docs/variables/itemLabelPluginServerParams.html +7 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +7 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +7 -4
- package/libs/CruisePlugin/typing.d.ts +1 -1
- package/libs/GuideLinePlugin/typing.d.ts +1 -1
- package/libs/PanoCompassPlugin/typings.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Components/Controller0.js +2 -4
- package/libs/PanoMeasurePlugin/Components/Controller1.js +52 -54
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +2 -3
- package/libs/PanoMeasurePlugin/Controller/EditController.js +5 -7
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +14 -16
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +2 -3
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +41 -43
- package/libs/PanoMeasurePlugin/Controller/index.js +26 -30
- package/libs/PanoMeasurePlugin/Model/area.js +2 -3
- package/libs/PanoMeasurePlugin/Model/index.js +2 -3
- package/libs/PanoMeasurePlugin/Model/line.js +20 -20
- package/libs/PanoMeasurePlugin/Model/point.d.ts +0 -4
- package/libs/PanoMeasurePlugin/Model/point.js +12 -20
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Model/polyline.js +59 -51
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +22 -24
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +2 -3
- package/libs/PanoMeasurePlugin/index.js +13 -15
- package/libs/PanoVideoPlugin/VideoMeshController.js +1 -2
- package/libs/PipelinePlugin/Controller.d.ts +108 -0
- package/libs/PipelinePlugin/Controller.js +344 -0
- package/libs/PipelinePlugin/index.d.ts +6 -0
- package/libs/PipelinePlugin/index.js +39 -0
- package/libs/PipelinePlugin/typing/PluginData/index.js +6 -0
- package/libs/PipelinePlugin/typing/PluginData.d.ts +20 -0
- package/libs/PipelinePlugin/typing/PluginData.js +1 -0
- package/libs/PipelinePlugin/typing/ServerData/index.js +6 -0
- package/libs/PipelinePlugin/typing/ServerData.d.ts +28 -0
- package/libs/PipelinePlugin/typing/ServerData.js +1 -0
- package/libs/PipelinePlugin/typing/index.d.ts +79 -0
- package/libs/PipelinePlugin/typing/index.js +6 -0
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.d.ts +34 -0
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +106 -0
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.d.ts +11 -0
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +52 -0
- package/libs/PipelinePlugin/utils/Objects/Pipe.d.ts +49 -0
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +179 -0
- package/libs/PipelinePlugin/utils/formatData.d.ts +12 -0
- package/libs/PipelinePlugin/utils/formatData.js +46 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/base/BasePluginWithData.d.ts +3 -15
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +87 -88
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +75 -76
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +1 -1
- package/libs/floorplan/typings/index.d.ts +1 -1
- package/libs/index.d.ts +1 -0
- package/libs/index.js +117 -110
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/Extras/Core/Interpolations.d.ts +11 -0
- package/libs/shared-utils/three/Extras/Core/Interpolations.js +28 -0
- package/libs/shared-utils/three/Extras/Core/Interpolations2.js +34 -0
- package/libs/shared-utils/three/Extras/Curves/BezierCurve3.d.ts +13 -0
- package/libs/shared-utils/three/Extras/Curves/BezierCurve3.js +30 -0
- package/package.json +1 -1
- package/dist/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +0 -2
- package/dist/shared-utils/removeArrayItem.d.ts +0 -7
- package/libs/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +0 -2
- package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +0 -13
- package/libs/shared-utils/removeArrayItem.d.ts +0 -7
- package/libs/shared-utils/removeArrayItem.js +0 -8
|
@@ -49,7 +49,7 @@ export interface EventMap extends BasePlugin.EventMap<State, PluginData> {
|
|
|
49
49
|
userAction: boolean;
|
|
50
50
|
}) => void;
|
|
51
51
|
}
|
|
52
|
-
export interface PluginServerData
|
|
52
|
+
export interface PluginServerData {
|
|
53
53
|
version: number;
|
|
54
54
|
data: PluginData;
|
|
55
55
|
}
|
|
@@ -15,7 +15,6 @@ import "../utils/dom/base.js";
|
|
|
15
15
|
import "../utils/isNDCPointInScreen.js";
|
|
16
16
|
import "../../shared-utils/three/centerPoint.js";
|
|
17
17
|
import "../Model/point.js";
|
|
18
|
-
import "../../shared-utils/removeArrayItem.js";
|
|
19
18
|
import "../../shared-utils/throttle.js";
|
|
20
19
|
import "../Controller/BaseController.js";
|
|
21
20
|
import "../utils/ironbox.js";
|
|
@@ -65,7 +64,6 @@ import "../Modules/DeleteDom/index.js";
|
|
|
65
64
|
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
66
65
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
67
66
|
import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
68
|
-
import "../utils/findAssociatedLines.js";
|
|
69
67
|
import "../utils/math.js";
|
|
70
68
|
function oe(n) {
|
|
71
69
|
F(n, "svelte-468fdd", '*.forbid.svelte-468fdd.svelte-468fdd{pointer-events:none !important;opacity:0.5}.Measure-Controller.svelte-468fdd.svelte-468fdd{pointer-events:none;position:relative;width:100%;height:100%;z-index:2}.Measure-Controller.svelte-468fdd .mode-switcher.svelte-468fdd{margin-top:2.25rem}.Measure-Controller.svelte-468fdd .bottom.svelte-468fdd{position:absolute;width:100%;bottom:0}.Measure-Controller.svelte-468fdd .bottom .mask.svelte-468fdd{position:absolute;bottom:0;width:100%;height:11.5rem;background-size:100%;background-image:linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3))}.Measure-Controller.svelte-468fdd .bottom .center.svelte-468fdd{display:flex;flex-direction:column;align-items:center;margin-bottom:2.5rem}.Measure-Controller.svelte-468fdd .buttons.svelte-468fdd{pointer-events:all;display:flex;align-items:center;height:2.5rem;background:rgba(0, 0, 0, 0.2);color:rgba(255, 255, 255, 0.85);width:-moz-max-content;width:max-content;border-radius:624.9375rem;overflow:hidden}.Measure-Controller.svelte-468fdd .buttons .button.svelte-468fdd{cursor:pointer;display:flex;align-items:center;position:relative;font-size:0.875rem;padding:0rem 1rem}.Measure-Controller.svelte-468fdd .buttons .button .icon.svelte-468fdd{width:1.5rem;height:1.5rem;background-repeat:no-repeat;background-size:100%;margin-right:0.25rem}.Measure-Controller.svelte-468fdd .buttons .button.svelte-468fdd::after{content:"";position:absolute;display:block;right:-0.03125rem;height:1.5rem;width:0.0625rem;background-image:linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);background-size:100%;background-repeat:no-repeat;background-position:center}.Measure-Controller.svelte-468fdd .buttons .button.svelte-468fdd:last-child::after{display:none}');
|
|
@@ -276,7 +274,7 @@ function re(n, o, i) {
|
|
|
276
274
|
u
|
|
277
275
|
];
|
|
278
276
|
}
|
|
279
|
-
class
|
|
277
|
+
class bt extends j {
|
|
280
278
|
constructor(o) {
|
|
281
279
|
super(), x(
|
|
282
280
|
this,
|
|
@@ -294,5 +292,5 @@ class _t extends j {
|
|
|
294
292
|
}
|
|
295
293
|
}
|
|
296
294
|
export {
|
|
297
|
-
|
|
295
|
+
bt as default
|
|
298
296
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as ee, init as te, safe_not_equal as oe, append_styles as re, element as j, space as T, create_component as q, attr as w, toggle_class as D, insert as I, append as g, mount_component as O, transition_in as k, transition_out as _, check_outros as R, detach as K, destroy_component as U, onMount as
|
|
1
|
+
import { SvelteComponent as ee, init as te, safe_not_equal as oe, append_styles as re, element as j, space as T, create_component as q, attr as w, toggle_class as D, insert as I, append as g, mount_component as O, transition_in as k, transition_out as _, check_outros as R, detach as K, destroy_component as U, onMount as le, onDestroy as ie, add_render_callback as F, create_bidirectional_transition as E, text as V, set_style as W, listen as X, set_data as Y, group_outros as B } from "../../vendor/svelte/internal/index.js";
|
|
2
2
|
import ne from "./Common/Switcher1.js";
|
|
3
3
|
import se from "./Common/CircleButton.js";
|
|
4
4
|
import H from "../Controller/EditController.js";
|
|
@@ -19,7 +19,6 @@ import "../utils/dom/base.js";
|
|
|
19
19
|
import "../utils/isNDCPointInScreen.js";
|
|
20
20
|
import "../../shared-utils/three/centerPoint.js";
|
|
21
21
|
import "../Model/point.js";
|
|
22
|
-
import "../../shared-utils/removeArrayItem.js";
|
|
23
22
|
import "../../shared-utils/throttle.js";
|
|
24
23
|
import "../Controller/BaseController.js";
|
|
25
24
|
import "../utils/ironbox.js";
|
|
@@ -69,13 +68,12 @@ import "../Modules/DeleteDom/index.js";
|
|
|
69
68
|
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
70
69
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
71
70
|
import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
72
|
-
import "../utils/findAssociatedLines.js";
|
|
73
71
|
import "../utils/math.js";
|
|
74
72
|
function fe(o) {
|
|
75
73
|
re(o, "svelte-ldjbp8", "*.forbid.svelte-ldjbp8.svelte-ldjbp8{pointer-events:none !important;opacity:0.5}.Measure-Controller.svelte-ldjbp8.svelte-ldjbp8{pointer-events:none;position:relative;width:100%;height:100%;z-index:2;color:white}.Measure-Controller.svelte-ldjbp8 .mode-switcher.svelte-ldjbp8{margin-top:2.25rem}.Measure-Controller.svelte-ldjbp8 .bottom.svelte-ldjbp8{position:absolute;width:100%;bottom:0}.Measure-Controller.svelte-ldjbp8 .bottom .mask.svelte-ldjbp8{position:absolute;bottom:0;width:100%;height:12.5rem;background-size:100%;z-index:-1;background-image:linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5))}.Measure-Controller.svelte-ldjbp8 .bottom .center.svelte-ldjbp8{display:flex;flex-direction:column;align-items:center;margin-bottom:2.5rem}.Measure-Controller.svelte-ldjbp8 .controller.svelte-ldjbp8{pointer-events:all;display:flex;align-items:center}.Measure-Controller.svelte-ldjbp8 .controller .button.svelte-ldjbp8{cursor:pointer;display:flex;align-items:center;height:2.5rem;padding-left:1rem;padding-right:1rem;border-radius:624.9375rem;font-size:0.875rem;color:#fff;background-color:rgba(0, 0, 0, 0.2)}.Measure-Controller.svelte-ldjbp8 .controller .button .icon.svelte-ldjbp8{width:1.5rem;height:1.5rem;background-repeat:no-repeat;background-size:100%;margin:0 0.25rem}.Measure-Controller.svelte-ldjbp8 .controller .main-button.svelte-ldjbp8{margin-left:1.75rem;margin-right:1.75rem;font-size:0.875rem;font-weight:bold}");
|
|
76
74
|
}
|
|
77
75
|
function J(o) {
|
|
78
|
-
let t,
|
|
76
|
+
let t, l;
|
|
79
77
|
return t = new ae({
|
|
80
78
|
props: {
|
|
81
79
|
onClick: (
|
|
@@ -88,19 +86,19 @@ function J(o) {
|
|
|
88
86
|
q(t.$$.fragment);
|
|
89
87
|
},
|
|
90
88
|
m(e, a) {
|
|
91
|
-
O(t, e, a),
|
|
89
|
+
O(t, e, a), l = !0;
|
|
92
90
|
},
|
|
93
91
|
p(e, a) {
|
|
94
|
-
const
|
|
92
|
+
const i = {};
|
|
95
93
|
a & /*measureController*/
|
|
96
|
-
1 && (
|
|
97
|
-
e[0].disable), t.$set(
|
|
94
|
+
1 && (i.onClick = /*measureController*/
|
|
95
|
+
e[0].disable), t.$set(i);
|
|
98
96
|
},
|
|
99
97
|
i(e) {
|
|
100
|
-
|
|
98
|
+
l || (k(t.$$.fragment, e), l = !0);
|
|
101
99
|
},
|
|
102
100
|
o(e) {
|
|
103
|
-
_(t.$$.fragment, e),
|
|
101
|
+
_(t.$$.fragment, e), l = !1;
|
|
104
102
|
},
|
|
105
103
|
d(e) {
|
|
106
104
|
U(t, e);
|
|
@@ -108,8 +106,8 @@ function J(o) {
|
|
|
108
106
|
};
|
|
109
107
|
}
|
|
110
108
|
function L(o) {
|
|
111
|
-
let t,
|
|
112
|
-
return
|
|
109
|
+
let t, l, e, a;
|
|
110
|
+
return l = new ne({
|
|
113
111
|
props: {
|
|
114
112
|
options: [
|
|
115
113
|
{
|
|
@@ -138,13 +136,13 @@ function L(o) {
|
|
|
138
136
|
}
|
|
139
137
|
}), {
|
|
140
138
|
c() {
|
|
141
|
-
t = j("div"), q(
|
|
139
|
+
t = j("div"), q(l.$$.fragment), w(t, "class", "mode-switcher svelte-ldjbp8");
|
|
142
140
|
},
|
|
143
|
-
m(
|
|
144
|
-
I(
|
|
141
|
+
m(i, n) {
|
|
142
|
+
I(i, t, n), O(l, t, null), a = !0;
|
|
145
143
|
},
|
|
146
|
-
p(
|
|
147
|
-
o =
|
|
144
|
+
p(i, n) {
|
|
145
|
+
o = i;
|
|
148
146
|
const m = {};
|
|
149
147
|
n & /*i18n*/
|
|
150
148
|
4 && (m.options = [
|
|
@@ -166,29 +164,29 @@ function L(o) {
|
|
|
166
164
|
1 && (m.defaultKey = /*measureController*/
|
|
167
165
|
o[0].currentMeasureType), n & /*measureController*/
|
|
168
166
|
1 && (m.onChange = /*measureController*/
|
|
169
|
-
o[0].changeMeasureType),
|
|
167
|
+
o[0].changeMeasureType), l.$set(m);
|
|
170
168
|
},
|
|
171
|
-
i(
|
|
172
|
-
a || (k(
|
|
169
|
+
i(i) {
|
|
170
|
+
a || (k(l.$$.fragment, i), i && F(() => {
|
|
173
171
|
a && (e || (e = E(t, S, { duration: P }, !0)), e.run(1));
|
|
174
172
|
}), a = !0);
|
|
175
173
|
},
|
|
176
|
-
o(
|
|
177
|
-
_(
|
|
174
|
+
o(i) {
|
|
175
|
+
_(l.$$.fragment, i), i && (e || (e = E(t, S, { duration: P }, !1)), e.run(0)), a = !1;
|
|
178
176
|
},
|
|
179
|
-
d(
|
|
180
|
-
|
|
177
|
+
d(i) {
|
|
178
|
+
i && K(t), U(l), i && e && e.end();
|
|
181
179
|
}
|
|
182
180
|
};
|
|
183
181
|
}
|
|
184
182
|
function N(o) {
|
|
185
|
-
let t,
|
|
183
|
+
let t, l, e, a = (
|
|
186
184
|
/*i18n*/
|
|
187
185
|
o[2]("撤销") + ""
|
|
188
|
-
),
|
|
186
|
+
), i, n, m, f, C;
|
|
189
187
|
return {
|
|
190
188
|
c() {
|
|
191
|
-
t = j("div"),
|
|
189
|
+
t = j("div"), l = j("div"), e = T(), i = V(a), w(l, "class", "icon svelte-ldjbp8"), W(l, "background-image", `url(${me})`), w(t, "class", "button svelte-ldjbp8"), D(
|
|
192
190
|
t,
|
|
193
191
|
"forbid",
|
|
194
192
|
/*buttonState*/
|
|
@@ -196,7 +194,7 @@ function N(o) {
|
|
|
196
194
|
);
|
|
197
195
|
},
|
|
198
196
|
m(r, c) {
|
|
199
|
-
I(r, t, c), g(t,
|
|
197
|
+
I(r, t, c), g(t, l), g(t, e), g(t, i), m = !0, f || (C = X(
|
|
200
198
|
t,
|
|
201
199
|
"click",
|
|
202
200
|
/*click_handler*/
|
|
@@ -206,7 +204,7 @@ function N(o) {
|
|
|
206
204
|
p(r, c) {
|
|
207
205
|
o = r, (!m || c & /*i18n*/
|
|
208
206
|
4) && a !== (a = /*i18n*/
|
|
209
|
-
o[2]("撤销") + "") && Y(
|
|
207
|
+
o[2]("撤销") + "") && Y(i, a), (!m || c & /*buttonState*/
|
|
210
208
|
8) && D(
|
|
211
209
|
t,
|
|
212
210
|
"forbid",
|
|
@@ -228,16 +226,16 @@ function N(o) {
|
|
|
228
226
|
};
|
|
229
227
|
}
|
|
230
228
|
function Q(o) {
|
|
231
|
-
let t,
|
|
229
|
+
let t, l, e, a = (
|
|
232
230
|
/*i18n*/
|
|
233
231
|
o[2]("结束") + ""
|
|
234
|
-
),
|
|
232
|
+
), i, n, m, f, C;
|
|
235
233
|
return {
|
|
236
234
|
c() {
|
|
237
|
-
t = j("div"),
|
|
235
|
+
t = j("div"), l = j("div"), e = T(), i = V(a), w(l, "class", "icon svelte-ldjbp8"), W(l, "background-image", `url(${pe})`), w(t, "class", "button svelte-ldjbp8");
|
|
238
236
|
},
|
|
239
237
|
m(r, c) {
|
|
240
|
-
I(r, t, c), g(t,
|
|
238
|
+
I(r, t, c), g(t, l), g(t, e), g(t, i), m = !0, f || (C = X(
|
|
241
239
|
t,
|
|
242
240
|
"click",
|
|
243
241
|
/*complete*/
|
|
@@ -247,7 +245,7 @@ function Q(o) {
|
|
|
247
245
|
p(r, c) {
|
|
248
246
|
o = r, (!m || c & /*i18n*/
|
|
249
247
|
4) && a !== (a = /*i18n*/
|
|
250
|
-
o[2]("结束") + "") && Y(
|
|
248
|
+
o[2]("结束") + "") && Y(i, a);
|
|
251
249
|
},
|
|
252
250
|
i(r) {
|
|
253
251
|
m || (r && F(() => {
|
|
@@ -263,7 +261,7 @@ function Q(o) {
|
|
|
263
261
|
};
|
|
264
262
|
}
|
|
265
263
|
function ue(o) {
|
|
266
|
-
let t,
|
|
264
|
+
let t, l, e, a, i, n, m, f, C, r, c, z, M, b = (
|
|
267
265
|
/*showExit*/
|
|
268
266
|
o[1] && J(o)
|
|
269
267
|
), p = (
|
|
@@ -302,16 +300,16 @@ function ue(o) {
|
|
|
302
300
|
);
|
|
303
301
|
return {
|
|
304
302
|
c() {
|
|
305
|
-
t = j("div"), b && b.c(),
|
|
303
|
+
t = j("div"), b && b.c(), l = T(), e = j("div"), a = j("div"), i = T(), n = j("div"), p && p.c(), m = T(), f = j("div"), u && u.c(), C = T(), r = j("div"), q(c.$$.fragment), z = T(), d && d.c(), w(a, "class", "mask svelte-ldjbp8"), w(r, "class", "main-button svelte-ldjbp8"), D(r, "forbid", !/*allowAddPoint*/
|
|
306
304
|
o[5]), w(f, "class", "controller svelte-ldjbp8"), w(n, "class", "center svelte-ldjbp8"), w(e, "class", "bottom svelte-ldjbp8"), w(t, "class", "Measure-Controller svelte-ldjbp8");
|
|
307
305
|
},
|
|
308
306
|
m(s, v) {
|
|
309
|
-
I(s, t, v), b && b.m(t, null), g(t,
|
|
307
|
+
I(s, t, v), b && b.m(t, null), g(t, l), g(t, e), g(e, a), g(e, i), g(e, n), p && p.m(n, null), g(n, m), g(n, f), u && u.m(f, null), g(f, C), g(f, r), O(c, r, null), g(f, z), d && d.m(f, null), M = !0;
|
|
310
308
|
},
|
|
311
309
|
p(s, [v]) {
|
|
312
310
|
/*showExit*/
|
|
313
311
|
s[1] ? b ? (b.p(s, v), v & /*showExit*/
|
|
314
|
-
2 && k(b, 1)) : (b = J(s), b.c(), k(b, 1), b.m(t,
|
|
312
|
+
2 && k(b, 1)) : (b = J(s), b.c(), k(b, 1), b.m(t, l)) : b && (B(), _(b, 1, 1, () => {
|
|
315
313
|
b = null;
|
|
316
314
|
}), R()), /*measureController*/
|
|
317
315
|
s[0].allowMeasureType.length >= 2 && /*buttonState*/
|
|
@@ -356,13 +354,13 @@ function ue(o) {
|
|
|
356
354
|
};
|
|
357
355
|
}
|
|
358
356
|
const P = 100;
|
|
359
|
-
function de(o, t,
|
|
360
|
-
let { measureController: e } = t, { showExit: a = !1 } = t, { i18n:
|
|
357
|
+
function de(o, t, l) {
|
|
358
|
+
let { measureController: e } = t, { showExit: a = !1 } = t, { i18n: i = (h) => h } = t;
|
|
361
359
|
const n = {
|
|
362
|
-
start:
|
|
363
|
-
add:
|
|
364
|
-
end:
|
|
365
|
-
complete:
|
|
360
|
+
start: i("开始"),
|
|
361
|
+
add: i("添加"),
|
|
362
|
+
end: i("结束"),
|
|
363
|
+
complete: i("完成")
|
|
366
364
|
}, m = {
|
|
367
365
|
start: "white",
|
|
368
366
|
add: "white",
|
|
@@ -377,7 +375,7 @@ function de(o, t, i) {
|
|
|
377
375
|
}, b = () => {
|
|
378
376
|
e.controller instanceof H && e.controller.complete();
|
|
379
377
|
}, p = (h) => {
|
|
380
|
-
|
|
378
|
+
l(3, r = h);
|
|
381
379
|
}, u = () => {
|
|
382
380
|
M(), A("allow");
|
|
383
381
|
}, d = () => {
|
|
@@ -389,29 +387,29 @@ function de(o, t, i) {
|
|
|
389
387
|
}, y = () => {
|
|
390
388
|
p("start"), A("allow");
|
|
391
389
|
}, A = (h) => {
|
|
392
|
-
|
|
390
|
+
l(5, C = h === "allow");
|
|
393
391
|
}, G = (h) => {
|
|
394
|
-
|
|
392
|
+
l(12, c = h);
|
|
395
393
|
}, Z = (h) => {
|
|
396
394
|
h.isEmpty && p("start");
|
|
397
395
|
};
|
|
398
|
-
|
|
396
|
+
le(() => {
|
|
399
397
|
e.hook.on("revoke", Z), e.hook.on("measureTypeChange", G), e.hook.on("modeChange", y), e.hook.on("pointsChange", v), e.hook.on("allowAddPointStateChange", A), e.hook.on("readyComplete", d), e.hook.on("notReadyComplete", s), e.hook.on("complete", y);
|
|
400
|
-
}),
|
|
398
|
+
}), ie(() => {
|
|
401
399
|
e.hook.off("measureTypeChange", G), e.hook.off("modeChange", y), e.hook.off("allowAddPointStateChange", A), e.hook.off("readyComplete", d), e.hook.off("pointsChange", v), e.hook.off("notReadyComplete", s), e.hook.off("complete", y);
|
|
402
400
|
});
|
|
403
401
|
const $ = () => e.revoke(), x = () => {
|
|
404
402
|
r === "start" ? z() : r === "add" ? M() : (r === "end" || r === "complete") && u();
|
|
405
403
|
};
|
|
406
404
|
return o.$$set = (h) => {
|
|
407
|
-
"measureController" in h &&
|
|
405
|
+
"measureController" in h && l(0, e = h.measureController), "showExit" in h && l(1, a = h.showExit), "i18n" in h && l(2, i = h.i18n);
|
|
408
406
|
}, o.$$.update = () => {
|
|
409
407
|
o.$$.dirty & /*currentMeasureType, buttonState*/
|
|
410
|
-
4104 &&
|
|
408
|
+
4104 && l(4, f = c === "area" && r !== "start");
|
|
411
409
|
}, [
|
|
412
410
|
e,
|
|
413
411
|
a,
|
|
414
|
-
|
|
412
|
+
i,
|
|
415
413
|
r,
|
|
416
414
|
f,
|
|
417
415
|
C,
|
|
@@ -426,7 +424,7 @@ function de(o, t, i) {
|
|
|
426
424
|
x
|
|
427
425
|
];
|
|
428
426
|
}
|
|
429
|
-
class
|
|
427
|
+
class At extends ee {
|
|
430
428
|
constructor(t) {
|
|
431
429
|
super(), te(
|
|
432
430
|
this,
|
|
@@ -444,5 +442,5 @@ class Bt extends ee {
|
|
|
444
442
|
}
|
|
445
443
|
}
|
|
446
444
|
export {
|
|
447
|
-
|
|
445
|
+
At as default
|
|
448
446
|
};
|
|
@@ -14,8 +14,7 @@ import "../utils/dom/distanceItem.js";
|
|
|
14
14
|
import "../utils/dom/base.js";
|
|
15
15
|
import "../utils/isNDCPointInScreen.js";
|
|
16
16
|
import "../../shared-utils/three/centerPoint.js";
|
|
17
|
-
|
|
18
|
-
class k {
|
|
17
|
+
class C {
|
|
19
18
|
constructor(e) {
|
|
20
19
|
t(this, "model");
|
|
21
20
|
t(this, "five");
|
|
@@ -72,5 +71,5 @@ class k {
|
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
73
|
export {
|
|
75
|
-
|
|
74
|
+
C as default
|
|
76
75
|
};
|
|
@@ -10,10 +10,9 @@ import w from "../Model/area.js";
|
|
|
10
10
|
import D from "../utils/isIntersecting.js";
|
|
11
11
|
import { PointSelector as x } from "../../shared-utils/three/PointSelector.js";
|
|
12
12
|
import G from "../Modules/DeleteDom/index.js";
|
|
13
|
-
import { findAssociatedLines as B } from "../utils/findAssociatedLines.js";
|
|
14
13
|
import { Vector2 as y } from "three";
|
|
15
14
|
import T from "../utils/isNDCPointInScreen.js";
|
|
16
|
-
import { closestPointOnLine as
|
|
15
|
+
import { closestPointOnLine as B } from "../utils/math.js";
|
|
17
16
|
import "../../shared-utils/uuid.js";
|
|
18
17
|
import "../utils/line.js";
|
|
19
18
|
import "@realsee/five/line";
|
|
@@ -22,7 +21,6 @@ import "@realsee/five";
|
|
|
22
21
|
import "../utils/dom/distanceItem.js";
|
|
23
22
|
import "../utils/dom/base.js";
|
|
24
23
|
import "../../shared-utils/three/centerPoint.js";
|
|
25
|
-
import "../../shared-utils/removeArrayItem.js";
|
|
26
24
|
import "../utils/ironbox.js";
|
|
27
25
|
import "../Model/polygon.js";
|
|
28
26
|
import "../../shared-utils/three/IObject3D.js";
|
|
@@ -66,7 +64,7 @@ import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
|
66
64
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
67
65
|
import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
68
66
|
const M = () => !1;
|
|
69
|
-
class
|
|
67
|
+
class Ke extends j {
|
|
70
68
|
constructor(e) {
|
|
71
69
|
var t;
|
|
72
70
|
super(e);
|
|
@@ -238,7 +236,7 @@ class Ye extends j {
|
|
|
238
236
|
if (g.length === 0)
|
|
239
237
|
return;
|
|
240
238
|
const P = g.map((h) => {
|
|
241
|
-
const p =
|
|
239
|
+
const p = B(n, h.points);
|
|
242
240
|
return { id: h.id, distance: p.distanceTo(n) };
|
|
243
241
|
}).sort((h, p) => h.distance - p.distance)[0];
|
|
244
242
|
if (P.distance > 20)
|
|
@@ -248,7 +246,7 @@ class Ye extends j {
|
|
|
248
246
|
return this.chooseLine(L), !1;
|
|
249
247
|
});
|
|
250
248
|
o(this, "chooseLine", (e) => {
|
|
251
|
-
const t =
|
|
249
|
+
const t = e.getPolyline().lines;
|
|
252
250
|
this.deleteDom.setTarget(t).setLines(t).updatePosition().show(), this.highlightLines(t), this.hook.emit("selectedChange", t);
|
|
253
251
|
});
|
|
254
252
|
o(this, "chooseArea", (e, t) => {
|
|
@@ -326,5 +324,5 @@ class Ye extends j {
|
|
|
326
324
|
}
|
|
327
325
|
}
|
|
328
326
|
export {
|
|
329
|
-
|
|
327
|
+
Ke as default
|
|
330
328
|
};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
var b = Object.defineProperty;
|
|
2
2
|
var S = (n, s, e) => s in n ? b(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e;
|
|
3
3
|
var t = (n, s, e) => (S(n, typeof s != "symbol" ? s + "" : s, e), e);
|
|
4
|
-
import { Model as
|
|
5
|
-
import
|
|
4
|
+
import { Model as y } from "../Model/index.js";
|
|
5
|
+
import D from "../Model/line.js";
|
|
6
6
|
import T from "./BaseController.js";
|
|
7
7
|
import M from "../Modules/DeleteDom/index.js";
|
|
8
|
-
import { findAssociatedLines as G } from "../utils/findAssociatedLines.js";
|
|
9
8
|
import { Vector2 as m } from "three";
|
|
10
9
|
import v from "../utils/isNDCPointInScreen.js";
|
|
11
|
-
import { closestPointOnLine as
|
|
10
|
+
import { closestPointOnLine as G } from "../utils/math.js";
|
|
12
11
|
import { Polyline as L } from "../Model/polyline.js";
|
|
13
|
-
import
|
|
12
|
+
import W from "../Modules/rangePiece/index.js";
|
|
14
13
|
import "@realsee/five";
|
|
15
14
|
import "../../shared-utils/uuid.js";
|
|
16
15
|
import "../utils/line.js";
|
|
@@ -20,7 +19,6 @@ import "../utils/dom/distanceItem.js";
|
|
|
20
19
|
import "../utils/dom/base.js";
|
|
21
20
|
import "../../shared-utils/three/centerPoint.js";
|
|
22
21
|
import "../Model/point.js";
|
|
23
|
-
import "../../shared-utils/removeArrayItem.js";
|
|
24
22
|
import "../utils/ironbox.js";
|
|
25
23
|
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
26
24
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -31,7 +29,7 @@ import "../../shared-utils/animationFrame/index.js";
|
|
|
31
29
|
import "../../shared-utils/noop.js";
|
|
32
30
|
import "../utils/calculateThreeMouse.js";
|
|
33
31
|
import "../utils/mouseGroup.js";
|
|
34
|
-
class
|
|
32
|
+
class re extends T {
|
|
35
33
|
constructor(e) {
|
|
36
34
|
super(e);
|
|
37
35
|
t(this, "state", "watching");
|
|
@@ -49,18 +47,18 @@ class de extends T {
|
|
|
49
47
|
const [i] = this.five.model.intersectRaycaster(e);
|
|
50
48
|
if (!i)
|
|
51
49
|
return;
|
|
52
|
-
const h = this.five.camera, p = i.point.clone().project(h), a = this.container.clientWidth, l = this.container.clientHeight,
|
|
50
|
+
const h = this.five.camera, p = i.point.clone().project(h), a = this.container.clientWidth, l = this.container.clientHeight, g = new m(p.x * a, p.y * l), f = this.model.getAllLines().map((o) => {
|
|
53
51
|
const [r, C] = o.points, d = r.position.clone().project(h), c = C.position.clone().project(h);
|
|
54
52
|
if (!v(d) && !v(c))
|
|
55
53
|
return null;
|
|
56
54
|
const w = new m(d.x * a, d.y * l), k = new m(c.x * a, c.y * l);
|
|
57
55
|
return { id: o.id, points: [w, k] };
|
|
58
56
|
}).filter((o) => !!o);
|
|
59
|
-
if (
|
|
57
|
+
if (f.length === 0)
|
|
60
58
|
return;
|
|
61
|
-
const u =
|
|
62
|
-
const r =
|
|
63
|
-
return { id: o.id, distance: r.distanceTo(
|
|
59
|
+
const u = f.map((o) => {
|
|
60
|
+
const r = G(g, o.points);
|
|
61
|
+
return { id: o.id, distance: r.distanceTo(g) };
|
|
64
62
|
}).sort((o, r) => o.distance - r.distance)[0];
|
|
65
63
|
if (u.distance > 20)
|
|
66
64
|
return;
|
|
@@ -88,7 +86,7 @@ class de extends T {
|
|
|
88
86
|
t(this, "onGetEndPoint", () => {
|
|
89
87
|
const e = this.mobileNowPoint;
|
|
90
88
|
if (this.removeLine(this.dashed), this.hasAppendDashed = !1, this.mobileStartPoint && e) {
|
|
91
|
-
const i = new
|
|
89
|
+
const i = new D(this.mobileStartPoint, e, this.model);
|
|
92
90
|
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);
|
|
93
91
|
}
|
|
94
92
|
this.mobileStartPoint = null, this.mobileNowPoint = null, this.five.needsRender = !0;
|
|
@@ -104,7 +102,7 @@ class de extends T {
|
|
|
104
102
|
this.state = i, this.state === "watching" ? this.five.helperVisible = !0 : this.five.helperVisible = !1;
|
|
105
103
|
});
|
|
106
104
|
t(this, "chooseLine", (e) => {
|
|
107
|
-
const i =
|
|
105
|
+
const i = e.getPolyline().lines;
|
|
108
106
|
this.highlightLines(i), this.five.needsRender = !0, this.hook.emit(
|
|
109
107
|
"selectedChange",
|
|
110
108
|
i.map((h) => h)
|
|
@@ -120,7 +118,7 @@ class de extends T {
|
|
|
120
118
|
t(this, "cancelDeleteClickCallback", () => {
|
|
121
119
|
this.clearHighlightLines();
|
|
122
120
|
});
|
|
123
|
-
this.model = new
|
|
121
|
+
this.model = new y(this.config), this.polyline = new L({ model: this.model }), this.rangePieceController = new W(e), this.deleteDom = new M(this.five, {
|
|
124
122
|
i18n: this.config.i18n,
|
|
125
123
|
onClick: this.deleteDomClickCallback,
|
|
126
124
|
cancel: this.cancelDeleteClickCallback
|
|
@@ -145,5 +143,5 @@ class de extends T {
|
|
|
145
143
|
}
|
|
146
144
|
}
|
|
147
145
|
export {
|
|
148
|
-
|
|
146
|
+
re as default
|
|
149
147
|
};
|
|
@@ -15,9 +15,8 @@ import "../utils/dom/base.js";
|
|
|
15
15
|
import "../utils/isNDCPointInScreen.js";
|
|
16
16
|
import "../../shared-utils/three/centerPoint.js";
|
|
17
17
|
import "../Model/point.js";
|
|
18
|
-
import "../../shared-utils/removeArrayItem.js";
|
|
19
18
|
import "../utils/ironbox.js";
|
|
20
|
-
class
|
|
19
|
+
class F extends h {
|
|
21
20
|
constructor(e) {
|
|
22
21
|
super(e);
|
|
23
22
|
s(this, "type", "view");
|
|
@@ -67,5 +66,5 @@ class R extends h {
|
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
68
|
export {
|
|
70
|
-
|
|
69
|
+
F as default
|
|
71
70
|
};
|