mirror of
https://github.com/konvajs/konva.git
synced 2026-03-03 16:58:33 +08:00
added Kinetic level pixelRatio property that can be used to override the detected pixel ratio. Also fixed up a pixel ratio related test for FF. added Kinetic.UA for user agent detection
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
init: function(config) {
|
||||
config = config || {};
|
||||
|
||||
var pixelRatio = config.pixelRatio || _pixelRatio;
|
||||
var pixelRatio = config.pixelRatio || Kinetic.pixelRatio || _pixelRatio;
|
||||
|
||||
this.pixelRatio = pixelRatio;
|
||||
this._canvas = document.createElement('canvas');
|
||||
|
||||
Reference in New Issue
Block a user