Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to typescript #209

Merged
merged 149 commits into from
Sep 3, 2021
Merged

Migrate to typescript #209

merged 149 commits into from
Sep 3, 2021

Conversation

HarelM
Copy link
Collaborator

@HarelM HarelM commented Jul 14, 2021

Launch Checklist

  • confirm your changes do not include backports from Mapbox projects (unless with compliant license)
  • document any changes to public APIs:
    • Removed version from library API.
    • Remove support of IE11
  • post benchmark scores
  • manually test the debug page
  • apply changelog label ('bug', 'feature', 'docs', etc) or use the label 'skip changelog'
  • add an entry inside this element for inclusion in the maplibre-gl-js changelog: <changelog></changelog>

Motivation and some background:

The current code run on node 10, the migration to node 14 is difficult since some of the libraries are no longer supported.
This is also true regarding documentation of essential libraries such as flow (for typings) and tap (for testing).
The goal of this PR is to update the stack to a more widely used technologies and differentiate this library from mapbox-gl to avoid license breach.

Techonologies

Typescript for type checking
Jest for testing
rollup for packaging
eslint for code checking

The following boilerplate code would be used to facilitate the above widely used technologies.
https://github.com/VitorLuizC/typescript-library-boilerplate

This is a very large task and we'd appreciate any help from anyone :-)

Task by priority:

  • Convert src file from Flow to Typescript
  • Upgrade CI and references script to esm and node 14
  • Make lint pass on all source files
  • Make build pass on tsc including rollup required changes
  • Remove usage of @mapbox/geojson-types and use @types/geosjon.
  • Remove usage of @mapbox/point-geometry and bring it in to this library (after converting it to typescript as this is only one file).
  • Convert test, debug, benchmark code to typescript
  • Make all linters pass (not just for the main library) [Typescript] Add more folders to lint #272
  • Make their tsc pass
  • Convert tests to use jest [Typescript] Convert tests to jest and karma #273
  • Make all tests pass
  • Remove tap and related code around it [Typescript] Convert tests to jest and karma #273
  • Update dependencies (referenced in package.json) [Typescript] Update dependencies #270
  • Change types only declarations to .d.ts files [Typescript] Rename declarations only files to d.ts #271
  • Make sure this PR doesn't break how the docs repo is using this repo
  • Make sure @maplibre/style-spec is working
  • Make sure everything is working as expected and merge back to main - see if there are feature that need to be added to close the gap from when this branch started.

I have decided to reduce the number of changes introduced in this migration - i.e. keep the tests as they are now, do not convert unit tests to typescript.
There will be an option later to do all these changes after things starts to work as expected in other PRs.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 14, 2021

Bundle size report:

Size Change: -8.55 kB
Total Size Before: 206 kB
Total Size After: 197 kB

