Fries
548ef52ab7
i changed the api to not have a global wasm instance anymore. now initWasm returns a WASM instance you have to pass down to the functions. i feel like this is the best as it means you wont deal with a race condition if you're messing with it more then once at the same time, like i'm doing with tests. i also accounted for the height given as that was the original calculation that the Blurhash C implmentation used, not width * width, width * height.
18 lines
199 B
Text
18 lines
199 B
Text
node_modules
|
|
*.tgz
|
|
blurhash/*.c
|
|
blurhash/*.h
|
|
src
|
|
.clang-format
|
|
.editorconfig
|
|
.gitignore
|
|
.npmignore
|
|
.npmrc
|
|
.prettierrc.json
|
|
Makefile
|
|
pnpm-lock.yaml
|
|
rollup.config.js
|
|
tsconfig.json
|
|
spec
|
|
coverage
|
|
.nycrc
|