mirror of
https://github.com/konvajs/konva.git
synced 2025-11-24 08:46:44 +08:00
feat: impliment getSelftRect method for Arc
This commit is contained in:
@@ -6,5 +6,5 @@
|
||||
"lib": ["ES2015", "dom"],
|
||||
"module": "CommonJS"
|
||||
},
|
||||
"include": ["../src/*.ts"]
|
||||
"include": ["../src/**/*.ts"]
|
||||
}
|
||||
|
||||
@@ -89,10 +89,10 @@ describe('Arc', function () {
|
||||
stage.add(layer);
|
||||
|
||||
assert.deepEqual(arc.getSelfRect(), {
|
||||
x: -80,
|
||||
y: -80,
|
||||
width: 160,
|
||||
height: 160,
|
||||
x: 0,
|
||||
y: 0,
|
||||
width: 80,
|
||||
height: 80,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user