Output file Before After Change
maplibre-gl.js 197 kB 188 kB -8.63 kB
maplibre-gl.css 9.46 kB 9.55 kB +84 B
ℹ️ View Details
Source file Before After Change
rollup/build/tsc/data/pos_attributes.js 0 B 7.06 kB +7.06 kB
rollup/build/tsc/style/style.js 0 B 6.55 kB +6.55 kB
rollup/build/tsc/ui/map.js 0 B 6.13 kB +6.13 kB
rollup/build/tsc/symbol/placement.js 0 B 4.65 kB +4.65 kB
rollup/build/tsc/data/bucket/symbol_bucket.js 0 B 4.23 kB +4.23 kB
rollup/build/tsc/util/evented.js 0 B 3.84 kB +3.84 kB
rollup/build/tsc/geo/transform.js 0 B 3.79 kB +3.79 kB
rollup/build/tsc/source/source_cache.js 0 B 3.67 kB +3.67 kB
rollup/build/tsc/symbol/shaping.js 0 B 3.62 kB +3.62 kB
rollup/build/tsc/symbol/symbol_layout.js 0 B 3.61 kB +3.61 kB
rollup/build/tsc/render/painter.js 0 B 3.3 kB +3.3 kB
rollup/build/tsc/ui/camera.js 0 B 2.96 kB +2.96 kB
rollup/build/tsc/util/mapbox.js 0 B 2.88 kB +2.88 kB
rollup/build/tsc/ui/marker.js 0 B 2.72 kB +2.72 kB
rollup/build/tsc/util/ajax.js 0 B 2.7 kB +2.7 kB
rollup/build/tsc/data/program_configuration.js 0 B 2.62 kB +2.62 kB
rollup/build/tsc/render/draw_symbol.js 0 B 2.47 kB +2.47 kB
rollup/build/tsc/util/util.js 0 B 2.46 kB +2.46 kB
rollup/build/tsc/data/bucket/line_bucket.js 0 B 2.42 kB +2.42 kB
rollup/build/tsc/data/array_types.js 0 B 2.35 kB +2.35 kB
rollup/build/tsc/ui/handler_manager.js 0 B 2.33 kB +2.33 kB
rollup/build/tsc/ui/control/geolocate_control.js 0 B 2.26 kB +2.26 kB
rollup/build/tsc/source/tile.js 0 B 1.91 kB +1.91 kB
rollup/build/tsc/ui/popup.js 0 B 1.9 kB +1.9 kB
rollup/build/tsc/symbol/quads.js 0 B 1.89 kB +1.89 kB
rollup/build/tsc/style/properties.js 0 B 1.88 kB +1.88 kB
rollup/build/tsc/symbol/projection.js 0 B 1.78 kB +1.78 kB
rollup/build/tsc/data/feature_index.js 0 B 1.7 kB +1.7 kB
rollup/build/tsc/util/script_detection.js 0 B 1.65 kB +1.65 kB
rollup/build/tsc/style-spec/expression/definitions/index.js 0 B 1.63 kB +1.63 kB
rollup/build/tsc/ui/control/navigation_control.js 0 B 1.62 kB +1.62 kB
rollup/build/tsc/style-spec/expression/index.js 0 B 1.59 kB +1.59 kB
rollup/build/tsc/symbol/collision_index.js 0 B 1.57 kB +1.57 kB
rollup/build/tsc/source/geojson_worker_source.js 0 B 1.55 kB +1.55 kB
rollup/build/tsc/style-spec/diff.js 0 B 1.53 kB +1.53 kB
rollup/build/tsc/render/image_manager.js 0 B 1.41 kB +1.41 kB
rollup/build/tsc/style-spec/expression/definitions/within.js 0 B 1.4 kB +1.4 kB
rollup/build/tsc/ui/control/attribution_control.js 0 B 1.31 kB +1.31 kB
rollup/build/tsc/style-spec/expression/definitions/interpolate.js 0 B 1.31 kB +1.31 kB
rollup/build/tsc/data/bucket/fill_extrusion_bucket.js 0 B 1.3 kB +1.3 kB
rollup/build/tsc/render/program/symbol_program.js 0 B 1.3 kB +1.3 kB
rollup/build/tsc/source/geojson_source.js 0 B 1.3 kB +1.3 kB
rollup/build/tsc/util/tile_request_cache.js 0 B 1.29 kB +1.29 kB
rollup/build/tsc/gl/context.js 0 B 1.28 kB +1.28 kB
rollup/build/tsc/symbol/grid_index.js 0 B 1.28 kB +1.28 kB
rollup/build/tsc/source/worker_tile.js 0 B 1.28 kB +1.28 kB
rollup/build/tsc/ui/handler/scroll_zoom.js 0 B 1.25 kB +1.25 kB
rollup/build/tsc/style/style_layer.js 0 B 1.22 kB +1.22 kB
rollup/build/tsc/source/query_features.js 0 B 1.21 kB +1.21 kB
rollup/build/tsc/style-spec/function/index.js 0 B 1.18 kB +1.18 kB
rollup/build/tsc/source/vector_tile_source.js 0 B 1.17 kB +1.17 kB
rollup/build/tsc/render/program/line_program.js 0 B 1.15 kB +1.15 kB
rollup/build/tsc/style-spec/validate/validate_function.js 0 B 1.14 kB +1.14 kB
rollup/build/tsc/symbol/cross_tile_symbol_index.js 0 B 1.13 kB +1.13 kB
rollup/build/tsc/render/draw_debug.js 0 B 1.11 kB +1.11 kB
rollup/build/tsc/source/image_source.js 0 B 1.11 kB +1.11 kB
rollup/build/tsc/util/actor.js 0 B 1.09 kB +1.09 kB
rollup/build/tsc/render/draw_hillshade.js 0 B 1.09 kB +1.09 kB
rollup/build/tsc/gl/value.js 0 B 1.09 kB +1.09 kB
rollup/build/tsc/data/bucket/fill_bucket.js 0 B 1.09 kB +1.09 kB
rollup/build/tsc/source/tile_id.js 0 B 1.09 kB +1.09 kB
rollup/build/tsc/util/primitives.js 0 B 1.08 kB +1.08 kB
rollup/build/tsc/render/draw_collision_debug.js 0 B 1.07 kB +1.07 kB
rollup/build/tsc/render/draw_heatmap.js 0 B 1.04 kB +1.04 kB
rollup/build/tsc/source/canvas_source.js 0 B 1.02 kB +1.02 kB
rollup/build/tsc/style-spec/expression/parsing_context.js 0 B 1.01 kB +1.01 kB
rollup/build/tsc/style/style_layer/line_style_layer.js 0 B 1.01 kB +1.01 kB
rollup/build/tsc/render/draw_line.js 0 B 1.01 kB +1.01 kB
rollup/build/tsc/render/draw_raster.js 0 B 1 kB +1 kB
rollup/build/tsc/style/style_layer/symbol_style_layer.js 0 B 985 B +985 B
rollup/build/tsc/render/line_atlas.js 0 B 983 B +983 B
rollup/build/tsc/util/web_worker_transfer.js 0 B 979 B +979 B
rollup/build/tsc/render/draw_fill.js 0 B 976 B +976 B
rollup/build/tsc/source/raster_tile_source.js 0 B 973 B +973 B
rollup/build/tsc/data/bucket/circle_bucket.js 0 B 970 B +970 B
rollup/build/tsc/ui/handler/touch_zoom_rotate.js 0 B 970 B +970 B
rollup/build/tsc/source/worker.js 0 B 943 B +943 B
rollup/build/tsc/ui/hash.js 0 B 939 B +939 B
rollup/build/tsc/style/style_layer/fill_extrusion_style_layer.js 0 B 936 B +936 B
rollup/build/tsc/util/intersection_tests.js 0 B 933 B +933 B
rollup/build/tsc/render/program.js 0 B 912 B +912 B
rollup/build/tsc/style-spec/expression/definitions/match.js 0 B 906 B +906 B
rollup/build/tsc/source/rtl_text_plugin.js 0 B 904 B +904 B
rollup/build/tsc/source/raster_dem_tile_source.js 0 B 900 B +900 B
rollup/build/tsc/style-spec/feature_filter/index.js 0 B 887 B +887 B
rollup/build/tsc/render/program/hillshade_program.js 0 B 881 B +881 B
rollup/build/tsc/style-spec/expression/definitions/comparison.js 0 B 879 B +879 B
rollup/build/tsc/source/video_source.js 0 B 878 B +878 B
rollup/build/tsc/util/is_char_in_unicode_block.js 0 B 876 B +876 B
rollup/build/tsc/render/glyph_manager.js 0 B 874 B +874 B
rollup/build/tsc/style-spec/validate/validate_layer.js 0 B 868 B +868 B
rollup/build/tsc/ui/control/fullscreen_control.js 0 B 857 B +857 B
rollup/build/tsc/render/image_atlas.js 0 B 833 B +833 B
rollup/build/tsc/ui/handler_inertia.js 0 B 815 B +815 B
rollup/build/tsc/render/draw_fill_extrusion.js 0 B 807 B +807 B
rollup/build/tsc/render/program/program_uniforms.js 0 B 805 B +805 B
rollup/build/tsc/render/program/fill_extrusion_program.js 0 B 800 B +800 B
rollup/build/tsc/style-spec/expression/definitions/coercion.js 0 B 800 B +800 B
rollup/build/tsc/style-spec/util/color_spaces.js 0 B 794 B +794 B
rollup/build/tsc/data/bucket/symbol_attributes.js 0 B 766 B +766 B
rollup/build/tsc/data/dem_data.js 0 B 760 B +760 B
rollup/build/tsc/style-spec/expression/compound_expression.js 0 B 760 B +760 B
rollup/build/tsc/ui/control/scale_control.js 0 B 742 B +742 B
rollup/build/tsc/util/dom.js 0 B 732 B +732 B
rollup/build/tsc/render/program/collision_program.js 0 B 726 B +726 B
rollup/build/tsc/style-spec/expression/definitions/format.js 0 B 722 B +722 B
rollup/build/tsc/index.js 0 B 717 B +717 B
rollup/build/tsc/ui/handler/box_zoom.js 0 B 717 B +717 B
rollup/build/tsc/util/struct_array.js 0 B 699 B +699 B
rollup/build/tsc/source/vector_tile_worker_source.js 0 B 698 B +698 B
rollup/build/tsc/style-spec/expression/definitions/step.js 0 B 696 B +696 B
rollup/build/tsc/util/find_pole_of_inaccessibility.js 0 B 690 B +690 B
rollup/build/tsc/style-spec/expression/definitions/assertion.js 0 B 678 B +678 B
rollup/build/tsc/render/texture.js 0 B 677 B +677 B
rollup/build/tsc/util/point.js 0 B 672 B +672 B
rollup/build/tsc/util/image.js 0 B 653 B +653 B
rollup/build/tsc/style/style_layer/symbol_style_layer_properties.js 0 B 648 B +648 B
rollup/build/tsc/render/uniform_binding.js 0 B 628 B +628 B
rollup/build/tsc/style-spec/validate/validate_filter.js 0 B 619 B +619 B
rollup/build/tsc/style-spec/validate/validate_source.js 0 B 617 B +617 B
rollup/build/tsc/render/program/pattern.js 0 B 615 B +615 B
rollup/build/tsc/geo/lng_lat_bounds.js 0 B 608 B +608 B
rollup/build/tsc/style-spec/expression/definitions/number_format.js 0 B 605 B +605 B
rollup/build/tsc/source/source_state.js 0 B 602 B +602 B
rollup/build/tsc/style/pauseable_placement.js 0 B 597 B +597 B
rollup/build/tsc/ui/control/logo_control.js 0 B 597 B +597 B
rollup/build/tsc/util/verticalize_punctuation.js 0 B 587 B +587 B
rollup/build/tsc/geo/lng_lat.js 0 B 582 B +582 B
rollup/build/tsc/render/draw_circle.js 0 B 580 B +580 B
rollup/build/tsc/render/program/fill_program.js 0 B 577 B +577 B
rollup/build/tsc/symbol/get_anchors.js 0 B 572 B +572 B
rollup/build/tsc/ui/handler/keyboard.js 0 B 571 B +571 B
rollup/build/tsc/render/program/raster_program.js 0 B 563 B +563 B
rollup/build/tsc/render/program/heatmap_program.js 0 B 563 B +563 B
rollup/build/tsc/style/light.js 0 B 560 B +560 B
rollup/build/tsc/data/feature_position_map.js 0 B 559 B +559 B
rollup/build/tsc/source/tile_cache.js 0 B 557 B +557 B
rollup/build/tsc/ui/handler/mouse.js 0 B 555 B +555 B
rollup/build/tsc/render/vertex_array_object.js 0 B 553 B +553 B
rollup/build/tsc/style/style_layer/circle_style_layer.js 0 B 552 B +552 B
rollup/build/tsc/style-spec/validate/validate_property.js 0 B 550 B +550 B
rollup/build/tsc/style-spec/expression/definitions/index_of.js 0 B 544 B +544 B
rollup/build/tsc/gl/vertex_buffer.js 0 B 537 B +537 B
rollup/build/tsc/symbol/symbol_size.js 0 B 534 B +534 B
rollup/build/tsc/ui/handler/tap_recognizer.js 0 B 532 B +532 B
rollup/build/tsc/render/draw_background.js 0 B 528 B +528 B
rollup/build/tsc/style-spec/expression/types.js 0 B 505 B +505 B
rollup/build/tsc/style-spec/expression/definitions/slice.js 0 B 491 B +491 B
rollup/build/tsc/style-spec/expression/values.js 0 B 491 B +491 B
rollup/build/tsc/style/style_layer/custom_style_layer.js 0 B 488 B +488 B
rollup/build/tsc/ui/handler/tap_drag_zoom.js 0 B 482 B +482 B
rollup/build/tsc/render/program/background_program.js 0 B 478 B +478 B
rollup/build/tsc/style-spec/expression/definitions/let.js 0 B 473 B +473 B
rollup/build/tsc/util/performance.js 0 B 470 B +470 B
rollup/build/tsc/style-spec/expression/definitions/case.js 0 B 469 B +469 B
rollup/build/tsc/render/program/circle_program.js 0 B 459 B +459 B
rollup/build/tsc/style/style_layer_index.js 0 B 457 B +457 B
rollup/build/tsc/style-spec/expression/definitions/coalesce.js 0 B 457 B +457 B
rollup/build/tsc/style-spec/validate/validate_expression.js 0 B 452 B +452 B
rollup/build/tsc/data/segment.js 0 B 451 B +451 B
rollup/build/tsc/style-spec/expression/definitions/in.js 0 B 446 B +446 B
rollup/build/tsc/shaders/shaders.js 0 B 443 B +443 B
rollup/build/tsc/style-spec/expression/definitions/collator.js 0 B 437 B +437 B
rollup/build/tsc/util/browser.js 0 B 433 B +433 B
rollup/build/tsc/ui/handler/map_event.js 0 B 432 B +432 B
rollup/build/tsc/ui/handler/touch_pan.js 0 B 431 B +431 B
rollup/build/tsc/geo/edge_insets.js 0 B 422 B +422 B
rollup/build/tsc/util/worker_pool.js 0 B 420 B +420 B
rollup/build/tsc/util/vectortile_to_geojson.js 0 B 418 B +418 B
rollup/build/tsc/style/load_sprite.js 0 B 415 B +415 B
rollup/build/tsc/style-spec/expression/types/formatted.js 0 B 414 B +414 B
rollup/build/tsc/style-spec/group_by_layout.js 0 B 407 B +407 B
rollup/build/tsc/symbol/mergelines.js 0 B 403 B +403 B
rollup/build/tsc/style-spec/expression/definitions/at.js 0 B 402 B +402 B
rollup/build/tsc/style-spec/validate/validate_object.js 0 B 390 B +390 B
rollup/build/tsc/style-spec/expression/definitions/literal.js 0 B 390 B +390 B
rollup/build/tsc/style/evaluation_parameters.js 0 B 386 B +386 B
rollup/build/tsc/style-spec/validate/validate.js 0 B 384 B +384 B
rollup/build/tsc/source/geojson_wrapper.js 0 B 380 B +380 B
rollup/build/tsc/util/webp_supported.js 0 B 380 B +380 B
rollup/build/tsc/symbol/collision_feature.js 0 B 379 B +379 B
rollup/build/tsc/source/raster_dem_tile_worker_source.js 0 B 379 B +379 B
rollup/build/tsc/style-spec/expression/definitions/length.js 0 B 370 B +370 B
rollup/build/tsc/style/parse_glyph_pbf.js 0 B 368 B +368 B
rollup/build/tsc/ui/handler/tap_zoom.js 0 B 366 B +366 B
rollup/build/tsc/style/style_layer/heatmap_style_layer.js 0 B 365 B +365 B
node_modules/@mapbox/tiny-sdf/index.js 839 B 1.2 kB +364 B
rollup/build/tsc/source/source.js 0 B 360 B +360 B
rollup/build/tsc/style-spec/validate/validate_array.js 0 B 355 B +355 B
rollup/build/tsc/style-spec/util/color.js 0 B 353 B +353 B
rollup/build/tsc/ui/events.js 0 B 350 B +350 B
rollup/build/tsc/geo/mercator_coordinate.js 0 B 342 B +342 B
rollup/build/tsc/style-spec/expression/definitions/var.js 0 B 338 B +338 B
rollup/build/tsc/render/draw_custom.js 0 B 338 B +338 B
rollup/build/tsc/util/global_worker_pool.js 0 B 337 B +337 B
rollup/build/tsc/util/dispatcher.js 0 B 331 B +331 B
rollup/build/tsc/render/glyph_atlas.js 0 B 330 B +330 B
rollup/build/tsc/data/bucket/pattern_bucket_features.js 0 B 326 B +326 B
rollup/build/tsc/util/color_ramp.js 0 B 319 B +319 B
rollup/build/tsc/source/tile_bounds.js 0 B 315 B +315 B
rollup/build/tsc/symbol/path_interpolator.js 0 B 311 B +311 B
rollup/build/tsc/source/load_tilejson.js 0 B 310 B +310 B
rollup/build/tsc/style-spec/expression/evaluation_context.js 0 B 309 B +309 B
rollup/build/tsc/style/format_section_override.js 0 B 307 B +307 B
rollup/build/tsc/symbol/clip_line.js 0 B 303 B +303 B
rollup/build/tsc/gl/index_buffer.js 0 B 297 B +297 B
rollup/build/tsc/style-spec/validate_style.min.js 0 B 296 B +296 B
rollup/build/tsc/style-spec/expression/definitions/image.js 0 B 294 B +294 B
rollup/build/tsc/symbol/check_max_angle.js 0 B 292 B +292 B
rollup/build/tsc/style-spec/validate/validate_light.js 0 B 291 B +291 B
rollup/build/tsc/ui/handler/shim/touch_zoom_rotate.js 0 B 289 B +289 B
rollup/build/tsc/style/style_layer/fill_style_layer.js 0 B 283 B +283 B
rollup/build/tsc/ui/default_locale.js 0 B 283 B +283 B
rollup/build/tsc/style/style_layer/line_style_layer_properties.js 0 B 281 B +281 B
rollup/build/tsc/util/task_queue.js 0 B 266 B +266 B
rollup/build/tsc/style/query_utils.js 0 B 264 B +264 B
rollup/build/tsc/style-spec/expression/is_constant.js 0 B 258 B +258 B
rollup/build/tsc/data/load_geometry.js 0 B 253 B +253 B
rollup/build/tsc/util/classify_rings.js 0 B 246 B +246 B
rollup/build/tsc/util/config.js 0 B 245 B +245 B
rollup/build/tsc/ui/handler/click_zoom.js 0 B 241 B +241 B
rollup/build/tsc/util/sku_token.js 0 B 238 B +238 B
rollup/build/tsc/style/load_glyph_range.js 0 B 235 B +235 B
rollup/build/tsc/util/smart_wrap.js 0 B 233 B +233 B
rollup/build/tsc/style/style_layer/circle_style_layer_properties.js 0 B 231 B +231 B
rollup/build/tsc/ui/handler/shim/drag_pan.js 0 B 223 B +223 B
rollup/build/tsc/style-spec/validate/validate_number.js 0 B 221 B +221 B
rollup/build/tsc/gl/framebuffer.js 0 B 220 B +220 B
rollup/build/tsc/ui/anchor.js 0 B 217 B +217 B
rollup/build/tsc/util/throttled_invoker.js 0 B 213 B +213 B
rollup/build/tsc/style-spec/validate/validate_enum.js 0 B 210 B +210 B
rollup/build/tsc/style-spec/deref.js 0 B 208 B +208 B
rollup/build/tsc/style-spec/expression/types/collator.js 0 B 202 B +202 B
rollup/build/tsc/symbol/transform_text.js 0 B 201 B +201 B
rollup/build/tsc/style/style_layer/fill_style_layer_properties.js 0 B 198 B +198 B
rollup/build/tsc/render/program/debug_program.js 0 B 195 B +195 B
rollup/build/tsc/data/bucket.js 0 B 195 B +195 B
rollup/build/tsc/style-spec/expression/scope.js 0 B 194 B +194 B
rollup/build/tsc/style-spec/util/deep_equal.js 0 B 194 B +194 B
rollup/build/tsc/style/style_layer/fill_extrusion_style_layer_properties.js 0 B 192 B +192 B
rollup/build/tsc/style/create_style_layer.js 0 B 191 B +191 B
rollup/build/tsc/style-spec/expression/stops.js 0 B 188 B +188 B
rollup/build/tsc/style/zoom_history.js 0 B 183 B +183 B
rollup/build/tsc/style-spec/util/unbundle_jsonlint.js 0 B 179 B +179 B
rollup/build/tsc/ui/handler/shim/drag_rotate.js 0 B 178 B +178 B
rollup/build/tsc/style-spec/util/interpolate.js 0 B 173 B +173 B
rollup/build/tsc/gl/color_mode.js 0 B 172 B +172 B
rollup/build/tsc/style-spec/validate/validate_glyphs_url.js 0 B 171 B +171 B
rollup/build/tsc/style/style_layer/raster_style_layer_properties.js 0 B 169 B +169 B
rollup/build/tsc/symbol/anchor.js 0 B 168 B +168 B
rollup/build/tsc/style/style_layer/hillshade_style_layer_properties.js 0 B 165 B +165 B
rollup/build/tsc/util/offscreen_canvas_supported.js 0 B 160 B +160 B
rollup/build/tsc/style-spec/util/properties.js 0 B 156 B +156 B
rollup/build/tsc/style-spec/empty.js 0 B 155 B +155 B
rollup/build/tsc/gl/cull_face_mode.js 0 B 154 B +154 B
rollup/build/tsc/style/validate_style.js 0 B 154 B +154 B
rollup/build/tsc/util/dictionary_coder.js 0 B 153 B +153 B
rollup/build/tsc/gl/stencil_mode.js 0 B 152 B +152 B
rollup/build/tsc/style-spec/expression/types/resolved_image.js 0 B 151 B +151 B
rollup/build/tsc/ui/handler/shim/dblclick_zoom.js 0 B 149 B +149 B
rollup/build/tsc/style/style_layer/hillshade_style_layer.js 0 B 143 B +143 B
rollup/build/tsc/util/throttle.js 0 B 143 B +143 B
rollup/build/tsc/style-spec/validate/validate_color.js 0 B 141 B +141 B
rollup/build/tsc/data/bucket/pattern_attributes.js 0 B 141 B +141 B
node_modules/pbf/index.js 2.68 kB 2.82 kB +138 B
rollup/build/tsc/style/style_layer/heatmap_style_layer_properties.js 0 B 137 B +137 B
rollup/build/tsc/gl/depth_mode.js 0 B 135 B +135 B
rollup/build/tsc/style-spec/util/get_type.js 0 B 132 B +132 B
rollup/build/tsc/style/style_image.js 0 B 126 B +126 B
rollup/build/tsc/style-spec/error/validation_error.js 0 B 124 B +124 B
rollup/build/tsc/style-spec/validate/validate_string.js 0 B 123 B +123 B
rollup/build/tsc/style-spec/validate/validate_boolean.js 0 B 123 B +123 B
rollup/build/tsc/data/bucket/fill_extrusion_attributes.js 0 B 120 B +120 B
rollup/build/tsc/data/bucket/line_attributes.js 0 B 119 B +119 B
rollup/build/tsc/style/style_layer/background_style_layer_properties.js 0 B 118 B +118 B
rollup/build/tsc/style-spec/validate/validate_constants.js 0 B 112 B +112 B
rollup/build/tsc/data/bucket/fill_attributes.js 0 B 112 B +112 B
rollup/build/tsc/style-spec/expression/runtime_error.js 0 B 111 B +111 B
rollup/build/tsc/render/program/clipping_mask_program.js 0 B 107 B +107 B
rollup/build/tsc/data/bucket/line_attributes_ext.js 0 B 103 B +103 B
rollup/build/tsc/source/pixels_to_tile_units.js 0 B 103 B +103 B
rollup/build/tsc/ui/handler/handler_util.js 0 B 100 B +100 B
rollup/build/tsc/data/raster_bounds_attributes.js 0 B 96 B +96 B
rollup/build/tsc/data/evaluation_feature.js 0 B 96 B +96 B
rollup/build/tsc/util/resolve_tokens.js 0 B 96 B +96 B
rollup/build/tsc/data/bucket/circle_attributes.js 0 B 93 B +93 B
rollup/build/tsc/style-spec/expression/parsing_error.js 0 B 91 B +91 B
rollup/build/tsc/style-spec/util/extend.js 0 B 82 B +82 B
rollup/build/tsc/data/bucket/heatmap_bucket.js 0 B 82 B +82 B
rollup/build/tsc/shaders/encode_attribute.js 0 B 81 B +81 B
rollup/build/tsc/style-spec/util/result.js 0 B 81 B +81 B
node_modules/ieee754/index.js 490 B 565 B +75 B
rollup/build/tsc/style/style_layer/background_style_layer.js 0 B 72 B +72 B
rollup/build/tsc/style/style_layer/raster_style_layer.js 0 B 66 B +66 B
rollup/build/tsc/style-spec/validate/validate_image.js 0 B 62 B +62 B
rollup/build/tsc/style-spec/validate/validate_formatted.js 0 B 61 B +61 B
rollup/maplibregl.js 22 B 83 B +61 B
rollup/build/tsc/style-spec/validate/validate_layout_property.js 0 B 55 B +55 B
rollup/build/tsc/style-spec/validate/validate_paint_property.js 0 B 54 B +54 B
node_modules/@mapbox/unitbezier/index.js 378 B 432 B +54 B
build/web_worker_replacement.js 0 B 42 B +42 B
rollup/build/tsc/data/extent.js 0 B 32 B +32 B
rollup/build/tsc/symbol/one_em.js 0 B 30 B +30 B
node_modules/murmurhash-js/index.js 48 B 76 B +28 B
node_modules/@mapbox/mapbox-gl-supported/index.js 977 B 994 B +17 B
node_modules/@mapbox/vector-tile/lib/vectortilefeature.js 1 kB 1.01 kB +11 B
node_modules/kdbush/src/range.js 256 B 262 B +6 B
node_modules/@mapbox/point-geometry/index.js 629 B 633 B +4 B
node_modules/geojson-vt/src/transform.js 273 B 276 B +3 B
node_modules/geojson-vt/src/clip.js 868 B 870 B +2 B
node_modules/geojson-vt/src/wrap.js 462 B 464 B +2 B
[EOLs] 42 B 44 B +2 B
node_modules/csscolorparser/csscolorparser.js 2.05 kB 2.05 kB +2 B
node_modules/geojson-vt/src/feature.js 298 B 300 B +2 B
node_modules/geojson-vt/src/index.js 1.56 kB 1.57 kB +2 B
node_modules/geojson-vt/src/tile.js 780 B 781 B +1 B
node_modules/murmurhash-js/murmurhash3_gc.js 365 B 366 B +1 B
node_modules/gl-matrix/esm/common.js 178 B 176 B -2 B
node_modules/grid-index/grid-index.js 994 B 991 B -3 B
node_modules/quickselect/index.js 355 B 349 B -6 B
node_modules/gl-matrix/esm/vec4.js 436 B 428 B -8 B
node_modules/gl-matrix/esm/vec3.js 938 B 930 B -8 B
node_modules/murmurhash-js/murmurhash2_gc.js 256 B 245 B -11 B
node_modules/kdbush/src/within.js 345 B 332 B -13 B
node_modules/@mapbox/geojson-rewind/index.js 359 B 339 B -20 B
src/data/extent.js 24 B 0 B -24 B
src/style-spec/util/ref_properties.js 24 B 0 B -24 B
node_modules/potpack/index.mjs 379 B 353 B -26 B
node_modules/@mapbox/whoots-js/index.mjs 302 B 273 B -29 B
node_modules/vt-pbf/index.js 903 B 872 B -31 B
node_modules/@mapbox/vector-tile/lib/vectortile.js 196 B 164 B -32 B
node_modules/@mapbox/vector-tile/index.js 82 B 45 B -37 B
node_modules/gl-matrix/esm/vec2.js 167 B 125 B -42 B
node_modules/kdbush/src/sort.js 424 B 376 B -48 B
src/style-spec/validate/validate_paint_property.js 54 B 0 B -54 B
src/style-spec/validate/validate_layout_property.js 55 B 0 B -55 B
node_modules/gl-matrix/esm/mat4.js 2.14 kB 2.09 kB -55 B
src/util/browser/window.js 56 B 0 B -56 B
node_modules/geojson-vt/src/simplify.js 336 B 278 B -58 B
src/style-spec/validate/validate_formatted.js 61 B 0 B -61 B
src/style-spec/validate/validate_image.js 62 B 0 B -62 B
src/util/browser/web_worker.js 71 B 0 B -71 B
node_modules/@mapbox/vector-tile/lib/vectortilelayer.js 506 B 432 B -74 B
node_modules/gl-matrix/esm/mat2.js 278 B 203 B -75 B
src/data/bucket/fill_attributes.js 79 B 0 B -79 B
node_modules/earcut/src/earcut.js 2.7 kB 2.62 kB -80 B
src/style-spec/util/result.js 81 B 0 B -81 B
src/data/bucket/circle_attributes.js 83 B 0 B -83 B
src/data/pos_attributes.js 84 B 0 B -84 B
node_modules/gl-matrix/esm/mat3.js 294 B 207 B -87 B
node_modules/geojson-vt/src/convert.js 940 B 851 B -89 B
src/data/bucket/line_attributes_ext.js 92 B 0 B -92 B
src/shaders/encode_attribute.js 94 B 0 B -94 B
src/data/bucket/fill_extrusion_attributes.js 96 B 0 B -96 B
src/data/evaluation_feature.js 96 B 0 B -96 B
node_modules/tinyqueue/index.js 460 B 361 B -99 B
src/util/resolve_tokens.js 99 B 0 B -99 B
src/style/style_layer/background_style_layer_properties.js 106 B 0 B -106 B
node_modules/kdbush/src/index.js 479 B 371 B -108 B
src/ui/handler/handler_util.js 110 B 0 B -110 B
src/data/bucket/line_attributes.js 112 B 0 B -112 B
src/source/pixels_to_tile_units.js 115 B 0 B -115 B
src/style-spec/error/validation_error.js 115 B 0 B -115 B
src/style-spec/expression/runtime_error.js 119 B 0 B -119 B
src/style-spec/validate/validate_constants.js 122 B 0 B -122 B
src/style/style_image.js 122 B 0 B -122 B
src/style-spec/validate/validate_boolean.js 122 B 0 B -122 B
src/data/bucket/pattern_attributes.js 124 B 0 B -124 B
src/gl/cull_face_mode.js 125 B 0 B -125 B
src/style-spec/validate/validate_string.js 126 B 0 B -126 B
src/render/program/clipping_mask_program.js 127 B 0 B -127 B
src/style-spec/util/extend.js 127 B 0 B -127 B
src/gl/depth_mode.js 128 B 0 B -128 B
src/style/style_layer/raster_style_layer.js 130 B 0 B -130 B
src/style-spec/util/get_type.js 132 B 0 B -132 B
src/style/style_layer/heatmap_style_layer_properties.js 137 B 0 B -137 B
src/style/style_layer/background_style_layer.js 137 B 0 B -137 B
src/gl/stencil_mode.js 142 B 0 B -142 B
src/style-spec/expression/parsing_error.js 145 B 0 B -145 B
src/style-spec/validate/validate_color.js 145 B 0 B -145 B
src/style-spec/empty.js 147 B 0 B -147 B
src/style/style_layer/hillshade_style_layer_properties.js 155 B 0 B -155 B
src/style-spec/util/properties.js 157 B 0 B -157 B
src/util/offscreen_canvas_supported.js 159 B 0 B -159 B
src/style-spec/validate/validate_glyphs_url.js 161 B 0 B -161 B
src/style/validate_style.js 166 B 0 B -166 B
src/ui/handler/shim/dblclick_zoom.js 166 B 0 B -166 B
src/util/dictionary_coder.js 166 B 0 B -166 B
src/style/style_layer/raster_style_layer_properties.js 168 B 0 B -168 B
src/gl/color_mode.js 169 B 0 B -169 B
src/style-spec/util/interpolate.js 175 B 0 B -175 B
node_modules/supercluster/index.js 2.24 kB 2.06 kB -180 B
src/style-spec/util/unbundle_jsonlint.js 181 B 0 B -181 B
src/style-spec/expression/stops.js 189 B 0 B -189 B
src/style/style_layer/fill_extrusion_style_layer_properties.js 189 B 0 B -189 B
src/style/style_layer/fill_style_layer_properties.js 191 B 0 B -191 B
src/style/zoom_history.js 191 B 0 B -191 B
src/data/bucket/heatmap_bucket.js 194 B 0 B -194 B
src/ui/handler/shim/drag_rotate.js 195 B 0 B -195 B
src/util/throttle.js 199 B 0 B -199 B
src/style-spec/util/deep_equal.js 200 B 0 B -200 B
src/style/style_layer/hillshade_style_layer.js 202 B 0 B -202 B
src/style-spec/expression/types/resolved_image.js 206 B 0 B -206 B
src/symbol/transform_text.js 206 B 0 B -206 B
src/style-spec/validate/validate_enum.js 209 B 0 B -209 B
src/style-spec/expression/types/collator.js 211 B 0 B -211 B
src/ui/anchor.js 213 B 0 B -213 B
src/style-spec/validate/validate_number.js 214 B 0 B -214 B
src/style-spec/deref.js 219 B 0 B -219 B
src/style/style_layer/circle_style_layer_properties.js 221 B 0 B -221 B
src/render/program/debug_program.js 225 B 0 B -225 B
src/gl/framebuffer.js 226 B 0 B -226 B
src/util/sku_token.js 234 B 0 B -234 B
src/data/bucket.js 234 B 0 B -234 B
src/util/throttled_invoker.js 239 B 0 B -239 B
src/ui/handler/shim/drag_pan.js 241 B 0 B -241 B
src/util/smart_wrap.js 242 B 0 B -242 B
src/util/config.js 243 B 0 B -243 B
src/util/classify_rings.js 243 B 0 B -243 B
src/style-spec/expression/scope.js 246 B 0 B -246 B
src/style/load_glyph_range.js 249 B 0 B -249 B
src/style/create_style_layer.js 254 B 0 B -254 B
src/style-spec/expression/is_constant.js 259 B 0 B -259 B
src/ui/handler/click_zoom.js 260 B 0 B -260 B
src/data/load_geometry.js 263 B 0 B -263 B
src/style/query_utils.js 266 B 0 B -266 B
src/style/style_layer/line_style_layer_properties.js 273 B 0 B -273 B
src/symbol/check_max_angle.js 282 B 0 B -282 B
src/style-spec/validate/validate_light.js 288 B 0 B -288 B
src/util/vectortile_to_geojson.js 301 B 0 B -301 B
src/symbol/clip_line.js 303 B 0 B -303 B
src/style-spec/expression/definitions/image.js 307 B 0 B -307 B
src/util/task_queue.js 308 B 0 B -308 B
src/gl/index_buffer.js 310 B 0 B -310 B
src/ui/handler/shim/touch_zoom_rotate.js 311 B 0 B -311 B
src/style/format_section_override.js 316 B 0 B -316 B
src/util/color_ramp.js 316 B 0 B -316 B
src/ui/default_locale.js 317 B 0 B -317 B
src/symbol/path_interpolator.js 317 B 0 B -317 B
src/style-spec/expression/evaluation_context.js 320 B 0 B -320 B
src/source/load_tilejson.js 322 B 0 B -322 B
src/symbol/anchor.js 323 B 0 B -323 B
src/style-spec/util/color.js 324 B 0 B -324 B
src/source/tile_bounds.js 326 B 0 B -326 B
src/render/glyph_atlas.js 333 B 0 B -333 B
src/render/draw_custom.js 334 B 0 B -334 B
src/style-spec/validate_style.min.js 339 B 0 B -339 B
src/util/global_worker_pool.js 340 B 0 B -340 B
src/style/style_layer/fill_style_layer.js 343 B 0 B -343 B
src/source/source.js 346 B 0 B -346 B
src/data/bucket/pattern_bucket_features.js 347 B 0 B -347 B
src/style-spec/expression/definitions/var.js 348 B 0 B -348 B
src/style-spec/validate/validate_array.js 355 B 0 B -355 B
src/symbol/collision_feature.js 374 B 0 B -374 B
src/util/webp_supported.js 377 B 0 B -377 B
src/style/parse_glyph_pbf.js 386 B 0 B -386 B
src/style-spec/expression/definitions/length.js 386 B 0 B -386 B
src/symbol/mergelines.js 390 B 0 B -390 B
src/ui/handler/tap_zoom.js 390 B 0 B -390 B
src/util/dispatcher.js 391 B 0 B -391 B
src/geo/mercator_coordinate.js 395 B 0 B -395 B
src/style-spec/validate/validate_object.js 395 B 0 B -395 B
src/style-spec/expression/definitions/literal.js 395 B 0 B -395 B
src/style-spec/validate/validate.js 397 B 0 B -397 B
src/style-spec/group_by_layout.js 406 B 0 B -406 B
src/style/evaluation_parameters.js 407 B 0 B -407 B
src/util/worker_pool.js 411 B 0 B -411 B
src/style-spec/expression/definitions/at.js 413 B 0 B -413 B
src/style/style_layer/heatmap_style_layer.js 423 B 0 B -423 B
src/source/geojson_wrapper.js 428 B 0 B -428 B
src/style-spec/expression/types/formatted.js 438 B 0 B -438 B
src/style/load_sprite.js 442 B 0 B -442 B
src/ui/handler/touch_pan.js 442 B 0 B -442 B
src/source/raster_dem_tile_worker_source.js 447 B 0 B -447 B
src/render/uniform_binding.js 452 B 0 B -452 B
src/style-spec/validate/validate_expression.js 452 B 0 B -452 B
src/style-spec/expression/definitions/in.js 461 B 0 B -461 B
src/geo/edge_insets.js 465 B 0 B -465 B
src/render/program/circle_program.js 467 B 0 B -467 B
src/ui/handler/map_event.js 472 B 0 B -472 B
src/data/segment.js 475 B 0 B -475 B
src/style-spec/expression/definitions/coalesce.js 489 B 0 B -489 B
src/style-spec/expression/definitions/case.js 496 B 0 B -496 B
src/render/program/background_program.js 498 B 0 B -498 B
src/style-spec/expression/definitions/let.js 506 B 0 B -506 B
src/ui/events.js 510 B 0 B -510 B
src/style-spec/expression/definitions/collator.js 511 B 0 B -511 B
src/ui/handler/tap_drag_zoom.js 515 B 0 B -515 B
src/style/style_layer/custom_style_layer.js 515 B 0 B -515 B
src/util/browser.js 516 B 0 B -516 B
src/style/style_layer_index.js 518 B 0 B -518 B
src/index.js 527 B 0 B -527 B
src/style-spec/expression/values.js 527 B 0 B -527 B
src/style-spec/expression/types.js 540 B 0 B -540 B
src/style-spec/validate/validate_property.js 543 B 0 B -543 B
src/render/draw_background.js 543 B 0 B -543 B
src/gl/vertex_buffer.js 548 B 0 B -548 B
src/render/program/collision_program.js 553 B 0 B -553 B
src/data/feature_position_map.js 556 B 0 B -556 B
src/style-spec/expression/definitions/index_of.js 559 B 0 B -559 B
src/render/program/raster_program.js 563 B 0 B -563 B
src/ui/handler/tap_recognizer.js 563 B 0 B -563 B
src/style-spec/expression/definitions/slice.js 567 B 0 B -567 B
src/render/program/heatmap_program.js 573 B 0 B -573 B
src/util/verticalize_punctuation.js 581 B 0 B -581 B
src/style/style_layer/circle_style_layer.js 583 B 0 B -583 B
src/ui/handler/keyboard.js 587 B 0 B -587 B
src/symbol/get_anchors.js 592 B 0 B -592 B
src/style-spec/expression/definitions/number_format.js 600 B 0 B -600 B
src/render/draw_circle.js 603 B 0 B -603 B
src/render/program/fill_program.js 605 B 0 B -605 B
src/ui/control/logo_control.js 609 B 0 B -609 B
src/symbol/symbol_size.js 613 B 0 B -613 B
src/style/pauseable_placement.js 614 B 0 B -614 B
src/style-spec/validate/validate_source.js 618 B 0 B -618 B
src/source/source_state.js 623 B 0 B -623 B
src/style-spec/validate/validate_filter.js 623 B 0 B -623 B
src/render/program/pattern.js 623 B 0 B -623 B
src/geo/lng_lat.js 633 B 0 B -633 B
src/source/tile_cache.js 636 B 0 B -636 B
src/geo/lng_lat_bounds.js 638 B 0 B -638 B
src/style/light.js 649 B 0 B -649 B
src/style/style_layer/symbol_style_layer_properties.js 650 B 0 B -650 B
src/render/texture.js 654 B 0 B -654 B
src/ui/handler/mouse.js 658 B 0 B -658 B
src/render/vertex_array_object.js 695 B 0 B -695 B
src/style-spec/expression/definitions/assertion.js 695 B 0 B -695 B
src/util/find_pole_of_inaccessibility.js 696 B 0 B -696 B
src/render/program/fill_extrusion_program.js 702 B 0 B -702 B
src/ui/control/scale_control.js 704 B 0 B -704 B
src/util/primitives.js 708 B 0 B -708 B
src/util/struct_array.js 712 B 0 B -712 B
src/util/performance.js 745 B 0 B -745 B
src/style-spec/expression/definitions/format.js 747 B 0 B -747 B
src/util/image.js 750 B 0 B -750 B
src/style-spec/util/color_spaces.js 771 B 0 B -771 B
src/data/dem_data.js 774 B 0 B -774 B
src/data/bucket/symbol_attributes.js 775 B 0 B -775 B
src/render/program/hillshade_program.js 805 B 0 B -805 B
src/source/rtl_text_plugin.js 812 B 0 B -812 B
src/ui/handler/box_zoom.js 813 B 0 B -813 B
src/style-spec/expression/compound_expression.js 817 B 0 B -817 B
src/render/draw_fill_extrusion.js 823 B 0 B -823 B
src/style-spec/expression/definitions/coercion.js 831 B 0 B -831 B
src/source/vector_tile_worker_source.js 831 B 0 B -831 B
src/style-spec/expression/definitions/step.js 835 B 0 B -835 B
src/ui/handler_inertia.js 852 B 0 B -852 B
src/style-spec/validate/validate_layer.js 874 B 0 B -874 B
src/ui/control/fullscreen_control.js 883 B 0 B -883 B
src/util/dom.js 885 B 0 B -885 B
src/render/image_atlas.js 898 B 0 B -898 B
src/render/draw_collision_debug.js 905 B 0 B -905 B
src/util/is_char_in_unicode_block.js 916 B 0 B -916 B
src/render/glyph_manager.js 931 B 0 B -931 B
src/style/style_layer/fill_extrusion_style_layer.js 943 B 0 B -943 B
src/style-spec/expression/definitions/comparison.js 951 B 0 B -951 B
src/style/style_layer/line_style_layer.js 957 B 0 B -957 B
src/source/video_source.js 960 B 0 B -960 B
src/source/raster_dem_tile_source.js 962 B 0 B -962 B
src/source/worker.js 965 B 0 B -965 B
src/util/actor.js 968 B 0 B -968 B
src/style-spec/expression/definitions/match.js 975 B 0 B -975 B
src/util/intersection_tests.js 981 B 0 B -981 B
src/render/draw_fill.js 990 B 0 B -990 B
src/style-spec/feature_filter/index.js 1 kB 0 B -1 kB
src/util/web_worker_transfer.js 1.01 kB 0 B -1.01 kB
src/render/line_atlas.js 1.01 kB 0 B -1.01 kB
src/ui/hash.js 1.02 kB 0 B -1.02 kB
src/render/draw_raster.js 1.02 kB 0 B -1.02 kB
src/render/program/program_uniforms.js 1.02 kB 0 B -1.02 kB
src/render/draw_heatmap.js 1.02 kB 0 B -1.02 kB
src/render/draw_line.js 1.02 kB 0 B -1.02 kB
src/source/raster_tile_source.js 1.06 kB 0 B -1.06 kB
src/ui/handler/touch_zoom_rotate.js 1.09 kB 0 B -1.09 kB
src/style/style_layer/symbol_style_layer.js 1.09 kB 0 B -1.09 kB
src/render/draw_hillshade.js 1.1 kB 0 B -1.1 kB
src/source/canvas_source.js 1.1 kB 0 B -1.1 kB
src/render/draw_debug.js 1.11 kB 0 B -1.11 kB
src/render/program.js 1.13 kB 0 B -1.13 kB
src/style-spec/validate/validate_function.js 1.13 kB 0 B -1.13 kB
src/source/tile_id.js 1.14 kB 0 B -1.14 kB
src/data/bucket/circle_bucket.js 1.15 kB 0 B -1.15 kB
src/render/program/line_program.js 1.16 kB 0 B -1.16 kB
src/symbol/cross_tile_symbol_index.js 1.19 kB 0 B -1.19 kB
src/source/image_source.js 1.2 kB 0 B -1.2 kB
src/style-spec/expression/parsing_context.js 1.2 kB 0 B -1.2 kB
src/data/bucket/fill_bucket.js 1.22 kB 0 B -1.22 kB
src/util/tile_request_cache.js 1.24 kB 0 B -1.24 kB
src/gl/value.js 1.25 kB 0 B -1.25 kB
src/source/vector_tile_source.js 1.27 kB 0 B -1.27 kB
src/ui/handler/scroll_zoom.js 1.27 kB 0 B -1.27 kB
src/style/style_layer.js 1.28 kB 0 B -1.28 kB
src/gl/context.js 1.3 kB 0 B -1.3 kB
src/source/query_features.js 1.32 kB 0 B -1.32 kB
src/ui/control/attribution_control.js 1.33 kB 0 B -1.33 kB
src/render/program/symbol_program.js 1.34 kB 0 B -1.34 kB
src/style-spec/expression/definitions/interpolate.js 1.36 kB 0 B -1.36 kB
src/data/bucket/fill_extrusion_bucket.js 1.41 kB 0 B -1.41 kB
src/style-spec/function/index.js 1.42 kB 0 B -1.42 kB
src/source/worker_tile.js 1.44 kB 0 B -1.44 kB
src/source/geojson_source.js 1.48 kB 0 B -1.48 kB
src/symbol/grid_index.js 1.5 kB 0 B -1.5 kB
src/style-spec/diff.js 1.53 kB 0 B -1.53 kB
src/render/image_manager.js 1.55 kB 0 B -1.55 kB
src/style-spec/expression/definitions/within.js 1.69 kB 0 B -1.69 kB
src/style-spec/expression/definitions/index.js 1.69 kB 0 B -1.69 kB
src/ui/control/navigation_control.js 1.72 kB 0 B -1.72 kB
src/style-spec/expression/index.js 1.76 kB 0 B -1.76 kB
src/source/geojson_worker_source.js 1.77 kB 0 B -1.77 kB
src/symbol/collision_index.js 1.78 kB 0 B -1.78 kB
src/data/feature_index.js 1.81 kB 0 B -1.81 kB
src/util/script_detection.js 1.82 kB 0 B -1.82 kB
src/symbol/projection.js 1.85 kB 0 B -1.85 kB
src/ui/popup.js 1.87 kB 0 B -1.87 kB
src/symbol/quads.js 2.04 kB 0 B -2.04 kB
src/source/tile.js 2.05 kB 0 B -2.05 kB
src/style/properties.js 2.09 kB 0 B -2.09 kB
src/ui/control/geolocate_control.js 2.3 kB 0 B -2.3 kB
src/util/util.js 2.47 kB 0 B -2.47 kB
src/render/draw_symbol.js 2.52 kB 0 B -2.52 kB
src/data/bucket/line_bucket.js 2.54 kB 0 B -2.54 kB
src/ui/handler_manager.js 2.59 kB 0 B -2.59 kB
src/util/ajax.js 2.75 kB 0 B -2.75 kB
src/data/array_types.js 2.75 kB 0 B -2.75 kB
src/data/program_configuration.js 2.77 kB 0 B -2.77 kB
src/ui/marker.js 2.83 kB 0 B -2.83 kB
src/util/mapbox.js 3.06 kB 0 B -3.06 kB
src/ui/camera.js 3.15 kB 0 B -3.15 kB
src/render/painter.js 3.47 kB 0 B -3.47 kB
src/geo/transform.js 3.7 kB 0 B -3.7 kB
src/symbol/shaping.js 3.91 kB 0 B -3.91 kB
src/util/evented.js 3.95 kB 0 B -3.95 kB
src/source/source_cache.js 4.04 kB 0 B -4.04 kB
src/data/bucket/symbol_bucket.js 4.57 kB 0 B -4.57 kB
src/symbol/symbol_layout.js 4.6 kB 0 B -4.6 kB
src/symbol/placement.js 4.84 kB 0 B -4.84 kB
src/ui/map.js 6.29 kB 0 B -6.29 kB
src/style/style.js 7.09 kB 0 B -7.09 kB
src/shaders/shaders.js 7.53 kB 0 B -7.53 kB

