@realsee/dnalogel 3.61.1-alpha.0 → 3.61.2
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 +8 -0
- package/dist/PanoTagPlugin/utils/DebugUtil.d.ts +3 -2
- package/dist/Sculpt/Objects/Base/index.d.ts +1 -4
- package/dist/Sculpt/Objects/Box/index.d.ts +2 -2
- package/dist/Sculpt/Objects/Circle/index.d.ts +1 -2
- package/dist/Sculpt/Objects/Cylinder/index.d.ts +1 -2
- package/dist/Sculpt/Objects/Line/index.d.ts +2 -2
- package/dist/Sculpt/Objects/Point/index.d.ts +1 -2
- package/dist/Sculpt/Objects/Polygon/index.d.ts +2 -2
- package/dist/Sculpt/Objects/Polyline/index.d.ts +2 -2
- package/dist/Sculpt/Objects/Prism/index.d.ts +1 -2
- package/dist/Sculpt/Objects/Rectangle/index.d.ts +2 -2
- package/dist/Sculpt/index.d.ts +14 -17
- package/dist/Sculpt/typings/style.d.ts +0 -7
- package/dist/Sculpt/utils/Modules/Global.d.ts +0 -4
- package/dist/index.cjs.js +41 -41
- package/dist/index.js +3841 -3902
- package/dist/index.umd.js +38 -38
- package/dist/shared-utils/three/PointSelector/index.d.ts +0 -25
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +25 -25
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +28 -28
- package/docs/classes/CSS3DRender.html +4 -4
- package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +26 -26
- package/docs/classes/ModelMakerPluginInstance.html +15 -15
- package/docs/classes/ModelRoomLabelController.html +6 -6
- package/docs/classes/MoveController.html +17 -17
- package/docs/classes/Object3DHelperController.html +15 -15
- package/docs/classes/PaintBrush.html +5 -5
- package/docs/classes/PanoMeasurePluginLine.html +2 -2
- package/docs/classes/PanoMeasurePluginModel.html +2 -2
- package/docs/classes/PanoMeasurePluginPoint.html +2 -2
- package/docs/classes/PanoMeasurePluginPolyline.html +4 -4
- package/docs/classes/PanoTagPluginController.html +34 -34
- package/docs/classes/Sculpt.html +25 -25
- package/docs/classes/Util.BetterTween.html +2 -2
- package/docs/classes/Util.FiveDomEvents.html +4 -4
- package/docs/classes/Util.FivePuppet.html +3 -3
- package/docs/classes/Util.Interval.html +5 -5
- package/docs/classes/Util.LightTag.html +14 -14
- package/docs/classes/Util.LineSegments.html +2 -2
- package/docs/classes/Util.Magnifier.html +6 -6
- package/docs/classes/Util.Object3D.html +4 -4
- package/docs/classes/Util.PointHelper.html +2 -2
- package/docs/classes/Util.PointSelector.html +11 -17
- package/docs/classes/Util.PointSelectorHelper.html +2 -2
- package/docs/classes/Util.Rectangle.html +5 -5
- package/docs/classes/Util.sculpt.BaseEditor.html +7 -7
- package/docs/classes/Util.sculpt.BoxMesh.html +6 -6
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.CircleMesh.html +4 -4
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +4 -4
- package/docs/classes/Util.sculpt.CylinderMesh.html +5 -5
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.LineMesh.html +5 -5
- package/docs/classes/Util.sculpt.PointMesh.html +5 -5
- package/docs/classes/Util.sculpt.PolygonMesh.html +6 -6
- package/docs/classes/Util.sculpt.PrismMesh.html +6 -6
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.RectangleMesh.html +7 -7
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +7 -7
- package/docs/classes/WalkController.html +18 -18
- package/docs/enums/CameraMovementEffect.html +3 -3
- package/docs/enums/ContentType.html +18 -18
- package/docs/enums/DIRECTION.html +2 -2
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/DimensionType.html +3 -3
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/PaintBrushTypeEnum.html +2 -2
- package/docs/enums/PointType.html +3 -3
- package/docs/enums/Rotation.html +3 -3
- package/docs/functions/AreaMakerPlugin.html +1 -1
- package/docs/functions/CSS3DRenderPlugin.html +1 -1
- package/docs/functions/CameraMovementPlugin.html +2 -2
- package/docs/functions/CruisePlugin.html +1 -1
- package/docs/functions/CurrentPanoImagePlugin.html +1 -1
- package/docs/functions/GuideLinePlugin.html +1 -1
- package/docs/functions/ItemLabelPlugin.html +1 -1
- package/docs/functions/MapviewFloorplanPlugin.html +1 -1
- package/docs/functions/ModelChassisCompassPlugin.html +2 -2
- package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
- package/docs/functions/ModelFloorplanPlugin.html +1 -1
- package/docs/functions/ModelItemLabelPlugin.html +1 -1
- package/docs/functions/ModelMakerPlugin.html +1 -1
- package/docs/functions/ModelRoomLabelPlugin.html +1 -1
- package/docs/functions/ModelTVVideoPlugin.html +1 -1
- package/docs/functions/ModelViewPlugin.html +2 -2
- package/docs/functions/MovePlugin.html +1 -1
- package/docs/functions/Object3DHelperPlugin.html +1 -1
- package/docs/functions/PanoCompassPlugin.html +1 -1
- package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
- package/docs/functions/PanoDoorLabelPlugin.html +1 -1
- package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
- package/docs/functions/PanoMeasurePlugin.html +1 -1
- package/docs/functions/PanoRulerPlugin.html +2 -2
- package/docs/functions/PanoRulerProPlugin.html +2 -2
- package/docs/functions/PanoSpatialTagPlugin.html +2 -2
- package/docs/functions/PanoTagPlugin.html +1 -1
- package/docs/functions/PanoVideoPlugin.html +2 -2
- package/docs/functions/PipelinePlugin.html +1 -1
- package/docs/functions/SculptPlugin.html +2 -2
- package/docs/functions/TopviewFloorplanPlugin.html +1 -1
- package/docs/functions/Util.absoluteUrl.html +2 -2
- package/docs/functions/Util.awaitNextFrame.html +1 -1
- package/docs/functions/Util.blink.html +2 -2
- package/docs/functions/Util.bounding.html +1 -1
- package/docs/functions/Util.boundingBox.html +1 -1
- package/docs/functions/Util.boundingSphere.html +1 -1
- package/docs/functions/Util.boxVertex.html +2 -2
- package/docs/functions/Util.boxVertexes.html +1 -1
- package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
- package/docs/functions/Util.convexHull.html +2 -2
- package/docs/functions/Util.equal.html +2 -2
- package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
- package/docs/functions/Util.getCoordsFromClient.html +1 -1
- package/docs/functions/Util.getCoordsFromElement.html +1 -1
- package/docs/functions/Util.getFrameTime.html +2 -2
- package/docs/functions/Util.inside.html +1 -1
- package/docs/functions/Util.isAbsoluteURL.html +1 -1
- package/docs/functions/Util.isModelLike.html +1 -1
- package/docs/functions/Util.isNil.html +2 -2
- package/docs/functions/Util.isPanoramaLike.html +1 -1
- package/docs/functions/Util.lookObject.html +2 -2
- package/docs/functions/Util.lookPoint.html +2 -2
- package/docs/functions/Util.nextFrame.html +1 -1
- package/docs/functions/Util.notNil.html +2 -2
- package/docs/functions/Util.reblink.html +2 -2
- package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
- package/docs/functions/Util.sculpt.createBox.html +1 -1
- package/docs/functions/Util.sculpt.createCircle.html +1 -1
- package/docs/functions/Util.sculpt.createCylinder.html +1 -1
- package/docs/functions/Util.sculpt.createLine.html +2 -2
- package/docs/functions/Util.sculpt.createPoint.html +1 -1
- package/docs/functions/Util.sculpt.createPolygon.html +1 -1
- package/docs/functions/Util.sculpt.createPrism.html +1 -1
- package/docs/functions/Util.sculpt.createRectangle.html +2 -2
- package/docs/functions/Util.tag.html +1 -1
- package/docs/functions/Util.tweenProgress.html +1 -1
- package/docs/functions/Util.uuid.html +2 -2
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
- package/docs/functions/Util.worldBounding.html +1 -1
- package/docs/functions/Util.worldBoundingBox.html +1 -1
- package/docs/functions/Util.worldBoundingSphere.html +1 -1
- package/docs/functions/createPolyline.html +2 -2
- package/docs/functions/pluginFlag.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +12 -12
- package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +4 -4
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.State.html +5 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
- package/docs/interfaces/ContentTypeMapInterface.html +15 -15
- package/docs/interfaces/CruisePluginTypes.Config.html +4 -4
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
- package/docs/interfaces/CruisePluginTypes.EventMap.html +17 -17
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +8 -8
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +9 -9
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +10 -10
- package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +7 -7
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +7 -7
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +8 -8
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +4 -4
- package/docs/interfaces/FloorplanBounding.html +5 -5
- package/docs/interfaces/FloorplanData.html +3 -3
- package/docs/interfaces/FloorplanEntrance.html +8 -8
- package/docs/interfaces/FloorplanExtraObject.html +5 -5
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
- package/docs/interfaces/FloorplanFloorData.html +3 -3
- package/docs/interfaces/FloorplanImagePosition.html +3 -3
- package/docs/interfaces/FloorplanObserver.html +3 -3
- package/docs/interfaces/FloorplanOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanPosition.html +3 -3
- package/docs/interfaces/FloorplanRoomItem.html +8 -8
- package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
- package/docs/interfaces/FloorplanServerBounding.html +5 -5
- package/docs/interfaces/FloorplanServerComputedData.html +2 -2
- package/docs/interfaces/FloorplanServerData.html +3 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
- package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +8 -8
- package/docs/interfaces/FloorplanServerFloorData.html +3 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
- package/docs/interfaces/FloorplanServerObserver.html +3 -3
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanServerPosition.html +3 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +9 -9
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
- package/docs/interfaces/GuideLinePluginType.EventMap.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +16 -16
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +19 -19
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +4 -4
- package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +2 -2
- package/docs/interfaces/HelperOffset.html +2 -2
- package/docs/interfaces/ImagePlaneGroup.html +2 -2
- package/docs/interfaces/ItemLabelPluginData.html +2 -2
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/MinMax.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +10 -10
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +4 -4
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +4 -4
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +4 -4
- package/docs/interfaces/ModelMakerPluginType.State.html +5 -5
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
- package/docs/interfaces/ModelViewPluginExportType.html +2 -2
- package/docs/interfaces/Object3DHelperState.html +2 -2
- package/docs/interfaces/ObjectHelperControllers.html +2 -2
- package/docs/interfaces/PaintBrushAction.html +7 -7
- package/docs/interfaces/PaintBrushConfigs.html +2 -2
- package/docs/interfaces/PaintBrushState.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +6 -6
- package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +4 -4
- package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginState.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +7 -7
- package/docs/interfaces/PluginEventMap.html +4 -4
- package/docs/interfaces/Point.html +2 -2
- package/docs/interfaces/Room.html +2 -2
- package/docs/interfaces/RoomInfo.html +2 -2
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +6 -6
- package/docs/interfaces/State.html +4 -4
- package/docs/interfaces/TagCacheInterface.html +3 -3
- package/docs/interfaces/TagConfig.html +11 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconUrl.html +7 -7
- package/docs/interfaces/TagObjectGroup.html +2 -2
- package/docs/interfaces/TagStyle.html +2 -2
- package/docs/interfaces/Tags.html +4 -4
- package/docs/interfaces/TemporaryState.html +2 -2
- package/docs/interfaces/Util.AnimeInstance.html +2 -2
- package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
- package/docs/interfaces/Util.EventHandlerConfig.html +4 -4
- package/docs/interfaces/Util.FiveDomEvent.html +2 -2
- package/docs/interfaces/Util.FiveDomEventMap.html +10 -10
- package/docs/interfaces/Util.MagnifierParameter.html +5 -5
- package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.PointIntersection.html +4 -4
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +3 -3
- package/docs/modules/AreaMakerPluginType.html +2 -2
- package/docs/modules/CruisePluginTypes.html +2 -2
- package/docs/modules/CurrentPanoImagePluginType.html +2 -2
- package/docs/modules/GuideLineItem.html +2 -2
- package/docs/modules/GuideLineModeItem.html +2 -2
- package/docs/modules/GuideLinePluginType.html +2 -2
- package/docs/modules/ModelMakerPluginType.html +2 -2
- package/docs/modules/PanoVideoPluginType.html +2 -2
- package/docs/modules/SculptData.html +2 -2
- package/docs/modules/Util.html +2 -2
- package/docs/modules/Util.sculpt.html +2 -2
- package/docs/modules.html +2 -2
- package/docs/types/AddObject3DHelperConfig.html +2 -2
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
- package/docs/types/ArrayPosition.html +1 -1
- package/docs/types/AudioAppearance.html +1 -1
- package/docs/types/CSS3DRenderExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
- package/docs/types/ClassFunctionParameters.html +1 -1
- package/docs/types/Color.html +1 -1
- package/docs/types/ContentTypeConfigKey.html +1 -1
- package/docs/types/ContentTypeConfigKeySplit.html +1 -1
- package/docs/types/ContentTypeMap.html +1 -1
- package/docs/types/Create3DDomContainerReturnType.html +1 -1
- package/docs/types/Create3DElementReturnType.html +1 -1
- package/docs/types/CruisePluginExportType.html +1 -1
- package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
- package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
- package/docs/types/DeprecatedTagProperty.html +2 -2
- package/docs/types/Direction-1.html +1 -1
- package/docs/types/Direction4.html +1 -1
- package/docs/types/ElementRenderer.html +2 -2
- package/docs/types/FloorplanRuleLabels.html +2 -2
- package/docs/types/FloorplanServerRuleLabels.html +1 -1
- package/docs/types/GuideLinePluginExportType.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
- package/docs/types/GuideLinePluginType.PathItem.html +2 -2
- package/docs/types/GuideLinePluginType.PluginData.html +2 -2
- package/docs/types/HelperEventMap.html +1 -1
- package/docs/types/InternalHelperEventMap.html +1 -1
- package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/MediaData.html +2 -2
- package/docs/types/MediaStore.html +1 -1
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
- package/docs/types/ModelId.html +1 -1
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
- package/docs/types/ModelMakerPluginType.ItemType.html +1 -1
- package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
- package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
- package/docs/types/MoveArgs.html +2 -2
- package/docs/types/MoveOpts.html +2 -2
- package/docs/types/Object3DHelperEventMap.html +1 -1
- package/docs/types/ObjectFit.html +1 -1
- package/docs/types/PaintBrushEventMap.html +1 -1
- package/docs/types/PanoCompassPluginData.html +1 -1
- package/docs/types/PanoCompassPluginExportType.html +1 -1
- package/docs/types/PanoCompassPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
- package/docs/types/PanoIndex.html +1 -1
- package/docs/types/PanoMeasurePluginEvent.html +1 -1
- package/docs/types/PanoMeasureReturnType.html +1 -1
- package/docs/types/PanoSpatialTagPluginId.html +1 -1
- package/docs/types/PanoTagPluginExportInterface.html +1 -1
- package/docs/types/PanoTagPluginParamsInterface.html +1 -1
- package/docs/types/PanoVideoPluginParameterType.html +1 -1
- package/docs/types/PanoVideoPluginReturnType.html +1 -1
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
- package/docs/types/PipelinePluginParameterType.html +1 -1
- package/docs/types/PipelinePluginReturnType.html +1 -1
- package/docs/types/PlaneTag.html +2 -2
- package/docs/types/Point2DTag.html +2 -2
- package/docs/types/Point3DTag.html +2 -2
- package/docs/types/PointTagInstance.html +1 -1
- package/docs/types/Position.html +1 -1
- package/docs/types/PositionFrom.html +1 -1
- package/docs/types/RotateArgs.html +2 -2
- package/docs/types/RotateOpts.html +2 -2
- package/docs/types/RuleLabelsKey.html +1 -1
- package/docs/types/RuleLabelsValue.html +1 -1
- package/docs/types/ScaleCallback.html +1 -1
- package/docs/types/ScalePosition.html +2 -2
- package/docs/types/SculptData.BoxData.html +1 -1
- package/docs/types/SculptData.CircleData.html +1 -1
- package/docs/types/SculptData.CylinderData.html +1 -1
- package/docs/types/SculptData.PointData.html +1 -1
- package/docs/types/SculptData.PolygonData.html +1 -1
- package/docs/types/SculptData.PolylineData.html +1 -1
- package/docs/types/SculptData.PrismData.html +1 -1
- package/docs/types/SculptData.RectangleData.html +1 -1
- package/docs/types/StickType.html +1 -1
- package/docs/types/Tag.html +2 -2
- package/docs/types/Tag2D.html +2 -2
- package/docs/types/Tag3D.html +2 -2
- package/docs/types/TagClickParams.html +1 -1
- package/docs/types/TagConfigByKey.html +1 -1
- package/docs/types/TagContentType.html +1 -1
- package/docs/types/TagContentTypeMapping.html +1 -1
- package/docs/types/TagDimensionType.html +1 -1
- package/docs/types/TagElement.html +2 -2
- package/docs/types/TagEvents.html +1 -1
- package/docs/types/TagGLTFObject.html +1 -1
- package/docs/types/TagHooks.html +1 -1
- package/docs/types/TagId.html +1 -1
- package/docs/types/TagInstance.html +1 -1
- package/docs/types/TagPointType.html +2 -2
- package/docs/types/TagRendererMap.html +1 -1
- package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/Util.ActionIfNoModelUnderMouse.html +1 -1
- package/docs/types/Util.PointSelectorConfig.html +1 -1
- package/docs/types/WorkCode.html +1 -1
- package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
- package/docs/variables/PLUGIN.html +1 -1
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
- package/docs/variables/ROOM_TYPE_MAP.html +2 -2
- package/docs/variables/Util.animeMap.html +1 -1
- package/docs/variables/defaultGlobalConfig.html +1 -1
- package/docs/variables/itemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
- package/libs/ModelViewPlugin/Plugin.js +144 -89
- package/libs/ModelViewPlugin/index.js +56 -0
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/PanoTagPlugin/utils/DebugUtil.d.ts +3 -2
- package/libs/PanoTagPlugin/utils/DebugUtil.js +28 -30
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +1 -1
- package/libs/Sculpt/Objects/Base/index.d.ts +1 -4
- package/libs/Sculpt/Objects/Base/index.js +23 -27
- package/libs/Sculpt/Objects/Box/index.d.ts +2 -2
- package/libs/Sculpt/Objects/Box/index.js +44 -46
- package/libs/Sculpt/Objects/Circle/index.d.ts +1 -2
- package/libs/Sculpt/Objects/Circle/index.js +55 -57
- package/libs/Sculpt/Objects/Cylinder/index.d.ts +1 -2
- package/libs/Sculpt/Objects/Cylinder/index.js +29 -31
- package/libs/Sculpt/Objects/Line/index.d.ts +2 -2
- package/libs/Sculpt/Objects/Line/index.js +40 -42
- package/libs/Sculpt/Objects/Point/index.d.ts +1 -2
- package/libs/Sculpt/Objects/Point/index.js +43 -45
- package/libs/Sculpt/Objects/Polygon/index.d.ts +2 -2
- package/libs/Sculpt/Objects/Polygon/index.js +72 -74
- package/libs/Sculpt/Objects/Polyline/index.d.ts +2 -2
- package/libs/Sculpt/Objects/Polyline/index.js +34 -36
- package/libs/Sculpt/Objects/Prism/index.d.ts +1 -2
- package/libs/Sculpt/Objects/Prism/index.js +52 -54
- package/libs/Sculpt/Objects/Rectangle/index.d.ts +2 -2
- package/libs/Sculpt/Objects/Rectangle/index.js +66 -67
- package/libs/Sculpt/index.d.ts +14 -17
- package/libs/Sculpt/index.js +68 -76
- package/libs/Sculpt/typings/style.d.ts +0 -7
- package/libs/Sculpt/utils/Modules/Global.d.ts +0 -4
- package/libs/Sculpt/utils/Modules/Global.js +12 -24
- package/libs/base/BasePlugin.js +5 -5
- package/libs/index.js +5 -5
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/index.d.ts +0 -25
- package/libs/shared-utils/three/PointSelector/index.js +6 -32
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ var A = Object.defineProperty, D = Object.defineProperties;
|
|
|
2
2
|
var k = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var R = Object.getOwnPropertySymbols;
|
|
4
4
|
var z = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var j = (n, t, e) => t in n ? A(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e,
|
|
5
|
+
var j = (n, t, e) => t in n ? A(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, f = (n, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
7
|
z.call(t, e) && j(n, e, t[e]);
|
|
8
8
|
if (R)
|
|
@@ -10,49 +10,48 @@ var j = (n, t, e) => t in n ? A(n, t, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
B.call(t, e) && j(n, e, t[e]);
|
|
11
11
|
return n;
|
|
12
12
|
}, v = (n, t) => D(n, k(t));
|
|
13
|
-
var
|
|
14
|
-
var U = (n, t, e) => new Promise((s,
|
|
15
|
-
var
|
|
13
|
+
var p = (n, t, e) => (j(n, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
|
+
var U = (n, t, e) => new Promise((s, m) => {
|
|
15
|
+
var P = (o) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
c(e.next(o));
|
|
18
18
|
} catch (l) {
|
|
19
|
-
|
|
19
|
+
m(l);
|
|
20
20
|
}
|
|
21
21
|
}, b = (o) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
c(e.throw(o));
|
|
24
24
|
} catch (l) {
|
|
25
|
-
|
|
25
|
+
m(l);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, c = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(P, b);
|
|
28
|
+
c((e = e.apply(n, t)).next());
|
|
29
29
|
});
|
|
30
30
|
import { LineMesh as H } from "../../Meshes/Line.js";
|
|
31
31
|
import { BaseObject as F } from "../Base/index.js";
|
|
32
|
-
import * as
|
|
32
|
+
import * as a from "three";
|
|
33
33
|
import { LineEditor as I } from "./Editor.js";
|
|
34
34
|
import { vector3ToArray as N } from "../../../shared-utils/three/vector3ToArray.js";
|
|
35
35
|
import { LineWithDotsMesh as T } from "../../Meshes/LineWithDots.js";
|
|
36
36
|
import { rayOnLine as q } from "../../utils/three/rayOnLine.js";
|
|
37
37
|
import { withResolvers as G } from "../../../shared-utils/promise/withResolvers.js";
|
|
38
|
-
|
|
39
|
-
class se extends F {
|
|
38
|
+
class ne extends F {
|
|
40
39
|
constructor(e, s) {
|
|
41
40
|
super(e, s);
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
e && (this.lineMesh = new T(
|
|
41
|
+
p(this, "type", "Line");
|
|
42
|
+
p(this, "lineMesh");
|
|
43
|
+
p(this, "_editor");
|
|
44
|
+
p(this, "creatingObject");
|
|
45
|
+
e && (this.lineMesh = new T(f(f({}, e.style), e)), this.add(this.lineMesh));
|
|
47
46
|
}
|
|
48
47
|
get editor() {
|
|
49
48
|
return this._editor || (this._editor = new I(this)), this._editor;
|
|
50
49
|
}
|
|
51
50
|
get data() {
|
|
52
|
-
return v(
|
|
51
|
+
return v(f({}, this.baseData), {
|
|
53
52
|
points: N(this.applyObjectMatrixWorld(this.lineMesh.points)),
|
|
54
53
|
style: {
|
|
55
|
-
lineColor: new
|
|
54
|
+
lineColor: new a.Color(this.lineMesh.color).getHex(),
|
|
56
55
|
lineWidth: this.lineMesh.lineWidth,
|
|
57
56
|
dashed: this.lineMesh.dashed
|
|
58
57
|
}
|
|
@@ -87,54 +86,53 @@ class se extends F {
|
|
|
87
86
|
}
|
|
88
87
|
create(e) {
|
|
89
88
|
return U(this, null, function* () {
|
|
90
|
-
|
|
91
|
-
this.removeChildren(), this.currentPointSelector = (d = e == null ? void 0 : e.pointSelector) != null ? d : J.modules.pointSelector;
|
|
89
|
+
this.removeChildren();
|
|
92
90
|
const s = new T(e);
|
|
93
|
-
this.lineMesh = s, this.add(this.lineMesh), this.creatingObject =
|
|
91
|
+
this.lineMesh = s, this.add(this.lineMesh), this.creatingObject = J(s, this.pointSelector, e), yield this.creatingObject.finished, this.config.defaultAction && this.editor.enable();
|
|
94
92
|
});
|
|
95
93
|
}
|
|
96
94
|
}
|
|
97
|
-
function
|
|
95
|
+
function J(n, t, e) {
|
|
98
96
|
var C;
|
|
99
97
|
const s = n.parent;
|
|
100
98
|
if (!s)
|
|
101
99
|
return;
|
|
102
|
-
const { promise:
|
|
100
|
+
const { promise: m, resolve: P, reject: b } = G(), c = (C = e == null ? void 0 : e.limit) != null ? C : "none", o = new H(n.style);
|
|
103
101
|
s.add(o);
|
|
104
|
-
const l = new H(v(
|
|
102
|
+
const l = new H(v(f({}, n.style), { dashed: !0, lengthEnable: !1 }));
|
|
105
103
|
s.add(l), t.enable();
|
|
106
104
|
const i = [];
|
|
107
|
-
let h,
|
|
105
|
+
let h, d, y;
|
|
108
106
|
const g = [], M = () => i.length > 0, O = () => g.length > 0, W = () => {
|
|
109
|
-
M() && (g.push(i.pop()), n.setPoints(i),
|
|
107
|
+
M() && (g.push(i.pop()), n.setPoints(i), u(y), t.pointSelectorHelper.magnifier.render());
|
|
110
108
|
}, _ = () => {
|
|
111
|
-
O() && (i.push(g.pop()), n.setPoints(i),
|
|
109
|
+
O() && (i.push(g.pop()), n.setPoints(i), u(y), t.pointSelectorHelper.magnifier.render());
|
|
112
110
|
}, E = (r) => {
|
|
113
111
|
if (!r)
|
|
114
112
|
return;
|
|
115
113
|
g.length = 0;
|
|
116
|
-
const
|
|
117
|
-
i.push(
|
|
118
|
-
},
|
|
119
|
-
const
|
|
114
|
+
const w = i.length === 0 ? r.point : h.clone();
|
|
115
|
+
i.push(w), n.setPoints(i), i.length === 2 && (V(), P());
|
|
116
|
+
}, u = (r) => {
|
|
117
|
+
const w = () => {
|
|
120
118
|
o.setPoints([]), l.setPoints([]), t.pointSelectorHelper.magnifier.render();
|
|
121
119
|
};
|
|
122
120
|
if (!(i != null && i.length) || !r)
|
|
123
|
-
return
|
|
121
|
+
return w();
|
|
124
122
|
y = r;
|
|
125
123
|
const L = i.at(-1).clone();
|
|
126
|
-
|
|
124
|
+
c === "none" ? (h = r.point, o.setPoints([L, h])) : c === "xoz" ? (t.plane = d, d = d != null ? d : new a.Plane().setFromNormalAndCoplanarPoint(new a.Vector3(0, 1, 0), i[0]), h = d.projectPoint(r.point, new a.Vector3()), o.setPoints([L, h]), l.setPoints([h, r.point])) : c === "y" && (r.isVirtual ? (h = q({
|
|
127
125
|
raycaster: r.raycaster,
|
|
128
|
-
line: new
|
|
126
|
+
line: new a.Line3(i[0].clone(), new a.Vector3(0, 1, 0).add(i[0])),
|
|
129
127
|
clampToLine: !1
|
|
130
|
-
}), l.setPoints([])) : (h = new
|
|
128
|
+
}), l.setPoints([])) : (h = new a.Line3(i[0].clone(), new a.Vector3(0, 1, 0).add(i[0])).closestPointToPoint(r.point, !1, new a.Vector3()), l.setPoints([h, r.point])), o.setPoints([L, h]));
|
|
131
129
|
}, V = () => {
|
|
132
|
-
t.off("select", E), t.off("intersectionUpdate",
|
|
130
|
+
t.off("select", E), t.off("intersectionUpdate", u), t.off("disable", x), t.plane = null, t.disable(), s == null || s.remove(o, l);
|
|
133
131
|
}, x = () => {
|
|
134
132
|
V(), i.length !== 2 && (s == null || s.remove(n)), b(new Error("Cancelled"));
|
|
135
133
|
};
|
|
136
|
-
return t.on("select", E), t.on("intersectionUpdate",
|
|
137
|
-
finished:
|
|
134
|
+
return t.on("select", E), t.on("intersectionUpdate", u), t.on("disable", x), {
|
|
135
|
+
finished: m,
|
|
138
136
|
canUndo: M,
|
|
139
137
|
canRedo: O,
|
|
140
138
|
undo: W,
|
|
@@ -142,6 +140,6 @@ function K(n, t, e) {
|
|
|
142
140
|
};
|
|
143
141
|
}
|
|
144
142
|
export {
|
|
145
|
-
|
|
146
|
-
|
|
143
|
+
ne as Line,
|
|
144
|
+
J as createLine
|
|
147
145
|
};
|
|
@@ -3,7 +3,6 @@ import { BaseObject, type BaseImportData, type BaseObjectConfig } from '../Base'
|
|
|
3
3
|
import { PointEditor } from './Editor';
|
|
4
4
|
import type { PointSelector } from '../../../shared-utils/three/PointSelector';
|
|
5
5
|
import type { LiteralString } from '../../../typings/utils.type';
|
|
6
|
-
import type { CreateUtils } from '../../typings/style';
|
|
7
6
|
export interface PointImportData extends BaseImportData, PointData {
|
|
8
7
|
type: LiteralString<'Point'>;
|
|
9
8
|
style?: Partial<PointStyle>;
|
|
@@ -35,6 +34,6 @@ export declare class Point extends BaseObject<PointImportData> {
|
|
|
35
34
|
/**
|
|
36
35
|
* @description: 创建点
|
|
37
36
|
*/
|
|
38
|
-
create(params?: Partial<PointStyle
|
|
37
|
+
create(params?: Partial<PointStyle>): Promise<void>;
|
|
39
38
|
}
|
|
40
39
|
export declare function createPoint(pointMesh: PointMesh, pointSelector: PointSelector): Promise<void>;
|
|
@@ -1,51 +1,50 @@
|
|
|
1
|
-
var
|
|
1
|
+
var b = Object.defineProperty, g = Object.defineProperties;
|
|
2
2
|
var M = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var d = Object.getOwnPropertySymbols;
|
|
4
4
|
var P = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var c = (e, i, t) => i in e ? b(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, f = (e, i) => {
|
|
6
6
|
for (var t in i || (i = {}))
|
|
7
|
-
P.call(i, t) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
v.call(i, t) &&
|
|
7
|
+
P.call(i, t) && c(e, t, i[t]);
|
|
8
|
+
if (d)
|
|
9
|
+
for (var t of d(i))
|
|
10
|
+
v.call(i, t) && c(e, t, i[t]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var y = (e, i, t) => new Promise((
|
|
15
|
-
var r = (
|
|
12
|
+
}, m = (e, i) => g(e, M(i));
|
|
13
|
+
var p = (e, i, t) => (c(e, typeof i != "symbol" ? i + "" : i, t), t);
|
|
14
|
+
var y = (e, i, t) => new Promise((h, n) => {
|
|
15
|
+
var r = (s) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
17
|
+
o(t.next(s));
|
|
18
|
+
} catch (a) {
|
|
19
|
+
n(a);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, l = (s) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
|
|
23
|
+
o(t.throw(s));
|
|
24
|
+
} catch (a) {
|
|
25
|
+
n(a);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, o = (s) => s.done ? h(s.value) : Promise.resolve(s.value).then(r, l);
|
|
28
|
+
o((t = t.apply(e, i)).next());
|
|
29
29
|
});
|
|
30
|
-
import { PointMesh as
|
|
30
|
+
import { PointMesh as u } from "../../Meshes/Point.js";
|
|
31
31
|
import { BaseObject as w } from "../Base/index.js";
|
|
32
32
|
import { PointEditor as x } from "./Editor.js";
|
|
33
33
|
import { vector3ToArray as _ } from "../../../shared-utils/three/vector3ToArray.js";
|
|
34
34
|
import { anyPositionToVector3 as E } from "../../../shared-utils/positionToVector3.js";
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
t && (this.pointMesh = new b(l(l({}, t.style), t)), this.add(this.pointMesh));
|
|
35
|
+
class B extends w {
|
|
36
|
+
constructor(t, h) {
|
|
37
|
+
super(t, h);
|
|
38
|
+
p(this, "type", "Point");
|
|
39
|
+
p(this, "pointMesh");
|
|
40
|
+
p(this, "_editor");
|
|
41
|
+
t && (this.pointMesh = new u(f(f({}, t.style), t)), this.add(this.pointMesh));
|
|
43
42
|
}
|
|
44
43
|
get editor() {
|
|
45
44
|
return this._editor || (this._editor = new x(this)), this._editor;
|
|
46
45
|
}
|
|
47
46
|
get data() {
|
|
48
|
-
return
|
|
47
|
+
return m(f({}, this.baseData), {
|
|
49
48
|
point: _(this.applyObjectMatrixWorld(this.pointMesh.position)),
|
|
50
49
|
style: {
|
|
51
50
|
color: this.pointMesh.color.getHex(),
|
|
@@ -77,27 +76,26 @@ class F extends w {
|
|
|
77
76
|
*/
|
|
78
77
|
create(t) {
|
|
79
78
|
return y(this, null, function* () {
|
|
80
|
-
|
|
81
|
-
this.pointMesh && this.remove(this.pointMesh), this.currentPointSelector = (s = t == null ? void 0 : t.pointSelector) != null ? s : U.modules.pointSelector, this.add(this.pointMesh = new b(t)), yield j(this.pointMesh, this.currentPointSelector), this.config.defaultAction && this.editor.enable();
|
|
79
|
+
this.pointMesh && this.remove(this.pointMesh), this.add(this.pointMesh = new u(t)), yield U(this.pointMesh, this.pointSelector), this.config.defaultAction && this.editor.enable();
|
|
82
80
|
});
|
|
83
81
|
}
|
|
84
82
|
}
|
|
85
|
-
function
|
|
86
|
-
return new Promise((t,
|
|
83
|
+
function U(e, i) {
|
|
84
|
+
return new Promise((t, h) => {
|
|
87
85
|
i.enable(), e.visible = !1;
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
}, r = (
|
|
91
|
-
|
|
92
|
-
},
|
|
93
|
-
i.off("select", r), i.off("disable",
|
|
94
|
-
},
|
|
95
|
-
i.off("select", r), i.off("disable",
|
|
86
|
+
const n = (s) => {
|
|
87
|
+
s && (e.visible = !0, e.position.copy(s.point));
|
|
88
|
+
}, r = (s) => {
|
|
89
|
+
s && (e.visible = !0, e.position.copy(s.point), l());
|
|
90
|
+
}, l = () => {
|
|
91
|
+
i.off("select", r), i.off("disable", o), i.off("intersectionUpdate", n), i.disable(), t();
|
|
92
|
+
}, o = () => {
|
|
93
|
+
i.off("select", r), i.off("disable", o), i.off("intersectionUpdate", n), e.removeFromParent(), h(new Error("Cancelled"));
|
|
96
94
|
};
|
|
97
|
-
i.on("intersectionUpdate",
|
|
95
|
+
i.on("intersectionUpdate", n), i.on("disable", o), i.once("select", r);
|
|
98
96
|
});
|
|
99
97
|
}
|
|
100
98
|
export {
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
B as Point,
|
|
100
|
+
U as createPoint
|
|
103
101
|
};
|
|
@@ -4,7 +4,7 @@ import { PolygonEditor } from './Editor';
|
|
|
4
4
|
import type { PointSelector } from '../../../shared-utils/three/PointSelector';
|
|
5
5
|
import type { LiteralString } from '../../../typings/utils.type';
|
|
6
6
|
import type { PolygonData, PolygonStyle } from '../../Meshes/Polygon';
|
|
7
|
-
import type { CreateLimitConfig
|
|
7
|
+
import type { CreateLimitConfig } from '../../typings/style';
|
|
8
8
|
export interface PolygonImportData extends BaseImportData, PolygonData {
|
|
9
9
|
type: LiteralString<'Polygon'>;
|
|
10
10
|
style?: Partial<AreaStyle>;
|
|
@@ -33,7 +33,7 @@ export declare class Polygon extends BaseObject<PolygonImportData> {
|
|
|
33
33
|
canRedo(): void;
|
|
34
34
|
undo(): void;
|
|
35
35
|
redo(): void;
|
|
36
|
-
create(params?: Partial<PolygonStyle & CreateLimitConfig
|
|
36
|
+
create(params?: Partial<PolygonStyle & CreateLimitConfig>): Promise<void>;
|
|
37
37
|
}
|
|
38
38
|
export declare function createPolygon(areaMesh: AreaMesh, pointSelector: PointSelector, config?: Partial<CreateLimitConfig>): {
|
|
39
39
|
finished: Promise<void>;
|
|
@@ -2,54 +2,53 @@ var F = Object.defineProperty, I = Object.defineProperties;
|
|
|
2
2
|
var L = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var A = Object.getOwnPropertySymbols;
|
|
4
4
|
var N = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var E = (
|
|
6
|
-
for (var
|
|
7
|
-
N.call(
|
|
5
|
+
var E = (s, t, e) => t in s ? F(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, g = (s, t) => {
|
|
6
|
+
for (var e in t || (t = {}))
|
|
7
|
+
N.call(t, e) && E(s, e, t[e]);
|
|
8
8
|
if (A)
|
|
9
|
-
for (var
|
|
10
|
-
z.call(
|
|
11
|
-
return
|
|
12
|
-
}, O = (
|
|
13
|
-
var
|
|
14
|
-
var H = (
|
|
15
|
-
var
|
|
9
|
+
for (var e of A(t))
|
|
10
|
+
z.call(t, e) && E(s, e, t[e]);
|
|
11
|
+
return s;
|
|
12
|
+
}, O = (s, t) => I(s, L(t));
|
|
13
|
+
var u = (s, t, e) => (E(s, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
|
+
var H = (s, t, e) => new Promise((c, d) => {
|
|
15
|
+
var m = (i) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
f(e.next(i));
|
|
18
18
|
} catch (l) {
|
|
19
19
|
d(l);
|
|
20
20
|
}
|
|
21
21
|
}, r = (i) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
f(e.throw(i));
|
|
24
24
|
} catch (l) {
|
|
25
25
|
d(l);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, f = (i) => i.done ? c(i.value) : Promise.resolve(i.value).then(m, r);
|
|
28
|
+
f((e = e.apply(s, t)).next());
|
|
29
29
|
});
|
|
30
30
|
import { BaseObject as q } from "../Base/index.js";
|
|
31
|
-
import * as
|
|
31
|
+
import * as p from "three";
|
|
32
32
|
import { PolylineMesh as _ } from "../../Meshes/Polyline.js";
|
|
33
33
|
import { AreaMesh as D } from "../../Meshes/Area.js";
|
|
34
34
|
import { PolygonEditor as G } from "./Editor.js";
|
|
35
35
|
import { vector3ToArray as J } from "../../../shared-utils/three/vector3ToArray.js";
|
|
36
36
|
import { withResolvers as K } from "../../../shared-utils/promise/withResolvers.js";
|
|
37
37
|
import { anyPositionToVector3 as Q } from "../../../shared-utils/positionToVector3.js";
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
t && (this.areaMesh = new D(u(u({}, t.style), t)), this.add(this.areaMesh));
|
|
38
|
+
class ie extends q {
|
|
39
|
+
constructor(e, c) {
|
|
40
|
+
super(e, c);
|
|
41
|
+
u(this, "type", "Polygon");
|
|
42
|
+
u(this, "areaMesh");
|
|
43
|
+
u(this, "_editor");
|
|
44
|
+
u(this, "creatingObject");
|
|
45
|
+
e && (this.areaMesh = new D(g(g({}, e.style), e)), this.add(this.areaMesh));
|
|
47
46
|
}
|
|
48
47
|
get editor() {
|
|
49
48
|
return this._editor || (this._editor = new G(this)), this._editor;
|
|
50
49
|
}
|
|
51
50
|
get data() {
|
|
52
|
-
return this.updateMatrixWorld(), O(
|
|
51
|
+
return this.updateMatrixWorld(), O(g({}, this.baseData), {
|
|
53
52
|
points: J(this.applyObjectMatrixWorld(this.areaMesh.points)),
|
|
54
53
|
style: {
|
|
55
54
|
color: this.areaMesh.color.getHex(),
|
|
@@ -58,85 +57,84 @@ class rt extends q {
|
|
|
58
57
|
}
|
|
59
58
|
});
|
|
60
59
|
}
|
|
61
|
-
setData(
|
|
62
|
-
|
|
60
|
+
setData(e) {
|
|
61
|
+
e.points && this.areaMesh.setPoints(this.applyObjectReversalMatrixWorld(e.points.map(Q))), this.areaMesh.setStyle(e.style);
|
|
63
62
|
}
|
|
64
63
|
highlight() {
|
|
65
|
-
var
|
|
66
|
-
(
|
|
64
|
+
var e;
|
|
65
|
+
(e = this.areaMesh) == null || e.highlight();
|
|
67
66
|
}
|
|
68
67
|
unhighlight() {
|
|
69
|
-
var
|
|
70
|
-
(
|
|
68
|
+
var e;
|
|
69
|
+
(e = this.areaMesh) == null || e.unhighlight();
|
|
71
70
|
}
|
|
72
71
|
canUndo() {
|
|
73
|
-
var
|
|
74
|
-
(
|
|
72
|
+
var e;
|
|
73
|
+
(e = this.creatingObject) == null || e.canUndo();
|
|
75
74
|
}
|
|
76
75
|
canRedo() {
|
|
77
|
-
var
|
|
78
|
-
(
|
|
76
|
+
var e;
|
|
77
|
+
(e = this.creatingObject) == null || e.canRedo();
|
|
79
78
|
}
|
|
80
79
|
undo() {
|
|
81
|
-
var
|
|
82
|
-
(
|
|
80
|
+
var e;
|
|
81
|
+
(e = this.creatingObject) == null || e.undo();
|
|
83
82
|
}
|
|
84
83
|
redo() {
|
|
85
|
-
var
|
|
86
|
-
(
|
|
84
|
+
var e;
|
|
85
|
+
(e = this.creatingObject) == null || e.redo();
|
|
87
86
|
}
|
|
88
|
-
create(
|
|
87
|
+
create(e) {
|
|
89
88
|
return H(this, null, function* () {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
this.areaMesh = a, this.add(this.areaMesh), this.creatingObject = X(this.areaMesh, this.currentPointSelector, t), yield this.creatingObject.finished, this.config.defaultAction && this.editor.enable();
|
|
89
|
+
this.children.forEach((d) => {
|
|
90
|
+
d.parent === this && this.remove(d);
|
|
91
|
+
}), this.children.length = 0;
|
|
92
|
+
const c = new D(e);
|
|
93
|
+
this.areaMesh = c, this.add(this.areaMesh), this.creatingObject = X(this.areaMesh, this.pointSelector, e), yield this.creatingObject.finished, this.config.defaultAction && this.editor.enable();
|
|
96
94
|
});
|
|
97
95
|
}
|
|
98
96
|
}
|
|
99
|
-
function X(
|
|
97
|
+
function X(s, t, e) {
|
|
100
98
|
var U;
|
|
101
|
-
const { promise:
|
|
99
|
+
const { promise: c, resolve: d, reject: m } = K(), r = s.parent;
|
|
102
100
|
if (!r) {
|
|
103
|
-
|
|
101
|
+
m(new Error("No container"));
|
|
104
102
|
return;
|
|
105
103
|
}
|
|
106
|
-
const
|
|
104
|
+
const f = (U = e == null ? void 0 : e.limit) != null ? U : "none", i = new _(s.style);
|
|
107
105
|
r == null || r.add(i);
|
|
108
|
-
const l = new _(O(
|
|
109
|
-
r == null || r.add(l),
|
|
110
|
-
const
|
|
111
|
-
let n,
|
|
112
|
-
const y = [], x = () =>
|
|
113
|
-
x() && (y.push(
|
|
106
|
+
const l = new _(O(g({}, s.style), { dashed: !0, lengthEnable: !1 }));
|
|
107
|
+
r == null || r.add(l), t.enable();
|
|
108
|
+
const o = [];
|
|
109
|
+
let n, h, v = !1, C;
|
|
110
|
+
const y = [], x = () => o.length > 0, M = () => y.length > 0, k = () => {
|
|
111
|
+
x() && (y.push(o.pop()), w(C), t.pointSelectorHelper.magnifier.render());
|
|
114
112
|
}, B = () => {
|
|
115
|
-
M() && (
|
|
116
|
-
}, R = (
|
|
113
|
+
M() && (o.push(y.pop()), w(C), t.pointSelectorHelper.magnifier.render());
|
|
114
|
+
}, R = (a) => {
|
|
117
115
|
y.length = 0;
|
|
118
|
-
const b =
|
|
119
|
-
|
|
120
|
-
}, w = (
|
|
116
|
+
const b = o.length === 0 ? a.point : n.clone();
|
|
117
|
+
o.push(b), s.setPoints(o, { closed: !1 }), v && (W(), d());
|
|
118
|
+
}, w = (a) => {
|
|
121
119
|
const b = () => {
|
|
122
|
-
i.setPoints([]), l.setPoints([]),
|
|
120
|
+
i.setPoints([]), l.setPoints([]), s.setPoints(o), t.pointSelectorHelper.magnifier.render();
|
|
123
121
|
};
|
|
124
|
-
if (!
|
|
122
|
+
if (!a || (C = a, !(o != null && o.length)))
|
|
125
123
|
return b();
|
|
126
|
-
const
|
|
127
|
-
if (
|
|
128
|
-
n =
|
|
129
|
-
const j =
|
|
130
|
-
j.distanceTo(n) < V || j.distanceTo(
|
|
124
|
+
const P = o.at(-1).clone();
|
|
125
|
+
if (o.length < 3 && (f === "none" ? (n = a.point, i.setPoints([P, n]), l.setPoints([])) : f === "xoz" ? (h = h != null ? h : new p.Plane().setFromNormalAndCoplanarPoint(new p.Vector3(0, 1, 0), o[0]), t.plane = h, n = h.projectPoint(a.point, new p.Vector3()), i.setPoints([P, n]), l.setPoints([n, a.point])) : f === "y" && (o.length === 1 ? (n = a.point, i.setPoints([P, n]), l.setPoints([])) : (h = h != null ? h : new p.Plane().setFromCoplanarPoints(o[0], o[1], new p.Vector3(0, 1, 0).add(o[0])), t.plane = h, n = h.projectPoint(a.point, new p.Vector3()), i.setPoints([P, n]), l.setPoints([n, a.point])))), o.length >= 3) {
|
|
126
|
+
n = s.projectPoint(a.point);
|
|
127
|
+
const j = o[0], V = 0.2;
|
|
128
|
+
j.distanceTo(n) < V || j.distanceTo(a.point) < V ? (n = j, a.point.copy(j), t.pointSelectorHelper.updateWithIntersect(a, { emitEvent: !1 }), v = !0) : v = !1, i.setPoints([P, n]), l.setPoints([n, a.point]);
|
|
131
129
|
}
|
|
132
|
-
|
|
130
|
+
o.length >= 2 ? (s.setPoints([...o, n], { closed: !1 }), s.line.setPoints(s.points.slice(0, -1)), s.isBlank ? (t.cursorError = !0, i.setStyle({ lineColor: 16734553 }), l.setStyle({ lineColor: 16734553 })) : (t.cursorError = !1, i.setStyle({ lineColor: s.lineColor }), l.setStyle({ lineColor: s.lineColor }))) : s.setPoints([]);
|
|
133
131
|
}, W = () => {
|
|
134
|
-
|
|
132
|
+
t.off("select", R), t.off("intersectionUpdate", w), t.off("disable", T), t.plane = null, t.disable(), r == null || r.remove(i, l);
|
|
135
133
|
}, T = () => {
|
|
136
|
-
W(), r == null || r.remove(
|
|
134
|
+
W(), r == null || r.remove(s, l, i), m(new Error("Cancelled"));
|
|
137
135
|
};
|
|
138
|
-
return
|
|
139
|
-
finished:
|
|
136
|
+
return t.on("select", R), t.on("intersectionUpdate", w), t.on("disable", T), {
|
|
137
|
+
finished: c,
|
|
140
138
|
canUndo: x,
|
|
141
139
|
canRedo: M,
|
|
142
140
|
undo: k,
|
|
@@ -144,6 +142,6 @@ function X(o, e, t) {
|
|
|
144
142
|
};
|
|
145
143
|
}
|
|
146
144
|
export {
|
|
147
|
-
|
|
145
|
+
ie as Polygon,
|
|
148
146
|
X as createPolygon
|
|
149
147
|
};
|
|
@@ -3,7 +3,7 @@ import { BaseObject, type BaseImportData, type BaseObjectConfig } from '../Base'
|
|
|
3
3
|
import { PolylineEditor } from './Editor';
|
|
4
4
|
import type { PointSelector } from '../../../shared-utils/three/PointSelector';
|
|
5
5
|
import type { LiteralString } from '../../../typings/utils.type';
|
|
6
|
-
import type { CreateLimitConfig
|
|
6
|
+
import type { CreateLimitConfig } from '../../typings/style';
|
|
7
7
|
export interface PolylineImportData extends BaseImportData, PolylineData {
|
|
8
8
|
type: LiteralString<'Polyline'>;
|
|
9
9
|
style?: Partial<PolylineStyle>;
|
|
@@ -32,7 +32,7 @@ export declare class Polyline extends BaseObject<PolylineImportData> {
|
|
|
32
32
|
canRedo(): void;
|
|
33
33
|
undo(): void;
|
|
34
34
|
redo(): void;
|
|
35
|
-
create(params?: Partial<PolylineStyle & CreateLimitConfig
|
|
35
|
+
create(params?: Partial<PolylineStyle & CreateLimitConfig>): Promise<void>;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* @description 绘制折线
|