UNPKG
@tsparticles/updater-orbit
Version:
alpha (3.0.0-alpha.1)
beta (3.6.0-beta.1)
latest (3.9.1)
next (3.0.2)
3.9.1
3.9.0
3.8.1
3.8.0
3.7.1
3.7.0
3.6.0
3.6.0-beta.1
3.6.0-beta.0
3.5.0
3.4.0
3.3.0
3.2.2
3.2.1
3.2.0
3.1.0
3.0.3
3.0.2
3.0.1
3.0.0
3.0.0-beta.5
3.0.0-beta.4
3.0.0-beta.3
3.0.0-beta.2
3.0.0-beta.1
3.0.0-beta.0
3.0.0-alpha.1
3.0.0-alpha.0
tsParticles particles orbit updater
particles.js.org
tsparticles/tsparticles
@tsparticles/updater-orbit
/
esm
/
Options
/
Classes
/
OrbitRotation.js
14 lines
(13 loc)
•
293 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
{ ValueWithRandom, isNull } from
"@tsparticles/engine"
; export
class
OrbitRotation
extends
ValueWithRandom
{
constructor
() {
super
();
this
.value =
45
; } load(
data
) {
if
(isNull(
data
)) {
return
; }
super
.load(
data
); } }