@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
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var N = Object.defineProperty, P = Object.defineProperties;
|
|
2
|
+
var a = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var w = Object.getOwnPropertySymbols;
|
|
4
4
|
var B = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var c = (e, i, t) => i in e ?
|
|
5
|
+
var c = (e, i, t) => i in e ? N(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, g = (e, i) => {
|
|
6
6
|
for (var t in i || (i = {}))
|
|
7
7
|
B.call(i, t) && c(e, t, i[t]);
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
8
|
+
if (w)
|
|
9
|
+
for (var t of w(i))
|
|
10
10
|
b.call(i, t) && c(e, t, i[t]);
|
|
11
11
|
return e;
|
|
12
|
-
}, u = (e, i) =>
|
|
12
|
+
}, u = (e, i) => P(e, a(i));
|
|
13
13
|
var A = (e, i, t) => (c(e, typeof i != "symbol" ? i + "" : i, t), t);
|
|
14
14
|
import * as o from "three";
|
|
15
15
|
import { DEFAULT_HIGHLIGHT_OPACITY as k } from "../utils/color.js";
|
|
@@ -22,8 +22,8 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
|
22
22
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
23
23
|
import { notNil as l } from "../../shared-utils/isNil.js";
|
|
24
24
|
const I = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sHDgwCEMBJZu0AAAAdaVRYdENvbW1lbnQAAAAAAENyZWF0ZWQgd2l0aCBHSU1QZC5lBwAABM5JREFUWMO1V0tPG2cUPZ4Hxh6DazIOrjFNqJs0FIMqWFgWQkatsmvVbtggKlSVRVf5AWz4AWz4AUSKEChll19QJYSXkECuhFxsHjEhxCYm+DWGMZ5HF72DJq4bAzFXurI0M/I5997v3u9cC65vTJVn2lX/xHINQOYSBLTLEuIuCWw4Z3IGAEvf6ASmVHjNzHCXBG4A0AjACsAOwEbO0nsFQBnAGYASAIl+ZRMR7SolMEdsByD09fV5R0ZGgg8ePPjW5/N1iqLYpuu6RZblciKR2I9Go69evnwZnZ+fjwI4IS8AKBIRzeQfJWCANwKwh0KhtrGxsYehUOin1tbW+zzP23ietzY2NnIAoGmaLsuyUiqVyvl8XtrY2NiamZn589mzZxsAUgCOAeQAnFI2tI+VxIjaAeDzoaGh7xYWFuZOTk6OZVk+12uYqqq6JEnn0Wg0OT4+/geAXwGEAdwDIFJQXC1wO4DWR48e/RCPxxclSSroVzRFUbSDg4P848ePFwH8DuAhkWih83TRQWxFOXgAwvDwcOfo6OhvXV1d39tsNtuVBwTDWBwOh1UUxVsMw1hXVlbSdCgNV43uYSvrHg6H24aHh38eHBz85TrgF9FYLHA4HLzH43FvbW2d7u/vG+dANp8FpqIlbd3d3V8Fg8EfBUFw4BONZVmL3+9vHhkZCQL4AoAHgJPK8G+yzC0XDofdoVAo5PP5vkadTBAEtr+/39ff3x8gAp/RPOEqx2qjx+NpvXv3bk9DQ0NDvQgwDIOWlhZrMBj8kgi0UJdxRgYMArzL5XJ7vd57qLPZ7Xamp6fnNgBXtQxcjFuHw+Hyer3t9SYgCAITCAScAJoBNNEY/08GOFVVrfVMv7kMNDntFD1vjIAPrlRN0xjckOm6biFQ3jwNPwDMZrOnqVTqfb3Bi8Wivru7W/VCYkwPlKOjo0IikXh7EwQikYgE4Nw0CfXKDCipVCoTj8df3QABbW1tLUc6oUgkFPMkVACUNjc337148eKvw8PDbJ2jP1taWkoCyNDVXDSECmNSK4qiKNLq6urW8+fPI/UicHx8rD59+jSVy+WOAKSJhKENwFItLtoxk8mwsixzHR0dHe3t7c5PAU+n09rs7OzJkydPYqVSaQfANoDXALIk31S2smU1TWMPDg7K5XKZ7+3t9TudTut1U7+wsFCcmJiIpdPpbQBxADsAknQWymYCOukBHYCuKApisdhpMpnURFEU79y503TVyKenpzOTk5M7e3t7MQKPV0Zv1gNm+awB0MvlshqLxfLb29uyJElWURSbXC4XXyvqxcXFs6mpqeTc3Nzu3t7e3wQcA7BPZ8Cov1pNlJplmQtAG8MwHV6v95tAINA5MDBwPxAIuLu6upr8fr/VAN3c3JQjkcjZ+vp6fnl5+d2bN29SuVzuNYAEpf01CdRChUL+X1VskHACuA3Ay3Fcu9vt7nA6nZ7m5uYWQRCaNE3jVVW15PP580KhIGUymWw2m00DOAJwSP4WwPtq4LX2Ao6USxNlQyS/RcQcdLGwlNIz6vEMAaZpNzCk2Pll94LK/cDYimxERiBwG10sxjgvEZBE0UpE6vxj+0Ct5bTaXthgEhRmja8QWNkkPGsuIpfdjpkK+cZUWTC0KredVmtD/gdlSl6EG4AMvQAAAABJRU5ErkJggg==";
|
|
25
|
-
let
|
|
26
|
-
class
|
|
25
|
+
let M = null;
|
|
26
|
+
class m extends E {
|
|
27
27
|
constructor(t) {
|
|
28
28
|
var f, V;
|
|
29
29
|
super();
|
|
@@ -32,26 +32,26 @@ class O extends E {
|
|
|
32
32
|
A(this, "highlighted", !1);
|
|
33
33
|
A(this, "fontMesh");
|
|
34
34
|
A(this, "backgroundMesh");
|
|
35
|
-
const
|
|
36
|
-
|
|
35
|
+
const n = new o.BufferGeometry();
|
|
36
|
+
n.setAttribute("position", new o.Float32BufferAttribute([0, 0, 0], 3));
|
|
37
37
|
const d = {
|
|
38
38
|
transparent: !0,
|
|
39
39
|
side: o.DoubleSide,
|
|
40
40
|
size: (f = t == null ? void 0 : t.size) != null ? f : 8,
|
|
41
|
-
map:
|
|
41
|
+
map: M || (M = new o.TextureLoader().load(I)),
|
|
42
42
|
sizeAttenuation: !1
|
|
43
|
-
},
|
|
43
|
+
}, r = new o.PointsMaterial(u(g({}, d), {
|
|
44
44
|
color: (V = t == null ? void 0 : t.color) != null ? V : 16777215,
|
|
45
45
|
depthTest: !0,
|
|
46
46
|
opacity: 1
|
|
47
|
-
})),
|
|
48
|
-
size:
|
|
49
|
-
color:
|
|
47
|
+
})), C = new o.PointsMaterial(u(g({}, d), {
|
|
48
|
+
size: r.size,
|
|
49
|
+
color: r.color,
|
|
50
50
|
depthWrite: !1,
|
|
51
51
|
depthTest: !1,
|
|
52
52
|
opacity: 0.5
|
|
53
|
-
})), s = new o.Points(
|
|
54
|
-
this.fontMesh = s, this.backgroundMesh = h, s.name = "FontMesh", h.name = "BackgroundMesh", s.renderOrder = 10, h.renderOrder = 0, this.add(s, h), t != null && t.point && this.position.copy(F(t.point)), l(t.occlusionVisibility) && (this.backgroundMesh.visible = t.occlusionVisibility);
|
|
53
|
+
})), s = new o.Points(n, r), h = new o.Points(n, C);
|
|
54
|
+
this.fontMesh = s, this.backgroundMesh = h, s.name = "FontMesh", h.name = "BackgroundMesh", s.renderOrder = 10, h.renderOrder = 0, this.add(s, h), t != null && t.point && this.position.copy(F(t.point)), l(t == null ? void 0 : t.occlusionVisibility) && (this.backgroundMesh.visible = t.occlusionVisibility);
|
|
55
55
|
}
|
|
56
56
|
get color() {
|
|
57
57
|
return this.fontMesh.material.color;
|
|
@@ -70,5 +70,5 @@ class O extends E {
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
export {
|
|
73
|
-
|
|
73
|
+
m as PointMesh
|
|
74
74
|
};
|
|
@@ -10,9 +10,12 @@ export type PolygonData = PointsData;
|
|
|
10
10
|
export default class PolygonMesh extends ColoredMesh<THREE.BufferGeometry> {
|
|
11
11
|
name: string;
|
|
12
12
|
get isBlank(): boolean;
|
|
13
|
+
get center(): THREE.Vector3;
|
|
13
14
|
points: THREE.Vector3[];
|
|
14
15
|
planeHelperNeedUpdate: boolean;
|
|
16
|
+
private geometryInfoNeedUpdate;
|
|
15
17
|
private planeHelper;
|
|
18
|
+
private geometryInfo;
|
|
16
19
|
private opacityBeforeHighlight;
|
|
17
20
|
private highlighted;
|
|
18
21
|
constructor(params?: Partial<PolygonStyle & PolygonData>);
|
|
@@ -1,35 +1,41 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var p = (o, i, e) => i in o ? l(o, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[i] = e;
|
|
3
|
+
var t = (o, i, e) => (p(o, typeof i != "symbol" ? i + "" : i, e), e);
|
|
4
4
|
import * as r from "three";
|
|
5
|
-
import { generatePolygonGeometry as
|
|
5
|
+
import { generatePolygonGeometry as g } from "../../shared-utils/three/generatePolygonGeometry.js";
|
|
6
6
|
import { DEFAULT_HIGHLIGHT_OPACITY as a } from "../utils/color.js";
|
|
7
|
-
import { anyPositionToVector3 as
|
|
8
|
-
import { ColoredMesh as
|
|
9
|
-
import { getGeometryInfo as
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class
|
|
7
|
+
import { anyPositionToVector3 as f } from "../../shared-utils/positionToVector3.js";
|
|
8
|
+
import { ColoredMesh as y } from "../utils/three/ColoredMesh.js";
|
|
9
|
+
import { getGeometryInfo as d } from "../../shared-utils/three/geometryUtil.js";
|
|
10
|
+
const n = new r.BufferGeometry();
|
|
11
|
+
n.name = "blankGeometry";
|
|
12
|
+
n.isBlank = !0;
|
|
13
|
+
class G extends y {
|
|
14
14
|
constructor(e) {
|
|
15
15
|
super(e);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
t(this, "name", "PolygonMesh");
|
|
17
|
+
t(this, "points", []);
|
|
18
|
+
t(this, "planeHelperNeedUpdate", !0);
|
|
19
|
+
t(this, "geometryInfoNeedUpdate", !0);
|
|
20
|
+
t(this, "planeHelper", null);
|
|
21
|
+
t(this, "geometryInfo", null);
|
|
22
|
+
t(this, "opacityBeforeHighlight");
|
|
23
|
+
t(this, "highlighted", !1);
|
|
22
24
|
e != null && e.points && this.setPoints(e.points);
|
|
23
25
|
}
|
|
24
26
|
get isBlank() {
|
|
25
27
|
return !!this.geometry.isBlank;
|
|
26
28
|
}
|
|
29
|
+
get center() {
|
|
30
|
+
return this.getGeometryInfo().center;
|
|
31
|
+
}
|
|
27
32
|
setPoints(e) {
|
|
28
33
|
var s;
|
|
29
|
-
|
|
34
|
+
const h = e.map(f);
|
|
35
|
+
this.points = h, this.geometry = (s = g(this.points)) != null ? s : n, this.planeHelperNeedUpdate = !0, this.geometryInfoNeedUpdate = !0;
|
|
30
36
|
}
|
|
31
37
|
getGeometryInfo() {
|
|
32
|
-
return
|
|
38
|
+
return this.geometryInfoNeedUpdate ? d(this.geometry) : this.geometryInfo;
|
|
33
39
|
}
|
|
34
40
|
/**
|
|
35
41
|
* @description: 获取一个点投影在当前平面上的点
|
|
@@ -48,5 +54,5 @@ class B extends f {
|
|
|
48
54
|
}
|
|
49
55
|
}
|
|
50
56
|
export {
|
|
51
|
-
|
|
57
|
+
G as PolygonMesh
|
|
52
58
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { AnyPositions } from '../../shared-utils/positionToVector3';
|
|
2
|
+
import { PolylineMesh } from './Polyline';
|
|
3
|
+
import type { LineStyle } from '../utils/color';
|
|
4
|
+
import PolygonMesh, { type PolygonData, type PolygonStyle } from './Polygon';
|
|
5
|
+
import * as THREE from 'three';
|
|
6
|
+
export type PolygonWithEdgeMeshStyle = PolygonStyle & LineStyle;
|
|
7
|
+
/**
|
|
8
|
+
* @description: 带边线的多边形
|
|
9
|
+
*/
|
|
10
|
+
export declare class PolygonWithEdgeMesh extends PolygonMesh {
|
|
11
|
+
name: string;
|
|
12
|
+
get lineWidth(): number;
|
|
13
|
+
get lineColor(): THREE.Color;
|
|
14
|
+
protected line: PolylineMesh;
|
|
15
|
+
constructor(params?: Partial<PolygonWithEdgeMeshStyle & PolygonData>);
|
|
16
|
+
setPoints(points: AnyPositions, params?: {
|
|
17
|
+
closed: boolean;
|
|
18
|
+
}): void;
|
|
19
|
+
setStyle(style: Partial<PolygonWithEdgeMeshStyle>): void;
|
|
20
|
+
highlight(): void;
|
|
21
|
+
unhighlight(): void;
|
|
22
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
var r = Object.defineProperty;
|
|
2
|
+
var o = Object.getOwnPropertySymbols;
|
|
3
|
+
var u = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var y = (i, s, t) => s in i ? r(i, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[s] = t;
|
|
5
|
+
var g = (i, s) => {
|
|
6
|
+
var t = {};
|
|
7
|
+
for (var e in i)
|
|
8
|
+
u.call(i, e) && s.indexOf(e) < 0 && (t[e] = i[e]);
|
|
9
|
+
if (i != null && o)
|
|
10
|
+
for (var e of o(i))
|
|
11
|
+
s.indexOf(e) < 0 && d.call(i, e) && (t[e] = i[e]);
|
|
12
|
+
return t;
|
|
13
|
+
};
|
|
14
|
+
var h = (i, s, t) => (y(i, typeof s != "symbol" ? s + "" : s, t), t);
|
|
15
|
+
import { PolylineMesh as P } from "./Polyline.js";
|
|
16
|
+
import { PolygonMesh as p } from "./Polygon.js";
|
|
17
|
+
class S extends p {
|
|
18
|
+
constructor(t) {
|
|
19
|
+
const l = t != null ? t : {}, { points: e } = l, n = g(l, ["points"]);
|
|
20
|
+
super();
|
|
21
|
+
h(this, "name", "PolygonWithEdgeMesh");
|
|
22
|
+
h(this, "line", new P());
|
|
23
|
+
e && this.setPoints(e), n && this.setStyle(n);
|
|
24
|
+
}
|
|
25
|
+
get lineWidth() {
|
|
26
|
+
return this.line.lineWidth;
|
|
27
|
+
}
|
|
28
|
+
get lineColor() {
|
|
29
|
+
return this.line.lineColor;
|
|
30
|
+
}
|
|
31
|
+
setPoints(t, e = { closed: !0 }) {
|
|
32
|
+
super.setPoints(t), this.points && (this.line.setPoints(this.points, e), this.addIfNotExists(this.line));
|
|
33
|
+
}
|
|
34
|
+
setStyle(t) {
|
|
35
|
+
super.setStyle(t), this.line.setStyle(t);
|
|
36
|
+
}
|
|
37
|
+
highlight() {
|
|
38
|
+
super.highlight(), this.line.highlight();
|
|
39
|
+
}
|
|
40
|
+
unhighlight() {
|
|
41
|
+
super.unhighlight(), this.line.unhighlight();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
S as PolygonWithEdgeMesh
|
|
46
|
+
};
|
|
@@ -1,34 +1,36 @@
|
|
|
1
1
|
import { type AnyPositions } from '../../shared-utils/positionToVector3';
|
|
2
2
|
import { IObject3D } from '../../shared-utils/three/IObject3D';
|
|
3
3
|
import { LineWithDotsMesh } from './LineWithDots';
|
|
4
|
-
import {
|
|
4
|
+
import type { LineMeshStyle } from './Line';
|
|
5
5
|
import type { PointsData } from '../utils/data';
|
|
6
6
|
import * as THREE from 'three';
|
|
7
7
|
export type PolylineStyle = LineMeshStyle;
|
|
8
8
|
export type PolylineData = PointsData;
|
|
9
|
-
export declare abstract class PolylineBaseMesh
|
|
9
|
+
export declare abstract class PolylineBaseMesh extends IObject3D {
|
|
10
10
|
name: string;
|
|
11
11
|
get lineColor(): THREE.Color;
|
|
12
12
|
get lineWidth(): number;
|
|
13
13
|
get dashed(): boolean;
|
|
14
14
|
get occlusionVisibility(): boolean;
|
|
15
15
|
get points(): THREE.Vector3[];
|
|
16
|
-
lines: Array<
|
|
16
|
+
lines: Array<LineWithDotsMesh>;
|
|
17
17
|
private withDots;
|
|
18
18
|
private paramsStyle;
|
|
19
19
|
constructor(params?: Partial<PolylineStyle & PolylineData & {
|
|
20
|
-
withDots:
|
|
20
|
+
withDots: boolean;
|
|
21
21
|
}>);
|
|
22
|
-
setPoints(points: AnyPositions
|
|
22
|
+
setPoints(points: AnyPositions, params?: {
|
|
23
|
+
closed: boolean;
|
|
24
|
+
}): void;
|
|
23
25
|
setStyle(style: Partial<PolylineStyle>): void;
|
|
24
26
|
highlight(): void;
|
|
25
27
|
unhighlight(): void;
|
|
26
28
|
}
|
|
27
|
-
export declare class PolylineMesh extends PolylineBaseMesh
|
|
29
|
+
export declare class PolylineMesh extends PolylineBaseMesh {
|
|
28
30
|
name: string;
|
|
29
31
|
constructor(...params: ConstructorParameters<typeof PolylineBaseMesh>);
|
|
30
32
|
}
|
|
31
|
-
export declare class PolylineWithDotsMesh extends PolylineBaseMesh
|
|
33
|
+
export declare class PolylineWithDotsMesh extends PolylineBaseMesh {
|
|
32
34
|
name: string;
|
|
33
35
|
constructor(...params: ConstructorParameters<typeof PolylineBaseMesh>);
|
|
34
36
|
}
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var D = Object.prototype.hasOwnProperty,
|
|
5
|
-
var y = (s, e, i) => e in s ?
|
|
1
|
+
var E = Object.defineProperty, v = Object.defineProperties;
|
|
2
|
+
var x = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var h = Object.getOwnPropertySymbols;
|
|
4
|
+
var D = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var y = (s, e, i) => e in s ? E(s, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[e] = i, a = (s, e) => {
|
|
6
6
|
for (var i in e || (e = {}))
|
|
7
7
|
D.call(e, i) && y(s, i, e[i]);
|
|
8
|
-
if (
|
|
9
|
-
for (var i of
|
|
10
|
-
|
|
8
|
+
if (h)
|
|
9
|
+
for (var i of h(e))
|
|
10
|
+
C.call(e, i) && y(s, i, e[i]);
|
|
11
11
|
return s;
|
|
12
|
-
}, c = (s, e) =>
|
|
13
|
-
var
|
|
12
|
+
}, c = (s, e) => v(s, x(e));
|
|
13
|
+
var M = (s, e) => {
|
|
14
14
|
var i = {};
|
|
15
15
|
for (var t in s)
|
|
16
16
|
D.call(s, t) && e.indexOf(t) < 0 && (i[t] = s[t]);
|
|
17
|
-
if (s != null &&
|
|
18
|
-
for (var t of
|
|
19
|
-
e.indexOf(t) < 0 &&
|
|
17
|
+
if (s != null && h)
|
|
18
|
+
for (var t of h(s))
|
|
19
|
+
e.indexOf(t) < 0 && C.call(s, t) && (i[t] = s[t]);
|
|
20
20
|
return i;
|
|
21
21
|
};
|
|
22
22
|
var l = (s, e, i) => (y(s, typeof e != "symbol" ? e + "" : e, i), i);
|
|
23
|
-
import { anyPositionToVector3 as
|
|
24
|
-
import { IObject3D as
|
|
23
|
+
import { anyPositionToVector3 as B } from "../../shared-utils/positionToVector3.js";
|
|
24
|
+
import { IObject3D as T } from "../../shared-utils/three/IObject3D.js";
|
|
25
25
|
import "hammerjs";
|
|
26
|
-
import * as
|
|
26
|
+
import * as j from "three";
|
|
27
27
|
import "@realsee/five";
|
|
28
28
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
29
29
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
30
30
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
31
|
-
import { notNil as
|
|
32
|
-
import { LineWithDotsMesh as
|
|
33
|
-
import {
|
|
34
|
-
class w extends
|
|
31
|
+
import { notNil as F } from "../../shared-utils/isNil.js";
|
|
32
|
+
import { LineWithDotsMesh as H } from "./LineWithDots.js";
|
|
33
|
+
import { closeVectors as I } from "../../shared-utils/three/closeVectors.js";
|
|
34
|
+
class w extends T {
|
|
35
35
|
constructor(i) {
|
|
36
36
|
super();
|
|
37
37
|
l(this, "name", "PolylineBaseMesh");
|
|
38
38
|
l(this, "lines", []);
|
|
39
39
|
l(this, "withDots");
|
|
40
40
|
l(this, "paramsStyle");
|
|
41
|
-
const
|
|
42
|
-
this.withDots = t != null ? t : !0, o && this.setPoints(o),
|
|
41
|
+
const n = i, { withDots: t, points: o } = n, r = M(n, ["withDots", "points"]);
|
|
42
|
+
this.withDots = t != null ? t : !0, o && this.setPoints(o), r && this.setStyle(r);
|
|
43
43
|
}
|
|
44
44
|
get lineColor() {
|
|
45
45
|
var i, t, o;
|
|
46
|
-
return (o = (i = this.lines[0]) == null ? void 0 : i.color) != null ? o : (t = this.paramsStyle) != null && t.lineColor ? new
|
|
46
|
+
return (o = (i = this.lines[0]) == null ? void 0 : i.color) != null ? o : (t = this.paramsStyle) != null && t.lineColor ? new j.Color(this.paramsStyle.lineColor) : void 0;
|
|
47
47
|
}
|
|
48
48
|
get lineWidth() {
|
|
49
49
|
var i, t, o;
|
|
@@ -61,21 +61,25 @@ class w extends B {
|
|
|
61
61
|
var i;
|
|
62
62
|
return this.lines.map((t) => t.points[0]).concat((i = this.lines.at(-1)) == null ? void 0 : i.points[1]).filter(Boolean);
|
|
63
63
|
}
|
|
64
|
-
setPoints(i) {
|
|
65
|
-
var n,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
64
|
+
setPoints(i, t = { closed: !1 }) {
|
|
65
|
+
var n, d, u, f, g, P, S, V;
|
|
66
|
+
let o = i.map(B);
|
|
67
|
+
t.closed && (o = I(o));
|
|
68
|
+
const r = {
|
|
69
|
+
lineWidth: (d = (n = this.paramsStyle) == null ? void 0 : n.lineWidth) != null ? d : this.lineWidth,
|
|
70
|
+
lineColor: (f = (u = this.paramsStyle) == null ? void 0 : u.lineColor) != null ? f : this.lineColor,
|
|
71
|
+
dashed: (P = (g = this.paramsStyle) == null ? void 0 : g.dashed) != null ? P : this.dashed,
|
|
72
|
+
occlusionVisibility: (V = (S = this.paramsStyle) == null ? void 0 : S.occlusionVisibility) != null ? V : this.occlusionVisibility
|
|
71
73
|
};
|
|
72
|
-
this.lines.length && this.lines.forEach((m) => m.removeFromParent()), this.lines =
|
|
73
|
-
const W =
|
|
74
|
+
this.lines.length && this.lines.forEach((m) => m.removeFromParent()), this.lines = o.map((m, p) => {
|
|
75
|
+
const W = o[p + 1];
|
|
74
76
|
if (p !== 0 && W === void 0)
|
|
75
77
|
return null;
|
|
76
|
-
const b =
|
|
78
|
+
const b = new H(c(a({}, r), {
|
|
79
|
+
pointVisibility: this.withDots ? { startPoint: p === 0, endPoint: !0 } : !1
|
|
80
|
+
}));
|
|
77
81
|
return b.setPoints([m, W]), b;
|
|
78
|
-
}).filter(
|
|
82
|
+
}).filter(F), this.add(...this.lines);
|
|
79
83
|
}
|
|
80
84
|
setStyle(i) {
|
|
81
85
|
this.paramsStyle = i, this.lines.forEach((t) => t.setStyle(i));
|
|
@@ -87,19 +91,19 @@ class w extends B {
|
|
|
87
91
|
this.lines.forEach((i) => i.unhighlight());
|
|
88
92
|
}
|
|
89
93
|
}
|
|
90
|
-
class
|
|
94
|
+
class Q extends w {
|
|
91
95
|
constructor(...i) {
|
|
92
96
|
super(c(a({}, i[0]), { withDots: !1 }));
|
|
93
97
|
l(this, "name", "PolylineMesh");
|
|
94
98
|
}
|
|
95
99
|
}
|
|
96
|
-
class
|
|
100
|
+
class U extends w {
|
|
97
101
|
constructor(...i) {
|
|
98
102
|
super(c(a({}, i[0]), { withDots: !0 }));
|
|
99
103
|
l(this, "name", "PolylineWithDotsMesh");
|
|
100
104
|
}
|
|
101
105
|
}
|
|
102
106
|
export {
|
|
103
|
-
|
|
104
|
-
|
|
107
|
+
Q as PolylineMesh,
|
|
108
|
+
U as PolylineWithDotsMesh
|
|
105
109
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { IObject3D } from '../../shared-utils/three/IObject3D';
|
|
2
2
|
import { type AnyPosition, type AnyPositions } from '../../shared-utils/positionToVector3';
|
|
3
|
-
import {
|
|
3
|
+
import type { AreaData } from './Area';
|
|
4
4
|
import * as THREE from 'three';
|
|
5
5
|
import type { LineStyle } from '../utils/color';
|
|
6
6
|
import type { ColoredMeshStyle } from '../utils/three/ColoredMesh';
|
|
7
|
+
import { PolygonWithEdgeMesh } from './PolygonWithEdge';
|
|
7
8
|
export type PrismStyle = ColoredMeshStyle & LineStyle;
|
|
8
9
|
export interface PrismData extends AreaData {
|
|
9
10
|
heightPoint: AnyPosition;
|
|
@@ -14,8 +15,9 @@ export interface PrismData extends AreaData {
|
|
|
14
15
|
export declare class PrismMesh extends IObject3D {
|
|
15
16
|
name: string;
|
|
16
17
|
heightPoint: THREE.Vector3;
|
|
17
|
-
bottomPolygon:
|
|
18
|
-
topPolygon:
|
|
18
|
+
bottomPolygon: PolygonWithEdgeMesh;
|
|
19
|
+
topPolygon: PolygonWithEdgeMesh;
|
|
20
|
+
get center(): THREE.Vector3;
|
|
19
21
|
get color(): THREE.Color;
|
|
20
22
|
get lineWidth(): number;
|
|
21
23
|
get lineColor(): THREE.Color;
|
|
@@ -1,28 +1,34 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var d = Object.defineProperty;
|
|
2
|
+
var b = (n, e, t) => e in n ? d(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var h = (n, e, t) => (b(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import { IObject3D as P } from "../../shared-utils/three/IObject3D.js";
|
|
5
5
|
import { anyPositionToVector3 as r } from "../../shared-utils/positionToVector3.js";
|
|
6
|
-
import { AreaMesh as m } from "./Area.js";
|
|
7
6
|
import "hammerjs";
|
|
8
|
-
import * as
|
|
7
|
+
import * as m from "three";
|
|
9
8
|
import "@realsee/five";
|
|
10
9
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
11
10
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
12
11
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
13
|
-
import { notNil as
|
|
14
|
-
import { PolygonMesh as
|
|
12
|
+
import { notNil as c } from "../../shared-utils/isNil.js";
|
|
13
|
+
import { PolygonMesh as y } from "./Polygon.js";
|
|
15
14
|
import { LineMesh as p } from "./Line.js";
|
|
16
|
-
|
|
15
|
+
import { PolygonWithEdgeMesh as f } from "./PolygonWithEdge.js";
|
|
16
|
+
class N extends P {
|
|
17
17
|
constructor(t) {
|
|
18
18
|
super();
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
h(this, "name", "PrismMesh");
|
|
20
|
+
h(this, "heightPoint");
|
|
21
|
+
h(this, "bottomPolygon", new f());
|
|
22
|
+
h(this, "topPolygon", new f());
|
|
23
|
+
h(this, "edgePlanes", new P());
|
|
24
24
|
this.topPolygon.name = "TopPolygon", this.bottomPolygon.name = "BottomPolygon", this.edgePlanes.name = "EdgePlanes", this.addIfNotExists(this.bottomPolygon), t && this.setPoints(t), t && this.setStyle(t);
|
|
25
25
|
}
|
|
26
|
+
get center() {
|
|
27
|
+
var s, i;
|
|
28
|
+
const t = (s = this.topPolygon) == null ? void 0 : s.center, o = (i = this.bottomPolygon) == null ? void 0 : i.center;
|
|
29
|
+
if (t && o)
|
|
30
|
+
return new m.Vector3().lerpVectors(t, o, 0.5);
|
|
31
|
+
}
|
|
26
32
|
get color() {
|
|
27
33
|
return this.bottomPolygon.color;
|
|
28
34
|
}
|
|
@@ -34,11 +40,11 @@ class W extends P {
|
|
|
34
40
|
}
|
|
35
41
|
setStyle(t) {
|
|
36
42
|
this.bottomPolygon.setStyle(t), this.topPolygon.setStyle(t), this.edgePlanes.children.forEach((o) => {
|
|
37
|
-
(o instanceof p || o instanceof
|
|
43
|
+
(o instanceof p || o instanceof y) && o.setStyle(t);
|
|
38
44
|
});
|
|
39
45
|
}
|
|
40
46
|
setPoints(t) {
|
|
41
|
-
|
|
47
|
+
c(t.points) && this.setBottomPoints(t.points), c(t.heightPoint) && this.setTopHeightPoint(r(t.heightPoint));
|
|
42
48
|
}
|
|
43
49
|
highlight() {
|
|
44
50
|
this.bottomPolygon.highlight(), this.topPolygon.highlight(), this.edgePlanes.children.forEach((t) => {
|
|
@@ -51,28 +57,27 @@ class W extends P {
|
|
|
51
57
|
});
|
|
52
58
|
}
|
|
53
59
|
setBottomPoints(t) {
|
|
54
|
-
|
|
55
|
-
this.bottomPolygon.setPoints(o), this.heightPoint && this.setTopHeightPoint(this.heightPoint);
|
|
60
|
+
this.bottomPolygon.setPoints(t.map(r)), this.heightPoint && this.setTopHeightPoint(this.heightPoint);
|
|
56
61
|
}
|
|
57
62
|
setTopHeightPoint(t) {
|
|
58
63
|
this.heightPoint = t, this.addIfNotExists(this.topPolygon);
|
|
59
|
-
const o = this.bottomPolygon.projectPoint(t),
|
|
60
|
-
this.up.copy(
|
|
61
|
-
const
|
|
62
|
-
this.topPolygon.setPoints(
|
|
64
|
+
const o = this.bottomPolygon.projectPoint(t), s = new m.Vector3().subVectors(t, o);
|
|
65
|
+
this.up.copy(s.clone().normalize());
|
|
66
|
+
const g = this.bottomPolygon.points.map((l) => l.clone().add(s));
|
|
67
|
+
this.topPolygon.setPoints(g), this.setEdgePlanes();
|
|
63
68
|
}
|
|
64
69
|
setEdgePlanes() {
|
|
65
70
|
const t = this.bottomPolygon.points, o = this.topPolygon.points;
|
|
66
|
-
this.addIfNotExists(this.edgePlanes), this.edgePlanes.removeChildren(), t.forEach((
|
|
67
|
-
if (
|
|
71
|
+
this.addIfNotExists(this.edgePlanes), this.edgePlanes.removeChildren(), t.forEach((s, i) => {
|
|
72
|
+
if (i === 0)
|
|
68
73
|
return;
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
const
|
|
72
|
-
|
|
74
|
+
const g = new y({ color: this.color });
|
|
75
|
+
g.setPoints([t[i - 1], t[i], o[i], o[i - 1]]);
|
|
76
|
+
const l = new p({ lineColor: this.lineColor, lineWidth: this.lineWidth });
|
|
77
|
+
l.name = "EdgeLine", l.setPoints([t[i - 1], o[i - 1]]), this.edgePlanes.add(g, l);
|
|
73
78
|
});
|
|
74
79
|
}
|
|
75
80
|
}
|
|
76
81
|
export {
|
|
77
|
-
|
|
82
|
+
N as PrismMesh
|
|
78
83
|
};
|
|
@@ -2,6 +2,7 @@ import type { FiveDomEventMap } from '../../../shared-utils/five/FiveDomEvents';
|
|
|
2
2
|
import { IObject3D } from '../../../shared-utils/three/IObject3D';
|
|
3
3
|
import type { BaseEditor } from './Editor';
|
|
4
4
|
import type { RequiredDeep } from 'type-fest';
|
|
5
|
+
import type { ImportDataToExportData } from '../../typings/utils.type';
|
|
5
6
|
import type * as THREE from 'three';
|
|
6
7
|
export interface BaseImportData {
|
|
7
8
|
id?: string;
|
|
@@ -24,7 +25,8 @@ export interface BaseObjectConfig {
|
|
|
24
25
|
/**
|
|
25
26
|
* @description: 基础对象
|
|
26
27
|
*/
|
|
27
|
-
export declare abstract class BaseObject<ImportData extends BaseImportData = BaseImportData, ExportData extends BaseExportData =
|
|
28
|
+
export declare abstract class BaseObject<ImportData extends BaseImportData = BaseImportData, ExportData extends BaseExportData = ImportDataToExportData<ImportData>, // 有性能问题,先注释掉
|
|
29
|
+
Config extends BaseObjectConfig = BaseObjectConfig> extends IObject3D {
|
|
28
30
|
name: string;
|
|
29
31
|
readonly isSculptObject = true;
|
|
30
32
|
draggable: boolean;
|
|
@@ -49,7 +51,7 @@ export declare abstract class BaseObject<ImportData extends BaseImportData = Bas
|
|
|
49
51
|
protected get pointSelector(): import("../../../shared-utils/three/PointSelector").PointSelector;
|
|
50
52
|
constructor(data?: Partial<ImportData>, config?: Partial<Config>);
|
|
51
53
|
on: <T extends keyof FiveDomEventMap>(event: T, callback: FiveDomEventMap[T]) => void;
|
|
52
|
-
off: (event: keyof FiveDomEventMap, callback
|
|
54
|
+
off: (event: keyof FiveDomEventMap, callback?: (e: import("../../../shared-utils/five/FiveDomEvents").FiveDomEvent) => any, ...args: any[]) => void;
|
|
53
55
|
stopCreating(): void;
|
|
54
56
|
delete(): void;
|
|
55
57
|
highlight(): void;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { Polygon } from '.';
|
|
2
2
|
import type { FiveDomEvent } from '../../../shared-utils/five/FiveDomEvents';
|
|
3
3
|
import { LineEditor } from '../Polyline/Editor';
|
|
4
|
+
import * as THREE from 'three';
|
|
4
5
|
export declare class PolygonEditor extends LineEditor<Polygon> {
|
|
5
|
-
get
|
|
6
|
+
get points(): THREE.Vector3[];
|
|
6
7
|
constructor(originObject: Polygon);
|
|
7
8
|
protected onDrag: (event: FiveDomEvent) => void;
|
|
8
9
|
}
|
|
@@ -4,20 +4,20 @@ var r = (o, i, t) => (g(o, typeof i != "symbol" ? i + "" : i, t), t);
|
|
|
4
4
|
import { Sculpt as c } from "../../index.js";
|
|
5
5
|
import { getIntersectByRaycaster as p } from "../../../shared-utils/five/getPosition.js";
|
|
6
6
|
import { LineEditor as h } from "../Polyline/Editor.js";
|
|
7
|
-
class
|
|
7
|
+
class u extends h {
|
|
8
8
|
constructor(t) {
|
|
9
9
|
super(t);
|
|
10
10
|
r(this, "onDrag", (t) => {
|
|
11
11
|
if (!this.draggingPoints || this.draggingPoints.length === 0)
|
|
12
12
|
return;
|
|
13
13
|
const e = p(c.modules.five, t.raycaster), n = this.originObject.areaMesh.projectPoint(e.point);
|
|
14
|
-
this.draggingPoints.forEach((s) => s.position.copy(n)), this.originObject.areaMesh.setPoints(this.
|
|
14
|
+
this.draggingPoints.forEach((s) => s.position.copy(n)), this.originObject.areaMesh.setPoints(this.pointMeshes.map((s) => s.position));
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
get
|
|
18
|
-
return this.originObject.areaMesh.
|
|
17
|
+
get points() {
|
|
18
|
+
return this.originObject.areaMesh.points;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
u as PolygonEditor
|
|
23
23
|
};
|