ropegeo-common 1.20.2 → 1.22.0

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.
Files changed (64) hide show
  1. package/dist/helpers/hydrateOfflinePageWirePaths.d.ts.map +1 -1
  2. package/dist/helpers/hydrateOfflinePageWirePaths.js +1 -0
  3. package/dist/models/betaSections/betaSection.d.ts +16 -1
  4. package/dist/models/betaSections/betaSection.d.ts.map +1 -1
  5. package/dist/models/betaSections/betaSection.js +71 -2
  6. package/dist/models/betaSections/betaSectionExcerpt.d.ts +14 -0
  7. package/dist/models/betaSections/betaSectionExcerpt.d.ts.map +1 -0
  8. package/dist/models/betaSections/betaSectionExcerpt.js +66 -0
  9. package/dist/models/betaSections/formatExcerptHtml.d.ts +16 -0
  10. package/dist/models/betaSections/formatExcerptHtml.d.ts.map +1 -0
  11. package/dist/models/betaSections/formatExcerptHtml.js +238 -0
  12. package/dist/models/betaSections/normalizeExcerptHtml.d.ts +6 -0
  13. package/dist/models/betaSections/normalizeExcerptHtml.d.ts.map +1 -0
  14. package/dist/models/betaSections/normalizeExcerptHtml.js +42 -0
  15. package/dist/models/betaSections/offlineBetaSection.d.ts +1 -1
  16. package/dist/models/betaSections/offlineBetaSection.d.ts.map +1 -1
  17. package/dist/models/betaSections/offlineBetaSection.js +2 -2
  18. package/dist/models/betaSections/offlineBetaSectionImage.d.ts +2 -1
  19. package/dist/models/betaSections/offlineBetaSectionImage.d.ts.map +1 -1
  20. package/dist/models/betaSections/offlineBetaSectionImage.js +5 -1
  21. package/dist/models/betaSections/onlineBetaSection.d.ts +2 -1
  22. package/dist/models/betaSections/onlineBetaSection.d.ts.map +1 -1
  23. package/dist/models/betaSections/onlineBetaSection.js +3 -3
  24. package/dist/models/betaSections/onlineBetaSectionImage.d.ts +3 -2
  25. package/dist/models/betaSections/onlineBetaSectionImage.d.ts.map +1 -1
  26. package/dist/models/betaSections/onlineBetaSectionImage.js +7 -3
  27. package/dist/models/index.d.ts +6 -2
  28. package/dist/models/index.d.ts.map +1 -1
  29. package/dist/models/index.js +10 -2
  30. package/dist/models/minimap/legend/abstract/legendItem.d.ts +5 -1
  31. package/dist/models/minimap/legend/abstract/legendItem.d.ts.map +1 -1
  32. package/dist/models/minimap/legend/abstract/legendItem.js +14 -1
  33. package/dist/models/minimap/legend/concrete/imageContext.d.ts +10 -0
  34. package/dist/models/minimap/legend/concrete/imageContext.d.ts.map +1 -0
  35. package/dist/models/minimap/legend/concrete/imageContext.js +38 -0
  36. package/dist/models/minimap/legend/concrete/lineLegendItem.d.ts +2 -1
  37. package/dist/models/minimap/legend/concrete/lineLegendItem.d.ts.map +1 -1
  38. package/dist/models/minimap/legend/concrete/lineLegendItem.js +5 -3
  39. package/dist/models/minimap/legend/concrete/measurementContext.d.ts +13 -0
  40. package/dist/models/minimap/legend/concrete/measurementContext.d.ts.map +1 -0
  41. package/dist/models/minimap/legend/concrete/measurementContext.js +56 -0
  42. package/dist/models/minimap/legend/concrete/pointLegendItem.d.ts +2 -1
  43. package/dist/models/minimap/legend/concrete/pointLegendItem.d.ts.map +1 -1
  44. package/dist/models/minimap/legend/concrete/pointLegendItem.js +5 -3
  45. package/dist/models/minimap/legend/concrete/polygonLegendItem.d.ts +2 -1
  46. package/dist/models/minimap/legend/concrete/polygonLegendItem.d.ts.map +1 -1
  47. package/dist/models/minimap/legend/concrete/polygonLegendItem.js +5 -3
  48. package/dist/models/minimap/legend/concrete/relevantContext.d.ts +15 -0
  49. package/dist/models/minimap/legend/concrete/relevantContext.d.ts.map +1 -0
  50. package/dist/models/minimap/legend/concrete/relevantContext.js +82 -0
  51. package/dist/models/pageViews/offlinePageView.d.ts +10 -0
  52. package/dist/models/pageViews/offlinePageView.d.ts.map +1 -1
  53. package/dist/models/pageViews/offlineRopewikiPageView.d.ts +2 -1
  54. package/dist/models/pageViews/offlineRopewikiPageView.d.ts.map +1 -1
  55. package/dist/models/pageViews/offlineRopewikiPageView.js +16 -0
  56. package/dist/models/pageViews/onlinePageView.d.ts +10 -0
  57. package/dist/models/pageViews/onlinePageView.d.ts.map +1 -1
  58. package/dist/models/pageViews/onlineRopewikiPageView.d.ts +2 -1
  59. package/dist/models/pageViews/onlineRopewikiPageView.d.ts.map +1 -1
  60. package/dist/models/pageViews/onlineRopewikiPageView.js +20 -3
  61. package/dist/models/pageViews/ropewikiPageView.d.ts +3 -0
  62. package/dist/models/pageViews/ropewikiPageView.d.ts.map +1 -1
  63. package/dist/models/pageViews/ropewikiPageView.js +11 -0
  64. package/package.json +6 -2
