@margoengine/voxel 0.1.0 → 1.0.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/package.json CHANGED
@@ -1,175 +1,175 @@
1
- {
2
- "name": "@margoengine/voxel",
3
- "version": "0.1.0",
4
- "description": "Voxel worlds: a block-type registry, 32-cubed palette chunks with light bytes, and a chunked world with dirty tracking and change events.",
5
- "keywords": [
6
- "margoengine",
7
- "webgpu",
8
- "3d",
9
- "voxel"
10
- ],
11
- "homepage": "https://margoengine.com",
12
- "bugs": {
13
- "url": "https://github.com/scottcampbelldata/margoengine/issues"
14
- },
15
- "repository": {
16
- "type": "git",
17
- "url": "git+https://github.com/scottcampbelldata/margoengine.git",
18
- "directory": "packages/voxel"
19
- },
20
- "license": "Apache-2.0",
21
- "author": "Scott Campbell",
22
- "type": "module",
23
- "sideEffects": false,
24
- "exports": {
25
- ".": {
26
- "types": "./dist/index.d.ts",
27
- "import": "./dist/index.js"
28
- },
29
- "./query": {
30
- "types": "./dist/query.d.ts",
31
- "import": "./dist/query.js"
32
- },
33
- "./codec": {
34
- "types": "./dist/codec.d.ts",
35
- "import": "./dist/codec.js"
36
- },
37
- "./stream": {
38
- "types": "./dist/stream.d.ts",
39
- "import": "./dist/stream.js"
40
- },
41
- "./generate": {
42
- "types": "./dist/generate.d.ts",
43
- "import": "./dist/generate.js"
44
- },
45
- "./bevel": {
46
- "types": "./dist/bevel.d.ts",
47
- "import": "./dist/bevel.js"
48
- },
49
- "./mesher": {
50
- "types": "./dist/mesher.d.ts",
51
- "import": "./dist/mesher.js"
52
- },
53
- "./light": {
54
- "types": "./dist/light.d.ts",
55
- "import": "./dist/light.js"
56
- },
57
- "./vox": {
58
- "types": "./dist/vox.d.ts",
59
- "import": "./dist/vox.js"
60
- },
61
- "./physics": {
62
- "types": "./dist/physics.d.ts",
63
- "import": "./dist/physics.js"
64
- },
65
- "./granular-mpm": {
66
- "types": "./dist/granular-mpm.d.ts",
67
- "import": "./dist/granular-mpm.js"
68
- },
69
- "./render": {
70
- "types": "./dist/render.d.ts",
71
- "import": "./dist/render.js"
72
- },
73
- "./lightmap": {
74
- "types": "./dist/lightmap.d.ts",
75
- "import": "./dist/lightmap.js"
76
- },
77
- "./lod": {
78
- "types": "./dist/lod.d.ts",
79
- "import": "./dist/lod.js"
80
- },
81
- "./light-worker": {
82
- "types": "./dist/light-worker.d.ts",
83
- "import": "./dist/light-worker.js"
84
- },
85
- "./light-rgb": {
86
- "types": "./dist/light-rgb.d.ts",
87
- "import": "./dist/light-rgb.js"
88
- },
89
- "./fluids": {
90
- "types": "./dist/fluids.d.ts",
91
- "import": "./dist/fluids.js"
92
- },
93
- "./ticks": {
94
- "types": "./dist/ticks.d.ts",
95
- "import": "./dist/ticks.js"
96
- },
97
- "./gpu-mesher": {
98
- "types": "./dist/gpu-mesher.d.ts",
99
- "import": "./dist/gpu-mesher.js"
100
- },
101
- "./smooth": {
102
- "types": "./dist/smooth.d.ts",
103
- "import": "./dist/smooth.js"
104
- },
105
- "./smooth-lod": {
106
- "types": "./dist/smooth-lod.d.ts",
107
- "import": "./dist/smooth-lod.js"
108
- },
109
- "./gi": {
110
- "types": "./dist/gi.d.ts",
111
- "import": "./dist/gi.js"
112
- },
113
- "./debris": {
114
- "types": "./dist/debris.d.ts",
115
- "import": "./dist/debris.js"
116
- },
117
- "./models": {
118
- "types": "./dist/models.d.ts",
119
- "import": "./dist/models.js"
120
- },
121
- "./objects": {
122
- "types": "./dist/objects.d.ts",
123
- "import": "./dist/objects.js"
124
- },
125
- "./wind": {
126
- "types": "./dist/wind.d.ts",
127
- "import": "./dist/wind.js"
128
- }
129
- },
130
- "files": [
131
- "dist",
132
- "LICENSE",
133
- "NOTICE"
134
- ],
135
- "publishConfig": {
136
- "access": "public"
137
- },
138
- "peerDependencies": {
139
- "@margoengine/core": "^0.1.0",
140
- "@margoengine/physics": "^0.1.0",
141
- "@margoengine/materials": "^0.1.0"
142
- },
143
- "peerDependenciesMeta": {
144
- "@margoengine/physics": {
145
- "optional": true
146
- },
147
- "@margoengine/materials": {
148
- "optional": true
149
- }
150
- },
151
- "dependencies": {
152
- "@margoengine/math": "^0.1.0",
153
- "@margoengine/procedural": "^0.1.0"
154
- },
155
- "scripts": {
156
- "build": "node ../../scripts/build-optional.js voxel",
157
- "test": "npm run build && node --test tests/*.test.js",
158
- "prepack": "npm run build",
159
- "test:gpu": "cd ../.. && node packages/voxel/tests/render-browser-check.mjs && node packages/voxel/tests/bevel-browser-check.mjs && node packages/voxel/tests/render-lighting-browser-check.mjs && node packages/voxel/tests/lod-browser-check.mjs && node packages/voxel/tests/light-rgb-browser-check.mjs && node packages/voxel/tests/gpu-mesher-browser-check.mjs && node packages/voxel/tests/smooth-browser-check.mjs && node packages/voxel/tests/smooth-lod-browser-check.mjs && node packages/voxel/tests/gi-browser-check.mjs && node packages/voxel/tests/restore-browser-check.mjs && node packages/voxel/tests/lightmap-restore-browser-check.mjs && node packages/voxel/tests/debris-browser-check.mjs && node packages/voxel/tests/models-browser-check.mjs && node packages/voxel/tests/objects-browser-check.mjs && node packages/voxel/tests/wind-browser-check.mjs",
160
- "test:gpu:slow-compile": "cd ../.. && node packages/voxel/tests/bevel-browser-check.mjs --pipeline-delay=500",
161
- "test:gpu:slow-mesh": "cd ../.. && node packages/voxel/tests/bevel-browser-check.mjs --worker-delay=150"
162
- },
163
- "margo": {
164
- "gpuTestSteps": {
165
- "test:gpu:slow-compile": [
166
- "--samples=4",
167
- "--samples=1"
168
- ],
169
- "test:gpu:slow-mesh": [
170
- "--samples=4",
171
- "--samples=1"
172
- ]
173
- }
174
- }
175
- }
1
+ {
2
+ "name": "@margoengine/voxel",
3
+ "version": "1.0.0",
4
+ "description": "Voxel worlds: a block-type registry, 32-cubed palette chunks with light bytes, and a chunked world with dirty tracking and change events.",
5
+ "keywords": [
6
+ "margoengine",
7
+ "webgpu",
8
+ "3d",
9
+ "voxel"
10
+ ],
11
+ "homepage": "https://margoengine.com",
12
+ "bugs": {
13
+ "url": "https://github.com/scottcampbelldata/margoengine/issues"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/scottcampbelldata/margoengine.git",
18
+ "directory": "packages/voxel"
19
+ },
20
+ "license": "Apache-2.0",
21
+ "author": "Scott Campbell",
22
+ "type": "module",
23
+ "sideEffects": false,
24
+ "exports": {
25
+ ".": {
26
+ "types": "./dist/index.d.ts",
27
+ "import": "./dist/index.js"
28
+ },
29
+ "./query": {
30
+ "types": "./dist/query.d.ts",
31
+ "import": "./dist/query.js"
32
+ },
33
+ "./codec": {
34
+ "types": "./dist/codec.d.ts",
35
+ "import": "./dist/codec.js"
36
+ },
37
+ "./stream": {
38
+ "types": "./dist/stream.d.ts",
39
+ "import": "./dist/stream.js"
40
+ },
41
+ "./generate": {
42
+ "types": "./dist/generate.d.ts",
43
+ "import": "./dist/generate.js"
44
+ },
45
+ "./bevel": {
46
+ "types": "./dist/bevel.d.ts",
47
+ "import": "./dist/bevel.js"
48
+ },
49
+ "./mesher": {
50
+ "types": "./dist/mesher.d.ts",
51
+ "import": "./dist/mesher.js"
52
+ },
53
+ "./light": {
54
+ "types": "./dist/light.d.ts",
55
+ "import": "./dist/light.js"
56
+ },
57
+ "./vox": {
58
+ "types": "./dist/vox.d.ts",
59
+ "import": "./dist/vox.js"
60
+ },
61
+ "./physics": {
62
+ "types": "./dist/physics.d.ts",
63
+ "import": "./dist/physics.js"
64
+ },
65
+ "./granular-mpm": {
66
+ "types": "./dist/granular-mpm.d.ts",
67
+ "import": "./dist/granular-mpm.js"
68
+ },
69
+ "./render": {
70
+ "types": "./dist/render.d.ts",
71
+ "import": "./dist/render.js"
72
+ },
73
+ "./lightmap": {
74
+ "types": "./dist/lightmap.d.ts",
75
+ "import": "./dist/lightmap.js"
76
+ },
77
+ "./lod": {
78
+ "types": "./dist/lod.d.ts",
79
+ "import": "./dist/lod.js"
80
+ },
81
+ "./light-worker": {
82
+ "types": "./dist/light-worker.d.ts",
83
+ "import": "./dist/light-worker.js"
84
+ },
85
+ "./light-rgb": {
86
+ "types": "./dist/light-rgb.d.ts",
87
+ "import": "./dist/light-rgb.js"
88
+ },
89
+ "./fluids": {
90
+ "types": "./dist/fluids.d.ts",
91
+ "import": "./dist/fluids.js"
92
+ },
93
+ "./ticks": {
94
+ "types": "./dist/ticks.d.ts",
95
+ "import": "./dist/ticks.js"
96
+ },
97
+ "./gpu-mesher": {
98
+ "types": "./dist/gpu-mesher.d.ts",
99
+ "import": "./dist/gpu-mesher.js"
100
+ },
101
+ "./smooth": {
102
+ "types": "./dist/smooth.d.ts",
103
+ "import": "./dist/smooth.js"
104
+ },
105
+ "./smooth-lod": {
106
+ "types": "./dist/smooth-lod.d.ts",
107
+ "import": "./dist/smooth-lod.js"
108
+ },
109
+ "./gi": {
110
+ "types": "./dist/gi.d.ts",
111
+ "import": "./dist/gi.js"
112
+ },
113
+ "./debris": {
114
+ "types": "./dist/debris.d.ts",
115
+ "import": "./dist/debris.js"
116
+ },
117
+ "./models": {
118
+ "types": "./dist/models.d.ts",
119
+ "import": "./dist/models.js"
120
+ },
121
+ "./objects": {
122
+ "types": "./dist/objects.d.ts",
123
+ "import": "./dist/objects.js"
124
+ },
125
+ "./wind": {
126
+ "types": "./dist/wind.d.ts",
127
+ "import": "./dist/wind.js"
128
+ }
129
+ },
130
+ "files": [
131
+ "dist",
132
+ "LICENSE",
133
+ "NOTICE"
134
+ ],
135
+ "publishConfig": {
136
+ "access": "public"
137
+ },
138
+ "peerDependencies": {
139
+ "@margoengine/core": "^1.0.0",
140
+ "@margoengine/physics": "^1.0.0",
141
+ "@margoengine/materials": "^1.0.0"
142
+ },
143
+ "peerDependenciesMeta": {
144
+ "@margoengine/physics": {
145
+ "optional": true
146
+ },
147
+ "@margoengine/materials": {
148
+ "optional": true
149
+ }
150
+ },
151
+ "dependencies": {
152
+ "@margoengine/math": "^1.0.0",
153
+ "@margoengine/procedural": "^1.0.0"
154
+ },
155
+ "scripts": {
156
+ "build": "node ../../scripts/build-optional.js voxel",
157
+ "test": "npm run build && node --test tests/*.test.js",
158
+ "prepack": "npm run build",
159
+ "test:gpu": "cd ../.. && node packages/voxel/tests/render-browser-check.mjs && node packages/voxel/tests/bevel-browser-check.mjs && node packages/voxel/tests/render-lighting-browser-check.mjs && node packages/voxel/tests/lod-browser-check.mjs && node packages/voxel/tests/light-rgb-browser-check.mjs && node packages/voxel/tests/gpu-mesher-browser-check.mjs && node packages/voxel/tests/smooth-browser-check.mjs && node packages/voxel/tests/smooth-lod-browser-check.mjs && node packages/voxel/tests/gi-browser-check.mjs && node packages/voxel/tests/restore-browser-check.mjs && node packages/voxel/tests/lightmap-restore-browser-check.mjs && node packages/voxel/tests/debris-browser-check.mjs && node packages/voxel/tests/models-browser-check.mjs && node packages/voxel/tests/objects-browser-check.mjs && node packages/voxel/tests/wind-browser-check.mjs",
160
+ "test:gpu:slow-compile": "cd ../.. && node packages/voxel/tests/bevel-browser-check.mjs --pipeline-delay=500",
161
+ "test:gpu:slow-mesh": "cd ../.. && node packages/voxel/tests/bevel-browser-check.mjs --worker-delay=150"
162
+ },
163
+ "margo": {
164
+ "gpuTestSteps": {
165
+ "test:gpu:slow-compile": [
166
+ "--samples=4",
167
+ "--samples=1"
168
+ ],
169
+ "test:gpu:slow-mesh": [
170
+ "--samples=4",
171
+ "--samples=1"
172
+ ]
173
+ }
174
+ }
175
+ }