@realsee/dnalogel 3.21.1 → 3.22.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/ModelMakerPlugin/Controller.d.ts +26 -0
- package/dist/ModelMakerPlugin/index.d.ts +4 -0
- package/dist/ModelMakerPlugin/item/baseItem.d.ts +35 -0
- package/dist/ModelMakerPlugin/item/boxItem.d.ts +4 -0
- package/dist/ModelMakerPlugin/item/polygonItem.d.ts +9 -0
- package/dist/ModelMakerPlugin/item/prismItem.d.ts +4 -0
- package/dist/ModelMakerPlugin/typings/data.d.ts +41 -0
- package/dist/ModelMakerPlugin/typings/index.d.ts +52 -0
- package/dist/ModelMakerPlugin/utils/tagRenderer.d.ts +3 -0
- package/dist/Sculpt/Meshes/Area.d.ts +2 -23
- package/dist/Sculpt/Meshes/Polygon.d.ts +3 -0
- package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +22 -0
- package/dist/Sculpt/Meshes/Polyline.d.ts +9 -7
- package/dist/Sculpt/Meshes/Prism.d.ts +5 -3
- package/dist/Sculpt/Objects/Base/index.d.ts +4 -2
- package/dist/Sculpt/Objects/Polygon/Editor.d.ts +2 -1
- package/dist/Sculpt/Objects/Polyline/Editor.d.ts +3 -6
- package/dist/Sculpt/index.d.ts +32 -8
- package/dist/Sculpt/typings/utils.type.d.ts +4 -1
- package/dist/base/BasePlugin.d.ts +2 -2
- package/dist/base/BasePluginWithData.d.ts +0 -2
- package/dist/index.cjs.js +54 -54
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4410 -4137
- package/dist/index.umd.js +47 -47
- package/dist/shared-utils/five/FiveDomEvents.d.ts +1 -1
- package/dist/shared-utils/five/vector3ToScreen.d.ts +5 -0
- package/dist/shared-utils/tag.d.ts +17 -0
- package/dist/shared-utils/three/addIfNotExists.d.ts +2 -0
- package/dist/shared-utils/three/closeVectors.d.ts +2 -0
- package/dist/shared-utils/three/earcut3D.d.ts +2 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +7 -5
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +5 -3
- package/docs/classes/CSS3DRender.html +5 -3
- package/docs/classes/GuideLineItem.GuideLineItem.html +5 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +5 -3
- package/docs/classes/ModelMakerPluginType.ModelMakerController.html +561 -0
- package/docs/classes/ModelRoomLabelController.html +5 -3
- package/docs/classes/MoveController.html +5 -3
- package/docs/classes/Object3DHelperController.html +5 -3
- package/docs/classes/PaintBrush.html +5 -3
- package/docs/classes/PanoMeasurePluginLine.html +5 -3
- package/docs/classes/PanoMeasurePluginModel.html +5 -3
- package/docs/classes/PanoMeasurePluginPoint.html +5 -3
- package/docs/classes/PanoMeasurePluginPolyline.html +5 -3
- package/docs/classes/PanoTagPluginController.html +10 -8
- package/docs/classes/Sculpt.html +35 -33
- package/docs/classes/Util.BetterTween.html +5 -3
- package/docs/classes/Util.Interval.html +5 -3
- package/docs/classes/Util.LineSegments.html +5 -3
- package/docs/classes/Util.Magnifier.html +5 -3
- package/docs/classes/Util.Object3D.html +5 -3
- package/docs/classes/Util.PointDomHelper.html +5 -3
- package/docs/classes/Util.PointHelper.html +5 -3
- package/docs/classes/Util.PointSelectorHelper.html +5 -3
- package/docs/classes/Util.Rectangle.html +5 -3
- package/docs/classes/WalkController.html +5 -3
- package/docs/enums/CameraMovementEffect.html +5 -3
- package/docs/enums/ContentType.html +5 -3
- package/docs/enums/DIRECTION.html +5 -3
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +5 -3
- package/docs/enums/DimensionType.html +5 -3
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +5 -3
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +5 -3
- package/docs/enums/PaintBrushTypeEnum.html +5 -3
- package/docs/enums/PointType.html +5 -3
- package/docs/enums/Rotation.html +5 -3
- package/docs/functions/AreaMakerPlugin.html +5 -3
- package/docs/functions/CSS3DRenderPlugin.html +5 -3
- package/docs/functions/CameraMovementPlugin.html +5 -3
- package/docs/functions/CruisePlugin.html +5 -3
- package/docs/functions/CurrentPanoImagePlugin.html +5 -3
- package/docs/functions/GuideLinePlugin.html +5 -3
- package/docs/functions/ItemLabelPlugin.html +5 -3
- package/docs/functions/MapviewFloorplanPlugin.html +5 -3
- package/docs/functions/ModelChassisCompassPlugin.html +5 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -3
- package/docs/functions/ModelFloorplanPlugin.html +5 -3
- package/docs/functions/ModelItemLabelPlugin.html +5 -3
- package/docs/functions/ModelMakerPlugin.html +300 -0
- package/docs/functions/ModelRoomLabelPlugin.html +5 -3
- package/docs/functions/ModelTVVideoPlugin.html +5 -3
- package/docs/functions/ModelViewPlugin.html +5 -3
- package/docs/functions/MovePlugin.html +5 -3
- package/docs/functions/Object3DHelperPlugin.html +5 -3
- package/docs/functions/PanoCompassPlugin.html +5 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -3
- package/docs/functions/PanoDoorLabelPlugin.html +5 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -3
- package/docs/functions/PanoMeasurePlugin.html +5 -3
- package/docs/functions/PanoRulerPlugin.html +5 -3
- package/docs/functions/PanoRulerProPlugin.html +5 -3
- package/docs/functions/PanoSpatialTagPlugin.html +5 -3
- package/docs/functions/PanoTagPlugin.html +5 -3
- package/docs/functions/PanoVideoPlugin.html +5 -3
- package/docs/functions/PipelinePlugin.html +5 -3
- package/docs/functions/TopviewFloorplanPlugin.html +5 -3
- package/docs/functions/Util.absoluteUrl.html +5 -3
- package/docs/functions/Util.checkFiveModelLoaded.html +5 -3
- package/docs/functions/Util.equal.html +5 -3
- package/docs/functions/Util.getCoordsFromClient.html +5 -3
- package/docs/functions/Util.getCoordsFromElement.html +5 -3
- package/docs/functions/Util.getFrameTime.html +5 -3
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -3
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -3
- package/docs/functions/Util.isAbsoluteURL.html +5 -3
- package/docs/functions/Util.isModelLike.html +5 -3
- package/docs/functions/Util.isNil.html +5 -3
- package/docs/functions/Util.isPanoramaLike.html +5 -3
- package/docs/functions/Util.nextFrame.html +5 -3
- package/docs/functions/Util.notNil.html +5 -3
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -3
- package/docs/functions/Util.tweenProgress.html +5 -3
- package/docs/functions/Util.uuid.html +5 -3
- package/docs/functions/pluginFlag.html +5 -3
- package/docs/index.html +6 -4
- package/docs/interfaces/AddTagConfig.html +5 -3
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +5 -3
- package/docs/interfaces/AreaMakerPluginType.Config.html +5 -3
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +9 -7
- package/docs/interfaces/AreaMakerPluginType.Params.html +5 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +5 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +5 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +5 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +5 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +5 -3
- package/docs/interfaces/AreaMakerPluginType.State.html +5 -3
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +5 -3
- package/docs/interfaces/CSS3DRenderPluginState.html +5 -3
- package/docs/interfaces/CameraMovementPluginExportType.html +5 -3
- package/docs/interfaces/CruisePluginTypes.Config.html +5 -3
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +5 -3
- package/docs/interfaces/CruisePluginTypes.EventMap.html +5 -3
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +5 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +5 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +5 -3
- package/docs/interfaces/CruisePluginTypes.PluginData.html +5 -3
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +5 -3
- package/docs/interfaces/CruisePluginTypes.PluginState.html +5 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +5 -3
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +5 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +5 -3
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +5 -3
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +5 -3
- package/docs/interfaces/EventMap.html +5 -3
- package/docs/interfaces/FloorplanBounding.html +5 -3
- package/docs/interfaces/FloorplanData.html +5 -3
- package/docs/interfaces/FloorplanEntrance.html +5 -3
- package/docs/interfaces/FloorplanExtraObject.html +5 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +5 -3
- package/docs/interfaces/FloorplanFloorData.html +5 -3
- package/docs/interfaces/FloorplanImagePosition.html +5 -3
- package/docs/interfaces/FloorplanObserver.html +5 -3
- package/docs/interfaces/FloorplanOutlineItem.html +5 -3
- package/docs/interfaces/FloorplanPosition.html +5 -3
- package/docs/interfaces/FloorplanRoomItem.html +5 -3
- package/docs/interfaces/FloorplanRoomLabelItem.html +5 -3
- package/docs/interfaces/FloorplanServerBounding.html +5 -3
- package/docs/interfaces/FloorplanServerComputedData.html +5 -3
- package/docs/interfaces/FloorplanServerData.html +5 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +5 -3
- package/docs/interfaces/FloorplanServerDoorPosition.html +5 -3
- package/docs/interfaces/FloorplanServerEntrance.html +5 -3
- package/docs/interfaces/FloorplanServerFloorData.html +5 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +5 -3
- package/docs/interfaces/FloorplanServerObserver.html +5 -3
- package/docs/interfaces/FloorplanServerOutlineItem.html +5 -3
- package/docs/interfaces/FloorplanServerPosition.html +5 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +5 -3
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +5 -3
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +5 -3
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +5 -3
- package/docs/interfaces/GuideLinePluginType.EventMap.html +5 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +5 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +5 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +5 -3
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +5 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +5 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +5 -3
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +5 -3
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +5 -3
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +5 -3
- package/docs/interfaces/GuideLinePluginType.PluginState.html +5 -3
- package/docs/interfaces/GuideLinePluginType.Route.html +5 -3
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +5 -3
- package/docs/interfaces/HelperOffset.html +5 -3
- package/docs/interfaces/ImagePlaneGroup.html +5 -3
- package/docs/interfaces/ItemLabelPluginData.html +5 -3
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +5 -3
- package/docs/interfaces/ItemLabelPluginParametersType.html +5 -3
- package/docs/interfaces/MinMax.html +5 -3
- package/docs/interfaces/ModelChassisCompassPluginData.html +5 -3
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +5 -3
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +5 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +5 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +5 -3
- package/docs/interfaces/ModelItemLabelPluginData.html +5 -3
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +5 -3
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +5 -3
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +588 -0
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +340 -0
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +376 -0
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +329 -0
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +371 -0
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +365 -0
- package/docs/interfaces/ModelMakerPluginType.State.html +361 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +5 -3
- package/docs/interfaces/ModelTVVideoPluginData.html +5 -3
- package/docs/interfaces/ModelTVVideoPluginExportType.html +5 -3
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -3
- package/docs/interfaces/ModelViewPluginExportType.html +5 -3
- package/docs/interfaces/Object3DHelperState.html +5 -3
- package/docs/interfaces/ObjectHelperControllers.html +5 -3
- package/docs/interfaces/PaintBrushAction.html +5 -3
- package/docs/interfaces/PaintBrushConfigs.html +5 -3
- package/docs/interfaces/PaintBrushState.html +5 -3
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +5 -3
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -3
- package/docs/interfaces/PanoMeasureParameterType.html +5 -3
- package/docs/interfaces/PanoMeasurePluginLineJson.html +5 -3
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +5 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +5 -3
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +5 -3
- package/docs/interfaces/PanoRulerPluginExportType.html +5 -3
- package/docs/interfaces/PanoRulerPluginOptions.html +5 -3
- package/docs/interfaces/PanoRulerPluginParameterType.html +5 -3
- package/docs/interfaces/PanoRulerProPluginExportType.html +5 -3
- package/docs/interfaces/PanoRulerProPluginOptions.html +5 -3
- package/docs/interfaces/PanoRulerProPluginParameterType.html +5 -3
- package/docs/interfaces/PanoRulerProPluginState.html +5 -3
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -3
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -3
- package/docs/interfaces/PanoSpatialTagPluginData.html +5 -3
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +5 -3
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +5 -3
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +5 -3
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +5 -3
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +5 -3
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +5 -3
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +5 -3
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -3
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +5 -3
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -3
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +5 -3
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +5 -3
- package/docs/interfaces/Point.html +5 -3
- package/docs/interfaces/Room.html +5 -3
- package/docs/interfaces/RoomInfo.html +5 -3
- package/docs/interfaces/RoomLabel.html +5 -3
- package/docs/interfaces/RoomRules.html +5 -3
- package/docs/interfaces/Rooms.html +5 -3
- package/docs/interfaces/Scissor.html +5 -3
- package/docs/interfaces/State.html +5 -3
- package/docs/interfaces/TagCacheInterface.html +5 -3
- package/docs/interfaces/TagConfig.html +5 -3
- package/docs/interfaces/TagGLTFObjectGroup.html +5 -3
- package/docs/interfaces/TagIconUrl.html +5 -3
- package/docs/interfaces/TagObjectGroup.html +5 -3
- package/docs/interfaces/TagStyle.html +5 -3
- package/docs/interfaces/Tags.html +5 -3
- package/docs/interfaces/TemporaryState.html +5 -3
- package/docs/interfaces/Util.MagnifierParameter.html +5 -3
- package/docs/interfaces/Util.MouseGroupParameter.html +5 -3
- package/docs/interfaces/Util.PointIntersection.html +5 -3
- package/docs/modules/AreaMakerPluginType.html +5 -3
- package/docs/modules/CruisePluginTypes.html +5 -3
- package/docs/modules/CurrentPanoImagePluginType.html +5 -3
- package/docs/modules/GuideLineItem.html +5 -3
- package/docs/modules/GuideLineModeItem.html +5 -3
- package/docs/modules/GuideLinePluginType.html +5 -3
- package/docs/modules/ModelMakerPluginType.html +325 -0
- package/docs/modules/PanoVideoPluginType.html +5 -3
- package/docs/modules/Util.html +5 -3
- package/docs/modules.html +8 -4
- package/docs/types/AddObject3DHelperConfig.html +5 -3
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +5 -3
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +5 -3
- package/docs/types/AreaMakerPluginType.PluginData.html +5 -3
- package/docs/types/AreaMakerPluginType.ServerData.html +5 -3
- package/docs/types/ArrayPosition.html +5 -3
- package/docs/types/AudioAppearance.html +5 -3
- package/docs/types/AudioTagTypeConfigKey.html +5 -3
- package/docs/types/CSS3DRenderExportType.html +5 -3
- package/docs/types/CSS3DRenderPluginExportType.html +5 -3
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -3
- package/docs/types/ClassFunctionParameters.html +5 -3
- package/docs/types/Color.html +5 -3
- package/docs/types/ContentTypeConfigKey.html +5 -3
- package/docs/types/ContentTypeConfigKeySplit.html +5 -3
- package/docs/types/ContentTypeMap.html +5 -3
- package/docs/types/Create3DDomContainerReturnType.html +5 -3
- package/docs/types/Create3DElementReturnType.html +5 -3
- package/docs/types/CruisePluginExportType.html +5 -3
- package/docs/types/CruisePluginTypes.CruiseData.html +5 -3
- package/docs/types/CruisePluginTypes.MoveEffect.html +5 -3
- package/docs/types/CurrentPanoImagePluginExportType.html +5 -3
- package/docs/types/DeprecatedMediaPlaneProperty.html +5 -3
- package/docs/types/DeprecatedTagProperty.html +5 -3
- package/docs/types/Direction-1.html +5 -3
- package/docs/types/Direction4.html +5 -3
- package/docs/types/ElementRenderer.html +5 -3
- package/docs/types/FloorplanRuleLabels.html +5 -3
- package/docs/types/FloorplanServerRuleLabels.html +5 -3
- package/docs/types/GuideLinePluginExportType.html +5 -3
- package/docs/types/GuideLinePluginType.GuideLineItem.html +5 -3
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +5 -3
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +5 -3
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +5 -3
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +5 -3
- package/docs/types/GuideLinePluginType.PathItem.html +5 -3
- package/docs/types/GuideLinePluginType.PluginData.html +5 -3
- package/docs/types/HelperEventMap.html +5 -3
- package/docs/types/InternalHelperEventMap.html +5 -3
- package/docs/types/LoadTagConfig.html +5 -3
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -3
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -3
- package/docs/types/MediaData.html +5 -3
- package/docs/types/MediaStore.html +5 -3
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -3
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -3
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -3
- package/docs/types/ModelId.html +5 -3
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +326 -0
- package/docs/types/ModelMakerPluginType.ItemType.html +305 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -3
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -3
- package/docs/types/MoveArgs.html +5 -3
- package/docs/types/MoveOpts.html +5 -3
- package/docs/types/Object3DHelperEventMap.html +5 -3
- package/docs/types/ObjectFit.html +5 -3
- package/docs/types/PaintBrushEventMap.html +5 -3
- package/docs/types/PanoCompassPluginData.html +5 -3
- package/docs/types/PanoCompassPluginExportType.html +5 -3
- package/docs/types/PanoCompassPluginParameterType.html +5 -3
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -3
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -3
- package/docs/types/PanoIndex.html +5 -3
- package/docs/types/PanoMeasurePluginEvent.html +5 -3
- package/docs/types/PanoMeasureReturnType.html +5 -3
- package/docs/types/PanoSpatialTagPluginId.html +5 -3
- package/docs/types/PanoTagPluginExportInterface.html +5 -3
- package/docs/types/PanoTagPluginParamsInterface.html +5 -3
- package/docs/types/PanoVideoPluginParameterType.html +5 -3
- package/docs/types/PanoVideoPluginReturnType.html +5 -3
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +5 -3
- package/docs/types/PipelinePluginParameterType.html +5 -3
- package/docs/types/PipelinePluginReturnType.html +5 -3
- package/docs/types/PlaneTag.html +5 -3
- package/docs/types/Point2DTag.html +5 -3
- package/docs/types/Point3DTag.html +5 -3
- package/docs/types/PointTag.html +5 -3
- package/docs/types/PointTagInstance.html +5 -3
- package/docs/types/Position.html +5 -3
- package/docs/types/PositionFrom.html +5 -3
- package/docs/types/RotateArgs.html +5 -3
- package/docs/types/RotateOpts.html +5 -3
- package/docs/types/RuleLabelsKey.html +5 -3
- package/docs/types/RuleLabelsValue.html +5 -3
- package/docs/types/ScaleCallback.html +5 -3
- package/docs/types/ScalePosition.html +5 -3
- package/docs/types/StickType.html +5 -3
- package/docs/types/Tag.html +5 -3
- package/docs/types/Tag2D.html +5 -3
- package/docs/types/Tag3D.html +5 -3
- package/docs/types/TagConfigByKey.html +5 -3
- package/docs/types/TagContentType.html +5 -3
- package/docs/types/TagContentTypeMapping.html +5 -3
- package/docs/types/TagDimensionType.html +5 -3
- package/docs/types/TagElement.html +5 -3
- package/docs/types/TagEvents.html +5 -3
- package/docs/types/TagGLTFObject.html +5 -3
- package/docs/types/TagHooks.html +5 -3
- package/docs/types/TagId.html +5 -3
- package/docs/types/TagInstance.html +5 -3
- package/docs/types/TagPointType.html +5 -3
- package/docs/types/TagRendererMap.html +5 -3
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -3
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -3
- package/docs/types/WorkCode.html +5 -3
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -3
- package/docs/variables/PLUGIN.html +5 -3
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -3
- package/docs/variables/ROOM_TYPE_MAP.html +5 -3
- package/docs/variables/defaultGlobalConfig.html +5 -3
- package/docs/variables/itemLabelPluginServerParams.html +5 -3
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -3
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -3
- package/libs/GuideLinePlugin/Controller.js +15 -15
- package/libs/ModelMakerPlugin/Controller.d.ts +26 -0
- package/libs/ModelMakerPlugin/Controller.js +199 -0
- package/libs/ModelMakerPlugin/index.d.ts +4 -0
- package/libs/ModelMakerPlugin/index.js +57 -0
- package/libs/ModelMakerPlugin/item/baseItem.d.ts +35 -0
- package/libs/ModelMakerPlugin/item/baseItem.js +57 -0
- package/libs/ModelMakerPlugin/item/boxItem.d.ts +4 -0
- package/libs/ModelMakerPlugin/item/boxItem.js +20 -0
- package/libs/ModelMakerPlugin/item/polygonItem.d.ts +9 -0
- package/libs/ModelMakerPlugin/item/polygonItem.js +38 -0
- package/libs/ModelMakerPlugin/item/prismItem.d.ts +4 -0
- package/libs/ModelMakerPlugin/item/prismItem.js +19 -0
- package/libs/ModelMakerPlugin/typings/data.d.ts +41 -0
- package/libs/ModelMakerPlugin/typings/data.js +1 -0
- package/libs/ModelMakerPlugin/typings/index.d.ts +52 -0
- package/libs/ModelMakerPlugin/typings/index.js +1 -0
- package/libs/ModelMakerPlugin/utils/tagRenderer.d.ts +3 -0
- package/libs/ModelMakerPlugin/utils/tagRenderer.js +11 -0
- package/libs/PanoMeasurePlugin/Components/Controller0.js +4 -2
- package/libs/PanoMeasurePlugin/Components/Controller1.js +4 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +4 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +4 -2
- package/libs/PanoMeasurePlugin/Controller/index.js +69 -67
- package/libs/PanoMeasurePlugin/Model/area.js +4 -2
- package/libs/PanoMeasurePlugin/Model/polygon.js +12 -10
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +4 -2
- package/libs/PanoMeasurePlugin/index.js +15 -13
- package/libs/Sculpt/Meshes/Area.d.ts +2 -23
- package/libs/Sculpt/Meshes/Area.js +9 -52
- package/libs/Sculpt/Meshes/Point.js +19 -19
- package/libs/Sculpt/Meshes/Polygon.d.ts +3 -0
- package/libs/Sculpt/Meshes/Polygon.js +26 -20
- package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +22 -0
- package/libs/Sculpt/Meshes/PolygonWithEdge.js +46 -0
- package/libs/Sculpt/Meshes/Polyline.d.ts +9 -7
- package/libs/Sculpt/Meshes/Polyline.js +42 -38
- package/libs/Sculpt/Meshes/Prism.d.ts +5 -3
- package/libs/Sculpt/Meshes/Prism.js +33 -28
- package/libs/Sculpt/Objects/Base/index.d.ts +4 -2
- package/libs/Sculpt/Objects/Polygon/Editor.d.ts +2 -1
- package/libs/Sculpt/Objects/Polygon/Editor.js +5 -5
- package/libs/Sculpt/Objects/Polygon/index.js +17 -17
- package/libs/Sculpt/Objects/Polyline/Editor.d.ts +3 -6
- package/libs/Sculpt/Objects/Polyline/Editor.js +24 -32
- package/libs/Sculpt/index.d.ts +32 -8
- package/libs/Sculpt/index.js +6 -6
- package/libs/Sculpt/typings/utils.type.d.ts +4 -1
- package/libs/base/BasePlugin.d.ts +2 -2
- package/libs/base/BasePlugin.js +1 -1
- package/libs/base/BasePluginWithData.d.ts +0 -2
- package/libs/index.d.ts +1 -0
- package/libs/index.js +137 -123
- package/libs/shared-utils/five/FiveDomEvents.d.ts +1 -1
- package/libs/shared-utils/five/FiveDomEvents.js +6 -5
- package/libs/shared-utils/five/vector3ToScreen.d.ts +5 -0
- package/libs/shared-utils/five/vector3ToScreen.js +7 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +17 -0
- package/libs/shared-utils/tag.js +50 -0
- package/libs/shared-utils/three/addIfNotExists.d.ts +2 -0
- package/libs/shared-utils/three/addIfNotExists.js +8 -0
- package/libs/shared-utils/three/closeVectors.d.ts +2 -0
- package/libs/shared-utils/three/closeVectors.js +10 -0
- package/libs/shared-utils/three/earcut3D.d.ts +2 -0
- package/libs/shared-utils/three/earcut3D.js +12 -0
- package/libs/shared-utils/three/generatePolygonGeometry.js +8 -10
- package/package.json +1 -1
|
@@ -14,18 +14,18 @@ var m = (i, t, e) => (g(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
|
14
14
|
var E = (i, t, e) => new Promise((r, s) => {
|
|
15
15
|
var d = (o) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
n(e.next(o));
|
|
18
18
|
} catch (a) {
|
|
19
19
|
s(a);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, l = (o) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
n(e.throw(o));
|
|
24
24
|
} catch (a) {
|
|
25
25
|
s(a);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, n = (o) => o.done ? r(o.value) : Promise.resolve(o.value).then(d, l);
|
|
28
|
+
n((e = e.apply(i, t)).next());
|
|
29
29
|
});
|
|
30
30
|
import { hotkeys as L } from "../../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
31
31
|
import { BaseObject as O } from "../Base/index.js";
|
|
@@ -79,30 +79,30 @@ function B(i, t) {
|
|
|
79
79
|
}
|
|
80
80
|
const d = new x({ dashed: !0, lineColor: i.lineColor, lineWidth: i.lineWidth });
|
|
81
81
|
s == null || s.add(d);
|
|
82
|
-
const
|
|
83
|
-
s == null || s.add(
|
|
84
|
-
const
|
|
82
|
+
const l = new x({ dashed: !0, lineColor: i.lineColor, lineWidth: i.lineWidth });
|
|
83
|
+
s == null || s.add(l), t.enable();
|
|
84
|
+
const n = [];
|
|
85
85
|
let o, a = !1;
|
|
86
86
|
const u = (h) => {
|
|
87
|
-
const
|
|
88
|
-
|
|
87
|
+
const f = n.length === 0 ? h.point : o.clone();
|
|
88
|
+
n.push(f.clone()), i.setPoints(n, { closed: !1 }), a && (y(), e());
|
|
89
89
|
}, P = (h) => {
|
|
90
90
|
var v;
|
|
91
91
|
if (!((v = i.points) != null && v.length) || !h)
|
|
92
92
|
return;
|
|
93
|
-
const
|
|
93
|
+
const f = n.at(-1).clone();
|
|
94
94
|
if (i.points.length <= 2)
|
|
95
|
-
o = h.point, d.setPoints([
|
|
95
|
+
o = h.point, d.setPoints([f, o]), s != null && s.children.includes(l) && s.remove(l);
|
|
96
96
|
else {
|
|
97
97
|
o = i.projectPoint(h.point);
|
|
98
|
-
const
|
|
99
|
-
|
|
98
|
+
const p = i.points[0], C = 0.2;
|
|
99
|
+
p.distanceTo(o) < C || p.distanceTo(h.point) < C ? (o = p, h.point.copy(p), t.pointSelectorHelper.updateWithIntersect(h, { emitEvent: !1 }), a = !0) : a = !1, l.setPoints([o, h.point]), s != null && s.children.includes(l) || s == null || s.add(l);
|
|
100
100
|
}
|
|
101
|
-
d.setPoints([
|
|
101
|
+
d.setPoints([f, o]), n.length >= 2 && i.setPoints([...n, o], { closed: !1 });
|
|
102
102
|
}, y = () => {
|
|
103
|
-
t.off("select", u), t.off("intersectionUpdate", P), t.off("disable", w), t.disable(), s == null || s.remove(d,
|
|
103
|
+
t.off("select", u), t.off("intersectionUpdate", P), t.off("disable", w), t.disable(), s == null || s.remove(d, l);
|
|
104
104
|
}, w = () => {
|
|
105
|
-
y(), s == null || s.remove(i,
|
|
105
|
+
y(), s == null || s.remove(i, l, d), r(new Error("Cancelled"));
|
|
106
106
|
};
|
|
107
107
|
t.on("select", u), t.on("intersectionUpdate", P), t.on("disable", w);
|
|
108
108
|
});
|
|
@@ -3,11 +3,10 @@ import type { FiveDomEvent } from '../../../shared-utils/five/FiveDomEvents';
|
|
|
3
3
|
import type { Polyline } from '.';
|
|
4
4
|
import type * as THREE from 'three';
|
|
5
5
|
import { PointMesh } from '../../Meshes/Point';
|
|
6
|
-
import type { LineWithDotsMesh } from '../../Meshes/LineWithDots';
|
|
7
6
|
export declare abstract class LineEditor<OriginObject extends THREE.Object3D = THREE.Object3D> extends BaseEditor<OriginObject> {
|
|
8
7
|
protected draggingPoints: PointMesh[];
|
|
9
|
-
protected get
|
|
10
|
-
abstract get
|
|
8
|
+
protected get pointMeshes(): PointMesh[];
|
|
9
|
+
abstract get points(): THREE.Vector3[];
|
|
11
10
|
get pointHandles(): PointMesh[];
|
|
12
11
|
constructor(originObject: OriginObject);
|
|
13
12
|
enable(): void;
|
|
@@ -17,9 +16,7 @@ export declare abstract class LineEditor<OriginObject extends THREE.Object3D = T
|
|
|
17
16
|
protected abstract onDrag(event: FiveDomEvent): void;
|
|
18
17
|
}
|
|
19
18
|
export declare class PolylineEditor extends LineEditor<Polyline> {
|
|
20
|
-
get
|
|
19
|
+
get points(): THREE.Vector3[];
|
|
21
20
|
constructor(originObject: Polyline);
|
|
22
|
-
enable(): void;
|
|
23
|
-
disable(): void;
|
|
24
21
|
protected onDrag: (event: FiveDomEvent) => void;
|
|
25
22
|
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
var
|
|
2
|
-
var d = (s,
|
|
3
|
-
var
|
|
4
|
-
import { BaseEditor as
|
|
5
|
-
import { Sculpt as
|
|
6
|
-
import { PointMesh as
|
|
7
|
-
import { getIntersectByRaycaster as
|
|
1
|
+
var g = Object.defineProperty;
|
|
2
|
+
var d = (s, e, t) => e in s ? g(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
|
3
|
+
var n = (s, e, t) => (d(s, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import { BaseEditor as p } from "../Base/Editor.js";
|
|
5
|
+
import { Sculpt as r } from "../../index.js";
|
|
6
|
+
import { PointMesh as a } from "../../Meshes/Point.js";
|
|
7
|
+
import { getIntersectByRaycaster as h } from "../../../shared-utils/five/getPosition.js";
|
|
8
8
|
import "hammerjs";
|
|
9
9
|
import "three";
|
|
10
10
|
import "@realsee/five";
|
|
11
11
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
12
12
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
13
13
|
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
14
|
-
import { notNil as
|
|
15
|
-
class m extends
|
|
14
|
+
import { notNil as l } from "../../../shared-utils/isNil.js";
|
|
15
|
+
class m extends p {
|
|
16
16
|
constructor(t) {
|
|
17
17
|
super(t);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
this.draggingPoints = this.
|
|
18
|
+
n(this, "draggingPoints", []);
|
|
19
|
+
n(this, "onDragstart", (t) => {
|
|
20
|
+
const i = t.target;
|
|
21
|
+
this.draggingPoints = this.pointMeshes.filter((o) => o.position.equals(i.position));
|
|
22
22
|
});
|
|
23
|
-
|
|
23
|
+
n(this, "onDragend", (t) => {
|
|
24
24
|
this.draggingPoints = [];
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
get
|
|
28
|
-
return this.children.filter((t) => t instanceof
|
|
27
|
+
get pointMeshes() {
|
|
28
|
+
return this.children.filter((t) => t instanceof a);
|
|
29
29
|
}
|
|
30
30
|
get pointHandles() {
|
|
31
31
|
return this.children;
|
|
32
32
|
}
|
|
33
33
|
enable() {
|
|
34
|
-
super.enable(), this.
|
|
35
|
-
const
|
|
36
|
-
|
|
34
|
+
super.enable(), this.points.filter(l).forEach((t) => {
|
|
35
|
+
const i = new a();
|
|
36
|
+
i.visible = !1, i.position.copy(t), i.draggable = !0, r.modules.fiveDomEvents.addEventListener(i, "drag", this.onDrag), r.modules.fiveDomEvents.addEventListener(i, "dragstart", this.onDragstart), r.modules.fiveDomEvents.addEventListener(i, "dragend", this.onDragend), this.add(i);
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
disable() {
|
|
@@ -43,24 +43,16 @@ class m extends g {
|
|
|
43
43
|
class j extends m {
|
|
44
44
|
constructor(t) {
|
|
45
45
|
super(t);
|
|
46
|
-
|
|
46
|
+
n(this, "onDrag", (t) => {
|
|
47
47
|
if (!this.draggingPoints || this.draggingPoints.length === 0)
|
|
48
48
|
return;
|
|
49
|
-
const
|
|
50
|
-
this.draggingPoints.forEach((
|
|
49
|
+
const i = h(r.modules.five, t.raycaster);
|
|
50
|
+
this.draggingPoints.forEach((o) => o.position.copy(i.point)), this.originObject.polyLineMesh.setPoints(this.pointMeshes.map((o) => o.position));
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
get
|
|
54
|
-
return this.originObject.polyLineMesh.
|
|
55
|
-
}
|
|
56
|
-
enable() {
|
|
57
|
-
super.enable();
|
|
58
|
-
}
|
|
59
|
-
disable() {
|
|
60
|
-
super.disable();
|
|
53
|
+
get points() {
|
|
54
|
+
return this.originObject.polyLineMesh.points;
|
|
61
55
|
}
|
|
62
|
-
// private onDblclick = (event: FiveDomEvent) => {
|
|
63
|
-
// }
|
|
64
56
|
}
|
|
65
57
|
export {
|
|
66
58
|
m as LineEditor,
|
package/libs/Sculpt/index.d.ts
CHANGED
|
@@ -137,35 +137,59 @@ export declare class Sculpt extends Subscribe<Event> {
|
|
|
137
137
|
/**
|
|
138
138
|
* @description: 开始绘制点
|
|
139
139
|
*/
|
|
140
|
-
createPoint(params?: Parameters<Point['create']>[0]): Promise<BaseObject<any,
|
|
140
|
+
createPoint(params?: Parameters<Point['create']>[0]): Promise<BaseObject<any, {
|
|
141
|
+
[x: string]: any;
|
|
142
|
+
id: string | number;
|
|
143
|
+
}, BaseObjectConfig>>;
|
|
141
144
|
/**
|
|
142
145
|
* @description: 开始绘制空间折线
|
|
143
146
|
*/
|
|
144
|
-
createPolyline(params?: Parameters<Polyline['create']>[0]): Promise<BaseObject<any,
|
|
147
|
+
createPolyline(params?: Parameters<Polyline['create']>[0]): Promise<BaseObject<any, {
|
|
148
|
+
[x: string]: any;
|
|
149
|
+
id: string | number;
|
|
150
|
+
}, BaseObjectConfig>>;
|
|
145
151
|
/**
|
|
146
152
|
* @description: 开始绘制平面多边形
|
|
147
153
|
*/
|
|
148
|
-
createPolygon(params?: Parameters<Polygon['create']>[0]): Promise<BaseObject<any,
|
|
154
|
+
createPolygon(params?: Parameters<Polygon['create']>[0]): Promise<BaseObject<any, {
|
|
155
|
+
[x: string]: any;
|
|
156
|
+
id: string | number;
|
|
157
|
+
}, BaseObjectConfig>>;
|
|
149
158
|
/**
|
|
150
159
|
* @description: 开始绘制多棱柱
|
|
151
160
|
*/
|
|
152
|
-
createPrism(params?: Parameters<Prism['create']>[0]): Promise<BaseObject<any,
|
|
161
|
+
createPrism(params?: Parameters<Prism['create']>[0]): Promise<BaseObject<any, {
|
|
162
|
+
[x: string]: any;
|
|
163
|
+
id: string | number;
|
|
164
|
+
}, BaseObjectConfig>>;
|
|
153
165
|
/**
|
|
154
166
|
* @description: 开始绘制矩形
|
|
155
167
|
*/
|
|
156
|
-
createRectangle(params?: Parameters<Rectangle['create']>[0]): Promise<BaseObject<any,
|
|
168
|
+
createRectangle(params?: Parameters<Rectangle['create']>[0]): Promise<BaseObject<any, {
|
|
169
|
+
[x: string]: any;
|
|
170
|
+
id: string | number;
|
|
171
|
+
}, BaseObjectConfig>>;
|
|
157
172
|
/**
|
|
158
173
|
* @description: 开始绘制圆形
|
|
159
174
|
*/
|
|
160
|
-
createCircle(params?: Parameters<Circle['create']>[0]): Promise<BaseObject<any,
|
|
175
|
+
createCircle(params?: Parameters<Circle['create']>[0]): Promise<BaseObject<any, {
|
|
176
|
+
[x: string]: any;
|
|
177
|
+
id: string | number;
|
|
178
|
+
}, BaseObjectConfig>>;
|
|
161
179
|
/**
|
|
162
180
|
* @description: 开始绘制圆柱
|
|
163
181
|
*/
|
|
164
|
-
createCylinder(params?: Parameters<Cylinder['create']>[0]): Promise<BaseObject<any,
|
|
182
|
+
createCylinder(params?: Parameters<Cylinder['create']>[0]): Promise<BaseObject<any, {
|
|
183
|
+
[x: string]: any;
|
|
184
|
+
id: string | number;
|
|
185
|
+
}, BaseObjectConfig>>;
|
|
165
186
|
/**
|
|
166
187
|
* @description: 开始绘制 Box
|
|
167
188
|
*/
|
|
168
|
-
createBox(params?: Parameters<Box['create']>[0]): Promise<BaseObject<any,
|
|
189
|
+
createBox(params?: Parameters<Box['create']>[0]): Promise<BaseObject<any, {
|
|
190
|
+
[x: string]: any;
|
|
191
|
+
id: string | number;
|
|
192
|
+
}, BaseObjectConfig>>;
|
|
169
193
|
/**
|
|
170
194
|
* @description: 撤销
|
|
171
195
|
*/
|
package/libs/Sculpt/index.js
CHANGED
|
@@ -42,8 +42,8 @@ import { Polyline as w } from "./Objects/Polyline/index.js";
|
|
|
42
42
|
import { Point as I } from "./Objects/Point/index.js";
|
|
43
43
|
import { Polygon as P } from "./Objects/Polygon/index.js";
|
|
44
44
|
import { Prism as b } from "./Objects/Prism/index.js";
|
|
45
|
-
import { Rectangle as
|
|
46
|
-
import { Circle as
|
|
45
|
+
import { Rectangle as v } from "./Objects/Rectangle/index.js";
|
|
46
|
+
import { Circle as C } from "./Objects/Circle/index.js";
|
|
47
47
|
import { Cylinder as j } from "./Objects/Cylinder/index.js";
|
|
48
48
|
import { Box as x } from "./Objects/Box/index.js";
|
|
49
49
|
const h = class extends E {
|
|
@@ -52,7 +52,7 @@ const h = class extends E {
|
|
|
52
52
|
a(this, "group");
|
|
53
53
|
a(this, "five");
|
|
54
54
|
a(this, "theme");
|
|
55
|
-
|
|
55
|
+
this.five = e, this.theme = t, this.group = new L(), this.group.name = "Sculpt", e.scene.add(this.group), h.modules.init(e), h.modules.fiveDomEvents.addEventListener(this.group, "click", ({ intersects: o }) => {
|
|
56
56
|
var s;
|
|
57
57
|
const l = S((s = o == null ? void 0 : o[0]) == null ? void 0 : s.object, (n) => n.isSculptObject);
|
|
58
58
|
return l ? this.emit("click", l) : !1;
|
|
@@ -83,7 +83,7 @@ const h = class extends E {
|
|
|
83
83
|
const n = g(r({}, s), {
|
|
84
84
|
style: r(r({}, (c = this.theme) == null ? void 0 : c[s.type.toLowerCase()]), s.style)
|
|
85
85
|
});
|
|
86
|
-
return s.type === "Point" ? new I(n, t) : s.type === "Polyline" ? new w(n, t) : s.type === "Polygon" ? new P(n, t) : s.type === "Prism" ? new b(n, t) : s.type === "Rectangle" ? new
|
|
86
|
+
return s.type === "Point" ? new I(n, t) : s.type === "Polyline" ? new w(n, t) : s.type === "Polygon" ? new P(n, t) : s.type === "Prism" ? new b(n, t) : s.type === "Rectangle" ? new v(n, t) : s.type === "Circle" ? new C(n, t) : s.type === "Cylinder" ? new j(n, t) : s.type === "Box" ? new x(n, t) : null;
|
|
87
87
|
});
|
|
88
88
|
this.group.add(...o), this.needsRender();
|
|
89
89
|
}
|
|
@@ -144,7 +144,7 @@ const h = class extends E {
|
|
|
144
144
|
createRectangle(e) {
|
|
145
145
|
return u(this, null, function* () {
|
|
146
146
|
var t;
|
|
147
|
-
return this.createItem(
|
|
147
|
+
return this.createItem(v, r(r({}, (t = this.theme) == null ? void 0 : t.rectangle), e));
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
/**
|
|
@@ -153,7 +153,7 @@ const h = class extends E {
|
|
|
153
153
|
createCircle(e) {
|
|
154
154
|
return u(this, null, function* () {
|
|
155
155
|
var t;
|
|
156
|
-
return this.createItem(
|
|
156
|
+
return this.createItem(C, r(r({}, (t = this.theme) == null ? void 0 : t.circle), e));
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
159
|
/**
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type * as THREE from 'three';
|
|
2
|
-
import type { LiteralUnion, UnknownArray } from 'type-fest';
|
|
2
|
+
import type { LiteralUnion, Merge, UnknownArray } from 'type-fest';
|
|
3
3
|
import type { IsNull, NonRecursiveType } from 'type-fest/source/internal';
|
|
4
4
|
export type LiteralString<T> = LiteralUnion<T, string>;
|
|
5
|
+
export type ImportDataToExportData<T> = Merge<JsonData<T>, {
|
|
6
|
+
id: string | number;
|
|
7
|
+
}>;
|
|
5
8
|
export type JsonVector3<T> = ReplaceDeep<T, THREE.Vector3, number[]>;
|
|
6
9
|
export type JsonColor<T> = ReplaceDeep<T, THREE.Color>;
|
|
7
10
|
export type JsonData<T> = JsonColor<JsonVector3<T>>;
|
|
@@ -84,11 +84,11 @@ declare abstract class Controller<PluginState extends State, PluginEventMap exte
|
|
|
84
84
|
/**
|
|
85
85
|
* 展示UI
|
|
86
86
|
*/
|
|
87
|
-
show?(options?: BaseOptions): Promise<void
|
|
87
|
+
show?(options?: BaseOptions): Promise<void> | void;
|
|
88
88
|
/**
|
|
89
89
|
* 隐藏UI
|
|
90
90
|
*/
|
|
91
|
-
hide?(options?: BaseOptions): Promise<void
|
|
91
|
+
hide?(options?: BaseOptions): Promise<void> | void;
|
|
92
92
|
/**
|
|
93
93
|
* 设置state
|
|
94
94
|
* @param state 插件的目标状态
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -15,8 +15,6 @@ declare abstract class Controller<PluginState extends State, PluginEventMap exte
|
|
|
15
15
|
* @param state 插件 State
|
|
16
16
|
*/
|
|
17
17
|
abstract load(serverData: PluginServerData, state?: PluginState, userAction?: boolean): Promise<void>;
|
|
18
|
-
/** 把原始数据转化为插件数据 */
|
|
19
|
-
protected abstract formatData?(serverData: PluginServerData): Promise<PluginData> | PluginData;
|
|
20
18
|
}
|
|
21
19
|
export type { State, EventMap, Config };
|
|
22
20
|
export type { BaseOptions } from './BasePlugin';
|