Skip to content

Commit

Permalink
refactor(dia.Cell)!: remove parent() as setter (#2501)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKanera committed Jan 23, 2024
1 parent 17f1b5c commit 9fb496f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@
<p>If the cell is a part of an embedding, the <code>id</code> of the parent cell is returned as a string.</p>

<p>If you need to be sure that a Cell is returned (and not its <code>id</code>), use the <code>cell.getParentCell</code> <a href="#dia.Cell.prototype.getParentCell">function</a> instead.</p>

<pre class="docs-method-signature"><code>cell.parent(parentId [, opt])</code></pre>
<p>Set the <code>parent</code> property of the cell to <code>parentId</code> provided.</p>
1 change: 0 additions & 1 deletion packages/joint-core/types/joint.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,6 @@ export namespace dia {
toBack(opt?: Cell.ToFrontAndBackOptions): this;

parent(): string;
parent(parentId: Cell.ID): this;

getParentCell(): Cell | null;

Expand Down

0 comments on commit 9fb496f

Please sign in to comment.