diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2017-01-08 16:51:41 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2017-01-09 01:38:20 -0800 |
commit | a5e43f027297f8f5b83304a02354c2d3f75d0bc7 (patch) | |
tree | ab74954cbce465dca465b8d6f7e0eb2e47352860 | |
parent | 1ae84db9789e638aaec0cd13c6921eb8a3503641 (diff) | |
download | qtlocation-mapboxgl-a5e43f027297f8f5b83304a02354c2d3f75d0bc7.tar.gz |
[ios, macos] Note reversed order in NS/UIEdgeInsets
-rw-r--r-- | platform/darwin/docs/guides/For Style Authors.md.ejs | 5 | ||||
-rw-r--r-- | platform/ios/docs/guides/For Style Authors.md | 5 | ||||
-rw-r--r-- | platform/macos/docs/guides/For Style Authors.md | 5 |
3 files changed, 15 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 diff --git a/platform/ios/docs/guides/For Style Authors.md b/platform/ios/docs/guides/For Style Authors.md index 919b9bde7b..4a49939d4f 100644 --- a/platform/ios/docs/guides/For Style Authors.md +++ b/platform/ios/docs/guides/For Style Authors.md @@ -274,6 +274,11 @@ Array (`-font`) | `NSArray<NSString>` | `[String]` Array (`-offset`, `-translate`) | `NSValue.CGVectorValue` | `NSValue.cgVectorValue` Array (`-padding`) | `NSValue.UIEdgeInsetsValue` | `NSValue.uiEdgeInsetsValue` +For padding attributes, note that the arguments to +`UIEdgeInsetsMake()` 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 diff --git a/platform/macos/docs/guides/For Style Authors.md b/platform/macos/docs/guides/For Style Authors.md index a4fd7ee9c4..c58cb4badc 100644 --- a/platform/macos/docs/guides/For Style Authors.md +++ b/platform/macos/docs/guides/For Style Authors.md @@ -262,6 +262,11 @@ Array (`-font`) | `NSArray<NSString>` | `[String]` Array (`-offset`, `-translate`) | `NSValue` containing `CGVector` | `NSValue` containing `CGVector` Array (`-padding`) | `NSValue.edgeInsetsValue` | `NSValue.edgeInsetsValue` +For padding attributes, note that the arguments to +`NSEdgeInsetsMake()` 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 |