@geogirafe/lib-geoportal 1.1.0-dev.2643015928 → 1.1.0-dev.2643917963

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.
@@ -50,7 +50,7 @@ export default class MFPEncoder {
50
50
  */
51
51
  encodeLayers(baseLayers: BaseLayer[]): MFPLayer[];
52
52
  /**
53
- * Encodes a layer object according to it's className and options.
53
+ * Encodes a layer object according to its type and options.
54
54
  * @returns A promise that resolves to an array of MFP layers, a single MFP layer, or null.
55
55
  */
56
56
  encodeLayer(layer: BaseLayer): MFPLayer[] | MFPLayer | null;
@@ -125,27 +125,24 @@ export default class MFPEncoder {
125
125
  return mfpLayers;
126
126
  }
127
127
  /**
128
- * Encodes a layer object according to it's className and options.
128
+ * Encodes a layer object according to its type and options.
129
129
  * @returns A promise that resolves to an array of MFP layers, a single MFP layer, or null.
130
130
  */
131
131
  encodeLayer(layer) {
132
- switch (layer.className) {
133
- case GroupLayer.name:
134
- return this.encodeGroupLayer(layer);
135
- case LayerWms.name:
136
- return this.encodeWmsLayer(layer);
137
- case LayerWmts.name:
138
- return this.encodeTileWmtsLayer(layer);
139
- case LayerLocalFile.name:
140
- return this.encodeLocalFileLayer(layer);
141
- case LayerWmsExternal.name:
142
- return this.encodeWmsLayer(layer);
143
- case LayerWmtsExternal.name:
144
- return this.encodeTileWmtsLayer(layer);
145
- default:
146
- console.warn('Unsupported layer type for encoding:', layer.className);
147
- return null;
132
+ if (layer instanceof GroupLayer) {
133
+ return this.encodeGroupLayer(layer);
148
134
  }
135
+ if (layer instanceof LayerWms || layer instanceof LayerWmsExternal) {
136
+ return this.encodeWmsLayer(layer);
137
+ }
138
+ if (layer instanceof LayerWmts || layer instanceof LayerWmtsExternal) {
139
+ return this.encodeTileWmtsLayer(layer);
140
+ }
141
+ if (layer instanceof LayerLocalFile) {
142
+ return this.encodeLocalFileLayer(layer);
143
+ }
144
+ console.warn('Unsupported layer type for encoding: ', layer);
145
+ return null;
149
146
  }
150
147
  /**
151
148
  * Only non mixed groups of WMS layers are supported.
@@ -54,7 +54,7 @@ export declare class MFPLegendEncoder {
54
54
  */
55
55
  encodeLayersLegend(layers: BaseLayer[]): MFPLegendClass[];
56
56
  /**
57
- * Encodes the legend classes for a given layer, based on its type or className.
57
+ * Encodes the legend classes for a given layer, based on its type or instance.
58
58
  * @returns The encoded legend classes for the layer, or null if the layer is not supported.
59
59
  */
60
60
  encodeLayerLegendClasses(layer: BaseLayer): MFPLegendClass | null;
@@ -47,17 +47,17 @@ export class MFPLegendEncoder {
47
47
  return groupClasses;
48
48
  }
49
49
  /**
50
- * Encodes the legend classes for a given layer, based on its type or className.
50
+ * Encodes the legend classes for a given layer, based on its type or instance.
51
51
  * @returns The encoded legend classes for the layer, or null if the layer is not supported.
52
52
  */
53
53
  encodeLayerLegendClasses(layer) {
54
54
  if (layer.children) {
55
55
  return this.encodeLayerGroupLegendClasses(layer);
56
56
  }
57
- if ([LayerWms.name, LayerWmsExternal.name].includes(layer.className)) {
57
+ if (layer instanceof LayerWms || layer instanceof LayerWmsExternal) {
58
58
  return this.encodeLayerWmsLegendClasses(layer);
59
59
  }
60
- if (layer.className === LayerWmts.name) {
60
+ if (layer instanceof LayerWmts) {
61
61
  return this.encodeLayerWmtsLegendClasses(layer);
62
62
  }
63
63
  return null;
@@ -6,13 +6,6 @@ type BaseLayerOptions = {
6
6
  metadataUrl?: string;
7
7
  };
8
8
  declare abstract class BaseLayer {
9
- /**
10
- * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
11
- * This means that each modification made to its properties must come from outside,
12
- * because they have to be made through the proxy, so that the modification can be listen.
13
- * Therefore, this class must not contain any method which is updating a value directly
14
- * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
15
- */
16
9
  id: number;
17
10
  treeItemId: string;
18
11
  name: string;
@@ -35,10 +28,5 @@ declare abstract class BaseLayer {
35
28
  abstract clone(): BaseLayer;
36
29
  parent?: ThemeLayer | GroupLayer;
37
30
  constructor(id: number, name: string, order: number, options?: BaseLayerOptions);
38
- /**
39
- * @returns the name of the class to facilitate the identification
40
- * of subclasses, even in Proxy objects.
41
- */
42
- get className(): string;
43
31
  }
44
32
  export default BaseLayer;
@@ -7,14 +7,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  // SPDX-License-Identifier: Apache-2.0
8
8
  import { BrainIgnoreClone } from '../../tools/state/brain/decorators.js';
9
9
  import { v4 as uuidv4 } from 'uuid';
10
+ /*
11
+ * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
12
+ * This means that each modification made to its properties must come from outside,
13
+ * because they have to be made through the proxy, so that the modification can be listen.
14
+ * Therefore, this class must not contain any method which is updating a value directly
15
+ * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
16
+ */
10
17
  class BaseLayer {
11
- /**
12
- * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
13
- * This means that each modification made to its properties must come from outside,
14
- * because they have to be made through the proxy, so that the modification can be listen.
15
- * Therefore, this class must not contain any method which is updating a value directly
16
- * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
17
- */
18
18
  id;
19
19
  treeItemId;
20
20
  name;
@@ -46,13 +46,6 @@ class BaseLayer {
46
46
  this.disclaimer = options?.disclaimer;
47
47
  this.metadataUrl = options?.metadataUrl;
48
48
  }
49
- /**
50
- * @returns the name of the class to facilitate the identification
51
- * of subclasses, even in Proxy objects.
52
- */
53
- get className() {
54
- return this.constructor.name;
55
- }
56
49
  }
57
50
  __decorate([
58
51
  BrainIgnoreClone
@@ -12,13 +12,6 @@ export type GroupLayerOptions = {
12
12
  timeAttribute?: string;
13
13
  };
14
14
  declare class GroupLayer extends BaseLayer implements ILayerWithTime {
15
- /**
16
- * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
17
- * This means that each modification made to its properties must come from outside,
18
- * because they have to be made through the proxy, so that the modification can be listen.
19
- * Therefore, this class must not contain any method which is updating a value directly
20
- * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
21
- */
22
15
  isExclusiveGroup: boolean;
23
16
  isExpanded: boolean;
24
17
  _isMixed?: boolean;
@@ -2,14 +2,14 @@
2
2
  import BaseLayer from './baselayer.js';
3
3
  import LayerTimeFormatter from '../../tools/time/layertimeformatter.js';
4
4
  import LayerWms from './layerwms.js';
5
+ /*
6
+ * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
7
+ * This means that each modification made to its properties must come from outside,
8
+ * because they have to be made through the proxy, so that the modification can be listen.
9
+ * Therefore, this class must not contain any method which is updating a value directly
10
+ * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
11
+ */
5
12
  class GroupLayer extends BaseLayer {
6
- /**
7
- * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
8
- * This means that each modification made to its properties must come from outside,
9
- * because they have to be made through the proxy, so that the modification can be listen.
10
- * Therefore, this class must not contain any method which is updating a value directly
11
- * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
12
- */
13
13
  isExclusiveGroup;
14
14
  isExpanded;
15
15
  _isMixed;
@@ -9,13 +9,6 @@ type LayerOptions = {
9
9
  restricted?: boolean;
10
10
  };
11
11
  declare abstract class Layer extends BaseLayer {
12
- /**
13
- * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
14
- * This means that each modification made to its properties must come from outside,
15
- * because they have to be made through the proxy, so that the modification can be listen.
16
- * Therefore, this class must not contain any method which is updating a value directly
17
- * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
18
- */
19
12
  activeState: 'on' | 'off';
20
13
  opacity: number;
21
14
  restricted: boolean;
@@ -1,13 +1,13 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  import BaseLayer from './baselayer.js';
3
+ /*
4
+ * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
5
+ * This means that each modification made to its properties must come from outside,
6
+ * because they have to be made through the proxy, so that the modification can be listen.
7
+ * Therefore, this class must not contain any method which is updating a value directly
8
+ * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
9
+ */
3
10
  class Layer extends BaseLayer {
4
- /**
5
- * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
6
- * This means that each modification made to its properties must come from outside,
7
- * because they have to be made through the proxy, so that the modification can be listen.
8
- * Therefore, this class must not contain any method which is updating a value directly
9
- * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
10
- */
11
11
  activeState = 'off';
12
12
  opacity;
13
13
  restricted;
@@ -8,13 +8,6 @@ type LayerCogTilesOptions = {
8
8
  restricted?: boolean;
9
9
  };
10
10
  declare class LayerCog extends Layer {
11
- /**
12
- * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
13
- * This means that each modification made to its properties must come from outside,
14
- * because they have to be made through the proxy, so that the modification can be listen.
15
- * Therefore, this class must not contain any method which is updating a value directly
16
- * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
17
- */
18
11
  source: string;
19
12
  constructor(id: number, name: string, order: number, source: string, options?: GMFTreeItem | LayerCogTilesOptions);
20
13
  clone(): LayerCog;
@@ -1,12 +1,12 @@
1
1
  import Layer from './layer.js';
2
+ /*
3
+ * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
4
+ * This means that each modification made to its properties must come from outside,
5
+ * because they have to be made through the proxy, so that the modification can be listen.
6
+ * Therefore, this class must not contain any method which is updating a value directly
7
+ * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
8
+ */
2
9
  class LayerCog extends Layer {
3
- /**
4
- * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
5
- * This means that each modification made to its properties must come from outside,
6
- * because they have to be made through the proxy, so that the modification can be listen.
7
- * Therefore, this class must not contain any method which is updating a value directly
8
- * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
9
- */
10
10
  source;
11
11
  constructor(id, name, order, source, options) {
12
12
  let opts = options ?? {};
@@ -1,13 +1,6 @@
1
1
  import Layer from './layer.js';
2
2
  import VectorLayer from 'ol/layer/Vector.js';
3
3
  export default class LayerDrawing extends Layer {
4
- /**
5
- * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
6
- * This means that each modification made to its properties must come from outside,
7
- * because they have to be made through the proxy, so that the modification can be listen.
8
- * Therefore, this class must not contain any method which is updating a value directly
9
- * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
10
- */
11
4
  _oLayer: VectorLayer;
12
5
  constructor(name: string, oLayer: VectorLayer);
13
6
  clone(): LayerDrawing;
@@ -1,13 +1,13 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  import Layer from './layer.js';
3
+ /*
4
+ * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
5
+ * This means that each modification made to its properties must come from outside,
6
+ * because they have to be made through the proxy, so that the modification can be listen.
7
+ * Therefore, this class must not contain any method which is updating a value directly
8
+ * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
9
+ */
3
10
  export default class LayerDrawing extends Layer {
4
- /**
5
- * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
6
- * This means that each modification made to its properties must come from outside,
7
- * because they have to be made through the proxy, so that the modification can be listen.
8
- * Therefore, this class must not contain any method which is updating a value directly
9
- * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
10
- */
11
11
  _oLayer;
12
12
  constructor(name, oLayer) {
13
13
  super(0, name, 0, { isDefaultChecked: true });
@@ -4,13 +4,6 @@ import Geometry from 'ol/geom/Geometry.js';
4
4
  import { Extent } from 'ol/extent.js';
5
5
  import ILayerWithLegend from './ilayerwithlegend.js';
6
6
  declare class LayerLocalFile extends Layer implements ILayerWithLegend {
7
- /**
8
- * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
9
- * This means that each modification made to its properties must come from outside,
10
- * because they have to be made through the proxy, so that the modification can be listen.
11
- * Therefore, this class must not contain any method which is updating a value directly
12
- * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
13
- */
14
7
  _features: Feature<Geometry>[];
15
8
  lastModifiedDate: string;
16
9
  legend: boolean;
@@ -1,12 +1,12 @@
1
1
  import Layer from './layer.js';
2
+ /*
3
+ * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
4
+ * This means that each modification made to its properties must come from outside,
5
+ * because they have to be made through the proxy, so that the modification can be listen.
6
+ * Therefore, this class must not contain any method which is updating a value directly
7
+ * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
8
+ */
2
9
  class LayerLocalFile extends Layer {
3
- /**
4
- * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
5
- * This means that each modification made to its properties must come from outside,
6
- * because they have to be made through the proxy, so that the modification can be listen.
7
- * Therefore, this class must not contain any method which is updating a value directly
8
- * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
9
- */
10
10
  _features;
11
11
  lastModifiedDate;
12
12
  legend = true;
@@ -1,12 +1,5 @@
1
1
  import Layer from './layer.js';
2
2
  declare class LayerOsm extends Layer {
3
- /**
4
- * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
5
- * This means that each modification made to its properties must come from outside,
6
- * because they have to be made through the proxy, so that the modification can be listen.
7
- * Therefore, this class must not contain any method which is updating a value directly
8
- * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
9
- */
10
3
  constructor(order: number);
11
4
  clone(): LayerOsm;
12
5
  }
@@ -1,14 +1,14 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  import Layer from './layer.js';
3
3
  import LayerConsts from './layerconsts.js';
4
+ /*
5
+ * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
6
+ * This means that each modification made to its properties must come from outside,
7
+ * because they have to be made through the proxy, so that the modification can be listen.
8
+ * Therefore, this class must not contain any method which is updating a value directly
9
+ * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
10
+ */
4
11
  class LayerOsm extends Layer {
5
- /**
6
- * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
7
- * This means that each modification made to its properties must come from outside,
8
- * because they have to be made through the proxy, so that the modification can be listen.
9
- * Therefore, this class must not contain any method which is updating a value directly
10
- * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
11
- */
12
12
  constructor(order) {
13
13
  super(LayerConsts.LayerOsmId, 'OpenStreetMap', order);
14
14
  }
@@ -9,13 +9,6 @@ type LayerVectorTilesOptions = {
9
9
  protected?: boolean;
10
10
  };
11
11
  declare class LayerVectorTiles extends Layer {
12
- /**
13
- * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
14
- * This means that each modification made to its properties must come from outside,
15
- * because they have to be made through the proxy, so that the modification can be listen.
16
- * Therefore, this class must not contain any method which is updating a value directly
17
- * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
18
- */
19
12
  style: string;
20
13
  layerName?: string;
21
14
  projection?: string;
@@ -1,13 +1,13 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  import Layer from './layer.js';
3
+ /*
4
+ * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
5
+ * This means that each modification made to its properties must come from outside,
6
+ * because they have to be made through the proxy, so that the modification can be listen.
7
+ * Therefore, this class must not contain any method which is updating a value directly
8
+ * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
9
+ */
3
10
  class LayerVectorTiles extends Layer {
4
- /**
5
- * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
6
- * This means that each modification made to its properties must come from outside,
7
- * because they have to be made through the proxy, so that the modification can be listen.
8
- * Therefore, this class must not contain any method which is updating a value directly
9
- * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
10
- */
11
11
  style;
12
12
  layerName;
13
13
  projection;
@@ -41,13 +41,6 @@ export type LayerWmsOptions = {
41
41
  enumeratedAttributes?: string[];
42
42
  };
43
43
  declare class LayerWms extends Layer implements ILayerWithLegend, ILayerWithFilter, ILayerWithTime {
44
- /**
45
- * This class is used in the state of the application, which will be accessed behind a JavaScript proxy.
46
- * This means that each modification made to its properties must come from outside,
47
- * because they have to be made through the proxy, so that the modification can be listened to.
48
- * Therefore, this class must not contain any method which is updating a value directly.
49
- * For example, any method doing <this.xxx = value> is forbidden here because the modification must be known from the proxy
50
- */
51
44
  ogcServer: ServerOgc;
52
45
  minResolution?: number;
53
46
  maxResolution?: number;
@@ -7,14 +7,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  import LayerTimeFormatter from '../../tools/time/layertimeformatter.js';
8
8
  import Layer from './layer.js';
9
9
  import { BrainIgnore } from '../../tools/state/brain/decorators.js';
10
+ /*
11
+ * This class is used in the state of the application, which will be accessed behind a JavaScript proxy.
12
+ * This means that each modification made to its properties must come from outside,
13
+ * because they have to be made through the proxy, so that the modification can be listened to.
14
+ * Therefore, this class must not contain any method which is updating a value directly.
15
+ * For example, any method doing <this.xxx = value> is forbidden here because the modification must be known from the proxy
16
+ */
10
17
  class LayerWms extends Layer {
11
- /**
12
- * This class is used in the state of the application, which will be accessed behind a JavaScript proxy.
13
- * This means that each modification made to its properties must come from outside,
14
- * because they have to be made through the proxy, so that the modification can be listened to.
15
- * Therefore, this class must not contain any method which is updating a value directly.
16
- * For example, any method doing <this.xxx = value> is forbidden here because the modification must be known from the proxy
17
- */
18
18
  // Base WMS attributes
19
19
  ogcServer;
20
20
  minResolution;
@@ -1,4 +1,11 @@
1
1
  import LayerWms from './layerwms.js';
2
+ /*
3
+ * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
4
+ * This means that each modification made to its properties must come from outside,
5
+ * because they have to be made through the proxy, so that the modification can be listen.
6
+ * Therefore, this class must not contain any method which is updating a value directly
7
+ * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
8
+ */
2
9
  export default class LayerWmsExternal extends LayerWms {
3
10
  static nextAvailableLayerId = 10000000;
4
11
  selected = false;
@@ -28,13 +28,6 @@ export type LayerWmtsOptions = {
28
28
  hiDPILegendImages?: Record<string, string>;
29
29
  };
30
30
  declare class LayerWmts extends Layer implements ILayerWithLegend {
31
- /**
32
- * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
33
- * This means that each modification made to its properties must come from outside,
34
- * because they have to be made through the proxy, so that the modification can be listen.
35
- * Therefore, this class must not contain any method which is updating a value directly
36
- * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
37
- */
38
31
  url: string;
39
32
  layer: string;
40
33
  dimensions?: Record<string, object>;
@@ -7,14 +7,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  // SPDX-License-Identifier: Apache-2.0
8
8
  import { BrainIgnore } from '../../tools/state/brain/decorators.js';
9
9
  import Layer from './layer.js';
10
+ /*
11
+ * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
12
+ * This means that each modification made to its properties must come from outside,
13
+ * because they have to be made through the proxy, so that the modification can be listen.
14
+ * Therefore, this class must not contain any method which is updating a value directly
15
+ * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
16
+ */
10
17
  class LayerWmts extends Layer {
11
- /**
12
- * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
13
- * This means that each modification made to its properties must come from outside,
14
- * because they have to be made through the proxy, so that the modification can be listen.
15
- * Therefore, this class must not contain any method which is updating a value directly
16
- * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
17
- */
18
18
  url;
19
19
  layer;
20
20
  dimensions;
@@ -1,5 +1,12 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  import LayerWmts from './layerwmts.js';
3
+ /*
4
+ * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
5
+ * This means that each modification made to its properties must come from outside,
6
+ * because they have to be made through the proxy, so that the modification can be listen.
7
+ * Therefore, this class must not contain any method which is updating a value directly
8
+ * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
9
+ */
3
10
  export default class LayerWmtsExternal extends LayerWmts {
4
11
  static nextAvailableLayerId = 20000000;
5
12
  selected = false;
@@ -8,13 +8,6 @@ type LayerXYZTilesOptions = {
8
8
  restricted?: boolean;
9
9
  };
10
10
  declare class LayerXYZ extends Layer {
11
- /**
12
- * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
13
- * This means that each modification made to its properties must come from outside,
14
- * because they have to be made through the proxy, so that the modification can be listen.
15
- * Therefore, this class must not contain any method which is updating a value directly
16
- * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
17
- */
18
11
  source: string;
19
12
  constructor(id: number, name: string, order: number, source: string, options?: GMFTreeItem | LayerXYZTilesOptions);
20
13
  clone(): LayerXYZ;
@@ -1,12 +1,12 @@
1
1
  import Layer from './layer.js';
2
+ /*
3
+ * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
4
+ * This means that each modification made to its properties must come from outside,
5
+ * because they have to be made through the proxy, so that the modification can be listen.
6
+ * Therefore, this class must not contain any method which is updating a value directly
7
+ * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
8
+ */
2
9
  class LayerXYZ extends Layer {
3
- /**
4
- * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
5
- * This means that each modification made to its properties must come from outside,
6
- * because they have to be made through the proxy, so that the modification can be listen.
7
- * Therefore, this class must not contain any method which is updating a value directly
8
- * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
9
- */
10
10
  source;
11
11
  constructor(id, name, order, source, options) {
12
12
  let opts = options ?? {};
@@ -8,13 +8,6 @@ export type ThemeLayerOptions = {
8
8
  isExclusiveTheme?: boolean;
9
9
  };
10
10
  declare class ThemeLayer extends BaseLayer {
11
- /**
12
- * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
13
- * This means that each modification made to its properties must come from outside,
14
- * because they have to be made through the proxy, so that the modification can be listen.
15
- * Therefore, this class must not contain any method which is updating a value directly
16
- * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
17
- */
18
11
  isExclusiveTheme: boolean;
19
12
  isExpanded: boolean;
20
13
  activeState: 'on' | 'off' | 'semi';
@@ -1,13 +1,13 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  import BaseLayer from './baselayer.js';
3
+ /*
4
+ * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
5
+ * This means that each modification made to its properties must come from outside,
6
+ * because they have to be made through the proxy, so that the modification can be listen.
7
+ * Therefore, this class must not contain any method which is updating a value directly
8
+ * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
9
+ */
3
10
  class ThemeLayer extends BaseLayer {
4
- /**
5
- * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
6
- * This means that each modification made to its properties must come from outside,
7
- * because they have to be made through the proxy, so that the modification can be listen.
8
- * Therefore, this class must not contain any method which is updating a value directly
9
- * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
10
- */
11
11
  isExclusiveTheme;
12
12
  isExpanded;
13
13
  activeState = 'off';
@@ -1,4 +1,11 @@
1
1
  import ThemeLayer from './themelayer.js';
2
+ /*
3
+ * This class is a used in the state of the application, which will be accessed behind a javascript proxy.
4
+ * This means that each modification made to its properties must come from outside,
5
+ * because they have to be made through the proxy, so that the modification can be listen.
6
+ * Therefore, this class must not contain any method which is updating a value directly
7
+ * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy
8
+ */
2
9
  export default class ThemeLayerExternal extends ThemeLayer {
3
10
  static nextAvailableThemeId = 30000000;
4
11
  constructor(name) {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "name": "GeoGirafe PSC",
6
6
  "url": "https://doc.geogirafe.org"
7
7
  },
8
- "version": "1.1.0-dev.2643015928",
8
+ "version": "1.1.0-dev.2643917963",
9
9
  "type": "module",
10
10
  "engines": {
11
11
  "node": ">=20.19.0"
@@ -1 +1 @@
1
- {"version":"1.1.0-dev.2643015928", "build":"2643015928", "date":"01/07/2026"}
1
+ {"version":"1.1.0-dev.2643917963", "build":"2643917963", "date":"01/07/2026"}