mirror of
https://github.com/konvajs/konva.git
synced 2025-07-15 18:50:52 +08:00
replaced string literals with numbers where appropriate
This commit is contained in:
parent
ca0d3790b2
commit
b739d6edf7
@ -16,9 +16,9 @@
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
this.element = document.createElement('canvas');
|
||||
this.element.style.padding = '0';
|
||||
this.element.style.margin = '0';
|
||||
this.element.style.border = '0';
|
||||
this.element.style.padding = 0;
|
||||
this.element.style.margin = 0;
|
||||
this.element.style.border = 0;
|
||||
this.element.style.background = 'transparent';
|
||||
this.context = this.element.getContext('2d');
|
||||
this.setSize(width || 0, height || 0);
|
||||
|
Loading…
Reference in New Issue
Block a user