Returns {
attributes?: {
[key: string]: string;
};
data: {
assignment: string;
foldAngle: string;
};
element: Element;
opacity: number;
segment: [number, number][];
stroke: string;
}[]
array of objects, one for each straight line segment
with these values:
- .element a pointer to the element that this segment comes from.
- .attributes the attributes of the element as a Javascript object.
this includes those which were inherited from its parents
- .segment a pair of vertices, the endpoints of the segment.
- .data two "data-" attributes representing assignment and foldAngle.
- .stroke the stroke attribute taken from getComputedStyle if possible.
- .opacity the opacity attribute taken from getComputedStyle if possible.
an SVG image as a DOM element or a string.