Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTallJerry committed Jan 7, 2024
1 parent ab906fb commit d8f88c3
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 53 deletions.
103 changes: 52 additions & 51 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,53 +1,54 @@
{
"name": "memory-models-rough",
"version": "0.1.0",
"description": "Library for creating Python memory model diagrams that look hand-drawn.",
"main": "dist/memory_models_rough.js",
"scripts": {
"test": "jest",
"watch": "webpack --watch",
"build-dev": "tsc && webpack",
"build": "tsc && webpack --mode production",
"prepare": "husky install"
},
"keywords": [
"education",
"diagrams"
],
"author": "David Liu",
"contributors": [
"Mimis Chlympatsos",
"Shannon Komguem",
"Utku Egemen Umut"
],
"license": "MIT",
"dependencies": {
"@xmldom/xmldom": "^0.8.6",
"deepmerge": "^4.3.1",
"roughjs": "^4.5.0"
},
"devDependencies": {
"@babel/core": "^7.20.7",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.23.3",
"@types/jest": "^29.5.11",
"@types/node": "^20.10.5",
"babel-loader": "^9.1.0",
"husky": "^8.0.3",
"jest": "^29.7.0",
"lint-staged": "^14.0.1",
"prettier": "2.8.1",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1"
},
"lint-staged": {
"**/*": "prettier --write --ignore-unknown"
},
"workspaces": [
"demo",
"docs"
]
"name": "memory-models-rough",
"version": "0.1.0",
"description": "Library for creating Python memory model diagrams that look hand-drawn.",
"main": "dist/memory_models_rough.js",
"scripts": {
"test": "jest",
"watch": "webpack --watch",
"build-dev": "tsc && webpack",
"build": "tsc && webpack --mode production",
"prepare": "husky install"
},
"keywords": [
"education",
"diagrams"
],
"author": "David Liu",
"contributors": [
"Mimis Chlympatsos",
"Shannon Komguem",
"Utku Egemen Umut",
"Ziyuan (Jerry) Zhang"
],
"license": "MIT",
"dependencies": {
"@xmldom/xmldom": "^0.8.6",
"deepmerge": "^4.3.1",
"roughjs": "^4.5.0"
},
"devDependencies": {
"@babel/core": "^7.20.7",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.23.3",
"@types/jest": "^29.5.11",
"@types/node": "^20.10.5",
"babel-loader": "^9.1.0",
"husky": "^8.0.3",
"jest": "^29.7.0",
"lint-staged": "^14.0.1",
"prettier": "2.8.1",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1"
},
"lint-staged": {
"**/*": "prettier --write --ignore-unknown"
},
"workspaces": [
"demo",
"docs"
]
}
2 changes: 1 addition & 1 deletion src/automate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function drawAutomated(objects, width, configuration) {
const m = new MemoryModel({
width: width,
height: final_height,
seed: configuration.seed || 0,
seed: configuration.seed,
});

m.drawAll(StackFrames);
Expand Down
2 changes: 1 addition & 1 deletion src/user_functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function draw(objects, automation, configuration) {
m = new MemoryModel({
width: configuration.width,
height: configuration.height,
seed: configuration.seed || 0,
seed: configuration.seed,
});
m.drawAll(objs);
}
Expand Down

0 comments on commit d8f88c3

Please sign in to comment.