altizure-plugin-particle-effect-v2

1.1.2 • Public • Published

npm (tag) npm bundle size

npm peer dependency version

Particle Effect

The Particle Effect plugin for Altizure Javascript SDK

__

usage

This plugin needs altizure defined.

in js

This plugin has to be used together with the altizure module. Make sure altizure is in your dependencies (or devDependencies) list in package.json file.

import {Sandbox} from 'altizure'
import ParticleEffectsMarker from 'altizure-plugin-particle-effect'

let options = {
  altizureApi:{
    key: your key here...
  }
}
let sandbox = new Sandbox('page-content', options)
let particles = new ParticleEffectsMarker({
  sandbox: sandbox,
  position: {lng: 113.94502395441609, lat: 22.537514302934216, alt: 36.23341798691775},
  effect: 'fire', // or 'smoke', 'snow', 'clouds'
  scale: 1
})

in html

<head>
  <script type="text/javascript" src="https://unpkg.com/altizure/release/altizure-sdk.min.js"></script>
  <script type="text/javascript" src="https://unpkg.com/altizure-plugin-particle-effect"></script>
</head>
<body>
  <div id="page-content" />
  <script>
    let options = {
      altizureApi:{
        key: your key here...
      }
    }
    let sandbox = new altizure.Sandbox('page-content', options)
    let particles = new altizure.ParticleEffectsMarker({
      sandbox: sandbox,
      position: {lng: 113.94502395441609, lat: 22.537514302934216, alt: 36.23341798691775},
      effect: 'fire', // or 'smoke', 'snow', 'clouds'
      scale: 1
    })
  </script>
</body>

Package Sidebar

Install

npm i altizure-plugin-particle-effect-v2

Weekly Downloads

1

Version

1.1.2

License

ISC

Unpacked Size

62.8 kB

Total Files

3

Last publish

Collaborators

  • jingbo