summaryrefslogtreecommitdiff
path: root/scripts/generate-style-code.js
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-08-09 17:51:26 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-08-12 17:14:32 +0300
commit5a752061fe9d84588d4bd70a37d1c3a861eaa206 (patch)
treed53c56dad0d2c6b216dfd1d98f0c2d3acd9b7c49 /scripts/generate-style-code.js
parentbc09cdbf76ffa50ccdd8dc8df7997fdd3a0eb0d6 (diff)
downloadqtlocation-mapboxgl-upstream/mikhail_two_component_text_radial_offset.tar.gz
[core] Enable two-component text radial offsetupstream/mikhail_two_component_text_radial_offset
Diffstat (limited to 'scripts/generate-style-code.js')
-rwxr-xr-xscripts/generate-style-code.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/generate-style-code.js b/scripts/generate-style-code.js
index 1f26e6fd86..04ace18354 100755
--- a/scripts/generate-style-code.js
+++ b/scripts/generate-style-code.js
@@ -60,6 +60,9 @@ global.evaluatedType = function (property) {
if (/position/.test(property.name)) {
return 'Position';
}
+ if (/-radial-offset/.test(property.name)) {
+ return 'RadialOffsetType';
+ }
switch (property.type) {
case 'boolean':
return 'bool';