canvas dimensions stored but never used

This commit is contained in:
Ali Gator 2022-01-13 14:24:43 +01:00
parent 7c9e215f0b
commit f41e415b32
2 changed files with 2 additions and 4 deletions

View File

@ -32,12 +32,12 @@ export default {
}),
boardWidth: function() {
return Math.floor(
this.canvas.width /
this.canvasWidth /
this.cellProperties.size)
},
boardHeight: function() {
return Math.floor(
this.canvas.height /
this.canvasHeight /
this.cellProperties.size)
}
},

View File

@ -140,10 +140,8 @@ export default {
const elem = event.target
const name = elem.value
const rules = this.presetRules[name]
console.log(rules)
Object.keys(rules).map((index) => {
const data = { 'rule' : index, 'value' : rules[index]}
console.log(rules[index])
this.$store.commit('update1dSingleRule', data)
})
},