Reads an element's transform="translate(x, y)" offset.
Plot positions facets, tick labels, and non-circular dot symbols with a
translate, so this is how each of them is located. The arguments are parsed
by splitting rather than by one regular expression, which keeps a
pathological transform attribute from costing more than a scan of it.
Parameters
element: Element
The element to read.
Returns [number,number]|null
The [x, y] offset, or null when there is no translate.
Reads an element's
transform="translate(x, y)"offset.Plot positions facets, tick labels, and non-circular dot symbols with a translate, so this is how each of them is located. The arguments are parsed by splitting rather than by one regular expression, which keeps a pathological
transformattribute from costing more than a scan of it.