diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/generate-style-code.js | 4 | ||||
-rw-r--r-- | scripts/style-spec.js | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/scripts/generate-style-code.js b/scripts/generate-style-code.js index 2622ae5ef6..5145755cec 100755 --- a/scripts/generate-style-code.js +++ b/scripts/generate-style-code.js @@ -153,7 +153,11 @@ global.defaultValue = function (property) { switch (property.type) { case 'number': + if (property.default === undefined) { + return 0; + } else { return property.default; + } case 'formatted': case 'string': return JSON.stringify(property.default || ""); diff --git a/scripts/style-spec.js b/scripts/style-spec.js index 695b5b7a59..bcfb7e5c17 100644 --- a/scripts/style-spec.js +++ b/scripts/style-spec.js @@ -5,6 +5,4 @@ delete spec.layout_symbol['symbol-sort-key']; delete spec.layout_symbol['symbol-z-order'].values['auto']; spec.layout_symbol['symbol-z-order'].default = 'viewport-y'; -delete spec.layout_symbol['text-radial-offset']; -delete spec.layout_symbol['text-justify'].values['auto']; -spec.layout_symbol['text-offset'].requires.splice(1, 1); // { "!": "text-radial-offset" } +delete spec.layout_symbol['text-justify'].values['auto'];
\ No newline at end of file |