@edgepdf/viewer-js 0.0.9 → 0.0.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.
package/dist/index.d.ts
CHANGED
|
@@ -7,5 +7,6 @@ export { ZoomController } from './lib/zoom-controller.js';
|
|
|
7
7
|
export { createZoomControls } from './lib/zoom-controls.js';
|
|
8
8
|
export { MarkerManager } from './lib/marker-manager.js';
|
|
9
9
|
export type { CreateMarkerOptions } from './lib/marker-manager.js';
|
|
10
|
+
export { CDNManager } from './lib/cdn-manager.js';
|
|
10
11
|
export type { ImageInfo, TileConfig, ViewerConfig, LeafletCoords, ImageCoords, Marker, MarkerData, MapOptions, ZoomConfig, ZoomState, CoordinateBounds, MarkerEventType, MarkerEvent, MarkerEditHandler, MarkerDeleteHandler, MarkerInteractionConfig, MarkerSelectionState, } from '@edgepdf/types';
|
|
11
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,CAAC;AAElB,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,CAAC;AAElB,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGlD,YAAY,EACV,SAAS,EACT,UAAU,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,MAAM,EACN,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,gBAAgB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -9622,6 +9622,18 @@ function calculateTileGrid(width, height, tileSize, zoom) {
|
|
|
9622
9622
|
tileY: calculateTileCount(height, tileSize, zoom)
|
|
9623
9623
|
};
|
|
9624
9624
|
}
|
|
9625
|
+
function getOriginPreviewPath(documentId) {
|
|
9626
|
+
return `processed/${documentId}/preview/preview.webp`;
|
|
9627
|
+
}
|
|
9628
|
+
function getOriginPreviewThumbnailPath(documentId) {
|
|
9629
|
+
return `processed/${documentId}/preview/thumbnail.webp`;
|
|
9630
|
+
}
|
|
9631
|
+
function getAnnotatedPreviewPath(documentId) {
|
|
9632
|
+
return `processed/${documentId}/annotated/preview/preview.webp`;
|
|
9633
|
+
}
|
|
9634
|
+
function getAnnotatedThumbnailPath(documentId) {
|
|
9635
|
+
return `processed/${documentId}/annotated/preview/thumbnail.webp`;
|
|
9636
|
+
}
|
|
9625
9637
|
function generateTileUrl(template, z, x, y) {
|
|
9626
9638
|
return template.replace("{z}", String(z)).replace("{x}", String(x)).replace("{y}", String(y));
|
|
9627
9639
|
}
|
|
@@ -23470,7 +23482,8 @@ var MarkerManager = class {
|
|
|
23470
23482
|
href: options.href,
|
|
23471
23483
|
target: options.target,
|
|
23472
23484
|
showLabel: options.showLabel ?? true,
|
|
23473
|
-
iconType: options.iconType || "pin"
|
|
23485
|
+
iconType: options.iconType || "pin",
|
|
23486
|
+
referenceId: options.referenceId
|
|
23474
23487
|
};
|
|
23475
23488
|
this.validateMarker(marker);
|
|
23476
23489
|
const leafletMarker = this.createLeafletMarker(marker);
|
|
@@ -23581,8 +23594,10 @@ var MarkerManager = class {
|
|
|
23581
23594
|
href: markerData.href,
|
|
23582
23595
|
target: markerData.target,
|
|
23583
23596
|
showLabel: markerData.showLabel,
|
|
23584
|
-
iconType: markerData.iconType
|
|
23597
|
+
iconType: markerData.iconType,
|
|
23585
23598
|
// Preserve iconType from imported data
|
|
23599
|
+
referenceId: markerData.referenceId
|
|
23600
|
+
// Preserve referenceId from imported data
|
|
23586
23601
|
});
|
|
23587
23602
|
importedCount++;
|
|
23588
23603
|
} catch (error46) {
|
|
@@ -25107,7 +25122,186 @@ var EdgePdfViewer = class {
|
|
|
25107
25122
|
}
|
|
25108
25123
|
}
|
|
25109
25124
|
};
|
|
25125
|
+
|
|
25126
|
+
// packages/viewer-js/src/lib/cdn-manager.ts
|
|
25127
|
+
var CDNManager = class {
|
|
25128
|
+
baseUrl;
|
|
25129
|
+
/**
|
|
25130
|
+
* Create a new CDN Manager instance
|
|
25131
|
+
*
|
|
25132
|
+
* @param baseUrl - Base CDN URL (e.g., 'https://cdn.example.com')
|
|
25133
|
+
*
|
|
25134
|
+
* @example
|
|
25135
|
+
* ```typescript
|
|
25136
|
+
* const cdn = new CDNManager('https://cdn.example.com');
|
|
25137
|
+
* ```
|
|
25138
|
+
*/
|
|
25139
|
+
constructor(baseUrl) {
|
|
25140
|
+
this.baseUrl = baseUrl.replace(/\/$/, "");
|
|
25141
|
+
}
|
|
25142
|
+
/**
|
|
25143
|
+
* Get the base CDN URL
|
|
25144
|
+
*
|
|
25145
|
+
* @returns The base URL configured for this manager
|
|
25146
|
+
*/
|
|
25147
|
+
getBaseUrl() {
|
|
25148
|
+
return this.baseUrl;
|
|
25149
|
+
}
|
|
25150
|
+
/**
|
|
25151
|
+
* Build a full CDN URL from a path
|
|
25152
|
+
*
|
|
25153
|
+
* @param path - Path to append to base URL (with or without leading slash)
|
|
25154
|
+
* @returns Complete CDN URL
|
|
25155
|
+
*
|
|
25156
|
+
* @example
|
|
25157
|
+
* ```typescript
|
|
25158
|
+
* const cdn = new CDNManager('https://cdn.example.com');
|
|
25159
|
+
* cdn.buildUrl('processed/doc123/preview.webp');
|
|
25160
|
+
* // 'https://cdn.example.com/processed/doc123/preview.webp'
|
|
25161
|
+
* ```
|
|
25162
|
+
*/
|
|
25163
|
+
buildUrl(path) {
|
|
25164
|
+
const normalizedPath = path.startsWith("/") ? path : `/${path}`;
|
|
25165
|
+
return `${this.baseUrl}${normalizedPath}`;
|
|
25166
|
+
}
|
|
25167
|
+
/**
|
|
25168
|
+
* Get the origin preview path for a document
|
|
25169
|
+
*
|
|
25170
|
+
* @param documentId - Document ID
|
|
25171
|
+
* @returns S3 path for origin preview
|
|
25172
|
+
*
|
|
25173
|
+
* @example
|
|
25174
|
+
* ```typescript
|
|
25175
|
+
* cdn.getOriginPreviewPath('doc123');
|
|
25176
|
+
* // 'processed/doc123/preview/preview.webp'
|
|
25177
|
+
* ```
|
|
25178
|
+
*/
|
|
25179
|
+
getOriginPreviewPath(documentId) {
|
|
25180
|
+
return getOriginPreviewPath(documentId);
|
|
25181
|
+
}
|
|
25182
|
+
/**
|
|
25183
|
+
* Get the full CDN URL for origin preview
|
|
25184
|
+
*
|
|
25185
|
+
* @param documentId - Document ID
|
|
25186
|
+
* @returns Complete CDN URL for origin preview
|
|
25187
|
+
*
|
|
25188
|
+
* @example
|
|
25189
|
+
* ```typescript
|
|
25190
|
+
* cdn.getOriginPreviewUrl('doc123');
|
|
25191
|
+
* // 'https://cdn.example.com/processed/doc123/preview/preview.webp'
|
|
25192
|
+
* ```
|
|
25193
|
+
*/
|
|
25194
|
+
getOriginPreviewUrl(documentId) {
|
|
25195
|
+
return this.buildUrl(getOriginPreviewPath(documentId));
|
|
25196
|
+
}
|
|
25197
|
+
/**
|
|
25198
|
+
* Get the origin preview thumbnail path for a document
|
|
25199
|
+
*
|
|
25200
|
+
* @param documentId - Document ID
|
|
25201
|
+
* @returns S3 path for origin preview thumbnail
|
|
25202
|
+
*
|
|
25203
|
+
* @example
|
|
25204
|
+
* ```typescript
|
|
25205
|
+
* cdn.getOriginPreviewThumbnailPath('doc123');
|
|
25206
|
+
* // 'processed/doc123/preview/thumbnail.webp'
|
|
25207
|
+
* ```
|
|
25208
|
+
*/
|
|
25209
|
+
getOriginPreviewThumbnailPath(documentId) {
|
|
25210
|
+
return getOriginPreviewThumbnailPath(documentId);
|
|
25211
|
+
}
|
|
25212
|
+
/**
|
|
25213
|
+
* Get the full CDN URL for origin preview thumbnail
|
|
25214
|
+
*
|
|
25215
|
+
* @param documentId - Document ID
|
|
25216
|
+
* @returns Complete CDN URL for origin preview thumbnail
|
|
25217
|
+
*
|
|
25218
|
+
* @example
|
|
25219
|
+
* ```typescript
|
|
25220
|
+
* cdn.getOriginPreviewThumbnailUrl('doc123');
|
|
25221
|
+
* // 'https://cdn.example.com/processed/doc123/preview/thumbnail.webp'
|
|
25222
|
+
* ```
|
|
25223
|
+
*/
|
|
25224
|
+
getOriginPreviewThumbnailUrl(documentId) {
|
|
25225
|
+
return this.buildUrl(getOriginPreviewThumbnailPath(documentId));
|
|
25226
|
+
}
|
|
25227
|
+
/**
|
|
25228
|
+
* Get the annotated preview path for a document
|
|
25229
|
+
*
|
|
25230
|
+
* @param documentId - Document ID
|
|
25231
|
+
* @returns S3 path for annotated preview
|
|
25232
|
+
*
|
|
25233
|
+
* @example
|
|
25234
|
+
* ```typescript
|
|
25235
|
+
* cdn.getAnnotatedPreviewPath('doc123');
|
|
25236
|
+
* // 'processed/doc123/annotated/preview/preview.webp'
|
|
25237
|
+
* ```
|
|
25238
|
+
*/
|
|
25239
|
+
getAnnotatedPreviewPath(documentId) {
|
|
25240
|
+
return getAnnotatedPreviewPath(documentId);
|
|
25241
|
+
}
|
|
25242
|
+
/**
|
|
25243
|
+
* Get the full CDN URL for annotated preview
|
|
25244
|
+
*
|
|
25245
|
+
* @param documentId - Document ID
|
|
25246
|
+
* @returns Complete CDN URL for annotated preview
|
|
25247
|
+
*
|
|
25248
|
+
* @example
|
|
25249
|
+
* ```typescript
|
|
25250
|
+
* cdn.getAnnotatedPreviewUrl('doc123');
|
|
25251
|
+
* // 'https://cdn.example.com/processed/doc123/annotated/preview/preview.webp'
|
|
25252
|
+
* ```
|
|
25253
|
+
*/
|
|
25254
|
+
getAnnotatedPreviewUrl(documentId) {
|
|
25255
|
+
return this.buildUrl(getAnnotatedPreviewPath(documentId));
|
|
25256
|
+
}
|
|
25257
|
+
/**
|
|
25258
|
+
* Get the annotated thumbnail path for a document
|
|
25259
|
+
*
|
|
25260
|
+
* @param documentId - Document ID
|
|
25261
|
+
* @returns S3 path for annotated thumbnail
|
|
25262
|
+
*
|
|
25263
|
+
* @example
|
|
25264
|
+
* ```typescript
|
|
25265
|
+
* cdn.getAnnotatedThumbnailPath('doc123');
|
|
25266
|
+
* // 'processed/doc123/annotated/preview/thumbnail.webp'
|
|
25267
|
+
* ```
|
|
25268
|
+
*/
|
|
25269
|
+
getAnnotatedThumbnailPath(documentId) {
|
|
25270
|
+
return getAnnotatedThumbnailPath(documentId);
|
|
25271
|
+
}
|
|
25272
|
+
/**
|
|
25273
|
+
* Get the full CDN URL for annotated thumbnail
|
|
25274
|
+
*
|
|
25275
|
+
* @param documentId - Document ID
|
|
25276
|
+
* @returns Complete CDN URL for annotated thumbnail
|
|
25277
|
+
*
|
|
25278
|
+
* @example
|
|
25279
|
+
* ```typescript
|
|
25280
|
+
* cdn.getAnnotatedThumbnailUrl('doc123');
|
|
25281
|
+
* // 'https://cdn.example.com/processed/doc123/annotated/preview/thumbnail.webp'
|
|
25282
|
+
* ```
|
|
25283
|
+
*/
|
|
25284
|
+
getAnnotatedThumbnailUrl(documentId) {
|
|
25285
|
+
return this.buildUrl(getAnnotatedThumbnailPath(documentId));
|
|
25286
|
+
}
|
|
25287
|
+
/**
|
|
25288
|
+
* Validate tile URL template
|
|
25289
|
+
*
|
|
25290
|
+
* @param template - URL template to validate
|
|
25291
|
+
* @returns True if template contains required placeholders
|
|
25292
|
+
*
|
|
25293
|
+
* @example
|
|
25294
|
+
* ```typescript
|
|
25295
|
+
* cdn.isValidTileUrl('/tiles/{z}/{x}/{y}.png'); // true
|
|
25296
|
+
* cdn.isValidTileUrl('/tiles/z/x/y.png'); // false
|
|
25297
|
+
* ```
|
|
25298
|
+
*/
|
|
25299
|
+
isValidTileUrl(template) {
|
|
25300
|
+
return isValidTileUrl(template);
|
|
25301
|
+
}
|
|
25302
|
+
};
|
|
25110
25303
|
export {
|
|
25304
|
+
CDNManager,
|
|
25111
25305
|
CoordinateMapper,
|
|
25112
25306
|
EdgePdfViewer,
|
|
25113
25307
|
MarkerManager,
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
export declare class CDNManager {
|
|
2
|
+
private baseUrl;
|
|
3
|
+
/**
|
|
4
|
+
* Create a new CDN Manager instance
|
|
5
|
+
*
|
|
6
|
+
* @param baseUrl - Base CDN URL (e.g., 'https://cdn.example.com')
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* const cdn = new CDNManager('https://cdn.example.com');
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
constructor(baseUrl: string);
|
|
14
|
+
/**
|
|
15
|
+
* Get the base CDN URL
|
|
16
|
+
*
|
|
17
|
+
* @returns The base URL configured for this manager
|
|
18
|
+
*/
|
|
19
|
+
getBaseUrl(): string;
|
|
20
|
+
/**
|
|
21
|
+
* Build a full CDN URL from a path
|
|
22
|
+
*
|
|
23
|
+
* @param path - Path to append to base URL (with or without leading slash)
|
|
24
|
+
* @returns Complete CDN URL
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```typescript
|
|
28
|
+
* const cdn = new CDNManager('https://cdn.example.com');
|
|
29
|
+
* cdn.buildUrl('processed/doc123/preview.webp');
|
|
30
|
+
* // 'https://cdn.example.com/processed/doc123/preview.webp'
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
buildUrl(path: string): string;
|
|
34
|
+
/**
|
|
35
|
+
* Get the origin preview path for a document
|
|
36
|
+
*
|
|
37
|
+
* @param documentId - Document ID
|
|
38
|
+
* @returns S3 path for origin preview
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```typescript
|
|
42
|
+
* cdn.getOriginPreviewPath('doc123');
|
|
43
|
+
* // 'processed/doc123/preview/preview.webp'
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
getOriginPreviewPath(documentId: string): string;
|
|
47
|
+
/**
|
|
48
|
+
* Get the full CDN URL for origin preview
|
|
49
|
+
*
|
|
50
|
+
* @param documentId - Document ID
|
|
51
|
+
* @returns Complete CDN URL for origin preview
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```typescript
|
|
55
|
+
* cdn.getOriginPreviewUrl('doc123');
|
|
56
|
+
* // 'https://cdn.example.com/processed/doc123/preview/preview.webp'
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
getOriginPreviewUrl(documentId: string): string;
|
|
60
|
+
/**
|
|
61
|
+
* Get the origin preview thumbnail path for a document
|
|
62
|
+
*
|
|
63
|
+
* @param documentId - Document ID
|
|
64
|
+
* @returns S3 path for origin preview thumbnail
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```typescript
|
|
68
|
+
* cdn.getOriginPreviewThumbnailPath('doc123');
|
|
69
|
+
* // 'processed/doc123/preview/thumbnail.webp'
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
getOriginPreviewThumbnailPath(documentId: string): string;
|
|
73
|
+
/**
|
|
74
|
+
* Get the full CDN URL for origin preview thumbnail
|
|
75
|
+
*
|
|
76
|
+
* @param documentId - Document ID
|
|
77
|
+
* @returns Complete CDN URL for origin preview thumbnail
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```typescript
|
|
81
|
+
* cdn.getOriginPreviewThumbnailUrl('doc123');
|
|
82
|
+
* // 'https://cdn.example.com/processed/doc123/preview/thumbnail.webp'
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
getOriginPreviewThumbnailUrl(documentId: string): string;
|
|
86
|
+
/**
|
|
87
|
+
* Get the annotated preview path for a document
|
|
88
|
+
*
|
|
89
|
+
* @param documentId - Document ID
|
|
90
|
+
* @returns S3 path for annotated preview
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```typescript
|
|
94
|
+
* cdn.getAnnotatedPreviewPath('doc123');
|
|
95
|
+
* // 'processed/doc123/annotated/preview/preview.webp'
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
getAnnotatedPreviewPath(documentId: string): string;
|
|
99
|
+
/**
|
|
100
|
+
* Get the full CDN URL for annotated preview
|
|
101
|
+
*
|
|
102
|
+
* @param documentId - Document ID
|
|
103
|
+
* @returns Complete CDN URL for annotated preview
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* ```typescript
|
|
107
|
+
* cdn.getAnnotatedPreviewUrl('doc123');
|
|
108
|
+
* // 'https://cdn.example.com/processed/doc123/annotated/preview/preview.webp'
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
getAnnotatedPreviewUrl(documentId: string): string;
|
|
112
|
+
/**
|
|
113
|
+
* Get the annotated thumbnail path for a document
|
|
114
|
+
*
|
|
115
|
+
* @param documentId - Document ID
|
|
116
|
+
* @returns S3 path for annotated thumbnail
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* ```typescript
|
|
120
|
+
* cdn.getAnnotatedThumbnailPath('doc123');
|
|
121
|
+
* // 'processed/doc123/annotated/preview/thumbnail.webp'
|
|
122
|
+
* ```
|
|
123
|
+
*/
|
|
124
|
+
getAnnotatedThumbnailPath(documentId: string): string;
|
|
125
|
+
/**
|
|
126
|
+
* Get the full CDN URL for annotated thumbnail
|
|
127
|
+
*
|
|
128
|
+
* @param documentId - Document ID
|
|
129
|
+
* @returns Complete CDN URL for annotated thumbnail
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```typescript
|
|
133
|
+
* cdn.getAnnotatedThumbnailUrl('doc123');
|
|
134
|
+
* // 'https://cdn.example.com/processed/doc123/annotated/preview/thumbnail.webp'
|
|
135
|
+
* ```
|
|
136
|
+
*/
|
|
137
|
+
getAnnotatedThumbnailUrl(documentId: string): string;
|
|
138
|
+
/**
|
|
139
|
+
* Validate tile URL template
|
|
140
|
+
*
|
|
141
|
+
* @param template - URL template to validate
|
|
142
|
+
* @returns True if template contains required placeholders
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* ```typescript
|
|
146
|
+
* cdn.isValidTileUrl('/tiles/{z}/{x}/{y}.png'); // true
|
|
147
|
+
* cdn.isValidTileUrl('/tiles/z/x/y.png'); // false
|
|
148
|
+
* ```
|
|
149
|
+
*/
|
|
150
|
+
isValidTileUrl(template: string): boolean;
|
|
151
|
+
}
|
|
152
|
+
//# sourceMappingURL=cdn-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cdn-manager.d.ts","sourceRoot":"","sources":["../../src/lib/cdn-manager.ts"],"names":[],"mappings":"AAcA,qBAAa,UAAU;IACrB,OAAO,CAAC,OAAO,CAAS;IAExB;;;;;;;;;OASG;gBACS,OAAO,EAAE,MAAM;IAK3B;;;;OAIG;IACH,UAAU,IAAI,MAAM;IAIpB;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAK9B;;;;;;;;;;;OAWG;IACH,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;IAIhD;;;;;;;;;;;OAWG;IACH,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;IAI/C;;;;;;;;;;;OAWG;IACH,6BAA6B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;IAIzD;;;;;;;;;;;OAWG;IACH,4BAA4B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;IAIxD;;;;;;;;;;;OAWG;IACH,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;IAInD;;;;;;;;;;;OAWG;IACH,sBAAsB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;IAIlD;;;;;;;;;;;OAWG;IACH,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;IAIrD;;;;;;;;;;;OAWG;IACH,wBAAwB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;IAIpD;;;;;;;;;;;OAWG;IACH,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;CAG1C"}
|
|
@@ -23,6 +23,8 @@ export interface CreateMarkerOptions {
|
|
|
23
23
|
id?: string;
|
|
24
24
|
/** Icon type for the marker */
|
|
25
25
|
iconType?: 'pin' | 'pin-gray' | 'pin-yellow' | 'pin-gray-selected' | 'pin-yellow-selected';
|
|
26
|
+
/** Reference ID for linking to external systems */
|
|
27
|
+
referenceId?: string;
|
|
26
28
|
}
|
|
27
29
|
/**
|
|
28
30
|
* MarkerManager - Manages markers on the Leaflet map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marker-manager.d.ts","sourceRoot":"","sources":["../../src/lib/marker-manager.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,SAAS,CAAC;AACxB,OAAO,KAAK,EACV,MAAM,EACN,UAAU,EACV,aAAa,EACb,WAAW,EACX,SAAS,EACT,WAAW,EACX,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI1D;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,qCAAqC;IACrC,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,qCAAqC;IACrC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0BAA0B;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yBAAyB;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wDAAwD;IACxD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,+BAA+B;IAC/B,QAAQ,CAAC,EACL,KAAK,GACL,UAAU,GACV,YAAY,GACZ,mBAAmB,GACnB,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"marker-manager.d.ts","sourceRoot":"","sources":["../../src/lib/marker-manager.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,SAAS,CAAC;AACxB,OAAO,KAAK,EACV,MAAM,EACN,UAAU,EACV,aAAa,EACb,WAAW,EACX,SAAS,EACT,WAAW,EACX,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI1D;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,qCAAqC;IACrC,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,qCAAqC;IACrC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,gCAAgC;IAChC,KAAK,CAAC,EAAE,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