maplibre-gl 2.2.0-pre.4 → 2.3.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/build/generate-typings.ts +12 -2
- package/dist/maplibre-gl-csp-worker.js +1 -1
- package/dist/maplibre-gl-csp.js +1 -1
- package/dist/maplibre-gl-dev.js +272 -67
- package/dist/maplibre-gl.d.ts +19 -9
- package/dist/maplibre-gl.js +4 -4
- package/dist/style-spec/index.d.ts +1781 -0
- package/package.json +2 -2
- package/src/data/bucket/symbol_bucket.test.ts +30 -19
- package/src/index.test.ts +9 -0
- package/src/index.ts +11 -1
- package/src/source/worker.ts +2 -4
- package/src/source/worker_tile.ts +9 -1
- package/src/style-spec/CHANGELOG.md +10 -0
- package/src/style-spec/composite.test.ts +7 -8
- package/src/style-spec/expression/index.ts +13 -13
- package/src/style-spec/expression/parsing_context.ts +4 -4
- package/src/style-spec/expression/parsing_error.ts +2 -2
- package/src/style-spec/migrate/v8.test.ts +12 -14
- package/src/style-spec/migrate/v9.test.ts +2 -4
- package/src/style-spec/migrate.test.ts +6 -8
- package/src/style-spec/package.json +2 -1
- package/src/style-spec/reference/latest.ts +1 -1
- package/src/style-spec/style-spec.ts +11 -10
- package/src/symbol/symbol_layout.ts +56 -56
- package/src/ui/map.test.ts +11 -0
- package/src/ui/map.ts +11 -0
- package/src/util/util.ts +2 -3
|
@@ -7,10 +7,20 @@ if (!fs.existsSync('dist')) {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
console.log('Starting bundling types');
|
|
10
|
-
|
|
11
|
-
childProcess.execSync(`dts-bundle-generator --
|
|
10
|
+
let outputFile = './dist/maplibre-gl.d.ts';
|
|
11
|
+
childProcess.execSync(`dts-bundle-generator --umd-module-name=maplibregl -o ${outputFile} ./src/index.ts`);
|
|
12
12
|
let types = fs.readFileSync(outputFile, 'utf8');
|
|
13
13
|
// Classes are not exported but should be since this is exported as UMD - fixing...
|
|
14
14
|
types = types.replace(/declare class/g, 'export declare class');
|
|
15
15
|
fs.writeFileSync(outputFile, types);
|
|
16
|
+
|
|
17
|
+
console.log('Finifhed bundling types for maplibre-gl starting style-spec');
|
|
18
|
+
|
|
19
|
+
const outputPath = './dist/style-spec';
|
|
20
|
+
if (!fs.existsSync(outputPath)) {
|
|
21
|
+
fs.mkdirSync(outputPath);
|
|
22
|
+
}
|
|
23
|
+
outputFile = `${outputPath}/index.d.ts`;
|
|
24
|
+
childProcess.execSync(`dts-bundle-generator -o ${outputFile} ./src/style-spec/style-spec.ts`);
|
|
25
|
+
|
|
16
26
|
console.log('Finished bundling types');
|