setup prettier and make all code better

This commit is contained in:
Anton Lavrenov
2017-02-24 09:15:33 -05:00
parent bfb859cfca
commit 59cc7b99f2
124 changed files with 47390 additions and 41165 deletions

View File

@@ -1,28 +1,27 @@
suite('Group', function() {
// ======================================================
test('cache group with text', function() {
var stage = addStage();
var layer = new Konva.Layer();
var group = new Konva.Group({
draggable : true,
x: 100,
y: 40
draggable: true,
x: 100,
y: 40
});
var text = new Konva.Text({
text : "some text",
fontSize: 20,
fill: "black",
y : 50
text: 'some text',
fontSize: 20,
fill: 'black',
y: 50
});
var rect = new Konva.Rect({
height : 100,
width : 100,
stroke : "#00B80C",
strokeWidth: 10,
cornerRadius: 1
height: 100,
width: 100,
stroke: '#00B80C',
strokeWidth: 10,
cornerRadius: 1
});
group.add(text);
group.add(rect);
@@ -30,21 +29,17 @@ suite('Group', function() {
stage.add(layer);
group.cache({
x: -5,
y: -5,
width : 110,
height : 110,
drawBorder: true
}).offsetX(5).offsetY(5);
group
.cache({
x: -5,
y: -5,
width: 110,
height: 110,
drawBorder: true
})
.offsetX(5)
.offsetY(5);
stage.draw();
});
});