@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 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
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 sourceTexture
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;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @monogrid/gainmap-js v3.0.2
2
+ * @monogrid/gainmap-js v3.0.3
3
3
  * With ❤️, by MONOGRID <rnd@monogrid.com>
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @monogrid/gainmap-js v3.0.2
2
+ * @monogrid/gainmap-js v3.0.3
3
3
  * With ❤️, by MONOGRID <rnd@monogrid.com>
4
4
  */
5
5
 
@@ -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 sourceTexture
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
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-Nn9ZcWDa.js';
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 */ `
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @monogrid/gainmap-js v3.0.2
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 sourceTexture
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
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-_yA6snVA.js';
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-Nn9ZcWDa.js';
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
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @monogrid/gainmap-js v3.0.2
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 sourceTexture
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
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @monogrid/gainmap-js v3.0.2
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 libultrahdr();
6542
+ library = await Module();
6544
6543
  }
6545
6544
  return library;
6546
6545
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @monogrid/gainmap-js v3.0.2
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 libultrahdr();
6549
+ library = await Module();
6551
6550
  }
6552
6551
  return library;
6553
6552
  };
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @monogrid/gainmap-js v3.0.2
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-A76t2eR6.js';
6
+ import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-QOuTPcZm.js';
7
7
 
8
8
  var lib$1;
9
9
  var hasRequiredLib$1;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @monogrid/gainmap-js v3.0.2
2
+ * @monogrid/gainmap-js v3.0.3
3
3
  * With ❤️, by MONOGRID <rnd@monogrid.com>
4
4
  */
5
5
 
package/dist/worker.js CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @monogrid/gainmap-js v3.0.2
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-A76t2eR6.js';
7
- import { c as compress } from './compress-_yA6snVA.js';
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
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @monogrid/gainmap-js v3.0.2
2
+ * @monogrid/gainmap-js v3.0.3
3
3
  * With ❤️, by MONOGRID <rnd@monogrid.com>
4
4
  */
5
5
 
@@ -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 primarly intended to be used in conjuction 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)
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 cotaining the parameters of the gainmap
25
+ // # metadata: an object containing the parameters of the gainmap
26
26
 
27
27
  const result = libraryInstance.appendGainMap(
28
28
  width, height,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monogrid/gainmap-js",
3
- "version": "3.0.2",
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.40.1",
108
+ "@playwright/test": "^1.41.1",
109
109
  "@rollup/plugin-commonjs": "^25.0.7",
110
- "@rollup/plugin-json": "^6.0.1",
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.5",
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.4",
118
- "@semantic-release/npm": "^11.0.1",
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.9.0",
121
- "@types/three": "^0.160.0",
122
- "@typescript-eslint/eslint-plugin": "^6.13.1",
123
- "@typescript-eslint/parser": "^6.13.1",
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.55.0",
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.0",
133
- "eslint-plugin-n": "^16.3.1",
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.1",
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": "^22.0.8",
144
- "servez": "^2.1.2",
145
- "sharp": "^0.33.0",
146
- "three": "^0.160.1",
147
- "typedoc": "^0.25.4",
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.2"
150
+ "typescript": "^5.3.3"
151
151
  },
152
152
  "browserslist": [
153
153
  "> 1%, not dead, not ie 11, not op_mini all"