the elemant to set the attributes at
the key-value pairs of attributes to set
if to ignore entries with empty values or not; default: true
setXLinkAttributes(element, {
// empty: Ignored, if allowEmpty=false
"title": "",
"href": "https://example.org/"
});
Sets attributes of the
xlink
namespace for the given element.Attributes already set before will be overwritten.
This method is typically used in
toData
mapping.