Skip to content

Commit

Permalink
fix: fixed editor issue with particles bounce factors
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobruni committed Sep 14, 2022
1 parent 56d89cb commit 202890d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -19,7 +19,8 @@ export class BounceOptionsEditor extends EditorBase {
}

private addFactor(name: string, title: string): void {
const group = this.group.addGroup(name, title), randomGroup = group.addGroup("random", "Random");
const group = this.group.addGroup(name, title),
randomGroup = group.addGroup("random", "Random");

randomGroup.addProperty("enable", "Enable", EditorType.boolean).change(async () => {
await this.particles().refresh();
Expand Down
2 changes: 1 addition & 1 deletion websites/particles.js.org/index.html
Expand Up @@ -684,7 +684,7 @@ <h2>Which framework are you using?</h2>
<script src="https://cdn.jsdelivr.net/npm/tsparticles-shape-rounded-rect@2.3.1/tsparticles.shape.rounded-rect.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/tsparticles-shape-spiral@2.3.1/tsparticles.shape.spiral.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/object-gui@2.0.2/dist/js/object-gui.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/tsparticles-editor@2.3.2/tsparticles.editor.js"></script>
<script src="https://cdn.jsdelivr.net/npm/tsparticles-editor@2.3.3/tsparticles.editor.js"></script>
<script type="text/javascript">
hljs.highlightAll();
</script>
Expand Down

0 comments on commit 202890d

Please sign in to comment.