UNPKG

jointjs

Version:

JavaScript diagramming library

13 lines (11 loc) 427 B
<p>If set to <code>true</code>, the subelement offset (the distance from x0 y0 to the most top-left point) will be reset to x0 y0.</p> <pre><code>element.attr({ path: { // The path bbox for `d="M 10 10 20 20"` is x10 y10 w10 h10. d: 'M 10 10 20 20', // The path bbox will be changed to x0 y0 w10 h10. // This has same effect as passing path with `d="M 0 0 10 10"` resetOffset: true } }); </code></pre>