svg.js
svg.js copied to clipboard
Typescript returned type for Element.width() and Element.height() incorrect
Bug report
Fiddle
On the last tagged version, 3.0.12, the Typescript definition file is stating that Element.width() and Element.height are suppose to return a number. In practice it's returning a string, so for example 400px instead of 400.
Explanation
No matter the type of the value we get, the Typescript definition should match it.
The issue is still present.
Its on the list
Perfect thank you.