mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
config first
This commit is contained in:
@@ -1005,8 +1005,8 @@
|
||||
x = config.x || 0,
|
||||
y = config.y || 0,
|
||||
canvas = new Kinetic.SceneCanvas({
|
||||
width: this.getWidth() || config.width || (stage ? stage.getWidth() : 0),
|
||||
height: this.getHeight() || config.height || (stage ? stage.getHeight() : 0),
|
||||
width: config.width || this.getWidth() || (stage ? stage.getWidth() : 0),
|
||||
height: config.height || this.getHeight() || (stage ? stage.getHeight() : 0),
|
||||
pixelRatio: 1
|
||||
}),
|
||||
context = canvas.getContext();
|
||||
|
Reference in New Issue
Block a user