@HarelM
Copy link
Collaborator Author

HarelM commented Jul 14, 2021

@folke any chance to recruit you back to this?
I've looked at the fork and did some testing on my dev env.
When I tried to transplie I got around 1.2K errors. was that where you left off?
While I don't mind fixing them (most of them are pretty easy to fix) I just wanted to know that this is what you saw as well.

As a side note, there's a need also to convert the test folder and the tests themselves, which will be interesting (and a lot of work)...

@HarelM
Copy link
Collaborator Author

HarelM commented Jul 16, 2021

Initial check-in.
40 lint issues.
1434 typescript issues.
I'll update the initial comment with the steps I'm planning to take according to priority.
Anyone that would like join in, feel free. :-)

@wipfli
Copy link
Contributor

wipfli commented Jul 17, 2021

So how do I get started? Running the following produces an error:

yarn install
yarn lint
...
Error: Failed to load plugin 'html' declared in 'debug/.eslintrc': eslint-plugin-html error: It seems that eslint is not loaded.

@HarelM
Copy link
Collaborator Author

HarelM commented Jul 17, 2021

Currently I'm not using yarn. See the linked issue, there's a comment about a fork that has some of the information how to run stuff.
I'll write more when in front of my PC.
I'm also thinking of removing yarn, not sure I understand its value...

