I'm using it for the electronic diagram viewer in my Arduino simulator project, and it works like a charm :-)
I'm working with TypeScript, so I created a simple type definition file for the library.
I created it manually based on the documentation in the README, so it may not
be completely accurate, but it does the trick for me.
I'm sharing it below for anyone who might need to use the library with TypeScript
in the future:
Also, if you are interested, I can create pull request and integrate this type information into the library (it will be a separate file, so it doesn't change the existing source code of the library in any way), so that people who install the package via npm will be able to take advantage of it automatically.
And if not, that's fine too, at least people will be able to refer to this issue and find the type definitions here.
Thanks again for creating and maintaining react-easy-panzoom 👍
First of all, thanks for this awesome library!
I'm using it for the electronic diagram viewer in my Arduino simulator project, and it works like a charm :-)
I'm working with TypeScript, so I created a simple type definition file for the library. I created it manually based on the documentation in the README, so it may not be completely accurate, but it does the trick for me.
I'm sharing it below for anyone who might need to use the library with TypeScript in the future:
Also, if you are interested, I can create pull request and integrate this type information into the library (it will be a separate file, so it doesn't change the existing source code of the library in any way), so that people who install the package via npm will be able to take advantage of it automatically.
And if not, that's fine too, at least people will be able to refer to this issue and find the type definitions here.
Thanks again for creating and maintaining react-easy-panzoom 👍