mirror of
https://github.com/konvajs/konva.git
synced 2026-01-23 13:26:07 +08:00
prettier
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
suite('Group', function() {
|
||||
suite('Group', function () {
|
||||
// ======================================================
|
||||
test('cache group with text', 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
|
||||
y: 40,
|
||||
});
|
||||
var text = new Konva.Text({
|
||||
text: 'some text',
|
||||
fontSize: 20,
|
||||
fill: 'black',
|
||||
y: 50
|
||||
y: 50,
|
||||
});
|
||||
|
||||
var rect = new Konva.Rect({
|
||||
@@ -21,7 +21,7 @@ suite('Group', function() {
|
||||
width: 100,
|
||||
stroke: '#00B80C',
|
||||
strokeWidth: 10,
|
||||
cornerRadius: 1
|
||||
cornerRadius: 1,
|
||||
});
|
||||
group.add(text);
|
||||
group.add(rect);
|
||||
@@ -35,7 +35,7 @@ suite('Group', function() {
|
||||
y: -5,
|
||||
width: 110,
|
||||
height: 110,
|
||||
drawBorder: true
|
||||
drawBorder: true,
|
||||
})
|
||||
.offsetX(5)
|
||||
.offsetY(5);
|
||||
|
||||
Reference in New Issue
Block a user