@wipfli
Copy link
Contributor

wipfli commented Jul 17, 2021

So now we are down to 30 lint errors?

npm run lint
...
✖ 30 problems (30 errors, 0 warnings)

@HarelM
Copy link
Collaborator Author

HarelM commented Jul 17, 2021

@wipfli I've committed package json. lint should run the lint only for the src folder, added build-tsc to allow fixing stuff in typescript compilation.
Let me know if, when and to what extent you are helping so we won't step on each-other toes...

Copy link
Contributor

@wipfli wipfli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not forget to remove cf52cc9 once we are done.

Copy link
Contributor

@wipfli wipfli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was b5035a3 done with an automatic tool?

@HarelM
Copy link
Collaborator Author

HarelM commented Jul 17, 2021

Yes. flowts was used in order to do the initial conversion.

@HarelM
Copy link
Collaborator Author

HarelM commented Jul 17, 2021

Let's not forget to remove cf52cc9 once we are done.

I think I did in recent commits.

package.json Outdated Show resolved Hide resolved
@HarelM
Copy link
Collaborator Author

HarelM commented Jul 17, 2021

OK, I have now incorporated all the relevant changes from the following fork:
main...folke:main
@folke thanks for setting this up!
Still a long way to go :-)

@wipfli
Copy link
Contributor

