New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@monogrid/gainmap-js

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@monogrid/gainmap-js - npm Package Compare versions

Comparing version 3.0.5 to 3.0.6

dist/_commonjsHelpers-UqyNh5ZN.js

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [3.0.6](https://github.com/MONOGRID/gainmap-js/compare/v3.0.5...v3.0.6) (2024-09-03)
### Bug Fixes
* remove LogLuv following threejs removal https://github.com/mrdoob/three.js/pull/29144 ([1df2154](https://github.com/MONOGRID/gainmap-js/commit/1df2154dce59aff39439eb4974c42b55eddc862b))
## [3.0.5](https://github.com/MONOGRID/gainmap-js/compare/v3.0.4...v3.0.5) (2024-04-03)

@@ -2,0 +9,0 @@

3

dist/core/get-data-texture.d.ts
import { DataTexture } from 'three';
import { EXR } from 'three/examples/jsm/loaders/EXRLoader';
import { LogLuv } from 'three/examples/jsm/loaders/LogLuvLoader';
import { RGBE } from 'three/examples/jsm/loaders/RGBELoader';

@@ -14,2 +13,2 @@ /**

*/
export declare const getDataTexture: (image: EXR | RGBE | LogLuv | DataTexture) => DataTexture;
export declare const getDataTexture: (image: EXR | RGBE | DataTexture) => DataTexture;

@@ -86,3 +86,3 @@ import { ByteType, ColorSpace, DataTexture, FloatType, HalfFloatType, IntType, Material, ShortType, TextureDataType, UnsignedByteType, UnsignedIntType, WebGLRenderer, WebGLRenderTarget } from 'three';

*
* @params options
* @param options options
* @returns

@@ -89,0 +89,0 @@ */

@@ -71,3 +71,3 @@ import { Mapping, RenderTargetOptions } from 'three';

/**
* @defaultValue {@link UVMapping}
* @defaultValue {@link Mapping}
*/

@@ -74,0 +74,0 @@ mapping?: Mapping;

/**
* @monogrid/gainmap-js v3.0.5
* @monogrid/gainmap-js v3.0.6
* With ❤️, by MONOGRID <rnd@monogrid.com>
*/
import { Q as QuadRenderer } from './QuadRenderer-6HrRQdJM.js';
import { Q as QuadRenderer } from './QuadRenderer-B3h-sJtp.js';
import { ShaderMaterial, Vector3, NoBlending, SRGBColorSpace, LinearSRGBColorSpace, HalfFloatType, Loader, LoadingManager, Texture, UVMapping, ClampToEdgeWrapping, LinearFilter, LinearMipMapLinearFilter, RGBAFormat, UnsignedByteType, FileLoader } from 'three';

@@ -8,0 +8,0 @@

@@ -0,1 +1,2 @@

import { HalfFloatType } from 'three';
import { QuadRenderer } from '../core/QuadRenderer';

@@ -59,2 +60,2 @@ import { GainMapDecoderMaterial } from './materials/GainMapDecoderMaterial';

*/
export declare const decode: (params: DecodeParameters) => QuadRenderer<1016, GainMapDecoderMaterial>;
export declare const decode: (params: DecodeParameters) => InstanceType<typeof QuadRenderer<typeof HalfFloatType, InstanceType<typeof GainMapDecoderMaterial>>>;
/**
* @monogrid/gainmap-js v3.0.5
* @monogrid/gainmap-js v3.0.6
* With ❤️, by MONOGRID <rnd@monogrid.com>
*/
import { c as compress } from './compress-D7K92XO0.js';
import { c as compress } from './compress-CAiPfiRr.js';
import { DataTexture, RGBAFormat, UVMapping, RepeatWrapping, LinearFilter, LinearSRGBColorSpace, ShaderMaterial, Vector3, NoBlending, UnsignedByteType, ACESFilmicToneMapping, LinearToneMapping, CineonToneMapping, ReinhardToneMapping, SRGBColorSpace, Vector2, WebGLRenderTarget, NearestFilter, ClampToEdgeWrapping, FloatType, DataUtils } from 'three';
import { Q as QuadRenderer } from './QuadRenderer-6HrRQdJM.js';
import { Q as QuadRenderer } from './QuadRenderer-B3h-sJtp.js';

@@ -697,3 +697,3 @@ /**

*
* @param srcTex
* @param image
* @param mode

@@ -700,0 +700,0 @@ * @param renderer

import { DataTexture, WebGLRenderer } from 'three';
import { EXR } from 'three/examples/jsm/loaders/EXRLoader';
import { LogLuv } from 'three/examples/jsm/loaders/LogLuvLoader';
import { RGBE } from 'three/examples/jsm/loaders/RGBELoader';

@@ -10,3 +9,3 @@ /**

*
* @param srcTex
* @param image
* @param mode

@@ -16,2 +15,2 @@ * @param renderer

*/
export declare const findTextureMinMax: (image: EXR | RGBE | LogLuv | DataTexture, mode?: 'min' | 'max', renderer?: WebGLRenderer) => number[];
export declare const findTextureMinMax: (image: EXR | RGBE | DataTexture, mode?: "min" | "max", renderer?: WebGLRenderer) => number[];

@@ -1,2 +0,2 @@

import { DataTexture, ToneMapping, WebGLRenderer } from 'three';
import { DataTexture, ToneMapping, UnsignedByteType, WebGLRenderer } from 'three';
import { QuadRenderer } from '../core/QuadRenderer';

@@ -17,2 +17,2 @@ import { QuadRendererTextureOptions } from '../decode';

*/
export declare const getSDRRendition: (hdrTexture: DataTexture, renderer?: WebGLRenderer, toneMapping?: ToneMapping, renderTargetOptions?: QuadRendererTextureOptions) => QuadRenderer<1009, SDRMaterial>;
export declare const getSDRRendition: (hdrTexture: DataTexture, renderer?: WebGLRenderer, toneMapping?: ToneMapping, renderTargetOptions?: QuadRendererTextureOptions) => InstanceType<typeof QuadRenderer<typeof UnsignedByteType, InstanceType<typeof SDRMaterial>>>;
import { type DataTexture, ToneMapping, WebGLRenderer } from 'three';
import { type EXR } from 'three/examples/jsm/loaders/EXRLoader';
import { type LogLuv } from 'three/examples/jsm/loaders/LogLuvLoader';
import { type RGBE } from 'three/examples/jsm/loaders/RGBELoader';

@@ -74,3 +73,3 @@ import { QuadRendererTextureOptions } from '../decode';

*/
image: EXR | RGBE | LogLuv | DataTexture;
image: EXR | RGBE | DataTexture;
/**

@@ -105,3 +104,3 @@ * Optional WebGLRenderer

*/
export type HDRRawImageBuffer = EXR['data'] | RGBE['data'] | LogLuv['data'];
export type HDRRawImageBuffer = EXR['data'] | RGBE['data'];
/**

@@ -108,0 +107,0 @@ * Raw HDR image data

@@ -26,3 +26,3 @@ import { GainMapMetadata } from '../core/types';

parsedMetadata: GainMapMetadata;
metadata: string | Uint8ClampedArray | Int8Array | ArrayBuffer | Uint8Array;
metadata: ArrayBuffer | Uint8Array | Uint8ClampedArray | Int8Array | string;
success: boolean;

@@ -29,0 +29,0 @@ errorMessage: any;

/**
* @monogrid/gainmap-js v3.0.5
* @monogrid/gainmap-js v3.0.6
* With ❤️, by MONOGRID <rnd@monogrid.com>
*/
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-Bp8wfxdl.js';
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-UqyNh5ZN.js';

@@ -8,0 +8,0 @@ var lib$1;

/**
* @monogrid/gainmap-js v3.0.5
* @monogrid/gainmap-js v3.0.6
* With ❤️, by MONOGRID <rnd@monogrid.com>
*/
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-Bp8wfxdl.js';
import { c as compress } from './compress-D7K92XO0.js';
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-UqyNh5ZN.js';
import { c as compress } from './compress-CAiPfiRr.js';

@@ -9,0 +9,0 @@ var isPromise$2 = {exports: {}};

{
"name": "@monogrid/gainmap-js",
"version": "3.0.5",
"version": "3.0.6",
"description": "A Javascript (TypeScript) Port of Adobe Gainmap Technology for storing HDR Images using an SDR Image + a gain map",

@@ -88,3 +88,3 @@ "homepage": "https://github.com/MONOGRID/gainmap-js#readme",

"test:startserver": "rollup -c && servez",
"test:docker": "docker run --rm --network host -v $(pwd):/work -w /work -it -u $(id -u ${USER}):$(id -g ${USER}) mcr.microsoft.com/playwright:v1.42.1-jammy /bin/bash",
"test:docker": "docker run --rm --network host -v $(pwd):/work -w /work -it -u $(id -u ${USER}):$(id -g ${USER}) mcr.microsoft.com/playwright:v1.46.0-jammy /bin/bash",
"test:codegen": "playwright codegen http://localhost:8080",

@@ -114,4 +114,4 @@ "prepack": "npm run build",

"devDependencies": {
"@playwright/test": "^1.42.1",
"@rollup/plugin-commonjs": "^25.0.7",
"@playwright/test": "^1.46.0",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-json": "^6.1.0",

@@ -122,15 +122,15 @@ "@rollup/plugin-node-resolve": "^15.2.3",

"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^12.0.0",
"@semantic-release/commit-analyzer": "^13.0.0",
"@semantic-release/git": "github:semantic-release/git",
"@semantic-release/github": "^10.0.2",
"@semantic-release/npm": "^12.0.0",
"@semantic-release/release-notes-generator": "^13.0.0",
"@types/node": "^20.12.2",
"@types/three": "^0.163.0",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"@semantic-release/github": "^10.1.3",
"@semantic-release/npm": "^12.0.1",
"@semantic-release/release-notes-generator": "^14.0.1",
"@types/node": "^20.14.9",
"@types/three": "^0.168.0",
"@typescript-eslint/eslint-plugin": "^7.15.0",
"@typescript-eslint/parser": "^7.15.0",
"concurrently": "^8.2.2",
"conventional-changelog-conventionalcommits": "^7.0.2",
"conventional-changelog-conventionalcommits": "^8.0.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.57.0",
"eslint": "^8.56.0",
"eslint-config-mdcs": "^5.0.0",

@@ -142,19 +142,19 @@ "eslint-config-standard": "^17.1.0",

"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-promise": "^6.4.0",
"eslint-plugin-simple-import-sort": "^12.0.0",
"eslint-plugin-unused-imports": "^3.1.0",
"nyc": "^15.1.0",
"rollup": "^4.13.2",
"eslint-plugin-unused-imports": "^3.2.0",
"nyc": "^17.0.0",
"rollup": "^4.20.0",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-istanbul": "^5.0.0",
"rollup-plugin-license": "^3.3.1",
"semantic-release": "^23.0.6",
"servez": "^2.1.4",
"sharp": "^0.33.3",
"three": "^0.163.0",
"typedoc": "^0.25.12",
"typedoc-github-wiki-theme": "^1.1.0",
"typedoc-plugin-markdown": "^3.17.1",
"typescript": "^5.4.3"
"rollup-plugin-license": "^3.5.2",
"semantic-release": "^24.0.0",
"servez": "^2.2.3",
"sharp": "^0.33.4",
"three": "^0.168.0",
"typedoc": "^0.26.5",
"typedoc-github-wiki-theme": "^2.0.0",
"typedoc-plugin-markdown": "^4.2.3",
"typescript": "^5.5.4"
},

@@ -161,0 +161,0 @@ "browserslist": [

@@ -71,3 +71,2 @@ # gainmap-js

EquirectangularReflectionMapping,
LinearFilter,
Mesh,

@@ -96,3 +95,2 @@ MeshBasicMaterial,

// Starting from three.js r159

@@ -107,7 +105,5 @@ // `result.renderTarget.texture` can

// result must be manually disposed
// when you are done using it
result.dispose()
```

@@ -128,3 +124,2 @@

EquirectangularReflectionMapping,
LinearFilter,
Mesh,

@@ -153,3 +148,2 @@ MeshBasicMaterial,

// Starting from three.js r159

@@ -177,3 +171,3 @@ // `result.renderTarget.texture` can

```ts
import { compress, encode, findTextureMinMax } from '@monogrid/gainmap-js'
import { compress, encode, findTextureMinMax } from '@monogrid/gainmap-js/encode'
import { encodeJPEGMetadata } from '@monogrid/gainmap-js/libultrahdr'

@@ -187,3 +181,3 @@ import { EXRLoader } from 'three/examples/jsm/loaders/EXRLoader.js'

// find RAW RGB Max value of a texture
const textureMax = await findTextureMinMax(image)
const textureMax = findTextureMinMax(image)

@@ -198,13 +192,5 @@ // Encode the gainmap

// obtain the RAW RGBA SDR buffer and create an ImageData
const sdrImageData = new ImageData(
encodingResult.sdr.toArray(),
encodingResult.sdr.width,
encodingResult.sdr.height
)
const sdrImageData = new ImageData(encodingResult.sdr.toArray(), encodingResult.sdr.width, encodingResult.sdr.height)
// obtain the RAW RGBA Gain map buffer and create an ImageData
const gainMapImageData = new ImageData(
encodingResult.gainMap.toArray(),
encodingResult.gainMap.width,
encodingResult.gainMap.height
)
const gainMapImageData = new ImageData(encodingResult.gainMap.toArray(), encodingResult.gainMap.width, encodingResult.gainMap.height)

@@ -244,2 +230,8 @@ // parallel compress the RAW buffers into the specified mimeType

// `jpeg` will be an `Uint8Array` which can be saved somewhere
// encoder must be manually disposed
// when no longer needed
encodingResult.gainMap.dispose()
encodingResult.sdr.dispose()
```

@@ -265,6 +257,2 @@

Hi, thanks for reporting this.
I'm afraid this is a documentation issue on my side, I'm going to update the README after resolving this
Here's a rough draft, let me know if it works for you (I already pushed the `rollup.config.decodeonly.mjs`)
## Building with full encoding support (libultrahdr-wasm)

@@ -271,0 +259,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc