JSPM

physom-particles

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q13661F
  • License MIT

A simple particle lib for `physom`.

Package Exports

  • physom-particles
  • physom-particles/dist/physom-particles.min.js
  • physom-particles/dist/physom-particles.umd.min.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (physom-particles) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

physom-particles

A simple particle lib for physom.

Example

// import PP from 'physom-particles';
// const PP = require('physom-particles');

const particleManager = new PP.ParticleManager();

rootNode.on('click', (event) => {

    const particleGroup = particleManager.createParticleGroup();

    particleGroup.offset.set(
        event.data.x,
        event.data.y,
    );

    rootNode.appendChild(particleGroup);

});