summaryrefslogtreecommitdiff
path: root/platform/darwin/docs/guides
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2017-01-08 16:51:41 -0800
committerMinh Nguyễn <mxn@1ec5.org>2017-01-09 01:38:20 -0800
commita5e43f027297f8f5b83304a02354c2d3f75d0bc7 (patch)
treeab74954cbce465dca465b8d6f7e0eb2e47352860 /platform/darwin/docs/guides
parent1ae84db9789e638aaec0cd13c6921eb8a3503641 (diff)
downloadqtlocation-mapboxgl-a5e43f027297f8f5b83304a02354c2d3f75d0bc7.tar.gz
[ios, macos] Note reversed order in NS/UIEdgeInsets
Diffstat (limited to 'platform/darwin/docs/guides')
-rw-r--r--platform/darwin/docs/guides/For Style Authors.md.ejs5
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/darwin/docs/guides/For Style Authors.md.ejs b/platform/darwin/docs/guides/For Style Authors.md.ejs
index c1e2a18d84..2fcf5704a4 100644
--- a/platform/darwin/docs/guides/For Style Authors.md.ejs
+++ b/platform/darwin/docs/guides/For Style Authors.md.ejs
@@ -281,6 +281,11 @@ Array (`-offset`, `-translate`) | `NSValue` containing `CGVector` | `NSValue` co
Array (`-padding`) | `NSValue.edgeInsetsValue` | `NSValue.edgeInsetsValue`
<% } -%>
+For padding attributes, note that the arguments to
+`<%- cocoaPrefix %>EdgeInsetsMake()` in Objective-C and
+`EdgeInsets(top:left:bottom:right:)` in Swift are specified in counterclockwise
+order, in contrast to the clockwise order defined by the style specification.
+
## Filtering sources
You can filter a shape or vector source by setting the