parseAttributes
parseAttributes(
element
,attributes
,cssRules?
):Record
<string
,any
>
Defined in: src/parser/parseAttributes.ts:19
Returns an object of attributes’ name/value, given element and an array of attribute names; Parses parent “g” nodes recursively upwards.
Parameters
Section titled “Parameters”element
Section titled “element”Element to parse
null
| HTMLElement
attributes
Section titled “attributes”string
[]
Array of attributes to parse
cssRules?
Section titled “cssRules?”CSSRules
Returns
Section titled “Returns”Record
<string
, any
>
object containing parsed attributes’ names/values