jointjs
Version:
JavaScript diagramming library
4 lines (2 loc) • 356 B
HTML
<p>Same as <code>refHeight</code>. Useful when one needs to resize an element absolutely and relatively at the same time. Note that all percentages are relative to 100% of the referenced height.</p>
<pre><code>{ refHeight: 20, refHeight2: '-75%' } // resizes the element to 25% of the reference height (25% = 100% - 75%) plus extra 20 pixels</code></pre>