GithubHelp home page GithubHelp logo

Comments (11)

crashmax-dev avatar crashmax-dev commented on May 23, 2024

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.

BartmanEH avatar BartmanEH commented on May 23, 2024

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.

crashmax-dev avatar crashmax-dev commented on May 23, 2024

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.

crashmax-dev avatar crashmax-dev commented on May 23, 2024

upd:
image

from fireworks-js.

crashmax-dev avatar crashmax-dev commented on May 23, 2024

@BartmanEH

the best way to used via cdn for latest version 🤷

image

from fireworks-js.

BartmanEH avatar BartmanEH commented on May 23, 2024

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.

crashmax-dev avatar crashmax-dev commented on May 23, 2024

@BartmanEH https://codesandbox.io/s/loving-lederberg-4tdfiy?file=/src/index.ts

from fireworks-js.

BartmanEH avatar BartmanEH commented on May 23, 2024

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.

BartmanEH avatar BartmanEH commented on May 23, 2024

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.

BartmanEH avatar BartmanEH commented on May 23, 2024

fireworks.updateOptions({ traceSpeed: 1 }); in my application is no where near as slow as in your sandbox example.

from fireworks-js.

BartmanEH avatar BartmanEH commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.