wipfli commented Jul 17, 2021

5f29228 seems to be a mix of manual changes to package.json and .eslintrc plus some automated re-linting of what flowts did. I suggest to group manual step in one commit and automated steps in a second commit.

@HarelM
Copy link
Collaborator Author

HarelM commented Jul 17, 2021

I'm not sure it's worth the re-work. the changes there are mainly to make lint work and then run it. I agree this could've been handled better, but I'm not very good with git history re-writing, if you feel strongly about it, feel free.

@wipfli
Copy link
Contributor

wipfli commented Jul 17, 2021

Let's not forget to remove cf52cc9 once we are done.

I think I did in recent commits.

It is removed in 5f29228. I would suggest to remove cf52cc9 in the first place.

@wipfli
Copy link
Contributor

wipfli commented Jul 17, 2021

I'm not sure it's worth the re-work. the changes there are mainly to make lint work and then run it. I agree this could've been handled better, but I'm not very good with git history re-writing, if you feel strongly about it, feel free.

I agree that the rework will be quite some effort and I am happy to help here out. We have to keep in mind that this pull request will modify almost all files in this repo which means reviewing it will be tough.

@wipfli
Copy link
Contributor

wipfli commented Jul 17, 2021

I regrouped the changes into manual and automatic steps here: https://github.com/wipfli/maplibre-gl-js/tree/typescript

