Skip to content
#

particles

Here are 523 public repositories matching this topic...

tsparticles
matteobruni
matteobruni commented Oct 1, 2020

The main library has some tests that were added a few months ago and they can be improved with new tests or tests that can be added to components and editor too.

I'd like to cover more code so testing would be easier.

Actually the project uses Mocha, Chai, and Instanbul together.

If you prefer using another suite for a specific component we can discuss it in Slack

canvas-confetti
catdad
catdad commented Feb 22, 2019
function setupCanvas(canvas) {
  // Get the device pixel ratio, falling back to 1.
  var dpr = window.devicePixelRatio || 1;
  // Get the size of the canvas in CSS pixels.
  var rect = canvas.getBoundingClientRect();
  // Give the canvas pixel dimensions of their CSS
  // size * the device pixel ratio.
  canvas.width = rect.width * dpr;
  canvas.height = rect.height * dpr;

Improve this page

Add a description, image, and links to the particles topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the particles topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.