@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
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
var I = Object.defineProperty, k = Object.defineProperties;
|
|
2
2
|
var q = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var _ = Object.getOwnPropertySymbols;
|
|
4
4
|
var G = Object.prototype.hasOwnProperty, J = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var A = (o, n, e) => n in o ? I(o, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[n] = e,
|
|
5
|
+
var A = (o, n, e) => n in o ? I(o, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[n] = e, w = (o, n) => {
|
|
6
6
|
for (var e in n || (n = {}))
|
|
7
7
|
G.call(n, e) && A(o, e, n[e]);
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
8
|
+
if (_)
|
|
9
|
+
for (var e of _(n))
|
|
10
10
|
J.call(n, e) && A(o, e, n[e]);
|
|
11
11
|
return o;
|
|
12
|
-
},
|
|
12
|
+
}, P = (o, n) => k(o, q(n));
|
|
13
13
|
var O = (o, n, e) => (A(o, typeof n != "symbol" ? n + "" : n, e), e);
|
|
14
|
-
var
|
|
14
|
+
var j = (o, n, e) => new Promise((m, h) => {
|
|
15
15
|
var y = (c) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
17
|
+
a(e.next(c));
|
|
18
|
+
} catch (d) {
|
|
19
|
+
h(d);
|
|
20
20
|
}
|
|
21
21
|
}, l = (c) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
|
|
23
|
+
a(e.throw(c));
|
|
24
|
+
} catch (d) {
|
|
25
|
+
h(d);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, a = (c) => c.done ? m(c.value) : Promise.resolve(c.value).then(y, l);
|
|
28
|
+
a((e = e.apply(o, n)).next());
|
|
29
29
|
});
|
|
30
30
|
import { BaseObject as K } from "../Base/index.js";
|
|
31
31
|
import * as s from "three";
|
|
32
32
|
import { PolylineWithDotsMesh as b } from "../../Meshes/Polyline.js";
|
|
33
33
|
import { RectangleMeshEditor as Q } from "../../Editors/RectangleMeshEditor.js";
|
|
34
|
-
import { RectangleWithEdgeMesh as
|
|
35
|
-
import { sortPositionsByCameraPosition as
|
|
36
|
-
import { Sculpt as
|
|
34
|
+
import { RectangleWithEdgeMesh as D } from "../../Meshes/RectangleWithEdge.js";
|
|
35
|
+
import { sortPositionsByCameraPosition as F } from "../../utils/sortPositionsByCameraPosition.js";
|
|
36
|
+
import { Sculpt as W } from "../../index.js";
|
|
37
37
|
import { vector3ToArray as X } from "../../../shared-utils/three/vector3ToArray.js";
|
|
38
38
|
import { anyPositionToVector3 as Y } from "../../../shared-utils/positionToVector3.js";
|
|
39
39
|
import { withResolvers as B } from "../../../shared-utils/promise/withResolvers.js";
|
|
@@ -43,13 +43,13 @@ class he extends K {
|
|
|
43
43
|
O(this, "type", "Rectangle");
|
|
44
44
|
O(this, "rectangleMesh");
|
|
45
45
|
O(this, "_editor");
|
|
46
|
-
e && (this.rectangleMesh = new
|
|
46
|
+
e && (this.rectangleMesh = new D(w(w({}, e.style), e)), this.add(this.rectangleMesh));
|
|
47
47
|
}
|
|
48
48
|
get editor() {
|
|
49
49
|
return this._editor || (this._editor = new Q(this.rectangleMesh)), this._editor;
|
|
50
50
|
}
|
|
51
51
|
get data() {
|
|
52
|
-
return w(
|
|
52
|
+
return P(w({}, this.baseData), {
|
|
53
53
|
points: X(this.applyObjectMatrixWorld(this.rectangleMesh.points, this.rectangleMesh)),
|
|
54
54
|
style: {
|
|
55
55
|
color: this.rectangleMesh.color.getHex(),
|
|
@@ -71,110 +71,111 @@ class he extends K {
|
|
|
71
71
|
(e = this.rectangleMesh) == null || e.unhighlight();
|
|
72
72
|
}
|
|
73
73
|
create(e) {
|
|
74
|
-
return
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
return j(this, null, function* () {
|
|
75
|
+
var h;
|
|
76
|
+
this.removeChildren(), this.currentPointSelector = (h = e == null ? void 0 : e.pointSelector) != null ? h : W.modules.pointSelector;
|
|
77
|
+
const m = new D(e);
|
|
78
|
+
this.rectangleMesh = m, this.add(this.rectangleMesh), yield Z(this.rectangleMesh, this.currentPointSelector, e), this.config.defaultAction && this.editor.enable();
|
|
78
79
|
});
|
|
79
80
|
}
|
|
80
81
|
}
|
|
81
82
|
function Z(o, n, e) {
|
|
82
|
-
var
|
|
83
|
-
return ((
|
|
83
|
+
var h;
|
|
84
|
+
return ((h = e == null ? void 0 : e.drawMethod) != null ? h : "diagonal") === "diagonal" ? $(o, n, e) : S(o, n, e);
|
|
84
85
|
}
|
|
85
86
|
function $(o, n, e) {
|
|
86
87
|
var C;
|
|
87
|
-
const { promise: m, reject:
|
|
88
|
+
const { promise: m, reject: h, resolve: y } = B(), l = o.parent;
|
|
88
89
|
if (!l)
|
|
89
|
-
return
|
|
90
|
-
const
|
|
91
|
-
l.add(c,
|
|
90
|
+
return h(new Error("No container"));
|
|
91
|
+
const a = (C = e == null ? void 0 : e.limit) != null ? C : "none", c = new b(P(w({}, o.style), { dashed: !0 })), d = new b(P(w({}, o.style), { dashed: !0, lengthEnable: !1 })), p = new b(P(w({}, o.style), { dashed: !1, lengthEnable: !1 }));
|
|
92
|
+
l.add(c, p, d), n.enable();
|
|
92
93
|
const t = [];
|
|
93
|
-
let
|
|
94
|
-
const
|
|
95
|
-
t.push(
|
|
94
|
+
let i = new s.Vector3(), L = new s.Vector3();
|
|
95
|
+
const f = new s.Plane(), M = () => {
|
|
96
|
+
t.push(i.clone()), t.length === 1 ? (a === "xoz" && f.setFromNormalAndCoplanarPoint(new s.Vector3(0, 1, 0), t[0]), a === "none" && f.setFromNormalAndCoplanarPoint(L, t[0])) : t.length === 2 ? a === "y" || a === "xoz" ? (V(), y()) : p.setPoints([t[0], t[1]]) : t.length === 3 && (V(), y());
|
|
96
97
|
}, E = (r) => {
|
|
97
98
|
var N, z;
|
|
98
99
|
if (!(r != null && r.raycaster))
|
|
99
100
|
return;
|
|
100
101
|
const R = (N = t.at(-1)) == null ? void 0 : N.clone();
|
|
101
102
|
if (t.length === 0) {
|
|
102
|
-
|
|
103
|
+
i = r.point.clone(), L = (z = r.face) == null ? void 0 : z.normal;
|
|
103
104
|
return;
|
|
104
105
|
}
|
|
105
|
-
if (t.length === 1 &&
|
|
106
|
-
const
|
|
107
|
-
o.setPoints([t[0],
|
|
106
|
+
if (t.length === 1 && a === "y") {
|
|
107
|
+
const g = new s.Line3(new s.Vector3(0, 1, 0).add(t[0]), new s.Vector3(0, -1, 0).add(t[0])).closestPointToPoint(r.point, !1, new s.Vector3());
|
|
108
|
+
o.setPoints([t[0], g, r.point]);
|
|
108
109
|
return;
|
|
109
110
|
}
|
|
110
|
-
if (t.length === 1 &&
|
|
111
|
-
const
|
|
112
|
-
o.setPoints([t[0], v,
|
|
111
|
+
if (t.length === 1 && a === "xoz") {
|
|
112
|
+
const u = new s.Line3(new s.Vector3(1, 0, 0).add(t[0]), new s.Vector3(-1, 0, 0).add(t[0])), g = r.raycaster.ray.intersectPlane(f, new s.Vector3()), v = u.closestPointToPoint(g, !1, new s.Vector3());
|
|
113
|
+
o.setPoints([t[0], v, g]);
|
|
113
114
|
return;
|
|
114
115
|
}
|
|
115
|
-
if (t.length === 1 &&
|
|
116
|
-
|
|
116
|
+
if (t.length === 1 && a === "none") {
|
|
117
|
+
f ? (i = r.raycaster.ray.intersectPlane(f, new s.Vector3()), d.setPoints([i, r.point])) : i = r.point.clone(), c.setPoints([R, i]);
|
|
117
118
|
return;
|
|
118
119
|
}
|
|
119
|
-
if (t.length === 2 &&
|
|
120
|
+
if (t.length === 2 && a === "none") {
|
|
120
121
|
l.remove(c);
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
const H = [t[0],
|
|
122
|
+
const u = r.raycaster.ray.intersectPlane(f, new s.Vector3()), g = t[0].distanceTo(t[1]) / 2, v = new s.Vector3().lerpVectors(t[0], t[1], 0.5), T = new s.Vector3().subVectors(u, v).normalize();
|
|
123
|
+
i = new s.Vector3().addVectors(v, T.multiplyScalar(g));
|
|
124
|
+
const H = [t[0], i, t[1]], U = F(H, W.modules.five.camera.position);
|
|
124
125
|
o.setPoints(U);
|
|
125
126
|
return;
|
|
126
127
|
}
|
|
127
128
|
}, V = () => {
|
|
128
|
-
n.off("select", M), n.off("intersectionUpdate", E), n.off("disable", x), n.disable(), l == null || l.remove(c,
|
|
129
|
+
n.off("select", M), n.off("intersectionUpdate", E), n.off("disable", x), n.disable(), l == null || l.remove(c, p, d);
|
|
129
130
|
}, x = () => {
|
|
130
|
-
V(), l == null || l.remove(o),
|
|
131
|
+
V(), l == null || l.remove(o), h(new Error("Cancelled"));
|
|
131
132
|
};
|
|
132
133
|
return n.on("select", M), n.on("intersectionUpdate", E), n.on("disable", x), m;
|
|
133
134
|
}
|
|
134
135
|
function S(o, n, e) {
|
|
135
136
|
var C;
|
|
136
|
-
const { promise: m, reject:
|
|
137
|
+
const { promise: m, reject: h, resolve: y } = B(), l = o.parent;
|
|
137
138
|
if (!l)
|
|
138
|
-
return
|
|
139
|
-
const
|
|
140
|
-
l.add(c,
|
|
139
|
+
return h(new Error("No container"));
|
|
140
|
+
const a = (C = e == null ? void 0 : e.limit) != null ? C : "none", c = new b(P(w({}, o.style), { dashed: !0 })), d = new b(P(w({}, o.style), { dashed: !0, lengthEnable: !1 })), p = new b(P(w({}, o.style), { dashed: !1, lengthEnable: !1 }));
|
|
141
|
+
l.add(c, p, d), n.enable();
|
|
141
142
|
const t = [];
|
|
142
|
-
let
|
|
143
|
-
const
|
|
144
|
-
t.push(
|
|
143
|
+
let i = new s.Vector3(), L = new s.Vector3();
|
|
144
|
+
const f = new s.Plane(), M = () => {
|
|
145
|
+
t.push(i.clone()), t.length === 1 ? (a === "xoz" && f.setFromNormalAndCoplanarPoint(new s.Vector3(0, 1, 0), t[0]), a === "none" && f.setFromNormalAndCoplanarPoint(L, t[0])) : t.length === 2 ? (a === "y" && f.setFromCoplanarPoints(t[0], t[1], new s.Vector3(0, 1, 0).add(t[0])), p.setPoints([t[0], t[1]])) : t.length === 3 && (V(), y());
|
|
145
146
|
}, E = (r) => {
|
|
146
147
|
var N, z;
|
|
147
148
|
if (!(r != null && r.raycaster))
|
|
148
149
|
return;
|
|
149
150
|
const R = (N = t.at(-1)) == null ? void 0 : N.clone();
|
|
150
151
|
if (t.length === 0) {
|
|
151
|
-
|
|
152
|
+
i = r.point.clone(), L = (z = r.face) == null ? void 0 : z.normal;
|
|
152
153
|
return;
|
|
153
154
|
}
|
|
154
|
-
if (t.length === 1 &&
|
|
155
|
-
|
|
155
|
+
if (t.length === 1 && a === "y") {
|
|
156
|
+
i = r.point, d.setPoints([]), c.setPoints([R, i]);
|
|
156
157
|
return;
|
|
157
158
|
}
|
|
158
|
-
if (t.length === 1 &&
|
|
159
|
-
|
|
159
|
+
if (t.length === 1 && a === "xoz") {
|
|
160
|
+
i = r.raycaster.ray.intersectPlane(f, new s.Vector3()), d.setPoints([i, r.point]), c.setPoints([R, i]);
|
|
160
161
|
return;
|
|
161
162
|
}
|
|
162
|
-
if (t.length === 1 &&
|
|
163
|
-
|
|
163
|
+
if (t.length === 1 && a === "none") {
|
|
164
|
+
i = r.raycaster.ray.intersectPlane(f, new s.Vector3()), d.setPoints([i, r.point]), c.setPoints([R, i]);
|
|
164
165
|
return;
|
|
165
166
|
}
|
|
166
167
|
if (t.length === 2) {
|
|
167
168
|
l.remove(c);
|
|
168
|
-
const
|
|
169
|
-
|
|
170
|
-
const v = [t[0], t[1],
|
|
169
|
+
const u = new s.Vector3().crossVectors(t[0].clone().sub(t[1]), f.normal).normalize();
|
|
170
|
+
i = new s.Line3(t[1].clone().add(u), t[1].clone().sub(u)).closestPointToPoint(r.point, !1, new s.Vector3());
|
|
171
|
+
const v = [t[0], t[1], i], T = F(v, W.modules.five.camera.position);
|
|
171
172
|
o.setPoints(T);
|
|
172
173
|
return;
|
|
173
174
|
}
|
|
174
175
|
}, V = () => {
|
|
175
|
-
n.off("select", M), n.off("intersectionUpdate", E), n.off("disable", x), n.disable(), l == null || l.remove(c,
|
|
176
|
+
n.off("select", M), n.off("intersectionUpdate", E), n.off("disable", x), n.disable(), l == null || l.remove(c, p, d);
|
|
176
177
|
}, x = () => {
|
|
177
|
-
V(), l == null || l.remove(o),
|
|
178
|
+
V(), l == null || l.remove(o), h(new Error("Cancelled"));
|
|
178
179
|
};
|
|
179
180
|
return n.on("select", M), n.on("intersectionUpdate", E), n.on("disable", x), m;
|
|
180
181
|
}
|
package/libs/Sculpt/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { Five } from '@realsee/five';
|
|
|
2
2
|
import type * as THREE from 'three';
|
|
3
3
|
import type { BaseObjectConfig } from './Objects/Base';
|
|
4
4
|
import { Subscribe } from '../shared-utils/Subscribe';
|
|
5
|
-
import {
|
|
5
|
+
import { PointSelector } from '../shared-utils';
|
|
6
6
|
import { Polyline } from './Objects/Polyline';
|
|
7
7
|
import { Point } from './Objects/Point';
|
|
8
8
|
import { Polygon } from './Objects/Polygon';
|
|
@@ -39,14 +39,14 @@ export declare class Sculpt extends Subscribe<Event> {
|
|
|
39
39
|
static modules: {
|
|
40
40
|
five: Five;
|
|
41
41
|
_cursor?: import("./utils/Modules/Cursor").Cursor;
|
|
42
|
-
_pointSelector?:
|
|
42
|
+
_pointSelector?: PointSelector;
|
|
43
43
|
_fiveDomEvents?: import("../shared-utils").FiveDomEvents;
|
|
44
44
|
_object3DHelper?: import("..").Object3DHelperController;
|
|
45
45
|
inited: boolean;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
cursor: import("./utils/Modules/Cursor").Cursor;
|
|
47
|
+
pointSelector: PointSelector;
|
|
48
|
+
fiveDomEvents: import("../shared-utils").FiveDomEvents;
|
|
49
|
+
object3DHelper: import("..").Object3DHelperController;
|
|
50
50
|
init: (five: Five) => void;
|
|
51
51
|
};
|
|
52
52
|
get data(): {
|
|
@@ -71,7 +71,12 @@ export declare class Sculpt extends Subscribe<Event> {
|
|
|
71
71
|
points: [number, number, number][];
|
|
72
72
|
style: {
|
|
73
73
|
color: number;
|
|
74
|
-
lineColor: number;
|
|
74
|
+
lineColor: number; /**
|
|
75
|
+
* @description: 点击事件
|
|
76
|
+
* @param {MouseEvent} e 鼠标事件
|
|
77
|
+
* @param {BuiltInItem} item 点击的物体
|
|
78
|
+
* 返回 false 来禁用 Five 默认行为
|
|
79
|
+
*/
|
|
75
80
|
lineWidth: number;
|
|
76
81
|
};
|
|
77
82
|
id: string;
|
|
@@ -80,12 +85,7 @@ export declare class Sculpt extends Subscribe<Event> {
|
|
|
80
85
|
readonly points: [number, number, number][];
|
|
81
86
|
readonly heightPoint: [number, number, number];
|
|
82
87
|
readonly style: {
|
|
83
|
-
readonly color: number;
|
|
84
|
-
* @description: 点击事件
|
|
85
|
-
* @param {MouseEvent} e 鼠标事件
|
|
86
|
-
* @param {BuiltInItem} item 点击的物体
|
|
87
|
-
* 返回 false 来禁用 Five 默认行为
|
|
88
|
-
*/
|
|
88
|
+
readonly color: number;
|
|
89
89
|
readonly lineWidth: number;
|
|
90
90
|
readonly lineColor: number;
|
|
91
91
|
};
|
|
@@ -111,10 +111,13 @@ export declare class Sculpt extends Subscribe<Event> {
|
|
|
111
111
|
type: string;
|
|
112
112
|
})[];
|
|
113
113
|
};
|
|
114
|
-
group: IObject3D;
|
|
115
114
|
theme: Theme;
|
|
116
115
|
get items(): BuiltInItem[];
|
|
116
|
+
get pointSelector(): PointSelector;
|
|
117
|
+
set pointSelector(pointSelector: PointSelector);
|
|
118
|
+
private _pointSelector?;
|
|
117
119
|
private five;
|
|
120
|
+
private group;
|
|
118
121
|
private creatingItem;
|
|
119
122
|
constructor(five: Five, theme?: Theme);
|
|
120
123
|
/**
|
package/libs/Sculpt/index.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var _ = Object.defineProperty, D = Object.defineProperties;
|
|
2
|
+
var L = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var y = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var g = (c,
|
|
6
|
-
for (var e in
|
|
7
|
-
|
|
4
|
+
var B = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var g = (c, o, e) => o in c ? _(c, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[o] = e, p = (c, o) => {
|
|
6
|
+
for (var e in o || (o = {}))
|
|
7
|
+
B.call(o, e) && g(c, e, o[e]);
|
|
8
8
|
if (y)
|
|
9
|
-
for (var e of y(
|
|
10
|
-
|
|
9
|
+
for (var e of y(o))
|
|
10
|
+
U.call(o, e) && g(c, e, o[e]);
|
|
11
11
|
return c;
|
|
12
|
-
}, f = (c,
|
|
13
|
-
var h = (c,
|
|
14
|
-
var
|
|
15
|
-
var
|
|
12
|
+
}, f = (c, o) => D(c, L(o));
|
|
13
|
+
var h = (c, o, e) => (g(c, typeof o != "symbol" ? o + "" : o, e), e);
|
|
14
|
+
var l = (c, o, e) => new Promise((t, r) => {
|
|
15
|
+
var m = (s) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
n(e.next(s));
|
|
18
18
|
} catch (d) {
|
|
19
19
|
r(d);
|
|
20
20
|
}
|
|
21
21
|
}, i = (s) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
n(e.throw(s));
|
|
24
24
|
} catch (d) {
|
|
25
25
|
r(d);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, n = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(m, i);
|
|
28
|
+
n((e = e.apply(c, o)).next());
|
|
29
29
|
});
|
|
30
|
-
import { globalModules as
|
|
31
|
-
import { Subscribe as
|
|
30
|
+
import { globalModules as x } from "./utils/Modules/Global.js";
|
|
31
|
+
import { Subscribe as E } from "../shared-utils/Subscribe.js";
|
|
32
32
|
import { IObject3D as z } from "../shared-utils/three/IObject3D.js";
|
|
33
33
|
import "../shared-utils/tag.js";
|
|
34
34
|
import "three";
|
|
@@ -43,24 +43,25 @@ import "../vendor/animejs/lib/anime.es.js";
|
|
|
43
43
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
44
44
|
import "../shared-utils/five/FivePuppet.js";
|
|
45
45
|
import { recurveFindObject as H } from "../shared-utils/three/recurveFindObject.js";
|
|
46
|
-
import { Polyline as
|
|
47
|
-
import { Point as
|
|
48
|
-
import { Polygon as
|
|
49
|
-
import { Prism as
|
|
50
|
-
import { Rectangle as
|
|
51
|
-
import { Circle as
|
|
52
|
-
import { Cylinder as
|
|
53
|
-
import { Box as
|
|
46
|
+
import { Polyline as S } from "./Objects/Polyline/index.js";
|
|
47
|
+
import { Point as I } from "./Objects/Point/index.js";
|
|
48
|
+
import { Polygon as b } from "./Objects/Polygon/index.js";
|
|
49
|
+
import { Prism as w } from "./Objects/Prism/index.js";
|
|
50
|
+
import { Rectangle as j } from "./Objects/Rectangle/index.js";
|
|
51
|
+
import { Circle as O } from "./Objects/Circle/index.js";
|
|
52
|
+
import { Cylinder as P } from "./Objects/Cylinder/index.js";
|
|
53
|
+
import { Box as v } from "./Objects/Box/index.js";
|
|
54
54
|
import { forReverseEach as M } from "../shared-utils/forReverseEach.js";
|
|
55
|
-
import { Line as
|
|
56
|
-
import { hotkeys as
|
|
55
|
+
import { Line as C } from "./Objects/Line/index.js";
|
|
56
|
+
import { hotkeys as R } from "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
57
57
|
import { withResolvers as G } from "../shared-utils/promise/withResolvers.js";
|
|
58
|
-
const u = class extends
|
|
58
|
+
const u = class extends E {
|
|
59
59
|
constructor(e, t) {
|
|
60
60
|
super();
|
|
61
|
-
h(this, "group");
|
|
62
61
|
h(this, "theme");
|
|
62
|
+
h(this, "_pointSelector");
|
|
63
63
|
h(this, "five");
|
|
64
|
+
h(this, "group");
|
|
64
65
|
h(this, "creatingItem", null);
|
|
65
66
|
/**
|
|
66
67
|
* @description: 撤销
|
|
@@ -76,10 +77,10 @@ const u = class extends S {
|
|
|
76
77
|
var e;
|
|
77
78
|
console.log("redo"), (e = this.creatingItem) == null || e.redo(), this.five.needsRender = !0;
|
|
78
79
|
});
|
|
79
|
-
this.five = e, this.theme = t, this.group = new z(), this.group.name = "Sculpt", e.scene.add(this.group), u.modules.init(e),
|
|
80
|
-
var
|
|
81
|
-
const i = H((
|
|
82
|
-
return i && !i.editing ? this.emit("click",
|
|
80
|
+
this.five = e, this.theme = t, this.group = new z(), this.group.name = "Sculpt", e.scene.add(this.group), u.modules.init(e), R("ctrl+z, command+z", this.undo), R("ctrl+shift+z, command+shift+z", this.redo), u.modules.fiveDomEvents.addEventListener(this.group, "click", ({ intersects: r, origDomEvent: m }) => {
|
|
81
|
+
var n;
|
|
82
|
+
const i = H((n = r == null ? void 0 : r[0]) == null ? void 0 : n.object, (s) => s.isSculptObject);
|
|
83
|
+
return i && !i.editing ? this.emit("click", m, i) : !1;
|
|
83
84
|
}), window.__SCULPT_DEBUG__ = this, window.__SCULPT_MODULES_DEBUG__ = u.modules;
|
|
84
85
|
}
|
|
85
86
|
get data() {
|
|
@@ -96,18 +97,25 @@ const u = class extends S {
|
|
|
96
97
|
get items() {
|
|
97
98
|
return this.group.children;
|
|
98
99
|
}
|
|
100
|
+
get pointSelector() {
|
|
101
|
+
var e;
|
|
102
|
+
return (e = this._pointSelector) != null ? e : u.modules.pointSelector;
|
|
103
|
+
}
|
|
104
|
+
set pointSelector(e) {
|
|
105
|
+
this._pointSelector = e;
|
|
106
|
+
}
|
|
99
107
|
/**
|
|
100
108
|
* @description: 加载数据 展示
|
|
101
109
|
*/
|
|
102
110
|
load(e, t) {
|
|
103
|
-
var
|
|
111
|
+
var m;
|
|
104
112
|
this.clear();
|
|
105
|
-
const r = (
|
|
113
|
+
const r = (m = e == null ? void 0 : e.items) == null ? void 0 : m.map((i) => {
|
|
106
114
|
var s;
|
|
107
|
-
const
|
|
108
|
-
style:
|
|
115
|
+
const n = f(p({}, i), {
|
|
116
|
+
style: p(p({}, (s = this.theme) == null ? void 0 : s[i.type.toLowerCase()]), i.style)
|
|
109
117
|
});
|
|
110
|
-
return i.type === "Point" ? new
|
|
118
|
+
return i.type === "Point" ? new I(n, t) : i.type === "line" ? new C(n, t) : i.type === "Polyline" ? new S(n, t) : i.type === "Polygon" ? new b(n, t) : i.type === "Prism" ? new w(n, t) : i.type === "Rectangle" ? new j(n, t) : i.type === "Circle" ? new O(n, t) : i.type === "Cylinder" ? new P(n, t) : i.type === "Box" ? new v(n, t) : null;
|
|
111
119
|
});
|
|
112
120
|
this.group.add(...r), this.five.needsRender = !0;
|
|
113
121
|
}
|
|
@@ -121,34 +129,34 @@ const u = class extends S {
|
|
|
121
129
|
* @description: 放置物体
|
|
122
130
|
*/
|
|
123
131
|
putObject(e) {
|
|
124
|
-
var
|
|
132
|
+
var m;
|
|
125
133
|
this.group.add(e);
|
|
126
134
|
const t = u.modules.object3DHelper, r = t.addObject3DHelper(e);
|
|
127
|
-
return (
|
|
135
|
+
return (m = r == null ? void 0 : r.moveController) == null || m.moveByMouse(), t;
|
|
128
136
|
}
|
|
129
137
|
/**
|
|
130
138
|
* @description: 开始绘制点
|
|
131
139
|
*/
|
|
132
140
|
createPoint(...e) {
|
|
133
|
-
return
|
|
141
|
+
return l(this, null, function* () {
|
|
134
142
|
var t, r;
|
|
135
|
-
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.point, e[0]), this.createItem(
|
|
143
|
+
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.point, { pointSelector: this.pointSelector }, e[0]), this.createItem(I, ...e);
|
|
136
144
|
});
|
|
137
145
|
}
|
|
138
146
|
/**
|
|
139
147
|
* @description: 开始绘制线段
|
|
140
148
|
*/
|
|
141
149
|
createLine(...e) {
|
|
142
|
-
return
|
|
150
|
+
return l(this, null, function* () {
|
|
143
151
|
var t, r;
|
|
144
|
-
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.line, e[0]), this.createItem(
|
|
152
|
+
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.line, { pointSelector: this.pointSelector }, e[0]), this.createItem(C, ...e);
|
|
145
153
|
});
|
|
146
154
|
}
|
|
147
155
|
/**
|
|
148
156
|
* @deprecated use createLine instead
|
|
149
157
|
*/
|
|
150
158
|
createline(...e) {
|
|
151
|
-
return
|
|
159
|
+
return l(this, null, function* () {
|
|
152
160
|
this.createLine(...e);
|
|
153
161
|
});
|
|
154
162
|
}
|
|
@@ -156,63 +164,63 @@ const u = class extends S {
|
|
|
156
164
|
* @description: 开始绘制空间折线
|
|
157
165
|
*/
|
|
158
166
|
createPolyline(...e) {
|
|
159
|
-
return
|
|
167
|
+
return l(this, null, function* () {
|
|
160
168
|
var t, r;
|
|
161
|
-
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.polyline, e[0]), this.createItem(
|
|
169
|
+
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.polyline, { pointSelector: this.pointSelector }, e[0]), this.createItem(S, ...e);
|
|
162
170
|
});
|
|
163
171
|
}
|
|
164
172
|
/**
|
|
165
173
|
* @description: 开始绘制平面多边形
|
|
166
174
|
*/
|
|
167
175
|
createPolygon(...e) {
|
|
168
|
-
return
|
|
176
|
+
return l(this, null, function* () {
|
|
169
177
|
var t, r;
|
|
170
|
-
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.polygon, e[0]), this.createItem(
|
|
178
|
+
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.polygon, { pointSelector: this.pointSelector }, e[0]), this.createItem(b, ...e);
|
|
171
179
|
});
|
|
172
180
|
}
|
|
173
181
|
/**
|
|
174
182
|
* @description: 开始绘制多棱柱
|
|
175
183
|
*/
|
|
176
184
|
createPrism(...e) {
|
|
177
|
-
return
|
|
185
|
+
return l(this, null, function* () {
|
|
178
186
|
var t, r;
|
|
179
|
-
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.prism, e[0]), this.createItem(
|
|
187
|
+
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.prism, { pointSelector: this.pointSelector }, e[0]), this.createItem(w, ...e);
|
|
180
188
|
});
|
|
181
189
|
}
|
|
182
190
|
/**
|
|
183
191
|
* @description: 开始绘制矩形
|
|
184
192
|
*/
|
|
185
193
|
createRectangle(...e) {
|
|
186
|
-
return
|
|
194
|
+
return l(this, null, function* () {
|
|
187
195
|
var t, r;
|
|
188
|
-
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.rectangle, e[0]), this.createItem(
|
|
196
|
+
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.rectangle, { pointSelector: this.pointSelector }, e[0]), this.createItem(j, ...e);
|
|
189
197
|
});
|
|
190
198
|
}
|
|
191
199
|
/**
|
|
192
200
|
* @description: 开始绘制圆形
|
|
193
201
|
*/
|
|
194
202
|
createCircle(...e) {
|
|
195
|
-
return
|
|
203
|
+
return l(this, null, function* () {
|
|
196
204
|
var t, r;
|
|
197
|
-
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.circle, e[0]), this.createItem(
|
|
205
|
+
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.circle, { pointSelector: this.pointSelector }, e[0]), this.createItem(O, ...e);
|
|
198
206
|
});
|
|
199
207
|
}
|
|
200
208
|
/**
|
|
201
209
|
* @description: 开始绘制圆柱
|
|
202
210
|
*/
|
|
203
211
|
createCylinder(...e) {
|
|
204
|
-
return
|
|
212
|
+
return l(this, null, function* () {
|
|
205
213
|
var t, r;
|
|
206
|
-
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.cylinder, e[0]), this.createItem(
|
|
214
|
+
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.cylinder, { pointSelector: this.pointSelector }, e[0]), this.createItem(P, ...e);
|
|
207
215
|
});
|
|
208
216
|
}
|
|
209
217
|
/**
|
|
210
218
|
* @description: 开始绘制 Box
|
|
211
219
|
*/
|
|
212
220
|
createBox(...e) {
|
|
213
|
-
return
|
|
221
|
+
return l(this, null, function* () {
|
|
214
222
|
var t, r;
|
|
215
|
-
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.box, e[0]), this.createItem(
|
|
223
|
+
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.box, { pointSelector: this.pointSelector }, e[0]), this.createItem(v, ...e);
|
|
216
224
|
});
|
|
217
225
|
}
|
|
218
226
|
canUndo() {
|
|
@@ -230,21 +238,21 @@ const u = class extends S {
|
|
|
230
238
|
M(this.items, (e) => e.delete()), this.five.needsRender = !0;
|
|
231
239
|
}
|
|
232
240
|
createItem(e, ...t) {
|
|
233
|
-
return
|
|
241
|
+
return l(this, null, function* () {
|
|
234
242
|
this.creatingItem && (this.creatingItem.stopCreating(), this.creatingItem = null);
|
|
235
243
|
const r = new e();
|
|
236
244
|
this.creatingItem = r, this.group.add(r);
|
|
237
|
-
const { promise:
|
|
245
|
+
const { promise: m, resolve: i, reject: n } = G();
|
|
238
246
|
return yield r.create(...t).then((...s) => (this.creatingItem = null, i(r), s)).catch((s) => {
|
|
239
|
-
|
|
240
|
-
}),
|
|
247
|
+
n(s), this.group.remove(r);
|
|
248
|
+
}), m;
|
|
241
249
|
});
|
|
242
250
|
}
|
|
243
251
|
};
|
|
244
|
-
let
|
|
245
|
-
h(
|
|
246
|
-
const ge = (c) => new
|
|
252
|
+
let a = u;
|
|
253
|
+
h(a, "modules", x);
|
|
254
|
+
const ge = (c) => new a(c);
|
|
247
255
|
export {
|
|
248
|
-
|
|
256
|
+
a as Sculpt,
|
|
249
257
|
ge as SculptPlugin
|
|
250
258
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type * as THREE from 'three';
|
|
2
|
+
import type { PointSelector } from '../../shared-utils';
|
|
2
3
|
export type Color = THREE.Color | string | number;
|
|
3
4
|
export declare const DEFAULT_COLOR = 16777215;
|
|
4
5
|
export declare const DEFAULT_LINE_COLOR = 16777215;
|
|
@@ -79,4 +80,10 @@ export type DisplayInfoConfig = {
|
|
|
79
80
|
*/
|
|
80
81
|
tip: string;
|
|
81
82
|
};
|
|
83
|
+
export type CreateUtils = {
|
|
84
|
+
/**
|
|
85
|
+
* @description 选点工具
|
|
86
|
+
*/
|
|
87
|
+
pointSelector: PointSelector;
|
|
88
|
+
};
|
|
82
89
|
export type LineStyle = LineColorStyle & LineOpacityStyle & LineWidthStyle;
|
|
@@ -11,9 +11,13 @@ declare class GlobalModules {
|
|
|
11
11
|
_object3DHelper?: Object3DHelperController;
|
|
12
12
|
inited: boolean;
|
|
13
13
|
get cursor(): Cursor;
|
|
14
|
+
set cursor(value: Cursor);
|
|
14
15
|
get pointSelector(): PointSelector;
|
|
16
|
+
set pointSelector(value: PointSelector);
|
|
15
17
|
get fiveDomEvents(): FiveDomEvents;
|
|
18
|
+
set fiveDomEvents(value: FiveDomEvents);
|
|
16
19
|
get object3DHelper(): Object3DHelperController;
|
|
20
|
+
set object3DHelper(value: Object3DHelperController);
|
|
17
21
|
init: (five: Five) => void;
|
|
18
22
|
}
|
|
19
23
|
declare const globalModules: GlobalModules;
|