Comments (4)
Agreed. Would be great if this could be fixed somehow.
from canvasloader.
Hey guys. I was trying to resolve this issue for an hour and after several unsuccessful attempts i found a very funny, but working solution. Instead of playing with canvas width
and height
, i am trying to scale it:
var cl = new CanvasLoader('analysis_loader'),
diameter = 44;
cl.setColor('#ffffff');
cl.setShape('spiral');
cl.setDiameter(diameter);
cl.setDensity(149);
cl.setRange(0.6);
cl.setSpeed(1);
cl.setFPS(60);
if (window.devicePixelRatio) {
cl.setDiameter(diameter * 2);
$('canvas').css({
'-webkit-transform': 'scale(0.5)',
'-webkit-transform-origin': 'top left',
'-moz-transform': 'scale(0.5)',
'-moz-transform-origin': 'top left',
'transform': 'scale(0.5)',
'transform-origin': 'top left',
});
};
cl.show();
It works fine in Mac OS X browsers at latest MBPr: Safari, Firefox, Chrome, Yandex.Browser and latest Opera. Also it must be working at iOS retina devices.
I am not sure about windows retina devices, but if anybody have one, please reply to this message with feedback (work/not work).
Cheers from http://pocketdj.ru :-)
from canvasloader.
Hey rozzy! Thank you very much for your effort, much appreciated! I have been working on an updated version of CanvasLoader and it will be shipped very soon (just have been very busy with client work lately). In the new version this issue has been addressed already, please sit tight, updates are coming soon! Thank you very much for everyone for being patient and giving feedback on the issues, many thanks!
from canvasloader.
Hey Robert,
I guess you don't have the time to fix this issue right now. Any way I could help?
from canvasloader.
Related Issues (20)
- Spinner randomly disappearing HOT 3
- utilize requestAnimationFrame? HOT 1
- Bug in IE 8 when Array.prototype is extended
- Add support for responsive designs HOT 1
- Crashes (everything) when element with ID not found HOT 3
- IE7 and IE8 bug
- Your work is great HOT 1
- IE8 "Failed" HOT 2
- TypeError: Cannot call method 'appendChild' of null HOT 2
- Invalid argument error in minified version
- Android 4.2.2 visual issue HOT 2
- Minified version of the script is obsolete HOT 2
- [enhancement] Add missing bower.json.
- Doesn't seem to make use of IE9 HW acceleration
- Scoping issue (reported by Jens Meineck)
- Animation Freezes on iPad
- Passing in (visual) parameters as object to constructor HOT 2
- Global cache canvas holder HOT 1
- Get/Set methods should be deprecated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from canvasloader.