You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case you want to create more than one instance of the loader with the same looks, at the moment you have to set them up individually. As an alternative it would be nice to be able to pass in an object with all the desired parameters.
So instead of this:
cl2=newCanvasLoader('overlay-canvasloader-container');cl2.setShape('roundRect');// default is 'oval'cl2.setDensity(14);// default is 40cl2.setRange(1);// default is 1.3cl2.setSpeed(1);// default is 2cl2.setFPS(12);// default is 24cl2.show();// Hidden by defaultcl=newCanvasLoader('canvasloader-container');cl.setShape('roundRect');// default is 'oval'cl.setDensity(14);// default is 40cl.setRange(1);// default is 1.3cl.setSpeed(1);// default is 2cl.setFPS(12);// default is 24cl.show();// Hidden by default
Something like this:
clparams={shape: 'roundRect',density: 14,// default is 40range: 1,// default is 1.3speed: 1,// default is 2FPS: 12,// default is 24show: true// Hidden by default}cl2=newCanvasLoader('overlay-canvasloader-container',{params: clparams});cl=newCanvasLoader('canvasloader-container',{params: clparams});
The text was updated successfully, but these errors were encountered:
In case you want to create more than one instance of the loader with the same looks, at the moment you have to set them up individually. As an alternative it would be nice to be able to pass in an object with all the desired parameters.
So instead of this:
Something like this:
The text was updated successfully, but these errors were encountered: