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:
Eric Rowell
2013-09-13 23:26:58 -07:00
parent 88c419fef6
commit 659d0409b3
5 changed files with 29 additions and 7 deletions

View File

@@ -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');