@monogrid/gainmap-js 1.0.2 → 1.1.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.
- package/CHANGELOG.md +15 -0
- package/README.md +103 -19
- package/dist/LoaderBase-eee19701.js +382 -0
- package/dist/_commonjsHelpers-1789f0cf.js +1 -1
- package/dist/compress-a4b59cab.js +1 -1
- package/dist/decode.d.ts +25 -6
- package/dist/encode-utils/get-sdr-rendition.d.ts +2 -2
- package/dist/encode.d.ts +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +189 -258
- package/dist/index.umd.js +331 -27
- package/dist/libultrahdr/decode-jpeg-metadata.d.ts +31 -0
- package/dist/libultrahdr/encode-jpeg-metadata.d.ts +83 -0
- package/dist/libultrahdr/library.d.ts +9 -0
- package/dist/libultrahdr-esm.wasm +0 -0
- package/dist/libultrahdr.d.ts +4 -128
- package/dist/libultrahdr.js +322 -278
- package/dist/libultrahdr.umd.js +687 -271
- package/dist/loaders/GainMapLoader.d.ts +68 -0
- package/dist/loaders/JPEGRLoader.d.ts +60 -0
- package/dist/loaders/LoaderBase.d.ts +27 -0
- package/dist/materials/GainMapDecoderMaterial.d.ts +44 -1
- package/dist/materials/GainMapEncoderMaterial.d.ts +29 -2
- package/dist/types.d.ts +26 -6
- package/dist/utils/QuadRenderer.d.ts +8 -1
- package/dist/worker-interface.js +1 -1
- package/dist/worker-interface.umd.js +1 -1
- package/dist/worker-types.d.ts +1 -1
- package/dist/worker.js +1 -1
- package/dist/worker.umd.js +1 -1
- package/libultrahdr-wasm/build/libultrahdr-debug.js +156 -182
- package/libultrahdr-wasm/build/libultrahdr-debug.wasm +0 -0
- package/libultrahdr-wasm/build/libultrahdr-esm.js +153 -182
- package/libultrahdr-wasm/build/libultrahdr-esm.wasm +0 -0
- package/libultrahdr-wasm/build/libultrahdr.js +151 -180
- package/libultrahdr-wasm/build/libultrahdr.wasm +0 -0
- package/package.json +1 -1
- package/examples/README.md +0 -3
- package/examples/compress.ts +0 -43
- package/examples/decode-from-jpeg.ts +0 -40
- package/examples/decode-from-separate-data.ts +0 -41
- package/examples/decode-to-datatexture.ts +0 -65
- package/examples/encode-and-compress.ts +0 -29
- package/examples/encode-jpeg-metadata.ts +0 -57
- package/examples/encode.ts +0 -28
- package/examples/globals.d.ts +0 -6
- package/examples/worker.ts +0 -41
- package/reports/eslint-examples.json +0 -1
- package/reports/eslint-src.json +0 -1
- package/reports/eslint-tests.json +0 -1
- package/reports/junit.xml +0 -35
- package/reports/typecheck-examples.log +0 -0
- package/reports/typecheck-tests.log +0 -0
- package/reports/typecheck.log +0 -0
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/* eslint-disable unused-imports/no-unused-vars */
|
|
2
|
-
|
|
3
|
-
import { decode } from '@monogrid/gainmap-js'
|
|
4
|
-
import { decodeJPEGMetadata } from '@monogrid/gainmap-js/libultrahdr'
|
|
5
|
-
import {
|
|
6
|
-
DataTexture,
|
|
7
|
-
HalfFloatType,
|
|
8
|
-
LinearFilter,
|
|
9
|
-
LinearMipMapLinearFilter,
|
|
10
|
-
Mesh,
|
|
11
|
-
MeshBasicMaterial,
|
|
12
|
-
NoColorSpace,
|
|
13
|
-
PerspectiveCamera,
|
|
14
|
-
PlaneGeometry,
|
|
15
|
-
RepeatWrapping,
|
|
16
|
-
RGBAFormat,
|
|
17
|
-
Scene,
|
|
18
|
-
UVMapping,
|
|
19
|
-
WebGLRenderer
|
|
20
|
-
} from 'three'
|
|
21
|
-
|
|
22
|
-
// fetch a JPEG image containing a gainmap as ArrayBuffer
|
|
23
|
-
const gainmap = await (await fetch('gainmap.jpeg')).arrayBuffer()
|
|
24
|
-
|
|
25
|
-
// extract data from the JPEG
|
|
26
|
-
const { sdr, gainMap, parsedMetadata } = await decodeJPEGMetadata(new Uint8Array(gainmap))
|
|
27
|
-
|
|
28
|
-
// restore the HDR texture
|
|
29
|
-
// !!!
|
|
30
|
-
// NOTICE THE ABSCENCE
|
|
31
|
-
// OF THE `renderer`parameter
|
|
32
|
-
// !!!
|
|
33
|
-
const result = await decode({
|
|
34
|
-
sdr,
|
|
35
|
-
gainMap,
|
|
36
|
-
// this will restore the full HDR range
|
|
37
|
-
maxDisplayBoost: Math.pow(2, parsedMetadata.hdrCapacityMax),
|
|
38
|
-
...parsedMetadata
|
|
39
|
-
})
|
|
40
|
-
|
|
41
|
-
// create the datatexture from the result array
|
|
42
|
-
const map = new DataTexture(
|
|
43
|
-
result.toArray(), // get data
|
|
44
|
-
result.width, // width is provided
|
|
45
|
-
result.height, // height is provided
|
|
46
|
-
RGBAFormat, // must be RGBAFormat
|
|
47
|
-
HalfFloatType, // must be HalfFloatType
|
|
48
|
-
UVMapping,
|
|
49
|
-
RepeatWrapping,
|
|
50
|
-
RepeatWrapping,
|
|
51
|
-
LinearFilter,
|
|
52
|
-
LinearMipMapLinearFilter,
|
|
53
|
-
1,
|
|
54
|
-
NoColorSpace // must be NoColorSpace
|
|
55
|
-
)
|
|
56
|
-
|
|
57
|
-
const scene = new Scene()
|
|
58
|
-
const mesh = new Mesh(
|
|
59
|
-
new PlaneGeometry(),
|
|
60
|
-
new MeshBasicMaterial({ map })
|
|
61
|
-
)
|
|
62
|
-
scene.add(mesh)
|
|
63
|
-
|
|
64
|
-
const renderer = new WebGLRenderer()
|
|
65
|
-
renderer.render(scene, new PerspectiveCamera())
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/* eslint-disable unused-imports/no-unused-vars */
|
|
2
|
-
import { encodeAndCompress, findTextureMinMax } from '@monogrid/gainmap-js'
|
|
3
|
-
import { encodeJPEGMetadata } from '@monogrid/gainmap-js/libultrahdr'
|
|
4
|
-
import { EXRLoader } from 'three/examples/jsm/loaders/EXRLoader.js'
|
|
5
|
-
|
|
6
|
-
// load an HDR file
|
|
7
|
-
const loader = new EXRLoader()
|
|
8
|
-
const image = await loader.loadAsync('image.exr')
|
|
9
|
-
|
|
10
|
-
// find RAW RGB Max value of a texture
|
|
11
|
-
const textureMax = await findTextureMinMax(image)
|
|
12
|
-
|
|
13
|
-
// Encode the gainmap
|
|
14
|
-
const encodingResult = await encodeAndCompress({
|
|
15
|
-
image,
|
|
16
|
-
// this will encode the full HDR range
|
|
17
|
-
maxContentBoost: Math.max.apply(this, textureMax),
|
|
18
|
-
mimeType: 'image/jpeg'
|
|
19
|
-
})
|
|
20
|
-
|
|
21
|
-
// embed the compressed images + metadata into a single
|
|
22
|
-
// JPEG file
|
|
23
|
-
const jpeg = await encodeJPEGMetadata({
|
|
24
|
-
...encodingResult,
|
|
25
|
-
sdr: encodingResult.sdr,
|
|
26
|
-
gainMap: encodingResult.gainMap
|
|
27
|
-
})
|
|
28
|
-
|
|
29
|
-
// `jpeg` will be an `Uint8Array` which can be saved somewhere
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/* eslint-disable unused-imports/no-unused-vars */
|
|
2
|
-
import { compress, encode, findTextureMinMax } from '@monogrid/gainmap-js'
|
|
3
|
-
import { encodeJPEGMetadata } from '@monogrid/gainmap-js/libultrahdr'
|
|
4
|
-
import { EXRLoader } from 'three/examples/jsm/loaders/EXRLoader.js'
|
|
5
|
-
|
|
6
|
-
// load an HDR file
|
|
7
|
-
const loader = new EXRLoader()
|
|
8
|
-
const image = await loader.loadAsync('image.exr')
|
|
9
|
-
|
|
10
|
-
// find RAW RGB Max value of a texture
|
|
11
|
-
const textureMax = await findTextureMinMax(image)
|
|
12
|
-
|
|
13
|
-
// Encode the gainmap
|
|
14
|
-
const encodingResult = encode({
|
|
15
|
-
image,
|
|
16
|
-
// this will encode the full HDR range
|
|
17
|
-
maxContentBoost: Math.max.apply(this, textureMax)
|
|
18
|
-
})
|
|
19
|
-
|
|
20
|
-
// obtain the RAW RGBA SDR buffer and create an ImageData
|
|
21
|
-
const sdrImageData = new ImageData(encodingResult.sdr.toArray(), encodingResult.sdr.width, encodingResult.sdr.height)
|
|
22
|
-
// obtain the RAW RGBA Gain map buffer and create an ImageData
|
|
23
|
-
const gainMapImageData = new ImageData(encodingResult.gainMap.toArray(), encodingResult.gainMap.width, encodingResult.gainMap.height)
|
|
24
|
-
|
|
25
|
-
// parallel compress the RAW buffers into the specified mimeType
|
|
26
|
-
const mimeType = 'image/jpeg'
|
|
27
|
-
const quality = 0.9
|
|
28
|
-
|
|
29
|
-
const [sdr, gainMap] = await Promise.all([
|
|
30
|
-
compress({
|
|
31
|
-
source: sdrImageData,
|
|
32
|
-
mimeType,
|
|
33
|
-
quality,
|
|
34
|
-
flipY: true // output needs to be flipped
|
|
35
|
-
}),
|
|
36
|
-
compress({
|
|
37
|
-
source: gainMapImageData,
|
|
38
|
-
mimeType,
|
|
39
|
-
quality,
|
|
40
|
-
flipY: true // output needs to be flipped
|
|
41
|
-
})
|
|
42
|
-
])
|
|
43
|
-
|
|
44
|
-
// obtain the metadata which will be embedded into
|
|
45
|
-
// and XMP tag inside the final JPEG file
|
|
46
|
-
const metadata = encodingResult.getMetadata()
|
|
47
|
-
|
|
48
|
-
// embed the compressed images + metadata into a single
|
|
49
|
-
// JPEG file
|
|
50
|
-
const jpeg = await encodeJPEGMetadata({
|
|
51
|
-
...encodingResult,
|
|
52
|
-
...metadata,
|
|
53
|
-
sdr,
|
|
54
|
-
gainMap
|
|
55
|
-
})
|
|
56
|
-
|
|
57
|
-
// `jpeg` will be an `Uint8Array` which can be saved somewhere
|
package/examples/encode.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/* eslint-disable unused-imports/no-unused-vars */
|
|
2
|
-
import { encode, findTextureMinMax } from '@monogrid/gainmap-js'
|
|
3
|
-
import { EXRLoader } from 'three/examples/jsm/loaders/EXRLoader.js'
|
|
4
|
-
|
|
5
|
-
// load an HDR file
|
|
6
|
-
const loader = new EXRLoader()
|
|
7
|
-
const image = await loader.loadAsync('image.exr')
|
|
8
|
-
|
|
9
|
-
// find RAW RGB Max value of a texture
|
|
10
|
-
const textureMax = await findTextureMinMax(image)
|
|
11
|
-
|
|
12
|
-
// Encode the gainmap
|
|
13
|
-
const encodingResult = encode({
|
|
14
|
-
image,
|
|
15
|
-
// this will encode the full HDR range
|
|
16
|
-
maxContentBoost: Math.max.apply(this, textureMax)
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
// can be re-encoded after changing parameters
|
|
20
|
-
encodingResult.sdr.material.exposure = 0.9
|
|
21
|
-
encodingResult.sdr.render()
|
|
22
|
-
// or
|
|
23
|
-
encodingResult.gainMap.material.gamma = [1.1, 1.1, 1.1]
|
|
24
|
-
encodingResult.gainMap.render()
|
|
25
|
-
|
|
26
|
-
// must be manually disposed
|
|
27
|
-
encodingResult.sdr.dispose()
|
|
28
|
-
encodingResult.gainMap.dispose()
|
package/examples/globals.d.ts
DELETED
package/examples/worker.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/* eslint-disable unused-imports/no-unused-vars */
|
|
2
|
-
import { encodeJPEGMetadata } from '@monogrid/gainmap-js/libultrahdr'
|
|
3
|
-
// this assumes a vite-like bundler understands the `?worker` import
|
|
4
|
-
import GainMapWorker from '@monogrid/gainmap-js/worker?worker'
|
|
5
|
-
import { getPromiseWorker, getWorkerInterface } from '@monogrid/gainmap-js/worker-interface'
|
|
6
|
-
import { EXRLoader } from 'three/examples/jsm/loaders/EXRLoader.js'
|
|
7
|
-
|
|
8
|
-
import { encodeAndCompress } from '../dist/encode'
|
|
9
|
-
import { findTextureMinMax } from '../dist/encode-utils/find-texture-min-max'
|
|
10
|
-
|
|
11
|
-
// turn our Worker into a PromiseWorker
|
|
12
|
-
const promiseWorker = getPromiseWorker(new GainMapWorker())
|
|
13
|
-
// get the interface
|
|
14
|
-
const workerInterface = getWorkerInterface(promiseWorker)
|
|
15
|
-
|
|
16
|
-
// load an HDR file
|
|
17
|
-
const loader = new EXRLoader()
|
|
18
|
-
const image = await loader.loadAsync('image.exr')
|
|
19
|
-
|
|
20
|
-
// find RAW RGB Max value of a texture
|
|
21
|
-
const textureMax = await findTextureMinMax(image)
|
|
22
|
-
|
|
23
|
-
// Encode the gainmap
|
|
24
|
-
const encodingResult = await encodeAndCompress({
|
|
25
|
-
image,
|
|
26
|
-
// this will encode the full HDR range
|
|
27
|
-
maxContentBoost: Math.max.apply(this, textureMax),
|
|
28
|
-
// use our worker for compressing the image
|
|
29
|
-
withWorker: workerInterface,
|
|
30
|
-
mimeType: 'image/jpeg'
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
// embed the compressed images + metadata into a single
|
|
34
|
-
// JPEG file
|
|
35
|
-
const jpeg = await encodeJPEGMetadata({
|
|
36
|
-
...encodingResult,
|
|
37
|
-
sdr: encodingResult.sdr,
|
|
38
|
-
gainMap: encodingResult.gainMap
|
|
39
|
-
})
|
|
40
|
-
|
|
41
|
-
// `jpeg` will be an `Uint8Array` which can be saved somewhere
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"filePath":"/home/runner/work/gainmap-js/gainmap-js/examples/compress.ts","messages":[],"suppressedMessages":[{"ruleId":"unused-imports/no-unused-vars","severity":2,"message":"'sdr' is assigned a value but never used.","line":27,"column":8,"nodeType":"Identifier","messageId":"unusedVar","endLine":27,"endColumn":11,"suppressions":[{"kind":"directive","justification":""}]},{"ruleId":"unused-imports/no-unused-vars","severity":2,"message":"'gainMap' is assigned a value but never used.","line":27,"column":13,"nodeType":"Identifier","messageId":"unusedVar","endLine":27,"endColumn":20,"suppressions":[{"kind":"directive","justification":""}]}],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/examples/decode-from-jpeg.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/examples/decode-from-separate-data.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/examples/decode-to-datatexture.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/examples/encode-and-compress.ts","messages":[],"suppressedMessages":[{"ruleId":"unused-imports/no-unused-vars","severity":2,"message":"'jpeg' is assigned a value but never used.","line":23,"column":7,"nodeType":"Identifier","messageId":"unusedVar","endLine":23,"endColumn":11,"suppressions":[{"kind":"directive","justification":""}]}],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/examples/encode-jpeg-metadata.ts","messages":[],"suppressedMessages":[{"ruleId":"unused-imports/no-unused-vars","severity":2,"message":"'jpeg' is assigned a value but never used.","line":50,"column":7,"nodeType":"Identifier","messageId":"unusedVar","endLine":50,"endColumn":11,"suppressions":[{"kind":"directive","justification":""}]}],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/examples/encode.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/examples/globals.d.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/examples/worker.ts","messages":[],"suppressedMessages":[{"ruleId":"unused-imports/no-unused-vars","severity":2,"message":"'jpeg' is assigned a value but never used.","line":35,"column":7,"nodeType":"Identifier","messageId":"unusedVar","endLine":35,"endColumn":11,"suppressions":[{"kind":"directive","justification":""}]}],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]}]
|
package/reports/eslint-src.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"filePath":"/home/runner/work/gainmap-js/gainmap-js/src/decode.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/src/encode-utils/compress.ts","messages":[],"suppressedMessages":[{"ruleId":"no-undef","severity":2,"message":"'ImageBitmapSource' is not defined.","line":38,"column":26,"nodeType":"Identifier","messageId":"undef","endLine":38,"endColumn":43,"suppressions":[{"kind":"directive","justification":""}]}],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/src/encode-utils/find-texture-min-max.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/src/encode-utils/get-gainmap.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/src/encode-utils/get-sdr-rendition.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/src/encode.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/src/index.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/src/libultrahdr.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/src/materials/GainMapDecoderMaterial.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/src/materials/GainMapEncoderMaterial.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/src/materials/SDRMaterial.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/src/materials/index.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/src/types.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/src/utils/QuadRenderer.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/src/utils/get-data-texture.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/src/worker-interface.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/src/worker-types.ts","messages":[],"suppressedMessages":[{"ruleId":"@typescript-eslint/no-explicit-any","severity":2,"message":"Unexpected any. Specify a different type.","line":28,"column":26,"nodeType":"TSAnyKeyword","messageId":"unexpectedAny","endLine":28,"endColumn":29,"suggestions":[{"messageId":"suggestUnknown","fix":{"range":[818,821],"text":"unknown"},"desc":"Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct."},{"messageId":"suggestNever","fix":{"range":[818,821],"text":"never"},"desc":"Use `never` instead, this is useful when instantiating generic type parameters that you don't need to know the type of."}],"suppressions":[{"kind":"directive","justification":""}]},{"ruleId":"@typescript-eslint/no-explicit-any","severity":2,"message":"Unexpected any. Specify a different type.","line":28,"column":74,"nodeType":"TSAnyKeyword","messageId":"unexpectedAny","endLine":28,"endColumn":77,"suggestions":[{"messageId":"suggestUnknown","fix":{"range":[866,869],"text":"unknown"},"desc":"Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct."},{"messageId":"suggestNever","fix":{"range":[866,869],"text":"never"},"desc":"Use `never` instead, this is useful when instantiating generic type parameters that you don't need to know the type of."}],"suppressions":[{"kind":"directive","justification":""}]}],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/src/worker.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"filePath":"/home/runner/work/gainmap-js/gainmap-js/tests/common.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/tests/encode.test.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/tests/global.d.ts","messages":[],"suppressedMessages":[{"ruleId":"no-var","severity":1,"message":"Unexpected var, use let or const instead.","line":7,"column":3,"nodeType":"VariableDeclaration","messageId":"unexpectedVar","endLine":7,"endColumn":23,"suppressions":[{"kind":"directive","justification":""}]},{"ruleId":"unused-imports/no-unused-vars","severity":2,"message":"'R' is defined but never used.","line":16,"column":31,"nodeType":"Identifier","messageId":"unusedVar","endLine":16,"endColumn":32,"suppressions":[{"kind":"directive","justification":""}]}],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]},{"filePath":"/home/runner/work/gainmap-js/gainmap-js/tests/libultrahdr.test.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[{"ruleId":"no-new-object","replacedBy":["no-object-constructor"]}]}]
|
package/reports/junit.xml
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuites name="jest tests" tests="14" failures="0" errors="0" time="64.573">
|
|
3
|
-
<testsuite name="encoder" errors="0" failures="0" skipped="0" timestamp="2023-11-03T16:23:26" time="61.939" tests="12">
|
|
4
|
-
<testcase classname="encoder encodes memorial.exr to jpg using quality 0.7, tonemapping: 4" name="encoder encodes memorial.exr to jpg using quality 0.7, tonemapping: 4" time="24.332">
|
|
5
|
-
</testcase>
|
|
6
|
-
<testcase classname="encoder encodes memorial.exr to webp using quality 0.7, tonemapping: 4" name="encoder encodes memorial.exr to webp using quality 0.7, tonemapping: 4" time="0.017">
|
|
7
|
-
</testcase>
|
|
8
|
-
<testcase classname="encoder encodes memorial.exr to png using quality 0.7, tonemapping: 4" name="encoder encodes memorial.exr to png using quality 0.7, tonemapping: 4" time="0.714">
|
|
9
|
-
</testcase>
|
|
10
|
-
<testcase classname="encoder encodes memorial.hdr to jpg using quality 0.7, tonemapping: 4" name="encoder encodes memorial.hdr to jpg using quality 0.7, tonemapping: 4" time="0.001">
|
|
11
|
-
</testcase>
|
|
12
|
-
<testcase classname="encoder encodes memorial.hdr to webp using quality 0.7, tonemapping: 4" name="encoder encodes memorial.hdr to webp using quality 0.7, tonemapping: 4" time="0">
|
|
13
|
-
</testcase>
|
|
14
|
-
<testcase classname="encoder encodes memorial.hdr to png using quality 0.7, tonemapping: 4" name="encoder encodes memorial.hdr to png using quality 0.7, tonemapping: 4" time="13.905">
|
|
15
|
-
</testcase>
|
|
16
|
-
<testcase classname="encoder encodes memorial.exr to jpg using quality 0.7, tonemapping: 1" name="encoder encodes memorial.exr to jpg using quality 0.7, tonemapping: 1" time="9.295">
|
|
17
|
-
</testcase>
|
|
18
|
-
<testcase classname="encoder encodes memorial.exr to webp using quality 0.7, tonemapping: 1" name="encoder encodes memorial.exr to webp using quality 0.7, tonemapping: 1" time="0.001">
|
|
19
|
-
</testcase>
|
|
20
|
-
<testcase classname="encoder encodes memorial.exr to png using quality 0.7, tonemapping: 1" name="encoder encodes memorial.exr to png using quality 0.7, tonemapping: 1" time="1.095">
|
|
21
|
-
</testcase>
|
|
22
|
-
<testcase classname="encoder encodes memorial.hdr to jpg using quality 0.7, tonemapping: 1" name="encoder encodes memorial.hdr to jpg using quality 0.7, tonemapping: 1" time="0.55">
|
|
23
|
-
</testcase>
|
|
24
|
-
<testcase classname="encoder encodes memorial.hdr to webp using quality 0.7, tonemapping: 1" name="encoder encodes memorial.hdr to webp using quality 0.7, tonemapping: 1" time="4.077">
|
|
25
|
-
</testcase>
|
|
26
|
-
<testcase classname="encoder encodes memorial.hdr to png using quality 0.7, tonemapping: 1" name="encoder encodes memorial.hdr to png using quality 0.7, tonemapping: 1" time="4.153">
|
|
27
|
-
</testcase>
|
|
28
|
-
</testsuite>
|
|
29
|
-
<testsuite name="wasm" errors="0" failures="0" skipped="0" timestamp="2023-11-03T16:24:28" time="2.512" tests="2">
|
|
30
|
-
<testcase classname="wasm appends an encoding result to a jpeg" name="wasm appends an encoding result to a jpeg" time="0.941">
|
|
31
|
-
</testcase>
|
|
32
|
-
<testcase classname="wasm extracts metadata" name="wasm extracts metadata" time="0.222">
|
|
33
|
-
</testcase>
|
|
34
|
-
</testsuite>
|
|
35
|
-
</testsuites>
|
|
File without changes
|
|
File without changes
|
package/reports/typecheck.log
DELETED
|
File without changes
|