From 4fd646c909cb383b8be064ba7961b18afe4e7ea9 Mon Sep 17 00:00:00 2001 From: Lauren Budorick Date: Thu, 10 May 2018 13:44:31 -0700 Subject: [PATCH] Bump geojson-vt to fix #6649 --- package.json | 2 +- .../mapbox-gl-js#6649/expected.png | Bin 0 -> 169 bytes .../regressions/mapbox-gl-js#6649/style.json | 52 ++++++++++++++++++ yarn.lock | 6 +- 4 files changed, 56 insertions(+), 4 deletions(-) create mode 100644 test/integration/render-tests/regressions/mapbox-gl-js#6649/expected.png create mode 100644 test/integration/render-tests/regressions/mapbox-gl-js#6649/style.json diff --git a/package.json b/package.json index f1e6806d3ad..a0cde6fcf49 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "csscolorparser": "~1.0.2", "earcut": "^2.1.3", "geojson-rewind": "^0.3.0", - "geojson-vt": "^3.1.0", + "geojson-vt": "^3.1.2", "gray-matter": "^3.0.8", "grid-index": "^1.0.0", "minimist": "0.0.8", diff --git a/test/integration/render-tests/regressions/mapbox-gl-js#6649/expected.png b/test/integration/render-tests/regressions/mapbox-gl-js#6649/expected.png new file mode 100644 index 0000000000000000000000000000000000000000..599d18ba610879d332e2a91de8e3c426f0021e41 GIT binary patch literal 169 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=Or9=|Ar*{or0OmKc}XDN+k=LJ z2MidF7|a)J_tX$~-d*y+`wSFFi(CA8&oI4T#qSYGC?yR7vgEownH+B~sqO>X#^CAd K=d#Wzp$P!-4m{@o literal 0 HcmV?d00001 diff --git a/test/integration/render-tests/regressions/mapbox-gl-js#6649/style.json b/test/integration/render-tests/regressions/mapbox-gl-js#6649/style.json new file mode 100644 index 00000000000..1990f799d83 --- /dev/null +++ b/test/integration/render-tests/regressions/mapbox-gl-js#6649/style.json @@ -0,0 +1,52 @@ +{ + "version": 8, + "metadata": { + "test": { + "width": 64, + "height": 64 + } + }, + "zoom": 2, + "sources": { + "geojson": { + "type": "geojson", + "data": { + "type": "Feature", + "properties": {}, + "geometry": { + "type": "MultiLineString", + "coordinates": [ + [ + [ + -3, + -3 + ], + [ + -3, + 3 + ] + ], + [ + [ + 3, + -3 + ], + [ + 3, + 3 + ] + ] + ] + } + }, + "lineMetrics": true + } + }, + "layers": [ + { + "id": "id", + "type": "line", + "source": "geojson" + } + ] +} diff --git a/yarn.lock b/yarn.lock index 7b63206fac5..2aff0a10ef3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4373,9 +4373,9 @@ geojson-rewind@^0.3.0: concat-stream "~1.6.0" minimist "1.2.0" -geojson-vt@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/geojson-vt/-/geojson-vt-3.1.0.tgz#37b63d9ab7fafc9861dacc9aef20022df135074a" +geojson-vt@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/geojson-vt/-/geojson-vt-3.1.2.tgz#ea98849bd7717979db4c86fed8ef4e47475e4bab" get-caller-file@^1.0.1: version "1.0.2"