Skip to content

jmatsu/vector-drawable-previewer

Repository files navigation

VectorDrawable Previewer

icon

This is a Chrome extension for previewing vector drawable. You can check vector drawable files on GitHub or your local.

Please note that this extension requires the background script since v1.2.0

How this works

  • Show a SVG element which is based on a vector drawable text
  • background script watches URL changes and content script renders the SVG element.

Development

yarn prepare
yarn install
yarn dev # Launch a webpack to watch file changes

And then, please load dist/ directory from chrome://extensions. Your changes in src/js will be synced.

Release

Run the following comannds.

yarn package

extension.zip will be created at the root path of this repo. You can load it from chrome://extensions.

References

Limitations

This extension doesn't currently support the following:

  • animated vector drawable
  • android resource references

Please also refer to the code.

License

Under MIT.