maplibre-gl 2.3.0 → 2.3.1-pre.1

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.
Files changed (63) hide show
  1. package/build/generate-struct-arrays.ts +0 -2
  2. package/build/generate-style-spec.ts +2 -3
  3. package/build/rollup_plugins.ts +0 -4
  4. package/dist/maplibre-gl-csp-worker.js +1 -1
  5. package/dist/maplibre-gl-csp.js +1 -1
  6. package/dist/maplibre-gl-dev.js +109 -1350
  7. package/dist/maplibre-gl.d.ts +0 -2
  8. package/dist/maplibre-gl.js +4 -4
  9. package/dist/style-spec/index.d.ts +0 -2
  10. package/package.json +9 -11
  11. package/src/data/array_types.g.ts +0 -5
  12. package/src/data/bucket/fill_bucket.ts +0 -2
  13. package/src/data/bucket/fill_extrusion_bucket.ts +0 -2
  14. package/src/data/feature_position_map.ts +1 -2
  15. package/src/gl/framebuffer.ts +3 -2
  16. package/src/gl/index_buffer.ts +1 -2
  17. package/src/gl/vertex_buffer.ts +1 -2
  18. package/src/index.ts +1 -3
  19. package/src/render/image_manager.ts +5 -7
  20. package/src/render/program/pattern.ts +0 -2
  21. package/src/render/program.ts +0 -4
  22. package/src/render/vertex_array_object.ts +1 -3
  23. package/src/source/geojson_worker_source.ts +0 -4
  24. package/src/source/query_features.ts +0 -3
  25. package/src/source/rtl_text_plugin.ts +3 -4
  26. package/src/source/source_cache.ts +0 -2
  27. package/src/source/tile_id.ts +8 -8
  28. package/src/source/worker.ts +0 -7
  29. package/src/source/worker_tile.ts +3 -2
  30. package/src/style/format_section_override.ts +1 -2
  31. package/src/style/properties.ts +1 -3
  32. package/src/style/style.ts +5 -5
  33. package/src/style/style_layer/custom_style_layer.ts +1 -2
  34. package/src/style/style_layer/symbol_style_layer.ts +1 -3
  35. package/src/style-spec/expression/compound_expression.ts +0 -4
  36. package/src/style-spec/expression/definitions/assertion.ts +2 -4
  37. package/src/style-spec/expression/definitions/case.ts +1 -2
  38. package/src/style-spec/expression/definitions/coalesce.ts +1 -3
  39. package/src/style-spec/expression/definitions/coercion.ts +2 -4
  40. package/src/style-spec/expression/definitions/match.ts +0 -3
  41. package/src/style-spec/expression/index.ts +0 -2
  42. package/src/style-spec/expression/values.ts +0 -2
  43. package/src/style-spec/feature_filter/feature_filter.test.ts +7 -0
  44. package/src/style-spec/function/convert.ts +1 -3
  45. package/src/style-spec/types.g.ts +2 -3
  46. package/src/symbol/collision_index.ts +0 -3
  47. package/src/symbol/path_interpolator.ts +0 -2
  48. package/src/symbol/placement.ts +14 -9
  49. package/src/symbol/shaping.ts +0 -4
  50. package/src/ui/camera.ts +0 -10
  51. package/src/ui/control/geolocate_control.ts +4 -6
  52. package/src/ui/handler/handler_util.ts +1 -2
  53. package/src/ui/handler/scroll_zoom.ts +0 -2
  54. package/src/ui/handler_manager.ts +0 -2
  55. package/src/util/ajax.ts +1 -2
  56. package/src/util/color_ramp.ts +1 -2
  57. package/src/util/dictionary_coder.ts +1 -3
  58. package/src/util/dispatcher.ts +1 -4
  59. package/src/util/dom.ts +0 -3
  60. package/src/util/image.ts +1 -3
  61. package/src/util/struct_array.ts +0 -5
  62. package/src/util/task_queue.ts +1 -3
  63. package/src/util/web_worker_transfer.ts +5 -6
@@ -409,7 +409,6 @@ export class ${structArrayClass} extends ${structArrayLayoutClass} {`);
409
409
  * @private
410
410
  */
411
411
  get(index: number): ${structTypeClass} {
412
- assert(!this.isTransferred);
413
412
  return new ${structTypeClass}(this, index);
414
413
  }`);
415
414
  }
@@ -425,7 +424,6 @@ register('${structArrayClass}', ${structArrayClass});
425
424
  fs.writeFileSync('src/data/array_types.g.ts',
426
425
  `// This file is generated. Edit build/generate-struct-arrays.ts, then run \`npm run codegen\`.
427
426
 
428
- import assert from 'assert';
429
427
  import {Struct, StructArray} from '../util/struct_array';
430
428
  import {register} from '../util/web_worker_transfer';
431
429
  import Point from '@mapbox/point-geometry';
@@ -141,7 +141,7 @@ export type InterpolationSpecification =
141
141
  | ['linear']
142
142
  | ['exponential', number | ExpressionSpecification]
143
143
  | ['cubic-bezier', number | ExpressionSpecification, number | ExpressionSpecification, number | ExpressionSpecification, number | ExpressionSpecification]
144
-
144
+
145
145
  export type ExpressionSpecification =
146
146
  // types
147
147
  | ['array', unknown | ExpressionSpecification] // array
@@ -196,8 +196,7 @@ export type ExpressionSpecification =
196
196
  | ['within', unknown | ExpressionSpecification]
197
197
  // Ramps, scales, curves
198
198
  | ['interpolate', InterpolationSpecification,
199
- number | ExpressionSpecification, number | ExpressionSpecification, ExpressionInputType | ExpressionSpecification,
200
- ...(number | ExpressionInputType | ExpressionSpecification)[]]
199
+ number | ExpressionSpecification, ...(number | ExpressionInputType | ExpressionSpecification)[]]
201
200
  | ['interpolate-hcl', InterpolationSpecification,
202
201
  number | ExpressionSpecification, number | ExpressionSpecification, ExpressionInputType | ExpressionSpecification,
203
202
  ...(number | ColorSpecification | ExpressionSpecification)[]]
@@ -3,7 +3,6 @@ import typescript from '@rollup/plugin-typescript';
3
3
  import resolve from '@rollup/plugin-node-resolve';
4
4
  import replace from '@rollup/plugin-replace';
5
5
  import commonjs from '@rollup/plugin-commonjs';
6
- import unassert from 'unassert-rollup-plugin';
7
6
  import json from '@rollup/plugin-json';
8
7
  import {terser} from 'rollup-plugin-terser';
9
8
  import minifyStyleSpec from './rollup_plugin_minify_style_spec';
@@ -43,9 +42,6 @@ export const plugins = (production: boolean): Plugin[] => [
43
42
  passes: 3
44
43
  }
45
44
  }),
46
- production && unassert({
47
- include: ['**/*'], // by default, unassert only includes .js files
48
- }),
49
45
  nodeResolve,
50
46
  typescript(),
51
47
  commonjs({