Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leowrites committed Oct 8, 2024
1 parent 7a35deb commit b24151e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion memory-viz/src/automate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ function getSize(obj: DrawnEntity) {
obj.x = obj.x || 10;
obj.y = obj.y || 10;

const m = new MemoryModel();
const m = new MemoryModel({});

// As 'drawAll' provides a size list, where our case has just one element, we extract the element at index 0.
const size = m.drawAll([obj])[0];
Expand Down
2 changes: 1 addition & 1 deletion memory-viz/src/memory_model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class MemoryModel {
);
this.svg.setAttribute(
"height",
options.height ? options.width.toString() : "800"
options.height ? options.height.toString() : "800"
);
this.roughjs_config = options.roughjs_config;
this.rough_svg = rough.svg(this.svg, this.roughjs_config);
Expand Down

0 comments on commit b24151e

Please sign in to comment.