-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Per-attribute transition properties on MGLStyleLayer #8225
Changes from 1 commit
b274294
3420382
8ad49c3
c36ec2d
0b95cb9
c8945f9
da415f1
5a18098
a229846
967a19a
e6e2099
36c1920
09f6f9f
f796ced
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,21 @@ typedef NS_OPTIONS(NSUInteger, MGLMapDebugMaskOptions) { | |
#endif | ||
}; | ||
|
||
/** | ||
A structure containing information about a transition values. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove |
||
*/ | ||
typedef struct MGLTransition { | ||
/** | ||
The duration in seconds to animate any changes to the style URL or to layout and paint attributes. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's a bit of a nonsequitur to talk about style URLs and attributes here. This structure is generic enough that its documentation should be more self-contained. For example:
(It doesn't include the delay, does it?) |
||
*/ | ||
NSTimeInterval duration; | ||
|
||
/** | ||
The delay in seconds to before applying any changes to the style URL or to layout and paint attributes. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove |
||
*/ | ||
NSTimeInterval delay; | ||
} MGLTransition; | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should provide a factory method MGLTransitionMake(). We might also want to add transition-related methods to NSValue(MGLAdditions) to make it easier to work with MGLTransition instances when an object is needed. |
||
NS_ASSUME_NONNULL_END | ||
|
||
#ifndef NS_ARRAY_OF | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extraneous whitespace.