Skip to content

Commit

Permalink
fix file paths to import in example files and fix order of contributo…
Browse files Browse the repository at this point in the history
…rs list
  • Loading branch information
yoonieaj committed May 20, 2024
1 parent 0277b20 commit 4b2c81f
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
*/
const { draw } = require("../../../../../memory-viz/dist/memory-viz.bundle.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("../../../../../../memory-viz/dist/memory-viz.bundle.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("../../../../../../memory-viz/dist/memory-viz.bundle.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("../../../../../../memory-viz/dist/memory-viz.bundle.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("../../../../../memory-viz/dist/memory-viz.bundle.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("../../../../../memory-viz/dist/memory-viz.bundle.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("../../../../../memory-viz/dist/memory-viz.bundle.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("../../../../../memory-viz/dist/memory-viz.bundle.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("../../../../../memory-viz/dist/memory-viz.bundle.js");
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("../../../../../memory-viz/dist/memory-viz.bundle.js");
const { draw } = require("memory-viz");

const configuration = {
width: 1300,
Expand Down
4 changes: 2 additions & 2 deletions memory-viz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
},
"contributors": [
"Mimis Chlympatsos",
"Yoonie Jang",
"Shannon Komguem",
"Utku Egemen Umut",
"Ziyuan (Jerry) Zhang",
"Yoonie Jang"
"Ziyuan (Jerry) Zhang"
],
"license": "MIT",
"repository": {
Expand Down

0 comments on commit 4b2c81f

Please sign in to comment.