-
Notifications
You must be signed in to change notification settings - Fork 851
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dia.Cell): add foregroundEmbeds option to the Cell.toFront and C…
…ell.toBack (#2206); fix(dia.Cell): cell.toFront() and cell.toBack() keep the embedded elements on top of parents by default
- Loading branch information
Showing
7 changed files
with
151 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
<pre class="docs-method-signature"><code>element.toBack([opt])</code></pre> | ||
|
||
<p>Move the element so it is behind all other cells (elements/links). | ||
If <code>opt.deep</code> is <code>true</code>, all the embedded cells of this | ||
element will get higher <code>z</code> index than that of this element in a Breadth-first search (BFS) fashion. This | ||
is especially useful in hierarchical diagrams where if you want to send an element to the back, you don't want | ||
its children (embedded cells) to be hidden behind that element.</p> | ||
<p>Move the element so it is behind all other cells (elements/links). If <code>opt.deep</code> is | ||
<code>true</code>, all the embedded cells of this element will be updated in a Breadth-first | ||
search (BFS) fashion. | ||
</p> | ||
|
||
<p>If <code>opt.foregroundEmbeds</code> is <code>true</code> (as by default), all the embedded | ||
cells will get a higher <code>z</code> index than that of this element. This is especially useful in hierarchical diagrams where if you want to send an element to the back, you don't want its children (embedded cells) to be hidden behind that element. If | ||
<code>opt.foregroundEmbeds</code> is <code>false</code>, the original order within the group is preserved, allowing children to remain behind their parents. | ||
</p> | ||
|
||
<p>Set <code>opt.breadthFirst</code> to <code>false</code> to index the elements using Depth-first search (DFS).</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters