@realsee/dnalogel 3.21.2 → 3.23.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 +36 -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/Text.svelte.d.ts +1 -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 +4775 -4429
- package/dist/index.umd.js +47 -47
- package/dist/shared-utils/Object3DHelper/utils/boundingBox.d.ts +12 -0
- 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 +19 -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 +10 -8
- 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/AreaMakerPlugin/utils/Item.js +12 -13
- package/libs/GuideLinePlugin/Controller.js +15 -15
- package/libs/ModelMakerPlugin/Controller.d.ts +26 -0
- package/libs/ModelMakerPlugin/Controller.js +203 -0
- package/libs/ModelMakerPlugin/index.d.ts +4 -0
- package/libs/ModelMakerPlugin/index.js +61 -0
- package/libs/ModelMakerPlugin/item/baseItem.d.ts +36 -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 +32 -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/Text.js +45 -0
- package/libs/ModelMakerPlugin/utils/Text.svelte.d.ts +1 -0
- package/libs/ModelMakerPlugin/utils/tagRenderer.d.ts +3 -0
- package/libs/ModelMakerPlugin/utils/tagRenderer.js +26 -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 +4 -2
- 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/components/AreaLabel/LabelItem.js +61 -61
- package/libs/index.d.ts +1 -0
- package/libs/index.js +138 -123
- package/libs/shared-utils/Object3DHelper/utils/boundingBox.d.ts +12 -0
- package/libs/shared-utils/Object3DHelper/utils/boundingBox.js +44 -22
- 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 +19 -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
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type * as BasePlugin from '../../base/BasePluginWithData';
|
|
2
|
+
import type * as THREE from 'three';
|
|
3
|
+
import type { ModelMakerBaseItem } from '../item/baseItem';
|
|
4
|
+
import type { ServerData } from './data';
|
|
5
|
+
export type { Controller as ModelMakerController } from '../Controller';
|
|
6
|
+
export type * from './data';
|
|
7
|
+
/** 插件状态 */
|
|
8
|
+
export interface State extends BasePlugin.State {
|
|
9
|
+
/** 插件是否启用 */
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
/** 插件整体是否可见 */
|
|
12
|
+
visible: boolean;
|
|
13
|
+
}
|
|
14
|
+
/** 插件事件 */
|
|
15
|
+
export interface EventMap extends BasePlugin.EventMap<State, ServerData> {
|
|
16
|
+
/** visible 从 false 到 true 的回调
|
|
17
|
+
* @param event.userAction 是否是用户操作
|
|
18
|
+
*/
|
|
19
|
+
show: (event: {
|
|
20
|
+
userAction: boolean;
|
|
21
|
+
}) => void;
|
|
22
|
+
/** visible 从 true 到 false 的回调
|
|
23
|
+
* @param event.userAction 是否是用户操作
|
|
24
|
+
*/
|
|
25
|
+
hide: (event: {
|
|
26
|
+
userAction: boolean;
|
|
27
|
+
}) => void;
|
|
28
|
+
/** enabled 从 false 到 true 的回调
|
|
29
|
+
* @param event.userAction 是否是用户操作
|
|
30
|
+
*/
|
|
31
|
+
enable: (event: {
|
|
32
|
+
userAction: boolean;
|
|
33
|
+
}) => void;
|
|
34
|
+
/** enabled 从 true 到 false 的回调
|
|
35
|
+
* @param event.userAction 是否是用户操作
|
|
36
|
+
*/
|
|
37
|
+
disable: (event: {
|
|
38
|
+
userAction: boolean;
|
|
39
|
+
}) => void;
|
|
40
|
+
/** 插件内容点击的回调
|
|
41
|
+
* @param event.target 点击的标注实例
|
|
42
|
+
* @param event.intersectObjects 射线与标注模型的交点集合
|
|
43
|
+
* @param event.wantsFiveTapGestureParams Five wantsFiveTapGesture 的回调参数
|
|
44
|
+
* @returns <boolean> | <void> 返回 false 会阻止 Five wantsFiveTapGesture 的回调,其余 return 值会被忽略
|
|
45
|
+
*/
|
|
46
|
+
wantsTap: (event: {
|
|
47
|
+
target: any;
|
|
48
|
+
intersectObjects: THREE.Intersection[];
|
|
49
|
+
}) => boolean | void;
|
|
50
|
+
}
|
|
51
|
+
export type ItemType = ServerData['list'][number]['type'];
|
|
52
|
+
export type ElementRenderer = (container: HTMLElement, item: ModelMakerBaseItem) => () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { SvelteComponent as s, init as r, safe_not_equal as l, append_styles as c, element as d, text as f, attr as m, insert as p, append as u, set_data as v, noop as o, detach as x } from "../../vendor/svelte/internal/index.js";
|
|
2
|
+
function g(n) {
|
|
3
|
+
c(n, "svelte-7zg6cv", ".withAnimation{transition:opacity 0.2s linear}.model-maker-tag.svelte-7zg6cv{color:#fff;font-size:0.875rem;font-weight:bold;text-shadow:0.125rem 0 0.5rem rgba(0, 0, 0, 0.15)}");
|
|
4
|
+
}
|
|
5
|
+
function _(n) {
|
|
6
|
+
let t, i;
|
|
7
|
+
return {
|
|
8
|
+
c() {
|
|
9
|
+
t = d("div"), i = f(
|
|
10
|
+
/*text*/
|
|
11
|
+
n[0]
|
|
12
|
+
), m(t, "class", "model-maker-tag svelte-7zg6cv");
|
|
13
|
+
},
|
|
14
|
+
m(e, a) {
|
|
15
|
+
p(e, t, a), u(t, i);
|
|
16
|
+
},
|
|
17
|
+
p(e, [a]) {
|
|
18
|
+
a & /*text*/
|
|
19
|
+
1 && v(
|
|
20
|
+
i,
|
|
21
|
+
/*text*/
|
|
22
|
+
e[0]
|
|
23
|
+
);
|
|
24
|
+
},
|
|
25
|
+
i: o,
|
|
26
|
+
o,
|
|
27
|
+
d(e) {
|
|
28
|
+
e && x(t);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function h(n, t, i) {
|
|
33
|
+
let { text: e } = t;
|
|
34
|
+
return n.$$set = (a) => {
|
|
35
|
+
"text" in a && i(0, e = a.text);
|
|
36
|
+
}, [e];
|
|
37
|
+
}
|
|
38
|
+
class w extends s {
|
|
39
|
+
constructor(t) {
|
|
40
|
+
super(), r(this, t, h, _, l, { text: 0 }, g);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
w as default
|
|
45
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponentTyped as default } from 'svelte/internal';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import n from "./Text.js";
|
|
2
|
+
import { LabelItem as p } from "../../components/AreaLabel/LabelItem.js";
|
|
3
|
+
import "../../vendor/svelte/internal/index.js";
|
|
4
|
+
import "../../components/AreaLabel/Assets/roomLabelBg.js";
|
|
5
|
+
const a = (e, r) => {
|
|
6
|
+
var t;
|
|
7
|
+
const o = new n({
|
|
8
|
+
target: e,
|
|
9
|
+
props: { text: (t = r.rawData) == null ? void 0 : t.name }
|
|
10
|
+
});
|
|
11
|
+
return () => o.$destroy();
|
|
12
|
+
}, s = (e, r) => {
|
|
13
|
+
var t;
|
|
14
|
+
const o = new p({
|
|
15
|
+
target: e,
|
|
16
|
+
props: { content: (t = r.rawData) == null ? void 0 : t.name }
|
|
17
|
+
});
|
|
18
|
+
return () => o.$destroy();
|
|
19
|
+
}, x = {
|
|
20
|
+
box: a,
|
|
21
|
+
triangles: a,
|
|
22
|
+
prism: s
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
x as tagRendererMap
|
|
26
|
+
};
|
|
@@ -24,7 +24,9 @@ import "../Model/area.js";
|
|
|
24
24
|
import "../Model/polygon.js";
|
|
25
25
|
import "../../shared-utils/three/IObject3D.js";
|
|
26
26
|
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
27
|
+
import "../../shared-utils/three/earcut3D.js";
|
|
27
28
|
import "earcut";
|
|
29
|
+
import "../../shared-utils/three/getNormal.js";
|
|
28
30
|
import "../utils/dom/areaDom.js";
|
|
29
31
|
import "../../shared-utils/three/geometryUtil.js";
|
|
30
32
|
import "hammerjs";
|
|
@@ -276,7 +278,7 @@ function re(n, o, i) {
|
|
|
276
278
|
u
|
|
277
279
|
];
|
|
278
280
|
}
|
|
279
|
-
class
|
|
281
|
+
class wt extends j {
|
|
280
282
|
constructor(o) {
|
|
281
283
|
super(), x(
|
|
282
284
|
this,
|
|
@@ -294,5 +296,5 @@ class _t extends j {
|
|
|
294
296
|
}
|
|
295
297
|
}
|
|
296
298
|
export {
|
|
297
|
-
|
|
299
|
+
wt as default
|
|
298
300
|
};
|
|
@@ -28,7 +28,9 @@ import "../Model/area.js";
|
|
|
28
28
|
import "../Model/polygon.js";
|
|
29
29
|
import "../../shared-utils/three/IObject3D.js";
|
|
30
30
|
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
31
|
+
import "../../shared-utils/three/earcut3D.js";
|
|
31
32
|
import "earcut";
|
|
33
|
+
import "../../shared-utils/three/getNormal.js";
|
|
32
34
|
import "../utils/dom/areaDom.js";
|
|
33
35
|
import "../../shared-utils/three/geometryUtil.js";
|
|
34
36
|
import "hammerjs";
|
|
@@ -426,7 +428,7 @@ function de(o, t, i) {
|
|
|
426
428
|
x
|
|
427
429
|
];
|
|
428
430
|
}
|
|
429
|
-
class
|
|
431
|
+
class It extends ee {
|
|
430
432
|
constructor(t) {
|
|
431
433
|
super(), te(
|
|
432
434
|
this,
|
|
@@ -444,5 +446,5 @@ class Bt extends ee {
|
|
|
444
446
|
}
|
|
445
447
|
}
|
|
446
448
|
export {
|
|
447
|
-
|
|
449
|
+
It as default
|
|
448
450
|
};
|
|
@@ -26,7 +26,9 @@ import "../utils/ironbox.js";
|
|
|
26
26
|
import "../Model/polygon.js";
|
|
27
27
|
import "../../shared-utils/three/IObject3D.js";
|
|
28
28
|
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
29
|
+
import "../../shared-utils/three/earcut3D.js";
|
|
29
30
|
import "earcut";
|
|
31
|
+
import "../../shared-utils/three/getNormal.js";
|
|
30
32
|
import "../utils/dom/areaDom.js";
|
|
31
33
|
import "../../shared-utils/three/geometryUtil.js";
|
|
32
34
|
import "hammerjs";
|
|
@@ -66,7 +68,7 @@ import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
|
66
68
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
67
69
|
import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
68
70
|
const M = () => !1;
|
|
69
|
-
class
|
|
71
|
+
class Ze extends j {
|
|
70
72
|
constructor(e) {
|
|
71
73
|
var t;
|
|
72
74
|
super(e);
|
|
@@ -326,5 +328,5 @@ class Xe extends j {
|
|
|
326
328
|
}
|
|
327
329
|
}
|
|
328
330
|
export {
|
|
329
|
-
|
|
331
|
+
Ze as default
|
|
330
332
|
};
|
|
@@ -49,9 +49,11 @@ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
|
49
49
|
import "../../shared-utils/isNil.js";
|
|
50
50
|
import "../../shared-utils/three/IObject3D.js";
|
|
51
51
|
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
52
|
+
import "../../shared-utils/three/earcut3D.js";
|
|
52
53
|
import "earcut";
|
|
54
|
+
import "../../shared-utils/three/getNormal.js";
|
|
53
55
|
const C = () => !1;
|
|
54
|
-
class
|
|
56
|
+
class jt extends G {
|
|
55
57
|
constructor(t) {
|
|
56
58
|
super(t);
|
|
57
59
|
s(this, "type", "watch");
|
|
@@ -224,5 +226,5 @@ class bt extends G {
|
|
|
224
226
|
}
|
|
225
227
|
}
|
|
226
228
|
export {
|
|
227
|
-
|
|
229
|
+
jt as default
|
|
228
230
|
};
|
|
@@ -47,7 +47,9 @@ import "../Model/area.js";
|
|
|
47
47
|
import "../Model/polygon.js";
|
|
48
48
|
import "../../shared-utils/three/IObject3D.js";
|
|
49
49
|
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
50
|
+
import "../../shared-utils/three/earcut3D.js";
|
|
50
51
|
import "earcut";
|
|
52
|
+
import "../../shared-utils/three/getNormal.js";
|
|
51
53
|
import "../utils/dom/areaDom.js";
|
|
52
54
|
import "../../shared-utils/three/geometryUtil.js";
|
|
53
55
|
import "hammerjs";
|
|
@@ -110,7 +112,7 @@ import "../../vendor/svelte/transition/index.js";
|
|
|
110
112
|
import "../../vendor/svelte/easing/index.js";
|
|
111
113
|
import "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
112
114
|
import "../Components/Tip.js";
|
|
113
|
-
class
|
|
115
|
+
class Se {
|
|
114
116
|
constructor(t, e) {
|
|
115
117
|
r(this, "hasOpen", !1);
|
|
116
118
|
r(this, "hook", new G());
|
|
@@ -312,5 +314,5 @@ class Ge {
|
|
|
312
314
|
}
|
|
313
315
|
}
|
|
314
316
|
export {
|
|
315
|
-
|
|
317
|
+
Se as default
|
|
316
318
|
};
|
|
@@ -19,7 +19,9 @@ import "../utils/isNDCPointInScreen.js";
|
|
|
19
19
|
import "../../shared-utils/three/centerPoint.js";
|
|
20
20
|
import "../../shared-utils/three/IObject3D.js";
|
|
21
21
|
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
22
|
+
import "../../shared-utils/three/earcut3D.js";
|
|
22
23
|
import "earcut";
|
|
24
|
+
import "../../shared-utils/three/getNormal.js";
|
|
23
25
|
import "../../shared-utils/three/geometryUtil.js";
|
|
24
26
|
import "hammerjs";
|
|
25
27
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -39,7 +41,7 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
39
41
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
40
42
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
41
43
|
import "../../shared-utils/isNil.js";
|
|
42
|
-
class
|
|
44
|
+
class nt {
|
|
43
45
|
constructor(t, e) {
|
|
44
46
|
i(this, "id", f());
|
|
45
47
|
i(this, "selected", !1);
|
|
@@ -138,5 +140,5 @@ class ot {
|
|
|
138
140
|
}
|
|
139
141
|
}
|
|
140
142
|
export {
|
|
141
|
-
|
|
143
|
+
nt as default
|
|
142
144
|
};
|
|
@@ -1,44 +1,46 @@
|
|
|
1
|
-
var
|
|
2
|
-
var c = (o, t, e) => t in o ?
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var c = (o, t, e) => t in o ? l(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
3
3
|
var s = (o, t, e) => (c(o, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
4
|
import * as r from "three";
|
|
5
5
|
import { IObject3D as h } from "../../shared-utils/three/IObject3D.js";
|
|
6
6
|
import { generatePolygonGeometry as d } from "../../shared-utils/three/generatePolygonGeometry.js";
|
|
7
|
+
import "../../shared-utils/three/earcut3D.js";
|
|
7
8
|
import "earcut";
|
|
9
|
+
import "../../shared-utils/three/getNormal.js";
|
|
8
10
|
const p = new r.BufferGeometry();
|
|
9
|
-
class
|
|
11
|
+
class w extends h {
|
|
10
12
|
constructor(e) {
|
|
11
13
|
super();
|
|
12
14
|
s(this, "isPolygonMesh", !0);
|
|
13
15
|
s(this, "geometry", new r.BufferGeometry());
|
|
14
16
|
s(this, "isBlank", !0);
|
|
15
17
|
s(this, "points", []);
|
|
16
|
-
const
|
|
18
|
+
const i = new r.MeshBasicMaterial({
|
|
17
19
|
color: 4090367,
|
|
18
20
|
transparent: !0,
|
|
19
21
|
side: r.DoubleSide,
|
|
20
22
|
depthTest: !0,
|
|
21
23
|
opacity: 0.5
|
|
22
|
-
}),
|
|
24
|
+
}), m = new r.MeshBasicMaterial({
|
|
23
25
|
color: 16777215,
|
|
24
26
|
transparent: !0,
|
|
25
27
|
side: r.DoubleSide,
|
|
26
28
|
depthTest: !1,
|
|
27
29
|
depthWrite: !1,
|
|
28
30
|
opacity: 0.3
|
|
29
|
-
}),
|
|
30
|
-
|
|
31
|
+
}), n = new r.Mesh(this.geometry, i), a = new r.Mesh(this.geometry, m);
|
|
32
|
+
n.renderOrder = 1, a.renderOrder = 0, e && this.updatePoints(e), this.add(n, a);
|
|
31
33
|
}
|
|
32
34
|
/**
|
|
33
35
|
* @description: 按照新的端点来更新多边形的geometry
|
|
34
36
|
*/
|
|
35
37
|
updatePoints(e) {
|
|
36
38
|
this.points = e;
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
+
const i = d(e);
|
|
40
|
+
i ? (this.geometry.copy(i), this.isBlank = !1) : (this.geometry.copy(p), this.isBlank = !0);
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
43
|
export {
|
|
42
44
|
p as blankGeometry,
|
|
43
|
-
|
|
45
|
+
w as default
|
|
44
46
|
};
|
|
@@ -34,7 +34,9 @@ import "../../Model/area.js";
|
|
|
34
34
|
import "../../Model/polygon.js";
|
|
35
35
|
import "../../../shared-utils/three/IObject3D.js";
|
|
36
36
|
import "../../../shared-utils/three/generatePolygonGeometry.js";
|
|
37
|
+
import "../../../shared-utils/three/earcut3D.js";
|
|
37
38
|
import "earcut";
|
|
39
|
+
import "../../../shared-utils/three/getNormal.js";
|
|
38
40
|
import "../../utils/dom/areaDom.js";
|
|
39
41
|
import "../../../shared-utils/three/geometryUtil.js";
|
|
40
42
|
import "hammerjs";
|
|
@@ -82,7 +84,7 @@ import "../../Components/Common/Switcher1.js";
|
|
|
82
84
|
import "../../Components/Common/CircleButton.js";
|
|
83
85
|
import "../../../vendor/svelte/transition/index.js";
|
|
84
86
|
import "../../../vendor/svelte/easing/index.js";
|
|
85
|
-
class
|
|
87
|
+
class eo {
|
|
86
88
|
constructor(o, t) {
|
|
87
89
|
e(this, "revoke");
|
|
88
90
|
e(this, "container");
|
|
@@ -136,5 +138,5 @@ class to {
|
|
|
136
138
|
}
|
|
137
139
|
}
|
|
138
140
|
export {
|
|
139
|
-
|
|
141
|
+
eo as UIController
|
|
140
142
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import t from "./Controller/index.js";
|
|
2
|
-
import { Magnifier as
|
|
2
|
+
import { Magnifier as _o } from "../shared-utils/three/Magnifier.js";
|
|
3
3
|
import "three";
|
|
4
4
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
5
5
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
6
6
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
7
7
|
import "@realsee/five";
|
|
8
|
-
import { Model as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { Polyline as
|
|
8
|
+
import { Model as or } from "./Model/index.js";
|
|
9
|
+
import { default as tr } from "./Model/point.js";
|
|
10
|
+
import { default as mr } from "./Model/line.js";
|
|
11
|
+
import { Polyline as er } from "./Model/polyline.js";
|
|
12
12
|
import "./Controller/EditController.js";
|
|
13
13
|
import "../shared-utils/throttle.js";
|
|
14
14
|
import "./Controller/BaseController.js";
|
|
@@ -26,7 +26,9 @@ import "./Model/area.js";
|
|
|
26
26
|
import "./Model/polygon.js";
|
|
27
27
|
import "../shared-utils/three/IObject3D.js";
|
|
28
28
|
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
29
|
+
import "../shared-utils/three/earcut3D.js";
|
|
29
30
|
import "earcut";
|
|
31
|
+
import "../shared-utils/three/getNormal.js";
|
|
30
32
|
import "./utils/dom/areaDom.js";
|
|
31
33
|
import "../shared-utils/three/geometryUtil.js";
|
|
32
34
|
import "hammerjs";
|
|
@@ -99,15 +101,15 @@ import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
|
99
101
|
import "./Components/Tip.js";
|
|
100
102
|
import "./Controller/ShortcutKeyController.js";
|
|
101
103
|
import "../shared-utils/safeObj.js";
|
|
102
|
-
const
|
|
104
|
+
const Xo = function(o, r) {
|
|
103
105
|
return new t(o, r);
|
|
104
106
|
};
|
|
105
107
|
export {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
108
|
+
_o as Magnifier,
|
|
109
|
+
Xo as PanoMeasurePlugin,
|
|
110
|
+
mr as PanoMeasurePluginLine,
|
|
111
|
+
or as PanoMeasurePluginModel,
|
|
112
|
+
tr as PanoMeasurePluginPoint,
|
|
113
|
+
er as PanoMeasurePluginPolyline,
|
|
114
|
+
Xo as default
|
|
113
115
|
};
|
|
@@ -1,30 +1,9 @@
|
|
|
1
1
|
import type { LineStyle } from '../utils/color';
|
|
2
|
-
import { type AnyPositions } from '../../shared-utils/positionToVector3';
|
|
3
|
-
import { PolylineWithDotsMesh } from './Polyline';
|
|
4
|
-
import * as THREE from 'three';
|
|
5
|
-
import PolygonMesh from './Polygon';
|
|
6
2
|
import type { PointsData } from '../utils/data';
|
|
7
3
|
import type { ColoredMeshStyle } from '../utils/three/ColoredMesh';
|
|
4
|
+
import { PolygonWithEdgeMesh } from './PolygonWithEdge';
|
|
8
5
|
export type AreaStyle = ColoredMeshStyle & LineStyle;
|
|
9
6
|
export type AreaData = PointsData;
|
|
10
|
-
export declare class AreaMesh extends
|
|
7
|
+
export declare class AreaMesh extends PolygonWithEdgeMesh {
|
|
11
8
|
name: string;
|
|
12
|
-
polygon: PolygonMesh;
|
|
13
|
-
get color(): THREE.Color;
|
|
14
|
-
get opacity(): number;
|
|
15
|
-
/** 多边形前三个点组成的平面,用来使得后面加的点也落在这个平面上 */
|
|
16
|
-
private planeHelper;
|
|
17
|
-
private planeHelperNeedUpdate;
|
|
18
|
-
constructor(params?: Partial<AreaStyle & AreaData>);
|
|
19
|
-
setStyle(params: Partial<AreaStyle>): void;
|
|
20
|
-
setPoints(points: AnyPositions, autoClosed?: boolean): void;
|
|
21
|
-
getGeometryInfo(): {
|
|
22
|
-
center: THREE.Vector3;
|
|
23
|
-
area: number;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* @description: 获取一个点投影在当前平面上的点
|
|
27
|
-
*/
|
|
28
|
-
projectPoint(point: THREE.Vector3): THREE.Vector3;
|
|
29
|
-
private updatePlaneHelper;
|
|
30
9
|
}
|
|
@@ -1,56 +1,13 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
c.call(t, e) && i(o, e, t[e]);
|
|
10
|
-
return o;
|
|
11
|
-
};
|
|
12
|
-
var l = (o, t, e) => (i(o, typeof t != "symbol" ? t + "" : t, e), e);
|
|
13
|
-
import { anyPositionToVector3 as g } from "../../shared-utils/positionToVector3.js";
|
|
14
|
-
import { PolylineWithDotsMesh as a } from "./Polyline.js";
|
|
15
|
-
import * as h from "three";
|
|
16
|
-
import { PolygonMesh as d } from "./Polygon.js";
|
|
17
|
-
class N extends a {
|
|
18
|
-
constructor(e) {
|
|
19
|
-
super();
|
|
20
|
-
l(this, "name", "AreaMesh");
|
|
21
|
-
l(this, "polygon");
|
|
22
|
-
/** 多边形前三个点组成的平面,用来使得后面加的点也落在这个平面上 */
|
|
23
|
-
l(this, "planeHelper");
|
|
24
|
-
l(this, "planeHelperNeedUpdate", !0);
|
|
25
|
-
this.add(this.polygon = new d(e)), e != null && e.points && this.setPoints(e.points), e && this.setStyle(e);
|
|
26
|
-
}
|
|
27
|
-
get color() {
|
|
28
|
-
return this.polygon.color;
|
|
29
|
-
}
|
|
30
|
-
get opacity() {
|
|
31
|
-
return this.polygon.opacity;
|
|
32
|
-
}
|
|
33
|
-
setStyle(e) {
|
|
34
|
-
var s;
|
|
35
|
-
super.setStyle(p({ color: e.lineColor }, e)), (s = this.polygon) == null || s.setStyle(e);
|
|
36
|
-
}
|
|
37
|
-
setPoints(e, s = !0) {
|
|
38
|
-
const n = e.map(g);
|
|
39
|
-
s && n.length >= 3 && !n[0].equals(n.at(-1)) && n.push(n[0]), super.setPoints(n), this.polygon.setPoints(n), this.planeHelperNeedUpdate = !0;
|
|
40
|
-
}
|
|
41
|
-
getGeometryInfo() {
|
|
42
|
-
return this.polygon.getGeometryInfo();
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* @description: 获取一个点投影在当前平面上的点
|
|
46
|
-
*/
|
|
47
|
-
projectPoint(e) {
|
|
48
|
-
return e && (this.planeHelperNeedUpdate && this.updatePlaneHelper(), this.planeHelper ? this.planeHelper.projectPoint(e, new h.Vector3()) : e);
|
|
49
|
-
}
|
|
50
|
-
updatePlaneHelper() {
|
|
51
|
-
this.points.length >= 3 ? this.planeHelper = new h.Plane().setFromCoplanarPoints(this.points[0], this.points[1], this.points[2]) : this.planeHelper = null, this.planeHelperNeedUpdate = !1;
|
|
1
|
+
var a = Object.defineProperty;
|
|
2
|
+
var h = (s, e, o) => e in s ? a(s, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[e] = o;
|
|
3
|
+
var r = (s, e, o) => (h(s, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
|
+
import { PolygonWithEdgeMesh as t } from "./PolygonWithEdge.js";
|
|
5
|
+
class M extends t {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
r(this, "name", "AreaMesh");
|
|
52
9
|
}
|
|
53
10
|
}
|
|
54
11
|
export {
|
|
55
|
-
|
|
12
|
+
M as AreaMesh
|
|
56
13
|
};
|
|
@@ -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>);
|