Skip to content

Commit

Permalink
fix convert
Browse files Browse the repository at this point in the history
  • Loading branch information
g-a-v-i-n committed Sep 3, 2019
1 parent bd8249a commit 2a937ea
Show file tree
Hide file tree
Showing 5 changed files with 116 additions and 120 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -6,5 +6,4 @@ cache:
- 'node_modules'
script:
- npm run build
- npm run convert
- npm run test
8 changes: 4 additions & 4 deletions lib/src/index.js
Expand Up @@ -107,7 +107,7 @@ const merge = (pair) => {

// For each te
const generatePng = (canvas, pair, debug, output) => {
const imagePages = pair.templates.map((page) => {
const imageFrames = pair.templates.map((page) => {
const ctx = canvas.getContext('2d')

ctx.clearRect(0, 0, canvas.width, canvas.height)
Expand Down Expand Up @@ -195,7 +195,7 @@ const generatePng = (canvas, pair, debug, output) => {

return {
...pair,
pages: imagePages,
frames: imageFrames,
}
}

Expand All @@ -220,7 +220,7 @@ class PaperRenderer extends Component {
// Pair wallets and templates. Even though no templates have been altered yet, we will programmatically alter the shard templates in the next step. Since shards are wallet-specific, we don't want to separate wallets from their templates from now on.
const pairs = extendedWallets.map((wallet) => {
return {
templates: templates.pages,
templates: templates.frames,
wallet: wallet,
}
})
Expand Down Expand Up @@ -259,7 +259,7 @@ class PaperRenderer extends Component {
this.props.callback(
trios.map((trio) => {
return {
pages: trio.pages,
frames: trio.frames,
wallet: trio.wallet,
}
})
Expand Down

0 comments on commit 2a937ea

Please sign in to comment.