@realsee/dnalogel 3.61.0 → 3.61.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Sculpt/Objects/Base/index.d.ts +4 -1
- package/dist/Sculpt/Objects/Box/index.d.ts +2 -2
- package/dist/Sculpt/Objects/Circle/index.d.ts +2 -1
- package/dist/Sculpt/Objects/Cylinder/index.d.ts +2 -1
- package/dist/Sculpt/Objects/Line/index.d.ts +2 -2
- package/dist/Sculpt/Objects/Point/index.d.ts +2 -1
- 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 +2 -1
- package/dist/Sculpt/Objects/Rectangle/index.d.ts +2 -2
- package/dist/Sculpt/index.d.ts +17 -14
- package/dist/Sculpt/typings/style.d.ts +7 -0
- package/dist/Sculpt/utils/Modules/Global.d.ts +4 -0
- package/dist/index.cjs.js +31 -31
- package/dist/index.js +1641 -1582
- package/dist/index.umd.js +32 -32
- package/dist/shared-utils/three/PointSelector/index.d.ts +25 -0
- 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 +3 -3
- 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 +17 -11
- 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 +10 -10
- 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/Sculpt/Objects/Base/index.d.ts +4 -1
- package/libs/Sculpt/Objects/Base/index.js +27 -23
- package/libs/Sculpt/Objects/Box/index.d.ts +2 -2
- package/libs/Sculpt/Objects/Box/index.js +46 -44
- package/libs/Sculpt/Objects/Circle/index.d.ts +2 -1
- package/libs/Sculpt/Objects/Circle/index.js +57 -55
- package/libs/Sculpt/Objects/Cylinder/index.d.ts +2 -1
- package/libs/Sculpt/Objects/Cylinder/index.js +31 -29
- package/libs/Sculpt/Objects/Line/index.d.ts +2 -2
- package/libs/Sculpt/Objects/Line/index.js +42 -40
- package/libs/Sculpt/Objects/Point/index.d.ts +2 -1
- package/libs/Sculpt/Objects/Point/index.js +45 -43
- package/libs/Sculpt/Objects/Polygon/index.d.ts +2 -2
- package/libs/Sculpt/Objects/Polygon/index.js +74 -72
- package/libs/Sculpt/Objects/Polyline/index.d.ts +2 -2
- package/libs/Sculpt/Objects/Polyline/index.js +36 -34
- package/libs/Sculpt/Objects/Prism/index.d.ts +2 -1
- package/libs/Sculpt/Objects/Prism/index.js +54 -52
- package/libs/Sculpt/Objects/Rectangle/index.d.ts +2 -2
- package/libs/Sculpt/Objects/Rectangle/index.js +67 -66
- package/libs/Sculpt/index.d.ts +17 -14
- package/libs/Sculpt/index.js +76 -68
- package/libs/Sculpt/typings/style.d.ts +7 -0
- package/libs/Sculpt/utils/Modules/Global.d.ts +4 -0
- package/libs/Sculpt/utils/Modules/Global.js +24 -12
- package/libs/base/BasePlugin.js +5 -5
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/index.d.ts +25 -0
- package/libs/shared-utils/three/PointSelector/index.js +32 -6
- package/package.json +1 -1
|
@@ -2,53 +2,54 @@ 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 = (o, e, t) => e in o ? F(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, u = (o, e) => {
|
|
6
|
+
for (var t in e || (e = {}))
|
|
7
|
+
N.call(e, t) && E(o, t, e[t]);
|
|
8
8
|
if (A)
|
|
9
|
-
for (var
|
|
10
|
-
z.call(
|
|
11
|
-
return
|
|
12
|
-
}, O = (
|
|
13
|
-
var
|
|
14
|
-
var H = (
|
|
15
|
-
var
|
|
9
|
+
for (var t of A(e))
|
|
10
|
+
z.call(e, t) && E(o, t, e[t]);
|
|
11
|
+
return o;
|
|
12
|
+
}, O = (o, e) => I(o, L(e));
|
|
13
|
+
var m = (o, e, t) => (E(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
|
+
var H = (o, e, t) => new Promise((a, d) => {
|
|
15
|
+
var f = (i) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
p(t.next(i));
|
|
18
18
|
} catch (l) {
|
|
19
19
|
d(l);
|
|
20
20
|
}
|
|
21
21
|
}, r = (i) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
p(t.throw(i));
|
|
24
24
|
} catch (l) {
|
|
25
25
|
d(l);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, p = (i) => i.done ? a(i.value) : Promise.resolve(i.value).then(f, r);
|
|
28
|
+
p((t = t.apply(o, e)).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
|
-
|
|
38
|
+
import { Sculpt as S } from "../../index.js";
|
|
39
|
+
class rt extends q {
|
|
40
|
+
constructor(t, a) {
|
|
41
|
+
super(t, a);
|
|
42
|
+
m(this, "type", "Polygon");
|
|
43
|
+
m(this, "areaMesh");
|
|
44
|
+
m(this, "_editor");
|
|
45
|
+
m(this, "creatingObject");
|
|
46
|
+
t && (this.areaMesh = new D(u(u({}, t.style), t)), this.add(this.areaMesh));
|
|
46
47
|
}
|
|
47
48
|
get editor() {
|
|
48
49
|
return this._editor || (this._editor = new G(this)), this._editor;
|
|
49
50
|
}
|
|
50
51
|
get data() {
|
|
51
|
-
return this.updateMatrixWorld(), O(
|
|
52
|
+
return this.updateMatrixWorld(), O(u({}, this.baseData), {
|
|
52
53
|
points: J(this.applyObjectMatrixWorld(this.areaMesh.points)),
|
|
53
54
|
style: {
|
|
54
55
|
color: this.areaMesh.color.getHex(),
|
|
@@ -57,84 +58,85 @@ class ie extends q {
|
|
|
57
58
|
}
|
|
58
59
|
});
|
|
59
60
|
}
|
|
60
|
-
setData(
|
|
61
|
-
|
|
61
|
+
setData(t) {
|
|
62
|
+
t.points && this.areaMesh.setPoints(this.applyObjectReversalMatrixWorld(t.points.map(Q))), this.areaMesh.setStyle(t.style);
|
|
62
63
|
}
|
|
63
64
|
highlight() {
|
|
64
|
-
var
|
|
65
|
-
(
|
|
65
|
+
var t;
|
|
66
|
+
(t = this.areaMesh) == null || t.highlight();
|
|
66
67
|
}
|
|
67
68
|
unhighlight() {
|
|
68
|
-
var
|
|
69
|
-
(
|
|
69
|
+
var t;
|
|
70
|
+
(t = this.areaMesh) == null || t.unhighlight();
|
|
70
71
|
}
|
|
71
72
|
canUndo() {
|
|
72
|
-
var
|
|
73
|
-
(
|
|
73
|
+
var t;
|
|
74
|
+
(t = this.creatingObject) == null || t.canUndo();
|
|
74
75
|
}
|
|
75
76
|
canRedo() {
|
|
76
|
-
var
|
|
77
|
-
(
|
|
77
|
+
var t;
|
|
78
|
+
(t = this.creatingObject) == null || t.canRedo();
|
|
78
79
|
}
|
|
79
80
|
undo() {
|
|
80
|
-
var
|
|
81
|
-
(
|
|
81
|
+
var t;
|
|
82
|
+
(t = this.creatingObject) == null || t.undo();
|
|
82
83
|
}
|
|
83
84
|
redo() {
|
|
84
|
-
var
|
|
85
|
-
(
|
|
85
|
+
var t;
|
|
86
|
+
(t = this.creatingObject) == null || t.redo();
|
|
86
87
|
}
|
|
87
|
-
create(
|
|
88
|
+
create(t) {
|
|
88
89
|
return H(this, null, function* () {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
var d;
|
|
91
|
+
this.children.forEach((f) => {
|
|
92
|
+
f.parent === this && this.remove(f);
|
|
93
|
+
}), this.children.length = 0, this.currentPointSelector = (d = t == null ? void 0 : t.pointSelector) != null ? d : S.modules.pointSelector;
|
|
94
|
+
const a = new D(t);
|
|
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();
|
|
94
96
|
});
|
|
95
97
|
}
|
|
96
98
|
}
|
|
97
|
-
function X(
|
|
99
|
+
function X(o, e, t) {
|
|
98
100
|
var U;
|
|
99
|
-
const { promise:
|
|
101
|
+
const { promise: a, resolve: d, reject: f } = K(), r = o.parent;
|
|
100
102
|
if (!r) {
|
|
101
|
-
|
|
103
|
+
f(new Error("No container"));
|
|
102
104
|
return;
|
|
103
105
|
}
|
|
104
|
-
const
|
|
106
|
+
const p = (U = t == null ? void 0 : t.limit) != null ? U : "none", i = new _(o.style);
|
|
105
107
|
r == null || r.add(i);
|
|
106
|
-
const l = new _(O(
|
|
107
|
-
r == null || r.add(l),
|
|
108
|
-
const
|
|
109
|
-
let n,
|
|
110
|
-
const y = [], x = () =>
|
|
111
|
-
x() && (y.push(
|
|
108
|
+
const l = new _(O(u({}, o.style), { dashed: !0, lengthEnable: !1 }));
|
|
109
|
+
r == null || r.add(l), e.enable();
|
|
110
|
+
const s = [];
|
|
111
|
+
let n, c, v = !1, C;
|
|
112
|
+
const y = [], x = () => s.length > 0, M = () => y.length > 0, k = () => {
|
|
113
|
+
x() && (y.push(s.pop()), w(C), e.pointSelectorHelper.magnifier.render());
|
|
112
114
|
}, B = () => {
|
|
113
|
-
M() && (
|
|
114
|
-
}, R = (
|
|
115
|
+
M() && (s.push(y.pop()), w(C), e.pointSelectorHelper.magnifier.render());
|
|
116
|
+
}, R = (h) => {
|
|
115
117
|
y.length = 0;
|
|
116
|
-
const b =
|
|
117
|
-
|
|
118
|
-
}, w = (
|
|
118
|
+
const b = s.length === 0 ? h.point : n.clone();
|
|
119
|
+
s.push(b), o.setPoints(s, { closed: !1 }), v && (W(), d());
|
|
120
|
+
}, w = (h) => {
|
|
119
121
|
const b = () => {
|
|
120
|
-
i.setPoints([]), l.setPoints([]),
|
|
122
|
+
i.setPoints([]), l.setPoints([]), o.setPoints(s), e.pointSelectorHelper.magnifier.render();
|
|
121
123
|
};
|
|
122
|
-
if (!
|
|
124
|
+
if (!h || (C = h, !(s != null && s.length)))
|
|
123
125
|
return b();
|
|
124
|
-
const
|
|
125
|
-
if (
|
|
126
|
-
n =
|
|
127
|
-
const j =
|
|
128
|
-
j.distanceTo(n) < V || j.distanceTo(
|
|
126
|
+
const g = s.at(-1).clone();
|
|
127
|
+
if (s.length < 3 && (p === "none" ? (n = h.point, i.setPoints([g, n]), l.setPoints([])) : p === "xoz" ? (c = c != null ? c : new P.Plane().setFromNormalAndCoplanarPoint(new P.Vector3(0, 1, 0), s[0]), e.plane = c, n = c.projectPoint(h.point, new P.Vector3()), i.setPoints([g, n]), l.setPoints([n, h.point])) : p === "y" && (s.length === 1 ? (n = h.point, i.setPoints([g, n]), l.setPoints([])) : (c = c != null ? c : new P.Plane().setFromCoplanarPoints(s[0], s[1], new P.Vector3(0, 1, 0).add(s[0])), e.plane = c, n = c.projectPoint(h.point, new P.Vector3()), i.setPoints([g, n]), l.setPoints([n, h.point])))), s.length >= 3) {
|
|
128
|
+
n = o.projectPoint(h.point);
|
|
129
|
+
const j = s[0], V = 0.2;
|
|
130
|
+
j.distanceTo(n) < V || j.distanceTo(h.point) < V ? (n = j, h.point.copy(j), e.pointSelectorHelper.updateWithIntersect(h, { emitEvent: !1 }), v = !0) : v = !1, i.setPoints([g, n]), l.setPoints([n, h.point]);
|
|
129
131
|
}
|
|
130
|
-
|
|
132
|
+
s.length >= 2 ? (o.setPoints([...s, n], { closed: !1 }), o.line.setPoints(o.points.slice(0, -1)), o.isBlank ? (e.cursorError = !0, i.setStyle({ lineColor: 16734553 }), l.setStyle({ lineColor: 16734553 })) : (e.cursorError = !1, i.setStyle({ lineColor: o.lineColor }), l.setStyle({ lineColor: o.lineColor }))) : o.setPoints([]);
|
|
131
133
|
}, W = () => {
|
|
132
|
-
|
|
134
|
+
e.off("select", R), e.off("intersectionUpdate", w), e.off("disable", T), e.plane = null, e.disable(), r == null || r.remove(i, l);
|
|
133
135
|
}, T = () => {
|
|
134
|
-
W(), r == null || r.remove(
|
|
136
|
+
W(), r == null || r.remove(o, l, i), f(new Error("Cancelled"));
|
|
135
137
|
};
|
|
136
|
-
return
|
|
137
|
-
finished:
|
|
138
|
+
return e.on("select", R), e.on("intersectionUpdate", w), e.on("disable", T), {
|
|
139
|
+
finished: a,
|
|
138
140
|
canUndo: x,
|
|
139
141
|
canRedo: M,
|
|
140
142
|
undo: k,
|
|
@@ -142,6 +144,6 @@ function X(s, t, e) {
|
|
|
142
144
|
};
|
|
143
145
|
}
|
|
144
146
|
export {
|
|
145
|
-
|
|
147
|
+
rt as Polygon,
|
|
146
148
|
X as createPolygon
|
|
147
149
|
};
|
|
@@ -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 } from '../../typings/style';
|
|
6
|
+
import type { CreateLimitConfig, CreateUtils } 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>): Promise<void>;
|
|
35
|
+
create(params?: Partial<PolylineStyle & CreateLimitConfig & CreateUtils>): Promise<void>;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* @description 绘制折线
|
|
@@ -2,7 +2,7 @@ var A = Object.defineProperty, D = Object.defineProperties;
|
|
|
2
2
|
var T = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var R = Object.getOwnPropertySymbols;
|
|
4
4
|
var F = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var v = (n, t, e) => t in n ? A(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e,
|
|
5
|
+
var v = (n, t, e) => t in n ? A(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, P = (n, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
7
|
F.call(t, e) && v(n, e, t[e]);
|
|
8
8
|
if (R)
|
|
@@ -11,46 +11,47 @@ var v = (n, t, e) => t in n ? A(n, t, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return n;
|
|
12
12
|
}, M = (n, t) => D(n, T(t));
|
|
13
13
|
var f = (n, t, e) => (v(n, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
|
-
var E = (n, t, e) => new Promise((s,
|
|
14
|
+
var E = (n, t, e) => new Promise((s, d) => {
|
|
15
15
|
var w = (o) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
17
|
+
a(e.next(o));
|
|
18
|
+
} catch (c) {
|
|
19
|
+
d(c);
|
|
20
20
|
}
|
|
21
21
|
}, b = (o) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
|
|
23
|
+
a(e.throw(o));
|
|
24
|
+
} catch (c) {
|
|
25
|
+
d(c);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, a = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(w, b);
|
|
28
|
+
a((e = e.apply(n, t)).next());
|
|
29
29
|
});
|
|
30
30
|
import { PolylineMesh as U, PolylineWithDotsMesh as V } from "../../Meshes/Polyline.js";
|
|
31
31
|
import { BaseObject as z } from "../Base/index.js";
|
|
32
|
-
import * as
|
|
32
|
+
import * as p from "three";
|
|
33
33
|
import { PolylineEditor as B } from "./Editor.js";
|
|
34
34
|
import { vector3ToArray as H } from "../../../shared-utils/three/vector3ToArray.js";
|
|
35
35
|
import { withResolvers as I } from "../../../shared-utils/promise/withResolvers.js";
|
|
36
36
|
import { anyPositionToVector3 as N } from "../../../shared-utils/positionToVector3.js";
|
|
37
|
-
|
|
37
|
+
import { Sculpt as q } from "../../index.js";
|
|
38
|
+
class ee extends z {
|
|
38
39
|
constructor(e, s) {
|
|
39
40
|
super(e, s);
|
|
40
41
|
f(this, "type", "Polyline");
|
|
41
42
|
f(this, "polyLineMesh");
|
|
42
43
|
f(this, "_editor");
|
|
43
44
|
f(this, "creatingObject");
|
|
44
|
-
e && (this.polyLineMesh = new V(
|
|
45
|
+
e && (this.polyLineMesh = new V(P(P({}, e.style), e)), this.add(this.polyLineMesh));
|
|
45
46
|
}
|
|
46
47
|
get editor() {
|
|
47
48
|
return this._editor || (this._editor = new B(this)), this._editor;
|
|
48
49
|
}
|
|
49
50
|
get data() {
|
|
50
|
-
return M(
|
|
51
|
+
return M(P({}, this.baseData), {
|
|
51
52
|
points: H(this.applyObjectMatrixWorld(this.polyLineMesh.points)),
|
|
52
53
|
style: {
|
|
53
|
-
lineColor: new
|
|
54
|
+
lineColor: new p.Color(this.polyLineMesh.lineColor).getHex(),
|
|
54
55
|
lineWidth: this.polyLineMesh.lineWidth,
|
|
55
56
|
dashed: this.polyLineMesh.dashed
|
|
56
57
|
}
|
|
@@ -85,46 +86,47 @@ class $ extends z {
|
|
|
85
86
|
}
|
|
86
87
|
create(e) {
|
|
87
88
|
return E(this, null, function* () {
|
|
88
|
-
|
|
89
|
+
var d;
|
|
90
|
+
this.removeChildren(), this.currentPointSelector = (d = e == null ? void 0 : e.pointSelector) != null ? d : q.modules.pointSelector;
|
|
89
91
|
const s = new V(e);
|
|
90
|
-
this.polyLineMesh = s, this.add(this.polyLineMesh), this.creatingObject =
|
|
92
|
+
this.polyLineMesh = s, this.add(this.polyLineMesh), this.creatingObject = G(s, this.currentPointSelector, e), yield this.creatingObject.finished, this.config.defaultAction && this.editor.enable();
|
|
91
93
|
});
|
|
92
94
|
}
|
|
93
95
|
}
|
|
94
|
-
function
|
|
96
|
+
function G(n, t, e) {
|
|
95
97
|
var x;
|
|
96
98
|
const s = n.parent;
|
|
97
99
|
if (!s)
|
|
98
100
|
return;
|
|
99
|
-
const { promise:
|
|
101
|
+
const { promise: d, resolve: w, reject: b } = I(), a = (x = e == null ? void 0 : e.limit) != null ? x : "none", o = new U(n.style);
|
|
100
102
|
s.add(o);
|
|
101
|
-
const
|
|
102
|
-
s.add(
|
|
103
|
+
const c = new U(M(P({}, n.style), { dashed: !0, lengthEnable: !1 }));
|
|
104
|
+
s.add(c), t.enable();
|
|
103
105
|
const i = [];
|
|
104
106
|
let r, l, j;
|
|
105
|
-
const
|
|
106
|
-
L() && (
|
|
107
|
+
const u = [], L = () => i.length > 0, O = () => u.length > 0, W = () => {
|
|
108
|
+
L() && (u.push(i.pop()), n.setPoints(i), y(j), t.pointSelectorHelper.magnifier.render());
|
|
107
109
|
}, _ = () => {
|
|
108
|
-
O() && (i.push(
|
|
110
|
+
O() && (i.push(u.pop()), n.setPoints(i), y(j), t.pointSelectorHelper.magnifier.render());
|
|
109
111
|
}, C = (h) => {
|
|
110
|
-
|
|
112
|
+
u.length = 0;
|
|
111
113
|
const g = i.length === 0 ? h.point : r.clone();
|
|
112
114
|
i.push(g), n.setPoints(i);
|
|
113
|
-
},
|
|
115
|
+
}, y = (h) => {
|
|
114
116
|
const g = () => {
|
|
115
|
-
o.setPoints([]),
|
|
117
|
+
o.setPoints([]), c.setPoints([]), r = null;
|
|
116
118
|
};
|
|
117
119
|
if (!h || (j = h, !(i != null && i.length)))
|
|
118
120
|
return g();
|
|
119
|
-
const
|
|
120
|
-
|
|
121
|
+
const m = i.at(-1).clone();
|
|
122
|
+
a === "none" ? (r = h.point, o.setPoints([m, r])) : a === "xoz" ? (l = l != null ? l : new p.Plane().setFromNormalAndCoplanarPoint(new p.Vector3(0, 1, 0), i[0]), t.plane = l, r = l.projectPoint(h.point, new p.Vector3()), o.setPoints([m, r]), c.setPoints([r, h.point])) : a === "y" && (i.length === 1 ? (r = h.point, o.setPoints([m, r])) : (l = l != null ? l : new p.Plane().setFromCoplanarPoints(i[0], i[1], new p.Vector3(0, 1, 0).add(i[0])), t.plane = l, r = l.projectPoint(h.point, new p.Vector3()), o.setPoints([m, r]), c.setPoints([r, h.point])));
|
|
121
123
|
};
|
|
122
|
-
return t.on("select", C), t.on("intersectionUpdate",
|
|
123
|
-
if (t.off("select", C), t.off("intersectionUpdate",
|
|
124
|
+
return t.on("select", C), t.on("intersectionUpdate", y), t.on("disable", () => {
|
|
125
|
+
if (t.off("select", C), t.off("intersectionUpdate", y), t.plane = null, s.remove(o), s.remove(c), i.length < 2)
|
|
124
126
|
return s.remove(n), b(new Error("Cancelled"));
|
|
125
127
|
w();
|
|
126
128
|
}), {
|
|
127
|
-
finished:
|
|
129
|
+
finished: d,
|
|
128
130
|
canUndo: L,
|
|
129
131
|
canRedo: O,
|
|
130
132
|
undo: W,
|
|
@@ -132,6 +134,6 @@ function q(n, t, e) {
|
|
|
132
134
|
};
|
|
133
135
|
}
|
|
134
136
|
export {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
+
ee as Polyline,
|
|
138
|
+
G as createPolyline
|
|
137
139
|
};
|
|
@@ -3,6 +3,7 @@ import { PrismMesh, type PrismData, type PrismStyle } from '../../Meshes/Prism';
|
|
|
3
3
|
import type { PointSelector } from '../../../shared-utils/three/PointSelector';
|
|
4
4
|
import { PrismMeshEditor } from '../../Editors/PrismMeshEditor';
|
|
5
5
|
import type { LiteralString } from '../../../typings/utils.type';
|
|
6
|
+
import type { CreateUtils } from '../../typings/style';
|
|
6
7
|
export interface PrismImportData extends BaseImportData, PrismData {
|
|
7
8
|
type: LiteralString<'Prism'>;
|
|
8
9
|
style?: Partial<PrismStyle>;
|
|
@@ -27,6 +28,6 @@ export declare class Prism extends BaseObject<PrismImportData> {
|
|
|
27
28
|
setData(data: Partial<PrismImportData>): void;
|
|
28
29
|
highlight(): void;
|
|
29
30
|
unhighlight(): void;
|
|
30
|
-
create(params?: Partial<PrismStyle>): Promise<void>;
|
|
31
|
+
create(params?: Partial<PrismStyle & CreateUtils>): Promise<void>;
|
|
31
32
|
}
|
|
32
33
|
export declare function createPrism(prismMesh: PrismMesh, pointSelector: PointSelector): Promise<void>;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
var W = Object.defineProperty, _ = Object.defineProperties;
|
|
2
2
|
var j = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var b = Object.getOwnPropertySymbols;
|
|
4
4
|
var E = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var d = (
|
|
6
|
-
for (var
|
|
7
|
-
E.call(
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
L.call(
|
|
11
|
-
return
|
|
12
|
-
}, w = (
|
|
13
|
-
var
|
|
14
|
-
var f = (
|
|
15
|
-
var
|
|
5
|
+
var d = (e, i, t) => i in e ? W(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, c = (e, i) => {
|
|
6
|
+
for (var t in i || (i = {}))
|
|
7
|
+
E.call(i, t) && d(e, t, i[t]);
|
|
8
|
+
if (b)
|
|
9
|
+
for (var t of b(i))
|
|
10
|
+
L.call(i, t) && d(e, t, i[t]);
|
|
11
|
+
return e;
|
|
12
|
+
}, w = (e, i) => _(e, j(i));
|
|
13
|
+
var a = (e, i, t) => (d(e, typeof i != "symbol" ? i + "" : i, t), t);
|
|
14
|
+
var f = (e, i, t) => new Promise((s, r) => {
|
|
15
|
+
var m = (o) => {
|
|
16
16
|
try {
|
|
17
|
-
n(
|
|
17
|
+
n(t.next(o));
|
|
18
18
|
} catch (h) {
|
|
19
19
|
r(h);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, p = (o) => {
|
|
22
22
|
try {
|
|
23
|
-
n(
|
|
23
|
+
n(t.throw(o));
|
|
24
24
|
} catch (h) {
|
|
25
25
|
r(h);
|
|
26
26
|
}
|
|
27
|
-
}, n = (o) => o.done ?
|
|
28
|
-
n((
|
|
27
|
+
}, n = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(m, p);
|
|
28
|
+
n((t = t.apply(e, i)).next());
|
|
29
29
|
});
|
|
30
|
-
import { BaseObject as
|
|
31
|
-
import * as
|
|
30
|
+
import { BaseObject as C } from "../Base/index.js";
|
|
31
|
+
import * as A from "three";
|
|
32
32
|
import { createPolygon as R } from "../Polygon/index.js";
|
|
33
33
|
import { PrismMesh as v } from "../../Meshes/Prism.js";
|
|
34
34
|
import { LineMesh as T } from "../../Meshes/Line.js";
|
|
@@ -38,19 +38,20 @@ import { getNormal as B } from "../../../shared-utils/three/getNormal.js";
|
|
|
38
38
|
import { vector3ToArray as x } from "../../../shared-utils/three/vector3ToArray.js";
|
|
39
39
|
import { AreaMesh as N } from "../../Meshes/Area.js";
|
|
40
40
|
import { anyPositionToVector3 as H } from "../../../shared-utils/positionToVector3.js";
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
41
|
+
import { Sculpt as S } from "../../index.js";
|
|
42
|
+
class $ extends C {
|
|
43
|
+
constructor(t, s) {
|
|
44
|
+
super(t, s);
|
|
45
|
+
a(this, "type", "Prism");
|
|
46
|
+
a(this, "prismMesh");
|
|
47
|
+
a(this, "_editor");
|
|
48
|
+
t && (this.prismMesh = new v(c(c({}, t.style), t)), this.add(this.prismMesh));
|
|
48
49
|
}
|
|
49
50
|
get editor() {
|
|
50
51
|
return this._editor || (this._editor = new D(this.prismMesh)), this._editor;
|
|
51
52
|
}
|
|
52
53
|
get data() {
|
|
53
|
-
return w(
|
|
54
|
+
return w(c({}, this.baseData), {
|
|
54
55
|
points: x(this.applyObjectMatrixWorld(this.prismMesh.bottomPositions, this.prismMesh)),
|
|
55
56
|
heightPoint: x(this.applyObjectMatrixWorld(this.prismMesh.topPosition, this.prismMesh)),
|
|
56
57
|
style: {
|
|
@@ -60,54 +61,55 @@ class Z extends A {
|
|
|
60
61
|
}
|
|
61
62
|
});
|
|
62
63
|
}
|
|
63
|
-
setData(
|
|
64
|
+
setData(t) {
|
|
64
65
|
this.prismMesh.setPoints({
|
|
65
|
-
points:
|
|
66
|
-
heightPoint:
|
|
67
|
-
}), this.prismMesh.setStyle(
|
|
66
|
+
points: t.points ? this.applyObjectReversalMatrixWorld(t.points.map(H), this.prismMesh) : void 0,
|
|
67
|
+
heightPoint: t.heightPoint ? this.applyObjectReversalMatrixWorld(H(t.heightPoint), this.prismMesh) : void 0
|
|
68
|
+
}), this.prismMesh.setStyle(t.style), this._editor && this._editor.initialHelperMatrix();
|
|
68
69
|
}
|
|
69
70
|
highlight() {
|
|
70
|
-
var
|
|
71
|
-
(
|
|
71
|
+
var t;
|
|
72
|
+
(t = this.prismMesh) == null || t.highlight();
|
|
72
73
|
}
|
|
73
74
|
unhighlight() {
|
|
74
|
-
var
|
|
75
|
-
(
|
|
75
|
+
var t;
|
|
76
|
+
(t = this.prismMesh) == null || t.unhighlight();
|
|
76
77
|
}
|
|
77
|
-
create(
|
|
78
|
+
create(t) {
|
|
78
79
|
return f(this, null, function* () {
|
|
79
|
-
|
|
80
|
+
var s;
|
|
81
|
+
this.removeChildren(), this.currentPointSelector = (s = t == null ? void 0 : t.pointSelector) != null ? s : S.modules.pointSelector, this.prismMesh = new v(t), this.add(this.prismMesh), yield V(this.prismMesh, this.currentPointSelector), this.config.defaultAction && this.editor.enable();
|
|
80
82
|
});
|
|
81
83
|
}
|
|
82
84
|
}
|
|
83
|
-
function V(
|
|
85
|
+
function V(e, i) {
|
|
84
86
|
return f(this, null, function* () {
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
+
const t = e.parent, s = new N(e.style);
|
|
88
|
+
t.add(s), yield R(s, i).finished, t.remove(s), e.setPoints({ points: s.points });
|
|
87
89
|
const r = new T();
|
|
88
|
-
r.name = "LineHelper",
|
|
89
|
-
const
|
|
90
|
-
return r.setPoints([n, o]),
|
|
91
|
-
const
|
|
90
|
+
r.name = "LineHelper", t.add(r);
|
|
91
|
+
const m = s.points.at(-1), p = B(s.points), n = m.clone().add(p.clone().multiplyScalar(100)), o = m.clone().sub(p.clone().multiplyScalar(100));
|
|
92
|
+
return r.setPoints([n, o]), i.enable(), new Promise((h, O) => {
|
|
93
|
+
const P = (l) => {
|
|
92
94
|
y(), h();
|
|
93
|
-
},
|
|
95
|
+
}, M = (l) => {
|
|
94
96
|
if (!(l != null && l.raycaster))
|
|
95
97
|
return;
|
|
96
|
-
const
|
|
98
|
+
const u = U({
|
|
97
99
|
raycaster: l.raycaster,
|
|
98
|
-
line: new
|
|
100
|
+
line: new A.Line3(n, o)
|
|
99
101
|
});
|
|
100
|
-
|
|
102
|
+
u && e.setPoints({ heightPoint: u });
|
|
101
103
|
}, y = () => {
|
|
102
|
-
|
|
104
|
+
i.off("select", P), i.off("intersectionUpdate", M), i.off("disable", g), t.remove(r), i.disable();
|
|
103
105
|
}, g = () => {
|
|
104
|
-
y(),
|
|
106
|
+
y(), t.remove(e), O(new Error("Cancelled"));
|
|
105
107
|
};
|
|
106
|
-
|
|
108
|
+
i.on("select", P), i.on("intersectionUpdate", M), i.on("disable", g);
|
|
107
109
|
});
|
|
108
110
|
});
|
|
109
111
|
}
|
|
110
112
|
export {
|
|
111
|
-
|
|
113
|
+
$ as Prism,
|
|
112
114
|
V as createPrism
|
|
113
115
|
};
|
|
@@ -4,7 +4,7 @@ import { RectangleMeshEditor } from '../../Editors/RectangleMeshEditor';
|
|
|
4
4
|
import type { RectangleData, RectangleMesh } from '../../Meshes/Rectangle';
|
|
5
5
|
import { RectangleWithEdgeMesh, type RectangleWithEdgeMeshStyle } from '../../Meshes/RectangleWithEdge';
|
|
6
6
|
import type { LiteralString } from '../../../typings/utils.type';
|
|
7
|
-
import type { DrawMethodConfig, CreateLimitConfig } from '../../typings/style';
|
|
7
|
+
import type { DrawMethodConfig, CreateLimitConfig, CreateUtils } from '../../typings/style';
|
|
8
8
|
export interface RectangleImportData extends BaseImportData, RectangleData {
|
|
9
9
|
type: LiteralString<'Rectangle'>;
|
|
10
10
|
style?: Partial<RectangleWithEdgeMeshStyle>;
|
|
@@ -29,7 +29,7 @@ export declare class Rectangle extends BaseObject<RectangleImportData> {
|
|
|
29
29
|
setData(data: Partial<RectangleImportData>): void;
|
|
30
30
|
highlight(): void;
|
|
31
31
|
unhighlight(): void;
|
|
32
|
-
create(
|
|
32
|
+
create(params?: Partial<RectangleWithEdgeMeshStyle & CreateLimitConfig & DrawMethodConfig & CreateUtils>): Promise<void>;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* @description 创建矩形
|