From 0cf97a412131b79b67addb98eee2ca70d512fdcd Mon Sep 17 00:00:00 2001 From: yoonie-jang Date: Thu, 13 Jun 2024 13:06:40 -0400 Subject: [PATCH] Adjust configuration argument --- memory-viz/src/automate.ts | 2 +- memory-viz/src/user_functions.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/memory-viz/src/automate.ts b/memory-viz/src/automate.ts index 81bec030..40b86c75 100644 --- a/memory-viz/src/automate.ts +++ b/memory-viz/src/automate.ts @@ -29,7 +29,7 @@ function drawAutomated(objects: DrawnEntity[], width, configuration) { const m = new MemoryModel({ width: width, height: final_height, - roughjs_config: { options: { seed: configuration.seed } }, + roughjs_config: configuration.roughjs_config, }); m.drawAll(StackFrames); diff --git a/memory-viz/src/user_functions.ts b/memory-viz/src/user_functions.ts index 4e2faaaf..f276a513 100644 --- a/memory-viz/src/user_functions.ts +++ b/memory-viz/src/user_functions.ts @@ -86,7 +86,7 @@ function draw(objects, automation, configuration) { m = new MemoryModel({ width: configuration.width, height: configuration.height, - roughjs_config: { options: { seed: configuration.seed } }, + roughjs_config: configuration.roughjs_config, }); m.drawAll(objs); }