@ifor-lux/cuteditor-wasm 0.2.11 → 0.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/cuteditor_wasm_bg.wasm +0 -0
- package/package.json +23 -1
package/README.md
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @ifor-lux/cuteditor-wasm
|
|
2
2
|
|
|
3
|
-
Shared video editor logic compiled to WebAssembly.
|
|
3
|
+
Shared video editor logic compiled to WebAssembly.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install
|
|
8
|
+
npm install @ifor-lux/cuteditor-wasm
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
13
|
```ts
|
|
14
|
-
import { formatTimecode, mediaTimeFromSeconds } from "
|
|
14
|
+
import { formatTimecode, mediaTimeFromSeconds } from "@ifor-lux/cuteditor-wasm";
|
|
15
15
|
|
|
16
16
|
const ticks = mediaTimeFromSeconds(1.5);
|
|
17
17
|
const label = formatTimecode({ ticks });
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
All exports are documented in the [TypeScript definitions](./
|
|
20
|
+
All exports are documented in the [TypeScript definitions](./cuteditor_wasm.d.ts).
|
|
21
21
|
|
|
22
22
|
## Source
|
|
23
23
|
|
|
@@ -25,7 +25,7 @@ Functions are implemented in Rust under [`rust/crates/`](../crates/). This packa
|
|
|
25
25
|
|
|
26
26
|
## Local development
|
|
27
27
|
|
|
28
|
-
The web app depends on the published
|
|
28
|
+
The web app depends on the published `@ifor-lux/cuteditor-wasm` package by default. If you are editing the WASM source in this repo and want `apps/web` to use your local build instead:
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
31
|
# From the repo root
|
|
@@ -35,7 +35,7 @@ cd rust/wasm/pkg
|
|
|
35
35
|
bun link
|
|
36
36
|
|
|
37
37
|
cd ../../../apps/web
|
|
38
|
-
bun link
|
|
38
|
+
bun link @ifor-lux/cuteditor-wasm
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
While you work, rebuild on changes from the repo root:
|
package/cuteditor_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@ifor-lux/cuteditor-wasm",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"description": "Shared video editor logic compiled to WebAssembly",
|
|
5
|
+
"version": "0.2.12",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/opencut/opencut"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"cuteditor_wasm_bg.wasm",
|
|
13
|
+
"cuteditor_wasm.js",
|
|
14
|
+
"cuteditor_wasm_bg.js",
|
|
15
|
+
"cuteditor_wasm.d.ts"
|
|
16
|
+
],
|
|
17
|
+
"main": "cuteditor_wasm.js",
|
|
18
|
+
"types": "cuteditor_wasm.d.ts",
|
|
19
|
+
"sideEffects": [
|
|
20
|
+
"./cuteditor_wasm.js",
|
|
21
|
+
"./snippets/*"
|
|
22
|
+
]
|
|
23
|
+
}
|