1.1.2 • Published 6 years ago

altizure-plugin-particle-effect-v2 v1.1.2

Weekly downloads
2
License
ISC
Repository
bitbucket
Last release
6 years ago

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>
1.1.2

6 years ago