Skip to content

Commit

Permalink
Use overlap of 0 for line layouts so that things look smooth
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanderkamp committed Jun 21, 2023
1 parent f11177e commit a40bb42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/projected.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ app.spawn(
})
);

const lineLayout = new WAMS.predefined.layouts.LineLayout(5);
const lineLayout = new WAMS.predefined.layouts.LineLayout(0);
const viewGroup = app.createViewGroup();
viewGroup.scaleBy(1.7);
viewGroup.on('drag', WAMS.predefined.actions.drag);
Expand Down
2 changes: 1 addition & 1 deletion examples/shared-polygons.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ viewGroup.on('pinch', WAMS.predefined.actions.pinch);
viewGroup.on('rotate', WAMS.predefined.actions.rotate);
viewGroup.on('drag', WAMS.predefined.actions.drag);

const line = new WAMS.predefined.layouts.LineLayout(5);
const line = new WAMS.predefined.layouts.LineLayout(0);
function handleConnect({ view, device }) {
viewGroup.add(view);
line.layout(view, device);
Expand Down
2 changes: 1 addition & 1 deletion examples/walkthrough-paper.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function spawnSquare(event) {
const viewGroup = app.createViewGroup();
viewGroup.on('click', spawnSquare);

const line = new LineLayout(200);
const line = new LineLayout(0);
function handleConnect({ view, device }) {
viewGroup.add(view);
line.layout(view, device);
Expand Down

0 comments on commit a40bb42

Please sign in to comment.