maplibre-gl 6.10.0 → 6.11.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/README.md +2 -2
- package/build/generate-unicode-data.ts +12 -12
- package/dist/maplibre-gl-dev.mjs +245 -67
- package/dist/maplibre-gl-dev.mjs.map +1 -1
- package/dist/maplibre-gl-shared-dev.mjs +57 -8
- package/dist/maplibre-gl-shared-dev.mjs.map +1 -1
- package/dist/maplibre-gl-shared.mjs +2 -2
- package/dist/maplibre-gl-shared.mjs.map +1 -1
- package/dist/maplibre-gl-worker-dev.mjs +1 -1
- package/dist/maplibre-gl-worker.mjs +1 -1
- package/dist/maplibre-gl.css +1 -1
- package/dist/maplibre-gl.d.ts +89 -12
- package/dist/maplibre-gl.mjs +13 -13
- package/dist/maplibre-gl.mjs.map +1 -1
- package/package.json +17 -17
- package/src/css/maplibre-gl.css +11 -0
- package/src/data/bucket/symbol_bucket.test.ts +98 -2
- package/src/data/bucket/symbol_bucket.ts +2 -1
- package/src/data/feature_index.bench.ts +5 -3
- package/src/geo/projection/covering_tiles.bench.ts +16 -17
- package/src/geo/projection/covering_tiles.test.ts +1 -1
- package/src/geo/projection/covering_tiles.ts +26 -14
- package/src/geo/projection/globe_transform.test.ts +20 -1
- package/src/geo/projection/globe_utils.test.ts +17 -1
- package/src/geo/projection/globe_utils.ts +14 -0
- package/src/geo/projection/mercator_transform.bench.ts +10 -17
- package/src/index.test.ts +3 -3
- package/src/index.ts +4 -2
- package/src/render/subdivision.bench.ts +14 -11
- package/src/source/geojson_source.ts +2 -0
- package/src/source/protocol_crud.ts +10 -2
- package/src/source/worker_tile.bench.ts +7 -5
- package/src/source/worker_tile_mlt.bench.ts +8 -5
- package/src/style/create_style_layer.bench.ts +7 -5
- package/src/style/light.ts +4 -0
- package/src/style/properties.bench.ts +24 -25
- package/src/style/properties.test.ts +35 -0
- package/src/style/properties.ts +33 -0
- package/src/style/sky.ts +11 -2
- package/src/style/style.test.ts +130 -9
- package/src/style/style.ts +44 -28
- package/src/style/style_layer.bench.ts +17 -16
- package/src/style/style_layer.ts +5 -0
- package/src/style/validate_style.bench.ts +5 -3
- package/src/symbol/collision_index.bench.ts +10 -9
- package/src/symbol/cross_tile_symbol_index.bench.ts +7 -5
- package/src/symbol/cross_tile_symbol_index.ts +2 -1
- package/src/symbol/symbol_layout.bench.ts +19 -16
- package/src/symbol/symbol_layout.ts +29 -4
- package/src/tile/terrain_tile_manager.ts +1 -2
- package/src/tile/tile_manager.test.ts +43 -5
- package/src/tile/tile_manager.ts +5 -2
- package/src/ui/camera.ts +37 -1
- package/src/ui/control/attribution_control.test.ts +10 -0
- package/src/ui/control/attribution_control.ts +1 -1
- package/src/ui/handler/map_event.test.ts +123 -1
- package/src/ui/handler/map_event.ts +80 -1
- package/src/ui/handler_manager.ts +1 -1
- package/src/ui/map.ts +20 -1
- package/src/ui/map_tests/map_calculate_camera_options.test.ts +21 -0
- package/src/ui/marker.test.ts +48 -15
- package/src/ui/marker.ts +13 -14
- package/src/ui/popup.test.ts +22 -1
- package/src/ui/popup.ts +2 -1
- package/src/util/config.ts +14 -2
- package/src/util/dispatcher.test.ts +25 -1
- package/src/util/dispatcher.ts +14 -1
- package/src/util/dom.test.ts +22 -11
- package/src/util/dom.ts +6 -2
- package/src/webgl/draw/draw_sky.ts +5 -5
- package/src/webgl/program/sky_program.ts +7 -4
- package/src/webgl/uniform_buffer.test.ts +5 -3
- package/src/webgl/uniform_buffer.ts +3 -2
package/README.md
CHANGED
|
@@ -83,13 +83,13 @@ Read more about the MapLibre Sponsorship Program at [https://maplibre.org/sponso
|
|
|
83
83
|
|
|
84
84
|
Gold:
|
|
85
85
|
|
|
86
|
-
<a href="https://www.microsoft.com/"><img src="https://maplibre.org/img/msft-logo.svg" alt="Logo MSFT" width="25%"/></a>
|
|
87
|
-
|
|
88
86
|
<a href="https://aws.amazon.com/location"><img src="https://maplibre.org/img/aws-logo.svg" alt="Logo AWS" width="25%"/></a>
|
|
89
87
|
|
|
90
88
|
|
|
91
89
|
Silver:
|
|
92
90
|
|
|
91
|
+
<a href="https://www.microsoft.com/"><img src="https://maplibre.org/img/msft-logo.svg" alt="Logo MSFT" width="25%"/></a>
|
|
92
|
+
|
|
93
93
|
<a href="https://www.mierune.co.jp/?lang=en"><img src="https://maplibre.org/img/mierune-logo.svg" alt="Logo MIERUNE" width="25%"/></a>
|
|
94
94
|
|
|
95
95
|
<a href="https://komoot.com/"><img src="https://maplibre.org/img/komoot-logo.svg" alt="Logo komoot" width="25%"/></a>
|
|
@@ -16,12 +16,12 @@ async function createSet(blocks: string[], scripts: string[]): Promise<regenerat
|
|
|
16
16
|
|
|
17
17
|
for (const block of blocks) {
|
|
18
18
|
const slug = block.replace(/[- ]/g, '_');
|
|
19
|
-
set.add((await import(`@unicode/unicode-${unicodeVersion}/Block/${slug}/code-points.
|
|
19
|
+
set.add((await import(`@unicode/unicode-${unicodeVersion}/Block/${slug}/code-points.mjs`)).default);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
for (const script of scripts) {
|
|
23
23
|
const slug = script.replace(/[- ]/g, '_');
|
|
24
|
-
set.add((await import(`@unicode/unicode-${unicodeVersion}/Script/${slug}/code-points.
|
|
24
|
+
set.add((await import(`@unicode/unicode-${unicodeVersion}/Script/${slug}/code-points.mjs`)).default);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
return set;
|
|
@@ -40,10 +40,10 @@ async function isInCursiveScript(): Promise<string> {
|
|
|
40
40
|
const joins = (codePoint: number) => ['D', 'L', 'R', 'C'].includes(joiningTypes.get(codePoint));
|
|
41
41
|
|
|
42
42
|
const set = await createSet([], ['Duployan']);
|
|
43
|
-
const scripts = (await import(`@unicode/unicode-${unicodeVersion}/index.
|
|
43
|
+
const scripts = (await import(`@unicode/unicode-${unicodeVersion}/index.mjs`)).default.Script;
|
|
44
44
|
for (const script of scripts) {
|
|
45
45
|
if (script === 'Common' || script === 'Inherited') continue;
|
|
46
|
-
const codePoints = (await import(`@unicode/unicode-${unicodeVersion}/Script/${script}/code-points.
|
|
46
|
+
const codePoints = (await import(`@unicode/unicode-${unicodeVersion}/Script/${script}/code-points.mjs`)).default;
|
|
47
47
|
if (codePoints.some(joins)) set.add(codePoints);
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -61,15 +61,15 @@ async function isInCursiveScript(): Promise<string> {
|
|
|
61
61
|
async function isInRTLScript(): Promise<string> {
|
|
62
62
|
const readRightToLeft = new Set<number>();
|
|
63
63
|
for (const bidiClass of ['Right_To_Left', 'Arabic_Letter']) {
|
|
64
|
-
const codePoints = (await import(`@unicode/unicode-${unicodeVersion}/Bidi_Class/${bidiClass}/code-points.
|
|
64
|
+
const codePoints = (await import(`@unicode/unicode-${unicodeVersion}/Bidi_Class/${bidiClass}/code-points.mjs`)).default;
|
|
65
65
|
for (const codePoint of codePoints) readRightToLeft.add(codePoint);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
const scripts = (await import(`@unicode/unicode-${unicodeVersion}/index.
|
|
68
|
+
const scripts = (await import(`@unicode/unicode-${unicodeVersion}/index.mjs`)).default.Script;
|
|
69
69
|
const set = regenerate.default();
|
|
70
70
|
for (const script of scripts) {
|
|
71
71
|
if (script === 'Common') continue;
|
|
72
|
-
const codePoints = (await import(`@unicode/unicode-${unicodeVersion}/Script/${script}/code-points.
|
|
72
|
+
const codePoints = (await import(`@unicode/unicode-${unicodeVersion}/Script/${script}/code-points.mjs`)).default;
|
|
73
73
|
if (codePoints.some((codePoint: number) => readRightToLeft.has(codePoint))) set.add(codePoints);
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -121,7 +121,7 @@ async function usesLocalIdeographFontFamily(): Promise<string> {
|
|
|
121
121
|
'Yi',
|
|
122
122
|
]);
|
|
123
123
|
|
|
124
|
-
set.add((await import(`@unicode/unicode-${unicodeVersion}/Binary_Property/Ideographic/code-points.
|
|
124
|
+
set.add((await import(`@unicode/unicode-${unicodeVersion}/Binary_Property/Ideographic/code-points.mjs`)).default);
|
|
125
125
|
|
|
126
126
|
return set.toString();
|
|
127
127
|
}
|
|
@@ -173,7 +173,7 @@ async function allowsIdeographicBreaking(): Promise<string> {
|
|
|
173
173
|
async function hasUprightVerticalOrientation(): Promise<string> {
|
|
174
174
|
const set = regenerate.default();
|
|
175
175
|
for (const orientation of ['U', 'Tu']) {
|
|
176
|
-
set.add((await import(`@unicode/unicode-${unicodeVersion}/Vertical_Orientation/${orientation}/code-points.
|
|
176
|
+
set.add((await import(`@unicode/unicode-${unicodeVersion}/Vertical_Orientation/${orientation}/code-points.mjs`)).default);
|
|
177
177
|
}
|
|
178
178
|
set.remove(await neutralVerticalOrientationSet());
|
|
179
179
|
set.add(await createSet([
|
|
@@ -316,7 +316,7 @@ async function neutralVerticalOrientationSet(): Promise<regenerate.regenerate> {
|
|
|
316
316
|
async function canFormGraphemeCluster(): Promise<string> {
|
|
317
317
|
const set = regenerate.default();
|
|
318
318
|
for (const category of ['CR', 'Extend', 'L', 'LV', 'LVT', 'Prepend', 'Regional_Indicator', 'SpacingMark', 'T', 'V', 'ZWJ']) {
|
|
319
|
-
set.add((await import(`@unicode/unicode-${unicodeVersion}/Grapheme_Cluster_Break/${category}/code-points.
|
|
319
|
+
set.add((await import(`@unicode/unicode-${unicodeVersion}/Grapheme_Cluster_Break/${category}/code-points.mjs`)).default);
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
return set.toString();
|
|
@@ -335,7 +335,7 @@ async function canFormGraphemeCluster(): Promise<string> {
|
|
|
335
335
|
*/
|
|
336
336
|
async function isWrittenWithoutSpaces(): Promise<string> {
|
|
337
337
|
const set = regenerate.default();
|
|
338
|
-
set.add((await import(`@unicode/unicode-${unicodeVersion}/Line_Break/Complex_Context/code-points.
|
|
338
|
+
set.add((await import(`@unicode/unicode-${unicodeVersion}/Line_Break/Complex_Context/code-points.mjs`)).default);
|
|
339
339
|
|
|
340
340
|
return set.add(await createSet([], [
|
|
341
341
|
'Balinese',
|
|
@@ -354,7 +354,7 @@ async function isWrittenWithoutSpaces(): Promise<string> {
|
|
|
354
354
|
*/
|
|
355
355
|
async function joinsToTheFollowingGrapheme(): Promise<string> {
|
|
356
356
|
const set = regenerate.default();
|
|
357
|
-
set.add((await import(`@unicode/unicode-${unicodeVersion}/Indic_Syllabic_Category/Invisible_Stacker/code-points.
|
|
357
|
+
set.add((await import(`@unicode/unicode-${unicodeVersion}/Indic_Syllabic_Category/Invisible_Stacker/code-points.mjs`)).default);
|
|
358
358
|
set.add(0x200d);
|
|
359
359
|
|
|
360
360
|
return set.toString();
|