Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "deck.gl", | ||
"description": "A WebGL overlay suite consists of multiple layers", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"keywords": [ | ||
@@ -55,2 +55,4 @@ "webgl", | ||
"react-redux": "^4.0.0", | ||
"react": "^0.14.0", | ||
"react-dom": "^0.14.0", | ||
"redux": "^3.0.4", | ||
@@ -57,0 +59,0 @@ "tape": "^4.0.0", |
@@ -154,3 +154,3 @@ // Copyright (c) 2015 Uber Technologies, Inc. | ||
blending: flatWorld.getBlending(), | ||
pixelRatio: flatWorld.getPixelRatio(), | ||
pixelRatio: flatWorld.getPixelRatio(window.devicePixelRatio), | ||
@@ -157,0 +157,0 @@ events: { |
@@ -210,3 +210,4 @@ // Copyright (c) 2015 Uber Technologies, Inc. | ||
blending: {enable, blendFunc, blendEquation}, | ||
needRedraw, onBeforeRenderFrame, onAfterRenderFrame | ||
needRedraw, onBeforeRenderFrame, onAfterRenderFrame, | ||
pixelRatio | ||
} = this.props; | ||
@@ -226,3 +227,3 @@ | ||
// (typically changed by app on browser resize etc) | ||
gl.viewport(x, y, width, height); | ||
gl.viewport(x * pixelRatio, y * pixelRatio, width * pixelRatio, height * pixelRatio); | ||
@@ -255,2 +256,3 @@ // setup bledning | ||
const {id, width, height, pixelRatio} = this.props; | ||
const props = { | ||
@@ -260,3 +262,7 @@ id, | ||
width: width * pixelRatio || 1, | ||
height: height * pixelRatio || 1 | ||
height: height * pixelRatio || 1, | ||
style: { | ||
width: width, | ||
height: height | ||
} | ||
}; | ||
@@ -263,0 +269,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1369862
4596
23