Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kumilingus committed Jan 10, 2025
1 parent 5cdbedb commit 4a39b7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions examples/libavoid/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const init = async () => {
});

// create n nodes with links between each other in a chain
const n = 100;
const n = 200;
const nodes = Array.from({ length: n }, (_, i) => {
return new Node({
position: { x: 100, y: i * 200},
Expand Down Expand Up @@ -274,9 +274,7 @@ export const init = async () => {
});

paper.on('link:snap:connect', (linkView) => {
linkView.model.set({
router: { name: 'rightAngle' }
});
linkView.model.router('rightAngle');
});

paper.on('link:snap:disconnect', (linkView) => {
Expand Down
1 change: 0 additions & 1 deletion examples/libavoid/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ body {
height: 100%;
display: flex;
justify-content: center;
align-items: center;
transform: translateZ(0);

.joint-paper {
Expand Down

0 comments on commit 4a39b7b

Please sign in to comment.