mirror of
https://github.com/konvajs/konva.git
synced 2025-09-19 02:37:59 +08:00
Private method stage._setPointerPosition()
is deprecated
New method `stage.setPointersPositions(event)`
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user