rect: An element used to create a a rectangle shape

Description Available Attributes (Named Parameters) Available Content Elements (Unnamed Parameters)

Description

The rect element is an SVG basic shape, used to create rectangles based on the position of a corner and their width and height. It may also be used to create rectangles with rounded corners.

Available Attributes (Named Parameters)

Animation Event Attributes

onload

Complementary Attributes

rxy, wh, xy

Conditional Processing Attributes

requiredExtensions, requiredFeatures, systemLanguage

Core Attributes

id, xml.base, xml.lang, xml.space

Filter Primitive Attributes

height, width, x, y

Graphical Event Attributes

onactivate, onclick, onfocusin, onfocusout, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup

Presentation Attributes

clip.path, clip.rule, color, color.interpolation, color.rendering, cursor, display, fill, fill.opacity, fill.rule, filter, mask, opacity, pointer.events, shape.rendering, stroke, stroke.dasharray, stroke.dashoffset, stroke.linecap, stroke.linejoin, stroke.miterlimit, stroke.opacity, stroke.width, visibility

Unclassified

class, externalResourcesRequired, rx, ry, style, transform

Available Content Elements (Unnamed Parameters)

Animation Elements

animate, animateColor, animateMotion, animateTransform, set

Descriptive Elements

desc, metadata, title


mslegrand/svgR documentation built on Jan. 21, 2020, 2:59 p.m.