aur-openlayers 1.0.4 → 19.6.3

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.
@@ -363,6 +363,11 @@ export type VectorLayerApi<M, G extends Geometry> = VectorLayerCollectionApi<M>
363
363
  * Сбросить состояния стиля у фич к состоянию по умолчанию.
364
364
  */
365
365
  clearFeatureStates: (ids: Id | ReadonlyArray<Id>) => void;
366
+ /**
367
+ * Возвращает extent всех фич базового источника (без кластеризации).
368
+ * Возвращает null, если фич нет.
369
+ */
370
+ getExtent: () => import('ol/extent').Extent | null;
366
371
  };
367
372
  /**
368
373
  * Источник появления popup-элемента.
@@ -432,6 +437,10 @@ export type MapContext = {
432
437
  * Батчинг для группировки mutate/invalidate.
433
438
  */
434
439
  batch: (fn: () => void, options?: BatchOptions) => void;
440
+ /** Центрирует карту на всех видимых слоях. No-op если нет фич. */
441
+ centerOnAllLayers: (opts?: ViewFitOptions) => void;
442
+ /** Центрирует карту на указанных слоях (скрытые пропускаются). No-op если нет фич. */
443
+ centerOnLayers: (layerIds: ReadonlyArray<string>, opts?: ViewFitOptions) => void;
435
444
  };
436
445
  /**
437
446
  * Контроллер, который связывается с контекстом карты.
@@ -1,3 +1,4 @@
1
- import type { ViewFitOptions, ViewFitPadding } from '../public/types';
1
+ import type { VectorLayerApi, ViewFitOptions, ViewFitPadding } from '../public/types';
2
2
  export declare function toOlPadding(p?: ViewFitPadding, fallback?: [number, number, number, number] | undefined): [number, number, number, number] | undefined;
3
3
  export declare function toOlFitOptions(opts?: ViewFitOptions): any;
4
+ export declare function collectLayersExtent(layers: Record<string, VectorLayerApi<any, any>>, layerIds?: ReadonlyArray<string>): import('ol/extent').Extent | null;
@@ -44,6 +44,7 @@ export declare abstract class VectorLayerBase<M, G extends Geometry, OPTS extend
44
44
  * Missing ids are ignored. No-op if none found.
45
45
  */
46
46
  centerOnModels(ids: ReadonlyArray<string | number>, opts?: ViewFitOptions): void;
47
+ getExtent(): import('ol/extent').Extent | null;
47
48
  setVisible(visible: boolean): void;
48
49
  isVisible(): boolean;
49
50
  setOpacity(opacity: number): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aur-openlayers",
3
- "version": "1.0.4",
3
+ "version": "19.6.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.0",
6
6
  "@angular/core": "^19.2.0",
@@ -10,6 +10,10 @@
10
10
  "tslib": "^2.3.0"
11
11
  },
12
12
  "sideEffects": false,
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/NikolayNN/aur-openlayers"
16
+ },
13
17
  "module": "fesm2022/aur-openlayers.mjs",
14
18
  "typings": "index.d.ts",
15
19
  "exports": {