@realsee/dnalogel 3.35.0-dev.0 → 3.35.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/CHANGELOG.md +13 -0
- package/dist/ModelMakerPlugin/Controller.d.ts +1 -1
- package/dist/ModelMakerPlugin/item/baseItem.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/ViewController.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +2 -1
- package/dist/PanoMeasurePlugin/typings/data.d.ts +3 -0
- package/dist/PanoVideoPlugin/Controller.d.ts +3 -1
- package/dist/PanoVideoPlugin/typings.d.ts +2 -2
- package/dist/index.cjs.js +21 -21
- package/dist/index.js +111 -100
- package/dist/index.umd.js +23 -23
- package/dist/shared-utils/tag.d.ts +4 -4
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +44 -34
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +44 -34
- package/docs/classes/CSS3DRender.html +43 -33
- package/docs/classes/GuideLineItem.GuideLineItem.html +31 -21
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +55 -45
- package/docs/classes/{Magnifier.html → ModelMakerPluginInstance.html} +203 -111
- package/docs/classes/ModelRoomLabelController.html +23 -13
- package/docs/classes/MoveController.html +43 -33
- package/docs/classes/Object3DHelperController.html +39 -47
- package/docs/classes/PaintBrush.html +27 -17
- package/docs/classes/PanoMeasurePluginLine.html +56 -36
- package/docs/classes/PanoMeasurePluginModel.html +42 -32
- package/docs/classes/PanoMeasurePluginPoint.html +23 -13
- package/docs/classes/PanoMeasurePluginPolyline.html +61 -34
- package/docs/classes/PanoTagPluginController.html +234 -126
- package/docs/classes/Sculpt.html +852 -0
- package/docs/classes/Util.BetterTween.html +27 -13
- package/docs/classes/Util.Interval.html +29 -15
- package/docs/classes/Util.LineSegments.html +25 -11
- package/docs/classes/Util.Magnifier.html +93 -60
- package/docs/classes/Util.Object3D.html +26 -12
- package/docs/classes/Util.PointDomHelper.html +28 -14
- package/docs/classes/Util.PointHelper.html +28 -14
- package/docs/classes/Util.PointSelectorHelper.html +34 -20
- package/docs/classes/Util.Rectangle.html +30 -16
- package/docs/classes/WalkController.html +39 -29
- package/docs/enums/CameraMovementEffect.html +19 -9
- package/docs/enums/ContentType.html +33 -23
- package/docs/enums/DIRECTION.html +21 -11
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +21 -11
- package/docs/enums/DimensionType.html +19 -9
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +20 -10
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +21 -11
- package/docs/enums/PaintBrushTypeEnum.html +20 -10
- package/docs/enums/PointType.html +19 -9
- package/docs/enums/Rotation.html +20 -10
- package/docs/functions/AreaMakerPlugin.html +17 -7
- package/docs/functions/CSS3DRenderPlugin.html +17 -7
- package/docs/functions/CameraMovementPlugin.html +17 -7
- package/docs/functions/CruisePlugin.html +17 -7
- package/docs/functions/CurrentPanoImagePlugin.html +17 -7
- package/docs/functions/GuideLinePlugin.html +17 -7
- package/docs/functions/ItemLabelPlugin.html +17 -7
- package/docs/functions/MapviewFloorplanPlugin.html +17 -7
- package/docs/functions/ModelChassisCompassPlugin.html +17 -7
- package/docs/functions/ModelEntryDoorGuidePlugin.html +17 -7
- package/docs/functions/ModelFloorplanPlugin.html +17 -7
- package/docs/functions/ModelItemLabelPlugin.html +17 -7
- package/docs/functions/ModelMakerPlugin.html +303 -0
- package/docs/functions/ModelRoomLabelPlugin.html +17 -7
- package/docs/functions/ModelTVVideoPlugin.html +17 -7
- package/docs/functions/ModelViewPlugin.html +17 -7
- package/docs/functions/MovePlugin.html +18 -8
- package/docs/functions/Object3DHelperPlugin.html +17 -7
- package/docs/functions/PanoCompassPlugin.html +17 -7
- package/docs/functions/PanoCursorRaycasterPlugin.html +17 -7
- package/docs/functions/PanoDoorLabelPlugin.html +17 -7
- package/docs/functions/PanoFloorplanRadarPlugin.html +17 -7
- package/docs/functions/PanoMeasurePlugin.html +17 -7
- package/docs/functions/PanoRulerPlugin.html +17 -7
- package/docs/functions/PanoRulerProPlugin.html +17 -7
- package/docs/functions/PanoSpatialTagPlugin.html +17 -7
- package/docs/functions/PanoTagPlugin.html +20 -8
- package/docs/functions/PanoVideoPlugin.html +17 -7
- package/docs/functions/PipelinePlugin.html +17 -7
- package/docs/functions/SculptPlugin.html +306 -0
- package/docs/functions/TopviewFloorplanPlugin.html +17 -7
- package/docs/functions/Util.absoluteUrl.html +22 -8
- package/docs/functions/Util.blink.html +351 -0
- package/docs/functions/Util.checkFiveModelLoaded.html +22 -8
- package/docs/functions/Util.equal.html +22 -8
- package/docs/functions/Util.getCoordsFromClient.html +22 -8
- package/docs/functions/Util.getCoordsFromElement.html +22 -8
- package/docs/functions/Util.getFrameTime.html +22 -8
- package/docs/functions/Util.getIntersectFromRelativePosition.html +29 -10
- package/docs/functions/Util.getRaycasterFromFivePointer.html +22 -8
- package/docs/functions/Util.isAbsoluteURL.html +22 -8
- package/docs/functions/Util.isModelLike.html +22 -8
- package/docs/functions/Util.isNil.html +22 -8
- package/docs/functions/Util.isPanoramaLike.html +22 -8
- package/docs/functions/Util.nextFrame.html +22 -8
- package/docs/functions/Util.notNil.html +22 -8
- package/docs/functions/Util.reblink.html +349 -0
- package/docs/functions/Util.requestAnimationFrameInterval.html +22 -8
- package/docs/functions/Util.tweenProgress.html +22 -8
- package/docs/functions/Util.uuid.html +22 -8
- package/docs/functions/pluginFlag.html +17 -7
- package/docs/index.html +18 -7
- package/docs/interfaces/AddTagConfig.html +18 -8
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +17 -7
- package/docs/interfaces/AreaMakerPluginType.Config.html +17 -7
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +30 -20
- package/docs/interfaces/AreaMakerPluginType.Params.html +18 -8
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +20 -10
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +19 -9
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +17 -7
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +17 -7
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +17 -7
- package/docs/interfaces/AreaMakerPluginType.State.html +19 -9
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +23 -13
- package/docs/interfaces/CSS3DRenderPluginState.html +20 -10
- package/docs/interfaces/CameraMovementPluginExportType.html +19 -9
- package/docs/interfaces/ContentTypeMapInterface.html +773 -0
- package/docs/interfaces/CruisePluginTypes.Config.html +21 -10
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +24 -13
- package/docs/interfaces/CruisePluginTypes.EventMap.html +33 -22
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +352 -0
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +39 -23
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +30 -18
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +30 -18
- package/docs/interfaces/CruisePluginTypes.PluginData.html +41 -30
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +18 -7
- package/docs/interfaces/CruisePluginTypes.PluginState.html +25 -14
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +23 -13
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +24 -14
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +19 -9
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +18 -8
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +20 -10
- package/docs/interfaces/EventMap.html +27 -17
- package/docs/interfaces/FloorplanBounding.html +20 -10
- package/docs/interfaces/FloorplanData.html +22 -12
- package/docs/interfaces/FloorplanEntrance.html +23 -13
- package/docs/interfaces/FloorplanExtraObject.html +22 -12
- package/docs/interfaces/FloorplanExtraObject3D.html +20 -10
- package/docs/interfaces/FloorplanFloorData.html +21 -11
- package/docs/interfaces/FloorplanImagePosition.html +19 -9
- package/docs/interfaces/FloorplanObserver.html +21 -11
- package/docs/interfaces/FloorplanOutlineItem.html +21 -11
- package/docs/interfaces/FloorplanPosition.html +19 -9
- package/docs/interfaces/FloorplanRoomItem.html +26 -16
- package/docs/interfaces/FloorplanRoomLabelItem.html +19 -9
- package/docs/interfaces/FloorplanServerBounding.html +20 -10
- package/docs/interfaces/FloorplanServerComputedData.html +22 -12
- package/docs/interfaces/FloorplanServerData.html +19 -9
- package/docs/interfaces/FloorplanServerDoorItem.html +22 -12
- package/docs/interfaces/FloorplanServerDoorPosition.html +20 -10
- package/docs/interfaces/FloorplanServerEntrance.html +23 -13
- package/docs/interfaces/FloorplanServerFloorData.html +21 -11
- package/docs/interfaces/FloorplanServerImagePosition.html +19 -9
- package/docs/interfaces/FloorplanServerObserver.html +21 -11
- package/docs/interfaces/FloorplanServerOutlineItem.html +21 -11
- package/docs/interfaces/FloorplanServerPosition.html +19 -9
- package/docs/interfaces/FloorplanServerRoomItem.html +27 -17
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +19 -9
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +20 -10
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +21 -11
- package/docs/interfaces/GuideLinePluginType.EventMap.html +24 -14
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +19 -9
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +17 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +26 -16
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +17 -7
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +19 -9
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +32 -22
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +18 -8
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +33 -23
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +16 -6
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +17 -7
- package/docs/interfaces/GuideLinePluginType.PluginState.html +19 -9
- package/docs/interfaces/GuideLinePluginType.Route.html +22 -12
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +20 -10
- package/docs/interfaces/HelperOffset.html +20 -10
- package/docs/interfaces/ImagePlaneGroup.html +18 -8
- package/docs/interfaces/ItemLabelPluginData.html +18 -8
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +23 -13
- package/docs/interfaces/ItemLabelPluginParametersType.html +21 -11
- package/docs/interfaces/MinMax.html +19 -9
- package/docs/interfaces/ModelChassisCompassPluginData.html +19 -9
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +20 -10
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +19 -9
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +20 -10
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +20 -10
- package/docs/interfaces/ModelItemLabelPluginData.html +18 -8
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +23 -13
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +19 -9
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +556 -0
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +349 -0
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +391 -0
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +332 -0
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +401 -0
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +381 -0
- package/docs/interfaces/ModelMakerPluginType.State.html +364 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +18 -8
- package/docs/interfaces/ModelTVVideoPluginData.html +21 -11
- package/docs/interfaces/ModelTVVideoPluginExportType.html +20 -10
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +18 -8
- package/docs/interfaces/ModelViewPluginExportType.html +23 -13
- package/docs/interfaces/Object3DHelperState.html +20 -10
- package/docs/interfaces/ObjectHelperControllers.html +22 -12
- package/docs/interfaces/PaintBrushAction.html +24 -14
- package/docs/interfaces/PaintBrushConfigs.html +24 -14
- package/docs/interfaces/PaintBrushState.html +22 -12
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +22 -12
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +17 -7
- package/docs/interfaces/PanoMeasureParameterType.html +28 -18
- package/docs/interfaces/PanoMeasurePluginLineJson.html +20 -10
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +19 -9
- package/docs/interfaces/PanoMeasurePluginPointJson.html +19 -9
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +30 -10
- package/docs/interfaces/PanoRulerPluginExportType.html +22 -12
- package/docs/interfaces/PanoRulerPluginOptions.html +19 -9
- package/docs/interfaces/PanoRulerPluginParameterType.html +20 -10
- package/docs/interfaces/PanoRulerProPluginExportType.html +21 -11
- package/docs/interfaces/PanoRulerProPluginOptions.html +19 -9
- package/docs/interfaces/PanoRulerProPluginParameterType.html +19 -9
- package/docs/interfaces/PanoRulerProPluginState.html +20 -10
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +17 -7
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +17 -7
- package/docs/interfaces/PanoSpatialTagPluginData.html +23 -13
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +22 -12
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +25 -15
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +22 -12
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +25 -15
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +23 -13
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +22 -12
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +18 -8
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +20 -10
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +18 -8
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +78 -18
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +18 -8
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +20 -10
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +22 -12
- package/docs/interfaces/Point.html +20 -10
- package/docs/interfaces/Room.html +21 -11
- package/docs/interfaces/RoomInfo.html +19 -9
- package/docs/interfaces/RoomLabel.html +26 -16
- package/docs/interfaces/RoomRules.html +17 -7
- package/docs/interfaces/Rooms.html +17 -7
- package/docs/interfaces/Scissor.html +21 -11
- package/docs/interfaces/State.html +20 -10
- package/docs/interfaces/TagCacheInterface.html +24 -14
- package/docs/interfaces/TagConfig.html +65 -49
- package/docs/interfaces/TagGLTFObjectGroup.html +18 -8
- package/docs/interfaces/TagIconUrl.html +24 -14
- package/docs/interfaces/TagObjectGroup.html +18 -8
- package/docs/interfaces/TagStyle.html +18 -8
- package/docs/interfaces/Tags.html +61 -437
- package/docs/interfaces/TemporaryState.html +18 -8
- package/docs/interfaces/Util.BlinkAnimeOptions.html +380 -0
- package/docs/interfaces/Util.MagnifierParameter.html +43 -24
- package/docs/interfaces/Util.MouseGroupParameter.html +25 -11
- package/docs/interfaces/Util.PointIntersection.html +33 -12
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +387 -0
- package/docs/modules/AreaMakerPluginType.html +16 -6
- package/docs/modules/CruisePluginTypes.html +18 -6
- package/docs/modules/CurrentPanoImagePluginType.html +17 -7
- package/docs/modules/GuideLineItem.html +17 -7
- package/docs/modules/GuideLineModeItem.html +17 -7
- package/docs/modules/GuideLinePluginType.html +16 -6
- package/docs/modules/ModelMakerPluginType.html +339 -0
- package/docs/modules/PanoVideoPluginType.html +17 -7
- package/docs/modules/SculptData.html +318 -0
- package/docs/modules/Util.html +26 -8
- package/docs/modules.html +34 -11
- package/docs/types/AddObject3DHelperConfig.html +315 -0
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +16 -6
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +16 -6
- package/docs/types/AreaMakerPluginType.PluginData.html +16 -6
- package/docs/types/AreaMakerPluginType.ServerData.html +16 -6
- package/docs/types/ArrayPosition.html +17 -7
- package/docs/types/AudioAppearance.html +17 -7
- package/docs/types/CSS3DRenderExportType.html +17 -7
- package/docs/types/CSS3DRenderPluginExportType.html +17 -7
- package/docs/types/CSS3DRenderPluginParameterType.html +17 -7
- package/docs/types/ClassFunctionParameters.html +17 -7
- package/docs/types/Color.html +17 -7
- package/docs/types/ContentTypeConfigKey.html +17 -7
- package/docs/types/ContentTypeConfigKeySplit.html +18 -8
- package/docs/types/ContentTypeMap.html +17 -7
- package/docs/types/Create3DDomContainerReturnType.html +17 -7
- package/docs/types/Create3DElementReturnType.html +17 -7
- package/docs/types/CruisePluginExportType.html +17 -7
- package/docs/types/CruisePluginTypes.CruiseData.html +17 -6
- package/docs/types/CruisePluginTypes.MoveEffect.html +17 -6
- package/docs/types/CurrentPanoImagePluginExportType.html +17 -7
- package/docs/types/DeprecatedMediaPlaneProperty.html +17 -7
- package/docs/types/DeprecatedTagProperty.html +17 -7
- package/docs/types/Direction-1.html +17 -7
- package/docs/types/Direction4.html +17 -7
- package/docs/types/ElementRenderer.html +17 -7
- package/docs/types/FloorplanRuleLabels.html +17 -7
- package/docs/types/FloorplanServerRuleLabels.html +17 -7
- package/docs/types/GuideLinePluginExportType.html +17 -7
- package/docs/types/GuideLinePluginType.GuideLineItem.html +18 -8
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +16 -6
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +16 -6
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +16 -6
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +16 -6
- package/docs/types/GuideLinePluginType.PathItem.html +16 -6
- package/docs/types/GuideLinePluginType.PluginData.html +16 -6
- package/docs/types/HelperEventMap.html +17 -7
- package/docs/types/InternalHelperEventMap.html +29 -11
- package/docs/types/LoadTagConfig.html +17 -7
- package/docs/types/MapviewFloorplanPluginParameterType.html +17 -7
- package/docs/types/MapviewFloorplanPluginReturnType.html +17 -7
- package/docs/types/MediaData.html +20 -10
- package/docs/types/MediaStore.html +17 -7
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +17 -7
- package/docs/types/ModelFloorplanPluginParameterType.html +17 -7
- package/docs/types/ModelFloorplanPluginReturnType.html +17 -7
- package/docs/types/ModelId.html +17 -7
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +329 -0
- package/docs/types/ModelMakerPluginType.ItemType.html +308 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +17 -7
- package/docs/types/ModelRoomLabelPluginReturnType.html +17 -7
- package/docs/types/MoveArgs.html +17 -7
- package/docs/types/MoveOpts.html +17 -7
- package/docs/types/Object3DHelperEventMap.html +17 -7
- package/docs/types/ObjectFit.html +17 -7
- package/docs/types/PaintBrushEventMap.html +17 -7
- package/docs/types/PanoCompassPluginData.html +17 -7
- package/docs/types/PanoCompassPluginExportType.html +17 -7
- package/docs/types/PanoCompassPluginParameterType.html +17 -7
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +17 -7
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +17 -7
- package/docs/types/PanoIndex.html +17 -7
- package/docs/types/PanoMeasurePluginEvent.html +17 -7
- package/docs/types/PanoMeasureReturnType.html +17 -7
- package/docs/types/PanoSpatialTagPluginId.html +17 -7
- package/docs/types/PanoTagPluginExportInterface.html +17 -7
- package/docs/types/PanoTagPluginParamsInterface.html +17 -7
- package/docs/types/PanoVideoPluginParameterType.html +17 -7
- package/docs/types/PanoVideoPluginReturnType.html +17 -7
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +22 -12
- package/docs/types/PipelinePluginParameterType.html +17 -7
- package/docs/types/PipelinePluginReturnType.html +17 -7
- package/docs/types/PlaneTag.html +17 -7
- package/docs/types/Point2DTag.html +17 -7
- package/docs/types/Point3DTag.html +17 -7
- package/docs/types/PointTag.html +17 -7
- package/docs/types/PointTagInstance.html +17 -7
- package/docs/types/Position.html +17 -7
- package/docs/types/{AudioTagTypeConfigKey.html → PositionFrom.html} +28 -10
- package/docs/types/RotateArgs.html +17 -7
- package/docs/types/RotateOpts.html +17 -7
- package/docs/types/RuleLabelsKey.html +17 -7
- package/docs/types/RuleLabelsValue.html +17 -7
- package/docs/types/ScaleCallback.html +314 -0
- package/docs/types/ScalePosition.html +303 -0
- package/docs/types/SculptData.BoxData.html +306 -0
- package/docs/types/SculptData.CircleData.html +306 -0
- package/docs/types/SculptData.CylinderData.html +306 -0
- package/docs/types/SculptData.PointData.html +306 -0
- package/docs/types/SculptData.PolygonData.html +306 -0
- package/docs/types/SculptData.PolylineData.html +306 -0
- package/docs/types/SculptData.PrismData.html +306 -0
- package/docs/types/SculptData.RectangleData.html +306 -0
- package/docs/types/StickType.html +17 -7
- package/docs/types/Tag.html +35 -13
- package/docs/types/Tag2D.html +17 -7
- package/docs/types/Tag3D.html +17 -7
- package/docs/types/TagConfigByKey.html +18 -8
- package/docs/types/TagContentType.html +17 -7
- package/docs/types/TagContentTypeMapping.html +17 -7
- package/docs/types/TagDimensionType.html +17 -7
- package/docs/types/TagElement.html +17 -7
- package/docs/types/TagEvents.html +38 -12
- package/docs/types/TagGLTFObject.html +17 -7
- package/docs/types/TagHooks.html +17 -7
- package/docs/types/TagId.html +17 -7
- package/docs/types/TagInstance.html +44 -8
- package/docs/types/TagPointType.html +17 -7
- package/docs/types/TagRendererMap.html +17 -7
- package/docs/types/TopviewFloorplanPluginParameterType.html +17 -7
- package/docs/types/TopviewFloorplanPluginReturnType.html +17 -7
- package/docs/types/WorkCode.html +17 -7
- package/docs/variables/FLOOR_TYPE_MAP.html +17 -7
- package/docs/variables/PLUGIN.html +17 -7
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +17 -7
- package/docs/variables/ROOM_TYPE_MAP.html +17 -7
- package/docs/variables/defaultGlobalConfig.html +17 -7
- package/docs/variables/itemLabelPluginServerParams.html +17 -7
- package/docs/variables/modelItemLabelPluginServerParams.html +17 -7
- package/docs/variables/modelRoomLabelPluginServerParams.html +17 -7
- package/libs/ModelMakerPlugin/Controller.d.ts +1 -1
- package/libs/ModelMakerPlugin/Controller.js +88 -86
- package/libs/ModelMakerPlugin/item/baseItem.d.ts +1 -1
- package/libs/ModelMakerPlugin/item/baseItem.js +23 -26
- package/libs/PanoMeasurePlugin/Controller/ViewController.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +49 -35
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +2 -1
- package/libs/PanoMeasurePlugin/Model/polyline.js +37 -35
- package/libs/PanoMeasurePlugin/typings/data.d.ts +3 -0
- package/libs/PanoRulerPlugin/Plugin.js +15 -15
- package/libs/PanoVideoPlugin/Controller.d.ts +3 -1
- package/libs/PanoVideoPlugin/Controller.js +41 -41
- package/libs/PanoVideoPlugin/typings.d.ts +2 -2
- package/libs/base/BasePlugin.js +3 -3
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +4 -4
- package/libs/shared-utils/tag.js +26 -30
- package/package.json +2 -2
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var P = Object.defineProperty;
|
|
2
|
+
var W = (p, n, e) => n in p ? P(p, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[n] = e;
|
|
3
|
+
var s = (p, n, e) => (W(p, typeof n != "symbol" ? n + "" : n, e), e);
|
|
4
|
+
var R = (p, n, e) => new Promise((o, t) => {
|
|
5
|
+
var l = (r) => {
|
|
6
6
|
try {
|
|
7
|
-
|
|
8
|
-
} catch (
|
|
9
|
-
d
|
|
7
|
+
a(e.next(r));
|
|
8
|
+
} catch (d) {
|
|
9
|
+
t(d);
|
|
10
10
|
}
|
|
11
|
-
},
|
|
11
|
+
}, i = (r) => {
|
|
12
12
|
try {
|
|
13
|
-
|
|
14
|
-
} catch (
|
|
15
|
-
d
|
|
13
|
+
a(e.throw(r));
|
|
14
|
+
} catch (d) {
|
|
15
|
+
t(d);
|
|
16
16
|
}
|
|
17
|
-
},
|
|
18
|
-
|
|
17
|
+
}, a = (r) => r.done ? o(r.value) : Promise.resolve(r.value).then(l, i);
|
|
18
|
+
a((e = e.apply(p, n)).next());
|
|
19
19
|
});
|
|
20
|
-
import { Controller as
|
|
20
|
+
import { Controller as C } from "../base/BasePluginWithData.js";
|
|
21
21
|
import * as h from "three";
|
|
22
|
-
import { ModelMakerBoxItem as
|
|
23
|
-
import { PrismMesh as
|
|
24
|
-
import { anyPositionToVector3 as
|
|
25
|
-
import { PolygonWithEdgeMesh as
|
|
22
|
+
import { ModelMakerBoxItem as D } from "./item/boxItem.js";
|
|
23
|
+
import { PrismMesh as x } from "../Sculpt/Meshes/Prism.js";
|
|
24
|
+
import { anyPositionToVector3 as I } from "../shared-utils/positionToVector3.js";
|
|
25
|
+
import { PolygonWithEdgeMesh as A } from "../Sculpt/Meshes/PolygonWithEdge.js";
|
|
26
26
|
import "hammerjs";
|
|
27
27
|
import "@realsee/five";
|
|
28
28
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
29
29
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
30
30
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
31
31
|
import "animejs";
|
|
32
|
-
import { notNil as
|
|
33
|
-
import { tagRendererMap as
|
|
34
|
-
import { ModelMakerPrismItem as
|
|
35
|
-
import { ModelMakerPolygonItem as
|
|
36
|
-
import { boxVertex as
|
|
37
|
-
import { getFiveDomEvent as
|
|
32
|
+
import { notNil as j } from "../shared-utils/isNil.js";
|
|
33
|
+
import { tagRendererMap as T } from "./utils/tagRenderer.js";
|
|
34
|
+
import { ModelMakerPrismItem as H } from "./item/prismItem.js";
|
|
35
|
+
import { ModelMakerPolygonItem as F } from "./item/polygonItem.js";
|
|
36
|
+
import { boxVertex as f } from "../shared-utils/Object3DHelper/utils/boundingBox.js";
|
|
37
|
+
import { getFiveDomEvent as z } from "./utils/getFiveDomEvent.js";
|
|
38
38
|
import "../base/BasePlugin.js";
|
|
39
39
|
import "../shared-utils/Subscribe.js";
|
|
40
40
|
import "../shared-utils/url/absoluteUrl.js";
|
|
@@ -75,103 +75,105 @@ import "../shared-utils/tag.js";
|
|
|
75
75
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
76
76
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
77
77
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
78
|
-
class
|
|
79
|
-
constructor(e,
|
|
78
|
+
class Ge extends C {
|
|
79
|
+
constructor(e, o) {
|
|
80
80
|
super(e);
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
81
|
+
s(this, "state");
|
|
82
|
+
s(this, "items", []);
|
|
83
|
+
s(this, "data");
|
|
84
|
+
s(this, "group", new h.Group());
|
|
85
|
+
s(this, "tagRendererMap", {});
|
|
86
|
+
s(this, "fiveDomEvents");
|
|
87
|
+
s(this, "zFightingOffset", 0);
|
|
88
|
+
s(this, "tagWrapper");
|
|
89
|
+
s(this, "handleEnable", () => {
|
|
90
|
+
var e, o;
|
|
91
|
+
this.five.scene.add(this.group), (o = (e = this.five.getElement()) == null ? void 0 : e.parentElement) == null || o.appendChild(this.tagWrapper), this.five.needsRender = !0;
|
|
91
92
|
});
|
|
92
|
-
|
|
93
|
-
this.
|
|
93
|
+
s(this, "handleDisable", () => {
|
|
94
|
+
this.five.scene.remove(this.group), this.tagWrapper.remove(), this.five.needsRender = !0;
|
|
94
95
|
});
|
|
95
|
-
|
|
96
|
+
s(this, "updateTagRenderer", () => {
|
|
96
97
|
this.items.forEach((e) => {
|
|
97
|
-
var
|
|
98
|
-
const
|
|
99
|
-
|
|
98
|
+
var t;
|
|
99
|
+
const o = (t = this.tagRendererMap[e.type]) != null ? t : T[e.type];
|
|
100
|
+
o && e.__renderer !== o && (e.__renderer = o, typeof e.__disposeRenderer == "function" && e.__disposeRenderer(), e.tag.container.innerHTML = "", e.__disposeRenderer = o(e.tag.container, e));
|
|
100
101
|
});
|
|
101
102
|
});
|
|
102
|
-
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.fiveDomEvents =
|
|
103
|
+
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.fiveDomEvents = z(e), this.tagWrapper = (() => {
|
|
104
|
+
var l;
|
|
105
|
+
const t = document.createElement("div");
|
|
106
|
+
return t.style.position = "absolute", t.style.top = "0", t.style.left = "0", t.style.width = "100%", t.style.height = "100%", t.style.pointerEvents = "none", t.style.zIndex = `${(l = o == null ? void 0 : o.tagContainerZIndex) != null ? l : ""}`, t;
|
|
107
|
+
})(), e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
|
|
103
108
|
}
|
|
104
109
|
load(e) {
|
|
105
|
-
return
|
|
106
|
-
var
|
|
107
|
-
this.clear(), this.data = e
|
|
108
|
-
|
|
109
|
-
(d = e == null ? void 0 : e.list) == null || d.forEach((t) => {
|
|
110
|
-
var c;
|
|
110
|
+
return R(this, null, function* () {
|
|
111
|
+
var o;
|
|
112
|
+
this.clear(), this.data = e, (o = e == null ? void 0 : e.list) == null || o.forEach((t) => {
|
|
113
|
+
var l;
|
|
111
114
|
if (t.type === "triangles") {
|
|
112
|
-
const
|
|
113
|
-
|
|
115
|
+
const i = new A();
|
|
116
|
+
i.setPoints(t.object_data.points), i.setStyle({
|
|
114
117
|
color: t.object_data.color,
|
|
115
118
|
opacity: t.object_data.opacity,
|
|
116
119
|
lineColor: t.object_data.color,
|
|
117
120
|
occlusionVisibility: !1
|
|
118
|
-
}), this.fiveDomEvents.addEventListener(
|
|
119
|
-
const
|
|
121
|
+
}), this.fiveDomEvents.addEventListener(i, "hover", () => i.highlight()), this.fiveDomEvents.addEventListener(i, "unHover", () => i.unhighlight());
|
|
122
|
+
const a = new F({
|
|
120
123
|
five: this.five,
|
|
121
|
-
|
|
124
|
+
tagWrapper: this.tagWrapper,
|
|
125
|
+
model: i,
|
|
122
126
|
group: this.group,
|
|
123
127
|
type: t.type,
|
|
124
|
-
rawData: t
|
|
125
|
-
tagContainerZIndex: i
|
|
128
|
+
rawData: t
|
|
126
129
|
});
|
|
127
|
-
this.items.push(
|
|
130
|
+
this.items.push(a);
|
|
128
131
|
} else if (t.type === "prism") {
|
|
129
|
-
const
|
|
130
|
-
this.zFightingOffset += 1e-4
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}), o.setStyle({
|
|
132
|
+
const i = new x();
|
|
133
|
+
this.zFightingOffset += 1e-4;
|
|
134
|
+
const a = t.object_data.points.map((m) => {
|
|
135
|
+
var c;
|
|
136
|
+
return [m[0], m[1] + ((c = t.object_data.fixedY) != null ? c : 0), m[2]];
|
|
137
|
+
}), r = t.object_data.height + ((l = t.object_data.fixedHeight) != null ? l : 0) + this.zFightingOffset, d = I(a[0]).add(new h.Vector3().setY(r));
|
|
138
|
+
i.setPoints({ points: a, heightPoint: d }), i.setStyle({
|
|
137
139
|
color: t.object_data.color,
|
|
138
140
|
opacity: t.object_data.opacity,
|
|
139
141
|
lineColor: t.object_data.color,
|
|
140
142
|
occlusionVisibility: !1
|
|
141
143
|
});
|
|
142
|
-
const
|
|
144
|
+
const u = new H({
|
|
143
145
|
five: this.five,
|
|
144
|
-
|
|
146
|
+
tagWrapper: this.tagWrapper,
|
|
147
|
+
model: i,
|
|
145
148
|
group: this.group,
|
|
146
149
|
type: t.type,
|
|
147
|
-
rawData: t
|
|
148
|
-
tagContainerZIndex: i
|
|
150
|
+
rawData: t
|
|
149
151
|
});
|
|
150
|
-
this.items.push(
|
|
152
|
+
this.items.push(u);
|
|
151
153
|
} else if (t.type === "box") {
|
|
152
|
-
const
|
|
153
|
-
|
|
154
|
-
points: [
|
|
155
|
-
heightPoint:
|
|
156
|
-
}),
|
|
157
|
-
const
|
|
154
|
+
const i = new x(), { start: a, end: r, rotation: d = [0, 0, 0, 0], opacity: u, color: m } = t.object_data, c = new h.Vector3().fromArray(a), g = new h.Vector3().fromArray(r), V = new h.Euler().fromArray(d), y = new h.Quaternion().setFromEuler(V), v = y.clone().inverse(), _ = new h.Vector3().lerpVectors(c, g, 0.5), w = _.clone().negate(), E = c.clone().add(w).applyQuaternion(v), M = g.clone().add(w).applyQuaternion(v), b = new h.Box3(E.clone().max(M), E.clone().min(M));
|
|
155
|
+
i.setPoints({
|
|
156
|
+
points: [f(b, 2), f(b, 3), f(b, 7), f(b, 6)],
|
|
157
|
+
heightPoint: f(b, 0)
|
|
158
|
+
}), i.position.copy(_), i.quaternion.copy(y), i.setStyle({ color: m, opacity: u, lineColor: m, occlusionVisibility: !1 });
|
|
159
|
+
const k = new D({
|
|
158
160
|
five: this.five,
|
|
159
|
-
|
|
161
|
+
tagWrapper: this.tagWrapper,
|
|
162
|
+
model: i,
|
|
160
163
|
group: this.group,
|
|
161
164
|
type: t.type,
|
|
162
|
-
rawData: t
|
|
163
|
-
tagContainerZIndex: i
|
|
165
|
+
rawData: t
|
|
164
166
|
});
|
|
165
|
-
this.items.push(
|
|
167
|
+
this.items.push(k);
|
|
166
168
|
}
|
|
167
169
|
}), this.five.needsRender = !0, this.state.enabled ? this.handleEnable() : this.handleDisable(), this.state.visible ? this.handleShow() : this.handleHide(), this.updateTagRenderer(), this.hooks.emit("dataLoaded", e);
|
|
168
170
|
});
|
|
169
171
|
}
|
|
170
172
|
setState(e) {
|
|
171
|
-
|
|
173
|
+
j(e.enabled) && this.state.enabled !== e.enabled && (this.state.enabled = e.enabled, e.enabled ? this.handleEnable() : this.handleDisable(), this.hooks.emit(e.enabled ? "enable" : "disable", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" })), j(e.visible) && this.state.visible !== e.visible && (this.state.visible = e.visible, e.visible ? this.handleShow() : this.handleHide(), this.hooks.emit(e.visible ? "show" : "hide", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" }));
|
|
172
174
|
}
|
|
173
175
|
getItemById(e) {
|
|
174
|
-
return this.items.find((
|
|
176
|
+
return this.items.find((o) => o.rawData.id === e);
|
|
175
177
|
}
|
|
176
178
|
registerTagRenderer(e) {
|
|
177
179
|
this.tagRendererMap = e, this.updateTagRenderer();
|
|
@@ -195,12 +197,12 @@ class Se extends D {
|
|
|
195
197
|
this.hooks.emit("dispose"), this.handleDisable();
|
|
196
198
|
}
|
|
197
199
|
handleShow() {
|
|
198
|
-
this.
|
|
200
|
+
this.group.visible = !0, this.tagWrapper.style.visibility = "visible", this.five.needsRender = !0;
|
|
199
201
|
}
|
|
200
202
|
handleHide() {
|
|
201
|
-
this.
|
|
203
|
+
this.group.visible = !1, this.tagWrapper.style.visibility = "hidden", this.five.needsRender = !0;
|
|
202
204
|
}
|
|
203
205
|
}
|
|
204
206
|
export {
|
|
205
|
-
|
|
207
|
+
Ge as Controller
|
|
206
208
|
};
|
|
@@ -22,7 +22,6 @@ export declare class ModelMakerBaseItem extends Subscribe<Event> {
|
|
|
22
22
|
};
|
|
23
23
|
protected five: Five;
|
|
24
24
|
protected group: THREE.Object3D;
|
|
25
|
-
protected enabled: boolean;
|
|
26
25
|
protected fiveDomEvents: FiveDomEvents;
|
|
27
26
|
constructor(params: {
|
|
28
27
|
five: Five;
|
|
@@ -30,6 +29,7 @@ export declare class ModelMakerBaseItem extends Subscribe<Event> {
|
|
|
30
29
|
group: THREE.Object3D;
|
|
31
30
|
type: string;
|
|
32
31
|
rawData?: any;
|
|
32
|
+
tagWrapper?: HTMLElement;
|
|
33
33
|
visibleMode?: Mode[];
|
|
34
34
|
position?: THREE.Vector3;
|
|
35
35
|
tagContainerZIndex?: number;
|
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
var
|
|
2
|
-
var m = (s,
|
|
3
|
-
var
|
|
4
|
-
import * as
|
|
1
|
+
var d = Object.defineProperty;
|
|
2
|
+
var m = (s, t, e) => t in s ? d(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
3
|
+
var i = (s, t, e) => (m(s, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
+
import * as l from "three";
|
|
5
5
|
import { addIfNotExists as v } from "../../shared-utils/three/addIfNotExists.js";
|
|
6
|
-
import { Subscribe as
|
|
7
|
-
import { tag as
|
|
8
|
-
import { boundingBox as
|
|
9
|
-
import { getFiveDomEvent as
|
|
6
|
+
import { Subscribe as a } from "../../shared-utils/Subscribe.js";
|
|
7
|
+
import { tag as c } from "../../shared-utils/tag.js";
|
|
8
|
+
import { boundingBox as p } from "../../shared-utils/Object3DHelper/utils/boundingBox.js";
|
|
9
|
+
import { getFiveDomEvent as f } from "../utils/getFiveDomEvent.js";
|
|
10
10
|
import "../../shared-utils/positionToVector3.js";
|
|
11
11
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
12
12
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
13
13
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
14
14
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
15
|
-
class B extends
|
|
15
|
+
class B extends a {
|
|
16
16
|
constructor(e) {
|
|
17
|
-
var o, r,
|
|
17
|
+
var o, r, h;
|
|
18
18
|
super();
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
this.tag = b(this.five, d, { wrapperStyle: { zIndex: `${(h = e.tagContainerZIndex) != null ? h : ""}` } });
|
|
19
|
+
i(this, "type");
|
|
20
|
+
i(this, "tag");
|
|
21
|
+
i(this, "rawData");
|
|
22
|
+
i(this, "model");
|
|
23
|
+
i(this, "five");
|
|
24
|
+
i(this, "group");
|
|
25
|
+
i(this, "fiveDomEvents");
|
|
26
|
+
this.five = e.five, this.model = e.model, this.group = e.group, this.type = e.type, this.rawData = e.rawData, this.fiveDomEvents = f(this.five);
|
|
27
|
+
const n = (h = (r = (o = e.position) != null ? o : this.model.worldCenter) != null ? r : this.model.center) != null ? h : p(this.model).getCenter(new l.Vector3());
|
|
28
|
+
this.tag = c(this.five, n, { wrapper: e.tagWrapper });
|
|
30
29
|
}
|
|
31
30
|
get container() {
|
|
32
31
|
return this.tag.container;
|
|
@@ -34,7 +33,7 @@ class B extends f {
|
|
|
34
33
|
get state() {
|
|
35
34
|
return {
|
|
36
35
|
visible: this.model.visible,
|
|
37
|
-
enabled: this.
|
|
36
|
+
enabled: this.group.children.includes(this.model)
|
|
38
37
|
};
|
|
39
38
|
}
|
|
40
39
|
show() {
|
|
@@ -44,14 +43,12 @@ class B extends f {
|
|
|
44
43
|
this.tag.hide(), this.model.visible = !1, this.five.needsRender = !0, this.emit("hide");
|
|
45
44
|
}
|
|
46
45
|
enable() {
|
|
47
|
-
|
|
48
|
-
return;
|
|
49
|
-
this.enabled = !0, v(this.group, this.model), this.five.needsRender = !0, this.tag.enable();
|
|
46
|
+
v(this.group, this.model), this.five.needsRender = !0, this.tag.enable();
|
|
50
47
|
const e = this.onClick.bind(this);
|
|
51
48
|
this.fiveDomEvents.addEventListener(this.model, "click", e), this.emit("enable");
|
|
52
49
|
}
|
|
53
50
|
disable() {
|
|
54
|
-
this.
|
|
51
|
+
this.group.remove(this.model), this.five.needsRender = !0, this.tag.disable(), this.fiveDomEvents.removeEventListener(this.model, "click"), this.emit("disable");
|
|
55
52
|
}
|
|
56
53
|
onClick() {
|
|
57
54
|
return this.emit("click", this);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
var d = Object.defineProperty;
|
|
2
|
+
var a = (n, s, t) => s in n ? d(n, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[s] = t;
|
|
3
|
+
var o = (n, s, t) => (a(n, typeof s != "symbol" ? s + "" : s, t), t);
|
|
4
|
+
import h from "hammerjs";
|
|
5
|
+
import m from "./BaseController.js";
|
|
6
6
|
import "three";
|
|
7
7
|
import "../Model/line.js";
|
|
8
8
|
import "../../shared-utils/uuid.js";
|
|
@@ -17,53 +17,67 @@ import "../utils/isNDCPointInScreen.js";
|
|
|
17
17
|
import "../../shared-utils/three/centerPoint.js";
|
|
18
18
|
import "../Model/point.js";
|
|
19
19
|
import "../utils/ironbox.js";
|
|
20
|
-
class R extends
|
|
21
|
-
constructor(
|
|
22
|
-
super(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
class R extends m {
|
|
21
|
+
constructor(t) {
|
|
22
|
+
super(t);
|
|
23
|
+
o(this, "type", "view");
|
|
24
|
+
o(this, "hammer");
|
|
25
|
+
o(this, "polylineRemoved", (t) => {
|
|
26
|
+
t.lines.forEach((e) => this.removeLine(e)), this.hook.emit(
|
|
27
27
|
"selectedChange",
|
|
28
|
-
this.model.getAllLines().filter((
|
|
28
|
+
this.model.getAllLines().filter((e) => e.selected).map((e) => e)
|
|
29
29
|
);
|
|
30
30
|
});
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
o(this, "polylineAdded", (t) => {
|
|
32
|
+
const e = this.five.getCurrentState().panoIndex;
|
|
33
|
+
t.lines.forEach((i) => {
|
|
34
|
+
t.visiblePanoIndexes && !t.visiblePanoIndexes.includes(e) && (i.mesh.visible = !1), i.distanceItem.appendTo(this.container), i.distanceItem.update(this.five), this.group.add(i.mesh);
|
|
35
35
|
});
|
|
36
36
|
});
|
|
37
|
-
|
|
37
|
+
o(this, "onCameraUpdate", () => {
|
|
38
38
|
this.updateDistanceUI();
|
|
39
39
|
});
|
|
40
|
-
|
|
41
|
-
this.model.polylines.forEach((
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
o(this, "onFiveModeChange", (t) => {
|
|
41
|
+
this.model.polylines.forEach((e) => {
|
|
42
|
+
e.visibleFiveMode && (e.visibleFiveMode.includes(t) || e.lines.forEach((i) => {
|
|
43
|
+
i.mesh.visible = !1, i.distanceItem.update(this.five);
|
|
44
|
+
}));
|
|
45
|
+
}), this.five.ready().then(() => {
|
|
46
|
+
const e = this.five.getCurrentState().mode;
|
|
47
|
+
this.model.polylines.forEach((i) => {
|
|
48
|
+
i.visibleFiveMode && i.visibleFiveMode.includes(e) && i.lines.forEach((r) => {
|
|
49
|
+
r.mesh.visible = !0, r.distanceItem.update(this.five);
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
o(this, "onFivePanoWillArrive", (t) => {
|
|
55
|
+
this.model.polylines.forEach((e) => {
|
|
56
|
+
e.visiblePanoIndexes && (e.visiblePanoIndexes.includes(t) || e.lines.forEach((i) => {
|
|
57
|
+
i.mesh.visible = !1, i.distanceItem.update(this.five);
|
|
44
58
|
}));
|
|
45
59
|
});
|
|
46
60
|
});
|
|
47
|
-
|
|
48
|
-
this.model.polylines.forEach((
|
|
49
|
-
|
|
50
|
-
|
|
61
|
+
o(this, "onFivePanoArrived", (t) => {
|
|
62
|
+
this.model.polylines.forEach((e) => {
|
|
63
|
+
e.visiblePanoIndexes && e.visiblePanoIndexes.includes(t) && e.lines.forEach((i) => {
|
|
64
|
+
i.mesh.visible = !0, i.distanceItem.update(this.five);
|
|
51
65
|
});
|
|
52
66
|
});
|
|
53
67
|
});
|
|
54
|
-
this.model.getAllLines().forEach((
|
|
55
|
-
|
|
68
|
+
this.model.getAllLines().forEach((i) => {
|
|
69
|
+
i.distanceItem.appendTo(this.container), i.distanceItem.update(this.five), this.group.add(i.mesh);
|
|
56
70
|
});
|
|
57
|
-
const
|
|
58
|
-
if (
|
|
59
|
-
const
|
|
60
|
-
this.hammer =
|
|
71
|
+
const e = this.five.getElement();
|
|
72
|
+
if (e) {
|
|
73
|
+
const i = new h(e);
|
|
74
|
+
this.hammer = i;
|
|
61
75
|
}
|
|
62
|
-
this.onFivePanoWillArrive(this.five.getCurrentState().panoIndex), this.onFivePanoArrived(this.five.getCurrentState().panoIndex), this.updateDistanceUI(), this.five.needsRender = !0, this.model.hook.on("polylineAdded", this.polylineAdded), this.model.hook.on("polylineRemoved", this.polylineRemoved), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("panoArrived", this.onFivePanoArrived), this.five.on("panoWillArrive", this.onFivePanoWillArrive);
|
|
76
|
+
this.onFivePanoWillArrive(this.five.getCurrentState().panoIndex), this.onFivePanoArrived(this.five.getCurrentState().panoIndex), this.onFiveModeChange(this.five.getCurrentState().mode), this.updateDistanceUI(), this.five.needsRender = !0, this.model.hook.on("polylineAdded", this.polylineAdded), this.model.hook.on("polylineRemoved", this.polylineRemoved), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("panoArrived", this.onFivePanoArrived), this.five.on("modeChange", this.onFiveModeChange), this.five.on("panoWillArrive", this.onFivePanoWillArrive);
|
|
63
77
|
}
|
|
64
78
|
dispose() {
|
|
65
|
-
var
|
|
66
|
-
super.dispose(), this.model.hook.off("polylineAdded", this.polylineAdded), this.model.hook.off("polylineRemoved", this.polylineRemoved), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.needsRender = !0, this.hook.emit("selectedChange", []), (
|
|
79
|
+
var t;
|
|
80
|
+
super.dispose(), this.model.hook.off("polylineAdded", this.polylineAdded), this.model.hook.off("polylineRemoved", this.polylineRemoved), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("modeChange", this.onFiveModeChange), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.needsRender = !0, this.hook.emit("selectedChange", []), (t = this.hammer) == null || t.destroy();
|
|
67
81
|
}
|
|
68
82
|
}
|
|
69
83
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PolylineJson } from '../typings/data';
|
|
2
2
|
import Line from './line';
|
|
3
3
|
import Point from './point';
|
|
4
|
-
import { Subscribe } from '@realsee/five';
|
|
4
|
+
import { Subscribe, type Mode as FiveMode } from '@realsee/five';
|
|
5
5
|
import type { Model } from '.';
|
|
6
6
|
export type PolylineEventMap = {
|
|
7
7
|
/** 新增线条
|
|
@@ -17,6 +17,7 @@ export declare class Polyline {
|
|
|
17
17
|
id: string;
|
|
18
18
|
lines: Line[];
|
|
19
19
|
visiblePanoIndexes?: number[];
|
|
20
|
+
visibleFiveMode?: FiveMode[];
|
|
20
21
|
readonly model: Model;
|
|
21
22
|
readonly type = "polyline";
|
|
22
23
|
readonly hook: Subscribe<PolylineEventMap>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var c = Object.defineProperty;
|
|
2
|
-
var f = (r, i,
|
|
3
|
-
var
|
|
2
|
+
var f = (r, i, e) => i in r ? c(r, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[i] = e;
|
|
3
|
+
var t = (r, i, e) => (f(r, typeof i != "symbol" ? i + "" : i, e), e);
|
|
4
4
|
import m from "./line.js";
|
|
5
5
|
import a from "./point.js";
|
|
6
|
-
import { uuid as
|
|
7
|
-
import { Subscribe as
|
|
6
|
+
import { uuid as v } from "../../shared-utils/uuid.js";
|
|
7
|
+
import { Subscribe as P } from "@realsee/five";
|
|
8
8
|
import "../utils/line.js";
|
|
9
9
|
import "../../shared-utils/five/FiveLine.js";
|
|
10
10
|
import "@realsee/five/line";
|
|
@@ -14,20 +14,21 @@ 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
|
-
class
|
|
17
|
+
class R {
|
|
18
18
|
constructor(i) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
t(this, "id", v());
|
|
20
|
+
t(this, "lines", []);
|
|
21
|
+
t(this, "visiblePanoIndexes");
|
|
22
|
+
t(this, "visibleFiveMode");
|
|
23
|
+
t(this, "model");
|
|
24
|
+
t(this, "type", "polyline");
|
|
25
|
+
t(this, "hook", new P());
|
|
25
26
|
this.model = i.model;
|
|
26
27
|
}
|
|
27
28
|
get points() {
|
|
28
29
|
const i = /* @__PURE__ */ new Set();
|
|
29
|
-
return this.lines.forEach((
|
|
30
|
-
i.add(
|
|
30
|
+
return this.lines.forEach((e) => {
|
|
31
|
+
i.add(e.points[0]), i.add(e.points[1]);
|
|
31
32
|
}), Array.from(i);
|
|
32
33
|
}
|
|
33
34
|
addLine(i) {
|
|
@@ -35,8 +36,8 @@ class B {
|
|
|
35
36
|
console.error(new Error("不能重复添加线段"));
|
|
36
37
|
return;
|
|
37
38
|
}
|
|
38
|
-
const
|
|
39
|
-
if (
|
|
39
|
+
const e = this.getLastPoint(), l = e && i.findAnotherPoint(e);
|
|
40
|
+
if (e && !l) {
|
|
40
41
|
console.error(new Error("传入线段无法与当前折线进行连接"));
|
|
41
42
|
return;
|
|
42
43
|
}
|
|
@@ -52,8 +53,8 @@ class B {
|
|
|
52
53
|
this.lines.pop() && this.hook.emit("lineRemoved", i);
|
|
53
54
|
}
|
|
54
55
|
isLastLine(i) {
|
|
55
|
-
const
|
|
56
|
-
return
|
|
56
|
+
const e = this.getLastLine();
|
|
57
|
+
return e ? i.id === e.id : !1;
|
|
57
58
|
}
|
|
58
59
|
getLastLine() {
|
|
59
60
|
return this.lines.slice(-1)[0];
|
|
@@ -66,14 +67,14 @@ class B {
|
|
|
66
67
|
}
|
|
67
68
|
clear() {
|
|
68
69
|
const i = this.lines.slice();
|
|
69
|
-
this.lines.length = 0, i.reduceRight((
|
|
70
|
+
this.lines.length = 0, i.reduceRight((e, l) => this.hook.emit("lineRemoved", l), void 0);
|
|
70
71
|
}
|
|
71
72
|
/** 是否产生重叠 */
|
|
72
73
|
overlapWith(i) {
|
|
73
|
-
return i.type === "point" ? this.includes(i) : i.type === "line" ? i.points.some((
|
|
74
|
+
return i.type === "point" ? this.includes(i) : i.type === "line" ? i.points.some((e) => this.includes(e)) : i.type === "polyline" ? i.points.some((e) => this.includes(e)) : !0;
|
|
74
75
|
}
|
|
75
76
|
includes(i) {
|
|
76
|
-
return i.type === "point" ? this.points.find(({ id:
|
|
77
|
+
return i.type === "point" ? this.points.find(({ id: e }) => e === i.id) !== void 0 : i.type === "line" ? this.lines.find(({ id: e }) => e === i.id) !== void 0 : !1;
|
|
77
78
|
}
|
|
78
79
|
isEmpty() {
|
|
79
80
|
return this.lines.length === 0;
|
|
@@ -88,33 +89,34 @@ class B {
|
|
|
88
89
|
return {
|
|
89
90
|
id: this.id,
|
|
90
91
|
lines: this.lines.map((i) => i.toJson()),
|
|
91
|
-
visiblePanoIndexes: this.visiblePanoIndexes
|
|
92
|
+
visiblePanoIndexes: this.visiblePanoIndexes,
|
|
93
|
+
visibleFiveMode: this.visibleFiveMode
|
|
92
94
|
};
|
|
93
95
|
}
|
|
94
96
|
getPointByID(i) {
|
|
95
|
-
return this.points.find(({ id:
|
|
97
|
+
return this.points.find(({ id: e }) => e === i);
|
|
96
98
|
}
|
|
97
99
|
fromJson(i) {
|
|
98
100
|
this.clear(), this.id = i.id;
|
|
99
|
-
const { getPoint:
|
|
100
|
-
const [d, p] =
|
|
101
|
-
if (!
|
|
101
|
+
const { getPoint: e } = u(), l = i.lines.map((n) => {
|
|
102
|
+
const [d, p] = n.points, s = e(d), h = e(p);
|
|
103
|
+
if (!s || !h)
|
|
102
104
|
throw new Error("线上的点不存在");
|
|
103
|
-
const
|
|
104
|
-
return
|
|
105
|
+
const o = new m(s, h, this.model);
|
|
106
|
+
return o.id = n.id, o.text = n.text, o;
|
|
105
107
|
});
|
|
106
|
-
this.lines.push(...l), this.visiblePanoIndexes = i.visiblePanoIndexes;
|
|
108
|
+
this.lines.push(...l), this.visiblePanoIndexes = i.visiblePanoIndexes, this.visibleFiveMode = i.visibleFiveMode;
|
|
107
109
|
function u() {
|
|
108
|
-
const
|
|
109
|
-
function d(
|
|
110
|
-
const h =
|
|
110
|
+
const n = /* @__PURE__ */ new Map();
|
|
111
|
+
function d(s) {
|
|
112
|
+
const h = n.get(s.id);
|
|
111
113
|
if (h)
|
|
112
114
|
return h;
|
|
113
|
-
const
|
|
114
|
-
return
|
|
115
|
+
const o = new a(s.position);
|
|
116
|
+
return o.id = s.id, n.set(s.id, o), o;
|
|
115
117
|
}
|
|
116
118
|
function p() {
|
|
117
|
-
return Array.from(
|
|
119
|
+
return Array.from(n.values());
|
|
118
120
|
}
|
|
119
121
|
return { getPoint: d, getAllPoints: p };
|
|
120
122
|
}
|
|
@@ -125,5 +127,5 @@ class B {
|
|
|
125
127
|
}
|
|
126
128
|
}
|
|
127
129
|
export {
|
|
128
|
-
|
|
130
|
+
R as Polyline
|
|
129
131
|
};
|