aur-openlayers 19.6.9 → 19.6.11

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.
@@ -494,6 +494,23 @@ export type BufferDecoration = {
494
494
  /** Форма торцов. По умолчанию: 'round'. */
495
495
  cap?: 'round' | 'flat';
496
496
  };
497
+ /**
498
+ * Маркеры в концах LineString. Все поля опциональны.
499
+ * Стили — готовые OL Style (как buffer.style); иконку (new Icon({ src }))
500
+ * собирает вызывающая сторона — библиотека остаётся asset-agnostic.
501
+ */
502
+ export type StartFinishDecoration = {
503
+ /** Маркер в первой точке линии (geometry.getFirstCoordinate()). */
504
+ start?: Style | Style[];
505
+ /** Маркер в последней точке линии (geometry.getLastCoordinate()). */
506
+ finish?: Style | Style[];
507
+ /**
508
+ * Одиночный маркер, когда линия вырождена в точку (first == last):
509
+ * рисуется ОДИН раз вместо наложения start + finish.
510
+ * Если не задан — используется `start`, иначе `finish`.
511
+ */
512
+ collapsed?: Style | Style[];
513
+ };
497
514
  /**
498
515
  * Декоративные элементы вдоль LineString-геометрий.
499
516
  */
@@ -502,6 +519,8 @@ export type LineDecorations = {
502
519
  arrows?: ArrowDecoration;
503
520
  /** Буферный полигон (коридор) вокруг линии. */
504
521
  buffer?: BufferDecoration;
522
+ /** Маркеры в концах линии. */
523
+ startFinish?: StartFinishDecoration;
505
524
  };
506
525
  /**
507
526
  * Описание фичи: геометрия, стиль, взаимодействия и popup.
@@ -0,0 +1,28 @@
1
+ import VectorLayer from 'ol/layer/Vector';
2
+ import type OlMap from 'ol/Map';
3
+ import type { StartFinishDecoration, VectorLayerApi } from '../../public/types';
4
+ export type StartFinishDecorationManagerOptions = {
5
+ map: OlMap;
6
+ parentLayer: VectorLayer;
7
+ parentApi: VectorLayerApi<any, any>;
8
+ config: StartFinishDecoration;
9
+ };
10
+ export declare class StartFinishDecorationManager {
11
+ private readonly source;
12
+ private readonly layer;
13
+ private readonly config;
14
+ private readonly map;
15
+ private readonly parentLayer;
16
+ private readonly parentApi;
17
+ private readonly moveEndKey;
18
+ private readonly visibilityKey;
19
+ private readonly unsubCollection;
20
+ private readonly unsubChanges;
21
+ private rafId;
22
+ constructor(options: StartFinishDecorationManagerOptions);
23
+ private scheduleUpdate;
24
+ private rebuild;
25
+ private syncVisibility;
26
+ private syncOpacity;
27
+ dispose(): void;
28
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aur-openlayers",
3
- "version": "19.6.9",
3
+ "version": "19.6.11",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.0",
6
6
  "@angular/core": "^19.2.0",