canvas dimensions stored but never used
This commit is contained in:
parent
7c9e215f0b
commit
f41e415b32
@ -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)
|
||||
}
|
||||
},
|
||||
|
@ -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)
|
||||
})
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user