From 65bab30384577c9aac88fb7b34f8877a95d86704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Wed, 24 Jan 2018 00:28:06 -0800 Subject: [ios, macos] Documented ranges of style properties --- platform/darwin/src/MGLLight.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'platform/darwin/src/MGLLight.h') diff --git a/platform/darwin/src/MGLLight.h b/platform/darwin/src/MGLLight.h index d7e64cbfad..2bdb874a37 100644 --- a/platform/darwin/src/MGLLight.h +++ b/platform/darwin/src/MGLLight.h @@ -163,11 +163,11 @@ MGL_EXPORT more extreme contrast. The default value of this property is an expression that evaluates to the float - `0.5`. + 0.5. You can set this property to an expression containing any of the following: - * Constant numeric values + * Constant numeric values between 0 and 1 inclusive * Predefined functions, including mathematical and string operators * Conditional expressions * Variable assignments and references to assigned variables -- cgit v1.2.1 From 3a0a3e42819c7d2954795edb6bdbc284737dc77d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Mon, 16 Apr 2018 15:29:38 -0700 Subject: [macos] Replaced UIColor with NSColor in documentation --- platform/darwin/src/MGLLight.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'platform/darwin/src/MGLLight.h') diff --git a/platform/darwin/src/MGLLight.h b/platform/darwin/src/MGLLight.h index 2bdb874a37..cf4aa50112 100644 --- a/platform/darwin/src/MGLLight.h +++ b/platform/darwin/src/MGLLight.h @@ -128,6 +128,7 @@ MGL_EXPORT */ @property (nonatomic) MGLTransition positionTransition; +#if TARGET_OS_IPHONE /** Color tint for lighting extruded geometries. @@ -150,6 +151,30 @@ MGL_EXPORT light property in the Mapbox Style Specification. */ @property (nonatomic) NSExpression *color; +#else +/** + Color tint for lighting extruded geometries. + + The default value of this property is an expression that evaluates to + `NSColor.whiteColor`. + + You can set this property to an expression containing any of the following: + + * Constant `NSColor` values + * Predefined functions, including mathematical and string operators + * Conditional expressions + * Variable assignments and references to assigned variables + * Interpolation and step functions applied to the `$zoomLevel` variable + + This property does not support applying interpolation or step functions to + feature attributes. + + This property corresponds to the color + light property in the Mapbox Style Specification. + */ +@property (nonatomic) NSExpression *color; +#endif /** The transition affecting any changes to this layer’s `color` property. -- cgit v1.2.1