Bump GL JS pin to get tests for global symbol querying.
- Pulls over an update to line.vertex.glsl (looks like a no-op?) - Add test ignores for collator, is-supported-script, line-gradient - Exclude collator, is-supported-script, line-gradient from code generation.
This commit is contained in:
Submodule mapbox-gl-js updated: 6b96d69ab5...b0ba8bded5
@@ -166,7 +166,7 @@ public class PropertyFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
* Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).
|
||||
* Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.
|
||||
*
|
||||
* @param value a String value
|
||||
* @return property wrapper around String
|
||||
@@ -176,7 +176,7 @@ public class PropertyFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
* Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).
|
||||
* Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.
|
||||
*
|
||||
* @param expression an expression statement
|
||||
* @return property wrapper around an expression statement
|
||||
@@ -356,7 +356,7 @@ public class PropertyFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
* Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to density-independent pixels, multiply the length by the current line width.
|
||||
* Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to density-independent pixels, multiply the length by the current line width. Note that GeoJSON sources with `lineMetrics: true` specified won't render dashed lines to the expected scale. Also note that zoom-dependent expressions will be evaluated only at integer zoom levels.
|
||||
*
|
||||
* @param value a Float[] value
|
||||
* @return property wrapper around Float[]
|
||||
@@ -366,7 +366,7 @@ public class PropertyFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
* Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to density-independent pixels, multiply the length by the current line width.
|
||||
* Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to density-independent pixels, multiply the length by the current line width. Note that GeoJSON sources with `lineMetrics: true` specified won't render dashed lines to the expected scale. Also note that zoom-dependent expressions will be evaluated only at integer zoom levels.
|
||||
*
|
||||
* @param expression an expression statement
|
||||
* @return property wrapper around an expression statement
|
||||
@@ -376,7 +376,7 @@ public class PropertyFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
* Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512).
|
||||
* Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.
|
||||
*
|
||||
* @param value a String value
|
||||
* @return property wrapper around String
|
||||
@@ -386,7 +386,7 @@ public class PropertyFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
* Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512).
|
||||
* Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.
|
||||
*
|
||||
* @param expression an expression statement
|
||||
* @return property wrapper around an expression statement
|
||||
@@ -1156,7 +1156,7 @@ public class PropertyFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
* Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).
|
||||
* Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.
|
||||
*
|
||||
* @param value a String value
|
||||
* @return property wrapper around String
|
||||
@@ -1166,7 +1166,7 @@ public class PropertyFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
* Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).
|
||||
* Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.
|
||||
*
|
||||
* @param expression an expression statement
|
||||
* @return property wrapper around an expression statement
|
||||
@@ -1536,7 +1536,7 @@ public class PropertyFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
* Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).
|
||||
* Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.
|
||||
*
|
||||
* @param value a String value
|
||||
* @return property wrapper around String
|
||||
@@ -1546,7 +1546,7 @@ public class PropertyFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
* Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).
|
||||
* Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.
|
||||
*
|
||||
* @param expression an expression statement
|
||||
* @return property wrapper around an expression statement
|
||||
|
||||
@@ -218,7 +218,8 @@ MGL_EXPORT
|
||||
|
||||
/**
|
||||
Name of image in sprite to use for drawing image fills. For seamless patterns,
|
||||
image width and height must be a factor of two (2, 4, 8, ..., 512).
|
||||
image width and height must be a factor of two (2, 4, 8, ..., 512). Note that
|
||||
zoom-dependent expressions will be evaluated only at integer zoom levels.
|
||||
|
||||
You can set this property to an expression containing any of the following:
|
||||
|
||||
|
||||
@@ -302,7 +302,10 @@ MGL_EXPORT
|
||||
/**
|
||||
Specifies the lengths of the alternating dashes and gaps that form the dash
|
||||
pattern. The lengths are later scaled by the line width. To convert a dash
|
||||
length to points, multiply the length by the current line width.
|
||||
length to points, multiply the length by the current line width. Note that
|
||||
GeoJSON sources with `lineMetrics: true` specified won't render dashed lines to
|
||||
the expected scale. Also note that zoom-dependent expressions will be evaluated
|
||||
only at integer zoom levels.
|
||||
|
||||
This property is measured in line widths.
|
||||
|
||||
|
||||
@@ -1,4 +1,22 @@
|
||||
{
|
||||
"expression-tests/collator/accent-equals-de": "https://github.com/mapbox/mapbox-gl-native/issues/11692",
|
||||
"expression-tests/collator/accent-lt-en": "https://github.com/mapbox/mapbox-gl-native/issues/11692",
|
||||
"expression-tests/collator/accent-not-equals-en": "https://github.com/mapbox/mapbox-gl-native/issues/11692",
|
||||
"expression-tests/collator/base-default-locale": "https://github.com/mapbox/mapbox-gl-native/issues/11692",
|
||||
"expression-tests/collator/base-equals-en": "https://github.com/mapbox/mapbox-gl-native/issues/11692",
|
||||
"expression-tests/collator/base-gt-en": "https://github.com/mapbox/mapbox-gl-native/issues/11692",
|
||||
"expression-tests/collator/case-lteq-en": "https://github.com/mapbox/mapbox-gl-native/issues/11692",
|
||||
"expression-tests/collator/case-not-equals-en": "https://github.com/mapbox/mapbox-gl-native/issues/11692",
|
||||
"expression-tests/collator/case-omitted-en": "https://github.com/mapbox/mapbox-gl-native/issues/11692",
|
||||
"expression-tests/collator/comparison-number-error": "https://github.com/mapbox/mapbox-gl-native/issues/11692",
|
||||
"expression-tests/collator/diacritic-omitted-en": "https://github.com/mapbox/mapbox-gl-native/issues/11692",
|
||||
"expression-tests/collator/equals-non-string-error": "https://github.com/mapbox/mapbox-gl-native/issues/11692",
|
||||
"expression-tests/collator/non-object-error": "https://github.com/mapbox/mapbox-gl-native/issues/11692",
|
||||
"expression-tests/collator/variant-equals-en": "https://github.com/mapbox/mapbox-gl-native/issues/11692",
|
||||
"expression-tests/collator/variant-gteq-en": "https://github.com/mapbox/mapbox-gl-native/issues/11692",
|
||||
"expression-tests/is-supported-script/default": "https://github.com/mapbox/mapbox-gl-native/issues/11693",
|
||||
"expression-tests/resolved-locale/basic": "https://github.com/mapbox/mapbox-gl-native/issues/11692",
|
||||
"expression-tests/to-string/basic": "https://github.com/mapbox/mapbox-gl-native/issues/11719",
|
||||
"query-tests/circle-pitch-scale/viewport-inside-align-map": "https://github.com/mapbox/mapbox-gl-native/issues/10615",
|
||||
"query-tests/circle-pitch-scale/viewport-inside-align-viewport": "https://github.com/mapbox/mapbox-gl-native/issues/10615",
|
||||
"query-tests/edge-cases/box-cutting-antimeridian-z0": "https://github.com/mapbox/mapbox-gl-native/issues/11607",
|
||||
@@ -25,6 +43,10 @@
|
||||
"render-tests/fill-extrusion-pattern/opacity": "https://github.com/mapbox/mapbox-gl-js/issues/3327",
|
||||
"render-tests/geojson/inline-linestring-fill": "current behavior is arbitrary",
|
||||
"render-tests/geojson/inline-polygon-symbol": "behavior needs reconciliation with gl-js",
|
||||
"render-tests/is-supported-script/filter": "https://github.com/mapbox/mapbox-gl-native/issues/11693",
|
||||
"render-tests/is-supported-script/layout": "https://github.com/mapbox/mapbox-gl-native/issues/11693",
|
||||
"render-tests/line-gradient/gradient": "https://github.com/mapbox/mapbox-gl-native/issues/11718",
|
||||
"render-tests/line-gradient/translucent": "https://github.com/mapbox/mapbox-gl-native/issues/11718",
|
||||
"render-tests/mixed-zoom/z10-z11": "https://github.com/mapbox/mapbox-gl-native/issues/10397",
|
||||
"render-tests/raster-masking/overlapping-zoom": "https://github.com/mapbox/mapbox-gl-native/issues/10195",
|
||||
"render-tests/real-world/bangkok": "https://github.com/mapbox/mapbox-gl-native/issues/10412",
|
||||
|
||||
@@ -7,6 +7,8 @@ const outputPath = 'src/mbgl/shaders';
|
||||
|
||||
var shaders = require('../mapbox-gl-js/src/shaders');
|
||||
|
||||
delete shaders.lineGradient;
|
||||
|
||||
require('./style-code');
|
||||
|
||||
writeIfModified(path.join(outputPath, 'preludes.hpp'), `// NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
var spec = module.exports = require('../mapbox-gl-js/src/style-spec/reference/v8');
|
||||
|
||||
// Make temporary modifications here when Native doesn't have all features that JS has.
|
||||
delete spec.paint_line['line-gradient'];
|
||||
|
||||
@@ -31,6 +31,7 @@ uniform vec2 u_gl_units_to_pixels;
|
||||
varying vec2 v_normal;
|
||||
varying vec2 v_width2;
|
||||
varying float v_gamma_scale;
|
||||
varying highp float v_linesofar;
|
||||
|
||||
|
||||
#ifndef HAS_UNIFORM_u_color
|
||||
@@ -131,6 +132,8 @@ void main() {
|
||||
vec2 a_extrude = a_data.xy - 128.0;
|
||||
float a_direction = mod(a_data.z, 4.0) - 1.0;
|
||||
|
||||
v_linesofar = (floor(a_data.z / 4.0) + a_data.w * 64.0) * 2.0;
|
||||
|
||||
vec2 pos = a_pos_normal.xy;
|
||||
|
||||
// x is 1 if it's a round cap, 0 otherwise
|
||||
|
||||
@@ -29,6 +29,10 @@ TEST(Expression, IsExpression) {
|
||||
|
||||
for(auto& entry : allExpressions.GetObject()) {
|
||||
const std::string name { entry.name.GetString(), entry.name.GetStringLength() };
|
||||
if (name == "collator" || name == "line-progress" || name == "is-supported-script" || name == "resolved-locale") {
|
||||
// Not yet implemented
|
||||
continue;
|
||||
}
|
||||
JSDocument document;
|
||||
document.Parse<0>(R"([")" + name + R"("])");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user