Skip to content

Commit ab5ce0d

Browse files
authored
fix: no line breaks (#32)
no line breaks
1 parent 1d5648f commit ab5ce0d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ npm run build
1919
## Usage (TS)
2020

2121
```ts
22-
import { init, JustifiedLayout } from '@immich/justified-layout-wasm';
22+
import { JustifiedLayout } from '@immich/justified-layout-wasm';
2323

2424
const boxes = [{ width: 160, height: 90 }, { width: 200, height: 100 }, { width: 90, height: 160 }];
2525
const aspectRatios = new Float32Array(boxes.map(({ width, height }) => width / height));

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
wasm-pack build --no-pack --out-name justified-layout-wasm --target web
44
echo "Uint8Array.fromBase64 ??= (string) => Uint8Array.from(atob(string), (c) => c.charCodeAt(0));" > pkg/justified-layout-wasm-module.js
5-
echo "export const MODULE = Uint8Array.fromBase64('$(cat pkg/justified-layout-wasm_bg.wasm | base64)');" >> pkg/justified-layout-wasm-module.js
5+
echo "export const MODULE = Uint8Array.fromBase64('$(cat pkg/justified-layout-wasm_bg.wasm | base64 -w 0)');" >> pkg/justified-layout-wasm-module.js

0 commit comments

Comments
 (0)