UNPKG

jointjs

Version:

JavaScript diagramming library

6 lines (5 loc) 443 B
<p><i>alias:</i> <b>ref-y</b></p> <p>Make y-coordinate of the subelement relative to the y-coordinate of the element referenced to by the selector in <code>ref</code> attribute. If <code>ref-y</code> is in the <code>(0,1)</code> interval (or expressed in percentages, e.g. <code>'80%'</code>), the offset is calculated from the fraction of the bounding box of the referenced element. Otherwise, it is an absolute value in pixels. </p>