Skip to content
This repository has been archived by the owner on Jun 18, 2023. It is now read-only.

Commit

Permalink
fix(client): the rendering should be centered now
Browse files Browse the repository at this point in the history
  • Loading branch information
prescientmoon committed Oct 31, 2020
1 parent 97080e6 commit dfacec6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/client/src/Renderer/Canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports.onResize = (e) => () => {
}

exports.fitIntoBounds = (bounds) => (ctx) => () => {
ctx.translate(-bounds.x, -bounds.y * 2)
ctx.translate(-bounds.x, -bounds.y)
console.log(bounds)

const diff = 0
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/Renderer/WithHeight.purs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ withHeights = cata algebra
$ args
<#> \x -> createArray x 1 []

measures = createArray position (sum heights + if isRoot then 1 else 1) []
measures = createArray position (sum heights) []

yLambda =
lambda
Expand Down

0 comments on commit dfacec6

Please sign in to comment.