Skip to content

Commit

Permalink
Merge branch 'master' into draw-function-test-cases
Browse files Browse the repository at this point in the history
  • Loading branch information
david-yz-liu authored May 20, 2024
2 parents 1c0f151 + f6be97b commit d51495b
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 17 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ and adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- Modified `roughjs` import to be compatible with Jest's `moduleNameMapper` config option.
- Added instructions on the `memory-viz/README.md` for running the test suite.
- Fix CI build action for demo website.
- Added data type and manual layout tests for the `draw` function
- Added data type and manual layout tests for the `draw` function.
- Updated file paths for example files under docs to import the correct file.

## [0.1.0] - 2024-04-16

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
*/
const { draw } = require("../../../../../dist/memory_models_rough.js");
const { draw } = require("memory-viz");

const configuration = {
width: 1300,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
* - ~/examples/automation_demo/more_specific_demos/other_objects.svg"
*/

const {
MemoryModel,
drawAutomatedOtherItems,
} = require("../../../../../../dist/memory_models_rough.js");
const { MemoryModel, drawAutomatedOtherItems } = require("memory-viz");

const fs = require("fs");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
* - ~/examples/automation_demo/more_specific_demos/stack_frames.svg
*/

const {
MemoryModel,
drawAutomatedStackFrames,
} = require("../../../../../../dist/memory_models_rough.js");
const { MemoryModel, drawAutomatedStackFrames } = require("memory-viz");

const WIDTH = 1300;
const listOfStackFrames = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const {
getSize,
drawAutomatedOtherItems,
MemoryModel,
} = require("../../../../../../dist/memory_models_rough.js");
} = require("memory-viz");
const fs = require("fs");

const WIDTH = 1300;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* OUTPUT FILE: ~/examples/blankspaces_demo/blankspaces_demo.svg"
*/

const { draw } = require("../../../../../dist/memory_models_rough.js");
const { draw } = require("memory-viz");

const WIDTH = 1300;

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/99-api/examples/manual_demo/manual_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* OUTPUT FILE: ~/examples/manuel_demo/manual_demo.svg
*/
const { draw } = require("../../../../../dist/memory_models_rough.js");
const { draw } = require("memory-viz");

const m = draw(
(objects = "./manual_demo.json"),
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/99-api/examples/simple_demo/simple_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
*/
const { draw } = require("../../../../../dist/memory_models_rough.js");
const { draw } = require("memory-viz");

const objects = [
{
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/99-api/examples/style_demo/nostyle_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* - ~/docs/examples/style_demo/nostyle_demo.svg
*/

const { draw } = require("../../../../../dist/memory_models_rough.js");
const { draw } = require("memory-viz");

const configuration = {
width: 1300,
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/99-api/examples/style_demo/presets_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* OUTPUT FILE: ~/examples/style_demo/presets_demo.svg"
*/

const { draw } = require("../../../../../dist/memory_models_rough.node");
const { draw } = require("memory-viz");

const WIDTH = 1300;

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/99-api/examples/style_demo/style_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* - ~/examples/style_demo/style_demo.svg"
*/

const { draw } = require("../../../../../dist/memory_models_rough.js");
const { draw } = require("memory-viz");

const configuration = {
width: 1300,
Expand Down
1 change: 1 addition & 0 deletions memory-viz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
},
"contributors": [
"Mimis Chlympatsos",
"Yoonie Jang",
"Shannon Komguem",
"Utku Egemen Umut",
"Sarah Wang",
Expand Down

0 comments on commit d51495b

Please sign in to comment.