@versatiles/svg-renderer 1.1.0 → 2.0.0-rc.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.
@@ -1,42 +0,0 @@
1
- import { IControl, Map } from 'maplibre-gl';
2
- import { StyleSpecification } from '@maplibre/maplibre-gl-style-spec';
3
-
4
- interface SVGExportControlOptions {
5
- /** Initial export width in px. Defaults to the current map viewport width. */
6
- defaultWidth?: number;
7
- /** Initial export height in px. Defaults to the current map viewport height. */
8
- defaultHeight?: number;
9
- }
10
- declare class SVGExportControl implements IControl {
11
- private map;
12
- private container;
13
- private styleEl;
14
- private panel;
15
- private debounceTimer;
16
- private currentSVG;
17
- private renderGeneration;
18
- private options;
19
- constructor(options?: SVGExportControlOptions);
20
- onAdd(map: Map): HTMLElement;
21
- onRemove(): void;
22
- private openPanel;
23
- private closePanel;
24
- private setMapInteractions;
25
- private schedulePreview;
26
- private updatePreview;
27
- private downloadSVG;
28
- private openSVGInTab;
29
- }
30
-
31
- declare function renderToSVG(options: {
32
- width?: number;
33
- height?: number;
34
- style: StyleSpecification;
35
- lon?: number;
36
- lat?: number;
37
- zoom?: number;
38
- renderLabels?: boolean;
39
- }): Promise<string>;
40
-
41
- export { SVGExportControl, renderToSVG };
42
- export type { SVGExportControlOptions };