Skip to content

Commit

Permalink
types(dia.Element): fix size() signature (#2734)
Browse files Browse the repository at this point in the history
  • Loading branch information
zbynekstara authored Aug 14, 2024
1 parent bf753a1 commit 9e22400
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/joint-core/types/joint.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,10 @@ export namespace dia {
deep?: boolean;
}

interface ResizeOptions extends Cell.Options {
direction?: Direction
}

interface BBoxOptions extends Cell.EmbeddableOptions {
rotate?: boolean;
}
Expand All @@ -522,9 +526,10 @@ export namespace dia {
position(x: number, y: number, opt?: Element.PositionOptions): this;

size(): Size;
size(width: number, height?: number, opt?: { direction?: Direction, [key: string]: any }): this;
size(size: Partial<Size>, opt?: Element.ResizeOptions): this;
size(width: number, height: number, opt?: Element.ResizeOptions): this;

resize(width: number, height: number, opt?: { direction?: Direction, [key: string]: any }): this;
resize(width: number, height: number, opt?: Element.ResizeOptions): this;

rotate(deg: number, absolute?: boolean, origin?: Point, opt?: { [key: string]: any }): this;

Expand Down

0 comments on commit 9e22400

Please sign in to comment.