@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
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
var m = Object.defineProperty;
|
|
2
2
|
var p = Object.getOwnPropertySymbols;
|
|
3
3
|
var g = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
4
|
+
var h = (n, i, e) => i in n ? m(n, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[i] = e, a = (n, i) => {
|
|
5
5
|
for (var e in i || (i = {}))
|
|
6
|
-
g.call(i, e) &&
|
|
6
|
+
g.call(i, e) && h(n, e, i[e]);
|
|
7
7
|
if (p)
|
|
8
8
|
for (var e of p(i))
|
|
9
|
-
y.call(i, e) &&
|
|
10
|
-
return
|
|
9
|
+
y.call(i, e) && h(n, e, i[e]);
|
|
10
|
+
return n;
|
|
11
11
|
};
|
|
12
|
-
var s = (
|
|
13
|
-
import { hotkeys as
|
|
14
|
-
import { Sculpt as
|
|
12
|
+
var s = (n, i, e) => (h(n, typeof i != "symbol" ? i + "" : i, e), e);
|
|
13
|
+
import { hotkeys as c } from "../../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
14
|
+
import { Sculpt as r } from "../../index.js";
|
|
15
15
|
import { IObject3D as v } from "../../../shared-utils/three/IObject3D.js";
|
|
16
16
|
import { localToWorld as M, worldToLocal as w } from "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
17
17
|
import { removeAllTag as E } from "../../utils/removeAllTag.js";
|
|
18
|
-
const
|
|
18
|
+
const d = /* @__PURE__ */ new Map();
|
|
19
19
|
class f extends v {
|
|
20
20
|
constructor(e, t) {
|
|
21
21
|
super();
|
|
@@ -30,9 +30,8 @@ class f extends v {
|
|
|
30
30
|
* @description 配置
|
|
31
31
|
*/
|
|
32
32
|
s(this, "config");
|
|
33
|
-
s(this, "
|
|
34
|
-
s(this, "
|
|
35
|
-
s(this, "off", (...e) => n.modules.fiveDomEvents.removeEventListener(this, ...e));
|
|
33
|
+
s(this, "on", (e, t, o) => r.modules.fiveDomEvents.addEventListener(this, e, t, o));
|
|
34
|
+
s(this, "off", (...e) => r.modules.fiveDomEvents.removeEventListener(this, ...e));
|
|
36
35
|
s(this, "applyObjectMatrixWorld", (e, t) => {
|
|
37
36
|
const o = t != null ? t : this;
|
|
38
37
|
return o.updateMatrixWorld(), M(o, e);
|
|
@@ -43,22 +42,22 @@ class f extends v {
|
|
|
43
42
|
});
|
|
44
43
|
e != null && e.id && (this.uuid = e.id), this.config = a({ defaultAction: !0, occlusionVisibility: !0, occlusionMode: "translucence" }, t), e != null && e.style && (e.style.occlusionVisibility = this.config.occlusionVisibility, e.style.occlusionMode = this.config.occlusionMode), this.addEventListener("removed", () => {
|
|
45
44
|
E(this);
|
|
46
|
-
}),
|
|
45
|
+
}), c("esc", () => {
|
|
47
46
|
this.stopCreating();
|
|
48
|
-
}), this.config.defaultAction && (
|
|
47
|
+
}), this.config.defaultAction && (c("backspace, delete", () => {
|
|
49
48
|
this.selected && this.delete();
|
|
50
49
|
}), this.on("click", () => {
|
|
51
50
|
var o;
|
|
52
51
|
this.editing || (this.select({ only: !0 }), this.editor.enable(), (o = this.parent) == null || o.children.forEach((l) => {
|
|
53
|
-
var
|
|
54
|
-
l instanceof f && l !== this && ((
|
|
52
|
+
var u;
|
|
53
|
+
l instanceof f && l !== this && ((u = l._editor) == null || u.disable());
|
|
55
54
|
}));
|
|
56
|
-
}),
|
|
55
|
+
}), c("esc", () => {
|
|
57
56
|
this.selected && this.unselect();
|
|
58
57
|
}));
|
|
59
58
|
}
|
|
60
59
|
get editing() {
|
|
61
|
-
return this.
|
|
60
|
+
return this.pointSelector.enabled;
|
|
62
61
|
}
|
|
63
62
|
get baseData() {
|
|
64
63
|
return {
|
|
@@ -66,11 +65,8 @@ class f extends v {
|
|
|
66
65
|
type: this.type
|
|
67
66
|
};
|
|
68
67
|
}
|
|
69
|
-
get
|
|
70
|
-
return
|
|
71
|
-
}
|
|
72
|
-
set currentPointSelector(e) {
|
|
73
|
-
this._currentPointSelector = e;
|
|
68
|
+
get pointSelector() {
|
|
69
|
+
return r.modules.pointSelector;
|
|
74
70
|
}
|
|
75
71
|
/**
|
|
76
72
|
* @description 撤销
|
|
@@ -100,7 +96,7 @@ class f extends v {
|
|
|
100
96
|
* @description 停止创建当前物体,等同于`esc`
|
|
101
97
|
*/
|
|
102
98
|
stopCreating() {
|
|
103
|
-
|
|
99
|
+
r.modules.pointSelector.disable();
|
|
104
100
|
}
|
|
105
101
|
/**
|
|
106
102
|
* @description 从场景中删除当前物体,并且移除事件监听
|
|
@@ -117,8 +113,8 @@ class f extends v {
|
|
|
117
113
|
select(e = { only: !1 }) {
|
|
118
114
|
if (this.selected)
|
|
119
115
|
return;
|
|
120
|
-
this.selected = !0, this.highlight(),
|
|
121
|
-
const t =
|
|
116
|
+
this.selected = !0, this.highlight(), d.has(this.parent.uuid) || d.set(this.parent.uuid, []);
|
|
117
|
+
const t = d.get(this.parent.uuid);
|
|
122
118
|
t.push(this), e.only && (t == null || t.forEach((o) => {
|
|
123
119
|
o !== this && o.unselect();
|
|
124
120
|
}));
|
|
@@ -144,8 +140,8 @@ class f extends v {
|
|
|
144
140
|
* @description 显示删除按钮
|
|
145
141
|
*/
|
|
146
142
|
showDeleteButton(e, t) {
|
|
147
|
-
|
|
148
|
-
|
|
143
|
+
r.modules.cursor.showDeleteButton({ clientX: e, clientY: t, container: document.body, onClick: () => this.delete() }), r.modules.five.once("cameraUpdate", () => {
|
|
144
|
+
r.modules.cursor.removeDeleteButton();
|
|
149
145
|
});
|
|
150
146
|
}
|
|
151
147
|
}
|
|
@@ -3,7 +3,7 @@ import type { PointSelector } from '../../../shared-utils/three/PointSelector';
|
|
|
3
3
|
import { BoxMeshEditor } from '../../Editors/BoxMeshEditor';
|
|
4
4
|
import { BoxMesh, type BoxData, type BoxStyle } from '../../Meshes/Box';
|
|
5
5
|
import type { LiteralString } from '../../../typings/utils.type';
|
|
6
|
-
import type { CreateLimitConfig,
|
|
6
|
+
import type { CreateLimitConfig, DrawMethodConfig } from '../../typings/style';
|
|
7
7
|
export interface BoxImportData extends BaseImportData, BoxData {
|
|
8
8
|
type: LiteralString<'Box'>;
|
|
9
9
|
style?: Partial<BoxStyle>;
|
|
@@ -29,6 +29,6 @@ export declare class Box extends BaseObject<BoxImportData> {
|
|
|
29
29
|
setData(data: Partial<BoxImportData>): void;
|
|
30
30
|
highlight(): void;
|
|
31
31
|
unhighlight(): void;
|
|
32
|
-
create(params?: Partial<BoxStyle & CreateLimitConfig & DrawMethodConfig
|
|
32
|
+
create(params?: Partial<BoxStyle & CreateLimitConfig & DrawMethodConfig>): Promise<void>;
|
|
33
33
|
}
|
|
34
34
|
export declare function createBox(boxMesh: BoxMesh, pointSelector: PointSelector, config?: Partial<CreateLimitConfig & DrawMethodConfig>): Promise<void>;
|
|
@@ -2,30 +2,30 @@ var H = Object.defineProperty, R = Object.defineProperties;
|
|
|
2
2
|
var _ = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var w = Object.getOwnPropertySymbols;
|
|
4
4
|
var C = Object.prototype.hasOwnProperty, j = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var b = (e, o, t) => o in e ? H(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t, m = (e, o) => {
|
|
6
6
|
for (var t in o || (o = {}))
|
|
7
|
-
C.call(o, t) &&
|
|
7
|
+
C.call(o, t) && b(e, t, o[t]);
|
|
8
8
|
if (w)
|
|
9
9
|
for (var t of w(o))
|
|
10
|
-
j.call(o, t) &&
|
|
10
|
+
j.call(o, t) && b(e, t, o[t]);
|
|
11
11
|
return e;
|
|
12
12
|
}, v = (e, o) => R(e, _(o));
|
|
13
|
-
var
|
|
14
|
-
var
|
|
13
|
+
var d = (e, o, t) => (b(e, typeof o != "symbol" ? o + "" : o, t), t);
|
|
14
|
+
var p = (e, o, t) => new Promise((l, a) => {
|
|
15
15
|
var i = (s) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
17
|
+
n(t.next(s));
|
|
18
|
+
} catch (r) {
|
|
19
|
+
a(r);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, h = (s) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
|
|
23
|
+
n(t.throw(s));
|
|
24
|
+
} catch (r) {
|
|
25
|
+
a(r);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, n = (s) => s.done ? l(s.value) : Promise.resolve(s.value).then(i, h);
|
|
28
|
+
n((t = t.apply(e, o)).next());
|
|
29
29
|
});
|
|
30
30
|
import { BaseObject as L } from "../Base/index.js";
|
|
31
31
|
import * as T from "three";
|
|
@@ -34,25 +34,24 @@ import { BoxMesh as E } from "../../Meshes/Box.js";
|
|
|
34
34
|
import { createRectangle as D } from "../Rectangle/index.js";
|
|
35
35
|
import { LineMesh as N } from "../../Meshes/Line.js";
|
|
36
36
|
import { getNormal as U } from "../../../shared-utils/three/getNormal.js";
|
|
37
|
-
import { rayOnLine as
|
|
37
|
+
import { rayOnLine as V } from "../../utils/three/rayOnLine.js";
|
|
38
38
|
import { vector3ToArray as O } from "../../../shared-utils/three/vector3ToArray.js";
|
|
39
|
-
import { RectangleWithEdgeMesh as
|
|
40
|
-
import { centerPoint as
|
|
39
|
+
import { RectangleWithEdgeMesh as k } from "../../Meshes/RectangleWithEdge.js";
|
|
40
|
+
import { centerPoint as q } from "../../../shared-utils/three/centerPoint.js";
|
|
41
41
|
import { anyPositionToVector3 as W } from "../../../shared-utils/positionToVector3.js";
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
m(
|
|
49
|
-
t && (this.boxMesh = new E(d(d({}, t.style), t)), this.add(this.boxMesh));
|
|
42
|
+
class ot extends L {
|
|
43
|
+
constructor(t, l) {
|
|
44
|
+
super(t, l);
|
|
45
|
+
d(this, "type", "Box");
|
|
46
|
+
d(this, "boxMesh");
|
|
47
|
+
d(this, "_editor");
|
|
48
|
+
t && (this.boxMesh = new E(m(m({}, t.style), t)), this.add(this.boxMesh));
|
|
50
49
|
}
|
|
51
50
|
get editor() {
|
|
52
51
|
return this._editor || (this._editor = new A(this.boxMesh)), this._editor;
|
|
53
52
|
}
|
|
54
53
|
get data() {
|
|
55
|
-
return v(
|
|
54
|
+
return v(m({}, this.baseData), {
|
|
56
55
|
points: O(this.applyObjectMatrixWorld(this.boxMesh.bottomPositions, this.boxMesh)),
|
|
57
56
|
heightPoint: O(this.applyObjectMatrixWorld(this.boxMesh.topPosition, this.boxMesh)),
|
|
58
57
|
style: {
|
|
@@ -78,47 +77,46 @@ class it extends L {
|
|
|
78
77
|
(t = this.boxMesh) == null || t.unhighlight();
|
|
79
78
|
}
|
|
80
79
|
create(t) {
|
|
81
|
-
return
|
|
82
|
-
|
|
83
|
-
this.removeChildren(), this.currentPointSelector = (n = t == null ? void 0 : t.pointSelector) != null ? n : q.modules.pointSelector, this.boxMesh = new E(t), this.add(this.boxMesh), yield z(this.boxMesh, this.currentPointSelector, t), this.config.defaultAction && this.editor.enable();
|
|
80
|
+
return p(this, null, function* () {
|
|
81
|
+
this.removeChildren(), this.boxMesh = new E(t), this.add(this.boxMesh), yield z(this.boxMesh, this.pointSelector, t), this.config.defaultAction && this.editor.enable();
|
|
84
82
|
});
|
|
85
83
|
}
|
|
86
84
|
}
|
|
87
85
|
function z(e, o, t) {
|
|
88
|
-
return
|
|
89
|
-
return new Promise((
|
|
86
|
+
return p(this, null, function* () {
|
|
87
|
+
return new Promise((l, a) => p(this, null, function* () {
|
|
90
88
|
const i = e.parent;
|
|
91
89
|
if (!i) {
|
|
92
|
-
|
|
90
|
+
a(new Error("No container"));
|
|
93
91
|
return;
|
|
94
92
|
}
|
|
95
|
-
const
|
|
96
|
-
i.add(
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
const g = (
|
|
100
|
-
M(),
|
|
101
|
-
}, y = (
|
|
102
|
-
if (!(
|
|
93
|
+
const h = new k(e.style);
|
|
94
|
+
i.add(h), yield D(h, o, t), i.remove(h), e.setPoints({ points: h.points });
|
|
95
|
+
const n = new N(), s = U(e.bottomPositions), r = q(...e.bottomPositions), f = r.clone().add(s.clone().multiplyScalar(100)), x = r.clone().sub(s.clone().multiplyScalar(100));
|
|
96
|
+
n.setPoints([f, x]), i.add(n), o.enable();
|
|
97
|
+
const g = (c) => {
|
|
98
|
+
M(), l();
|
|
99
|
+
}, y = (c) => {
|
|
100
|
+
if (!(c != null && c.raycaster))
|
|
103
101
|
return;
|
|
104
|
-
const u =
|
|
105
|
-
raycaster:
|
|
102
|
+
const u = V({
|
|
103
|
+
raycaster: c.raycaster,
|
|
106
104
|
line: new T.Line3(f, x)
|
|
107
105
|
});
|
|
108
106
|
if (u) {
|
|
109
|
-
const B = u.clone().sub(
|
|
107
|
+
const B = u.clone().sub(r);
|
|
110
108
|
e.setPoints({ heightPoint: e.bottomPositions[0].clone().add(B) });
|
|
111
109
|
}
|
|
112
110
|
}, M = () => {
|
|
113
|
-
o.off("select", g), o.off("intersectionUpdate", y), o.off("disable", P), o.disable(), i == null || i.remove(
|
|
111
|
+
o.off("select", g), o.off("intersectionUpdate", y), o.off("disable", P), o.disable(), i == null || i.remove(n);
|
|
114
112
|
}, P = () => {
|
|
115
|
-
M(), i == null || i.remove(e),
|
|
113
|
+
M(), i == null || i.remove(e), a(new Error("Cancelled"));
|
|
116
114
|
};
|
|
117
115
|
o.on("select", g), o.on("intersectionUpdate", y), o.on("disable", P);
|
|
118
116
|
}));
|
|
119
117
|
});
|
|
120
118
|
}
|
|
121
119
|
export {
|
|
122
|
-
|
|
120
|
+
ot as Box,
|
|
123
121
|
z as createBox
|
|
124
122
|
};
|
|
@@ -4,7 +4,6 @@ import { CircleMeshEditor } from '../../Editors/CircleMeshEditor';
|
|
|
4
4
|
import type { CircleData, CircleMesh } from '../../Meshes/Circle';
|
|
5
5
|
import { CircleWithEdgeMesh, type CircleWithEdgeMeshStyle } from '../../Meshes/CircleWithEdge';
|
|
6
6
|
import type { LiteralString } from '../../../typings/utils.type';
|
|
7
|
-
import type { CreateUtils } from '../../typings/style';
|
|
8
7
|
export interface CircleImportData extends BaseImportData, CircleData {
|
|
9
8
|
type: LiteralString<'Circle'>;
|
|
10
9
|
style?: Partial<CircleWithEdgeMeshStyle>;
|
|
@@ -28,6 +27,6 @@ export declare class Circle extends BaseObject<CircleImportData> {
|
|
|
28
27
|
setData(data: Partial<CircleImportData>): void;
|
|
29
28
|
highlight(): void;
|
|
30
29
|
unhighlight(): void;
|
|
31
|
-
create(params?: Partial<CircleWithEdgeMeshStyle
|
|
30
|
+
create(params?: Partial<CircleWithEdgeMeshStyle>): Promise<void>;
|
|
32
31
|
}
|
|
33
32
|
export declare function createCircle(circleMesh: CircleMesh, pointSelector: PointSelector): Promise<void>;
|
|
@@ -1,55 +1,54 @@
|
|
|
1
1
|
var x = Object.defineProperty, _ = Object.defineProperties;
|
|
2
2
|
var T = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var u = Object.getOwnPropertySymbols;
|
|
4
4
|
var A = Object.prototype.hasOwnProperty, H = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var m = (
|
|
5
|
+
var m = (r, i, e) => i in r ? x(r, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[i] = e, d = (r, i) => {
|
|
6
6
|
for (var e in i || (i = {}))
|
|
7
|
-
A.call(i, e) && m(
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
H.call(i, e) && m(
|
|
11
|
-
return
|
|
12
|
-
}, g = (
|
|
13
|
-
var f = (
|
|
14
|
-
var y = (
|
|
15
|
-
var
|
|
7
|
+
A.call(i, e) && m(r, e, i[e]);
|
|
8
|
+
if (u)
|
|
9
|
+
for (var e of u(i))
|
|
10
|
+
H.call(i, e) && m(r, e, i[e]);
|
|
11
|
+
return r;
|
|
12
|
+
}, g = (r, i) => _(r, T(i));
|
|
13
|
+
var f = (r, i, e) => (m(r, typeof i != "symbol" ? i + "" : i, e), e);
|
|
14
|
+
var y = (r, i, e) => new Promise((o, t) => {
|
|
15
|
+
var a = (n) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
c(e.next(n));
|
|
18
18
|
} catch (h) {
|
|
19
|
-
|
|
19
|
+
t(h);
|
|
20
20
|
}
|
|
21
|
-
}, s = (
|
|
21
|
+
}, s = (n) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
c(e.throw(n));
|
|
24
24
|
} catch (h) {
|
|
25
|
-
|
|
25
|
+
t(h);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, c = (n) => n.done ? o(n.value) : Promise.resolve(n.value).then(a, s);
|
|
28
|
+
c((e = e.apply(r, i)).next());
|
|
29
29
|
});
|
|
30
30
|
import { BaseObject as O } from "../Base/index.js";
|
|
31
31
|
import * as w from "three";
|
|
32
32
|
import { PolylineMesh as W } from "../../Meshes/Polyline.js";
|
|
33
33
|
import { CircleMeshEditor as j } from "../../Editors/CircleMeshEditor.js";
|
|
34
|
-
import { CircleWithEdgeMesh as
|
|
35
|
-
import { vector3ToArray as
|
|
34
|
+
import { CircleWithEdgeMesh as v } from "../../Meshes/CircleWithEdge.js";
|
|
35
|
+
import { vector3ToArray as P } from "../../../shared-utils/three/vector3ToArray.js";
|
|
36
36
|
import { anyPositionToVector3 as b } from "../../../shared-utils/positionToVector3.js";
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
super(e, n);
|
|
37
|
+
class L extends O {
|
|
38
|
+
constructor(e, o) {
|
|
39
|
+
super(e, o);
|
|
41
40
|
f(this, "type", "Circle");
|
|
42
41
|
f(this, "circleMesh");
|
|
43
42
|
f(this, "_editor");
|
|
44
|
-
e && (this.circleMesh = new
|
|
43
|
+
e && (this.circleMesh = new v(d(d({}, e.style), e)), this.add(this.circleMesh));
|
|
45
44
|
}
|
|
46
45
|
get editor() {
|
|
47
46
|
return this._editor || (this._editor = new j(this.circleMesh)), this._editor;
|
|
48
47
|
}
|
|
49
48
|
get data() {
|
|
50
49
|
return g(d({}, this.baseData), {
|
|
51
|
-
center:
|
|
52
|
-
normal:
|
|
50
|
+
center: P(this.applyObjectMatrixWorld(this.circleMesh.center, this.circleMesh)),
|
|
51
|
+
normal: P(this.circleMesh.normal.clone().applyQuaternion(this.circleMesh.quaternion)),
|
|
53
52
|
radius: this.circleMesh.radius,
|
|
54
53
|
style: {
|
|
55
54
|
color: this.circleMesh.color.getHex()
|
|
@@ -73,53 +72,52 @@ class k extends O {
|
|
|
73
72
|
}
|
|
74
73
|
create(e) {
|
|
75
74
|
return y(this, null, function* () {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
this.circleMesh = n, this.add(this.circleMesh), yield N(this.circleMesh, this.currentPointSelector), this.config.defaultAction && this.editor.enable();
|
|
75
|
+
this.children.forEach((t) => {
|
|
76
|
+
t.parent === this && this.remove(t);
|
|
77
|
+
}), this.children.length = 0;
|
|
78
|
+
const o = new v(e);
|
|
79
|
+
this.circleMesh = o, this.add(this.circleMesh), yield D(this.circleMesh, this.pointSelector), this.config.defaultAction && this.editor.enable();
|
|
82
80
|
});
|
|
83
81
|
}
|
|
84
82
|
}
|
|
85
|
-
function
|
|
86
|
-
return new Promise((e,
|
|
87
|
-
const
|
|
88
|
-
if (!
|
|
89
|
-
|
|
83
|
+
function D(r, i) {
|
|
84
|
+
return new Promise((e, o) => {
|
|
85
|
+
const t = r.parent;
|
|
86
|
+
if (!t) {
|
|
87
|
+
o(new Error("No container"));
|
|
90
88
|
return;
|
|
91
89
|
}
|
|
92
|
-
const
|
|
93
|
-
|
|
94
|
-
let s,
|
|
95
|
-
const
|
|
96
|
-
if (
|
|
90
|
+
const a = new W({ dashed: !0 });
|
|
91
|
+
t.add(a), i.enable();
|
|
92
|
+
let s, c;
|
|
93
|
+
const n = (l) => {
|
|
94
|
+
if (l) {
|
|
97
95
|
if (!s) {
|
|
98
96
|
s = {
|
|
99
|
-
point:
|
|
100
|
-
normal:
|
|
97
|
+
point: l.point,
|
|
98
|
+
normal: l.face.normal
|
|
101
99
|
};
|
|
102
100
|
return;
|
|
103
101
|
}
|
|
104
|
-
s &&
|
|
102
|
+
s && c && (p(), e());
|
|
105
103
|
}
|
|
106
|
-
}, h = (
|
|
107
|
-
if (!
|
|
104
|
+
}, h = (l) => {
|
|
105
|
+
if (!l || !s)
|
|
108
106
|
return;
|
|
109
107
|
const E = new w.Plane().setFromNormalAndCoplanarPoint(s.normal, s.point);
|
|
110
|
-
if (
|
|
111
|
-
const C = s.point.distanceTo(
|
|
112
|
-
|
|
108
|
+
if (c = l.raycaster.ray.intersectPlane(E, new w.Vector3()), c) {
|
|
109
|
+
const C = s.point.distanceTo(c);
|
|
110
|
+
r.setPoints({ center: s.point, normal: s.normal, radius: C });
|
|
113
111
|
}
|
|
114
|
-
},
|
|
115
|
-
i.off("select",
|
|
112
|
+
}, p = () => {
|
|
113
|
+
i.off("select", n), i.off("intersectionUpdate", h), i.off("disable", M), i.disable(), t == null || t.remove(a);
|
|
116
114
|
}, M = () => {
|
|
117
|
-
|
|
115
|
+
p(), t == null || t.remove(r, a), o(new Error("Cancelled"));
|
|
118
116
|
};
|
|
119
|
-
i.on("select",
|
|
117
|
+
i.on("select", n), i.on("intersectionUpdate", h), i.on("disable", M);
|
|
120
118
|
});
|
|
121
119
|
}
|
|
122
120
|
export {
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
L as Circle,
|
|
122
|
+
D as createCircle
|
|
125
123
|
};
|
|
@@ -4,7 +4,6 @@ import { CylinderMesh, type CylinderData } from '../../Meshes/Cylinder';
|
|
|
4
4
|
import { BaseObject, type BaseImportData, type BaseObjectConfig } from '../Base';
|
|
5
5
|
import type { LiteralString } from '../../../typings/utils.type';
|
|
6
6
|
import { CylinderMeshEditor } from '../../Editors/CylinderMeshEditor';
|
|
7
|
-
import type { CreateUtils } from '../../typings/style';
|
|
8
7
|
type CylinderStyle = CircleStyle;
|
|
9
8
|
export interface CylinderImportData extends BaseImportData, CylinderData {
|
|
10
9
|
type: LiteralString<'Cylinder'>;
|
|
@@ -29,7 +28,7 @@ export declare class Cylinder extends BaseObject<CylinderImportData> {
|
|
|
29
28
|
setData(data: Partial<CylinderImportData>): void;
|
|
30
29
|
highlight(): void;
|
|
31
30
|
unhighlight(): void;
|
|
32
|
-
create(params?: Partial<CylinderStyle
|
|
31
|
+
create(params?: Partial<CylinderStyle>): Promise<void>;
|
|
33
32
|
}
|
|
34
33
|
export declare function createCylinder(cylinderMesh: CylinderMesh, pointSelector: PointSelector): Promise<void>;
|
|
35
34
|
export {};
|
|
@@ -12,32 +12,31 @@ var p = (i, t, e) => t in i ? E(i, t, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
}, w = (i, t) => L(i, T(t));
|
|
13
13
|
var m = (i, t, e) => (p(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
14
|
var f = (i, t, e) => new Promise((o, s) => {
|
|
15
|
-
var
|
|
15
|
+
var c = (r) => {
|
|
16
16
|
try {
|
|
17
17
|
n(e.next(r));
|
|
18
18
|
} catch (l) {
|
|
19
19
|
s(l);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, h = (r) => {
|
|
22
22
|
try {
|
|
23
23
|
n(e.throw(r));
|
|
24
24
|
} catch (l) {
|
|
25
25
|
s(l);
|
|
26
26
|
}
|
|
27
|
-
}, n = (r) => r.done ? o(r.value) : Promise.resolve(r.value).then(
|
|
27
|
+
}, n = (r) => r.done ? o(r.value) : Promise.resolve(r.value).then(c, h);
|
|
28
28
|
n((e = e.apply(i, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import { Sculpt as R } from "../../index.js";
|
|
31
30
|
import { CylinderMesh as v } from "../../Meshes/Cylinder.js";
|
|
32
|
-
import { LineMesh as
|
|
33
|
-
import { rayOnLine as
|
|
34
|
-
import { BaseObject as
|
|
35
|
-
import { createCircle as
|
|
31
|
+
import { LineMesh as R } from "../../Meshes/Line.js";
|
|
32
|
+
import { rayOnLine as D } from "../../utils/three/rayOnLine.js";
|
|
33
|
+
import { BaseObject as U } from "../Base/index.js";
|
|
34
|
+
import { createCircle as V } from "../Circle/index.js";
|
|
36
35
|
import * as b from "three";
|
|
37
36
|
import { vector3ToArray as x } from "../../../shared-utils/three/vector3ToArray.js";
|
|
38
|
-
import { CylinderMeshEditor as
|
|
37
|
+
import { CylinderMeshEditor as z } from "../../Editors/CylinderMeshEditor.js";
|
|
39
38
|
import { anyPositionToVector3 as O } from "../../../shared-utils/positionToVector3.js";
|
|
40
|
-
class
|
|
39
|
+
class Y extends U {
|
|
41
40
|
constructor(e, o) {
|
|
42
41
|
super(e, o);
|
|
43
42
|
m(this, "type", "Cylinder");
|
|
@@ -46,7 +45,7 @@ class Z extends V {
|
|
|
46
45
|
e && (this.cylinderMesh = new v(d(d({}, e.style), e)), this.add(this.cylinderMesh));
|
|
47
46
|
}
|
|
48
47
|
get editor() {
|
|
49
|
-
return this._editor || (this._editor = new
|
|
48
|
+
return this._editor || (this._editor = new z(this.cylinderMesh)), this._editor;
|
|
50
49
|
}
|
|
51
50
|
get data() {
|
|
52
51
|
return w(d({}, this.baseData), {
|
|
@@ -74,39 +73,38 @@ class Z extends V {
|
|
|
74
73
|
}
|
|
75
74
|
create(e) {
|
|
76
75
|
return f(this, null, function* () {
|
|
77
|
-
|
|
78
|
-
this.currentPointSelector = (o = e == null ? void 0 : e.pointSelector) != null ? o : R.modules.pointSelector, this.cylinderMesh = new v(e), this.add(this.cylinderMesh), yield F(this.cylinderMesh, this.currentPointSelector), this.config.defaultAction && this.editor.enable();
|
|
76
|
+
this.cylinderMesh = new v(e), this.add(this.cylinderMesh), yield B(this.cylinderMesh, this.pointSelector), this.config.defaultAction && this.editor.enable();
|
|
79
77
|
});
|
|
80
78
|
}
|
|
81
79
|
}
|
|
82
|
-
function
|
|
80
|
+
function B(i, t) {
|
|
83
81
|
return f(this, null, function* () {
|
|
84
82
|
const e = i.parent;
|
|
85
|
-
yield
|
|
86
|
-
const o = new
|
|
83
|
+
yield V(i.bottomCircle, t);
|
|
84
|
+
const o = new R();
|
|
87
85
|
o.name = "LineHelper", e.add(o);
|
|
88
|
-
const s = t.position.point,
|
|
89
|
-
return o.setPoints([
|
|
90
|
-
const C = (
|
|
91
|
-
|
|
92
|
-
},
|
|
93
|
-
if (!(
|
|
86
|
+
const s = t.position.point, c = i.normal.clone().normalize(), h = s.clone().add(c.clone().multiplyScalar(100)), n = s.clone().sub(c.clone().multiplyScalar(100));
|
|
87
|
+
return o.setPoints([h, n]), t.enable(), new Promise((r, l) => {
|
|
88
|
+
const C = (a) => {
|
|
89
|
+
u(), r();
|
|
90
|
+
}, M = (a) => {
|
|
91
|
+
if (!(a != null && a.raycaster))
|
|
94
92
|
return;
|
|
95
|
-
const y =
|
|
96
|
-
raycaster:
|
|
97
|
-
line: new b.Line3(
|
|
93
|
+
const y = D({
|
|
94
|
+
raycaster: a.raycaster,
|
|
95
|
+
line: new b.Line3(h, n)
|
|
98
96
|
}), j = new b.Plane().setFromNormalAndCoplanarPoint(i.normal, i.bottomCenter).projectPoint(y, new b.Vector3()), H = y.clone().sub(j), _ = i.bottomCenter.clone().add(H);
|
|
99
97
|
y && i.setTopCenter(_);
|
|
100
|
-
},
|
|
101
|
-
t.off("select", C), t.off("intersectionUpdate",
|
|
98
|
+
}, u = () => {
|
|
99
|
+
t.off("select", C), t.off("intersectionUpdate", M), t.off("disable", P), e.remove(o), t.disable();
|
|
102
100
|
}, P = () => {
|
|
103
|
-
|
|
101
|
+
u(), e.remove(i), l(new Error("Cancelled"));
|
|
104
102
|
};
|
|
105
|
-
t.on("select", C), t.on("intersectionUpdate",
|
|
103
|
+
t.on("select", C), t.on("intersectionUpdate", M), t.on("disable", P);
|
|
106
104
|
});
|
|
107
105
|
});
|
|
108
106
|
}
|
|
109
107
|
export {
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
Y as Cylinder,
|
|
109
|
+
B as createCylinder
|
|
112
110
|
};
|
|
@@ -3,7 +3,7 @@ import { BaseObject, type BaseImportData, type BaseObjectConfig } from '../Base'
|
|
|
3
3
|
import { LineEditor } 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
|
import { LineWithDotsMesh } from '../../Meshes/LineWithDots';
|
|
8
8
|
export interface LineImportData extends BaseImportData, LineData {
|
|
9
9
|
type: LiteralString<'Line'>;
|
|
@@ -33,7 +33,7 @@ export declare class Line extends BaseObject<LineImportData> {
|
|
|
33
33
|
canRedo(): void;
|
|
34
34
|
undo(): void;
|
|
35
35
|
redo(): void;
|
|
36
|
-
create(params?: Partial<LineMeshStyle & CreateLimitConfig
|
|
36
|
+
create(params?: Partial<LineMeshStyle & CreateLimitConfig>): Promise<void>;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* @description 绘制线段
|