crumb-widget 1.3.0 → 1.4.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.
- package/dist/module.d.ts +22 -59
- package/dist/module.js +2531 -1922
- package/package.json +8 -30
- package/README.md +0 -33
package/dist/module.d.ts
CHANGED
|
@@ -1,59 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
declare interface MarkerConfig {
|
|
27
|
-
html: string;
|
|
28
|
-
width: number;
|
|
29
|
-
height: number;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Mount the Crumb Widget into the given element.
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* ```ts
|
|
37
|
-
* import { mountCrumbWidget } from 'crumb-widget';
|
|
38
|
-
*
|
|
39
|
-
* mountCrumbWidget(document.getElementById('my-widget'), {
|
|
40
|
-
* serverUrl: 'https://bmlt.example.org/main_server/',
|
|
41
|
-
* serviceBodyIds: [1, 2, 3],
|
|
42
|
-
* });
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
export declare function mountCrumbWidget(el: HTMLElement, options: MountOptions): void;
|
|
46
|
-
|
|
47
|
-
export declare interface MountOptions extends CrumbWidgetConfig {
|
|
48
|
-
/** URL of the BMLT server (required) */
|
|
49
|
-
serverUrl: string;
|
|
50
|
-
/** Service body IDs to filter by (defaults to all) */
|
|
51
|
-
serviceBodyIds?: number[];
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
declare interface TilesConfig {
|
|
55
|
-
url: string;
|
|
56
|
-
attribution: string;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export { }
|
|
1
|
+
import { CrumbWidgetConfig, Column } from './types';
|
|
2
|
+
export type { CrumbWidgetConfig, Column };
|
|
3
|
+
export interface MountOptions extends CrumbWidgetConfig {
|
|
4
|
+
/** URL of the BMLT server (required) */
|
|
5
|
+
serverUrl: string;
|
|
6
|
+
/** Service body IDs to filter by (defaults to all) */
|
|
7
|
+
serviceBodyIds?: number[];
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Mount the Crumb Widget into the given element.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* import { mountCrumbWidget } from 'crumb-widget';
|
|
15
|
+
*
|
|
16
|
+
* mountCrumbWidget(document.getElementById('my-widget'), {
|
|
17
|
+
* serverUrl: 'https://bmlt.example.org/main_server/',
|
|
18
|
+
* serviceBodyIds: [1, 2, 3],
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function mountCrumbWidget(el: HTMLElement, options: MountOptions): void;
|