@monogrid/gainmap-js 3.0.2 → 3.0.3
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/CHANGELOG.md +7 -0
- package/dist/{QuadRenderer-Nn9ZcWDa.js → QuadRenderer-vDmOC3x_.js} +3 -3
- package/dist/{_commonjsHelpers-A76t2eR6.js → _commonjsHelpers-QOuTPcZm.js} +1 -1
- package/dist/{compress-_yA6snVA.js → compress-FEb3eYc4.js} +1 -1
- package/dist/core/QuadRenderer.d.ts +2 -2
- package/dist/decode.js +2 -2
- package/dist/decode.umd.js +3 -3
- package/dist/encode.js +3 -3
- package/dist/encode.umd.js +3 -3
- package/dist/libultrahdr-esm.wasm +0 -0
- package/dist/libultrahdr.js +2 -3
- package/dist/libultrahdr.umd.js +2 -3
- package/dist/worker-interface.js +2 -2
- package/dist/worker-interface.umd.js +1 -1
- package/dist/worker.js +3 -3
- package/dist/worker.umd.js +1 -1
- package/libultrahdr-wasm/README.md +2 -2
- package/libultrahdr-wasm/build/libultrahdr-debug.wasm +0 -0
- package/libultrahdr-wasm/build/libultrahdr-esm.wasm +0 -0
- package/libultrahdr-wasm/build/libultrahdr.wasm +0 -0
- package/package.json +20 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [3.0.3](https://github.com/MONOGRID/gainmap-js/compare/v3.0.2...v3.0.3) (2024-02-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **libultrahdr-wasm:** encoding of odd sized images ([#31](https://github.com/MONOGRID/gainmap-js/issues/31)) ([efd52c3](https://github.com/MONOGRID/gainmap-js/commit/efd52c385387d2575c161e243b07369100e8e349))
|
|
7
|
+
|
|
1
8
|
## [3.0.2](https://github.com/MONOGRID/gainmap-js/compare/v3.0.1...v3.0.2) (2024-01-31)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @monogrid/gainmap-js v3.0.
|
|
2
|
+
* @monogrid/gainmap-js v3.0.3
|
|
3
3
|
* With ❤️, by MONOGRID <rnd@monogrid.com>
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -71,9 +71,9 @@ const canReadPixels = (type, renderer, camera, renderTargetOptions) => {
|
|
|
71
71
|
*/
|
|
72
72
|
class QuadRenderer {
|
|
73
73
|
/**
|
|
74
|
+
* Constructs a new QuadRenderer
|
|
74
75
|
*
|
|
75
|
-
* @param
|
|
76
|
-
* @param renderer
|
|
76
|
+
* @param options Parameters for this QuadRenderer
|
|
77
77
|
*/
|
|
78
78
|
constructor(options) {
|
|
79
79
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
@@ -57,9 +57,9 @@ export declare class QuadRenderer<TType extends TextureDataType, TMaterial exten
|
|
|
57
57
|
private _colorSpace;
|
|
58
58
|
private _supportsReadPixels;
|
|
59
59
|
/**
|
|
60
|
+
* Constructs a new QuadRenderer
|
|
60
61
|
*
|
|
61
|
-
* @param
|
|
62
|
-
* @param renderer
|
|
62
|
+
* @param options Parameters for this QuadRenderer
|
|
63
63
|
*/
|
|
64
64
|
constructor(options: QuadRendererOptions<TType, TMaterial>);
|
|
65
65
|
/**
|
package/dist/decode.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @monogrid/gainmap-js v3.0.
|
|
2
|
+
* @monogrid/gainmap-js v3.0.3
|
|
3
3
|
* With ❤️, by MONOGRID <rnd@monogrid.com>
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { Q as QuadRenderer } from './QuadRenderer-
|
|
6
|
+
import { Q as QuadRenderer } from './QuadRenderer-vDmOC3x_.js';
|
|
7
7
|
import { ShaderMaterial, Vector3, NoBlending, SRGBColorSpace, LinearSRGBColorSpace, HalfFloatType, Loader, LoadingManager, Texture, UVMapping, ClampToEdgeWrapping, LinearFilter, LinearMipMapLinearFilter, RGBAFormat, UnsignedByteType, FileLoader } from 'three';
|
|
8
8
|
|
|
9
9
|
const vertexShader = /* glsl */ `
|
package/dist/decode.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @monogrid/gainmap-js v3.0.
|
|
2
|
+
* @monogrid/gainmap-js v3.0.3
|
|
3
3
|
* With ❤️, by MONOGRID <rnd@monogrid.com>
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
*/
|
|
76
76
|
class QuadRenderer {
|
|
77
77
|
/**
|
|
78
|
+
* Constructs a new QuadRenderer
|
|
78
79
|
*
|
|
79
|
-
* @param
|
|
80
|
-
* @param renderer
|
|
80
|
+
* @param options Parameters for this QuadRenderer
|
|
81
81
|
*/
|
|
82
82
|
constructor(options) {
|
|
83
83
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
package/dist/encode.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @monogrid/gainmap-js v3.0.
|
|
2
|
+
* @monogrid/gainmap-js v3.0.3
|
|
3
3
|
* With ❤️, by MONOGRID <rnd@monogrid.com>
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { c as compress } from './compress-
|
|
6
|
+
import { c as compress } from './compress-FEb3eYc4.js';
|
|
7
7
|
import { DataTexture, RGBAFormat, UVMapping, RepeatWrapping, LinearFilter, LinearSRGBColorSpace, ShaderMaterial, Vector3, NoBlending, UnsignedByteType, ACESFilmicToneMapping, LinearToneMapping, CineonToneMapping, ReinhardToneMapping, SRGBColorSpace, Vector2, WebGLRenderTarget, NearestFilter, ClampToEdgeWrapping, FloatType, DataUtils } from 'three';
|
|
8
|
-
import { Q as QuadRenderer } from './QuadRenderer-
|
|
8
|
+
import { Q as QuadRenderer } from './QuadRenderer-vDmOC3x_.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Utility function to obtain a `DataTexture` from various input formats
|
package/dist/encode.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @monogrid/gainmap-js v3.0.
|
|
2
|
+
* @monogrid/gainmap-js v3.0.3
|
|
3
3
|
* With ❤️, by MONOGRID <rnd@monogrid.com>
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -189,9 +189,9 @@
|
|
|
189
189
|
*/
|
|
190
190
|
class QuadRenderer {
|
|
191
191
|
/**
|
|
192
|
+
* Constructs a new QuadRenderer
|
|
192
193
|
*
|
|
193
|
-
* @param
|
|
194
|
-
* @param renderer
|
|
194
|
+
* @param options Parameters for this QuadRenderer
|
|
195
195
|
*/
|
|
196
196
|
constructor(options) {
|
|
197
197
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
Binary file
|
package/dist/libultrahdr.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @monogrid/gainmap-js v3.0.
|
|
2
|
+
* @monogrid/gainmap-js v3.0.3
|
|
3
3
|
* With ❤️, by MONOGRID <rnd@monogrid.com>
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -6527,7 +6527,6 @@ run();
|
|
|
6527
6527
|
|
|
6528
6528
|
);
|
|
6529
6529
|
})();
|
|
6530
|
-
var libultrahdr = Module;
|
|
6531
6530
|
|
|
6532
6531
|
// @ts-expect-error untyped
|
|
6533
6532
|
let library;
|
|
@@ -6540,7 +6539,7 @@ let library;
|
|
|
6540
6539
|
*/
|
|
6541
6540
|
const getLibrary = async () => {
|
|
6542
6541
|
if (!library) {
|
|
6543
|
-
library = await
|
|
6542
|
+
library = await Module();
|
|
6544
6543
|
}
|
|
6545
6544
|
return library;
|
|
6546
6545
|
};
|
package/dist/libultrahdr.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @monogrid/gainmap-js v3.0.
|
|
2
|
+
* @monogrid/gainmap-js v3.0.3
|
|
3
3
|
* With ❤️, by MONOGRID <rnd@monogrid.com>
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -6534,7 +6534,6 @@
|
|
|
6534
6534
|
|
|
6535
6535
|
);
|
|
6536
6536
|
})();
|
|
6537
|
-
var libultrahdr = Module;
|
|
6538
6537
|
|
|
6539
6538
|
// @ts-expect-error untyped
|
|
6540
6539
|
let library;
|
|
@@ -6547,7 +6546,7 @@
|
|
|
6547
6546
|
*/
|
|
6548
6547
|
const getLibrary = async () => {
|
|
6549
6548
|
if (!library) {
|
|
6550
|
-
library = await
|
|
6549
|
+
library = await Module();
|
|
6551
6550
|
}
|
|
6552
6551
|
return library;
|
|
6553
6552
|
};
|
package/dist/worker-interface.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @monogrid/gainmap-js v3.0.
|
|
2
|
+
* @monogrid/gainmap-js v3.0.3
|
|
3
3
|
* With ❤️, by MONOGRID <rnd@monogrid.com>
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-
|
|
6
|
+
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-QOuTPcZm.js';
|
|
7
7
|
|
|
8
8
|
var lib$1;
|
|
9
9
|
var hasRequiredLib$1;
|
package/dist/worker.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @monogrid/gainmap-js v3.0.
|
|
2
|
+
* @monogrid/gainmap-js v3.0.3
|
|
3
3
|
* With ❤️, by MONOGRID <rnd@monogrid.com>
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-
|
|
7
|
-
import { c as compress } from './compress-
|
|
6
|
+
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-QOuTPcZm.js';
|
|
7
|
+
import { c as compress } from './compress-FEb3eYc4.js';
|
|
8
8
|
|
|
9
9
|
var isPromise$2 = {exports: {}};
|
|
10
10
|
|
package/dist/worker.umd.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
WASM version of the [libultrahdr](https://github.com/google/libultrahdr) library.
|
|
4
4
|
|
|
5
|
-
This library is
|
|
5
|
+
This library is primarily intended to be used in conjunction with the [gainmap-js](https://github.com/MONOGRID/gainmap-js) library which is, in turn, focused on providing an alternative lightweight HDR format for WebGL 3D Engines like (three.js)
|
|
6
6
|
|
|
7
7
|
This library is provided "as-is" and not tested nor optimized for general use.
|
|
8
8
|
|
|
@@ -22,7 +22,7 @@ const libraryInstance = await libultrahdr()
|
|
|
22
22
|
// # height: height of the final image
|
|
23
23
|
// # sdr: Uint8Array containing the SDR rendition encoded in jpeg
|
|
24
24
|
// # gainmap: Uint8Array containing the Gainmap encoded in jpeg
|
|
25
|
-
// # metadata: an object
|
|
25
|
+
// # metadata: an object containing the parameters of the gainmap
|
|
26
26
|
|
|
27
27
|
const result = libraryInstance.appendGainMap(
|
|
28
28
|
width, height,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monogrid/gainmap-js",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "A Javascript (TypeScript) Port of Adobe Gainmap Technology for storing HDR Images using an SDR Image + a gain map",
|
|
5
5
|
"homepage": "https://github.com/MONOGRID/gainmap-js#readme",
|
|
6
6
|
"repository": {
|
|
@@ -105,49 +105,49 @@
|
|
|
105
105
|
"promise-worker-transferable": "^1.0.4"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
|
-
"@playwright/test": "^1.
|
|
108
|
+
"@playwright/test": "^1.41.1",
|
|
109
109
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
110
|
-
"@rollup/plugin-json": "^6.0
|
|
110
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
111
111
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
112
112
|
"@rollup/plugin-terser": "^0.4.4",
|
|
113
|
-
"@rollup/plugin-typescript": "^11.1.
|
|
113
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
114
114
|
"@semantic-release/changelog": "^6.0.3",
|
|
115
115
|
"@semantic-release/commit-analyzer": "^11.1.0",
|
|
116
116
|
"@semantic-release/git": "github:semantic-release/git",
|
|
117
|
-
"@semantic-release/github": "^9.2.
|
|
118
|
-
"@semantic-release/npm": "^11.0.
|
|
117
|
+
"@semantic-release/github": "^9.2.6",
|
|
118
|
+
"@semantic-release/npm": "^11.0.2",
|
|
119
119
|
"@semantic-release/release-notes-generator": "^12.1.0",
|
|
120
|
-
"@types/node": "^20.
|
|
121
|
-
"@types/three": "^0.
|
|
122
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
123
|
-
"@typescript-eslint/parser": "^6.
|
|
120
|
+
"@types/node": "^20.11.15",
|
|
121
|
+
"@types/three": "^0.161.0",
|
|
122
|
+
"@typescript-eslint/eslint-plugin": "^6.20.0",
|
|
123
|
+
"@typescript-eslint/parser": "^6.20.0",
|
|
124
124
|
"concurrently": "^8.2.2",
|
|
125
125
|
"conventional-changelog-conventionalcommits": "^7.0.2",
|
|
126
126
|
"cz-conventional-changelog": "^3.3.0",
|
|
127
|
-
"eslint": "^8.
|
|
127
|
+
"eslint": "^8.56.0",
|
|
128
128
|
"eslint-config-mdcs": "^5.0.0",
|
|
129
129
|
"eslint-config-standard": "^17.0.0",
|
|
130
130
|
"eslint-plugin-compat": "^4.2.0",
|
|
131
131
|
"eslint-plugin-html": "^7.1.0",
|
|
132
|
-
"eslint-plugin-import": "^2.29.
|
|
133
|
-
"eslint-plugin-n": "^16.
|
|
132
|
+
"eslint-plugin-import": "^2.29.1",
|
|
133
|
+
"eslint-plugin-n": "^16.6.2",
|
|
134
134
|
"eslint-plugin-promise": "^6.0.0",
|
|
135
135
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
136
136
|
"eslint-plugin-unused-imports": "^3.0.0",
|
|
137
137
|
"nyc": "^15.1.0",
|
|
138
|
-
"rollup": "^4.6
|
|
138
|
+
"rollup": "^4.9.6",
|
|
139
139
|
"rollup-plugin-copy": "^3.5.0",
|
|
140
140
|
"rollup-plugin-delete": "^2.0.0",
|
|
141
141
|
"rollup-plugin-istanbul": "^5.0.0",
|
|
142
142
|
"rollup-plugin-license": "^3.2.0",
|
|
143
|
-
"semantic-release": "^
|
|
144
|
-
"servez": "^2.1.
|
|
145
|
-
"sharp": "^0.33.
|
|
146
|
-
"three": "^0.
|
|
147
|
-
"typedoc": "^0.25.
|
|
143
|
+
"semantic-release": "^23.0.0",
|
|
144
|
+
"servez": "^2.1.3",
|
|
145
|
+
"sharp": "^0.33.2",
|
|
146
|
+
"three": "^0.161.0",
|
|
147
|
+
"typedoc": "^0.25.7",
|
|
148
148
|
"typedoc-github-wiki-theme": "^1.1.0",
|
|
149
149
|
"typedoc-plugin-markdown": "^3.17.1",
|
|
150
|
-
"typescript": "^5.3.
|
|
150
|
+
"typescript": "^5.3.3"
|
|
151
151
|
},
|
|
152
152
|
"browserslist": [
|
|
153
153
|
"> 1%, not dead, not ie 11, not op_mini all"
|