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

Expose RTLTextPluginStatus #8864

Merged
merged 9 commits into from
Oct 15, 2019
Merged

Expose RTLTextPluginStatus #8864

merged 9 commits into from
Oct 15, 2019

Conversation

ryanhamley
Copy link
Contributor

@ryanhamley ryanhamley commented Oct 11, 2019

Launch Checklist

fixes #7869

  • briefly describe the changes in this PR
    • this plugin exposes the RTLTextPluginStatus (which can be unavailable, loading, loaded or error) through a mapboxgl.getRTLTextStatusPlugin method
  • write tests for all new functionality
  • document any changes to public APIs
  • manually test the debug page

CHANGELOG
Expose getRTLTextPluginStatus method

Copy link
Contributor

@asheemmamoowala asheemmamoowala left a comment

Choose a reason for hiding this comment

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

The change to add and expose pluginStatus looks good. pluginRequested can probably removed too, and replaced with pluginStatus.

@asheemmamoowala asheemmamoowala added this to the release-sangria milestone Oct 14, 2019
@ryanhamley
Copy link
Contributor Author

@asheemmamoowala I removed pluginRequested

Copy link
Contributor

@arindam1993 arindam1993 left a comment

Choose a reason for hiding this comment

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

plugin.isLoaded() should probably be moved to querying the enum as well.

src/source/rtl_text_plugin.js Outdated Show resolved Hide resolved
Copy link
Contributor

@arindam1993 arindam1993 left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose a "clearRTLTextPlugin" or a give a way to check if the rtl plugin is requested
3 participants