@@ -1 +1 @@
1
- {"version":3,"file":"onlineBetaSection.d.ts","sourceRoot":"","sources":["../../../src/models/betaSections/onlineBetaSection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA6B,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,qBAAa,iBAAkB,SAAQ,WAAW;IAC9C,QAAQ,CAAC,SAAS,EAAG,QAAQ,CAAU;IACvC,MAAM,EAAE,sBAAsB,EAAE,CAAC;gBAG7B,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,kBAAkB,EAAE,IAAI,EACxB,MAAM,CAAC,EAAE,sBAAsB,EAAE;IAMrC,SAAS,CAAC,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC,GAAG,kBAAkB;IAe/G,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE,OAAO,GAAG,iBAAiB;CAU5D"}
1
+ {"version":3,"file":"onlineBetaSection.d.ts","sourceRoot":"","sources":["../../../src/models/betaSections/onlineBetaSection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA6B,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,qBAAa,iBAAkB,SAAQ,WAAW;IAC9C,QAAQ,CAAC,SAAS,EAAG,QAAQ,CAAU;IACvC,MAAM,EAAE,sBAAsB,EAAE,CAAC;gBAG7B,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,kBAAkB,EAAE,IAAI,EACxB,MAAM,CAAC,EAAE,sBAAsB,EAAE,EACjC,EAAE,GAAE,MAAM,GAAG,IAAW;IAM5B,SAAS,CACL,gBAAgB,EAAE,MAAM,CACpB,MAAM,EACN;QAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAC1E,GACF,kBAAkB;IAiBrB,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE,OAAO,GAAG,iBAAiB;CAU5D"}
@@ -4,13 +4,13 @@ exports.OnlineBetaSection = void 0;
4
4
  const betaSection_1 = require("./betaSection");
5
5
  const offlineBetaSection_1 = require("./offlineBetaSection");
6
6
  class OnlineBetaSection extends betaSection_1.BetaSection {
7
- constructor(order, title, text, latestRevisionDate, images) {
8
- super(order, title, text, latestRevisionDate);
7
+ constructor(order, title, text, latestRevisionDate, images, id = null) {
8
+ super(order, title, text, latestRevisionDate, id);
9
9
  this.fetchType = 'online';
10
10
  this.images = Array.isArray(images) ? images : [];
11
11
  }
12
12
  toOffline(downloadedImages) {
13
- return new offlineBetaSection_1.OfflineBetaSection(this.order, this.title, this.text, this.latestRevisionDate, this.images.map((image) => image.toOffline(downloadedImages[image.id]?.banner ?? null, downloadedImages[image.id]?.full ?? null)));
13
+ return new offlineBetaSection_1.OfflineBetaSection(this.order, this.title, this.text, this.latestRevisionDate, this.images.map((image) => image.toOffline(downloadedImages[image.id]?.banner ?? null, downloadedImages[image.id]?.full ?? null, downloadedImages[image.id]?.preview ?? null)), this.id);
14
14
  }
15
15
  static fromResponseBody(body) {
16
16
  if (body == null || typeof body !== 'object') {
@@ -5,10 +5,11 @@ export declare class OnlineBetaSectionImage extends BetaSectionImage {
5
5
  readonly fetchType: "online";
6
6
  bannerUrl: string | null;
7
7
  fullUrl: string | null;
8
+ previewUrl: string | null;
8
9
  /** Byte sizes per rendition; null when not provided by API. */
9
10
  downloadBytes: DownloadBytes | null;
10
- constructor(order: number, id: string, bannerUrl: string | null, fullUrl: string | null, linkUrl: string, caption: string | null, latestRevisionDate: Date, downloadBytes: DownloadBytes | null);
11
- toOffline(downloadedBannerPath: string | null, downloadedFullPath: string | null): OfflineBetaSectionImage;
11
+ constructor(order: number, id: string, bannerUrl: string | null, fullUrl: string | null, linkUrl: string, caption: string | null, latestRevisionDate: Date, downloadBytes: DownloadBytes | null, previewUrl?: string | null);
12
+ toOffline(downloadedBannerPath: string | null, downloadedFullPath: string | null, downloadedPreviewPath?: string | null): OfflineBetaSectionImage;
12
13
  static fromResult(result: unknown): OnlineBetaSectionImage;
13
14
  }
14
15
  //# sourceMappingURL=onlineBetaSectionImage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"onlineBetaSectionImage.d.ts","sourceRoot":"","sources":["../../../src/models/betaSections/onlineBetaSectionImage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAkC,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,qBAAa,sBAAuB,SAAQ,gBAAgB;IACxD,QAAQ,CAAC,SAAS,EAAG,QAAQ,CAAU;IACvC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,+DA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AI,EACnC,UAAU,GAAE,MAAM,GAAG,IAAW;IASpC,SAAS,CACL,oBAAoB,EAAE,MAAM,GAAG,IAAI,EACnC,kBAAkB,EAAE,MAAM,GAAG,IAAI,EACjC,qBAAqB,GAAE,MAAM,GAAG,IAAW,GAC5C,uBAAuB;IAa1B,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,sBAAsB;CAc7D"}
@@ -4,15 +4,16 @@ exports.OnlineBetaSectionImage = void 0;
4
4
  const betaSectionImage_1 = require("./betaSectionImage");
5
5
  const offlineBetaSectionImage_1 = require("./offlineBetaSectionImage");
6
6
  class OnlineBetaSectionImage extends betaSectionImage_1.BetaSectionImage {
7
- constructor(order, id, bannerUrl, fullUrl, linkUrl, caption, latestRevisionDate, downloadBytes) {
7
+ constructor(order, id, bannerUrl, fullUrl, linkUrl, caption, latestRevisionDate, downloadBytes, previewUrl = null) {
8
8
  super(order, id, linkUrl, caption, latestRevisionDate);
9
9
  this.fetchType = 'online';
10
10
  this.bannerUrl = bannerUrl;
11
11
  this.fullUrl = fullUrl;
12
12
  this.downloadBytes = downloadBytes;
13
+ this.previewUrl = previewUrl;
13
14
  }
14
- toOffline(downloadedBannerPath, downloadedFullPath) {
15
- return new offlineBetaSectionImage_1.OfflineBetaSectionImage(this.order, this.id, downloadedBannerPath, downloadedFullPath, this.linkUrl, this.caption, this.latestRevisionDate);
15
+ toOffline(downloadedBannerPath, downloadedFullPath, downloadedPreviewPath = null) {
16
+ return new offlineBetaSectionImage_1.OfflineBetaSectionImage(this.order, this.id, downloadedBannerPath, downloadedFullPath, this.linkUrl, this.caption, this.latestRevisionDate, downloadedPreviewPath);
16
17
  }
17
18
  static fromResult(result) {
18
19
  if (result == null || typeof result !== 'object') {
@@ -22,6 +23,9 @@ class OnlineBetaSectionImage extends betaSectionImage_1.BetaSectionImage {
22
23
  betaSectionImage_1.BetaSectionImage.normalizeCommonFields(r, 'OnlineBetaSectionImage', 'online');
23
24
  betaSectionImage_1.BetaSectionImage.assertStringOrNull(r, 'bannerUrl');
24
25
  betaSectionImage_1.BetaSectionImage.assertStringOrNull(r, 'fullUrl');
26
+ if (r.previewUrl === undefined)
27
+ r.previewUrl = null;
28
+ betaSectionImage_1.BetaSectionImage.assertStringOrNull(r, 'previewUrl');
25
29
  betaSectionImage_1.BetaSectionImage.assertDownloadBytesOrNull(r, 'downloadBytes');
26
30
  Object.setPrototypeOf(r, OnlineBetaSectionImage.prototype);
27
31
  return r;
@@ -56,6 +56,7 @@ export { OnlineBetaSectionImage } from './betaSections/onlineBetaSectionImage';
56
56
  export { OfflineBetaSectionImage } from './betaSections/offlineBetaSectionImage';
57
57
  export { DownloadBytes } from './betaSections/downloadBytes';
58
58
  export { BetaSection } from './betaSections/betaSection';
59
+ export { BetaSectionExcerpt } from './betaSections/betaSectionExcerpt';
59
60
  export { OnlineBetaSection } from './betaSections/onlineBetaSection';
60
61
  export { OfflineBetaSection } from './betaSections/offlineBetaSection';
61
62
  export { Bounds } from './minimap/bounds';
@@ -64,6 +65,9 @@ export { LegendItem, registerLegendItemParser } from './minimap/legend/abstract/
64
65
  export { PointLegendItem } from './minimap/legend/concrete/pointLegendItem';
65
66
  export { LineLegendItem } from './minimap/legend/concrete/lineLegendItem';
66
67
  export { PolygonLegendItem } from './minimap/legend/concrete/polygonLegendItem';
68
+ export { RelevantContext } from './minimap/legend/concrete/relevantContext';
69
+ export { MeasurementContext } from './minimap/legend/concrete/measurementContext';
70
+ export { ImageContext } from './minimap/legend/concrete/imageContext';
67
71
  export { MiniMapType } from './minimap/abstract/miniMapType';
68
72
  export type { OnlineMiniMap } from './minimap/abstract/onlineMiniMap';
69
73
  export type { OfflineMiniMap } from './minimap/abstract/offlineMiniMap';
@@ -84,8 +88,8 @@ export { PageView } from './pageViews/pageView';
84
88
  export { RopewikiPageView as BaseRopewikiPageView } from './pageViews/ropewikiPageView';
85
89
  export { OnlineRopewikiPageView } from './pageViews/onlineRopewikiPageView';
86
90
  export { OfflineRopewikiPageView } from './pageViews/offlineRopewikiPageView';
87
- export type { OnlinePageView } from './pageViews/onlinePageView';
88
- export type { OfflinePageView } from './pageViews/offlinePageView';
91
+ export type { OnlinePageView, OnlineBetaSectionLookup, OnlineBetaSectionLookupEntry, } from './pageViews/onlinePageView';
92
+ export type { OfflinePageView, OfflineBetaSectionLookup, OfflineBetaSectionLookupEntry, } from './pageViews/offlinePageView';
89
93
  export { formatMeasurementValue } from './measurements/measurementValue';
90
94
  export { Measurement, FREEDOM_MEASUREMENT_SYSTEM } from './measurements/measurement';
91
95
  export type { MeasurementUnit } from './measurements/measurement';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,wCAAwC,CAAC;AAChD,OAAO,8CAA8C,CAAC;AACtD,OAAO,kDAAkD,CAAC;AAC1D,OAAO,8CAA8C,CAAC;AACtD,OAAO,2CAA2C,CAAC;AACnD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,kCAAkC,CAAC;AAC1C,OAAO,qCAAqC,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EACH,sBAAsB,EACtB,gBAAgB,EAChB,wBAAwB,EACxB,iCAAiC,GACpC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACH,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,GACb,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,4CAA4C;AAC5C,OAAO,EAAE,qBAAqB,IAAI,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAC1F,wCAAwC;AACxC,OAAO,EAAE,iBAAiB,IAAI,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClF,uCAAuC;AACvC,OAAO,EAAE,gBAAgB,IAAI,c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AAoB,CAAC;AAC5B,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Preview = exports.RopewikiVehicleType = exports.PermitStatus = exports.SavedFilters = exports.SavedPagesFilter = exports.SearchFilter = exports.RouteFilter = exports.RiskMinMax = exports.TimeMinMax = exports.WaterMinMax = exports.TechnicalMinMax = exports.AcaDifficultyFilterOptions = exports.registerDifficultyFilterOptionsParser = exports.DifficultyFilterOptions = exports.Q_ACA_RISK = exports.Q_ACA_TIME = exports.Q_ACA_WATER = exports.Q_ACA_TECHNICAL = exports.Q_DIFFICULTY_TYPE = exports.AcaDifficultyParams = exports.isDifficultyParamsActive = exports.registerDifficultyParamsQueryParser = exports.registerDifficultyParamsQueryInference = exports.DifficultyParams = exports.AcaRiskRating = exports.AcaTimeRating = exports.AcaWaterRating = exports.AcaTechnicalRating = exports.AcaDifficulty = exports.Difficulty = exports.DifficultyType = exports.DifficultyRisk = exports.DifficultyTime = exports.DifficultyWater = exports.DifficultyTechnical = exports.AcaDifficultyRating = exports.RISK_ORDER = exports.AcaWaterSubRating = exports.AcaTimeSubRating = exports.AcaTechnicalSubRating = exports.AcaRiskSubRating = exports.ACA_WATER_ORDER = exports.ACA_TIME_ORDER = exports.ACA_TECHNICAL_ORDER = exports.ACA_RISK_ORDER = exports.resolveDifficultyRatingFromRecord = exports.registerDifficultyParser = exports.DifficultyRating = exports.DifficultyRatingSystem = exports.PageDataSource = void 0;
4
- exports.MILES = exports.LengthMeasurement = exports.MinMax = exports.FREEDOM_MEASUREMENT_SYSTEM = exports.Measurement = exports.formatMeasurementValue = exports.OfflineRopewikiPageView = exports.OnlineRopewikiPageView = exports.BaseRopewikiPageView = exports.PageView = exports.PageViewType = exports.RopewikiPageViewResult = exports.RopewikiPageView = exports.OfflineCenteredRegionMiniMap = exports.OnlineCenteredRegionMiniMap = exports.OfflineRegionMiniMap = exports.OnlineRegionMiniMap = exports.OfflinePageMiniMap = exports.OnlinePageMiniMap = exports.CenteredRegionMiniMap = exports.PageMiniMap = exports.RegionMiniMap = exports.MiniMap = exports.MiniMapType = exports.PolygonLegendItem = exports.LineLegendItem = exports.PointLegendItem = exports.registerLegendItemParser = exports.LegendItem = exports.LEGEND_FEATURE_TYPES = exports.LegendFeatureType = exports.Bounds = exports.OfflineBetaSection = exports.OnlineBetaSection = exports.BetaSection = exports.DownloadBytes = exports.OfflineBetaSectionImage = exports.OnlineBetaSectionImage = exports.BetaSectionImage = exports.RoutesParams = exports.RouteResult = exports.RoutesGeojson = exports.RouteType = exports.RouteGeoJsonFeature = exports.Route = exports.RegionPreview = exports.OfflinePagePreview = exports.OnlinePagePreview = exports.PagePreview = exports.PreviewType = void 0;
5
- exports.DOWNLOADED_ROUTE_PREVIEWS_STORAGE_KEY = exports.SAVED_PAGES_STORAGE_KEY = exports.SavedPage = exports.ImageVersions = exports.VERSION_FORMAT = exports.ImageVersion = exports.RoutePreviewResult = exports.RopewikiRegionImagesResult = exports.RopewikiRegionImagesParams = exports.RopewikiRegionImageView = exports.RegionImagesCursor = exports.RopewikiRegionPreviewsResult = exports.RopewikiRegionPreviewsParams = exports.RegionPreviewsCursor = exports.RopewikiRegionViewResult = exports.RopewikiRegionView = exports.SearchResults = exports.SearchParams = exports.SearchCursor = exports.MapDataTileKeysResults = exports.registerPaginationParser = exports.PaginationResultType = exports.PaginationResults = exports.registerCursorPaginationParser = exports.CursorPaginationResultType = exports.CursorPaginationResults = exports.registerResultParser = exports.ResultType = exports.Result = exports.PaginationParams = exports.CursorPaginationParams = exports.CursorType = exports.Cursor = exports.RopewikiPageLinkPreviewResult = exports.LinkPreviewImage = exports.LinkPreview = exports.DAYS = exports.HOURS = exports.MINUTES = exports.TimeMeasurement = exports.FEET = void 0;
4
+ exports.Measurement = exports.formatMeasurementValue = exports.OfflineRopewikiPageView = exports.OnlineRopewikiPageView = exports.BaseRopewikiPageView = exports.PageView = exports.PageViewType = exports.RopewikiPageViewResult = exports.RopewikiPageView = exports.OfflineCenteredRegionMiniMap = exports.OnlineCenteredRegionMiniMap = exports.OfflineRegionMiniMap = exports.OnlineRegionMiniMap = exports.OfflinePageMiniMap = exports.OnlinePageMiniMap = exports.CenteredRegionMiniMap = exports.PageMiniMap = exports.RegionMiniMap = exports.MiniMap = exports.MiniMapType = exports.ImageContext = exports.MeasurementContext = exports.RelevantContext = exports.PolygonLegendItem = exports.LineLegendItem = exports.PointLegendItem = exports.registerLegendItemParser = exports.LegendItem = exports.LEGEND_FEATURE_TYPES = exports.LegendFeatureType = exports.Bounds = exports.OfflineBetaSection = exports.OnlineBetaSection = exports.BetaSectionExcerpt = exports.BetaSection = exports.DownloadBytes = exports.OfflineBetaSectionImage = exports.OnlineBetaSectionImage = exports.BetaSectionImage = exports.RoutesParams = exports.RouteResult = exports.RoutesGeojson = exports.RouteType = exports.RouteGeoJsonFeature = exports.Route = exports.RegionPreview = exports.OfflinePagePreview = exports.OnlinePagePreview = exports.PagePreview = exports.PreviewType = void 0;
5
+ exports.DOWNLOADED_ROUTE_PREVIEWS_STORAGE_KEY = exports.SAVED_PAGES_STORAGE_KEY = exports.SavedPage = exports.ImageVersions = exports.VERSION_FORMAT = exports.ImageVersion = exports.RoutePreviewResult = exports.RopewikiRegionImagesResult = exports.RopewikiRegionImagesParams = exports.RopewikiRegionImageView = exports.RegionImagesCursor = exports.RopewikiRegionPreviewsResult = exports.RopewikiRegionPreviewsParams = exports.RegionPreviewsCursor = exports.RopewikiRegionViewResult = exports.RopewikiRegionView = exports.SearchResults = exports.SearchParams = exports.SearchCursor = exports.MapDataTileKeysResults = exports.registerPaginationParser = exports.PaginationResultType = exports.PaginationResults = exports.registerCursorPaginationParser = exports.CursorPaginationResultType = exports.CursorPaginationResults = exports.registerResultParser = exports.ResultType = exports.Result = exports.PaginationParams = exports.CursorPaginationParams = exports.CursorType = exports.Cursor = exports.RopewikiPageLinkPreviewResult = exports.LinkPreviewImage = exports.LinkPreview = exports.DAYS = exports.HOURS = exports.MINUTES = exports.TimeMeasurement = exports.FEET = exports.MILES = exports.LengthMeasurement = exports.MinMax = exports.FREEDOM_MEASUREMENT_SYSTEM = void 0;
6
6
  require("./api/results/registerAllResultParsers");
7
7
  require("./difficulty/registerDifficultyRatingParsers");
8
8
  require("./filters/registerDifficultyFilterOptionsParsers");
@@ -127,6 +127,8 @@ var downloadBytes_1 = require("./betaSections/downloadBytes");
127
127
  Object.defineProperty(exports, "DownloadBytes", { enumerable: true, get: function () { return downloadBytes_1.DownloadBytes; } });
128
128
  var betaSection_1 = require("./betaSections/betaSection");
129
129
  Object.defineProperty(exports, "BetaSection", { enumerable: true, get: function () { return betaSection_1.BetaSection; } });
130
+ var betaSectionExcerpt_1 = require("./betaSections/betaSectionExcerpt");
131
+ Object.defineProperty(exports, "BetaSectionExcerpt", { enumerable: true, get: function () { return betaSectionExcerpt_1.BetaSectionExcerpt; } });
130
132
  var onlineBetaSection_1 = require("./betaSections/onlineBetaSection");
131
133
  Object.defineProperty(exports, "OnlineBetaSection", { enumerable: true, get: function () { return onlineBetaSection_1.OnlineBetaSection; } });
132
134
  var offlineBetaSection_1 = require("./betaSections/offlineBetaSection");
@@ -145,6 +147,12 @@ var lineLegendItem_1 = require("./minimap/legend/concrete/lineLegendItem");
145
147
  Object.defineProperty(exports, "LineLegendItem", { enumerable: true, get: function () { return lineLegendItem_1.LineLegendItem; } });
146
148
  var polygonLegendItem_1 = require("./minimap/legend/concrete/polygonLegendItem");
147
149
  Object.defineProperty(exports, "PolygonLegendItem", { enumerable: true, get: function () { return polygonLegendItem_1.PolygonLegendItem; } });
150
+ var relevantContext_1 = require("./minimap/legend/concrete/relevantContext");
151
+ Object.defineProperty(exports, "RelevantContext", { enumerable: true, get: function () { return relevantContext_1.RelevantContext; } });
152
+ var measurementContext_1 = require("./minimap/legend/concrete/measurementContext");
153
+ Object.defineProperty(exports, "MeasurementContext", { enumerable: true, get: function () { return measurementContext_1.MeasurementContext; } });
154
+ var imageContext_1 = require("./minimap/legend/concrete/imageContext");
155
+ Object.defineProperty(exports, "ImageContext", { enumerable: true, get: function () { return imageContext_1.ImageContext; } });
148
156
  var miniMapType_1 = require("./minimap/abstract/miniMapType");
149
157
  Object.defineProperty(exports, "MiniMapType", { enumerable: true, get: function () { return miniMapType_1.MiniMapType; } });
150
158
  var miniMap_1 = require("./minimap/abstract/miniMap");
@@ -1,4 +1,5 @@
1
1
  import { LegendFeatureType } from './legendFeatureType';
2
+ import { RelevantContext } from '../concrete/relevantContext';
2
3
  export declare function registerLegendItemParser(featureType: LegendFeatureType, parse: (result: unknown) => LegendItem): void;
3
4
  /**
4
5
  * Base type for page minimap legend entries. Use {@link LegendItem.fromResult} to parse API wire shapes.
@@ -7,7 +8,8 @@ export declare abstract class LegendItem {
7
8
  abstract readonly featureType: LegendFeatureType;
8
9
  readonly id: string;
9
10
  readonly name: string;
10
- protected constructor(id: string, name: string);
11
+ readonly relevantContext: RelevantContext | null;
12
+ protected constructor(id: string, name: string, relevantContext?: RelevantContext | null);
11
13
  /** Serialized shape suitable for JSON / offline persistence. */
12
14
  abstract toPlain(): Record<string, unknown>;
13
15
  /**
@@ -15,6 +17,8 @@ export declare abstract class LegendItem {
15
17
  */
16
18
  static fromResult(result: unknown): LegendItem;
17
19
  static assertNonEmptyString(value: unknown, context: string): string;
20
+ static parseOptionalRelevantContext(value: unknown): RelevantContext | null;
21
+ protected static appendRelevantContextToPlain(base: Record<string, unknown>, relevantContext: RelevantContext | null): void;
18
22
  /**
19
23
  * Parses an optional `legend` object keyed by arbitrary ids to {@link LegendItem} instances.
20
24
  */
@@ -1 +1 @@
1
- {"version":3,"file":"legendItem.d.ts","sourceRoot":"","sources":["../../../../../src/models/minimap/legend/abstract/legendItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAI9E,wBAAgB,wBAAwB,CACpC,WAAW,EAAE,iBAAiB,EAC9B,KAAK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AI,CAAC;IAEjD,SAAS,aACL,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,eAAe,GAAE,eAAe,GAAG,IAAW;IASlD,gEAAgE;IAChE,QAAQ,CAAC,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAE3C;;OAEG;IACH,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU;IAkB9C,MAAM,CAAC,oBAAoB,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM;IAOpE,MAAM,CAAC,4BAA4B,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,GAAG,IAAI;IAO3E,SAAS,CAAC,MAAM,CAAC,4BAA4B,CACzC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,eAAe,EAAE,eAAe,GAAG,IAAI,GACxC,IAAI;IAMP;;OAEG;IACH,MAAM,CAAC,sBAAsB,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;CAW7F"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LegendItem = void 0;
4
4
  exports.registerLegendItemParser = registerLegendItemParser;
5
5
  const legendFeatureType_1 = require("./legendFeatureType");
6
+ const relevantContext_1 = require("../concrete/relevantContext");
6
7
  const legendItemParsers = new Map();
7
8
  function registerLegendItemParser(featureType, parse) {
8
9
  legendItemParsers.set(featureType, parse);
@@ -11,11 +12,12 @@ function registerLegendItemParser(featureType, parse) {
11
12
  * Base type for page minimap legend entries. Use {@link LegendItem.fromResult} to parse API wire shapes.
12
13
  */
13
14
  class LegendItem {
14
- constructor(id, name) {
15
+ constructor(id, name, relevantContext = null) {
15
16
  LegendItem.assertNonEmptyString(id, 'LegendItem.id');
16
17
  LegendItem.assertNonEmptyString(name, 'LegendItem.name');
17
18
  this.id = id;
18
19
  this.name = name;
20
+ this.relevantContext = relevantContext;
19
21
  }
20
22
  /**
21
23
  * Validates `featureType` and delegates to the matching legend item parser.
@@ -41,6 +43,17 @@ class LegendItem {
41
43
  }
42
44
  return value;
43
45
  }
46
+ static parseOptionalRelevantContext(value) {
47
+ if (value === null || value === undefined) {
48
+ return null;
49
+ }
50
+ return relevantContext_1.RelevantContext.fromResult(value);
51
+ }
52
+ static appendRelevantContextToPlain(base, relevantContext) {
53
+ if (relevantContext != null) {
54
+ base.relevantContext = relevantContext.toPlain();
55
+ }
56
+ }
44
57
  /**
45
58
  * Parses an optional `legend` object keyed by arbitrary ids to {@link LegendItem} instances.
46
59
  */
@@ -0,0 +1,10 @@
1
+ export declare class ImageContext {
2
+ readonly id: string;
3
+ readonly confidence: number;
4
+ constructor(id: string, confidence: number);
5
+ toPlain(): Record<string, unknown>;
6
+ static fromResult(result: unknown): ImageContext;
7
+ private static assertNonEmptyString;
8
+ private static assertConfidence;
9
+ }
10
+ //# sourceMappingURL=imageContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"imageContext.d.ts","sourceRoot":"","sources":["../../../../../src/models/minimap/legend/concrete/imageContext.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAY;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;gBAEhB,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;IAO1C,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAOlC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,YAAY;IAUhD,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAOnC,OAAO,CAAC,MAAM,CAAC,gBAAgB;CAOlC"}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ImageContext = void 0;
4
+ class ImageContext {
5
+ constructor(id, confidence) {
6
+ ImageContext.assertNonEmptyString(id, 'ImageContext.id');
7
+ ImageContext.assertConfidence(confidence);
8
+ this.id = id;
9
+ this.confidence = confidence;
10
+ }
11
+ toPlain() {
12
+ return {
13
+ id: this.id,
14
+ confidence: this.confidence,
15
+ };
16
+ }
17
+ static fromResult(result) {
18
+ if (result == null || typeof result !== 'object' || Array.isArray(result)) {
19
+ throw new Error('ImageContext result must be an object');
20
+ }
21
+ const r = result;
22
+ const id = ImageContext.assertNonEmptyString(r.id, 'ImageContext.id');
23
+ ImageContext.assertConfidence(r.confidence);
24
+ return new ImageContext(id, r.confidence);
25
+ }
26
+ static assertNonEmptyString(value, context) {
27
+ if (typeof value !== 'string' || value.trim().length === 0) {
28
+ throw new Error(`${context} must be a non-empty string`);
29
+ }
30
+ return value;
31
+ }
32
+ static assertConfidence(value) {
33
+ if (typeof value !== 'number' || !Number.isFinite(value) || value < 0 || value > 1) {
34
+ throw new Error(`ImageContext.confidence must be a number from 0 to 1, got: ${JSON.stringify(value)}`);
35
+ }
36
+ }
37
+ }
38
+ exports.ImageContext = ImageContext;
@@ -1,12 +1,13 @@
1
1
  import { Bounds } from '../../bounds';
2
2
  import { LegendFeatureType } from '../abstract/legendFeatureType';
3
3
  import { LegendItem } from '../abstract/legendItem';
4
+ import type { RelevantContext } from './relevantContext';
4
5
  export declare class LineLegendItem extends LegendItem {
5
6
  readonly featureType = LegendFeatureType.Line;
6
7
  bounds: Bounds;
7
8
  strokeColor?: string;
8
9
  strokeWidth?: string;
9
- constructor(id: string, name: string, bounds: Bounds, strokeColor?: string, strokeWidth?: string);
10
+ constructor(id: string, name: string, bounds: Bounds, strokeColor?: string, strokeWidth?: string, relevantContext?: RelevantContext | null);
10
11
  toPlain(): Record<string, unknown>;
11
12
  static fromResult(result: unknown): LineLegendItem;
12
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lineLegendItem.d.ts","sourceRoot":"","sources":["../../../../../src/models/minimap/legend/concrete/lineLegendItem.ts"],"names":[],"mappings":"AAAA,OA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,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAsBlC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,cAAc;CA8BrD"}
@@ -5,8 +5,8 @@ const bounds_1 = require("../../bounds");
5
5
  const legendFeatureType_1 = require("../abstract/legendFeatureType");
6
6
  const legendItem_1 = require("../abstract/legendItem");
7
7
  class LineLegendItem extends legendItem_1.LegendItem {
8
- constructor(id, name, bounds, strokeColor, strokeWidth) {
9
- super(id, name);
8
+ constructor(id, name, bounds, strokeColor, strokeWidth, relevantContext = null) {
9
+ super(id, name, relevantContext);
10
10
  this.featureType = legendFeatureType_1.LegendFeatureType.Line;
11
11
  this.bounds = bounds;
12
12
  this.strokeColor = strokeColor;
@@ -30,6 +30,7 @@ class LineLegendItem extends legendItem_1.LegendItem {
30
30
  if (this.strokeWidth !== undefined) {
31
31
  base.strokeWidth = this.strokeWidth;
32
32
  }
33
+ legendItem_1.LegendItem.appendRelevantContextToPlain(base, this.relevantContext);
33
34
  return base;
34
35
  }
35
36
  static fromResult(result) {
@@ -57,7 +58,8 @@ class LineLegendItem extends legendItem_1.LegendItem {
57
58
  }
58
59
  strokeWidth = r.strokeWidth;
59
60
  }
60
- return new LineLegendItem(id, name, bounds, strokeColor, strokeWidth);
61
+ const relevantContext = legendItem_1.LegendItem.parseOptionalRelevantContext(r.relevantContext);
62
+ return new LineLegendItem(id, name, bounds, strokeColor, strokeWidth, relevantContext);
61
63
  }
62
64
  }
63
65
  exports.LineLegendItem = LineLegendItem;
@@ -0,0 +1,13 @@
1
+ import { Measurement } from '../../../measurements/measurement';
2
+ export declare class MeasurementContext {
3
+ readonly label: string;
4
+ readonly measurement: Measurement;
5
+ readonly confidence: number;
6
+ constructor(label: string, measurement: Measurement, confidence: number);
7
+ toPlain(): Record<string, unknown>;
8
+ static fromResult(result: unknown): MeasurementContext;
9
+ private static parseMeasurement;
10
+ private static assertNonEmptyString;
11
+ private static assertConfidence;
12
+ }
13
+ //# sourceMappingURL=measurementContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"measurementContext.d.ts","sourceRoot":"","sources":["../../../../../src/models/minimap/legend/concrete/measurementContext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAGhE,qBAAa,kBAAkB;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;gBAEhB,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM;IAQvE,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAQlC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,kBAAkB;IAWtD,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAgB/B,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAOnC,OAAO,CAAC,MAAM,CAAC,gBAAgB;CAOlC"}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MeasurementContext = void 0;
4
+ const lengthMeasurement_1 = require("../../../measurements/lengthMeasurement");
5
+ const timeMeasurement_1 = require("../../../measurements/timeMeasurement");
6
+ class MeasurementContext {
7
+ constructor(label, measurement, confidence) {
8
+ MeasurementContext.assertNonEmptyString(label, 'MeasurementContext.label');
9
+ MeasurementContext.assertConfidence(confidence);
10
+ this.label = label;
11
+ this.measurement = measurement;
12
+ this.confidence = confidence;
13
+ }
14
+ toPlain() {
15
+ return {
16
+ label: this.label,
17
+ measurement: this.measurement.toJSON(),
18
+ confidence: this.confidence,
19
+ };
20
+ }
21
+ static fromResult(result) {
22
+ if (result == null || typeof result !== 'object' || Array.isArray(result)) {
23
+ throw new Error('MeasurementContext result must be an object');
24
+ }
25
+ const r = result;
26
+ const label = MeasurementContext.assertNonEmptyString(r.label, 'MeasurementContext.label');
27
+ MeasurementContext.assertConfidence(r.confidence);
28
+ const measurement = MeasurementContext.parseMeasurement(r.measurement);
29
+ return new MeasurementContext(label, measurement, r.confidence);
30
+ }
31
+ static parseMeasurement(value) {
32
+ if (value == null || typeof value !== 'object') {
33
+ throw new Error('MeasurementContext.measurement must be an object');
34
+ }
35
+ const r = value;
36
+ if (r.measurementType === 'length') {
37
+ return lengthMeasurement_1.LengthMeasurement.fromResult(value);
38
+ }
39
+ if (r.measurementType === 'time') {
40
+ return timeMeasurement_1.TimeMeasurement.fromResult(value);
41
+ }
42
+ throw new Error(`MeasurementContext.measurement.measurementType must be "length" or "time", got: ${JSON.stringify(r.measurementType)}`);
43
+ }
44
+ static assertNonEmptyString(value, context) {
45
+ if (typeof value !== 'string' || value.trim().length === 0) {
46
+ throw new Error(`${context} must be a non-empty string`);
47
+ }
48
+ return value;
49
+ }
50
+ static assertConfidence(value) {
51
+ if (typeof value !== 'number' || !Number.isFinite(value) || value < 0 || value > 1) {
52
+ throw new Error(`MeasurementContext.confidence must be a number from 0 to 1, got: ${JSON.stringify(value)}`);
53
+ }
54
+ }
55
+ }
56
+ exports.MeasurementContext = MeasurementContext;
@@ -1,5 +1,6 @@
1
1
  import { LegendFeatureType } from '../abstract/legendFeatureType';
2
2
  import { LegendItem } from '../abstract/legendItem';
3
+ import type { RelevantContext } from './relevantContext';
3
4
  export declare class PointLegendItem extends LegendItem {
4
5
  readonly featureType = LegendFeatureType.Point;
5
6
  coordinates: {
@@ -10,7 +11,7 @@ export declare class PointLegendItem extends LegendItem {
10
11
  constructor(id: string, name: string, coordinates: {
11
12
  lat: number;
12
13
  lon: number;
13
- }, icon?: string);
14
+ }, icon?: string, relevantContext?: RelevantContext | null);
14
15
  toPlain(): Record<string, unknown>;
15
16
  static fromResult(result: unknown): PointLegendItem;
16
17
  private static assertNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"pointLegendItem.d.ts","sourceRoot":"","sources":["../../../../../src/models/minimap/legend/concrete/pointLegendItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,UAAU,EAA4B,MAAM,wBAAwB,CAAC;AAE9E,qBAAa,eAAgB,SAAQ,UAAU;IAC3C,QAAQ,CAAC,WAAW,2BAA2B;IAC/C,WAAW,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;gBAGV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,EACzC,IAAI,CAAC,EAAE,MAAM;IAOjB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAalC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,eAAe;IA6BnD,OAAO,CAAC,MAAM,CAAC,YAAY;CAK9B"}
1
+ {"version":3,"file":"pointLegendItem.d.ts","sourceRoot":"","sources":["../../../../../src/models/minimap/legend/concrete/pointLegendItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,UAAU,EAA4B,MAAM,wBAAwB,CAAC;AAC9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,qBAAa,eAAgB,SAAQ,UAAU;IAC3C,QAAQ,CAAC,WAAW,2BAA2B;IAC/C,WAAW,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;gBAGV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,EACzC,IAAI,CAAC,EAAE,MAAM,EACb,eAAe,GAAE,eAAe,GAAG,IAAW;IAOlD,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAclC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,eAAe;IAoCnD,OAAO,CAAC,MAAM,CAAC,YAAY;CAK9B"}
@@ -4,8 +4,8 @@ exports.PointLegendItem = void 0;
4
4
  const legendFeatureType_1 = require("../abstract/legendFeatureType");
5
5
  const legendItem_1 = require("../abstract/legendItem");
6
6
  class PointLegendItem extends legendItem_1.LegendItem {
7
- constructor(id, name, coordinates, icon) {
8
- super(id, name);
7
+ constructor(id, name, coordinates, icon, relevantContext = null) {
8
+ super(id, name, relevantContext);
9
9
  this.featureType = legendFeatureType_1.LegendFeatureType.Point;
10
10
  this.coordinates = coordinates;
11
11
  this.icon = icon;
@@ -20,6 +20,7 @@ class PointLegendItem extends legendItem_1.LegendItem {
20
20
  if (this.icon !== undefined) {
21
21
  base.icon = this.icon;
22
22
  }
23
+ legendItem_1.LegendItem.appendRelevantContextToPlain(base, this.relevantContext);
23
24
  return base;
24
25
  }
25
26
  static fromResult(result) {
@@ -46,7 +47,8 @@ class PointLegendItem extends legendItem_1.LegendItem {
46
47
  }
47
48
  icon = r.icon;
48
49
  }
49
- return new PointLegendItem(id, name, { lat: c.lat, lon: c.lon }, icon);
50
+ const relevantContext = legendItem_1.LegendItem.parseOptionalRelevantContext(r.relevantContext);
51
+ return new PointLegendItem(id, name, { lat: c.lat, lon: c.lon }, icon, relevantContext);
50
52
  }
51
53
  static assertNumber(value, context) {
52
54
  if (typeof value !== 'number' || Number.isNaN(value)) {
@@ -1,12 +1,13 @@
1
1
  import { Bounds } from '../../bounds';
2
2
  import { LegendFeatureType } from '../abstract/legendFeatureType';
3
3
  import { LegendItem } from '../abstract/legendItem';
4
+ import type { RelevantContext } from './relevantContext';
4
5
  export declare class PolygonLegendItem extends LegendItem {
5
6
  readonly featureType = LegendFeatureType.Polygon;
6
7
  bounds: Bounds;
7
8
  borderColor?: string;
8
9
  fillColor?: string;
9
- constructor(id: string, name: string, bounds: Bounds, borderColor?: string, fillColor?: string);
10
+ constructor(id: string, name: string, bounds: Bounds, borderColor?: string, fillColor?: string, relevantContext?: RelevantContext | null);
10
11
  toPlain(): Record<string, unknown>;
11
12
  static fromResult(result: unknown): PolygonLegendItem;
12
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"polygonLegendItem.d.ts","sourceRoot":"","sources":["../../../../../src/models/minimap/legend/concrete/polygonLegendItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,UAAU,EAA4B,MAAM,wBAAwB,CAAC;AAE9E,qBAAa,iBAAkB,SAAQ,UAAU;IAC7C,QAAQ,CAAC,WAAW,6BAA6B;IACjD,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;gBAGf,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,MAAM,EACpB,SAAS,CAAC,EAAE,MAAM;IAQtB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAqBlC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,iBAAiB;CA6BxD"}
1
+ {"version":3,"file":"polygonLegendItem.d.ts","sourceRoot":"","sources":["../../../../../src/models/minimap/legend/concrete/polygonLegendItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,UAAU,EAA4B,MAAM,wBAAwB,CAAC;AAC9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,qBAAa,iBAAkB,SAAQ,UAAU;IAC7C,QAAQ,CAAC,WAAW,6BAA6B;IACjD,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;gBAGf,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,MAAM,EACpB,SAAS,CAAC,EAAE,MAAM,EAClB,eAAe,GAAE,eAAe,GAAG,IAAW;IAQlD,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAsBlC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,iBAAiB;CA8BxD"}
@@ -5,8 +5,8 @@ const bounds_1 = require("../../bounds");
5
5
  const legendFeatureType_1 = require("../abstract/legendFeatureType");
6
6
  const legendItem_1 = require("../abstract/legendItem");
7
7
  class PolygonLegendItem extends legendItem_1.LegendItem {
8
- constructor(id, name, bounds, borderColor, fillColor) {
9
- super(id, name);
8
+ constructor(id, name, bounds, borderColor, fillColor, relevantContext = null) {
9
+ super(id, name, relevantContext);
10
10
  this.featureType = legendFeatureType_1.LegendFeatureType.Polygon;
11
11
  this.bounds = bounds;
12
12
  this.borderColor = borderColor;
@@ -30,6 +30,7 @@ class PolygonLegendItem extends legendItem_1.LegendItem {
30
30
  if (this.fillColor !== undefined) {
31
31
  base.fillColor = this.fillColor;
32
32
  }
33
+ legendItem_1.LegendItem.appendRelevantContextToPlain(base, this.relevantContext);
33
34
  return base;
34
35
  }
35
36
  static fromResult(result) {
@@ -57,7 +58,8 @@ class PolygonLegendItem extends legendItem_1.LegendItem {
57
58
  }
58
59
  fillColor = r.fillColor;
59
60
  }
60
- return new PolygonLegendItem(id, name, bounds, borderColor, fillColor);
61
+ const relevantContext = legendItem_1.LegendItem.parseOptionalRelevantContext(r.relevantContext);
62
+ return new PolygonLegendItem(id, name, bounds, borderColor, fillColor, relevantContext);
61
63
  }
62
64
  }
63
65
  exports.PolygonLegendItem = PolygonLegendItem;
@@ -0,0 +1,15 @@
1
+ import { BetaSectionExcerpt } from '../../../betaSections/betaSectionExcerpt';
2
+ import { ImageContext } from './imageContext';
3
+ import { MeasurementContext } from './measurementContext';
4
+ export declare class RelevantContext {
5
+ readonly measurements: MeasurementContext[];
6
+ readonly betaSectionExcerpts: Record<string, BetaSectionExcerpt[]>;
7
+ readonly images: Record<string, ImageContext[]>;
8
+ constructor(measurements: MeasurementContext[], betaSectionExcerpts: Record<string, BetaSectionExcerpt[]>, images: Record<string, ImageContext[]>);
9
+ toPlain(): Record<string, unknown>;
10
+ static fromResult(result: unknown): RelevantContext;
11
+ private static parseMeasurementsArray;
12
+ private static parseBetaSectionExcerptsRecord;
13
+ private static parseImagesRecord;
14
+ }
15
+ //# sourceMappingURL=relevantContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relevantContext.d.ts","sourceRoot":"","sources":["../../../../../src/models/minimap/legend/concrete/relevantContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,eAAe;IACxB,QAAQ,CAAC,YAAY,EAAE,kBAAkB,EAAE,CAAC;IAC5C,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,EAAE,CAAC,CAAC;IACnE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;gBAG5C,YAAY,EAAE,kBAAkB,EAAE,EAClC,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,EAAE,CAAC,EACzD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC;IAO1C,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAkBlC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,eAAe;IAenD,OAAO,CAAC,MAAM,CAAC,sBAAsB;IAYrC,OAAO,CAAC,MAAM,CAAC,8BAA8B;IAwB7C,OAAO,CAAC,MAAM,CAAC,iBAAiB;CAmBnC"}