Instead of rewriting the history I did some cherry-picking :) My branch and this one here are identical up to yarn.lock. Should we actually delete this file?

@HarelM
Copy link
Collaborator Author

HarelM commented Jul 17, 2021

I think we should delete yarn.lock and add package-lock.json to start migrating out of yarn.
Let me know how you want to proceed...

@wipfli
Copy link
Contributor

wipfli commented Jul 17, 2021

Yes let's commit package-lock.json and remove yarn.lock. I will make a pull request for this.

@wipfli
Copy link
Contributor

wipfli commented Aug 31, 2021

I am re-running CI manually because it has failed for no good reason in #285.

drwestco and others added 6 commits August 31, 2021 17:50
@HarelM HarelM merged commit e78ad79 into main Sep 3, 2021
@HarelM HarelM deleted the typescript branch September 3, 2021 05:29
@HarelM
Copy link
Collaborator Author

HarelM commented Sep 3, 2021

BOOM!

@HarelM HarelM restored the typescript branch September 3, 2021 06:22
@HarelM HarelM deleted the typescript branch September 3, 2021 07:21
wipfli referenced this pull request in wipfli/maplibre-gl-js Sep 9, 2021
* Update README.md

* Initial commit - only rename and flow to typescript conversion

* Iint upgrade

* More lint fixes

