Skip to content
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

Make ambient occlusion and edge radius private in the style-spec #12146

Merged
merged 2 commits into from
Aug 9, 2022

Conversation

stepankuzmin
Copy link
Contributor

This PR makes fill extrusion's ambient occlusion and edge radius private in the style-spec package, making #12134 and #12135 obsolete. PR will land into the main, so we can intentionally make these changes public later. I will cherry-pick it in the release-v2.10.0 branch after the merge.

@stepankuzmin stepankuzmin added the skip changelog Used for PRs that do not need a changelog entry label Aug 9, 2022
@stepankuzmin stepankuzmin changed the title Disable ambient occlusion and edge radius in v2.10.0 Make ambient occlusion and edge radius private in the style-spec Aug 9, 2022
Copy link
Member

@mourner mourner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 also might be worth updating https://github.com/mapbox/mapbox-gl-js/blob/main/build/rollup_plugin_minify_style_spec.js (e.g. add v.type === 'private') to filter those out of the bundle.

@stepankuzmin
Copy link
Contributor Author

stepankuzmin commented Aug 9, 2022

@mourner unfortunately, removing these properties in the minifyStyleSpec rollup plugin also removes the corresponding property specification in the Properties classes, which crashes the library. However, we may consider removing these properties while building the style-spec package.

I'm unsure if we want to break the validation for the styles with private properties. So let's not omit them for now.

@stepankuzmin stepankuzmin merged commit 745a210 into main Aug 9, 2022
@stepankuzmin stepankuzmin deleted the make-style-spec-props-private branch August 9, 2022 12:37
mikelsis pushed a commit to mikelsis/mapbox-gl-js that referenced this pull request Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip changelog Used for PRs that do not need a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants