svgdotjs / svg.js

The lightweight library for manipulating and animating SVG
https://svgjs.dev
Other
11.04k stars 1.07k forks source link

css() typescript definition is missing object #1076

Closed Shrumpf closed 1 year ago

Shrumpf commented 4 years ago

The docs telling that you can use element.css({ cursor: 'pointer', fill: '#f03' }) but the typescript definiton doesn't contain the definition for object.

My solution is to add

css(style: object): this

to svg.js.d.ts on line 1036 but I'm not sure if this is the right solution.

Fuzzyma commented 4 years ago

Found this bug myself like a week ago and already fixed it locally. Will push as soon as I have other errors fixed as well!