@loaders.gl/kml 4.0.0-alpha.4 → 4.0.0-alpha.5
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/bundle.d.ts +2 -0
- package/dist/bundle.d.ts.map +1 -0
- package/dist/dist.min.js +1529 -0
- package/dist/gpx-loader.d.ts +46 -0
- package/dist/gpx-loader.d.ts.map +1 -0
- package/dist/gpx-loader.js +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/kml-loader.d.ts +29 -0
- package/dist/kml-loader.d.ts.map +1 -0
- package/dist/kml-loader.js +1 -1
- package/dist/tcx-loader.d.ts +29 -0
- package/dist/tcx-loader.d.ts.map +1 -0
- package/dist/tcx-loader.js +1 -1
- package/package.json +7 -10
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { LoaderOptions } from '@loaders.gl/loader-utils';
|
|
2
|
+
export declare type GPXLoaderOptions = LoaderOptions & {
|
|
3
|
+
gpx?: {};
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Loader for GPX (GPS exchange format)
|
|
7
|
+
*/
|
|
8
|
+
export declare const GPXLoader: {
|
|
9
|
+
name: string;
|
|
10
|
+
id: string;
|
|
11
|
+
module: string;
|
|
12
|
+
version: any;
|
|
13
|
+
extensions: string[];
|
|
14
|
+
mimeTypes: string[];
|
|
15
|
+
text: boolean;
|
|
16
|
+
tests: string[];
|
|
17
|
+
parse: (arrayBuffer: any, options: any) => Promise<any>;
|
|
18
|
+
parseTextSync: typeof parseTextSync;
|
|
19
|
+
options: {
|
|
20
|
+
gpx: {};
|
|
21
|
+
gis: {
|
|
22
|
+
format: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
declare function parseTextSync(text: string, options: any): any;
|
|
27
|
+
export declare const _typecheckGPXLoader: {
|
|
28
|
+
name: string;
|
|
29
|
+
id: string;
|
|
30
|
+
module: string;
|
|
31
|
+
version: any;
|
|
32
|
+
extensions: string[];
|
|
33
|
+
mimeTypes: string[];
|
|
34
|
+
text: boolean;
|
|
35
|
+
tests: string[];
|
|
36
|
+
parse: (arrayBuffer: any, options: any) => Promise<any>;
|
|
37
|
+
parseTextSync: typeof parseTextSync;
|
|
38
|
+
options: {
|
|
39
|
+
gpx: {};
|
|
40
|
+
gis: {
|
|
41
|
+
format: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=gpx-loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gpx-loader.d.ts","sourceRoot":"","sources":["../src/gpx-loader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAQ5D,oBAAY,gBAAgB,GAAG,aAAa,GAAG;IAC7C,GAAG,CAAC,EAAE,EAAE,CAAC;CACV,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;CAgBrB,CAAC;AAEF,iBAAS,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,OAoBhD;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;CAAY,CAAC"}
|
package/dist/gpx-loader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { geojsonToBinary } from '@loaders.gl/gis';
|
|
2
2
|
import { gpx } from '@tmcw/togeojson';
|
|
3
|
-
const VERSION = typeof "4.0.0-alpha.
|
|
3
|
+
const VERSION = typeof "4.0.0-alpha.5" !== 'undefined' ? "4.0.0-alpha.5" : 'latest';
|
|
4
4
|
const GPX_HEADER = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<gpx";
|
|
5
5
|
export const GPXLoader = {
|
|
6
6
|
name: 'GPX (GPS exchange format)',
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type { GPXLoaderOptions } from './gpx-loader';
|
|
2
|
+
export { GPXLoader } from './gpx-loader';
|
|
3
|
+
export type { KMLLoaderOptions } from './kml-loader';
|
|
4
|
+
export { KMLLoader } from './kml-loader';
|
|
5
|
+
export type { TCXLoaderOptions } from './tcx-loader';
|
|
6
|
+
export { TCXLoader } from './tcx-loader';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AACnD,OAAO,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAEvC,YAAY,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AACnD,OAAO,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAEvC,YAAY,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AACnD,OAAO,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { LoaderWithParser, LoaderOptions } from '@loaders.gl/loader-utils';
|
|
2
|
+
export declare type KMLLoaderOptions = LoaderOptions & {
|
|
3
|
+
kml?: {};
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Loader for KML (Keyhole Markup Language)
|
|
7
|
+
*/
|
|
8
|
+
export declare const KMLLoader: {
|
|
9
|
+
name: string;
|
|
10
|
+
id: string;
|
|
11
|
+
module: string;
|
|
12
|
+
version: any;
|
|
13
|
+
extensions: string[];
|
|
14
|
+
mimeTypes: string[];
|
|
15
|
+
text: boolean;
|
|
16
|
+
tests: string[];
|
|
17
|
+
parse: (arrayBuffer: any, options: any) => Promise<any>;
|
|
18
|
+
parseTextSync: typeof parseTextSync;
|
|
19
|
+
options: {
|
|
20
|
+
kml: {};
|
|
21
|
+
gis: {
|
|
22
|
+
format: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
declare function parseTextSync(text: string, options: any): any;
|
|
27
|
+
export declare const _typecheckKMLLoader: LoaderWithParser;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=kml-loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kml-loader.d.ts","sourceRoot":"","sources":["../src/kml-loader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAQ9E,oBAAY,gBAAgB,GAAG,aAAa,GAAG;IAC7C,GAAG,CAAC,EAAE,EAAE,CAAC;CACV,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;CAgBrB,CAAC;AAEF,iBAAS,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,OAoBhD;AAED,eAAO,MAAM,mBAAmB,EAAE,gBAA4B,CAAC"}
|
package/dist/kml-loader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { geojsonToBinary } from '@loaders.gl/gis';
|
|
2
2
|
import { kml } from '@tmcw/togeojson';
|
|
3
|
-
const VERSION = typeof "4.0.0-alpha.
|
|
3
|
+
const VERSION = typeof "4.0.0-alpha.5" !== 'undefined' ? "4.0.0-alpha.5" : 'latest';
|
|
4
4
|
const KML_HEADER = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<kml xmlns=\"http://www.opengis.net/kml/2.2\">";
|
|
5
5
|
export const KMLLoader = {
|
|
6
6
|
name: 'KML (Keyhole Markup Language)',
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { LoaderWithParser, LoaderOptions } from '@loaders.gl/loader-utils';
|
|
2
|
+
export declare type TCXLoaderOptions = LoaderOptions & {
|
|
3
|
+
tcx?: {};
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Loader for TCX (Training Center XML) - Garmin GPS track format
|
|
7
|
+
*/
|
|
8
|
+
export declare const TCXLoader: {
|
|
9
|
+
name: string;
|
|
10
|
+
id: string;
|
|
11
|
+
module: string;
|
|
12
|
+
version: any;
|
|
13
|
+
extensions: string[];
|
|
14
|
+
mimeTypes: string[];
|
|
15
|
+
text: boolean;
|
|
16
|
+
tests: string[];
|
|
17
|
+
parse: (arrayBuffer: any, options: any) => Promise<any>;
|
|
18
|
+
parseTextSync: typeof parseTextSync;
|
|
19
|
+
options: {
|
|
20
|
+
tcx: {};
|
|
21
|
+
gis: {
|
|
22
|
+
format: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
declare function parseTextSync(text: string, options?: any): any;
|
|
27
|
+
export declare const _typecheckTCXLoader: LoaderWithParser;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=tcx-loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tcx-loader.d.ts","sourceRoot":"","sources":["../src/tcx-loader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAQ9E,oBAAY,gBAAgB,GAAG,aAAa,GAAG;IAC7C,GAAG,CAAC,EAAE,EAAE,CAAC;CACV,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;CAgBrB,CAAC;AAEF,iBAAS,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,GAAQ,OAoBrD;AAED,eAAO,MAAM,mBAAmB,EAAE,gBAA4B,CAAC"}
|
package/dist/tcx-loader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { geojsonToBinary } from '@loaders.gl/gis';
|
|
2
2
|
import { tcx } from '@tmcw/togeojson';
|
|
3
|
-
const VERSION = typeof "4.0.0-alpha.
|
|
3
|
+
const VERSION = typeof "4.0.0-alpha.5" !== 'undefined' ? "4.0.0-alpha.5" : 'latest';
|
|
4
4
|
const TCX_HEADER = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<TrainingCenterDatabase";
|
|
5
5
|
export const TCXLoader = {
|
|
6
6
|
name: 'TCX (Training Center XML)',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/kml",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.5",
|
|
4
4
|
"description": "Framework-independent loader for the KML format",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"point cloud",
|
|
19
19
|
"KML"
|
|
20
20
|
],
|
|
21
|
-
"types": "
|
|
21
|
+
"types": "dist/index.d.ts",
|
|
22
22
|
"main": "dist/index.js",
|
|
23
23
|
"module": "dist/index.js",
|
|
24
24
|
"sideEffects": false,
|
|
@@ -29,16 +29,13 @@
|
|
|
29
29
|
],
|
|
30
30
|
"scripts": {
|
|
31
31
|
"pre-build": "npm run build-bundle",
|
|
32
|
-
"build-bundle": "esbuild src/bundle.ts --bundle --outfile=dist/
|
|
32
|
+
"build-bundle": "esbuild src/bundle.ts --bundle --outfile=dist/dist.min.js"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@loaders.gl/gis": "4.0.0-alpha.
|
|
36
|
-
"@loaders.gl/loader-utils": "4.0.0-alpha.
|
|
37
|
-
"@loaders.gl/schema": "4.0.0-alpha.
|
|
35
|
+
"@loaders.gl/gis": "4.0.0-alpha.5",
|
|
36
|
+
"@loaders.gl/loader-utils": "4.0.0-alpha.5",
|
|
37
|
+
"@loaders.gl/schema": "4.0.0-alpha.5",
|
|
38
38
|
"@tmcw/togeojson": "^4.5.0"
|
|
39
39
|
},
|
|
40
|
-
"
|
|
41
|
-
"@loaders.gl/core": "^3.0.0"
|
|
42
|
-
},
|
|
43
|
-
"gitHead": "53026061b3c8871f7e96d3a5826125cc6613bddc"
|
|
40
|
+
"gitHead": "7a71a54bdf1ddf985cc3af3db90b82e7fa97d025"
|
|
44
41
|
}
|