Skip to content

Commit

Permalink
Merge pull request #167 from jenny-s51/iss165
Browse files Browse the repository at this point in the history
fix(layouts): remove unused var gridOptions
  • Loading branch information
dlabaj authored Apr 5, 2024
2 parents 129c309 + 65f631a commit 9cd1fad
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions packages/module/src/layouts/BreadthFirstLayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,9 @@ import { BreadthFirstGroup } from './BreadthFirstGroup';
export type BreadthFirstLayoutOptions = LayoutOptions;

export class BreadthFirstLayout extends BaseLayout implements Layout {
private gridOptions: BreadthFirstLayoutOptions;

constructor(graph: Graph, options?: Partial<BreadthFirstLayoutOptions>) {
super(graph, options);
this.gridOptions = {
...this.options,
...options
};
}

protected createLayoutNode(node: Node, nodeDistance: number, index: number) {
Expand Down
5 changes: 0 additions & 5 deletions packages/module/src/layouts/GridLayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,9 @@ import { GridGroup } from './GridGroup';
export type GridLayoutOptions = LayoutOptions;

export class GridLayout extends BaseLayout implements Layout {
private gridOptions: GridLayoutOptions;

constructor(graph: Graph, options?: Partial<GridLayoutOptions>) {
super(graph, options);
this.gridOptions = {
...this.options,
...options
};
}

protected createLayoutNode(node: Node, nodeDistance: number, index: number) {
Expand Down

0 comments on commit 9cd1fad

Please sign in to comment.