headless-three 1.0.0 → 1.0.1

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.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/index.js +2 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # headless-three
2
2
 
3
- Headless Three.js rendering for Node.js, made simple.
3
+ Headless [Three.js](https://www.npmjs.com/package/three) rendering for Node.js, made simple.
4
4
  Render 3D scenes to images on the server with no browser required.
5
5
  Runs Three.js r162 (the last version with WebGL 1 support) without polluting the global scope.
6
6
 
@@ -11,7 +11,7 @@ Runs Three.js r162 (the last version with WebGL 1 support) without polluting the
11
11
 
12
12
  * Three.js r162 running in an isolated VM context
13
13
  * No global scope pollution
14
- * Works with any canvas library ([skia-canvas](https://www.npmjs.com/package/skia-canvas), [canvas](https://www.npmjs.com/package/canvas), [@napi-rs/canvas](https://www.npmjs.com/package/@napi-rs/canvas))
14
+ * Works with any canvas library ([skia-canvas](https://www.npmjs.com/package/skia-canvas), [@napi-rs/canvas](https://www.npmjs.com/package/@napi-rs/canvas), [canvas](https://www.npmjs.com/package/canvas))
15
15
  * Headless WebGL rendering via [gl](https://www.npmjs.com/package/gl)
16
16
  * Built-in render function with multi-format output (PNG, JPEG, WebP, etc.) via [sharp](https://www.npmjs.com/package/sharp)
17
17
  * Texture loading utility
package/index.js CHANGED
@@ -69,6 +69,8 @@ export default async function({ Canvas, Image, ImageData }) {
69
69
  window,
70
70
  self: window,
71
71
  OffscreenCanvas: Canvas,
72
+ HTMLCanvasElement: Canvas,
73
+ HTMLImageElement: Image,
72
74
  Image,
73
75
  ImageData,
74
76
  Blob: Blob,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "headless-three",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Headless Three.js rendering for Node.js, made simple.",
5
5
  "author": "Ewan Howell <ewanhowell5195> & CCCode",
6
6
  "license": "MIT",