-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changed type for some properties to Color from Property #9673
Changed type for some properties to Color from Property #9673
Conversation
Thank you so much for the pull request @markchagers! I noticed this is your first pull request and I wanted to say welcome to the Cesium community! The Pull Request Guidelines is a handy reference for making sure your PR gets accepted quickly, so make sure to skim that.
Reviewers, don't forget to make sure that:
|
0356d36
to
764d63f
Compare
Please let me know if there is anything else that needs to be done before this PR can be evaluated. I have not changed or extended any tests because I'm not aware that any of these changes require it. |
@markchagers thank you for the pull request! We will look over this ASAP - I tagged a few other Cesium developers for a review. Fixes #9667. This pull request stems from the following community forum thread. |
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.
Thanks @markchagers! This looks fine to me, just a couple nits in CHANGES.md.
@mramato Any objections to this change?
This is incorrect. These are graphics.outlineColor = new ConstantProperty(Color.BLUE);
graphics.outlineColor = new SampledProperty(Color);
If TypeScript has improved and we can better express implicity conversion, that would be awesome. |
Co-authored-by: Eli Bogomolny <31491650+ebogo1@users.noreply.github.com>
Co-authored-by: Eli Bogomolny <31491650+ebogo1@users.noreply.github.com>
@mramato I'm updating the Cesium lib on a project I inherited. In the course of this update I ran into this issue: |
Fixes #9667. Some color properties of several Graphics classes (i.e. LabelGraphics.outlineColor) accept only a Cesium.Color, trying to set a ColorMaterialProperty has no effect at runtime. However the typescript definitions specify using a Property. This pull request attempts to address this by changing the type annotations for these properties. Going the other route: changing the implementation to work properly with a ColorMaterialProperty may be a better solution eventually, but is currently beyond my expertise.