This commit is contained in:
Anton Lavrenov
2020-05-08 09:59:35 -05:00
parent a2adcf5f17
commit d5481b1b72
78 changed files with 3714 additions and 3711 deletions

View File

@@ -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);