Skip to main content

Image

An image with a label.

SVG selectors

Supported attrs properties:

SelectorNodeDescription
rootSVGGElementContainer of all nodes
imageSVGImageElementImage body of the shape
labelSVGTextElementText below the image
const image = new shapes.standard.Image();
image.resize(150, 100);
image.position(25, 410);
image.attr('root/title', 'shapes.standard.Image');
image.attr('label/text', 'Image');
image.attr('image/xlinkHref', 'image.png');

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub