Closed MartinKanera closed 3 months ago
Isn't this missing https://github.com/clientIO/joint/blob/945b64b825e62d87b637f235df562aa841297831/src/dia/Cell.mjs#L317 ? I think that line (and the next one) should also be removed 🤔
We still use Cell.parent setter internally, this PR only resolves the confusion with using it as a way to embed cells.
Description
Remove the
Cell.parent(id)
setter from type definitions and documentation.Motivation and Context
Cell.parent(id)
method is not intended to be used as a way to embed cells. To eliminate the confusion it was decided to remove it from type definitions and documentation.Related to #2107.
Migration guide
In case you were using the
Cell.parent(cell)
as a solution to embed cells, use theCell.embed(cell)
instead.Example usage: