From 2b9a52f5e4cfd1a90c96b307ea218c720df10436 Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Thu, 7 Mar 2019 18:52:00 +0200 Subject: [core] Enable 'text-radial-offset' property --- scripts/generate-style-code.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/generate-style-code.js') 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 || ""); -- cgit v1.2.1