Skip to content

How did you 'globalThis'ify Vanta Waves? #244

Closed

Description

@rymix

Could you please explain how you were able to generate this version of Vanta Waves that used globalThis over window?

https://github.com/DustinBrett/daedalOS/blob/7c342176917b1664a5c388ed6c2bbb41a29061f9/public/System/Vanta.js/vanta.waves.min.js

I would like to convert some other Vanta animated backgrounds in a similar manner, but I do not relish the prospect of working my way through a minified javascript file.

Did you recompile using a modified version of the open source project here? https://github.com/tengbao/vanta

Activity

  1. DustinBrett commented on Dec 9, 2022

    @DustinBrett
    Owner

    Thanks for the interest. I did indeed convert from source using the vanta repo. I had PR'd (tengbao/vanta#118) one of my tweaks to the repo. I think I mostly just did a global search/replace for window to globalThis. I run it in a web worker so this was required. Attached is a diff of all the changes I've done to my local fork of vanta.

    vanta-ea669eb-Various tweaks.zip

  2. Repository owner locked and limited conversation to collaborators on Dec 10, 2022
  3. converted this issue into a discussion #245 on Dec 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions