hdrify-react 0.10.1 → 0.12.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/README.md +28 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
# hdrify-react
|
|
2
2
|
|
|
3
|
+
<img src="https://hdrify.benhouston3d.com/logo192.png" alt="HDRify logo" width="192" height="192">
|
|
4
|
+
|
|
5
|
+
[![NPM Package][npm]][npm-url]
|
|
6
|
+
[![NPM Downloads][npm-downloads]][npmtrends-url]
|
|
7
|
+
[![Tests][tests-badge]][tests-url]
|
|
8
|
+
[![Coverage][coverage-badge]][coverage-url]
|
|
9
|
+
|
|
3
10
|
React component for displaying HDR images from [hdrify](https://www.npmjs.com/package/hdrify). Accepts `HdrifyImage` (returned by `readHdr`, `readExr`, `readJpegGainMap`) and renders with configurable tone mapping and exposure.
|
|
4
11
|
|
|
12
|
+
**Related packages:** [hdrify](https://www.npmjs.com/package/hdrify) (core library) · [hdrify-cli](https://www.npmjs.com/package/hdrify-cli) (CLI tool)
|
|
13
|
+
|
|
14
|
+
An **online demo** is available at **[https://hdrify.benhouston3d.com](https://hdrify.benhouston3d.com)** — HDR, EXR, and Ultra HDR viewer and converter built with this component; try it in your browser.
|
|
15
|
+
|
|
5
16
|
## Installation
|
|
6
17
|
|
|
7
18
|
```sh
|
|
@@ -33,3 +44,20 @@ const hdrifyImage: HdrifyImage = readExr(buffer);
|
|
|
33
44
|
| `exposure` | `number` | Exposure value (1.0 = nominal) |
|
|
34
45
|
| `className` | `string` | Optional CSS class for the canvas |
|
|
35
46
|
| `forwardedRef` | `RefObject<HTMLCanvasElement \| null>` | Optional ref for canvas access (e.g. `toBlob`) |
|
|
47
|
+
|
|
48
|
+
## License
|
|
49
|
+
|
|
50
|
+
MIT
|
|
51
|
+
|
|
52
|
+
## Author
|
|
53
|
+
|
|
54
|
+
[Ben Houston](https://benhouston3d.com), Sponsored by [Land of Assets](https://landofassets.com)
|
|
55
|
+
|
|
56
|
+
[npm]: https://img.shields.io/npm/v/hdrify-react
|
|
57
|
+
[npm-url]: https://www.npmjs.com/package/hdrify-react
|
|
58
|
+
[npm-downloads]: https://img.shields.io/npm/dw/hdrify-react
|
|
59
|
+
[npmtrends-url]: https://www.npmtrends.com/hdrify-react
|
|
60
|
+
[tests-badge]: https://github.com/bhouston/hdrify/workflows/Tests/badge.svg
|
|
61
|
+
[tests-url]: https://github.com/bhouston/hdrify/actions/workflows/test.yml
|
|
62
|
+
[coverage-badge]: https://codecov.io/gh/bhouston/hdrify/branch/main/graph/badge.svg
|
|
63
|
+
[coverage-url]: https://codecov.io/gh/bhouston/hdrify
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hdrify-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "React component for displaying HDR HdrifyImage with tone mapping and exposure",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dev": "tsgo --watch"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"hdrify": "^0.
|
|
34
|
+
"hdrify": "^0.12.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"react": "^18.0.0 || ^19.0.0",
|