diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 30092a57..a45cb897 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -25,14 +25,18 @@ import { Subject, takeUntil, zip } from 'rxjs'; import { ContributorService } from './services/contributors.service'; import { MapWuiService } from './services/map.service'; import { ResultlistService } from './services/resultlist.service'; -import { ArlasLngLatBounds, ArlasMapFrameworkService } from 'arlas-map'; +import { ArlasMapFrameworkService } from 'arlas-map'; @Component({ selector: 'arlas-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) -export class ArlasWuiComponent implements OnInit { +/** L: a layer class/interface. + * S: a source class/interface. + * M: a Map configuration class/interface. + */ +export class ArlasWuiComponent implements OnInit { public collections = new Array(); public collectionToDescription = new Map(); @@ -54,10 +58,10 @@ export class ArlasWuiComponent implements OnInit { public constructor( private readonly arlasStartupService: ArlasStartupService, private readonly configService: ArlasConfigService, - private readonly resultlistService: ResultlistService, + private readonly resultlistService: ResultlistService, private readonly contributorService: ContributorService, - private readonly mapService: MapWuiService, - private readonly mapFrameworkService: ArlasMapFrameworkService, + private readonly mapService: MapWuiService, + private readonly mapFrameworkService: ArlasMapFrameworkService, private readonly colorService: ArlasColorService, private readonly collaborativeService: ArlasCollaborativesearchService, private readonly analyticsService: AnalyticsService diff --git a/src/app/components/arlas-analytics/arlas-analytics.component.ts b/src/app/components/arlas-analytics/arlas-analytics.component.ts index 67a70aac..2367f79d 100644 --- a/src/app/components/arlas-analytics/arlas-analytics.component.ts +++ b/src/app/components/arlas-analytics/arlas-analytics.component.ts @@ -27,7 +27,11 @@ import { AnalyticsService, ArlasConfigService, ArlasStartupService } from 'arlas templateUrl: './arlas-analytics.component.html', styleUrls: ['./arlas-analytics.component.scss'] }) -export class ArlasAnalyticsComponent implements OnInit { +/** L: a layer class/interface. + * S: a source class/interface. + * M: a Map configuration class/interface. + */ +export class ArlasAnalyticsComponent implements OnInit { /** * @Input : Angular * Whether to show the analytics menu inside of this component. Useful for multi-windows views @@ -41,8 +45,8 @@ export class ArlasAnalyticsComponent implements OnInit { public constructor( protected analyticsService: AnalyticsService, protected arlasStartupService: ArlasStartupService, - private configService: ArlasConfigService, - protected resultlistService: ResultlistService + private readonly configService: ArlasConfigService, + protected resultlistService: ResultlistService ) { } diff --git a/src/app/components/arlas-list/arlas-list.component.ts b/src/app/components/arlas-list/arlas-list.component.ts index ceb98757..2ad1625c 100644 --- a/src/app/components/arlas-list/arlas-list.component.ts +++ b/src/app/components/arlas-list/arlas-list.component.ts @@ -29,7 +29,11 @@ import { Subject, takeUntil } from 'rxjs'; templateUrl: './arlas-list.component.html', styleUrls: ['./arlas-list.component.scss'] }) -export class ArlasListComponent implements OnInit, OnDestroy, AfterViewInit { +/** L: a layer class/interface. + * S: a source class/interface. + * M: a Map configuration class/interface. + */ +export class ArlasListComponent implements OnInit, OnDestroy, AfterViewInit { /** * @Input : Angular @@ -54,7 +58,7 @@ export class ArlasListComponent implements OnInit, OnDestroy, AfterViewInit { private _onDestroy$ = new Subject(); public constructor( - protected resultlistService: ResultlistService + protected resultlistService: ResultlistService ) { } public ngOnInit(): void { } diff --git a/src/app/components/arlas-map/arlas-map.component.ts b/src/app/components/arlas-map/arlas-map.component.ts index 2310e0b1..9ba024b9 100644 --- a/src/app/components/arlas-map/arlas-map.component.ts +++ b/src/app/components/arlas-map/arlas-map.component.ts @@ -55,7 +55,11 @@ const DEFAULT_BASEMAP: BasemapStyle = { templateUrl: './arlas-map.component.html', styleUrls: ['./arlas-map.component.scss'] }) -export class ArlasWuiMapComponent implements OnInit { +/** L: a layer class/interface. + * S: a source class/interface. + * M: a Map configuration class/interface. + */ +export class ArlasWuiMapComponent implements OnInit { /** Map definition */ public mapComponentConfig: any; public mapId = 'mapgl'; @@ -113,13 +117,13 @@ export class ArlasWuiMapComponent implements OnInit { /** Destroy subscriptions */ private readonly _onDestroy$ = new Subject(); - @ViewChild('map', { static: false }) public mapglComponent: ArlasMapComponent; - @ViewChild('import', { static: false }) public mapImportComponent: MapImportComponent; + @ViewChild('map', { static: false }) public mapglComponent: ArlasMapComponent; + @ViewChild('import', { static: false }) public mapImportComponent: MapImportComponent; @ViewChild('mapSettings', { static: false }) public mapSettings: MapSettingsComponent; public constructor( - protected arlasMapService: MapWuiService, - private readonly mapFrameworkService: ArlasMapFrameworkService, + protected arlasMapService: MapWuiService, + private readonly mapFrameworkService: ArlasMapFrameworkService, private readonly toolkitMapService: ArlasMapService, protected visualizeService: VisualizeService, private readonly configService: ArlasConfigService, @@ -130,7 +134,7 @@ export class ArlasWuiMapComponent implements OnInit { private readonly activatedRoute: ActivatedRoute, private readonly router: Router, private readonly mapSettingsService: ArlasMapSettings, - private readonly resultlistService: ResultlistService, + private readonly resultlistService: ResultlistService, private readonly translate: TranslateService, private readonly snackbar: MatSnackBar, private readonly iconRegistry: MatIconRegistry, diff --git a/src/app/components/arlas-wui-root/arlas-wui-root.component.ts b/src/app/components/arlas-wui-root/arlas-wui-root.component.ts index 00417063..93a0440b 100644 --- a/src/app/components/arlas-wui-root/arlas-wui-root.component.ts +++ b/src/app/components/arlas-wui-root/arlas-wui-root.component.ts @@ -51,7 +51,11 @@ import { environment } from '../../../environments/environment'; templateUrl: './arlas-wui-root.component.html', styleUrls: ['./arlas-wui-root.component.scss'], }) -export class ArlasWuiRootComponent implements OnInit, AfterViewInit, OnDestroy { +/** L: a layer class/interface. + * S: a source class/interface. + * M: a Map configuration class/interface. + */ +export class ArlasWuiRootComponent implements OnInit, AfterViewInit, OnDestroy { /** * @Input : Angular * Current version of ARLAS WUI @@ -99,8 +103,8 @@ export class ArlasWuiRootComponent implements OnInit, AfterViewInit, OnDestroy { @Input() public resultListGridColumns = 4; public collections: string[]; @ViewChild('timeline', { static: false }) public timelineComponent: TimelineComponent; - @ViewChild('arlasMap', { static: false }) public arlasMapComponent: ArlasWuiMapComponent; - @ViewChild('arlasList', { static: false }) public arlasListComponent: ArlasListComponent; + @ViewChild('arlasMap', { static: false }) public arlasMapComponent: ArlasWuiMapComponent; + @ViewChild('arlasList', { static: false }) public arlasListComponent: ArlasListComponent; /** Shortcuts */ public shortcuts = new Array(); @@ -141,8 +145,8 @@ export class ArlasWuiRootComponent implements OnInit, AfterViewInit, OnDestroy { private readonly activatedRoute: ActivatedRoute, private readonly router: Router, protected analyticsService: AnalyticsService, - protected resultlistService: ResultlistService, - protected mapService: MapWuiService + protected resultlistService: ResultlistService, + protected mapService: MapWuiService ) { if (this.arlasStartupService.shouldRunApp && !this.arlasStartupService.emptyMode) { /** resize the map */ diff --git a/src/app/components/configs-list/configs-list.component.ts b/src/app/components/configs-list/configs-list.component.ts index d72910e0..4f1d6723 100644 --- a/src/app/components/configs-list/configs-list.component.ts +++ b/src/app/components/configs-list/configs-list.component.ts @@ -58,7 +58,6 @@ export class ConfigsListComponent implements OnInit { private persistenceService: PersistenceService, private arlasColorService: ArlasColorService, private arlasSettingsService: ArlasSettingsService, - private authentService: AuthentificationService, private arlasIamService: ArlasIamService, private arlasStartupService: ArlasStartupService ) { diff --git a/src/app/components/left-menu/left-menu.component.ts b/src/app/components/left-menu/left-menu.component.ts index 267afdde..68ab6223 100644 --- a/src/app/components/left-menu/left-menu.component.ts +++ b/src/app/components/left-menu/left-menu.component.ts @@ -34,7 +34,11 @@ export interface MenuState { templateUrl: './left-menu.component.html', styleUrls: ['./left-menu.component.scss'] }) -export class LeftMenuComponent implements OnInit { +/** L: a layer class/interface. + * S: a source class/interface. + * M: a Map configuration class/interface. + */ +export class LeftMenuComponent implements OnInit { /** * @Input : Angular * List of collections displayed in the map @@ -78,7 +82,7 @@ export class LeftMenuComponent implements OnInit { private readonly configService: ArlasConfigService, protected arlasStartupService: ArlasStartupService, protected persistenceService: PersistenceService, - private readonly mapService: MapWuiService + private readonly mapService: MapWuiService ) { } diff --git a/src/app/components/map/raster-layers-manager/rasters-manager.component.ts b/src/app/components/map/raster-layers-manager/rasters-manager.component.ts index 7058a843..a3996939 100644 --- a/src/app/components/map/raster-layers-manager/rasters-manager.component.ts +++ b/src/app/components/map/raster-layers-manager/rasters-manager.component.ts @@ -29,15 +29,19 @@ import { CollaborationEvent, OperationEnum } from 'arlas-web-core'; templateUrl: './rasters-manager.component.html', styleUrls: ['./rasters-manager.component.scss'] }) -export class RastersManagerComponent implements OnInit, OnDestroy { +/** L: a layer class/interface. + * S: a source class/interface. + * M: a Map configuration class/interface. + */ +export class RastersManagerComponent implements OnInit, OnDestroy { /** Destroy subscriptions */ - private _onDestroy$ = new Subject(); + private readonly _onDestroy$ = new Subject(); public constructor( - private visualisationService: VisualizeService, - private resultlistService: ResultlistService, - private collaborativeSearchService: ArlasCollaborativesearchService + private readonly visualisationService: VisualizeService, + private readonly resultlistService: ResultlistService, + private readonly collaborativeSearchService: ArlasCollaborativesearchService ) { } public ngOnInit(): void { diff --git a/src/app/pipes/get-resultlist-config.pipe.ts b/src/app/pipes/get-resultlist-config.pipe.ts index b8cca4c0..fb7eb7f5 100644 --- a/src/app/pipes/get-resultlist-config.pipe.ts +++ b/src/app/pipes/get-resultlist-config.pipe.ts @@ -24,9 +24,13 @@ import { ResultListContributor } from 'arlas-web-contributors'; @Pipe({ name: 'getResultlistConfig' }) -export class GetResultlistConfigPipe implements PipeTransform { +/** L: a layer class/interface. + * S: a source class/interface. + * M: a Map configuration class/interface. + */ +export class GetResultlistConfigPipe implements PipeTransform { - public constructor(private resultlistService: ResultlistService) { } + public constructor(private readonly resultlistService: ResultlistService) { } public transform(resultlistContributor: ResultListContributor): any { return this.resultlistService.resultlistConfigPerContId.get(resultlistContributor?.identifier); diff --git a/src/app/services/map.service.ts b/src/app/services/map.service.ts index 4025229b..5dc43b03 100644 --- a/src/app/services/map.service.ts +++ b/src/app/services/map.service.ts @@ -28,8 +28,12 @@ export interface FeatureHover { @Injectable({ providedIn: 'root' }) -export class MapWuiService { - public mapComponent: ArlasMapComponent; +/** L: a layer class/interface. + * S: a source class/interface. + * M: a Map configuration class/interface. + */ +export class MapWuiService { + public mapComponent: ArlasMapComponent; private mapComponentConfig: any; public mapContributors: Array = new Array(); public centerLatLng: { lat: number; lng: number; } = { lat: 0, lng: 0 }; @@ -39,7 +43,8 @@ export class MapWuiService { public coordinatesHaveSpace: boolean; - public constructor(public mapService: ArlasMapFrameworkService, public mapLogicService: AbstractArlasMapService) { } + public constructor(public mapService: ArlasMapFrameworkService, + public mapLogicService: AbstractArlasMapService) { } public setContributors(mapContributors: Array) { this.mapContributors = mapContributors; @@ -85,7 +90,7 @@ export class MapWuiService { this.mapService.setMapCursor(this.mapComponent.map, cursor); } - public setMapComponent(mapComponent: ArlasMapComponent) { + public setMapComponent(mapComponent: ArlasMapComponent) { this.mapComponent = mapComponent; } @@ -99,7 +104,7 @@ export class MapWuiService { public updateMapStyle(ids: Array, collection: string) { if (!!this.mapComponent && !!this.mapComponent.map && !!this.mapComponentConfig && !!this.mapComponentConfig.mapLayers.events.onHover) { this.mapComponentConfig.mapLayers.events.onHover.forEach(l => { - this.mapLogicService.updateMapStyle(this.mapComponent.map, l, ids, collection ); + this.mapLogicService.updateMapStyle(this.mapComponent.map, l, ids, collection); }); } } diff --git a/src/app/services/resultlist.service.ts b/src/app/services/resultlist.service.ts index 2064b990..9329c160 100644 --- a/src/app/services/resultlist.service.ts +++ b/src/app/services/resultlist.service.ts @@ -45,7 +45,11 @@ import { BehaviorSubject, finalize, Subject, take } from 'rxjs'; @Injectable({ providedIn: 'root' }) -export class ResultlistService { +/** L: a layer class/interface. + * S: a source class/interface. + * M: a Map configuration class/interface. + */ +export class ResultlistService { /** Resultlist configs */ public resultlistConfigs = []; @@ -79,7 +83,7 @@ export class ResultlistService { public constructor( private readonly activatedRoute: ActivatedRoute, private readonly router: Router, - private readonly mapService: MapWuiService, + private readonly mapService: MapWuiService, private readonly collaborativeService: ArlasCollaborativesearchService, private readonly settingsService: ArlasSettingsService, private readonly configService: ArlasConfigService, diff --git a/src/app/tools/lazy-loader.ts b/src/app/tools/lazy-loader.ts index c362ee5c..f550b51e 100644 --- a/src/app/tools/lazy-loader.ts +++ b/src/app/tools/lazy-loader.ts @@ -26,12 +26,16 @@ import { map, ObservableInput } from 'rxjs'; @Injectable() -export class LazyLoadImageHooks extends IntersectionObserverHooks { - private http: HttpClient; +/** L: a layer class/interface. + * S: a source class/interface. + * M: a Map configuration class/interface. + */ +export class LazyLoadImageHooks extends IntersectionObserverHooks { + private readonly http: HttpClient; public constructor( http: HttpClient, - private resultListService: ResultlistService + private readonly resultListService: ResultlistService ) { super(); this.http = http;