Comments (11)
Using a fixed version:
https://unpkg.com/[email protected]
https://cdn.jsdelivr.net/npm/[email protected]
or latest:
https://unpkg.com/fireworks-js@latest/dist/index.umd.js
https://cdn.jsdelivr.net/npm/fireworks-js@latest/dist/index.umd.js
from fireworks-js.
thanks for your help. I'm a bit of a hack so you'll have to bear with me as I move from 1.4.1 to 2.10.0. I'm using https://cdn.jsdelivr.net/npm/fireworks-js@latest/dist/index.umd.js
but getting:
Uncaught TypeError: Fireworks is not a constructor
for
fireworks = new Fireworks(container,{});
from fireworks-js.
for some reason now it is in window
new window.Fireworks(container)
it was my mistake to rename the file from version 2.0. better to use fixed version in cdn's
from fireworks-js.
from fireworks-js.
the best way to used via cdn for latest version 🤷
from fireworks-js.
this is getting me further:
container = document.querySelector('.fireworks-container');
new Fireworks.default(container)
but now fireworks.updateOptions({ traceSpeed: 1 });
is not working (neither is fireworks.setOptions({ traceSpeed: 1 });
):
I get:
Wordle_Solver.js:527 Uncaught TypeError: fireworks.setOptions is not a function
or
Wordle_Solver.js:527 Uncaught TypeError: fireworks.updateOptions is not a function
edit: trying fireworks = new Fireworks.default(container)
testing now...
from fireworks-js.
@BartmanEH https://codesandbox.io/s/loving-lederberg-4tdfiy?file=/src/index.ts
from fireworks-js.
OK, thanks to your help, I'm back to where I was: fireworks working but using v2.10.0 instead of v1.4.1 but I still cannot get updateOptions to work. I moved it to after .start() but still fireworks.updateOptions({ traceSpeed: 1 });
has no effect.
edit: hang on, maybe traceSpeed = 1 just isn't as slow as I'm expecting. I'm playing with your sandbox example. thanks!
from fireworks-js.
OK, I think it's all working now. Thanks for your help. I do wish I could make is slower than traceSpeed = 1 :-)
Edit: I'm experimenting with traceSpeed < 1 like 0.01 but it seems to just start out slowly but not actually "fire" traces more slowly
from fireworks-js.
fireworks.updateOptions({ traceSpeed: 1 });
in my application is no where near as slow as in your sandbox example.
from fireworks-js.
I give up. Something traceSpeed = 1 is very slow in your sandbox, sometimes it seems the same as default of 10.
from fireworks-js.
Related Issues (20)
- How to switch different packages in dev module HOT 4
- launch a firework explosion at [x,y] without any trace? HOT 3
- non-working boundaries after `2.10.0` update HOT 2
- feat(react): add "use client" directive
- [react] - Is it possible to load toggled off? HOT 3
- Error: Module Not Found HOT 9
- Unable to resolve types in @fireworks-js/react 2.10.6 HOT 1
- simple js file HOT 5
- Fireworks for limited amount of time HOT 1
- If repeated, it does not work after the second time. HOT 4
- Paola sei la mia felicità
- Graceful stop HOT 1
- How to make use of the API (start, waitStop) when using the Vue wrapper? HOT 1
- Fire function HOT 1
- How to change the color of fireworks ? HOT 3
- How to change the angle of fireworks ? HOT 1
- use ResizeObserver instead on resize listener
- Can I get a vanilla JS copy or do i have to compile the TS version HOT 1
- Add `jsdelivr` and `unpkg` to package.json
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fireworks-js.