Private method stage._setPointerPosition() is deprecated

New method `stage.setPointersPositions(event)`
This commit is contained in:
Anton Lavrenov
2019-02-19 20:17:49 -05:00
parent ab4a14abce
commit 0ae1f66b60
10 changed files with 156 additions and 84 deletions

View File

@@ -87,13 +87,18 @@ function addStats() {
animate();
}
function addStage() {
var container = document.createElement('div'),
stage = new Konva.Stage({
function addStage(attrs) {
var container = document.createElement('div');
const props = Object.assign(
{
container: container,
width: 578,
height: 200
});
},
attrs
);
var stage = new Konva.Stage(props);
konvaContainer.appendChild(container);
return stage;