You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
MGLStyleFunction needs a colorSpaceModel property #6721
The iOS and macOS SDKs need to support the new color interpolation option being added in #6442#8720 via a new colorSpaceModel property on MGLStyleFunction. No need to extend the initializers, since we can assume a default color space model of RGB.
Ideally, the property would be of type CGColorSpaceModel or NSColorSpaceModel. However, we’d have to provide our own HCL color space model and document the fact that some of the common color space models provided by Core Graphics or AppKit, like grayscale, are unavailable. So it might be easier, if less cool, to define our own enumeration.
I think we probably will have to provide our own enumeration for this type, because CGColorSpaceModel is new as of iOS 9 and macOS 10.11, and NSColorSpaceModel is new as of macOS 10.10. But we can be consistent with naming at least.
#8720 has been repurposed to track the addition of an expression operator. There would still need to be some platform-specific work, so this issue could be reopened to track that when the time comes.
Activity
1ec5 commentedon Oct 17, 2016
I think we probably will have to provide our own enumeration for this type, because CGColorSpaceModel is new as of iOS 9 and macOS 10.11, and NSColorSpaceModel is new as of macOS 10.10. But we can be consistent with naming at least.
jfirebaugh commentedon Jul 20, 2018
We removed functions. If we bring back color spaces, it'll be as an expression.
1ec5 commentedon Aug 21, 2018
#8720 has been repurposed to track the addition of an expression operator. There would still need to be some platform-specific work, so this issue could be reopened to track that when the time comes.