diff options
Diffstat (limited to 'platform/darwin/scripts/generate-style-code.js')
-rwxr-xr-x | platform/darwin/scripts/generate-style-code.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/darwin/scripts/generate-style-code.js b/platform/darwin/scripts/generate-style-code.js index c4c28c7946..a372943060 100755 --- a/platform/darwin/scripts/generate-style-code.js +++ b/platform/darwin/scripts/generate-style-code.js @@ -360,6 +360,10 @@ global.propertyDoc = function (propertyName, property, layerType, kind) { return doc; }; +global.propertyExample = function (property) { + return property.examples; +}; + global.isDataDriven = function (property) { return property['property-type'] === 'data-driven' || property['property-type'] === 'cross-faded-data-driven'; }; @@ -696,6 +700,7 @@ const layers = _(spec.layer.type.values).map((value, layerType) => { return { doc: spec.layer.type.values[layerType].doc, + examples: spec.layer.type.values[layerType].examples, type: layerType, layoutProperties: _.sortBy(layoutProperties, ['name']), paintProperties: _.sortBy(paintProperties, ['name']), |