aur-openlayers 19.6.6 → 19.6.10

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/README.md CHANGED
@@ -1,63 +1,63 @@
1
- # Lib
2
-
3
- This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0.
4
-
5
- ## Code scaffolding
6
-
7
- Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
8
-
9
- ```bash
10
- ng generate component component-name
11
- ```
12
-
13
- For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
14
-
15
- ```bash
16
- ng generate --help
17
- ```
18
-
19
- ## Building
20
-
21
- To build the library, run:
22
-
23
- ```bash
24
- ng build lib
25
- ```
26
-
27
- This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
28
-
29
- ### Publishing the Library
30
-
31
- Once the project is built, you can publish your library by following these steps:
32
-
33
- 1. Navigate to the `dist` directory:
34
- ```bash
35
- cd dist/lib
36
- ```
37
-
38
- 2. Run the `npm publish` command to publish your library to the npm registry:
39
- ```bash
40
- npm publish
41
- ```
42
-
43
- ## Running unit tests
44
-
45
- To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
46
-
47
- ```bash
48
- ng test
49
- ```
50
-
51
- ## Running end-to-end tests
52
-
53
- For end-to-end (e2e) testing, run:
54
-
55
- ```bash
56
- ng e2e
57
- ```
58
-
59
- Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
60
-
61
- ## Additional Resources
62
-
63
- For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
1
+ # Lib
2
+
3
+ This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
8
+
9
+ ```bash
10
+ ng generate component component-name
11
+ ```
12
+
13
+ For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
14
+
15
+ ```bash
16
+ ng generate --help
17
+ ```
18
+
19
+ ## Building
20
+
21
+ To build the library, run:
22
+
23
+ ```bash
24
+ ng build lib
25
+ ```
26
+
27
+ This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
28
+
29
+ ### Publishing the Library
30
+
31
+ Once the project is built, you can publish your library by following these steps:
32
+
33
+ 1. Navigate to the `dist` directory:
34
+ ```bash
35
+ cd dist/lib
36
+ ```
37
+
38
+ 2. Run the `npm publish` command to publish your library to the npm registry:
39
+ ```bash
40
+ npm publish
41
+ ```
42
+
43
+ ## Running unit tests
44
+
45
+ To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
46
+
47
+ ```bash
48
+ ng test
49
+ ```
50
+
51
+ ## Running end-to-end tests
52
+
53
+ For end-to-end (e2e) testing, run:
54
+
55
+ ```bash
56
+ ng e2e
57
+ ```
58
+
59
+ Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
60
+
61
+ ## Additional Resources
62
+
63
+ For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
@@ -27,18 +27,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
27
27
 
28
28
  class LibComponent {
29
29
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: LibComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
30
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: LibComponent, isStandalone: true, selector: "lib-lib", ngImport: i0, template: `
31
- <p>
32
- lib works!
33
- </p>
30
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: LibComponent, isStandalone: true, selector: "lib-lib", ngImport: i0, template: `
31
+ <p>
32
+ lib works!
33
+ </p>
34
34
  `, isInline: true, styles: [""] });
35
35
  }
36
36
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: LibComponent, decorators: [{
37
37
  type: Component,
38
- args: [{ selector: 'lib-lib', imports: [], template: `
39
- <p>
40
- lib works!
41
- </p>
38
+ args: [{ selector: 'lib-lib', imports: [], template: `
39
+ <p>
40
+ lib works!
41
+ </p>
42
42
  ` }]
43
43
  }] });
44
44
 
@@ -2342,6 +2342,7 @@ class ArrowDecorationManager {
2342
2342
  parentLayer;
2343
2343
  parentApi;
2344
2344
  moveEndKey;
2345
+ visibilityKey;
2345
2346
  unsubCollection;
2346
2347
  unsubChanges;
2347
2348
  rafId = null;
@@ -2359,6 +2360,12 @@ class ArrowDecorationManager {
2359
2360
  this.map.addLayer(this.layer);
2360
2361
  this.syncVisibility();
2361
2362
  this.syncOpacity();
2363
+ this.visibilityKey = this.parentLayer.on('change:visible', () => {
2364
+ this.syncVisibility();
2365
+ if (this.parentLayer.getVisible()) {
2366
+ this.scheduleUpdate();
2367
+ }
2368
+ });
2362
2369
  this.moveEndKey = this.map.on('moveend', () => this.scheduleUpdate());
2363
2370
  this.unsubCollection = this.parentApi.onModelsCollectionChanged(() => this.scheduleUpdate());
2364
2371
  this.unsubChanges = this.parentApi.onModelsChanged?.(() => this.scheduleUpdate());
@@ -2423,6 +2430,7 @@ class ArrowDecorationManager {
2423
2430
  this.rafId = null;
2424
2431
  }
2425
2432
  unByKey(this.moveEndKey);
2433
+ unByKey(this.visibilityKey);
2426
2434
  this.unsubCollection();
2427
2435
  this.unsubChanges?.();
2428
2436
  this.map.removeLayer(this.layer);
@@ -2568,6 +2576,7 @@ class BufferDecorationManager {
2568
2576
  parentLayer;
2569
2577
  parentApi;
2570
2578
  moveEndKey;
2579
+ visibilityKey;
2571
2580
  unsubCollection;
2572
2581
  unsubChanges;
2573
2582
  rafId = null;
@@ -2585,6 +2594,12 @@ class BufferDecorationManager {
2585
2594
  this.map.addLayer(this.layer);
2586
2595
  this.syncVisibility();
2587
2596
  this.syncOpacity();
2597
+ this.visibilityKey = this.parentLayer.on('change:visible', () => {
2598
+ this.syncVisibility();
2599
+ if (this.parentLayer.getVisible()) {
2600
+ this.scheduleUpdate();
2601
+ }
2602
+ });
2588
2603
  this.moveEndKey = this.map.on('moveend', () => this.scheduleUpdate());
2589
2604
  this.unsubCollection = this.parentApi.onModelsCollectionChanged(() => this.scheduleUpdate());
2590
2605
  this.unsubChanges = this.parentApi.onModelsChanged?.(() => this.scheduleUpdate());
@@ -2643,6 +2658,7 @@ class BufferDecorationManager {
2643
2658
  this.rafId = null;
2644
2659
  }
2645
2660
  unByKey(this.moveEndKey);
2661
+ unByKey(this.visibilityKey);
2646
2662
  this.unsubCollection();
2647
2663
  this.unsubChanges?.();
2648
2664
  this.map.removeLayer(this.layer);