* Updated lint command, added build typescript command

* Add non typed modules according to ts fork.

* Switch from yarn to npm

* Fix hasOwnProperty lint errors
See https://eslint.org/docs/rules/no-prototype-builtins
* I used this command for the conversions:
* sed -i -E "s/([\(\!])([]/[a-zA-Z_.-]*).hasOwnProperty\(/
\1Object.prototype.hasOwnProperty.call(\2, /g" <file-name>

* Fix extension from .js to .ts

* Remove types file

* Ignore lint errors

* Remove .ts extension in import

* Update CI from node v10 to v14

* Replace yarn with npm

* Remove circleci

* Fixed some typings errors

* Explicitly convert matrix-gl types

* Automatically fix lint errors

* Avoid Function as callback type

* Add missing MapOptions

* Add pitchWithRotate to MapOptions and pass explicit options to HandlerManager and Camera

* Set type of MapOptions.style to StyleSpecification of string

* Make Camera an abstract class

* Use Float32Array instead of Float64Array and cast types

* Make object dynamically extendable
See https://stackoverflow.com/questions/12710905/how-do-i-dynamically-assign-properties-to-an-object-in-typescript

* Make more objects dynamically extenable

* Explicit cast of array to length 2

* Do not provide type any in for..in loop

* Make more objects dynamically extenable

* Cast layout.get return value to Number

* Cast number | void to number

* Specify Rect type

* Make thhird argument of getKey optional

* Cast number | void to number

* Define return type of parse() in subclasses of Expression

* Cast return type of context.error() from void to null

* Cast style-spec types to Type

* Cast return type of context.error() from void to null

* Cast style-spec types to Type

* Cast dict to StylePropertySpecification

* Specify array type as any to fix string[] inference

* Make third argument of coalesce() optional

* Explicit casts to Evaluate, Varargs, and Signature

* Revert "Cast style-spec types to Type"

This reverts commit 4af74a6.

* Revert "Cast style-spec types to Type"

This reverts commit efc4b1f.

* Cast style-spec types at their source

* Typescript: Remove @mapbox/geojson-types and replace with @types/GeoJSON' (#221)

* remove @mapbox/geojson-types and replace with @types/GeoJSON

* update toJSON using spread operator

* add type to import GLSL as strings (#222)

* Typescript: Use library to handle Window type (#223)

* add window type lib

* remove internal window type file and use lib

* Fix issues related to possibly evaluated design

* Move IControl interface to a new class, Fix timeoutID type.

* remove flow-typed folder (#225)

* Typescript: Remove reference to @mapbox/point-geometry TBC (#226)

* Remove reference to @mapbox/point-geometry and replace with local point module with types
Remove commented out types
Fix cannot find type Point errors
Add static to fix convert does not exist on typeof Point errors

* Remove @mapbox/point-geometry from packkage.json

* Fix lint

* Typescript: fix lint and update .eslintrc with alternate TS rule (#227)

* fix lint and .eslintrc with alternate TS rule

* remove comment

* Typescript: a number of minor fixes from WIP branch (#228)

* fix minor ID type issues

* minor casting fix non bool to bool

* fix thrown Error message issue

* fix a couple of import issues

* match date comparison types

* remove commented out code

* fixes from WIP branch

* remove redundant import for lint

* more fixes

* Fix small typings issues

* More typescript fixes

* More fixes to typings, lint fixes

* Change base calls to be abstract

* More type fixes

* More types fixes

* More types fixes

* update use of mat4 (#219)

updating types as gl-matrix
more types to gl-matrix
cleanup cast vs constructor
cleanup more gl-matrix types
more using gl-matrix instead of Float32Array
fixes from WIP squashed into one commit
minor cleanup and comments

* Added some "as any" to places in the code where the typing were not just right and the method are proplemeatic...

* More types fixing, not perfect but good enough.

* Fix last typescript errors

* Fix incorrect typings and code errors.

* Remove flow from rollup and add tsc to build

* Format file

* Fix rollup build

* Initial commit to make the render test run

* Remove unneeded window import from all files

* Remove version from API

* More mock fixes to be able to run tests

* fix running of test-expression (#232)

* Add build phase before running some of the tests

* Fix tests get stuck, still tests are failing...

* get node query tests running (#233)

* Fix mocking of case of tilejson implementation.

* Typescript: Fix unit-tests (#235)

* Move all referneces in unit test to use the build output

* Fixes to window related stuff in unit tests, fixes to unneeded requires.

* Fix to dem data test

* Fix tests - remove window restore, fix __dirname.

* Fix stub_loader due to function this usage.

* Fix more tests

* Fix tests and code that causes tests to fail.

* Fix usage of ajax.js by subbing it correctly

* Added missing window element to tests

* removing window in 2 places gains 1601 passing (#236)

* Adding missing windows to tests

* Fix tests, revert some changes from typescript migration

* More fixes related to removal of window

* remove warnings, fix attribution test

* Fix more tests

* Fix more tests

* Added missing stubs

* Fixed tests related to version removal

* More test fixes related to file path

* Typescript: unit tests Frustum issues (#238)

* fix minor file errors in stub_loader.js

* matrix tests pass but not sure the tests represent actual usage

* Fix primitive tests with minimal usage of "bad" types

* Minor fixes to reduce incorrect typings

* Fix image load for image source and style tests

* Fix tests, added missing stub_loader

* Fix uuid incorrect implemetation

* Fix ajax tests. imporved image mock

* Fix camera tests

* Revert changes related to incorrect typescript solution

Co-authored-by: James Hamilton <[email protected]>

* Incorrect invocation of build-dev...

* Fix lint errors

* Removed test flow

* Fix build csp, started to fix style build

* Fix css build

* Remove to vec3 as to code review requirements

* Remove flow from build in ci

* Remove references to @mapbox/point-geometry

* Allow building style-spec

* Fix build tests

* Remove window, fix missing references to FeatureIndex using typescript config, update rollup dependencies

* Fix lint

* Fix production build

* Remove buble, stop compiling for es5

* Added missing global definitions after removing window

* Fix tests, bring back web_worker mock file, fix maplibre-gl loading issue, revert tsconfig.

* Fix build?

* Fix lint

* Typescript: Fix query-tests (#240)

* Initial commit to fix query-tests

* Fix query tests

* Fix some lint issues

* Typescript: minor fixes to formatting (#241)

* minor fixes

* fix formatting of object key value types

* Remove unneeded comments

* Fix according to code review

* Remove undefined as any

* Fix according to code review requirements.

* Fix lint

* More lint cover and fixes

* Fix lint for windows, update versions.

* Fix browser tests due to incorrect lint fix

* Fix lint for land.html

* Fix minimal node version to 14

* Typescript: merge from main (#243)

* Highlight backport rules

* Add backport rules

* Add backport rules

* Use organization secret NPM_ORG_TOKEN (#231)

* Fix link in README and CONTRIBUTING. Fix typo in README. (#237)

* one yarn forgotten (#242)

Co-authored-by: Marcel Normann <[email protected]>
Co-authored-by: Oliver Wipfli <[email protected]>
Co-authored-by: tunnelpuzzle <[email protected]>

* Update Life of a tile docs (#247)

* rename .js to .ts in doc/life-of-a-tile.md

* Update Developer Doc - Life of a tile (#245)

* life of a tile

* correction

* Update package.json (#248)

* rename .js to .ts in doc/life-of-a-tile.md

* life of a tile

* correction

* package.json

* some updates from review (#252)

* Fix WritingMode cast (#254)

* Run CI on all pull requests (#255)

* Remove redundant parentheses (#257)

* Remove (minify = false)

* Review cleanup (#259)

* Remove redundant parentheses

* Remove eslint typescript exceptions

* Remove flow comments

* Remove `Number()` casts

* Remove parentheses

* Remove commented lint plugin

* Remove `HM TODO` comments

* Remove TODO, Fix according to code review changes

* Remove last TODOs.

* Updated changelog

* Change publish style spec to reflect latest changes in typescript

* Fix code review comments

* Declare `emplace()` with variable number of arguments (#262)

* Fix comment of generated files

* Fix according to code review

* remove comment and update type in jsdoc (#269)

* Copy dist folder with `cp -r` (#274)

* Fix typo

* Fix last comments about generated files.

* Fix typos in comments (#283)

* Remove polyfill support for IE11 (#284)

* Use native endsWith function

* Use native Object.values function

* Use native Number.MAX_SAFE_INTEGER value

* Fix typos, remove unused functions

The functions are already defined in `src/util/mapbox.ts`

* Enforce semicolons as member delimters (#282)

* eslint - enforce single quotes (#285)

Turn on @typescript-eslint/quotes rule to standardize on single quotes for all strings.

* move point.ts from symbol/ to util/ (#287)

* move point.ts from symbol/ to util/

* Remove empty line

* Remove undefined as any casts (#292)

Unnecessary casts for 'undefined' or 'null' as 'any'.

* Remove feature detection for {passive: false} support (#291)

* Changed version in package.json before merge

* Remove the usage of devicePixelRatio as a getter from browser.ts (#294)

Co-authored-by: Oliver Wipfli <[email protected]>
Co-authored-by: James Hamilton <[email protected]>
Co-authored-by: Astrid <[email protected]>
Co-authored-by: Marcel Normann <[email protected]>
Co-authored-by: tunnelpuzzle <[email protected]>
Co-authored-by: Frédéric Junod <[email protected]>
Co-authored-by: Derek Westcott <[email protected]>
@wipfli wipfli restored the typescript branch September 22, 2021 14:30
@wipfli
Copy link
Contributor

wipfli commented Sep 22, 2021

I restored the typescript branch for easier bisection with respect to #326.

@wipfli wipfli deleted the typescript branch September 25, 2021 12:39
@wipfli wipfli mentioned this pull request Oct 9, 2021
acalcutt referenced this pull request in acalcutt/maplibre-gl-js Dec 3, 2021
* Update README.md

* Initial commit - only rename and flow to typescript conversion

* Iint upgrade

* More lint fixes

* Updated lint command, added build typescript command

* Add non typed modules according to ts fork.

* Switch from yarn to npm

* Fix hasOwnProperty lint errors
See https://eslint.org/docs/rules/no-prototype-builtins
* I used this command for the conversions:
* sed -i -E "s/([\(\!])([]/[a-zA-Z_.-]*).hasOwnProperty\(/
\1Object.prototype.hasOwnProperty.call(\2, /g" <file-name>

* Fix extension from .js to .ts

* Remove types file

* Ignore lint errors

* Remove .ts extension in import

* Update CI from node v10 to v14

* Replace yarn with npm

* Remove circleci

* Fixed some typings errors

* Explicitly convert matrix-gl types

* Automatically fix lint errors

* Avoid Function as callback type

* Add missing MapOptions

* Add pitchWithRotate to MapOptions and pass explicit options to HandlerManager and Camera

* Set type of MapOptions.style to StyleSpecification of string

* Make Camera an abstract class

* Use Float32Array instead of Float64Array and cast types

* Make object dynamically extendable
See https://stackoverflow.com/questions/12710905/how-do-i-dynamically-assign-properties-to-an-object-in-typescript

* Make more objects dynamically extenable

* Explicit cast of array to length 2

* Do not provide type any in for..in loop

* Make more objects dynamically extenable

* Cast layout.get return value to Number

* Cast number | void to number

* Specify Rect type

* Make thhird argument of getKey optional

* Cast number | void to number

* Define return type of parse() in subclasses of Expression

* Cast return type of context.error() from void to null

* Cast style-spec types to Type

* Cast return type of context.error() from void to null

* Cast style-spec types to Type

* Cast dict to StylePropertySpecification

* Specify array type as any to fix string[] inference

* Make third argument of coalesce() optional

* Explicit casts to Evaluate, Varargs, and Signature

* Revert "Cast style-spec types to Type"

This reverts commit 4af74a6.

* Revert "Cast style-spec types to Type"

This reverts commit efc4b1f.

* Cast style-spec types at their source

* Typescript: Remove @mapbox/geojson-types and replace with @types/GeoJSON' (#221)

* remove @mapbox/geojson-types and replace with @types/GeoJSON

* update toJSON using spread operator

* add type to import GLSL as strings (#222)

* Typescript: Use library to handle Window type (#223)

* add window type lib

* remove internal window type file and use lib

* Fix issues related to possibly evaluated design

* Move IControl interface to a new class, Fix timeoutID type.

* remove flow-typed folder (#225)

* Typescript: Remove reference to @mapbox/point-geometry TBC (#226)

* Remove reference to @mapbox/point-geometry and replace with local point module with types
Remove commented out types
Fix cannot find type Point errors
Add static to fix convert does not exist on typeof Point errors

* Remove @mapbox/point-geometry from packkage.json

* Fix lint

* Typescript: fix lint and update .eslintrc with alternate TS rule (#227)

* fix lint and .eslintrc with alternate TS rule

* remove comment

* Typescript: a number of minor fixes from WIP branch (#228)

* fix minor ID type issues

* minor casting fix non bool to bool

* fix thrown Error message issue

* fix a couple of import issues

* match date comparison types

* remove commented out code

* fixes from WIP branch

* remove redundant import for lint

* more fixes

* Fix small typings issues

* More typescript fixes

* More fixes to typings, lint fixes

* Change base calls to be abstract

* More type fixes

* More types fixes

* More types fixes

* update use of mat4 (#219)

updating types as gl-matrix
more types to gl-matrix
cleanup cast vs constructor
cleanup more gl-matrix types
more using gl-matrix instead of Float32Array
fixes from WIP squashed into one commit
minor cleanup and comments

* Added some "as any" to places in the code where the typing were not just right and the method are proplemeatic...

* More types fixing, not perfect but good enough.

* Fix last typescript errors

* Fix incorrect typings and code errors.

* Remove flow from rollup and add tsc to build

* Format file

* Fix rollup build

* Initial commit to make the render test run

* Remove unneeded window import from all files

* Remove version from API

* More mock fixes to be able to run tests

* fix running of test-expression (#232)

* Add build phase before running some of the tests

* Fix tests get stuck, still tests are failing...

* get node query tests running (#233)

* Fix mocking of case of tilejson implementation.

* Typescript: Fix unit-tests (#235)

* Move all referneces in unit test to use the build output

* Fixes to window related stuff in unit tests, fixes to unneeded requires.

* Fix to dem data test

* Fix tests - remove window restore, fix __dirname.

* Fix stub_loader due to function this usage.

* Fix more tests

* Fix tests and code that causes tests to fail.

* Fix usage of ajax.js by subbing it correctly

* Added missing window element to tests

* removing window in 2 places gains 1601 passing (#236)

* Adding missing windows to tests

* Fix tests, revert some changes from typescript migration

* More fixes related to removal of window

* remove warnings, fix attribution test

* Fix more tests

* Fix more tests

* Added missing stubs

* Fixed tests related to version removal

* More test fixes related to file path

* Typescript: unit tests Frustum issues (#238)

* fix minor file errors in stub_loader.js

* matrix tests pass but not sure the tests represent actual usage

* Fix primitive tests with minimal usage of "bad" types

* Minor fixes to reduce incorrect typings

* Fix image load for image source and style tests

* Fix tests, added missing stub_loader

* Fix uuid incorrect implemetation

* Fix ajax tests. imporved image mock

* Fix camera tests

* Revert changes related to incorrect typescript solution

Co-authored-by: James Hamilton <[email protected]>

* Incorrect invocation of build-dev...

* Fix lint errors

* Removed test flow

* Fix build csp, started to fix style build

* Fix css build

* Remove to vec3 as to code review requirements

* Remove flow from build in ci

* Remove references to @mapbox/point-geometry

* Allow building style-spec

* Fix build tests

* Remove window, fix missing references to FeatureIndex using typescript config, update rollup dependencies

* Fix lint

* Fix production build

* Remove buble, stop compiling for es5

* Added missing global definitions after removing window

* Fix tests, bring back web_worker mock file, fix maplibre-gl loading issue, revert tsconfig.

* Fix build?

* Fix lint

* Typescript: Fix query-tests (#240)

* Initial commit to fix query-tests

* Fix query tests

* Fix some lint issues

* Typescript: minor fixes to formatting (#241)

* minor fixes

* fix formatting of object key value types

* Remove unneeded comments

* Fix according to code review

* Remove undefined as any

* Fix according to code review requirements.

* Fix lint

* More lint cover and fixes

* Fix lint for windows, update versions.

* Fix browser tests due to incorrect lint fix

* Fix lint for land.html

* Fix minimal node version to 14

* Typescript: merge from main (#243)

* Highlight backport rules

* Add backport rules

* Add backport rules

* Use organization secret NPM_ORG_TOKEN (#231)

* Fix link in README and CONTRIBUTING. Fix typo in README. (#237)

* one yarn forgotten (#242)

Co-authored-by: Marcel Normann <[email protected]>
Co-authored-by: Oliver Wipfli <[email protected]>
Co-authored-by: tunnelpuzzle <[email protected]>

* Update Life of a tile docs (#247)

* rename .js to .ts in doc/life-of-a-tile.md

* Update Developer Doc - Life of a tile (#245)

* life of a tile

* correction

* Update package.json (#248)

* rename .js to .ts in doc/life-of-a-tile.md

* life of a tile

* correction

* package.json

* some updates from review (#252)

* Fix WritingMode cast (#254)

* Run CI on all pull requests (#255)

* Remove redundant parentheses (#257)

* Remove (minify = false)

* Review cleanup (#259)

* Remove redundant parentheses

* Remove eslint typescript exceptions

* Remove flow comments

* Remove `Number()` casts

* Remove parentheses

* Remove commented lint plugin

* Remove `HM TODO` comments

* Remove TODO, Fix according to code review changes

* Remove last TODOs.

* Updated changelog

* Change publish style spec to reflect latest changes in typescript

* Fix code review comments

* Declare `emplace()` with variable number of arguments (#262)

* Fix comment of generated files

* Fix according to code review

* remove comment and update type in jsdoc (#269)

* Copy dist folder with `cp -r` (#274)

* Fix typo

* Fix last comments about generated files.

* Fix typos in comments (#283)

* Remove polyfill support for IE11 (#284)

* Use native endsWith function

* Use native Object.values function

* Use native Number.MAX_SAFE_INTEGER value

* Fix typos, remove unused functions

The functions are already defined in `src/util/mapbox.ts`

* Enforce semicolons as member delimters (#282)

* eslint - enforce single quotes (#285)

Turn on @typescript-eslint/quotes rule to standardize on single quotes for all strings.

* move point.ts from symbol/ to util/ (#287)

* move point.ts from symbol/ to util/

* Remove empty line

* Remove undefined as any casts (#292)

Unnecessary casts for 'undefined' or 'null' as 'any'.

* Remove feature detection for {passive: false} support (#291)

* Changed version in package.json before merge

* Remove the usage of devicePixelRatio as a getter from browser.ts (#294)

Co-authored-by: Oliver Wipfli <[email protected]>
Co-authored-by: James Hamilton <[email protected]>
Co-authored-by: Astrid <[email protected]>
Co-authored-by: Marcel Normann <[email protected]>
Co-authored-by: tunnelpuzzle <[email protected]>
Co-authored-by: Frédéric Junod <[email protected]>
Co-authored-by: Derek Westcott <[email protected]>
This was referenced Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.