@margoengine/worker 0.0.0-stage → 0.1.0
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/LICENSE +201 -0
- package/NOTICE +4 -0
- package/README.md +84 -3
- package/dist/auto.d.ts +37 -0
- package/dist/auto.js +110 -0
- package/dist/canvas.d.ts +67 -0
- package/dist/canvas.js +157 -0
- package/dist/errors-CDgOgzCd.js +7 -0
- package/dist/index.d.ts +66 -0
- package/dist/index.js +191 -0
- package/dist/rpc.d.ts +101 -0
- package/dist/rpc.js +254 -0
- package/dist/scene-runtime.d.ts +24 -0
- package/dist/scene.worker.d.ts +1 -0
- package/dist/workers/scene.js +1 -0
- package/package.json +61 -6
package/package.json
CHANGED
|
@@ -1,6 +1,61 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@margoengine/worker",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@margoengine/worker",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Runs Margo Engine in a Web Worker on an OffscreenCanvas: canvas transfer, resize, pixel ratio and input forwarding, so heavy scenes never block the page.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"margoengine",
|
|
7
|
+
"webgpu",
|
|
8
|
+
"worker",
|
|
9
|
+
"offscreencanvas",
|
|
10
|
+
"threads"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://margoengine.com",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/scottcampbelldata/margoengine/issues"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/scottcampbelldata/margoengine.git",
|
|
19
|
+
"directory": "packages/worker"
|
|
20
|
+
},
|
|
21
|
+
"license": "Apache-2.0",
|
|
22
|
+
"author": "Scott Campbell",
|
|
23
|
+
"type": "module",
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "node ../../scripts/build-optional.js worker",
|
|
29
|
+
"test": "npm run build && node --test tests/*.test.js",
|
|
30
|
+
"test:gpu": "cd ../.. && node packages/worker/tests/browser-check.mjs",
|
|
31
|
+
"prepack": "npm run build",
|
|
32
|
+
"test:browser:matrix": "cd ../.. && node packages/worker/tests/browser-matrix.mjs --browser=chromium"
|
|
33
|
+
},
|
|
34
|
+
"sideEffects": false,
|
|
35
|
+
"exports": {
|
|
36
|
+
".": {
|
|
37
|
+
"types": "./dist/index.d.ts",
|
|
38
|
+
"import": "./dist/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./canvas": {
|
|
41
|
+
"types": "./dist/canvas.d.ts",
|
|
42
|
+
"import": "./dist/canvas.js"
|
|
43
|
+
},
|
|
44
|
+
"./rpc": {
|
|
45
|
+
"types": "./dist/rpc.d.ts",
|
|
46
|
+
"import": "./dist/rpc.js"
|
|
47
|
+
},
|
|
48
|
+
"./auto": {
|
|
49
|
+
"types": "./dist/auto.d.ts",
|
|
50
|
+
"import": "./dist/auto.js"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"files": [
|
|
54
|
+
"dist",
|
|
55
|
+
"LICENSE",
|
|
56
|
+
"NOTICE"
|
|
57
|
+
],
|
|
58
|
+
"peerDependencies": {
|
|
59
|
+
"@margoengine/core": "^0.1.0"
|
|
60
|
+
}
|
|
61
|
+
}
|