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