three-orbit-viewer
Advanced tools
Comparing version 69.2.6 to 69.2.7
@@ -56,3 +56,3 @@ var createApp = require('canvas-app') | ||
emitter.renderer.setViewport(0, 0, width, height) | ||
emitter.renderer.setSize(width, height) | ||
emitter.camera.aspect = width/height | ||
@@ -76,2 +76,7 @@ emitter.camera.updateProjectionMatrix() | ||
setup(engine.context, engine.width, engine.height) | ||
if (typeof emitter.renderer.setPixelRatio === 'function') //r70 | ||
emitter.renderer.setPixelRatio(engine._DPR) | ||
else if (typeof emitter.renderer.devicePixelRatio === 'number') //r69 | ||
emitter.renderer.devicePixelRatio = engine._DPR | ||
engine.start() | ||
@@ -78,0 +83,0 @@ |
{ | ||
"name": "three-orbit-viewer", | ||
"version": "69.2.6", | ||
"version": "69.2.7", | ||
"description": "quick harness for viewing a mesh with orbit viewer", | ||
@@ -23,3 +23,3 @@ "main": "index.js", | ||
"eases": "^1.0.2", | ||
"three": "^0.69.0", | ||
"three": "^0.70.0", | ||
"uglify-js": "^2.4.16", | ||
@@ -29,3 +29,3 @@ "wzrd": "^1.1.1" | ||
"scripts": { | ||
"start": "wzrd demo/test.js", | ||
"start": "wzrd demo/test.js:bundle.js", | ||
"build": "browserify demo/test.js | uglifyjs -cm > demo/bundle.js" | ||
@@ -32,0 +32,0 @@ }, |
8458
61