@mapcreator/sdk 0.0.5 → 0.0.6
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/MCMap.d.ts +15 -0
- package/dist/index.d.ts +1 -15
- package/dist/mapcreator-sdk.js +1 -1
- package/package.json +1 -1
package/dist/MCMap.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Map as MapLibre } from '@mapcreator/maplibre-gl';
|
|
2
|
+
import { Env, JobObjectAugmented, Mode } from './types';
|
|
3
|
+
declare class MCMapClass {
|
|
4
|
+
map: MapLibre;
|
|
5
|
+
constructor(map: MapLibre);
|
|
6
|
+
}
|
|
7
|
+
export type MCMap = InstanceType<typeof MCMapClass>;
|
|
8
|
+
export declare function init(options: {
|
|
9
|
+
container: HTMLElement | string;
|
|
10
|
+
job: JobObjectAugmented | string;
|
|
11
|
+
accessToken: string;
|
|
12
|
+
mode?: Mode | undefined;
|
|
13
|
+
env?: Env | undefined;
|
|
14
|
+
}): Promise<MCMap>;
|
|
15
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Env, JobObjectAugmented, Mode } from './types';
|
|
3
|
-
type Options = {
|
|
4
|
-
container: HTMLElement | string;
|
|
5
|
-
job: JobObjectAugmented | string;
|
|
6
|
-
accessToken: string;
|
|
7
|
-
mode?: Mode | undefined;
|
|
8
|
-
env?: Env | undefined;
|
|
9
|
-
};
|
|
10
|
-
type MCMap = InstanceType<typeof MCMapClass>;
|
|
11
|
-
declare class MCMapClass {
|
|
12
|
-
map: MapLibre;
|
|
13
|
-
constructor(map: MapLibre);
|
|
14
|
-
}
|
|
15
|
-
declare function init(options: Options): Promise<MCMap>;
|
|
1
|
+
import { init, MCMap } from './MCMap';
|
|
16
2
|
export { init, type MCMap };
|
package/dist/mapcreator-sdk.js
CHANGED
|
@@ -39456,7 +39456,7 @@ function Nl(e, t) {
|
|
|
39456
39456
|
};
|
|
39457
39457
|
}
|
|
39458
39458
|
//#endregion
|
|
39459
|
-
//#region src/
|
|
39459
|
+
//#region src/MCMap.ts
|
|
39460
39460
|
var Pl = class {
|
|
39461
39461
|
map;
|
|
39462
39462
|
constructor(e) {
|