maplibre-gl 6.9.1 → 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-docs.ts +0 -1
- package/build/generate-struct-arrays.ts +2 -2
- package/build/generate-style-code.ts +0 -1
- package/build/generate-unicode-data.ts +12 -12
- package/dist/maplibre-gl-dev.mjs +697 -500
- package/dist/maplibre-gl-dev.mjs.map +1 -1
- package/dist/maplibre-gl-shared-dev.mjs +176 -90
- 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-dev.mjs.map +1 -1
- package/dist/maplibre-gl-worker.mjs +1 -1
- package/dist/maplibre-gl-worker.mjs.map +1 -1
- package/dist/maplibre-gl.css +1 -1
- package/dist/maplibre-gl.d.ts +5307 -5201
- package/dist/maplibre-gl.mjs +16 -16
- package/dist/maplibre-gl.mjs.map +1 -1
- package/package.json +20 -20
- package/src/css/maplibre-gl.css +11 -0
- package/src/data/bucket/circle_bucket.ts +1 -2
- package/src/data/bucket/fill_bucket.test.ts +5 -4
- package/src/data/bucket/fill_bucket.ts +3 -4
- package/src/data/bucket/fill_extrusion_bucket.test.ts +6 -5
- package/src/data/bucket/fill_extrusion_bucket.ts +3 -6
- package/src/data/bucket/line_bucket.test.ts +1 -0
- package/src/data/bucket/pattern_bucket_features.ts +1 -2
- package/src/data/bucket/round_polygon_corners.ts +1 -0
- package/src/data/bucket/symbol_bucket.test.ts +100 -3
- package/src/data/bucket/symbol_bucket.ts +4 -5
- package/src/data/dem_data.ts +0 -1
- package/src/data/evaluation_feature.ts +1 -0
- package/src/data/extent_bounds.ts +2 -1
- package/src/data/feature_index.bench.ts +5 -3
- package/src/data/feature_index.test.ts +1 -0
- package/src/data/load_geometry.test.ts +1 -0
- package/src/data/load_geometry.ts +0 -1
- package/src/data/program_configuration.ts +0 -1
- package/src/data/segment.ts +0 -1
- package/src/geo/bounds.ts +2 -1
- package/src/geo/lng_lat_bounds.ts +2 -1
- package/src/geo/mercator_coordinate.ts +2 -1
- package/src/geo/projection/camera_helper.ts +6 -5
- package/src/geo/projection/covering_tiles.bench.ts +17 -17
- package/src/geo/projection/covering_tiles.test.ts +1 -1
- package/src/geo/projection/covering_tiles.ts +29 -17
- package/src/geo/projection/covering_tiles_details_provider.ts +4 -4
- package/src/geo/projection/globe_covering_tiles_details_provider.ts +5 -4
- package/src/geo/projection/globe_projection.test.ts +1 -0
- package/src/geo/projection/globe_projection.ts +7 -6
- package/src/geo/projection/globe_transform.test.ts +20 -1
- package/src/geo/projection/globe_transform.ts +25 -37
- package/src/geo/projection/globe_utils.test.ts +17 -1
- package/src/geo/projection/globe_utils.ts +15 -0
- package/src/geo/projection/mercator_camera_helper.ts +1 -1
- package/src/geo/projection/mercator_covering_tiles_details_provider.ts +6 -5
- package/src/geo/projection/mercator_projection.ts +4 -3
- package/src/geo/projection/mercator_transform.bench.ts +11 -17
- package/src/geo/projection/mercator_transform.test.ts +45 -10
- package/src/geo/projection/mercator_transform.ts +58 -22
- package/src/geo/projection/mercator_utils.ts +1 -0
- package/src/geo/projection/vertical_perspective_camera_helper.test.ts +2 -1
- package/src/geo/projection/vertical_perspective_projection.ts +6 -5
- package/src/geo/projection/vertical_perspective_transform.test.ts +69 -0
- package/src/geo/projection/vertical_perspective_transform.ts +50 -17
- package/src/geo/transform_helper.ts +3 -3
- package/src/geo/transform_interface.ts +12 -14
- package/src/index.test.ts +3 -3
- package/src/index.ts +4 -2
- package/src/render/fill_large_mesh_arrays.ts +3 -2
- package/src/render/glyph_manager.test.ts +1 -0
- package/src/render/glyph_manager.ts +1 -3
- package/src/render/image_atlas.ts +1 -1
- package/src/render/mesh.ts +3 -3
- package/src/render/painter.test.ts +41 -43
- package/src/render/painter.ts +96 -85
- package/src/render/pattern_atlas.ts +0 -1
- package/src/render/render_context.test.ts +65 -0
- package/src/render/{render_options.ts → render_context.ts} +23 -3
- package/src/render/render_to_texture_interface.ts +2 -2
- package/src/render/subdivision.bench.ts +14 -5
- package/src/render/subdivision.ts +65 -47
- package/src/render/terrain.test.ts +3 -12
- package/src/render/terrain.ts +7 -16
- package/src/render/update_pattern_positions_in_program.test.ts +1 -0
- package/src/shaders/glsl/hillshade.fragment.glsl +3 -3
- package/src/shaders/glsl/hillshade.fragment.glsl.g.ts +1 -1
- package/src/shaders/glsl/sky.fragment.glsl +12 -2
- package/src/shaders/glsl/sky.fragment.glsl.g.ts +1 -1
- package/src/source/canvas_source.test.ts +1 -0
- package/src/source/canvas_source.ts +0 -1
- package/src/source/geojson_source.test.ts +1 -0
- package/src/source/geojson_source.ts +2 -0
- package/src/source/image_source.test.ts +1 -0
- package/src/source/image_source.ts +9 -10
- package/src/source/load_tilejson.test.ts +1 -1
- package/src/source/protocol_crud.ts +10 -2
- package/src/source/query_features.test.ts +2 -1
- package/src/source/query_features.ts +1 -0
- package/src/source/raster_dem_tile_source.test.ts +2 -1
- package/src/source/raster_dem_tile_source.ts +5 -5
- package/src/source/raster_dem_tile_worker_source.test.ts +2 -1
- package/src/source/raster_dem_tile_worker_source.ts +2 -1
- package/src/source/raster_tile_source.test.ts +4 -3
- package/src/source/raster_tile_source.ts +0 -2
- package/src/source/rtl_text_plugin_main_thread.test.ts +2 -1
- package/src/source/rtl_text_plugin_worker.test.ts +2 -1
- package/src/source/rtl_text_plugin_worker.ts +1 -1
- package/src/source/source.ts +2 -2
- package/src/source/source_state.test.ts +2 -1
- package/src/source/source_state.ts +1 -0
- package/src/source/vector_tile_mlt.ts +1 -0
- package/src/source/vector_tile_overzoomed.ts +1 -0
- package/src/source/vector_tile_source.test.ts +6 -5
- package/src/source/vector_tile_source.ts +0 -1
- package/src/source/vector_tile_worker_source.test.ts +3 -2
- package/src/source/vector_tile_worker_source.ts +1 -0
- package/src/source/video_source.test.ts +1 -0
- package/src/source/video_source.ts +0 -1
- package/src/source/worker.test.ts +6 -5
- package/src/source/worker.ts +8 -8
- package/src/source/worker_tile.bench.ts +7 -5
- package/src/source/worker_tile.test.ts +1 -0
- package/src/source/worker_tile.ts +1 -1
- package/src/source/worker_tile_mlt.bench.ts +8 -5
- package/src/source/worker_tile_state.ts +1 -1
- package/src/style/create_style_layer.bench.ts +7 -5
- package/src/style/format_section_override.test.ts +2 -1
- package/src/style/format_section_override.ts +3 -2
- package/src/style/light.test.ts +3 -2
- package/src/style/light.ts +5 -2
- package/src/style/load_sprite.ts +0 -1
- package/src/style/parse_glyph_pbf.ts +0 -1
- package/src/style/pauseable_placement.test.ts +1 -0
- package/src/style/pauseable_placement.ts +1 -0
- package/src/style/properties.bench.ts +24 -25
- package/src/style/properties.test.ts +37 -1
- package/src/style/properties.ts +34 -1
- package/src/style/query_utils.test.ts +0 -1
- package/src/style/sky.test.ts +3 -2
- package/src/style/sky.ts +12 -2
- package/src/style/style.test.ts +137 -16
- package/src/style/style.ts +131 -82
- package/src/style/style_image.ts +1 -2
- package/src/style/style_layer/background_style_layer.ts +1 -2
- package/src/style/style_layer/circle_style_layer.test.ts +3 -2
- package/src/style/style_layer/circle_style_layer.ts +3 -3
- package/src/style/style_layer/color_relief_style_layer.test.ts +2 -1
- package/src/style/style_layer/color_relief_style_layer.ts +4 -5
- package/src/style/style_layer/custom_style_layer.ts +1 -0
- package/src/style/style_layer/fill_extrusion_style_layer.ts +2 -2
- package/src/style/style_layer/heatmap_style_layer.test.ts +3 -2
- package/src/style/style_layer/heatmap_style_layer.ts +3 -5
- package/src/style/style_layer/hillshade_style_layer.ts +2 -3
- package/src/style/style_layer/line_style_layer.test.ts +2 -1
- package/src/style/style_layer/line_style_layer.ts +1 -1
- package/src/style/style_layer/overlap_mode.test.ts +3 -2
- package/src/style/style_layer/overlap_mode.ts +2 -2
- package/src/style/style_layer/raster_style_layer.test.ts +2 -1
- package/src/style/style_layer/raster_style_layer.ts +1 -2
- package/src/style/style_layer/symbol_style_layer.ts +1 -4
- package/src/style/style_layer/variable_text_anchor.test.ts +3 -2
- package/src/style/style_layer/variable_text_anchor.ts +4 -3
- package/src/style/style_layer.bench.ts +17 -16
- package/src/style/style_layer.test.ts +6 -5
- package/src/style/style_layer.ts +5 -0
- package/src/style/style_layer_index.ts +1 -0
- package/src/style/validate_style.bench.ts +5 -3
- package/src/style/validate_style.test.ts +1 -0
- package/src/symbol/anchor.ts +0 -1
- package/src/symbol/collision_feature.test.ts +2 -1
- package/src/symbol/collision_feature.ts +4 -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.test.ts +2 -1
- package/src/symbol/cross_tile_symbol_index.ts +3 -2
- package/src/symbol/get_anchors.test.ts +2 -1
- package/src/symbol/get_anchors.ts +0 -1
- package/src/symbol/grid_index.test.ts +1 -0
- package/src/symbol/path_interpolator.ts +1 -0
- package/src/symbol/placement.test.ts +2 -1
- package/src/symbol/quads.test.ts +2 -1
- package/src/symbol/quads.ts +4 -5
- package/src/symbol/shaping.test.ts +1 -0
- package/src/symbol/shaping.ts +3 -3
- package/src/symbol/symbol_layout.bench.ts +19 -16
- package/src/symbol/symbol_layout.ts +30 -4
- package/src/symbol/symbol_style_layer.test.ts +3 -2
- package/src/symbol/tagged_string.test.ts +1 -1
- package/src/symbol/tagged_string.ts +4 -3
- package/src/symbol/transform_text.test.ts +1 -0
- package/src/symbol/transform_text.ts +1 -1
- package/src/tile/terrain_tile_manager.test.ts +4 -3
- package/src/tile/terrain_tile_manager.ts +8 -8
- package/src/tile/tile.test.ts +1 -0
- package/src/tile/tile_cache.test.ts +2 -1
- package/src/tile/tile_cache.ts +1 -1
- package/src/tile/tile_id.ts +2 -1
- package/src/tile/tile_id_to_lng_lat_bounds.ts +1 -0
- package/src/tile/tile_manager.test.ts +48 -10
- package/src/tile/tile_manager.ts +5 -2
- package/src/tile/tile_manager_in_view_tiles.test.ts +1 -0
- package/src/tile/tile_manager_in_view_tiles.ts +3 -2
- package/src/tile/tile_manager_raster.ts +3 -2
- package/src/tile/tile_manager_raster_dem.test.ts +1 -0
- package/src/tile/tile_manager_raster_dem.ts +2 -2
- package/src/ui/camera.ts +37 -1
- package/src/ui/control/attribution_control.test.ts +13 -2
- package/src/ui/control/attribution_control.ts +1 -1
- package/src/ui/control/fullscreen_control.ts +1 -2
- package/src/ui/control/geolocate_control.test.ts +1 -0
- package/src/ui/control/geolocate_control.ts +1 -1
- package/src/ui/control/logo_control.test.ts +1 -0
- package/src/ui/control/navigation_control.ts +0 -1
- package/src/ui/events.ts +1 -2
- package/src/ui/handler/box_zoom.test.ts +1 -0
- package/src/ui/handler/click_zoom.ts +1 -0
- package/src/ui/handler/cooperative_gestures.ts +2 -3
- package/src/ui/handler/drag_handler.ts +3 -2
- package/src/ui/handler/drag_pan.test.ts +1 -0
- package/src/ui/handler/drag_rotate.test.ts +0 -1
- package/src/ui/handler/keyboard.ts +1 -0
- package/src/ui/handler/map_event.test.ts +123 -1
- package/src/ui/handler/map_event.ts +82 -2
- package/src/ui/handler/mouse.ts +0 -1
- package/src/ui/handler/mouse_handler_interface.test.ts +2 -2
- package/src/ui/handler/tap_drag_zoom.ts +2 -1
- package/src/ui/handler/tap_zoom.ts +1 -0
- package/src/ui/handler/touch_pan.ts +2 -1
- package/src/ui/handler/transform-provider.ts +3 -2
- package/src/ui/handler/two_fingers_touch.ts +3 -2
- package/src/ui/handler_inertia.test.ts +2 -1
- package/src/ui/handler_manager.test.ts +5 -5
- package/src/ui/handler_manager.ts +1 -1
- package/src/ui/hash.test.ts +1 -0
- package/src/ui/map.ts +21 -1
- package/src/ui/map_tests/map_basic.test.ts +2 -1
- package/src/ui/map_tests/map_bounds.test.ts +2 -1
- package/src/ui/map_tests/map_calculate_camera_options.test.ts +25 -3
- package/src/ui/map_tests/map_canvas.test.ts +1 -0
- package/src/ui/map_tests/map_control.test.ts +2 -1
- package/src/ui/map_tests/map_covering_tiles.test.ts +2 -1
- package/src/ui/map_tests/map_events.test.ts +4 -3
- package/src/ui/map_tests/map_images.test.ts +2 -1
- package/src/ui/map_tests/map_layer.test.ts +2 -1
- package/src/ui/map_tests/map_options.test.ts +2 -1
- package/src/ui/map_tests/map_render.test.ts +1 -0
- package/src/ui/map_tests/map_style.test.ts +1 -0
- package/src/ui/map_tests/map_terrain.test.ts +44 -3
- package/src/ui/marker.test.ts +142 -50
- package/src/ui/marker.ts +61 -58
- package/src/ui/popup.test.ts +24 -2
- package/src/ui/popup.ts +2 -1
- package/src/util/actor.ts +4 -4
- package/src/util/ajax.test.ts +0 -1
- package/src/util/color_ramp.test.ts +0 -1
- package/src/util/config.ts +14 -2
- package/src/util/create_tile_mesh.ts +2 -1
- package/src/util/dispatcher.test.ts +25 -1
- package/src/util/dispatcher.ts +15 -2
- package/src/util/dom.test.ts +22 -11
- package/src/util/dom.ts +6 -2
- package/src/util/find_pole_of_inaccessibility.ts +0 -1
- package/src/util/image.ts +2 -1
- package/src/util/intersection_tests.ts +0 -1
- package/src/util/primitives/aabb.ts +2 -1
- package/src/util/primitives/bounding_volume.ts +2 -2
- package/src/util/primitives/bounding_volume_cache.ts +2 -2
- package/src/util/primitives/convex_volume.ts +2 -1
- package/src/util/test/util.ts +9 -9
- package/src/util/util.ts +3 -2
- package/src/util/vectortile_to_geojson.ts +2 -1
- package/src/util/web_worker.ts +1 -0
- package/src/util/worker_pool.ts +2 -1
- package/src/util/world_bounds.ts +2 -1
- package/src/webgl/context.ts +4 -5
- package/src/webgl/draw/draw_background.ts +7 -12
- package/src/webgl/draw/draw_circle.ts +8 -9
- package/src/webgl/draw/draw_collision_debug.ts +13 -12
- package/src/webgl/draw/draw_color_relief.ts +11 -18
- package/src/webgl/draw/draw_custom.test.ts +8 -7
- package/src/webgl/draw/draw_custom.ts +6 -6
- package/src/webgl/draw/draw_debug.test.ts +3 -2
- package/src/webgl/draw/draw_debug.ts +7 -6
- package/src/webgl/draw/draw_fill.test.ts +13 -12
- package/src/webgl/draw/draw_fill.ts +19 -28
- package/src/webgl/draw/draw_fill_extrusion.ts +12 -14
- package/src/webgl/draw/draw_heatmap.ts +20 -21
- package/src/webgl/draw/draw_hillshade.ts +12 -19
- package/src/webgl/draw/draw_layer_opacity.ts +2 -2
- package/src/webgl/draw/draw_line.ts +9 -18
- package/src/webgl/draw/draw_raster.ts +10 -13
- package/src/webgl/draw/draw_sky.ts +5 -5
- package/src/webgl/draw/draw_symbol.test.ts +18 -17
- package/src/webgl/draw/draw_symbol.ts +10 -13
- package/src/webgl/draw/draw_terrain.ts +8 -7
- package/src/webgl/frame_uniform_buffer.ts +1 -0
- package/src/webgl/program/atmosphere_program.ts +3 -2
- package/src/webgl/program/circle_program.ts +1 -1
- package/src/webgl/program/fill_extrusion_program.ts +0 -1
- package/src/webgl/program/heatmap_program.ts +1 -2
- package/src/webgl/program/hillshade_program.ts +0 -1
- package/src/webgl/program/pattern.ts +6 -6
- package/src/webgl/program/program_uniforms.ts +1 -0
- package/src/webgl/program/sky_program.ts +14 -7
- package/src/webgl/program/symbol_program.ts +1 -1
- package/src/webgl/program/terrain_program.ts +5 -4
- package/src/webgl/program.ts +6 -6
- package/src/webgl/projection_uniform_buffer.ts +1 -0
- package/src/webgl/render_to_texture.test.ts +51 -50
- package/src/webgl/render_to_texture.ts +16 -14
- package/src/webgl/rtt_fingerprint.ts +1 -1
- package/src/webgl/terrain_uniform_buffer.ts +1 -0
- package/src/webgl/texture.ts +2 -1
- package/src/webgl/uniform_binding.test.ts +3 -2
- package/src/webgl/uniform_binding.ts +1 -1
- package/src/webgl/uniform_buffer.test.ts +9 -3
- package/src/webgl/uniform_buffer.ts +4 -3
- package/src/webgl/vertex_buffer.test.ts +2 -1
- package/src/webgl/vertex_buffer.ts +0 -1
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>
|
package/build/generate-docs.ts
CHANGED
|
@@ -11,8 +11,6 @@
|
|
|
11
11
|
import * as fs from 'fs';
|
|
12
12
|
import {extend} from '../src/util/util.ts';
|
|
13
13
|
import {createLayout, viewTypes} from '../src/util/struct_array.ts';
|
|
14
|
-
import type {ViewType, StructArrayLayout} from '../src/util/struct_array.ts';
|
|
15
|
-
|
|
16
14
|
import posAttributes from '../src/data/pos_attributes.ts';
|
|
17
15
|
import pos3dAttributes from '../src/data/pos3d_attributes.ts';
|
|
18
16
|
import rasterBoundsAttributes from '../src/data/raster_bounds_attributes.ts';
|
|
@@ -40,6 +38,8 @@ import {
|
|
|
40
38
|
textAnchorOffset
|
|
41
39
|
} from '../src/data/bucket/symbol_attributes.ts';
|
|
42
40
|
|
|
41
|
+
import type {ViewType, StructArrayLayout} from '../src/util/struct_array.ts';
|
|
42
|
+
|
|
43
43
|
const typeAbbreviations = {
|
|
44
44
|
'Int8': 'b',
|
|
45
45
|
'Uint8': 'ub',
|
|
@@ -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();
|