svg.js icon indicating copy to clipboard operation
svg.js copied to clipboard

Typescript returned type for Element.width() and Element.height() incorrect

Open maxailloud opened this issue 6 years ago • 3 comments

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.

maxailloud avatar May 20 '19 14:05 maxailloud

The issue is still present.

maxailloud avatar Feb 26 '20 19:02 maxailloud

Its on the list

Fuzzyma avatar Feb 26 '20 23:02 Fuzzyma

Perfect thank you.

maxailloud avatar Feb 27 '20 14:02 maxailloud