UNPKG

jointjs

Version:

JavaScript diagramming library

4 lines (3 loc) 772 B
<p><i>alias:</i> <b>refR</b></p> <p>Set the <code>r</code> attribute of the subelement relatively to the inscribed size (width or height of the bounding box, whichever is smaller) of the element referenced by the selector in the <code>ref</code> attribute. If the value is in the <code>[0, 1]</code> interval (or expressed in percentages, e.g. <code>'80%'</code>), the <code>r</code> of the subelement will be set as a percentage of the size of the referenced element. If the value is <code>&lt;0</code> or <code>&gt;1</code>, the size of the subelement will be smaller/bigger than the size of the referenced element by the amount specified. Note that this makes sense only for SVG elements that support <code>r</code> attribute, such as <code>&lt;circle&gt;</code>. </p>