diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-08-18 03:27:38 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-08-19 14:20:27 -0700 |
commit | 14aeb107f3599d30acc56b223920d96cccf40610 (patch) | |
tree | bc002936fb446325e039778892106c6c9bd8c783 /platform/darwin/src/MGLStyleLayer.h.ejs | |
parent | 938540b9192b55f2cc524db83fe7ff96504ac699 (diff) | |
download | qtlocation-mapboxgl-14aeb107f3599d30acc56b223920d96cccf40610.tar.gz |
[ios, macos] Document style attribute interdependencies
Diffstat (limited to 'platform/darwin/src/MGLStyleLayer.h.ejs')
-rw-r--r-- | platform/darwin/src/MGLStyleLayer.h.ejs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/platform/darwin/src/MGLStyleLayer.h.ejs b/platform/darwin/src/MGLStyleLayer.h.ejs index b31510aee7..700127f311 100644 --- a/platform/darwin/src/MGLStyleLayer.h.ejs +++ b/platform/darwin/src/MGLStyleLayer.h.ejs @@ -2,6 +2,8 @@ const type = locals.type; const layoutProperties = locals.layoutProperties; const paintProperties = locals.paintProperties; + const layoutPropertiesByName = locals.layoutPropertiesByName; + const paintPropertiesByName = locals.paintPropertiesByName; -%> // This file is generated. // Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`. @@ -39,8 +41,10 @@ typedef NS_ENUM(NSUInteger, MGL<%- camelize(type) %>StyleLayer<%- camelize(prope <% for (const property of layoutProperties) { -%> /** <%- propertyDoc(property, type) %><% if ('default' in property) { %> - - The default value of this property is <%= propertyDefault(property, type) %>.<% if (!property.required) { %> Set this property to `nil` to reset it to the default.<% } %><% } %> + + The default value of this property is <%= propertyDefault(property, type) %>.<% if (!property.required) { %> Set this property to `nil` to reset it to the default.<% } %><% } %><% if (property.requires) { %> + + <%= propertyReqs(property, layoutPropertiesByName, type) %><% } %> */ @property (nonatomic<% if (!property.required) { %>, null_resettable<% } %>) <%- propertyType(property, false, type) %> <%- camelizeWithLeadingLowercase(property.name) %>; @@ -51,8 +55,10 @@ typedef NS_ENUM(NSUInteger, MGL<%- camelize(type) %>StyleLayer<%- camelize(prope <% for (const property of paintProperties) { -%> /** <%- propertyDoc(property, type) %><% if ('default' in property) { %> - - The default value of this property is <%= propertyDefault(property, type) %>.<% if (!property.required) { %> Set this property to `nil` to reset it to the default.<% } %><% } %> + + The default value of this property is <%= propertyDefault(property, type) %>.<% if (!property.required) { %> Set this property to `nil` to reset it to the default.<% } %><% } %><% if (property.requires) { %> + + <%= propertyReqs(property, paintPropertiesByName, type) %><% } %> */ @property (nonatomic<% if (!property.required) { %>, null_resettable<% } %>) <%- propertyType(property, false, type) %> <%- camelizeWithLeadingLowercase(property.name) %>; |