Skip to content

Commit

Permalink
refactor(types): add EmbedOptions and change Cell.embed signature
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKanera committed Oct 22, 2024
1 parent 906441c commit 3b09478
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/joint-core/types/joint.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,10 @@ export namespace dia {
[key: string]: any;
}

interface EmbedOptions extends Options {
reparent?: boolean;
}

interface EmbeddableOptions<T = boolean> extends Options {
deep?: T;
}
Expand Down Expand Up @@ -443,7 +447,7 @@ export namespace dia {

stopTransitions(path?: string, delim?: string): this;

embed(cell: Cell | Cell[], opt?: Graph.Options): this;
embed(cell: Cell | Cell[], opt?: Cell.EmbedOptions): this;

unembed(cell: Cell | Cell[], opt?: Graph.Options): this;

Expand Down

0 comments on commit 3b09478

Please sign in to comment.