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

Module version for use with "import" #17

Open
WeAreELIC opened this issue Aug 4, 2020 · 4 comments
Open

Module version for use with "import" #17

WeAreELIC opened this issue Aug 4, 2020 · 4 comments

Comments

@WeAreELIC
Copy link

Is there a module version of this so I can use the "import" statement?

@michaschwab
Copy link
Owner

Thanks for bringing this up! This is for importing EasyPZ from a TypeScript file, correct?
I just made a commit so that EasyPZ is now exported, and published that as easypz 1.1.11. Does that do the trick, or do you need anything else?

@WeAreELIC
Copy link
Author

I'm actually using Svelte, which doesn't use TypeScript.

Also, I was testing this out using Flick Pan + Dynamic Zoom — "modes": ["FLICK_PAN", "DYNAMIC_ZOOM_Y_ADJUSTABLE"] — but dragging my cursor down or up is not zooming in/out on my SVG. Not sure what I'm doing wrong...

I'm not seeing a list of all the available options in the documentation either (https://github.com/michaschwab/easypz/wiki).

@michaschwab
Copy link
Owner

Let's keep the discussion to one issue at a time please.

I can't really help you with the import without a minimal example of the problem. Could you provide me with one?

@WeAreELIC
Copy link
Author

Please check out svelte.dev. I believe just exporting EasyPZ should do the trick.

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

No branches or pull requests

2 participants