From 9b2b4390feca3a5b6b432ceef0073cb01bc15106 Mon Sep 17 00:00:00 2001 From: Yegor Pelykh Date: Wed, 15 May 2024 18:14:01 +0300 Subject: [PATCH] fix: Imports / exports have been normalized across the entire code base --- src/color/color-float16.ts | 14 +- src/color/color-float32.ts | 12 +- src/color/color-float64.ts | 12 +- src/color/color-int16.ts | 12 +- src/color/color-int32.ts | 12 +- src/color/color-int8.ts | 12 +- src/color/color-rgb8.ts | 2 +- src/color/color-rgba8.ts | 2 +- src/color/color-uint1.ts | 12 +- src/color/color-uint16.ts | 12 +- src/color/color-uint2.ts | 12 +- src/color/color-uint32.ts | 12 +- src/color/color-uint4.ts | 14 +- src/color/color-uint8.ts | 12 +- src/color/color-utils.ts | 32 +- src/color/color.ts | 6 +- src/color/format.ts | 4 +- src/common/array-utils.ts | 6 +- src/common/float16.ts | 2 +- src/common/input-buffer.ts | 10 +- src/common/line.ts | 2 +- src/common/output-buffer.ts | 4 +- src/common/rational.ts | 4 +- src/common/rectangle.ts | 2 +- src/common/string-utils.ts | 2 +- src/draw/draw.ts | 26 +- src/exif/exif-data.ts | 40 +- src/exif/exif-entry.ts | 2 +- src/exif/exif-tag.ts | 2 +- src/exif/ifd-container.ts | 2 +- src/exif/ifd-directory.ts | 40 +- src/exif/ifd-value/ifd-ascii-value.ts | 10 +- src/exif/ifd-value/ifd-byte-value.ts | 10 +- src/exif/ifd-value/ifd-double-value.ts | 10 +- src/exif/ifd-value/ifd-long-value.ts | 10 +- src/exif/ifd-value/ifd-rational-value.ts | 12 +- src/exif/ifd-value/ifd-sbyte-value.ts | 10 +- src/exif/ifd-value/ifd-short-value.ts | 10 +- src/exif/ifd-value/ifd-single-value.ts | 10 +- src/exif/ifd-value/ifd-slong-value.ts | 12 +- src/exif/ifd-value/ifd-srational-value.ts | 14 +- src/exif/ifd-value/ifd-sshort-value.ts | 10 +- src/exif/ifd-value/ifd-undefined-value.ts | 10 +- src/exif/ifd-value/ifd-value.ts | 8 +- src/filter/filter.ts | 38 +- src/filter/separable-kernel.ts | 8 +- src/formats/bmp-decoder.ts | 14 +- src/formats/bmp-encoder.ts | 16 +- src/formats/bmp/bmp-file-header.ts | 4 +- src/formats/bmp/bmp-info.ts | 16 +- src/formats/decode-info.ts | 2 +- src/formats/decoder.ts | 6 +- src/formats/dib-decoder.ts | 6 +- src/formats/encoder.ts | 2 +- src/formats/gif-decoder.ts | 18 +- src/formats/gif-encoder.ts | 24 +- src/formats/gif/gif-color-map.ts | 4 +- src/formats/gif/gif-image-desc.ts | 4 +- src/formats/gif/gif-info.ts | 8 +- src/formats/ico-decoder.ts | 22 +- src/formats/ico-encoder.ts | 2 +- src/formats/ico/ico-bmp-info.ts | 2 +- src/formats/ico/ico-info.ts | 12 +- src/formats/jpeg-decoder.ts | 14 +- src/formats/jpeg-encoder.ts | 18 +- src/formats/jpeg/huffman-parent.ts | 2 +- src/formats/jpeg/huffman-value.ts | 2 +- src/formats/jpeg/jpeg-component.ts | 2 +- src/formats/jpeg/jpeg-data.ts | 36 +- src/formats/jpeg/jpeg-frame.ts | 4 +- src/formats/jpeg/jpeg-huffman.ts | 2 +- src/formats/jpeg/jpeg-info.ts | 4 +- src/formats/jpeg/jpeg-jfif.ts | 2 +- src/formats/jpeg/jpeg-quantize.ts | 14 +- src/formats/jpeg/jpeg-scan.ts | 18 +- src/formats/jpeg/jpeg-utils.ts | 8 +- src/formats/png-decoder.ts | 52 +- src/formats/png-encoder.ts | 28 +- src/formats/png/png-frame.ts | 4 +- src/formats/png/png-info.ts | 8 +- src/formats/pnm-decoder.ts | 16 +- src/formats/pnm/pnm-info.ts | 6 +- src/formats/psd-decoder.ts | 10 +- src/formats/psd/effect/psd-bevel-effect.ts | 2 +- .../psd/effect/psd-drop-shadow-effect.ts | 2 +- .../psd/effect/psd-inner-glow-effect.ts | 2 +- .../psd/effect/psd-inner-shadow-effect.ts | 2 +- .../psd/effect/psd-outer-glow-effect.ts | 2 +- .../psd/effect/psd-solid-fill-effect.ts | 2 +- .../layer-data/psd-layer-additional-data.ts | 4 +- .../psd/layer-data/psd-layer-data-factory.ts | 6 +- .../layer-data/psd-layer-section-divider.ts | 6 +- src/formats/psd/psd-blending-ranges.ts | 2 +- src/formats/psd/psd-channel.ts | 4 +- src/formats/psd/psd-image-resource.ts | 2 +- src/formats/psd/psd-image.ts | 26 +- src/formats/psd/psd-layer.ts | 38 +- src/formats/psd/psd-mask.ts | 2 +- src/formats/pvr-decoder.ts | 20 +- src/formats/pvr-encoder.ts | 20 +- src/formats/pvr/pvr-apple-info.ts | 4 +- src/formats/pvr/pvr-color-bounding-box.ts | 2 +- src/formats/pvr/pvr-color-rgb.ts | 2 +- src/formats/pvr/pvr-color-rgba.ts | 2 +- src/formats/pvr/pvr-packet.ts | 8 +- src/formats/pvr/pvr2-info.ts | 4 +- src/formats/pvr/pvr3-info.ts | 4 +- src/formats/tga-decoder.ts | 14 +- src/formats/tga-encoder.ts | 6 +- src/formats/tga/tga-info.ts | 8 +- src/formats/tiff-decoder.ts | 16 +- src/formats/tiff-encoder.ts | 20 +- src/formats/tiff/tiff-bit-reader.ts | 2 +- src/formats/tiff/tiff-entry.ts | 34 +- src/formats/tiff/tiff-fax-decoder.ts | 4 +- src/formats/tiff/tiff-image.ts | 40 +- src/formats/tiff/tiff-info.ts | 6 +- src/formats/tiff/tiff-lzw-decoder.ts | 4 +- src/formats/webp-decoder.ts | 26 +- src/formats/webp/vp8-band-probas.ts | 4 +- src/formats/webp/vp8-bit-reader.ts | 2 +- src/formats/webp/vp8-filter-header.ts | 2 +- src/formats/webp/vp8-filter.ts | 6 +- src/formats/webp/vp8-proba.ts | 6 +- src/formats/webp/vp8-random.ts | 2 +- src/formats/webp/vp8-segment-header.ts | 2 +- src/formats/webp/vp8.ts | 38 +- src/formats/webp/vp8l-bit-reader.ts | 4 +- src/formats/webp/vp8l-internal.ts | 4 +- src/formats/webp/vp8l-multipliers.ts | 2 +- src/formats/webp/vp8l-transform.ts | 12 +- src/formats/webp/vp8l.ts | 26 +- src/formats/webp/webp-alpha.ts | 12 +- src/formats/webp/webp-filters.ts | 2 +- src/formats/webp/webp-frame.ts | 2 +- src/formats/webp/webp-huffman-tree-group.ts | 6 +- src/formats/webp/webp-huffman-tree.ts | 4 +- src/formats/webp/webp-info-internal.ts | 4 +- src/formats/webp/webp-info.ts | 8 +- src/formats/win-encoder.ts | 10 +- src/image/binary-quantizer.ts | 16 +- src/image/heap-node.ts | 2 +- src/image/icc-profile.ts | 6 +- src/image/image-data-float16.ts | 18 +- src/image/image-data-float32.ts | 16 +- src/image/image-data-float64.ts | 16 +- src/image/image-data-int16.ts | 16 +- src/image/image-data-int32.ts | 18 +- src/image/image-data-int8.ts | 16 +- src/image/image-data-uint1.ts | 16 +- src/image/image-data-uint16.ts | 16 +- src/image/image-data-uint2.ts | 16 +- src/image/image-data-uint32.ts | 16 +- src/image/image-data-uint4.ts | 16 +- src/image/image-data-uint8.ts | 20 +- src/image/image-data.ts | 10 +- src/image/image-utils.ts | 8 +- src/image/image.ts | 72 +-- src/image/neural-quantizer.ts | 18 +- src/image/octree-node.ts | 2 +- src/image/octree-quantizer.ts | 16 +- src/image/palette-float16.ts | 6 +- src/image/palette-float32.ts | 4 +- src/image/palette-float64.ts | 4 +- src/image/palette-int16.ts | 4 +- src/image/palette-int32.ts | 4 +- src/image/palette-int8.ts | 4 +- src/image/palette-uint16.ts | 4 +- src/image/palette-uint32.ts | 4 +- src/image/palette-uint8.ts | 4 +- src/image/palette.ts | 2 +- src/image/pixel-float16.ts | 20 +- src/image/pixel-float32.ts | 18 +- src/image/pixel-float64.ts | 18 +- src/image/pixel-int16.ts | 18 +- src/image/pixel-int32.ts | 18 +- src/image/pixel-int8.ts | 18 +- src/image/pixel-range-iterator.ts | 2 +- src/image/pixel-uint1.ts | 20 +- src/image/pixel-uint16.ts | 18 +- src/image/pixel-uint2.ts | 20 +- src/image/pixel-uint32.ts | 18 +- src/image/pixel-uint4.ts | 20 +- src/image/pixel-uint8.ts | 20 +- src/image/pixel-undefined.ts | 14 +- src/image/pixel.ts | 6 +- src/image/quantizer.ts | 6 +- src/index.ts | 579 +++++++++--------- src/transform/transform.ts | 32 +- 189 files changed, 1353 insertions(+), 1340 deletions(-) diff --git a/src/color/color-float16.ts b/src/color/color-float16.ts index e7b2835..8c44068 100644 --- a/src/color/color-float16.ts +++ b/src/color/color-float16.ts @@ -1,12 +1,12 @@ /** @format */ -import { ArrayUtils } from '../common/array-utils'; -import { Float16 } from '../common/float16'; -import { Palette } from '../image/palette'; -import { Channel } from './channel'; -import { Color, ColorConvertOptions } from './color'; -import { ColorUtils } from './color-utils'; -import { Format } from './format'; +import { ArrayUtils } from '../common/array-utils.js'; +import { Float16 } from '../common/float16.js'; +import { Palette } from '../image/palette.js'; +import { Channel } from './channel.js'; +import { Color, ColorConvertOptions } from './color.js'; +import { ColorUtils } from './color-utils.js'; +import { Format } from './format.js'; /** * A 16-bit floating point color. diff --git a/src/color/color-float32.ts b/src/color/color-float32.ts index 237b004..ef2edf8 100644 --- a/src/color/color-float32.ts +++ b/src/color/color-float32.ts @@ -1,11 +1,11 @@ /** @format */ -import { ArrayUtils } from '../common/array-utils'; -import { Palette } from '../image/palette'; -import { Channel } from './channel'; -import { Color, ColorConvertOptions } from './color'; -import { ColorUtils } from './color-utils'; -import { Format } from './format'; +import { ArrayUtils } from '../common/array-utils.js'; +import { Palette } from '../image/palette.js'; +import { Channel } from './channel.js'; +import { Color, ColorConvertOptions } from './color.js'; +import { ColorUtils } from './color-utils.js'; +import { Format } from './format.js'; /** * A 32-bit floating point color. diff --git a/src/color/color-float64.ts b/src/color/color-float64.ts index 0e47825..a2a10c4 100644 --- a/src/color/color-float64.ts +++ b/src/color/color-float64.ts @@ -1,11 +1,11 @@ /** @format */ -import { ArrayUtils } from '../common/array-utils'; -import { Palette } from '../image/palette'; -import { Channel } from './channel'; -import { Color, ColorConvertOptions } from './color'; -import { ColorUtils } from './color-utils'; -import { Format } from './format'; +import { ArrayUtils } from '../common/array-utils.js'; +import { Palette } from '../image/palette.js'; +import { Channel } from './channel.js'; +import { Color, ColorConvertOptions } from './color.js'; +import { ColorUtils } from './color-utils.js'; +import { Format } from './format.js'; /** * A 64-bit floating point color. diff --git a/src/color/color-int16.ts b/src/color/color-int16.ts index 01137a8..9e9a176 100644 --- a/src/color/color-int16.ts +++ b/src/color/color-int16.ts @@ -1,11 +1,11 @@ /** @format */ -import { ArrayUtils } from '../common/array-utils'; -import { Palette } from '../image/palette'; -import { Channel } from './channel'; -import { Color, ColorConvertOptions } from './color'; -import { ColorUtils } from './color-utils'; -import { Format } from './format'; +import { ArrayUtils } from '../common/array-utils.js'; +import { Palette } from '../image/palette.js'; +import { Channel } from './channel.js'; +import { Color, ColorConvertOptions } from './color.js'; +import { ColorUtils } from './color-utils.js'; +import { Format } from './format.js'; /** * A 16-bit integer color. diff --git a/src/color/color-int32.ts b/src/color/color-int32.ts index b572ec9..19b43aa 100644 --- a/src/color/color-int32.ts +++ b/src/color/color-int32.ts @@ -1,11 +1,11 @@ /** @format */ -import { ArrayUtils } from '../common/array-utils'; -import { Palette } from '../image/palette'; -import { Channel } from './channel'; -import { Color, ColorConvertOptions } from './color'; -import { ColorUtils } from './color-utils'; -import { Format } from './format'; +import { ArrayUtils } from '../common/array-utils.js'; +import { Palette } from '../image/palette.js'; +import { Channel } from './channel.js'; +import { Color, ColorConvertOptions } from './color.js'; +import { ColorUtils } from './color-utils.js'; +import { Format } from './format.js'; /** * A 32-bit integer color. diff --git a/src/color/color-int8.ts b/src/color/color-int8.ts index f4c191c..815eae4 100644 --- a/src/color/color-int8.ts +++ b/src/color/color-int8.ts @@ -1,11 +1,11 @@ /** @format */ -import { ArrayUtils } from '../common/array-utils'; -import { Palette } from '../image/palette'; -import { Channel } from './channel'; -import { Color, ColorConvertOptions } from './color'; -import { ColorUtils } from './color-utils'; -import { Format } from './format'; +import { ArrayUtils } from '../common/array-utils.js'; +import { Palette } from '../image/palette.js'; +import { Channel } from './channel.js'; +import { Color, ColorConvertOptions } from './color.js'; +import { ColorUtils } from './color-utils.js'; +import { Format } from './format.js'; /** * A 8-bit integer color. diff --git a/src/color/color-rgb8.ts b/src/color/color-rgb8.ts index e48920d..8dd1122 100644 --- a/src/color/color-rgb8.ts +++ b/src/color/color-rgb8.ts @@ -1,6 +1,6 @@ /** @format */ -import { ColorUint8 } from './color-uint8'; +import { ColorUint8 } from './color-uint8.js'; export class ColorRgb8 extends ColorUint8 { constructor(r: number, g: number, b: number) { diff --git a/src/color/color-rgba8.ts b/src/color/color-rgba8.ts index 1e0b416..eec619e 100644 --- a/src/color/color-rgba8.ts +++ b/src/color/color-rgba8.ts @@ -1,6 +1,6 @@ /** @format */ -import { ColorUint8 } from './color-uint8'; +import { ColorUint8 } from './color-uint8.js'; export class ColorRgba8 extends ColorUint8 { constructor(r: number, g: number, b: number, a: number) { diff --git a/src/color/color-uint1.ts b/src/color/color-uint1.ts index 6cb58e7..0aee259 100644 --- a/src/color/color-uint1.ts +++ b/src/color/color-uint1.ts @@ -1,11 +1,11 @@ /** @format */ -import { ArrayUtils } from '../common/array-utils'; -import { Palette } from '../image/palette'; -import { Channel } from './channel'; -import { Color, ColorConvertOptions } from './color'; -import { ColorUtils } from './color-utils'; -import { Format } from './format'; +import { ArrayUtils } from '../common/array-utils.js'; +import { Palette } from '../image/palette.js'; +import { Channel } from './channel.js'; +import { Color, ColorConvertOptions } from './color.js'; +import { ColorUtils } from './color-utils.js'; +import { Format } from './format.js'; /** * A 1-bit unsigned int color with channel values in the range [0, 1]. diff --git a/src/color/color-uint16.ts b/src/color/color-uint16.ts index 03723d5..8f20c84 100644 --- a/src/color/color-uint16.ts +++ b/src/color/color-uint16.ts @@ -1,11 +1,11 @@ /** @format */ -import { ArrayUtils } from '../common/array-utils'; -import { Palette } from '../image/palette'; -import { Channel } from './channel'; -import { Color, ColorConvertOptions } from './color'; -import { ColorUtils } from './color-utils'; -import { Format } from './format'; +import { ArrayUtils } from '../common/array-utils.js'; +import { Palette } from '../image/palette.js'; +import { Channel } from './channel.js'; +import { Color, ColorConvertOptions } from './color.js'; +import { ColorUtils } from './color-utils.js'; +import { Format } from './format.js'; /** * A 16-bit unsigned int color with channel values in the range [0, 65535]. diff --git a/src/color/color-uint2.ts b/src/color/color-uint2.ts index fe31608..4af1717 100644 --- a/src/color/color-uint2.ts +++ b/src/color/color-uint2.ts @@ -1,11 +1,11 @@ /** @format */ -import { ArrayUtils } from '../common/array-utils'; -import { Palette } from '../image/palette'; -import { Channel } from './channel'; -import { Color, ColorConvertOptions } from './color'; -import { ColorUtils } from './color-utils'; -import { Format } from './format'; +import { ArrayUtils } from '../common/array-utils.js'; +import { Palette } from '../image/palette.js'; +import { Channel } from './channel.js'; +import { Color, ColorConvertOptions } from './color.js'; +import { ColorUtils } from './color-utils.js'; +import { Format } from './format.js'; /** * A 2-bit unsigned int color with channel values in the range [0, 3]. diff --git a/src/color/color-uint32.ts b/src/color/color-uint32.ts index 541aae2..725daac 100644 --- a/src/color/color-uint32.ts +++ b/src/color/color-uint32.ts @@ -1,11 +1,11 @@ /** @format */ -import { ArrayUtils } from '../common/array-utils'; -import { Palette } from '../image/palette'; -import { Channel } from './channel'; -import { Color, ColorConvertOptions } from './color'; -import { ColorUtils } from './color-utils'; -import { Format } from './format'; +import { ArrayUtils } from '../common/array-utils.js'; +import { Palette } from '../image/palette.js'; +import { Channel } from './channel.js'; +import { Color, ColorConvertOptions } from './color.js'; +import { ColorUtils } from './color-utils.js'; +import { Format } from './format.js'; /** * A 32-bit unsigned int color. diff --git a/src/color/color-uint4.ts b/src/color/color-uint4.ts index 52a77a2..f1427b0 100644 --- a/src/color/color-uint4.ts +++ b/src/color/color-uint4.ts @@ -1,12 +1,12 @@ /** @format */ -import { ArrayUtils } from '../common/array-utils'; -import { MathUtils } from '../common/math-utils'; -import { Palette } from '../image/palette'; -import { Channel } from './channel'; -import { Color, ColorConvertOptions } from './color'; -import { ColorUtils } from './color-utils'; -import { Format } from './format'; +import { ArrayUtils } from '../common/array-utils.js'; +import { MathUtils } from '../common/math-utils.js'; +import { Palette } from '../image/palette.js'; +import { Channel } from './channel.js'; +import { Color, ColorConvertOptions } from './color.js'; +import { ColorUtils } from './color-utils.js'; +import { Format } from './format.js'; /** * A 4-bit unsigned int color with channel values in the range [0, 15]. diff --git a/src/color/color-uint8.ts b/src/color/color-uint8.ts index 7bc8c57..806c7de 100644 --- a/src/color/color-uint8.ts +++ b/src/color/color-uint8.ts @@ -1,11 +1,11 @@ /** @format */ -import { ArrayUtils } from '../common/array-utils'; -import { Palette } from '../image/palette'; -import { Channel } from './channel'; -import { Color, ColorConvertOptions } from './color'; -import { ColorUtils } from './color-utils'; -import { Format } from './format'; +import { ArrayUtils } from '../common/array-utils.js'; +import { Palette } from '../image/palette.js'; +import { Channel } from './channel.js'; +import { Color, ColorConvertOptions } from './color.js'; +import { ColorUtils } from './color-utils.js'; +import { Format } from './format.js'; /** * An 8-bit unsigned int color with channel values in the range [0, 255]. diff --git a/src/color/color-utils.ts b/src/color/color-utils.ts index 291aeaa..202d099 100644 --- a/src/color/color-utils.ts +++ b/src/color/color-utils.ts @@ -1,21 +1,21 @@ /** @format */ -import { MathUtils } from '../common/math-utils'; -import { LibError } from '../error/lib-error'; -import { Color } from './color'; -import { ColorFloat16 } from './color-float16'; -import { ColorFloat32 } from './color-float32'; -import { ColorFloat64 } from './color-float64'; -import { ColorInt16 } from './color-int16'; -import { ColorInt32 } from './color-int32'; -import { ColorInt8 } from './color-int8'; -import { ColorUint1 } from './color-uint1'; -import { ColorUint16 } from './color-uint16'; -import { ColorUint2 } from './color-uint2'; -import { ColorUint32 } from './color-uint32'; -import { ColorUint4 } from './color-uint4'; -import { ColorUint8 } from './color-uint8'; -import { convertFormatValue, Format } from './format'; +import { MathUtils } from '../common/math-utils.js'; +import { LibError } from '../error/lib-error.js'; +import { Color } from './color.js'; +import { ColorFloat16 } from './color-float16.js'; +import { ColorFloat32 } from './color-float32.js'; +import { ColorFloat64 } from './color-float64.js'; +import { ColorInt16 } from './color-int16.js'; +import { ColorInt32 } from './color-int32.js'; +import { ColorInt8 } from './color-int8.js'; +import { ColorUint1 } from './color-uint1.js'; +import { ColorUint16 } from './color-uint16.js'; +import { ColorUint2 } from './color-uint2.js'; +import { ColorUint32 } from './color-uint32.js'; +import { ColorUint4 } from './color-uint4.js'; +import { ColorUint8 } from './color-uint8.js'; +import { convertFormatValue, Format } from './format.js'; export interface ConvertColorOptions { from: Color; diff --git a/src/color/color.ts b/src/color/color.ts index 5c5ad37..9d1459b 100644 --- a/src/color/color.ts +++ b/src/color/color.ts @@ -1,8 +1,8 @@ /** @format */ -import { Palette } from '../image/palette'; -import { Channel } from './channel'; -import { Format } from './format'; +import { Palette } from '../image/palette.js'; +import { Channel } from './channel.js'; +import { Format } from './format.js'; export interface ColorConvertOptions { format?: Format; diff --git a/src/color/format.ts b/src/color/format.ts index c82b2b7..2ce6911 100644 --- a/src/color/format.ts +++ b/src/color/format.ts @@ -1,7 +1,7 @@ /** @format */ -import { MathUtils } from '../common/math-utils'; -import { LibError } from '../error/lib-error'; +import { MathUtils } from '../common/math-utils.js'; +import { LibError } from '../error/lib-error.js'; /** * The format of a color or image. diff --git a/src/common/array-utils.ts b/src/common/array-utils.ts index 3df627c..6c24d6a 100644 --- a/src/common/array-utils.ts +++ b/src/common/array-utils.ts @@ -1,8 +1,8 @@ /** @format */ -import { LibError } from '../error/lib-error'; -import { Rational } from './rational'; -import { TypedArray } from './typings'; +import { LibError } from '../error/lib-error.js'; +import { Rational } from './rational.js'; +import { TypedArray } from './typings.js'; export abstract class ArrayUtils { public static copyInt8( diff --git a/src/common/float16.ts b/src/common/float16.ts index bd0af3d..5694687 100644 --- a/src/common/float16.ts +++ b/src/common/float16.ts @@ -1,6 +1,6 @@ /** @format */ -import { BitUtils } from './bit-utils'; +import { BitUtils } from './bit-utils.js'; /** * A 16-bit floating-point number, used by high-dynamic-range image formats diff --git a/src/common/input-buffer.ts b/src/common/input-buffer.ts index 014aea5..16f00b7 100644 --- a/src/common/input-buffer.ts +++ b/src/common/input-buffer.ts @@ -1,10 +1,10 @@ /** @format */ -import { LibError } from '../error/lib-error'; -import { ArrayUtils } from './array-utils'; -import { BitUtils } from './bit-utils'; -import { StringUtils } from './string-utils'; -import { TypedArray } from './typings'; +import { LibError } from '../error/lib-error.js'; +import { ArrayUtils } from './array-utils.js'; +import { BitUtils } from './bit-utils.js'; +import { StringUtils } from './string-utils.js'; +import { TypedArray } from './typings.js'; export interface InputBufferInitOptions { buffer: T; diff --git a/src/common/line.ts b/src/common/line.ts index 595a42e..3b6bd16 100644 --- a/src/common/line.ts +++ b/src/common/line.ts @@ -1,6 +1,6 @@ /** @format */ -import { Point } from './point'; +import { Point } from './point.js'; export class Line { private _x1: number; diff --git a/src/common/output-buffer.ts b/src/common/output-buffer.ts index 1069af2..9f2517c 100644 --- a/src/common/output-buffer.ts +++ b/src/common/output-buffer.ts @@ -1,7 +1,7 @@ /** @format */ -import { InputBuffer } from './input-buffer'; -import { ArrayUtils } from './array-utils'; +import { InputBuffer } from './input-buffer.js'; +import { ArrayUtils } from './array-utils.js'; export interface OutputBufferInitOptions { bigEndian?: boolean; diff --git a/src/common/rational.ts b/src/common/rational.ts index 3c54547..aaeb3e5 100644 --- a/src/common/rational.ts +++ b/src/common/rational.ts @@ -1,7 +1,7 @@ /** @format */ -import { MathUtils } from './math-utils'; -import { StringUtils } from './string-utils'; +import { MathUtils } from './math-utils.js'; +import { StringUtils } from './string-utils.js'; export class Rational { private _numerator: number; diff --git a/src/common/rectangle.ts b/src/common/rectangle.ts index 875868e..b679956 100644 --- a/src/common/rectangle.ts +++ b/src/common/rectangle.ts @@ -1,6 +1,6 @@ /** @format */ -import { Point } from './point'; +import { Point } from './point.js'; export class Rectangle { private readonly _left; diff --git a/src/common/string-utils.ts b/src/common/string-utils.ts index eea26a4..c967a5f 100644 --- a/src/common/string-utils.ts +++ b/src/common/string-utils.ts @@ -1,6 +1,6 @@ /** @format */ -import { LibError } from '../error/lib-error'; +import { LibError } from '../error/lib-error.js'; export abstract class StringUtils { public static readonly utf8Decoder = new TextDecoder('utf8'); diff --git a/src/draw/draw.ts b/src/draw/draw.ts index d02e64b..638b277 100644 --- a/src/draw/draw.ts +++ b/src/draw/draw.ts @@ -1,18 +1,18 @@ /** @format */ -import { Channel } from '../color/channel'; -import { Color } from '../color/color'; -import { ColorUtils } from '../color/color-utils'; -import { ArrayUtils } from '../common/array-utils'; -import { Line } from '../common/line'; -import { MathUtils } from '../common/math-utils'; -import { Point } from '../common/point'; -import { Rectangle } from '../common/rectangle'; -import { MemoryImage } from '../image/image'; -import { ImageUtils } from '../image/image-utils'; -import { Pixel } from '../image/pixel'; -import { BlendMode } from './blend-mode'; -import { CircleQuadrant } from './circle-quadrant'; +import { Channel } from '../color/channel.js'; +import { Color } from '../color/color.js'; +import { ColorUtils } from '../color/color-utils.js'; +import { ArrayUtils } from '../common/array-utils.js'; +import { Line } from '../common/line.js'; +import { MathUtils } from '../common/math-utils.js'; +import { Point } from '../common/point.js'; +import { Rectangle } from '../common/rectangle.js'; +import { MemoryImage } from '../image/image.js'; +import { ImageUtils } from '../image/image-utils.js'; +import { Pixel } from '../image/pixel.js'; +import { BlendMode } from './blend-mode.js'; +import { CircleQuadrant } from './circle-quadrant.js'; type FillFloodTestPixel = (y: number, x: number) => boolean; type FillFloodMarkPixel = (y: number, x: number) => void; diff --git a/src/exif/exif-data.ts b/src/exif/exif-data.ts index 94c82e7..19e4006 100644 --- a/src/exif/exif-data.ts +++ b/src/exif/exif-data.ts @@ -1,25 +1,25 @@ /** @format */ -import { InputBuffer } from '../common/input-buffer'; -import { OutputBuffer } from '../common/output-buffer'; -import { ExifEntry } from './exif-entry'; -import { ExifImageTags, ExifTagNameToID } from './exif-tag'; -import { IfdContainer } from './ifd-container'; -import { IfdDirectory } from './ifd-directory'; -import { IfdValueType, IfdValueTypeSize } from './ifd-value-type'; -import { IfdAsciiValue } from './ifd-value/ifd-ascii-value'; -import { IfdByteValue } from './ifd-value/ifd-byte-value'; -import { IfdDoubleValue } from './ifd-value/ifd-double-value'; -import { IfdLongValue } from './ifd-value/ifd-long-value'; -import { IfdRationalValue } from './ifd-value/ifd-rational-value'; -import { IfdSByteValue } from './ifd-value/ifd-sbyte-value'; -import { IfdShortValue } from './ifd-value/ifd-short-value'; -import { IfdSingleValue } from './ifd-value/ifd-single-value'; -import { IfdSLongValue } from './ifd-value/ifd-slong-value'; -import { IfdSRationalValue } from './ifd-value/ifd-srational-value'; -import { IfdSShortValue } from './ifd-value/ifd-sshort-value'; -import { IfdUndefinedValue } from './ifd-value/ifd-undefined-value'; -import { IfdValue } from './ifd-value/ifd-value'; +import { InputBuffer } from '../common/input-buffer.js'; +import { OutputBuffer } from '../common/output-buffer.js'; +import { ExifEntry } from './exif-entry.js'; +import { ExifImageTags, ExifTagNameToID } from './exif-tag.js'; +import { IfdContainer } from './ifd-container.js'; +import { IfdDirectory } from './ifd-directory.js'; +import { IfdValueType, IfdValueTypeSize } from './ifd-value-type.js'; +import { IfdAsciiValue } from './ifd-value/ifd-ascii-value.js'; +import { IfdByteValue } from './ifd-value/ifd-byte-value.js'; +import { IfdDoubleValue } from './ifd-value/ifd-double-value.js'; +import { IfdLongValue } from './ifd-value/ifd-long-value.js'; +import { IfdRationalValue } from './ifd-value/ifd-rational-value.js'; +import { IfdSByteValue } from './ifd-value/ifd-sbyte-value.js'; +import { IfdShortValue } from './ifd-value/ifd-short-value.js'; +import { IfdSingleValue } from './ifd-value/ifd-single-value.js'; +import { IfdSLongValue } from './ifd-value/ifd-slong-value.js'; +import { IfdSRationalValue } from './ifd-value/ifd-srational-value.js'; +import { IfdSShortValue } from './ifd-value/ifd-sshort-value.js'; +import { IfdUndefinedValue } from './ifd-value/ifd-undefined-value.js'; +import { IfdValue } from './ifd-value/ifd-value.js'; export class ExifData extends IfdContainer { public get imageIfd(): IfdDirectory { diff --git a/src/exif/exif-entry.ts b/src/exif/exif-entry.ts index 01a6b05..439f0c5 100644 --- a/src/exif/exif-entry.ts +++ b/src/exif/exif-entry.ts @@ -1,6 +1,6 @@ /** @format */ -import { IfdValue } from './ifd-value/ifd-value'; +import { IfdValue } from './ifd-value/ifd-value.js'; export class ExifEntry { private readonly _tag: number; diff --git a/src/exif/exif-tag.ts b/src/exif/exif-tag.ts index 570b9b3..f8aef9b 100644 --- a/src/exif/exif-tag.ts +++ b/src/exif/exif-tag.ts @@ -1,6 +1,6 @@ /** @format */ -import { IfdValueType } from './ifd-value-type'; +import { IfdValueType } from './ifd-value-type.js'; export interface ExifTagInitOptions { name: string; diff --git a/src/exif/ifd-container.ts b/src/exif/ifd-container.ts index d87b984..1f491c0 100644 --- a/src/exif/ifd-container.ts +++ b/src/exif/ifd-container.ts @@ -1,6 +1,6 @@ /** @format */ -import { IfdDirectory } from './ifd-directory'; +import { IfdDirectory } from './ifd-directory.js'; export class IfdContainer { protected directories: Map; diff --git a/src/exif/ifd-directory.ts b/src/exif/ifd-directory.ts index a9ce8c8..de35f9a 100644 --- a/src/exif/ifd-directory.ts +++ b/src/exif/ifd-directory.ts @@ -1,25 +1,25 @@ /** @format */ -import { Rational } from '../common/rational'; -import { ExifImageTags, ExifTagNameToID } from './exif-tag'; -import { IfdValueType } from './ifd-value-type'; -import { IfdContainer } from './ifd-container'; -import { IfdValue } from './ifd-value/ifd-value'; -import { IfdAsciiValue } from './ifd-value/ifd-ascii-value'; -import { IfdShortValue } from './ifd-value/ifd-short-value'; -import { IfdRationalValue } from './ifd-value/ifd-rational-value'; -import { IfdByteValue } from './ifd-value/ifd-byte-value'; -import { IfdLongValue } from './ifd-value/ifd-long-value'; -import { IfdSByteValue } from './ifd-value/ifd-sbyte-value'; -import { IfdUndefinedValue } from './ifd-value/ifd-undefined-value'; -import { IfdSShortValue } from './ifd-value/ifd-sshort-value'; -import { IfdSLongValue } from './ifd-value/ifd-slong-value'; -import { IfdSRationalValue } from './ifd-value/ifd-srational-value'; -import { IfdSingleValue } from './ifd-value/ifd-single-value'; -import { IfdDoubleValue } from './ifd-value/ifd-double-value'; -import { TypedArray } from '../common/typings'; -import { StringUtils } from '../common/string-utils'; -import { ArrayUtils } from '../common/array-utils'; +import { Rational } from '../common/rational.js'; +import { ExifImageTags, ExifTagNameToID } from './exif-tag.js'; +import { IfdValueType } from './ifd-value-type.js'; +import { IfdContainer } from './ifd-container.js'; +import { IfdValue } from './ifd-value/ifd-value.js'; +import { IfdAsciiValue } from './ifd-value/ifd-ascii-value.js'; +import { IfdShortValue } from './ifd-value/ifd-short-value.js'; +import { IfdRationalValue } from './ifd-value/ifd-rational-value.js'; +import { IfdByteValue } from './ifd-value/ifd-byte-value.js'; +import { IfdLongValue } from './ifd-value/ifd-long-value.js'; +import { IfdSByteValue } from './ifd-value/ifd-sbyte-value.js'; +import { IfdUndefinedValue } from './ifd-value/ifd-undefined-value.js'; +import { IfdSShortValue } from './ifd-value/ifd-sshort-value.js'; +import { IfdSLongValue } from './ifd-value/ifd-slong-value.js'; +import { IfdSRationalValue } from './ifd-value/ifd-srational-value.js'; +import { IfdSingleValue } from './ifd-value/ifd-single-value.js'; +import { IfdDoubleValue } from './ifd-value/ifd-double-value.js'; +import { TypedArray } from '../common/typings.js'; +import { StringUtils } from '../common/string-utils.js'; +import { ArrayUtils } from '../common/array-utils.js'; export class IfdDirectory { private readonly _data: Map; diff --git a/src/exif/ifd-value/ifd-ascii-value.ts b/src/exif/ifd-value/ifd-ascii-value.ts index deb3fc3..ba37d35 100644 --- a/src/exif/ifd-value/ifd-ascii-value.ts +++ b/src/exif/ifd-value/ifd-ascii-value.ts @@ -1,10 +1,10 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; -import { OutputBuffer } from '../../common/output-buffer'; -import { StringUtils } from '../../common/string-utils'; -import { IfdValue } from './ifd-value'; -import { IfdValueType } from '../ifd-value-type'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { OutputBuffer } from '../../common/output-buffer.js'; +import { StringUtils } from '../../common/string-utils.js'; +import { IfdValue } from './ifd-value.js'; +import { IfdValueType } from '../ifd-value-type.js'; export class IfdAsciiValue extends IfdValue { private _value: string; diff --git a/src/exif/ifd-value/ifd-byte-value.ts b/src/exif/ifd-value/ifd-byte-value.ts index 732c8f4..e1744df 100644 --- a/src/exif/ifd-value/ifd-byte-value.ts +++ b/src/exif/ifd-value/ifd-byte-value.ts @@ -1,10 +1,10 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; -import { OutputBuffer } from '../../common/output-buffer'; -import { IfdValue } from './ifd-value'; -import { IfdValueType } from '../ifd-value-type'; -import { ArrayUtils } from '../../common/array-utils'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { OutputBuffer } from '../../common/output-buffer.js'; +import { IfdValue } from './ifd-value.js'; +import { IfdValueType } from '../ifd-value-type.js'; +import { ArrayUtils } from '../../common/array-utils.js'; export class IfdByteValue extends IfdValue { private _value: Uint8Array; diff --git a/src/exif/ifd-value/ifd-double-value.ts b/src/exif/ifd-value/ifd-double-value.ts index d4a85fa..785e198 100644 --- a/src/exif/ifd-value/ifd-double-value.ts +++ b/src/exif/ifd-value/ifd-double-value.ts @@ -1,10 +1,10 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; -import { OutputBuffer } from '../../common/output-buffer'; -import { IfdValue } from './ifd-value'; -import { IfdValueType } from '../ifd-value-type'; -import { ArrayUtils } from '../../common/array-utils'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { OutputBuffer } from '../../common/output-buffer.js'; +import { IfdValue } from './ifd-value.js'; +import { IfdValueType } from '../ifd-value-type.js'; +import { ArrayUtils } from '../../common/array-utils.js'; export class IfdDoubleValue extends IfdValue { private _value: Float64Array; diff --git a/src/exif/ifd-value/ifd-long-value.ts b/src/exif/ifd-value/ifd-long-value.ts index 74e3cd8..e450e26 100644 --- a/src/exif/ifd-value/ifd-long-value.ts +++ b/src/exif/ifd-value/ifd-long-value.ts @@ -1,10 +1,10 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; -import { OutputBuffer } from '../../common/output-buffer'; -import { IfdValue } from './ifd-value'; -import { IfdValueType } from '../ifd-value-type'; -import { ArrayUtils } from '../../common/array-utils'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { OutputBuffer } from '../../common/output-buffer.js'; +import { IfdValue } from './ifd-value.js'; +import { IfdValueType } from '../ifd-value-type.js'; +import { ArrayUtils } from '../../common/array-utils.js'; export class IfdLongValue extends IfdValue { private _value: Uint32Array; diff --git a/src/exif/ifd-value/ifd-rational-value.ts b/src/exif/ifd-value/ifd-rational-value.ts index d3f11ac..9e1fed8 100644 --- a/src/exif/ifd-value/ifd-rational-value.ts +++ b/src/exif/ifd-value/ifd-rational-value.ts @@ -1,11 +1,11 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; -import { OutputBuffer } from '../../common/output-buffer'; -import { IfdValue } from './ifd-value'; -import { IfdValueType } from '../ifd-value-type'; -import { Rational } from '../../common/rational'; -import { ArrayUtils } from '../../common/array-utils'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { OutputBuffer } from '../../common/output-buffer.js'; +import { IfdValue } from './ifd-value.js'; +import { IfdValueType } from '../ifd-value-type.js'; +import { Rational } from '../../common/rational.js'; +import { ArrayUtils } from '../../common/array-utils.js'; export class IfdRationalValue extends IfdValue { private _value: Rational[]; diff --git a/src/exif/ifd-value/ifd-sbyte-value.ts b/src/exif/ifd-value/ifd-sbyte-value.ts index abd0d86..bf15b2f 100644 --- a/src/exif/ifd-value/ifd-sbyte-value.ts +++ b/src/exif/ifd-value/ifd-sbyte-value.ts @@ -1,10 +1,10 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; -import { OutputBuffer } from '../../common/output-buffer'; -import { IfdValue } from './ifd-value'; -import { IfdValueType } from '../ifd-value-type'; -import { ArrayUtils } from '../../common/array-utils'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { OutputBuffer } from '../../common/output-buffer.js'; +import { IfdValue } from './ifd-value.js'; +import { IfdValueType } from '../ifd-value-type.js'; +import { ArrayUtils } from '../../common/array-utils.js'; export class IfdSByteValue extends IfdValue { private _value: Int8Array; diff --git a/src/exif/ifd-value/ifd-short-value.ts b/src/exif/ifd-value/ifd-short-value.ts index 2fc6fe0..fb3d999 100644 --- a/src/exif/ifd-value/ifd-short-value.ts +++ b/src/exif/ifd-value/ifd-short-value.ts @@ -1,10 +1,10 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; -import { OutputBuffer } from '../../common/output-buffer'; -import { IfdValue } from './ifd-value'; -import { IfdValueType } from '../ifd-value-type'; -import { ArrayUtils } from '../../common/array-utils'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { OutputBuffer } from '../../common/output-buffer.js'; +import { IfdValue } from './ifd-value.js'; +import { IfdValueType } from '../ifd-value-type.js'; +import { ArrayUtils } from '../../common/array-utils.js'; export class IfdShortValue extends IfdValue { private _value: Uint16Array; diff --git a/src/exif/ifd-value/ifd-single-value.ts b/src/exif/ifd-value/ifd-single-value.ts index 3de5eef..19d6a35 100644 --- a/src/exif/ifd-value/ifd-single-value.ts +++ b/src/exif/ifd-value/ifd-single-value.ts @@ -1,10 +1,10 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; -import { OutputBuffer } from '../../common/output-buffer'; -import { IfdValue } from './ifd-value'; -import { IfdValueType } from '../ifd-value-type'; -import { ArrayUtils } from '../../common/array-utils'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { OutputBuffer } from '../../common/output-buffer.js'; +import { IfdValue } from './ifd-value.js'; +import { IfdValueType } from '../ifd-value-type.js'; +import { ArrayUtils } from '../../common/array-utils.js'; export class IfdSingleValue extends IfdValue { private _value: Float32Array; diff --git a/src/exif/ifd-value/ifd-slong-value.ts b/src/exif/ifd-value/ifd-slong-value.ts index d1ecc9f..9539cb6 100644 --- a/src/exif/ifd-value/ifd-slong-value.ts +++ b/src/exif/ifd-value/ifd-slong-value.ts @@ -1,11 +1,11 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; -import { OutputBuffer } from '../../common/output-buffer'; -import { IfdValue } from './ifd-value'; -import { IfdValueType } from '../ifd-value-type'; -import { BitUtils } from '../../common/bit-utils'; -import { ArrayUtils } from '../../common/array-utils'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { OutputBuffer } from '../../common/output-buffer.js'; +import { IfdValue } from './ifd-value.js'; +import { IfdValueType } from '../ifd-value-type.js'; +import { BitUtils } from '../../common/bit-utils.js'; +import { ArrayUtils } from '../../common/array-utils.js'; export class IfdSLongValue extends IfdValue { private _value: Int32Array; diff --git a/src/exif/ifd-value/ifd-srational-value.ts b/src/exif/ifd-value/ifd-srational-value.ts index 3dbfcf0..fb90ff2 100644 --- a/src/exif/ifd-value/ifd-srational-value.ts +++ b/src/exif/ifd-value/ifd-srational-value.ts @@ -1,12 +1,12 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; -import { OutputBuffer } from '../../common/output-buffer'; -import { IfdValue } from './ifd-value'; -import { IfdValueType } from '../ifd-value-type'; -import { BitUtils } from '../../common/bit-utils'; -import { Rational } from '../../common/rational'; -import { ArrayUtils } from '../../common/array-utils'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { OutputBuffer } from '../../common/output-buffer.js'; +import { IfdValue } from './ifd-value.js'; +import { IfdValueType } from '../ifd-value-type.js'; +import { BitUtils } from '../../common/bit-utils.js'; +import { Rational } from '../../common/rational.js'; +import { ArrayUtils } from '../../common/array-utils.js'; export class IfdSRationalValue extends IfdValue { private _value: Rational[]; diff --git a/src/exif/ifd-value/ifd-sshort-value.ts b/src/exif/ifd-value/ifd-sshort-value.ts index 54fa5c9..47d7cf6 100644 --- a/src/exif/ifd-value/ifd-sshort-value.ts +++ b/src/exif/ifd-value/ifd-sshort-value.ts @@ -1,10 +1,10 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; -import { OutputBuffer } from '../../common/output-buffer'; -import { IfdValue } from './ifd-value'; -import { IfdValueType } from '../ifd-value-type'; -import { ArrayUtils } from '../../common/array-utils'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { OutputBuffer } from '../../common/output-buffer.js'; +import { IfdValue } from './ifd-value.js'; +import { IfdValueType } from '../ifd-value-type.js'; +import { ArrayUtils } from '../../common/array-utils.js'; export class IfdSShortValue extends IfdValue { private _value: Int16Array; diff --git a/src/exif/ifd-value/ifd-undefined-value.ts b/src/exif/ifd-value/ifd-undefined-value.ts index 09e3a67..199c7c5 100644 --- a/src/exif/ifd-value/ifd-undefined-value.ts +++ b/src/exif/ifd-value/ifd-undefined-value.ts @@ -1,10 +1,10 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; -import { OutputBuffer } from '../../common/output-buffer'; -import { IfdValue } from './ifd-value'; -import { IfdValueType } from '../ifd-value-type'; -import { ArrayUtils } from '../../common/array-utils'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { OutputBuffer } from '../../common/output-buffer.js'; +import { IfdValue } from './ifd-value.js'; +import { IfdValueType } from '../ifd-value-type.js'; +import { ArrayUtils } from '../../common/array-utils.js'; export class IfdUndefinedValue extends IfdValue { private _value: Uint8Array; diff --git a/src/exif/ifd-value/ifd-value.ts b/src/exif/ifd-value/ifd-value.ts index 42b5386..f4b48c7 100644 --- a/src/exif/ifd-value/ifd-value.ts +++ b/src/exif/ifd-value/ifd-value.ts @@ -1,13 +1,13 @@ /** @format */ -import { OutputBuffer } from '../../common/output-buffer'; -import { Rational } from '../../common/rational'; -import { LibError } from '../../error/lib-error'; +import { OutputBuffer } from '../../common/output-buffer.js'; +import { Rational } from '../../common/rational.js'; +import { LibError } from '../../error/lib-error.js'; import { getIfdValueTypeSize, getIfdValueTypeString, IfdValueType, -} from '../ifd-value-type'; +} from '../ifd-value-type.js'; export abstract class IfdValue { public get type(): IfdValueType { diff --git a/src/filter/filter.ts b/src/filter/filter.ts index b8d2121..d156cae 100644 --- a/src/filter/filter.ts +++ b/src/filter/filter.ts @@ -1,24 +1,24 @@ /** @format */ -import { Channel } from '../color/channel'; -import { Color } from '../color/color'; -import { ColorRgba8 } from '../color/color-rgba8'; -import { Interpolation } from '../common/interpolation'; -import { MathUtils } from '../common/math-utils'; -import { NeuralQuantizer } from '../image/neural-quantizer'; -import { OctreeQuantizer } from '../image/octree-quantizer'; -import { Quantizer } from '../image/quantizer'; -import { RandomUtils } from '../common/random-utils'; -import { Draw } from '../draw/draw'; -import { MemoryImage } from '../image/image'; -import { DitherKernel, DitherKernels } from './dither-kernel'; -import { NoiseType } from './noise-type'; -import { PixelateMode } from './pixelate-mode'; -import { QuantizeMethod } from './quantize-method'; -import { SeparableKernel } from './separable-kernel'; -import { ColorUtils } from '../color/color-utils'; -import { SolarizeMode } from './solarize-mode'; -import { BinaryQuantizer } from '../image/binary-quantizer'; +import { Channel } from '../color/channel.js'; +import { Color } from '../color/color.js'; +import { ColorRgba8 } from '../color/color-rgba8.js'; +import { Interpolation } from '../common/interpolation.js'; +import { MathUtils } from '../common/math-utils.js'; +import { NeuralQuantizer } from '../image/neural-quantizer.js'; +import { OctreeQuantizer } from '../image/octree-quantizer.js'; +import { Quantizer } from '../image/quantizer.js'; +import { RandomUtils } from '../common/random-utils.js'; +import { Draw } from '../draw/draw.js'; +import { MemoryImage } from '../image/image.js'; +import { DitherKernel, DitherKernels } from './dither-kernel.js'; +import { NoiseType } from './noise-type.js'; +import { PixelateMode } from './pixelate-mode.js'; +import { QuantizeMethod } from './quantize-method.js'; +import { SeparableKernel } from './separable-kernel.js'; +import { ColorUtils } from '../color/color-utils.js'; +import { SolarizeMode } from './solarize-mode.js'; +import { BinaryQuantizer } from '../image/binary-quantizer.js'; interface ContrastCache { lastContrast: number; diff --git a/src/filter/separable-kernel.ts b/src/filter/separable-kernel.ts index 620652f..b94ee6b 100644 --- a/src/filter/separable-kernel.ts +++ b/src/filter/separable-kernel.ts @@ -1,9 +1,9 @@ /** @format */ -import { Channel } from '../color/channel'; -import { ArrayUtils } from '../common/array-utils'; -import { MathUtils } from '../common/math-utils'; -import { MemoryImage } from '../image/image'; +import { Channel } from '../color/channel.js'; +import { ArrayUtils } from '../common/array-utils.js'; +import { MathUtils } from '../common/math-utils.js'; +import { MemoryImage } from '../image/image.js'; export interface SeparableKernelApplyOptions { src: MemoryImage; diff --git a/src/formats/bmp-decoder.ts b/src/formats/bmp-decoder.ts index fd36a8b..83c6501 100644 --- a/src/formats/bmp-decoder.ts +++ b/src/formats/bmp-decoder.ts @@ -1,12 +1,12 @@ /** @format */ -import { Format } from '../color/format'; -import { InputBuffer } from '../common/input-buffer'; -import { MemoryImage } from '../image/image'; -import { BmpFileHeader } from './bmp/bmp-file-header'; -import { BmpInfo } from './bmp/bmp-info'; -import { Decoder, DecoderDecodeOptions } from './decoder'; -import { ImageFormat } from './image-format'; +import { Format } from '../color/format.js'; +import { InputBuffer } from '../common/input-buffer.js'; +import { MemoryImage } from '../image/image.js'; +import { BmpFileHeader } from './bmp/bmp-file-header.js'; +import { BmpInfo } from './bmp/bmp-info.js'; +import { Decoder, DecoderDecodeOptions } from './decoder.js'; +import { ImageFormat } from './image-format.js'; export class BmpDecoder implements Decoder { protected _input?: InputBuffer; diff --git a/src/formats/bmp-encoder.ts b/src/formats/bmp-encoder.ts index 4cfa780..b0e73b7 100644 --- a/src/formats/bmp-encoder.ts +++ b/src/formats/bmp-encoder.ts @@ -1,13 +1,13 @@ /** @format */ -import { Format } from '../color/format'; -import { OutputBuffer } from '../common/output-buffer'; -import { MemoryImage } from '../image/image'; -import { PaletteUint8 } from '../image/palette-uint8'; -import { Pixel } from '../image/pixel'; -import { BmpCompressionMode } from './bmp/bmp-compression-mode'; -import { BmpFileHeader } from './bmp/bmp-file-header'; -import { Encoder, EncoderEncodeOptions } from './encoder'; +import { Format } from '../color/format.js'; +import { OutputBuffer } from '../common/output-buffer.js'; +import { MemoryImage } from '../image/image.js'; +import { PaletteUint8 } from '../image/palette-uint8.js'; +import { Pixel } from '../image/pixel.js'; +import { BmpCompressionMode } from './bmp/bmp-compression-mode.js'; +import { BmpFileHeader } from './bmp/bmp-file-header.js'; +import { Encoder, EncoderEncodeOptions } from './encoder.js'; /** * Encode a BMP image. diff --git a/src/formats/bmp/bmp-file-header.ts b/src/formats/bmp/bmp-file-header.ts index bd7a8ed..c6921ba 100644 --- a/src/formats/bmp/bmp-file-header.ts +++ b/src/formats/bmp/bmp-file-header.ts @@ -1,7 +1,7 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; -import { LibError } from '../../error/lib-error'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { LibError } from '../../error/lib-error.js'; export class BmpFileHeader { // Signature: BM diff --git a/src/formats/bmp/bmp-info.ts b/src/formats/bmp/bmp-info.ts index 36e718e..cde517f 100644 --- a/src/formats/bmp/bmp-info.ts +++ b/src/formats/bmp/bmp-info.ts @@ -1,13 +1,13 @@ /** @format */ -import { Color } from '../../color/color'; -import { BitUtils } from '../../common/bit-utils'; -import { InputBuffer } from '../../common/input-buffer'; -import { LibError } from '../../error/lib-error'; -import { PaletteUint8 } from '../../image/palette-uint8'; -import { DecodeInfo } from '../decode-info'; -import { BmpCompressionMode } from './bmp-compression-mode'; -import { BmpFileHeader } from './bmp-file-header'; +import { Color } from '../../color/color.js'; +import { BitUtils } from '../../common/bit-utils.js'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { LibError } from '../../error/lib-error.js'; +import { PaletteUint8 } from '../../image/palette-uint8.js'; +import { DecodeInfo } from '../decode-info.js'; +import { BmpCompressionMode } from './bmp-compression-mode.js'; +import { BmpFileHeader } from './bmp-file-header.js'; export class BmpInfo implements DecodeInfo { private readonly _startPos: number; diff --git a/src/formats/decode-info.ts b/src/formats/decode-info.ts index 12ace45..e0185dc 100644 --- a/src/formats/decode-info.ts +++ b/src/formats/decode-info.ts @@ -1,6 +1,6 @@ /** @format */ -import { Color } from '../color/color'; +import { Color } from '../color/color.js'; /** * Provides information about the image being decoded. diff --git a/src/formats/decoder.ts b/src/formats/decoder.ts index b252f9a..47f3531 100644 --- a/src/formats/decoder.ts +++ b/src/formats/decoder.ts @@ -1,8 +1,8 @@ /** @format */ -import { MemoryImage } from '../image/image'; -import { DecodeInfo } from './decode-info'; -import { ImageFormat } from './image-format'; +import { MemoryImage } from '../image/image.js'; +import { DecodeInfo } from './decode-info.js'; +import { ImageFormat } from './image-format.js'; /** * Object interface for specifying Decoder.decode parameters. diff --git a/src/formats/dib-decoder.ts b/src/formats/dib-decoder.ts index bd3bd14..76e701b 100644 --- a/src/formats/dib-decoder.ts +++ b/src/formats/dib-decoder.ts @@ -1,8 +1,8 @@ /** @format */ -import { InputBuffer } from '../common/input-buffer'; -import { BmpDecoder } from './bmp-decoder'; -import { BmpInfo } from './bmp/bmp-info'; +import { InputBuffer } from '../common/input-buffer.js'; +import { BmpDecoder } from './bmp-decoder.js'; +import { BmpInfo } from './bmp/bmp-info.js'; export class DibDecoder extends BmpDecoder { constructor( diff --git a/src/formats/encoder.ts b/src/formats/encoder.ts index 2bb7c66..4e02151 100644 --- a/src/formats/encoder.ts +++ b/src/formats/encoder.ts @@ -1,6 +1,6 @@ /** @format */ -import { MemoryImage } from '../image/image'; +import { MemoryImage } from '../image/image.js'; /** * Object interface for specifying Encoder.encode parameters. diff --git a/src/formats/gif-decoder.ts b/src/formats/gif-decoder.ts index af5eeb3..7954d4b 100644 --- a/src/formats/gif-decoder.ts +++ b/src/formats/gif-decoder.ts @@ -1,14 +1,14 @@ /** @format */ -import { InputBuffer } from '../common/input-buffer'; -import { ArrayUtils } from '../common/array-utils'; -import { Decoder, DecoderDecodeOptions } from './decoder'; -import { GifColorMap } from './gif/gif-color-map'; -import { GifImageDesc } from './gif/gif-image-desc'; -import { GifInfo } from './gif/gif-info'; -import { MemoryImage } from '../image/image'; -import { ColorUint8 } from '../color/color-uint8'; -import { ImageFormat } from './image-format'; +import { InputBuffer } from '../common/input-buffer.js'; +import { ArrayUtils } from '../common/array-utils.js'; +import { Decoder, DecoderDecodeOptions } from './decoder.js'; +import { GifColorMap } from './gif/gif-color-map.js'; +import { GifImageDesc } from './gif/gif-image-desc.js'; +import { GifInfo } from './gif/gif-info.js'; +import { MemoryImage } from '../image/image.js'; +import { ColorUint8 } from '../color/color-uint8.js'; +import { ImageFormat } from './image-format.js'; /** * A decoder for the GIF image format. This supports both single frame and diff --git a/src/formats/gif-encoder.ts b/src/formats/gif-encoder.ts index 03bc4e1..1cea9ef 100644 --- a/src/formats/gif-encoder.ts +++ b/src/formats/gif-encoder.ts @@ -1,17 +1,17 @@ /** @format */ -import { NeuralQuantizer } from '../image/neural-quantizer'; -import { OutputBuffer } from '../common/output-buffer'; -import { StringUtils } from '../common/string-utils'; -import { Encoder, EncoderEncodeOptions } from './encoder'; -import { QuantizerType } from '../image/quantizer-type'; -import { MemoryImage } from '../image/image'; -import { OctreeQuantizer } from '../image/octree-quantizer'; -import { Quantizer } from '../image/quantizer'; -import { Filter } from '../filter/filter'; -import { LibError } from '../error/lib-error'; -import { DitherKernel } from '../filter/dither-kernel'; -import { BinaryQuantizer } from '../image/binary-quantizer'; +import { NeuralQuantizer } from '../image/neural-quantizer.js'; +import { OutputBuffer } from '../common/output-buffer.js'; +import { StringUtils } from '../common/string-utils.js'; +import { Encoder, EncoderEncodeOptions } from './encoder.js'; +import { QuantizerType } from '../image/quantizer-type.js'; +import { MemoryImage } from '../image/image.js'; +import { OctreeQuantizer } from '../image/octree-quantizer.js'; +import { Quantizer } from '../image/quantizer.js'; +import { Filter } from '../filter/filter.js'; +import { LibError } from '../error/lib-error.js'; +import { DitherKernel } from '../filter/dither-kernel.js'; +import { BinaryQuantizer } from '../image/binary-quantizer.js'; export interface GifEncoderInitOptions { delay?: number; diff --git a/src/formats/gif/gif-color-map.ts b/src/formats/gif/gif-color-map.ts index 2da707b..e5c541f 100644 --- a/src/formats/gif/gif-color-map.ts +++ b/src/formats/gif/gif-color-map.ts @@ -1,7 +1,7 @@ /** @format */ -import { ColorUint8 } from '../../color/color-uint8'; -import { PaletteUint8 } from '../../image/palette-uint8'; +import { ColorUint8 } from '../../color/color-uint8.js'; +import { PaletteUint8 } from '../../image/palette-uint8.js'; export class GifColorMap { private readonly _numColors: number; diff --git a/src/formats/gif/gif-image-desc.ts b/src/formats/gif/gif-image-desc.ts index 9040122..30e2798 100644 --- a/src/formats/gif/gif-image-desc.ts +++ b/src/formats/gif/gif-image-desc.ts @@ -1,7 +1,7 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; -import { GifColorMap } from './gif-color-map'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { GifColorMap } from './gif-color-map.js'; export class GifImageDesc { private readonly _x: number; diff --git a/src/formats/gif/gif-info.ts b/src/formats/gif/gif-info.ts index 90dd3f1..3ba789c 100644 --- a/src/formats/gif/gif-info.ts +++ b/src/formats/gif/gif-info.ts @@ -1,9 +1,9 @@ /** @format */ -import { Color } from '../../color/color'; -import { DecodeInfo } from '../decode-info'; -import { GifColorMap } from './gif-color-map'; -import { GifImageDesc } from './gif-image-desc'; +import { Color } from '../../color/color.js'; +import { DecodeInfo } from '../decode-info.js'; +import { GifColorMap } from './gif-color-map.js'; +import { GifImageDesc } from './gif-image-desc.js'; export interface GifInfoInitOptions { width?: number; diff --git a/src/formats/ico-decoder.ts b/src/formats/ico-decoder.ts index 6c7ac01..ecf8a53 100644 --- a/src/formats/ico-decoder.ts +++ b/src/formats/ico-decoder.ts @@ -1,16 +1,16 @@ /** @format */ -import { InputBuffer } from '../common/input-buffer'; -import { OutputBuffer } from '../common/output-buffer'; -import { BmpFileHeader } from './bmp/bmp-file-header'; -import { Decoder, DecoderDecodeOptions } from './decoder'; -import { DibDecoder } from './dib-decoder'; -import { IcoBmpInfo } from './ico/ico-bmp-info'; -import { IcoInfo } from './ico/ico-info'; -import { PngDecoder } from './png-decoder'; -import { MemoryImage } from '../image/image'; -import { FrameType } from '../image/frame-type'; -import { ImageFormat } from './image-format'; +import { InputBuffer } from '../common/input-buffer.js'; +import { OutputBuffer } from '../common/output-buffer.js'; +import { BmpFileHeader } from './bmp/bmp-file-header.js'; +import { Decoder, DecoderDecodeOptions } from './decoder.js'; +import { DibDecoder } from './dib-decoder.js'; +import { IcoBmpInfo } from './ico/ico-bmp-info.js'; +import { IcoInfo } from './ico/ico-info.js'; +import { PngDecoder } from './png-decoder.js'; +import { MemoryImage } from '../image/image.js'; +import { FrameType } from '../image/frame-type.js'; +import { ImageFormat } from './image-format.js'; export class IcoDecoder implements Decoder { private _input?: InputBuffer; diff --git a/src/formats/ico-encoder.ts b/src/formats/ico-encoder.ts index 8f9032a..eb93543 100644 --- a/src/formats/ico-encoder.ts +++ b/src/formats/ico-encoder.ts @@ -1,6 +1,6 @@ /** @format */ -import { WinEncoder } from './win-encoder'; +import { WinEncoder } from './win-encoder.js'; export class IcoEncoder extends WinEncoder { protected _type = 1; diff --git a/src/formats/ico/ico-bmp-info.ts b/src/formats/ico/ico-bmp-info.ts index 3495853..9194d0a 100644 --- a/src/formats/ico/ico-bmp-info.ts +++ b/src/formats/ico/ico-bmp-info.ts @@ -1,6 +1,6 @@ /** @format */ -import { BmpInfo } from '../bmp/bmp-info'; +import { BmpInfo } from '../bmp/bmp-info.js'; export class IcoBmpInfo extends BmpInfo { public get height(): number { diff --git a/src/formats/ico/ico-info.ts b/src/formats/ico/ico-info.ts index b1052a4..8069093 100644 --- a/src/formats/ico/ico-info.ts +++ b/src/formats/ico/ico-info.ts @@ -1,11 +1,11 @@ /** @format */ -import { Color } from '../../color/color'; -import { ArrayUtils } from '../../common/array-utils'; -import { InputBuffer } from '../../common/input-buffer'; -import { DecodeInfo } from '../decode-info'; -import { IcoInfoImage } from './ico-info-image'; -import { IcoType, IcoTypeLength } from './ico-type'; +import { Color } from '../../color/color.js'; +import { ArrayUtils } from '../../common/array-utils.js'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { DecodeInfo } from '../decode-info.js'; +import { IcoInfoImage } from './ico-info-image.js'; +import { IcoType, IcoTypeLength } from './ico-type.js'; export class IcoInfo implements DecodeInfo { private _width = 0; diff --git a/src/formats/jpeg-decoder.ts b/src/formats/jpeg-decoder.ts index 2701e2a..73a6285 100644 --- a/src/formats/jpeg-decoder.ts +++ b/src/formats/jpeg-decoder.ts @@ -1,12 +1,12 @@ /** @format */ -import { InputBuffer } from '../common/input-buffer'; -import { LibError } from '../error/lib-error'; -import { MemoryImage } from '../image/image'; -import { Decoder, DecoderDecodeOptions } from './decoder'; -import { ImageFormat } from './image-format'; -import { JpegData } from './jpeg/jpeg-data'; -import { JpegInfo } from './jpeg/jpeg-info'; +import { InputBuffer } from '../common/input-buffer.js'; +import { LibError } from '../error/lib-error.js'; +import { MemoryImage } from '../image/image.js'; +import { Decoder, DecoderDecodeOptions } from './decoder.js'; +import { ImageFormat } from './image-format.js'; +import { JpegData } from './jpeg/jpeg-data.js'; +import { JpegInfo } from './jpeg/jpeg-info.js'; /** * Decode a jpeg encoded image. diff --git a/src/formats/jpeg-encoder.ts b/src/formats/jpeg-encoder.ts index 2c8e7af..b10d7fc 100644 --- a/src/formats/jpeg-encoder.ts +++ b/src/formats/jpeg-encoder.ts @@ -1,14 +1,14 @@ /** @format */ -import { Color } from '../color/color'; -import { Format } from '../color/format'; -import { ArrayUtils } from '../common/array-utils'; -import { MathUtils } from '../common/math-utils'; -import { OutputBuffer } from '../common/output-buffer'; -import { ExifData } from '../exif/exif-data'; -import { MemoryImage } from '../image/image'; -import { Encoder, EncoderEncodeOptions } from './encoder'; -import { JpegMarker } from './jpeg/jpeg-marker'; +import { Color } from '../color/color.js'; +import { Format } from '../color/format.js'; +import { ArrayUtils } from '../common/array-utils.js'; +import { MathUtils } from '../common/math-utils.js'; +import { OutputBuffer } from '../common/output-buffer.js'; +import { ExifData } from '../exif/exif-data.js'; +import { MemoryImage } from '../image/image.js'; +import { Encoder, EncoderEncodeOptions } from './encoder.js'; +import { JpegMarker } from './jpeg/jpeg-marker.js'; /** * Object interface for specifying JpegEncoder.encode parameters. diff --git a/src/formats/jpeg/huffman-parent.ts b/src/formats/jpeg/huffman-parent.ts index 2221964..5b12e9e 100644 --- a/src/formats/jpeg/huffman-parent.ts +++ b/src/formats/jpeg/huffman-parent.ts @@ -1,6 +1,6 @@ /** @format */ -import { HuffmanNode } from './huffman-node'; +import { HuffmanNode } from './huffman-node.js'; export class HuffmanParent extends HuffmanNode { private readonly _children: Array; diff --git a/src/formats/jpeg/huffman-value.ts b/src/formats/jpeg/huffman-value.ts index 18e5be9..36f1f6c 100644 --- a/src/formats/jpeg/huffman-value.ts +++ b/src/formats/jpeg/huffman-value.ts @@ -1,6 +1,6 @@ /** @format */ -import { HuffmanNode } from './huffman-node'; +import { HuffmanNode } from './huffman-node.js'; export class HuffmanValue extends HuffmanNode { private readonly _value: number; diff --git a/src/formats/jpeg/jpeg-component.ts b/src/formats/jpeg/jpeg-component.ts index 1bf4b8e..1b6255e 100644 --- a/src/formats/jpeg/jpeg-component.ts +++ b/src/formats/jpeg/jpeg-component.ts @@ -1,6 +1,6 @@ /** @format */ -import { HuffmanNode } from './huffman-node'; +import { HuffmanNode } from './huffman-node.js'; export class JpegComponent { private readonly _quantizationTableList: Array; diff --git a/src/formats/jpeg/jpeg-data.ts b/src/formats/jpeg/jpeg-data.ts index 8eb29dc..6bc7a25 100644 --- a/src/formats/jpeg/jpeg-data.ts +++ b/src/formats/jpeg/jpeg-data.ts @@ -1,23 +1,23 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; -import { LibError } from '../../error/lib-error'; -import { JpegComponentData } from './jpeg-component-data'; -import { JpegAdobe } from './jpeg-adobe'; -import { JpegComponent } from './jpeg-component'; -import { JpegFrame } from './jpeg-frame'; -import { JpegHuffman } from './jpeg-huffman'; -import { JpegInfo } from './jpeg-info'; -import { JpegJfif } from './jpeg-jfif'; -import { JpegQuantize } from './jpeg-quantize'; -import { JpegScan } from './jpeg-scan'; -import { ExifData } from '../../exif/exif-data'; -import { ArrayUtils } from '../../common/array-utils'; -import { JpegMarker } from './jpeg-marker'; -import { MemoryImage } from '../../image/image'; -import { HuffmanNode } from './huffman-node'; -import { HuffmanValue } from './huffman-value'; -import { HuffmanParent } from './huffman-parent'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { LibError } from '../../error/lib-error.js'; +import { JpegComponentData } from './jpeg-component-data.js'; +import { JpegAdobe } from './jpeg-adobe.js'; +import { JpegComponent } from './jpeg-component.js'; +import { JpegFrame } from './jpeg-frame.js'; +import { JpegHuffman } from './jpeg-huffman.js'; +import { JpegInfo } from './jpeg-info.js'; +import { JpegJfif } from './jpeg-jfif.js'; +import { JpegQuantize } from './jpeg-quantize.js'; +import { JpegScan } from './jpeg-scan.js'; +import { ExifData } from '../../exif/exif-data.js'; +import { ArrayUtils } from '../../common/array-utils.js'; +import { JpegMarker } from './jpeg-marker.js'; +import { MemoryImage } from '../../image/image.js'; +import { HuffmanNode } from './huffman-node.js'; +import { HuffmanValue } from './huffman-value.js'; +import { HuffmanParent } from './huffman-parent.js'; export class JpegData { public static readonly dctZigZag = [ diff --git a/src/formats/jpeg/jpeg-frame.ts b/src/formats/jpeg/jpeg-frame.ts index d54380d..51200b5 100644 --- a/src/formats/jpeg/jpeg-frame.ts +++ b/src/formats/jpeg/jpeg-frame.ts @@ -1,7 +1,7 @@ /** @format */ -import { ArrayUtils } from '../../common/array-utils'; -import { JpegComponent } from './jpeg-component'; +import { ArrayUtils } from '../../common/array-utils.js'; +import { JpegComponent } from './jpeg-component.js'; export class JpegFrame { private readonly _components: Map; diff --git a/src/formats/jpeg/jpeg-huffman.ts b/src/formats/jpeg/jpeg-huffman.ts index 00dbfbf..d194dd6 100644 --- a/src/formats/jpeg/jpeg-huffman.ts +++ b/src/formats/jpeg/jpeg-huffman.ts @@ -1,6 +1,6 @@ /** @format */ -import { HuffmanNode } from './huffman-node'; +import { HuffmanNode } from './huffman-node.js'; export class JpegHuffman { private readonly _children: Array = []; diff --git a/src/formats/jpeg/jpeg-info.ts b/src/formats/jpeg/jpeg-info.ts index b2d8751..6a6d33e 100644 --- a/src/formats/jpeg/jpeg-info.ts +++ b/src/formats/jpeg/jpeg-info.ts @@ -1,7 +1,7 @@ /** @format */ -import { Color } from '../../color/color'; -import { DecodeInfo } from '../decode-info'; +import { Color } from '../../color/color.js'; +import { DecodeInfo } from '../decode-info.js'; export class JpegInfo implements DecodeInfo { private _width = 0; diff --git a/src/formats/jpeg/jpeg-jfif.ts b/src/formats/jpeg/jpeg-jfif.ts index 46e25e5..0d7008d 100644 --- a/src/formats/jpeg/jpeg-jfif.ts +++ b/src/formats/jpeg/jpeg-jfif.ts @@ -1,6 +1,6 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; +import { InputBuffer } from '../../common/input-buffer.js'; export class JpegJfif { private _thumbWidth: number; diff --git a/src/formats/jpeg/jpeg-quantize.ts b/src/formats/jpeg/jpeg-quantize.ts index f61f479..b2244b2 100644 --- a/src/formats/jpeg/jpeg-quantize.ts +++ b/src/formats/jpeg/jpeg-quantize.ts @@ -1,12 +1,12 @@ /** @format */ -import { BitUtils } from '../../common/bit-utils'; -import { MathUtils } from '../../common/math-utils'; -import { LibError } from '../../error/lib-error'; -import { ExifData } from '../../exif/exif-data'; -import { MemoryImage } from '../../image/image'; -import { JpegComponentData } from './jpeg-component-data'; -import { JpegData } from './jpeg-data'; +import { BitUtils } from '../../common/bit-utils.js'; +import { MathUtils } from '../../common/math-utils.js'; +import { LibError } from '../../error/lib-error.js'; +import { ExifData } from '../../exif/exif-data.js'; +import { MemoryImage } from '../../image/image.js'; +import { JpegComponentData } from './jpeg-component-data.js'; +import { JpegData } from './jpeg-data.js'; export abstract class JpegQuantize { private static readonly _dctClipOffset = 256; diff --git a/src/formats/jpeg/jpeg-scan.ts b/src/formats/jpeg/jpeg-scan.ts index 662e31f..9e3e998 100644 --- a/src/formats/jpeg/jpeg-scan.ts +++ b/src/formats/jpeg/jpeg-scan.ts @@ -1,14 +1,14 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; -import { LibError } from '../../error/lib-error'; -import { HuffmanNode } from './huffman-node'; -import { HuffmanParent } from './huffman-parent'; -import { HuffmanValue } from './huffman-value'; -import { JpegComponent } from './jpeg-component'; -import { JpegData } from './jpeg-data'; -import { JpegFrame } from './jpeg-frame'; -import { JpegMarker } from './jpeg-marker'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { LibError } from '../../error/lib-error.js'; +import { HuffmanNode } from './huffman-node.js'; +import { HuffmanParent } from './huffman-parent.js'; +import { HuffmanValue } from './huffman-value.js'; +import { JpegComponent } from './jpeg-component.js'; +import { JpegData } from './jpeg-data.js'; +import { JpegFrame } from './jpeg-frame.js'; +import { JpegMarker } from './jpeg-marker.js'; export type DecodeFunction = ( component: JpegComponent, diff --git a/src/formats/jpeg/jpeg-utils.ts b/src/formats/jpeg/jpeg-utils.ts index 964b1ec..adc0dcf 100644 --- a/src/formats/jpeg/jpeg-utils.ts +++ b/src/formats/jpeg/jpeg-utils.ts @@ -1,9 +1,9 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; -import { OutputBuffer } from '../../common/output-buffer'; -import { ExifData } from '../../exif/exif-data'; -import { JpegMarker } from './jpeg-marker'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { OutputBuffer } from '../../common/output-buffer.js'; +import { ExifData } from '../../exif/exif-data.js'; +import { JpegMarker } from './jpeg-marker.js'; export class JpegUtils { // Exif\0\0 diff --git a/src/formats/png-decoder.ts b/src/formats/png-decoder.ts index d4bddf8..d40f177 100644 --- a/src/formats/png-decoder.ts +++ b/src/formats/png-decoder.ts @@ -1,31 +1,31 @@ /** @format */ -import { inflate } from '../uzip/uzip'; -import { Crc32 } from '../common/crc32'; -import { InputBuffer } from '../common/input-buffer'; -import { ArrayUtils } from '../common/array-utils'; -import { StringUtils } from '../common/string-utils'; -import { LibError } from '../error/lib-error'; -import { DecodeInfo } from './decode-info'; -import { Decoder, DecoderDecodeOptions } from './decoder'; -import { PngFrame } from './png/png-frame'; -import { PngInfo } from './png/png-info'; -import { PngColorType } from './png/png-color-type'; -import { PngDisposeMode } from './png/png-dispose-mode'; -import { PngBlendMode } from './png/png-blend-mode'; -import { ColorRgba8 } from '../color/color-rgba8'; -import { ColorRgb8 } from '../color/color-rgb8'; -import { MemoryImage, MemoryImageCreateOptions } from '../image/image'; -import { PaletteUint8 } from '../image/palette-uint8'; -import { Format } from '../color/format'; -import { IccProfile } from '../image/icc-profile'; -import { IccProfileCompression } from '../image/icc-profile-compression'; -import { Draw } from '../draw/draw'; -import { BlendMode } from '../draw/blend-mode'; -import { PngFilterType } from './png/png-filter-type'; -import { Pixel } from '../image/pixel'; -import { ImageFormat } from './image-format'; -import { Rectangle } from '../common/rectangle'; +import { inflate } from '../uzip/uzip.js'; +import { Crc32 } from '../common/crc32.js'; +import { InputBuffer } from '../common/input-buffer.js'; +import { ArrayUtils } from '../common/array-utils.js'; +import { StringUtils } from '../common/string-utils.js'; +import { LibError } from '../error/lib-error.js'; +import { DecodeInfo } from './decode-info.js'; +import { Decoder, DecoderDecodeOptions } from './decoder.js'; +import { PngFrame } from './png/png-frame.js'; +import { PngInfo } from './png/png-info.js'; +import { PngColorType } from './png/png-color-type.js'; +import { PngDisposeMode } from './png/png-dispose-mode.js'; +import { PngBlendMode } from './png/png-blend-mode.js'; +import { ColorRgba8 } from '../color/color-rgba8.js'; +import { ColorRgb8 } from '../color/color-rgb8.js'; +import { MemoryImage, MemoryImageCreateOptions } from '../image/image.js'; +import { PaletteUint8 } from '../image/palette-uint8.js'; +import { Format } from '../color/format.js'; +import { IccProfile } from '../image/icc-profile.js'; +import { IccProfileCompression } from '../image/icc-profile-compression.js'; +import { Draw } from '../draw/draw.js'; +import { BlendMode } from '../draw/blend-mode.js'; +import { PngFilterType } from './png/png-filter-type.js'; +import { Pixel } from '../image/pixel.js'; +import { ImageFormat } from './image-format.js'; +import { Rectangle } from '../common/rectangle.js'; /** * Decode a PNG encoded image. diff --git a/src/formats/png-encoder.ts b/src/formats/png-encoder.ts index 442058a..e1db738 100644 --- a/src/formats/png-encoder.ts +++ b/src/formats/png-encoder.ts @@ -1,19 +1,19 @@ /** @format */ -import { deflate } from '../uzip/uzip'; -import { Crc32 } from '../common/crc32'; -import { OutputBuffer } from '../common/output-buffer'; -import { StringUtils } from '../common/string-utils'; -import { CompressionLevel } from '../common/typings'; -import { Encoder, EncoderEncodeOptions } from './encoder'; -import { Quantizer } from '../image/quantizer'; -import { PngFilterType } from './png/png-filter-type'; -import { MemoryImage } from '../image/image'; -import { Format } from '../color/format'; -import { NeuralQuantizer } from '../image/neural-quantizer'; -import { PngColorType } from './png/png-color-type'; -import { Palette } from '../image/palette'; -import { IccProfile } from '../image/icc-profile'; +import { deflate } from '../uzip/uzip.js'; +import { Crc32 } from '../common/crc32.js'; +import { OutputBuffer } from '../common/output-buffer.js'; +import { StringUtils } from '../common/string-utils.js'; +import { CompressionLevel } from '../common/typings.js'; +import { Encoder, EncoderEncodeOptions } from './encoder.js'; +import { Quantizer } from '../image/quantizer.js'; +import { PngFilterType } from './png/png-filter-type.js'; +import { MemoryImage } from '../image/image.js'; +import { Format } from '../color/format.js'; +import { NeuralQuantizer } from '../image/neural-quantizer.js'; +import { PngColorType } from './png/png-color-type.js'; +import { Palette } from '../image/palette.js'; +import { IccProfile } from '../image/icc-profile.js'; export interface PngEncoderInitOptions { filter?: PngFilterType; diff --git a/src/formats/png/png-frame.ts b/src/formats/png/png-frame.ts index 5c2ad3c..572e0eb 100644 --- a/src/formats/png/png-frame.ts +++ b/src/formats/png/png-frame.ts @@ -1,7 +1,7 @@ /** @format */ -import { PngBlendMode } from './png-blend-mode'; -import { PngDisposeMode } from './png-dispose-mode'; +import { PngBlendMode } from './png-blend-mode.js'; +import { PngDisposeMode } from './png-dispose-mode.js'; export interface PngFrameInitOptions { sequenceNumber?: number; diff --git a/src/formats/png/png-info.ts b/src/formats/png/png-info.ts index 4fa9498..55dcbd6 100644 --- a/src/formats/png/png-info.ts +++ b/src/formats/png/png-info.ts @@ -1,9 +1,9 @@ /** @format */ -import { Color } from '../../color/color'; -import { DecodeInfo } from '../decode-info'; -import { PngColorType } from './png-color-type'; -import { PngFrame } from './png-frame'; +import { Color } from '../../color/color.js'; +import { DecodeInfo } from '../decode-info.js'; +import { PngColorType } from './png-color-type.js'; +import { PngFrame } from './png-frame.js'; export interface PngInfoInitOptions { width?: number; diff --git a/src/formats/pnm-decoder.ts b/src/formats/pnm-decoder.ts index 78f2ea9..d5efc92 100644 --- a/src/formats/pnm-decoder.ts +++ b/src/formats/pnm-decoder.ts @@ -1,13 +1,13 @@ /** @format */ -import { Format } from '../color/format'; -import { InputBuffer } from '../common/input-buffer'; -import { MemoryImage } from '../image/image'; -import { DecodeInfo } from './decode-info'; -import { Decoder, DecoderDecodeOptions } from './decoder'; -import { ImageFormat } from './image-format'; -import { PnmFormat } from './pnm/pnm-format'; -import { PnmInfo } from './pnm/pnm-info'; +import { Format } from '../color/format.js'; +import { InputBuffer } from '../common/input-buffer.js'; +import { MemoryImage } from '../image/image.js'; +import { DecodeInfo } from './decode-info.js'; +import { Decoder, DecoderDecodeOptions } from './decoder.js'; +import { ImageFormat } from './image-format.js'; +import { PnmFormat } from './pnm/pnm-format.js'; +import { PnmInfo } from './pnm/pnm-info.js'; /** * Decode a PNM image. diff --git a/src/formats/pnm/pnm-info.ts b/src/formats/pnm/pnm-info.ts index bac8bc1..41c2607 100644 --- a/src/formats/pnm/pnm-info.ts +++ b/src/formats/pnm/pnm-info.ts @@ -1,8 +1,8 @@ /** @format */ -import { Color } from '../../color/color'; -import { DecodeInfo } from '../decode-info'; -import { PnmFormat } from './pnm-format'; +import { Color } from '../../color/color.js'; +import { DecodeInfo } from '../decode-info.js'; +import { PnmFormat } from './pnm-format.js'; export class PnmInfo implements DecodeInfo { /** diff --git a/src/formats/psd-decoder.ts b/src/formats/psd-decoder.ts index cbf176e..1a8070e 100644 --- a/src/formats/psd-decoder.ts +++ b/src/formats/psd-decoder.ts @@ -1,10 +1,10 @@ /** @format */ -import { FrameType } from '../image/frame-type'; -import { MemoryImage } from '../image/image'; -import { Decoder, DecoderDecodeOptions } from './decoder'; -import { ImageFormat } from './image-format'; -import { PsdImage } from './psd/psd-image'; +import { FrameType } from '../image/frame-type.js'; +import { MemoryImage } from '../image/image.js'; +import { Decoder, DecoderDecodeOptions } from './decoder.js'; +import { ImageFormat } from './image-format.js'; +import { PsdImage } from './psd/psd-image.js'; /** * Decode a Photoshop PSD image. diff --git a/src/formats/psd/effect/psd-bevel-effect.ts b/src/formats/psd/effect/psd-bevel-effect.ts index f479493..8713c42 100644 --- a/src/formats/psd/effect/psd-bevel-effect.ts +++ b/src/formats/psd/effect/psd-bevel-effect.ts @@ -1,6 +1,6 @@ /** @format */ -import { PsdEffect, PsdEffectOptions } from './psd-effect'; +import { PsdEffect, PsdEffectOptions } from './psd-effect.js'; export interface PsdBevelEffectOptions extends PsdEffectOptions { angle: number; diff --git a/src/formats/psd/effect/psd-drop-shadow-effect.ts b/src/formats/psd/effect/psd-drop-shadow-effect.ts index 091b937..b15dbbb 100644 --- a/src/formats/psd/effect/psd-drop-shadow-effect.ts +++ b/src/formats/psd/effect/psd-drop-shadow-effect.ts @@ -1,6 +1,6 @@ /** @format */ -import { PsdEffect, PsdEffectOptions } from './psd-effect'; +import { PsdEffect, PsdEffectOptions } from './psd-effect.js'; export interface PsdDropShadowEffectOptions extends PsdEffectOptions { blur: number; diff --git a/src/formats/psd/effect/psd-inner-glow-effect.ts b/src/formats/psd/effect/psd-inner-glow-effect.ts index 68fad30..dcba97b 100644 --- a/src/formats/psd/effect/psd-inner-glow-effect.ts +++ b/src/formats/psd/effect/psd-inner-glow-effect.ts @@ -1,6 +1,6 @@ /** @format */ -import { PsdEffect, PsdEffectOptions } from './psd-effect'; +import { PsdEffect, PsdEffectOptions } from './psd-effect.js'; export interface PsdInnerGlowEffectOptions extends PsdEffectOptions { blur: number; diff --git a/src/formats/psd/effect/psd-inner-shadow-effect.ts b/src/formats/psd/effect/psd-inner-shadow-effect.ts index b053108..1c7d60a 100644 --- a/src/formats/psd/effect/psd-inner-shadow-effect.ts +++ b/src/formats/psd/effect/psd-inner-shadow-effect.ts @@ -1,6 +1,6 @@ /** @format */ -import { PsdEffect, PsdEffectOptions } from './psd-effect'; +import { PsdEffect, PsdEffectOptions } from './psd-effect.js'; export interface PsdInnerShadowEffectOptions extends PsdEffectOptions { blur: number; diff --git a/src/formats/psd/effect/psd-outer-glow-effect.ts b/src/formats/psd/effect/psd-outer-glow-effect.ts index 790fb4f..e47221e 100644 --- a/src/formats/psd/effect/psd-outer-glow-effect.ts +++ b/src/formats/psd/effect/psd-outer-glow-effect.ts @@ -1,6 +1,6 @@ /** @format */ -import { PsdEffect, PsdEffectOptions } from './psd-effect'; +import { PsdEffect, PsdEffectOptions } from './psd-effect.js'; export interface PsdOuterGlowEffectOptions extends PsdEffectOptions { blur: number; diff --git a/src/formats/psd/effect/psd-solid-fill-effect.ts b/src/formats/psd/effect/psd-solid-fill-effect.ts index 5ed39a6..1919bd9 100644 --- a/src/formats/psd/effect/psd-solid-fill-effect.ts +++ b/src/formats/psd/effect/psd-solid-fill-effect.ts @@ -1,6 +1,6 @@ /** @format */ -import { PsdEffect, PsdEffectOptions } from './psd-effect'; +import { PsdEffect, PsdEffectOptions } from './psd-effect.js'; export interface PsdSolidFillEffectOptions extends PsdEffectOptions { blendMode: string; diff --git a/src/formats/psd/layer-data/psd-layer-additional-data.ts b/src/formats/psd/layer-data/psd-layer-additional-data.ts index ba90bb7..8963af9 100644 --- a/src/formats/psd/layer-data/psd-layer-additional-data.ts +++ b/src/formats/psd/layer-data/psd-layer-additional-data.ts @@ -1,7 +1,7 @@ /** @format */ -import { InputBuffer } from '../../../common/input-buffer'; -import { PsdLayerData } from './psd-layer-data'; +import { InputBuffer } from '../../../common/input-buffer.js'; +import { PsdLayerData } from './psd-layer-data.js'; export class PsdLayerAdditionalData extends PsdLayerData { private _data: InputBuffer; diff --git a/src/formats/psd/layer-data/psd-layer-data-factory.ts b/src/formats/psd/layer-data/psd-layer-data-factory.ts index 2f4fd24..a5c5a11 100644 --- a/src/formats/psd/layer-data/psd-layer-data-factory.ts +++ b/src/formats/psd/layer-data/psd-layer-data-factory.ts @@ -1,8 +1,8 @@ /** @format */ -import { InputBuffer } from '../../../common/input-buffer'; -import { PsdLayerAdditionalData } from './psd-layer-additional-data'; -import { PsdLayerSectionDivider } from './psd-layer-section-divider'; +import { InputBuffer } from '../../../common/input-buffer.js'; +import { PsdLayerAdditionalData } from './psd-layer-additional-data.js'; +import { PsdLayerSectionDivider } from './psd-layer-section-divider.js'; export class PsdLayerDataFactory { public static createLayerData(tag: string, data: InputBuffer) { diff --git a/src/formats/psd/layer-data/psd-layer-section-divider.ts b/src/formats/psd/layer-data/psd-layer-section-divider.ts index 2344b8d..f1c6929 100644 --- a/src/formats/psd/layer-data/psd-layer-section-divider.ts +++ b/src/formats/psd/layer-data/psd-layer-section-divider.ts @@ -1,8 +1,8 @@ /** @format */ -import { InputBuffer } from '../../../common/input-buffer'; -import { LibError } from '../../../error/lib-error'; -import { PsdLayerData } from './psd-layer-data'; +import { InputBuffer } from '../../../common/input-buffer.js'; +import { LibError } from '../../../error/lib-error.js'; +import { PsdLayerData } from './psd-layer-data.js'; export class PsdLayerSectionDivider extends PsdLayerData { public static readonly tagName = 'lsct'; diff --git a/src/formats/psd/psd-blending-ranges.ts b/src/formats/psd/psd-blending-ranges.ts index eeadb1c..735a863 100644 --- a/src/formats/psd/psd-blending-ranges.ts +++ b/src/formats/psd/psd-blending-ranges.ts @@ -1,6 +1,6 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; +import { InputBuffer } from '../../common/input-buffer.js'; export class PsdBlendingRanges { private _grayBlackSrc: number = 0; diff --git a/src/formats/psd/psd-channel.ts b/src/formats/psd/psd-channel.ts index 2dee1e5..6e3b589 100644 --- a/src/formats/psd/psd-channel.ts +++ b/src/formats/psd/psd-channel.ts @@ -1,7 +1,7 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; -import { LibError } from '../../error/lib-error'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { LibError } from '../../error/lib-error.js'; // TODO: remove? export interface ReadOptions { diff --git a/src/formats/psd/psd-image-resource.ts b/src/formats/psd/psd-image-resource.ts index c721e4f..a028a23 100644 --- a/src/formats/psd/psd-image-resource.ts +++ b/src/formats/psd/psd-image-resource.ts @@ -1,6 +1,6 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; +import { InputBuffer } from '../../common/input-buffer.js'; export class PsdImageResource { private _id: number; diff --git a/src/formats/psd/psd-image.ts b/src/formats/psd/psd-image.ts index 15e2d0a..6dda2a0 100644 --- a/src/formats/psd/psd-image.ts +++ b/src/formats/psd/psd-image.ts @@ -1,18 +1,18 @@ /** @format */ -import { Color } from '../../color/color'; -import { ColorUtils } from '../../color/color-utils'; -import { InputBuffer } from '../../common/input-buffer'; -import { MathUtils } from '../../common/math-utils'; -import { LibError } from '../../error/lib-error'; -import { MemoryImage } from '../../image/image'; -import { Pixel } from '../../image/pixel'; -import { DecodeInfo } from '../decode-info'; -import { PsdBlendMode } from './psd-blend-mode'; -import { PsdChannel } from './psd-channel'; -import { PsdColorMode } from './psd-color-mode'; -import { PsdImageResource } from './psd-image-resource'; -import { PsdLayer } from './psd-layer'; +import { Color } from '../../color/color.js'; +import { ColorUtils } from '../../color/color-utils.js'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { MathUtils } from '../../common/math-utils.js'; +import { LibError } from '../../error/lib-error.js'; +import { MemoryImage } from '../../image/image.js'; +import { Pixel } from '../../image/pixel.js'; +import { DecodeInfo } from '../decode-info.js'; +import { PsdBlendMode } from './psd-blend-mode.js'; +import { PsdChannel } from './psd-channel.js'; +import { PsdColorMode } from './psd-color-mode.js'; +import { PsdImageResource } from './psd-image-resource.js'; +import { PsdLayer } from './psd-layer.js'; export class PsdImage implements DecodeInfo { // '8BPS' diff --git a/src/formats/psd/psd-layer.ts b/src/formats/psd/psd-layer.ts index 06f91cc..8775c4c 100644 --- a/src/formats/psd/psd-layer.ts +++ b/src/formats/psd/psd-layer.ts @@ -1,24 +1,24 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; -import { LibError } from '../../error/lib-error'; -import { MemoryImage } from '../../image/image'; -import { PsdBevelEffect } from './effect/psd-bevel-effect'; -import { PsdDropShadowEffect } from './effect/psd-drop-shadow-effect'; -import { PsdEffect } from './effect/psd-effect'; -import { PsdInnerGlowEffect } from './effect/psd-inner-glow-effect'; -import { PsdInnerShadowEffect } from './effect/psd-inner-shadow-effect'; -import { PsdOuterGlowEffect } from './effect/psd-outer-glow-effect'; -import { PsdSolidFillEffect } from './effect/psd-solid-fill-effect'; -import { PsdLayerAdditionalData } from './layer-data/psd-layer-additional-data'; -import { PsdLayerData } from './layer-data/psd-layer-data'; -import { PsdLayerDataFactory } from './layer-data/psd-layer-data-factory'; -import { PsdLayerSectionDivider } from './layer-data/psd-layer-section-divider'; -import { PsdBlendingRanges } from './psd-blending-ranges'; -import { PsdChannel } from './psd-channel'; -import { PsdFlag } from './psd-flag'; -import { PsdImage } from './psd-image'; -import { PsdMask } from './psd-mask'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { LibError } from '../../error/lib-error.js'; +import { MemoryImage } from '../../image/image.js'; +import { PsdBevelEffect } from './effect/psd-bevel-effect.js'; +import { PsdDropShadowEffect } from './effect/psd-drop-shadow-effect.js'; +import { PsdEffect } from './effect/psd-effect.js'; +import { PsdInnerGlowEffect } from './effect/psd-inner-glow-effect.js'; +import { PsdInnerShadowEffect } from './effect/psd-inner-shadow-effect.js'; +import { PsdOuterGlowEffect } from './effect/psd-outer-glow-effect.js'; +import { PsdSolidFillEffect } from './effect/psd-solid-fill-effect.js'; +import { PsdLayerAdditionalData } from './layer-data/psd-layer-additional-data.js'; +import { PsdLayerData } from './layer-data/psd-layer-data.js'; +import { PsdLayerDataFactory } from './layer-data/psd-layer-data-factory.js'; +import { PsdLayerSectionDivider } from './layer-data/psd-layer-section-divider.js'; +import { PsdBlendingRanges } from './psd-blending-ranges.js'; +import { PsdChannel } from './psd-channel.js'; +import { PsdFlag } from './psd-flag.js'; +import { PsdImage } from './psd-image.js'; +import { PsdMask } from './psd-mask.js'; export class PsdLayer { // '8BIM' diff --git a/src/formats/psd/psd-mask.ts b/src/formats/psd/psd-mask.ts index 321aff1..eae7d30 100644 --- a/src/formats/psd/psd-mask.ts +++ b/src/formats/psd/psd-mask.ts @@ -1,6 +1,6 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; +import { InputBuffer } from '../../common/input-buffer.js'; export class PsdMask { private _top: number = 0; diff --git a/src/formats/pvr-decoder.ts b/src/formats/pvr-decoder.ts index 6164deb..d360b59 100644 --- a/src/formats/pvr-decoder.ts +++ b/src/formats/pvr-decoder.ts @@ -1,15 +1,15 @@ /** @format */ -import { InputBuffer } from '../common/input-buffer'; -import { TypedArray } from '../common/typings'; -import { MemoryImage } from '../image/image'; -import { DecodeInfo } from './decode-info'; -import { Decoder, DecoderDecodeOptions } from './decoder'; -import { ImageFormat } from './image-format'; -import { PvrAppleInfo } from './pvr/pvr-apple-info'; -import { PvrPacket } from './pvr/pvr-packet'; -import { Pvr2Info } from './pvr/pvr2-info'; -import { Pvr3Info } from './pvr/pvr3-info'; +import { InputBuffer } from '../common/input-buffer.js'; +import { TypedArray } from '../common/typings.js'; +import { MemoryImage } from '../image/image.js'; +import { DecodeInfo } from './decode-info.js'; +import { Decoder, DecoderDecodeOptions } from './decoder.js'; +import { ImageFormat } from './image-format.js'; +import { PvrAppleInfo } from './pvr/pvr-apple-info.js'; +import { PvrPacket } from './pvr/pvr-packet.js'; +import { Pvr2Info } from './pvr/pvr2-info.js'; +import { Pvr3Info } from './pvr/pvr3-info.js'; /** * Ported from Jeffrey Lim's PVRTC encoder/decoder, diff --git a/src/formats/pvr-encoder.ts b/src/formats/pvr-encoder.ts index af0732c..13f7605 100644 --- a/src/formats/pvr-encoder.ts +++ b/src/formats/pvr-encoder.ts @@ -1,15 +1,15 @@ /** @format */ -import { OutputBuffer } from '../common/output-buffer'; -import { LibError } from '../error/lib-error'; -import { MemoryImage } from '../image/image'; -import { Encoder, EncoderEncodeOptions } from './encoder'; -import { PvrBitUtility } from './pvr/pvr-bit-utility'; -import { PvrColorBoundingBox } from './pvr/pvr-color-bounding-box'; -import { PvrColorRgb } from './pvr/pvr-color-rgb'; -import { PvrColorRgba } from './pvr/pvr-color-rgba'; -import { PvrFormat } from './pvr/pvr-format'; -import { PvrPacket } from './pvr/pvr-packet'; +import { OutputBuffer } from '../common/output-buffer.js'; +import { LibError } from '../error/lib-error.js'; +import { MemoryImage } from '../image/image.js'; +import { Encoder, EncoderEncodeOptions } from './encoder.js'; +import { PvrBitUtility } from './pvr/pvr-bit-utility.js'; +import { PvrColorBoundingBox } from './pvr/pvr-color-bounding-box.js'; +import { PvrColorRgb } from './pvr/pvr-color-rgb.js'; +import { PvrColorRgba } from './pvr/pvr-color-rgba.js'; +import { PvrFormat } from './pvr/pvr-format.js'; +import { PvrPacket } from './pvr/pvr-packet.js'; /** * Ported from Jeffrey Lim's PVRTC encoder/decoder, diff --git a/src/formats/pvr/pvr-apple-info.ts b/src/formats/pvr/pvr-apple-info.ts index dea8e47..3257119 100644 --- a/src/formats/pvr/pvr-apple-info.ts +++ b/src/formats/pvr/pvr-apple-info.ts @@ -1,7 +1,7 @@ /** @format */ -import { Color } from '../../color/color'; -import { DecodeInfo } from '../decode-info'; +import { Color } from '../../color/color.js'; +import { DecodeInfo } from '../decode-info.js'; export interface PvrAppleInfoOptions { width: number; diff --git a/src/formats/pvr/pvr-color-bounding-box.ts b/src/formats/pvr/pvr-color-bounding-box.ts index c3a0f32..4f3b9c2 100644 --- a/src/formats/pvr/pvr-color-bounding-box.ts +++ b/src/formats/pvr/pvr-color-bounding-box.ts @@ -1,6 +1,6 @@ /** @format */ -import { PvrColorRgbCore } from './pvr-color-rgb-core'; +import { PvrColorRgbCore } from './pvr-color-rgb-core.js'; export type PvrColor = PvrColorRgbCore; diff --git a/src/formats/pvr/pvr-color-rgb.ts b/src/formats/pvr/pvr-color-rgb.ts index 092f1a3..addf339 100644 --- a/src/formats/pvr/pvr-color-rgb.ts +++ b/src/formats/pvr/pvr-color-rgb.ts @@ -1,6 +1,6 @@ /** @format */ -import { PvrColorRgbCore } from './pvr-color-rgb-core'; +import { PvrColorRgbCore } from './pvr-color-rgb-core.js'; export class PvrColorRgb implements PvrColorRgbCore { private _r: number; diff --git a/src/formats/pvr/pvr-color-rgba.ts b/src/formats/pvr/pvr-color-rgba.ts index a31963d..335f9a3 100644 --- a/src/formats/pvr/pvr-color-rgba.ts +++ b/src/formats/pvr/pvr-color-rgba.ts @@ -1,6 +1,6 @@ /** @format */ -import { PvrColorRgbCore } from './pvr-color-rgb-core'; +import { PvrColorRgbCore } from './pvr-color-rgb-core.js'; export class PvrColorRgba implements PvrColorRgbCore { private _r: number; diff --git a/src/formats/pvr/pvr-packet.ts b/src/formats/pvr/pvr-packet.ts index c7090d6..df6dab3 100644 --- a/src/formats/pvr/pvr-packet.ts +++ b/src/formats/pvr/pvr-packet.ts @@ -1,9 +1,9 @@ /** @format */ -import { TypedArray } from '../../common/typings'; -import { PvrBitUtility } from './pvr-bit-utility'; -import { PvrColorRgb } from './pvr-color-rgb'; -import { PvrColorRgba } from './pvr-color-rgba'; +import { TypedArray } from '../../common/typings.js'; +import { PvrBitUtility } from './pvr-bit-utility.js'; +import { PvrColorRgb } from './pvr-color-rgb.js'; +import { PvrColorRgba } from './pvr-color-rgba.js'; /** * Ported from Jeffrey Lim's PVRTC encoder/decoder, diff --git a/src/formats/pvr/pvr2-info.ts b/src/formats/pvr/pvr2-info.ts index bc586f3..e513600 100644 --- a/src/formats/pvr/pvr2-info.ts +++ b/src/formats/pvr/pvr2-info.ts @@ -1,7 +1,7 @@ /** @format */ -import { Color } from '../../color/color'; -import { DecodeInfo } from '../decode-info'; +import { Color } from '../../color/color.js'; +import { DecodeInfo } from '../decode-info.js'; export interface Pvr2InfoOptions { width: number; diff --git a/src/formats/pvr/pvr3-info.ts b/src/formats/pvr/pvr3-info.ts index e60395d..9ef8ac6 100644 --- a/src/formats/pvr/pvr3-info.ts +++ b/src/formats/pvr/pvr3-info.ts @@ -1,7 +1,7 @@ /** @format */ -import { Color } from '../../color/color'; -import { DecodeInfo } from '../decode-info'; +import { Color } from '../../color/color.js'; +import { DecodeInfo } from '../decode-info.js'; export interface Pvr3InfoOptions { width: number; diff --git a/src/formats/tga-decoder.ts b/src/formats/tga-decoder.ts index b6f3c3b..5dfd965 100644 --- a/src/formats/tga-decoder.ts +++ b/src/formats/tga-decoder.ts @@ -1,12 +1,12 @@ /** @format */ -import { InputBuffer } from '../common/input-buffer'; -import { MemoryImage } from '../image/image'; -import { Palette } from '../image/palette'; -import { Decoder, DecoderDecodeOptions } from './decoder'; -import { ImageFormat } from './image-format'; -import { TgaImageType } from './tga/tga-image-type'; -import { TgaInfo } from './tga/tga-info'; +import { InputBuffer } from '../common/input-buffer.js'; +import { MemoryImage } from '../image/image.js'; +import { Palette } from '../image/palette.js'; +import { Decoder, DecoderDecodeOptions } from './decoder.js'; +import { ImageFormat } from './image-format.js'; +import { TgaImageType } from './tga/tga-image-type.js'; +import { TgaInfo } from './tga/tga-info.js'; /** * Decode a TGA image. This only supports the 24-bit and 32-bit uncompressed format. diff --git a/src/formats/tga-encoder.ts b/src/formats/tga-encoder.ts index e777188..2f13613 100644 --- a/src/formats/tga-encoder.ts +++ b/src/formats/tga-encoder.ts @@ -1,8 +1,8 @@ /** @format */ -import { OutputBuffer } from '../common/output-buffer'; -import { MemoryImage } from '../image/image'; -import { Encoder, EncoderEncodeOptions } from './encoder'; +import { OutputBuffer } from '../common/output-buffer.js'; +import { MemoryImage } from '../image/image.js'; +import { Encoder, EncoderEncodeOptions } from './encoder.js'; /** * Encode a TGA image. This only supports the 24-bit uncompressed format. diff --git a/src/formats/tga/tga-info.ts b/src/formats/tga/tga-info.ts index 64023eb..784a388 100644 --- a/src/formats/tga/tga-info.ts +++ b/src/formats/tga/tga-info.ts @@ -1,9 +1,9 @@ /** @format */ -import { Color } from '../../color/color'; -import { InputBuffer } from '../../common/input-buffer'; -import { DecodeInfo } from '../decode-info'; -import { TgaImageType, TgaImageTypeLength } from './tga-image-type'; +import { Color } from '../../color/color.js'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { DecodeInfo } from '../decode-info.js'; +import { TgaImageType, TgaImageTypeLength } from './tga-image-type.js'; export interface TgaInfoInitOptions { width?: number; diff --git a/src/formats/tiff-decoder.ts b/src/formats/tiff-decoder.ts index 07f0448..cb76f2b 100644 --- a/src/formats/tiff-decoder.ts +++ b/src/formats/tiff-decoder.ts @@ -1,13 +1,13 @@ /** @format */ -import { InputBuffer } from '../common/input-buffer'; -import { ExifData } from '../exif/exif-data'; -import { FrameType } from '../image/frame-type'; -import { MemoryImage } from '../image/image'; -import { Decoder, DecoderDecodeOptions } from './decoder'; -import { ImageFormat } from './image-format'; -import { TiffImage } from './tiff/tiff-image'; -import { TiffInfo } from './tiff/tiff-info'; +import { InputBuffer } from '../common/input-buffer.js'; +import { ExifData } from '../exif/exif-data.js'; +import { FrameType } from '../image/frame-type.js'; +import { MemoryImage } from '../image/image.js'; +import { Decoder, DecoderDecodeOptions } from './decoder.js'; +import { ImageFormat } from './image-format.js'; +import { TiffImage } from './tiff/tiff-image.js'; +import { TiffInfo } from './tiff/tiff-info.js'; export class TiffDecoder implements Decoder { private static readonly _tiffSignature = 42; diff --git a/src/formats/tiff-encoder.ts b/src/formats/tiff-encoder.ts index 3ae0dad..d34f932 100644 --- a/src/formats/tiff-encoder.ts +++ b/src/formats/tiff-encoder.ts @@ -1,15 +1,15 @@ /** @format */ -import { Format, FormatType } from '../color/format'; -import { OutputBuffer } from '../common/output-buffer'; -import { LibError } from '../error/lib-error'; -import { ExifData } from '../exif/exif-data'; -import { IfdUndefinedValue } from '../exif/ifd-value/ifd-undefined-value'; -import { MemoryImage } from '../image/image'; -import { Encoder, EncoderEncodeOptions } from './encoder'; -import { TiffCompression } from './tiff/tiff-compression'; -import { TiffFormat } from './tiff/tiff-format'; -import { TiffPhotometricType } from './tiff/tiff-photometric-type'; +import { Format, FormatType } from '../color/format.js'; +import { OutputBuffer } from '../common/output-buffer.js'; +import { LibError } from '../error/lib-error.js'; +import { ExifData } from '../exif/exif-data.js'; +import { IfdUndefinedValue } from '../exif/ifd-value/ifd-undefined-value.js'; +import { MemoryImage } from '../image/image.js'; +import { Encoder, EncoderEncodeOptions } from './encoder.js'; +import { TiffCompression } from './tiff/tiff-compression.js'; +import { TiffFormat } from './tiff/tiff-format.js'; +import { TiffPhotometricType } from './tiff/tiff-photometric-type.js'; /** * Encode a MemoryImage to the TIFF format. diff --git a/src/formats/tiff/tiff-bit-reader.ts b/src/formats/tiff/tiff-bit-reader.ts index ff97a26..81c60f7 100644 --- a/src/formats/tiff/tiff-bit-reader.ts +++ b/src/formats/tiff/tiff-bit-reader.ts @@ -1,6 +1,6 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; +import { InputBuffer } from '../../common/input-buffer.js'; export class TiffBitReader { private static readonly _bitMask = [0, 1, 3, 7, 15, 31, 63, 127, 255]; diff --git a/src/formats/tiff/tiff-entry.ts b/src/formats/tiff/tiff-entry.ts index 50381da..b14e9e1 100644 --- a/src/formats/tiff/tiff-entry.ts +++ b/src/formats/tiff/tiff-entry.ts @@ -1,22 +1,22 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; -import { LibError } from '../../error/lib-error'; -import { ExifImageTags } from '../../exif/exif-tag'; -import { IfdValueType, IfdValueTypeSize } from '../../exif/ifd-value-type'; -import { IfdAsciiValue } from '../../exif/ifd-value/ifd-ascii-value'; -import { IfdByteValue } from '../../exif/ifd-value/ifd-byte-value'; -import { IfdDoubleValue } from '../../exif/ifd-value/ifd-double-value'; -import { IfdLongValue } from '../../exif/ifd-value/ifd-long-value'; -import { IfdRationalValue } from '../../exif/ifd-value/ifd-rational-value'; -import { IfdSByteValue } from '../../exif/ifd-value/ifd-sbyte-value'; -import { IfdShortValue } from '../../exif/ifd-value/ifd-short-value'; -import { IfdSingleValue } from '../../exif/ifd-value/ifd-single-value'; -import { IfdSLongValue } from '../../exif/ifd-value/ifd-slong-value'; -import { IfdSRationalValue } from '../../exif/ifd-value/ifd-srational-value'; -import { IfdSShortValue } from '../../exif/ifd-value/ifd-sshort-value'; -import { IfdValue } from '../../exif/ifd-value/ifd-value'; -import { TiffImage } from './tiff-image'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { LibError } from '../../error/lib-error.js'; +import { ExifImageTags } from '../../exif/exif-tag.js'; +import { IfdValueType, IfdValueTypeSize } from '../../exif/ifd-value-type.js'; +import { IfdAsciiValue } from '../../exif/ifd-value/ifd-ascii-value.js'; +import { IfdByteValue } from '../../exif/ifd-value/ifd-byte-value.js'; +import { IfdDoubleValue } from '../../exif/ifd-value/ifd-double-value.js'; +import { IfdLongValue } from '../../exif/ifd-value/ifd-long-value.js'; +import { IfdRationalValue } from '../../exif/ifd-value/ifd-rational-value.js'; +import { IfdSByteValue } from '../../exif/ifd-value/ifd-sbyte-value.js'; +import { IfdShortValue } from '../../exif/ifd-value/ifd-short-value.js'; +import { IfdSingleValue } from '../../exif/ifd-value/ifd-single-value.js'; +import { IfdSLongValue } from '../../exif/ifd-value/ifd-slong-value.js'; +import { IfdSRationalValue } from '../../exif/ifd-value/ifd-srational-value.js'; +import { IfdSShortValue } from '../../exif/ifd-value/ifd-sshort-value.js'; +import { IfdValue } from '../../exif/ifd-value/ifd-value.js'; +import { TiffImage } from './tiff-image.js'; export interface TiffEntryInitOptions { tag: number; diff --git a/src/formats/tiff/tiff-fax-decoder.ts b/src/formats/tiff/tiff-fax-decoder.ts index d1ad960..beadc3e 100644 --- a/src/formats/tiff/tiff-fax-decoder.ts +++ b/src/formats/tiff/tiff-fax-decoder.ts @@ -1,7 +1,7 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; -import { LibError } from '../../error/lib-error'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { LibError } from '../../error/lib-error.js'; export interface TiffFaxDecoderInitOptions { fillOrder: number; diff --git a/src/formats/tiff/tiff-image.ts b/src/formats/tiff/tiff-image.ts index fe10f58..8f15575 100644 --- a/src/formats/tiff/tiff-image.ts +++ b/src/formats/tiff/tiff-image.ts @@ -1,28 +1,28 @@ /** @format */ -import { inflate } from '../../uzip/uzip'; -import { ColorUtils } from '../../color/color-utils'; -import { Format } from '../../color/format'; -import { ArrayUtils } from '../../common/array-utils'; -import { BitUtils } from '../../common/bit-utils'; -import { Float16 } from '../../common/float16'; -import { InputBuffer } from '../../common/input-buffer'; -import { LibError } from '../../error/lib-error'; -import { ExifTagNameToID } from '../../exif/exif-tag'; -import { IfdValueType, IfdValueTypeSize } from '../../exif/ifd-value-type'; -import { MemoryImage } from '../../image/image'; -import { JpegDecoder } from '../jpeg-decoder'; -import { TiffBitReader } from './tiff-bit-reader'; -import { TiffCompression } from './tiff-compression'; -import { TiffEntry } from './tiff-entry'; -import { TiffFaxDecoder } from './tiff-fax-decoder'; -import { TiffFormat } from './tiff-format'; -import { TiffImageType } from './tiff-image-type'; -import { LzwDecoder } from './tiff-lzw-decoder'; +import { inflate } from '../../uzip/uzip.js'; +import { ColorUtils } from '../../color/color-utils.js'; +import { Format } from '../../color/format.js'; +import { ArrayUtils } from '../../common/array-utils.js'; +import { BitUtils } from '../../common/bit-utils.js'; +import { Float16 } from '../../common/float16.js'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { LibError } from '../../error/lib-error.js'; +import { ExifTagNameToID } from '../../exif/exif-tag.js'; +import { IfdValueType, IfdValueTypeSize } from '../../exif/ifd-value-type.js'; +import { MemoryImage } from '../../image/image.js'; +import { JpegDecoder } from '../jpeg-decoder.js'; +import { TiffBitReader } from './tiff-bit-reader.js'; +import { TiffCompression } from './tiff-compression.js'; +import { TiffEntry } from './tiff-entry.js'; +import { TiffFaxDecoder } from './tiff-fax-decoder.js'; +import { TiffFormat } from './tiff-format.js'; +import { TiffImageType } from './tiff-image-type.js'; +import { LzwDecoder } from './tiff-lzw-decoder.js'; import { TiffPhotometricType, TiffPhotometricTypeLength, -} from './tiff-photometric-type'; +} from './tiff-photometric-type.js'; export class TiffImage { private readonly _tags: Map = new Map(); diff --git a/src/formats/tiff/tiff-info.ts b/src/formats/tiff/tiff-info.ts index ac8158e..ebb96cd 100644 --- a/src/formats/tiff/tiff-info.ts +++ b/src/formats/tiff/tiff-info.ts @@ -1,8 +1,8 @@ /** @format */ -import { Color } from '../../color/color'; -import { DecodeInfo } from '../decode-info'; -import { TiffImage } from './tiff-image'; +import { Color } from '../../color/color.js'; +import { DecodeInfo } from '../decode-info.js'; +import { TiffImage } from './tiff-image.js'; export interface TiffInfoInitOptions { bigEndian: boolean; diff --git a/src/formats/tiff/tiff-lzw-decoder.ts b/src/formats/tiff/tiff-lzw-decoder.ts index dbf4080..a35c6cd 100644 --- a/src/formats/tiff/tiff-lzw-decoder.ts +++ b/src/formats/tiff/tiff-lzw-decoder.ts @@ -1,7 +1,7 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; -import { LibError } from '../../error/lib-error'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { LibError } from '../../error/lib-error.js'; export class LzwDecoder { private static readonly _lzMaxCode = 4095; diff --git a/src/formats/webp-decoder.ts b/src/formats/webp-decoder.ts index 1e46349..04cabc0 100644 --- a/src/formats/webp-decoder.ts +++ b/src/formats/webp-decoder.ts @@ -1,18 +1,18 @@ /** @format */ -import { ColorRgba8 } from '../color/color-rgba8'; -import { InputBuffer } from '../common/input-buffer'; -import { Draw } from '../draw/draw'; -import { LibError } from '../error/lib-error'; -import { MemoryImage } from '../image/image'; -import { Decoder, DecoderDecodeOptions } from './decoder'; -import { ImageFormat } from './image-format'; -import { VP8 } from './webp/vp8'; -import { VP8L } from './webp/vp8l'; -import { WebPFormat } from './webp/webp-format'; -import { WebPFrame } from './webp/webp-frame'; -import { WebPInfo } from './webp/webp-info'; -import { WebPInfoInternal } from './webp/webp-info-internal'; +import { ColorRgba8 } from '../color/color-rgba8.js'; +import { InputBuffer } from '../common/input-buffer.js'; +import { Draw } from '../draw/draw.js'; +import { LibError } from '../error/lib-error.js'; +import { MemoryImage } from '../image/image.js'; +import { Decoder, DecoderDecodeOptions } from './decoder.js'; +import { ImageFormat } from './image-format.js'; +import { VP8 } from './webp/vp8.js'; +import { VP8L } from './webp/vp8l.js'; +import { WebPFormat } from './webp/webp-format.js'; +import { WebPFrame } from './webp/webp-frame.js'; +import { WebPInfo } from './webp/webp-info.js'; +import { WebPInfoInternal } from './webp/webp-info-internal.js'; /** * Decode a WebP formatted image. This supports lossless (vp8l), lossy (vp8), diff --git a/src/formats/webp/vp8-band-probas.ts b/src/formats/webp/vp8-band-probas.ts index be3462e..af5bd04 100644 --- a/src/formats/webp/vp8-band-probas.ts +++ b/src/formats/webp/vp8-band-probas.ts @@ -1,7 +1,7 @@ /** @format */ -import { ArrayUtils } from '../../common/array-utils'; -import { VP8 } from './vp8'; +import { ArrayUtils } from '../../common/array-utils.js'; +import { VP8 } from './vp8.js'; /** * All the probas associated to one band diff --git a/src/formats/webp/vp8-bit-reader.ts b/src/formats/webp/vp8-bit-reader.ts index c661afe..82b7a3d 100644 --- a/src/formats/webp/vp8-bit-reader.ts +++ b/src/formats/webp/vp8-bit-reader.ts @@ -1,6 +1,6 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; +import { InputBuffer } from '../../common/input-buffer.js'; export class VP8BitReader { private _input: InputBuffer; diff --git a/src/formats/webp/vp8-filter-header.ts b/src/formats/webp/vp8-filter-header.ts index e9af398..3049264 100644 --- a/src/formats/webp/vp8-filter-header.ts +++ b/src/formats/webp/vp8-filter-header.ts @@ -1,6 +1,6 @@ /** @format */ -import { VP8 } from './vp8'; +import { VP8 } from './vp8.js'; /** * Filter parameters diff --git a/src/formats/webp/vp8-filter.ts b/src/formats/webp/vp8-filter.ts index 2516874..f85175a 100644 --- a/src/formats/webp/vp8-filter.ts +++ b/src/formats/webp/vp8-filter.ts @@ -6,9 +6,9 @@ /** @format */ -import { BitUtils } from '../../common/bit-utils'; -import { InputBuffer } from '../../common/input-buffer'; -import { VP8 } from './vp8'; +import { BitUtils } from '../../common/bit-utils.js'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { VP8 } from './vp8.js'; export class VP8Filter { constructor() { diff --git a/src/formats/webp/vp8-proba.ts b/src/formats/webp/vp8-proba.ts index f0ca966..19171f1 100644 --- a/src/formats/webp/vp8-proba.ts +++ b/src/formats/webp/vp8-proba.ts @@ -1,8 +1,8 @@ /** @format */ -import { ArrayUtils } from '../../common/array-utils'; -import { VP8 } from './vp8'; -import { VP8BandProbas } from './vp8-band-probas'; +import { ArrayUtils } from '../../common/array-utils.js'; +import { VP8 } from './vp8.js'; +import { VP8BandProbas } from './vp8-band-probas.js'; /** * Struct collecting all frame-persistent probabilities diff --git a/src/formats/webp/vp8-random.ts b/src/formats/webp/vp8-random.ts index 703e4e8..2ccb068 100644 --- a/src/formats/webp/vp8-random.ts +++ b/src/formats/webp/vp8-random.ts @@ -1,6 +1,6 @@ /** @format */ -import { ArrayUtils } from '../../common/array-utils'; +import { ArrayUtils } from '../../common/array-utils.js'; export class VP8Random { private readonly _table = new Uint32Array(VP8Random.randomTableSize); diff --git a/src/formats/webp/vp8-segment-header.ts b/src/formats/webp/vp8-segment-header.ts index 74869e9..aa69546 100644 --- a/src/formats/webp/vp8-segment-header.ts +++ b/src/formats/webp/vp8-segment-header.ts @@ -1,6 +1,6 @@ /** @format */ -import { VP8 } from './vp8'; +import { VP8 } from './vp8.js'; /** * Segment features diff --git a/src/formats/webp/vp8.ts b/src/formats/webp/vp8.ts index 28e9ae9..f0beead 100644 --- a/src/formats/webp/vp8.ts +++ b/src/formats/webp/vp8.ts @@ -1,24 +1,24 @@ /** @format */ -import { ArrayUtils } from '../../common/array-utils'; -import { InputBuffer } from '../../common/input-buffer'; -import { MemoryImage } from '../../image/image'; -import { VP8BandProbas } from './vp8-band-probas'; -import { VP8BitReader } from './vp8-bit-reader'; -import { VP8FInfo } from './vp8-f-info'; -import { VP8Filter } from './vp8-filter'; -import { VP8FilterHeader } from './vp8-filter-header'; -import { VP8FrameHeader } from './vp8-frame-header'; -import { VP8MB } from './vp8-mb'; -import { VP8MBData } from './vp8-mb-data'; -import { VP8PictureHeader } from './vp8-picture-header'; -import { VP8Proba } from './vp8-proba'; -import { VP8QuantMatrix } from './vp8-quant-matrix'; -import { VP8SegmentHeader } from './vp8-segment-header'; -import { VP8TopSamples } from './vp8-top-samples'; -import { WebPAlpha } from './webp-alpha'; -import { WebPInfo } from './webp-info'; -import { WebPInfoInternal } from './webp-info-internal'; +import { ArrayUtils } from '../../common/array-utils.js'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { MemoryImage } from '../../image/image.js'; +import { VP8BandProbas } from './vp8-band-probas.js'; +import { VP8BitReader } from './vp8-bit-reader.js'; +import { VP8FInfo } from './vp8-f-info.js'; +import { VP8Filter } from './vp8-filter.js'; +import { VP8FilterHeader } from './vp8-filter-header.js'; +import { VP8FrameHeader } from './vp8-frame-header.js'; +import { VP8MB } from './vp8-mb.js'; +import { VP8MBData } from './vp8-mb-data.js'; +import { VP8PictureHeader } from './vp8-picture-header.js'; +import { VP8Proba } from './vp8-proba.js'; +import { VP8QuantMatrix } from './vp8-quant-matrix.js'; +import { VP8SegmentHeader } from './vp8-segment-header.js'; +import { VP8TopSamples } from './vp8-top-samples.js'; +import { WebPAlpha } from './webp-alpha.js'; +import { WebPInfo } from './webp-info.js'; +import { WebPInfoInternal } from './webp-info-internal.js'; /** * WebP lossy format diff --git a/src/formats/webp/vp8l-bit-reader.ts b/src/formats/webp/vp8l-bit-reader.ts index 2e57cde..402a628 100644 --- a/src/formats/webp/vp8l-bit-reader.ts +++ b/src/formats/webp/vp8l-bit-reader.ts @@ -1,7 +1,7 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; -import { LibError } from '../../error/lib-error'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { LibError } from '../../error/lib-error.js'; export class VP8LBitReader { private readonly _input: InputBuffer; diff --git a/src/formats/webp/vp8l-internal.ts b/src/formats/webp/vp8l-internal.ts index 407fdc7..44fd890 100644 --- a/src/formats/webp/vp8l-internal.ts +++ b/src/formats/webp/vp8l-internal.ts @@ -1,7 +1,7 @@ /** @format */ -import { VP8L } from './vp8l'; -import { VP8LTransform } from './vp8l-transform'; +import { VP8L } from './vp8l.js'; +import { VP8LTransform } from './vp8l-transform.js'; export class VP8LInternal extends VP8L { public get transforms(): VP8LTransform[] { diff --git a/src/formats/webp/vp8l-multipliers.ts b/src/formats/webp/vp8l-multipliers.ts index 6e1cb3a..c64528b 100644 --- a/src/formats/webp/vp8l-multipliers.ts +++ b/src/formats/webp/vp8l-multipliers.ts @@ -1,6 +1,6 @@ /** @format */ -import { BitUtils } from '../../common/bit-utils'; +import { BitUtils } from '../../common/bit-utils.js'; export class VP8LMultipliers { private readonly _data = new Uint8Array(3); diff --git a/src/formats/webp/vp8l-transform.ts b/src/formats/webp/vp8l-transform.ts index 02b8f9e..f9d5c06 100644 --- a/src/formats/webp/vp8l-transform.ts +++ b/src/formats/webp/vp8l-transform.ts @@ -1,11 +1,11 @@ /** @format */ -import { ArrayUtils } from '../../common/array-utils'; -import { InputBuffer } from '../../common/input-buffer'; -import { VP8L } from './vp8l'; -import { VP8LImageTransformType } from './vp8l-image-transform-type'; -import { VP8LInternal } from './vp8l-internal'; -import { VP8LMultipliers } from './vp8l-multipliers'; +import { ArrayUtils } from '../../common/array-utils.js'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { VP8L } from './vp8l.js'; +import { VP8LImageTransformType } from './vp8l-image-transform-type.js'; +import { VP8LInternal } from './vp8l-internal.js'; +import { VP8LMultipliers } from './vp8l-multipliers.js'; export class VP8LTransform { private _type: VP8LImageTransformType = VP8LImageTransformType.predictor; diff --git a/src/formats/webp/vp8l.ts b/src/formats/webp/vp8l.ts index 04cec23..86f2c91 100644 --- a/src/formats/webp/vp8l.ts +++ b/src/formats/webp/vp8l.ts @@ -1,18 +1,18 @@ /** @format */ -import { ColorUtils } from '../../color/color-utils'; -import { ArrayUtils } from '../../common/array-utils'; -import { InputBuffer } from '../../common/input-buffer'; -import { LibError } from '../../error/lib-error'; -import { MemoryImage } from '../../image/image'; -import { VP8LBitReader } from './vp8l-bit-reader'; -import { VP8LColorCache } from './vp8l-color-cache'; -import { VP8LImageTransformType } from './vp8l-image-transform-type'; -import { VP8LTransform } from './vp8l-transform'; -import { WebPFormat } from './webp-format'; -import { HuffmanTree } from './webp-huffman-tree'; -import { HuffmanTreeGroup } from './webp-huffman-tree-group'; -import { WebPInfo } from './webp-info'; +import { ColorUtils } from '../../color/color-utils.js'; +import { ArrayUtils } from '../../common/array-utils.js'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { LibError } from '../../error/lib-error.js'; +import { MemoryImage } from '../../image/image.js'; +import { VP8LBitReader } from './vp8l-bit-reader.js'; +import { VP8LColorCache } from './vp8l-color-cache.js'; +import { VP8LImageTransformType } from './vp8l-image-transform-type.js'; +import { VP8LTransform } from './vp8l-transform.js'; +import { WebPFormat } from './webp-format.js'; +import { HuffmanTree } from './webp-huffman-tree.js'; +import { HuffmanTreeGroup } from './webp-huffman-tree-group.js'; +import { WebPInfo } from './webp-info.js'; export class VP8L { private _lastPixel: number = 0; diff --git a/src/formats/webp/webp-alpha.ts b/src/formats/webp/webp-alpha.ts index 2427bf2..4d4577d 100644 --- a/src/formats/webp/webp-alpha.ts +++ b/src/formats/webp/webp-alpha.ts @@ -1,11 +1,11 @@ /** @format */ -import { ArrayUtils } from '../../common/array-utils'; -import { InputBuffer } from '../../common/input-buffer'; -import { VP8LImageTransformType } from './vp8l-image-transform-type'; -import { VP8LInternal } from './vp8l-internal'; -import { WebPFilters } from './webp-filters'; -import { WebPInfo } from './webp-info'; +import { ArrayUtils } from '../../common/array-utils.js'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { VP8LImageTransformType } from './vp8l-image-transform-type.js'; +import { VP8LInternal } from './vp8l-internal.js'; +import { WebPFilters } from './webp-filters.js'; +import { WebPInfo } from './webp-info.js'; export class WebPAlpha { private _input: InputBuffer; diff --git a/src/formats/webp/webp-filters.ts b/src/formats/webp/webp-filters.ts index 4cee03c..d6ee0fd 100644 --- a/src/formats/webp/webp-filters.ts +++ b/src/formats/webp/webp-filters.ts @@ -1,6 +1,6 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; +import { InputBuffer } from '../../common/input-buffer.js'; export class WebPFilters { private static predictLine( diff --git a/src/formats/webp/webp-frame.ts b/src/formats/webp/webp-frame.ts index e61626b..163165f 100644 --- a/src/formats/webp/webp-frame.ts +++ b/src/formats/webp/webp-frame.ts @@ -1,6 +1,6 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; +import { InputBuffer } from '../../common/input-buffer.js'; /** * Decodes a frame from a WebP animation diff --git a/src/formats/webp/webp-huffman-tree-group.ts b/src/formats/webp/webp-huffman-tree-group.ts index ed8c2bb..8b838a4 100644 --- a/src/formats/webp/webp-huffman-tree-group.ts +++ b/src/formats/webp/webp-huffman-tree-group.ts @@ -1,8 +1,8 @@ /** @format */ -import { ArrayUtils } from '../../common/array-utils'; -import { VP8L } from './vp8l'; -import { HuffmanTree } from './webp-huffman-tree'; +import { ArrayUtils } from '../../common/array-utils.js'; +import { VP8L } from './vp8l.js'; +import { HuffmanTree } from './webp-huffman-tree.js'; /** * A group of huffman trees diff --git a/src/formats/webp/webp-huffman-tree.ts b/src/formats/webp/webp-huffman-tree.ts index 8d4c271..162094a 100644 --- a/src/formats/webp/webp-huffman-tree.ts +++ b/src/formats/webp/webp-huffman-tree.ts @@ -1,7 +1,7 @@ /** @format */ -import { VP8L } from './vp8l'; -import { VP8LBitReader } from './vp8l-bit-reader'; +import { VP8L } from './vp8l.js'; +import { VP8LBitReader } from './vp8l-bit-reader.js'; export class HuffmanTree { // Fast lookup for short bit lengths diff --git a/src/formats/webp/webp-info-internal.ts b/src/formats/webp/webp-info-internal.ts index 468ca75..fb0b3cc 100644 --- a/src/formats/webp/webp-info-internal.ts +++ b/src/formats/webp/webp-info-internal.ts @@ -1,7 +1,7 @@ /** @format */ -import { InputBuffer } from '../../common/input-buffer'; -import { WebPInfo } from './webp-info'; +import { InputBuffer } from '../../common/input-buffer.js'; +import { WebPInfo } from './webp-info.js'; export class WebPInfoInternal extends WebPInfo { private _frameCount: number = 0; diff --git a/src/formats/webp/webp-info.ts b/src/formats/webp/webp-info.ts index af430d4..e20a907 100644 --- a/src/formats/webp/webp-info.ts +++ b/src/formats/webp/webp-info.ts @@ -1,9 +1,9 @@ /** @format */ -import { Color } from '../../color/color'; -import { DecodeInfo } from '../decode-info'; -import { WebPFormat } from './webp-format'; -import { WebPFrame } from './webp-frame'; +import { Color } from '../../color/color.js'; +import { DecodeInfo } from '../decode-info.js'; +import { WebPFormat } from './webp-format.js'; +import { WebPFrame } from './webp-frame.js'; /** * Features gathered from the bitstream diff --git a/src/formats/win-encoder.ts b/src/formats/win-encoder.ts index 45f1a4e..fb34561 100644 --- a/src/formats/win-encoder.ts +++ b/src/formats/win-encoder.ts @@ -1,10 +1,10 @@ /** @format */ -import { OutputBuffer } from '../common/output-buffer'; -import { LibError } from '../error/lib-error'; -import { MemoryImage } from '../image/image'; -import { Encoder, EncoderEncodeOptions } from './encoder'; -import { PngEncoder } from './png-encoder'; +import { OutputBuffer } from '../common/output-buffer.js'; +import { LibError } from '../error/lib-error.js'; +import { MemoryImage } from '../image/image.js'; +import { Encoder, EncoderEncodeOptions } from './encoder.js'; +import { PngEncoder } from './png-encoder.js'; export abstract class WinEncoder implements Encoder { protected _type = 0; diff --git a/src/image/binary-quantizer.ts b/src/image/binary-quantizer.ts index 8568fdf..036fc11 100644 --- a/src/image/binary-quantizer.ts +++ b/src/image/binary-quantizer.ts @@ -1,13 +1,13 @@ /** @format */ -import { Color } from '../color/color'; -import { ColorRgb8 } from '../color/color-rgb8'; -import { ColorUtils } from '../color/color-utils'; -import { MemoryImage } from './image'; -import { Palette } from './palette'; -import { PaletteUint8 } from './palette-uint8'; -import { Pixel } from './pixel'; -import { Quantizer } from './quantizer'; +import { Color } from '../color/color.js'; +import { ColorRgb8 } from '../color/color-rgb8.js'; +import { ColorUtils } from '../color/color-utils.js'; +import { MemoryImage } from './image.js'; +import { Palette } from './palette.js'; +import { PaletteUint8 } from './palette-uint8.js'; +import { Pixel } from './pixel.js'; +import { Quantizer } from './quantizer.js'; export class BinaryQuantizer implements Quantizer { private readonly _palette: Palette; diff --git a/src/image/heap-node.ts b/src/image/heap-node.ts index 54b2668..ebedc3c 100644 --- a/src/image/heap-node.ts +++ b/src/image/heap-node.ts @@ -1,6 +1,6 @@ /** @format */ -import { OctreeNode } from './octree-node'; +import { OctreeNode } from './octree-node.js'; export class HeapNode { private _buf: Array = [undefined]; diff --git a/src/image/icc-profile.ts b/src/image/icc-profile.ts index b4d781c..fdc27c3 100644 --- a/src/image/icc-profile.ts +++ b/src/image/icc-profile.ts @@ -1,8 +1,8 @@ /** @format */ -import { inflate, deflate } from '../uzip/uzip'; -import { ArrayUtils } from '../common/array-utils'; -import { IccProfileCompression } from './icc-profile-compression'; +import { inflate, deflate } from '../uzip/uzip.js'; +import { ArrayUtils } from '../common/array-utils.js'; +import { IccProfileCompression } from './icc-profile-compression.js'; /** * ICC Profile data stored with an image. diff --git a/src/image/image-data-float16.ts b/src/image/image-data-float16.ts index 395934d..f57fd8c 100644 --- a/src/image/image-data-float16.ts +++ b/src/image/image-data-float16.ts @@ -1,18 +1,18 @@ /** @format */ -import { Color } from '../color/color'; -import { Format, FormatType } from '../color/format'; +import { Color } from '../color/color.js'; +import { Format, FormatType } from '../color/format.js'; import { MemoryImageData, MemoryImageDataGetBytesOptions, getImageDataBytes, -} from './image-data'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; -import { PixelFloat16 } from './pixel-float16'; -import { PixelRangeIterator } from './pixel-range-iterator'; -import { ColorFloat16 } from '../color/color-float16'; -import { Float16 } from '../common/float16'; +} from './image-data.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; +import { PixelFloat16 } from './pixel-float16.js'; +import { PixelRangeIterator } from './pixel-range-iterator.js'; +import { ColorFloat16 } from '../color/color-float16.js'; +import { Float16 } from '../common/float16.js'; export class MemoryImageDataFloat16 implements MemoryImageData, Iterable diff --git a/src/image/image-data-float32.ts b/src/image/image-data-float32.ts index 1931df4..6812802 100644 --- a/src/image/image-data-float32.ts +++ b/src/image/image-data-float32.ts @@ -1,17 +1,17 @@ /** @format */ -import { Color } from '../color/color'; -import { Format, FormatType } from '../color/format'; +import { Color } from '../color/color.js'; +import { Format, FormatType } from '../color/format.js'; import { MemoryImageData, MemoryImageDataGetBytesOptions, getImageDataBytes, -} from './image-data'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; -import { PixelFloat32 } from './pixel-float32'; -import { PixelRangeIterator } from './pixel-range-iterator'; -import { ColorFloat32 } from '../color/color-float32'; +} from './image-data.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; +import { PixelFloat32 } from './pixel-float32.js'; +import { PixelRangeIterator } from './pixel-range-iterator.js'; +import { ColorFloat32 } from '../color/color-float32.js'; export class MemoryImageDataFloat32 implements MemoryImageData, Iterable diff --git a/src/image/image-data-float64.ts b/src/image/image-data-float64.ts index 57286a3..8ce847f 100644 --- a/src/image/image-data-float64.ts +++ b/src/image/image-data-float64.ts @@ -1,17 +1,17 @@ /** @format */ -import { Color } from '../color/color'; -import { Format, FormatType } from '../color/format'; +import { Color } from '../color/color.js'; +import { Format, FormatType } from '../color/format.js'; import { MemoryImageData, MemoryImageDataGetBytesOptions, getImageDataBytes, -} from './image-data'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; -import { PixelFloat64 } from './pixel-float64'; -import { PixelRangeIterator } from './pixel-range-iterator'; -import { ColorFloat64 } from '../color/color-float64'; +} from './image-data.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; +import { PixelFloat64 } from './pixel-float64.js'; +import { PixelRangeIterator } from './pixel-range-iterator.js'; +import { ColorFloat64 } from '../color/color-float64.js'; export class MemoryImageDataFloat64 implements MemoryImageData, Iterable diff --git a/src/image/image-data-int16.ts b/src/image/image-data-int16.ts index 4bf149a..2b5cf01 100644 --- a/src/image/image-data-int16.ts +++ b/src/image/image-data-int16.ts @@ -1,17 +1,17 @@ /** @format */ -import { Color } from '../color/color'; -import { ColorInt16 } from '../color/color-int16'; -import { Format, FormatType } from '../color/format'; +import { Color } from '../color/color.js'; +import { ColorInt16 } from '../color/color-int16.js'; +import { Format, FormatType } from '../color/format.js'; import { MemoryImageData, MemoryImageDataGetBytesOptions, getImageDataBytes, -} from './image-data'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; -import { PixelInt16 } from './pixel-int16'; -import { PixelRangeIterator } from './pixel-range-iterator'; +} from './image-data.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; +import { PixelInt16 } from './pixel-int16.js'; +import { PixelRangeIterator } from './pixel-range-iterator.js'; export class MemoryImageDataInt16 implements MemoryImageData, Iterable { private readonly _width: number; diff --git a/src/image/image-data-int32.ts b/src/image/image-data-int32.ts index 0996825..b0db293 100644 --- a/src/image/image-data-int32.ts +++ b/src/image/image-data-int32.ts @@ -1,18 +1,18 @@ /** @format */ -import { Color } from '../color/color'; -import { ColorInt32 } from '../color/color-int32'; -import { Format, FormatType } from '../color/format'; -import { StringUtils } from '../common/string-utils'; +import { Color } from '../color/color.js'; +import { ColorInt32 } from '../color/color-int32.js'; +import { Format, FormatType } from '../color/format.js'; +import { StringUtils } from '../common/string-utils.js'; import { MemoryImageData, MemoryImageDataGetBytesOptions, getImageDataBytes, -} from './image-data'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; -import { PixelInt32 } from './pixel-int32'; -import { PixelRangeIterator } from './pixel-range-iterator'; +} from './image-data.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; +import { PixelInt32 } from './pixel-int32.js'; +import { PixelRangeIterator } from './pixel-range-iterator.js'; export class MemoryImageDataInt32 implements MemoryImageData, Iterable { private readonly _width: number; diff --git a/src/image/image-data-int8.ts b/src/image/image-data-int8.ts index 0ffb1a9..decb6cd 100644 --- a/src/image/image-data-int8.ts +++ b/src/image/image-data-int8.ts @@ -1,17 +1,17 @@ /** @format */ -import { Color } from '../color/color'; -import { ColorInt8 } from '../color/color-int8'; -import { Format, FormatType } from '../color/format'; +import { Color } from '../color/color.js'; +import { ColorInt8 } from '../color/color-int8.js'; +import { Format, FormatType } from '../color/format.js'; import { MemoryImageData, MemoryImageDataGetBytesOptions, getImageDataBytes, -} from './image-data'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; -import { PixelInt8 } from './pixel-int8'; -import { PixelRangeIterator } from './pixel-range-iterator'; +} from './image-data.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; +import { PixelInt8 } from './pixel-int8.js'; +import { PixelRangeIterator } from './pixel-range-iterator.js'; export class MemoryImageDataInt8 implements MemoryImageData, Iterable { private readonly _width: number; diff --git a/src/image/image-data-uint1.ts b/src/image/image-data-uint1.ts index 142db48..c6181b4 100644 --- a/src/image/image-data-uint1.ts +++ b/src/image/image-data-uint1.ts @@ -1,17 +1,17 @@ /** @format */ -import { Color } from '../color/color'; -import { Format, FormatType } from '../color/format'; +import { Color } from '../color/color.js'; +import { Format, FormatType } from '../color/format.js'; import { MemoryImageData, MemoryImageDataGetBytesOptions, getImageDataBytes, -} from './image-data'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; -import { PixelUint1 } from './pixel-uint1'; -import { PixelRangeIterator } from './pixel-range-iterator'; -import { ColorUint1 } from '../color/color-uint1'; +} from './image-data.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; +import { PixelUint1 } from './pixel-uint1.js'; +import { PixelRangeIterator } from './pixel-range-iterator.js'; +import { ColorUint1 } from '../color/color-uint1.js'; export class MemoryImageDataUint1 implements MemoryImageData, Iterable { private pixel?: PixelUint1; diff --git a/src/image/image-data-uint16.ts b/src/image/image-data-uint16.ts index 62b0342..ab16767 100644 --- a/src/image/image-data-uint16.ts +++ b/src/image/image-data-uint16.ts @@ -1,17 +1,17 @@ /** @format */ -import { Color } from '../color/color'; -import { Format, FormatType } from '../color/format'; +import { Color } from '../color/color.js'; +import { Format, FormatType } from '../color/format.js'; import { MemoryImageData, MemoryImageDataGetBytesOptions, getImageDataBytes, -} from './image-data'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; -import { PixelUint16 } from './pixel-uint16'; -import { PixelRangeIterator } from './pixel-range-iterator'; -import { ColorUint16 } from '../color/color-uint16'; +} from './image-data.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; +import { PixelUint16 } from './pixel-uint16.js'; +import { PixelRangeIterator } from './pixel-range-iterator.js'; +import { ColorUint16 } from '../color/color-uint16.js'; export class MemoryImageDataUint16 implements MemoryImageData, Iterable { private readonly _width: number; diff --git a/src/image/image-data-uint2.ts b/src/image/image-data-uint2.ts index 0c7824f..6622c8b 100644 --- a/src/image/image-data-uint2.ts +++ b/src/image/image-data-uint2.ts @@ -1,17 +1,17 @@ /** @format */ -import { Color } from '../color/color'; -import { Format, FormatType } from '../color/format'; +import { Color } from '../color/color.js'; +import { Format, FormatType } from '../color/format.js'; import { MemoryImageData, MemoryImageDataGetBytesOptions, getImageDataBytes, -} from './image-data'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; -import { PixelUint2 } from './pixel-uint2'; -import { PixelRangeIterator } from './pixel-range-iterator'; -import { ColorUint2 } from '../color/color-uint2'; +} from './image-data.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; +import { PixelUint2 } from './pixel-uint2.js'; +import { PixelRangeIterator } from './pixel-range-iterator.js'; +import { ColorUint2 } from '../color/color-uint2.js'; export class MemoryImageDataUint2 implements MemoryImageData, Iterable { private _pixel?: PixelUint2; diff --git a/src/image/image-data-uint32.ts b/src/image/image-data-uint32.ts index 3a4e4df..52450b3 100644 --- a/src/image/image-data-uint32.ts +++ b/src/image/image-data-uint32.ts @@ -1,17 +1,17 @@ /** @format */ -import { Color } from '../color/color'; -import { Format, FormatType } from '../color/format'; +import { Color } from '../color/color.js'; +import { Format, FormatType } from '../color/format.js'; import { MemoryImageData, MemoryImageDataGetBytesOptions, getImageDataBytes, -} from './image-data'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; -import { PixelUint32 } from './pixel-uint32'; -import { PixelRangeIterator } from './pixel-range-iterator'; -import { ColorUint32 } from '../color/color-uint32'; +} from './image-data.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; +import { PixelUint32 } from './pixel-uint32.js'; +import { PixelRangeIterator } from './pixel-range-iterator.js'; +import { ColorUint32 } from '../color/color-uint32.js'; export class MemoryImageDataUint32 implements MemoryImageData, Iterable { private readonly _width: number; diff --git a/src/image/image-data-uint4.ts b/src/image/image-data-uint4.ts index de62fb5..1222e41 100644 --- a/src/image/image-data-uint4.ts +++ b/src/image/image-data-uint4.ts @@ -1,17 +1,17 @@ /** @format */ -import { Color } from '../color/color'; -import { Format, FormatType } from '../color/format'; +import { Color } from '../color/color.js'; +import { Format, FormatType } from '../color/format.js'; import { MemoryImageData, MemoryImageDataGetBytesOptions, getImageDataBytes, -} from './image-data'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; -import { PixelUint4 } from './pixel-uint4'; -import { PixelRangeIterator } from './pixel-range-iterator'; -import { ColorUint4 } from '../color/color-uint4'; +} from './image-data.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; +import { PixelUint4 } from './pixel-uint4.js'; +import { PixelRangeIterator } from './pixel-range-iterator.js'; +import { ColorUint4 } from '../color/color-uint4.js'; export class MemoryImageDataUint4 implements MemoryImageData, Iterable { private _pixel?: PixelUint4; diff --git a/src/image/image-data-uint8.ts b/src/image/image-data-uint8.ts index 508d446..1704ab8 100644 --- a/src/image/image-data-uint8.ts +++ b/src/image/image-data-uint8.ts @@ -1,19 +1,19 @@ /** @format */ -import { Color } from '../color/color'; -import { Format, FormatType } from '../color/format'; +import { Color } from '../color/color.js'; +import { Format, FormatType } from '../color/format.js'; import { MemoryImageData, MemoryImageDataGetBytesOptions, getImageDataBytes, -} from './image-data'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; -import { PixelUint8 } from './pixel-uint8'; -import { PixelRangeIterator } from './pixel-range-iterator'; -import { ColorRgb8 } from '../color/color-rgb8'; -import { ColorRgba8 } from '../color/color-rgba8'; -import { MathUtils } from '../common/math-utils'; +} from './image-data.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; +import { PixelUint8 } from './pixel-uint8.js'; +import { PixelRangeIterator } from './pixel-range-iterator.js'; +import { ColorRgb8 } from '../color/color-rgb8.js'; +import { ColorRgba8 } from '../color/color-rgba8.js'; +import { MathUtils } from '../common/math-utils.js'; export class MemoryImageDataUint8 implements MemoryImageData, Iterable { private readonly _width: number; diff --git a/src/image/image-data.ts b/src/image/image-data.ts index b034fb5..140eca4 100644 --- a/src/image/image-data.ts +++ b/src/image/image-data.ts @@ -1,10 +1,10 @@ /** @format */ -import { ChannelOrder } from '../color/channel-order'; -import { Color } from '../color/color'; -import { Format, FormatType } from '../color/format'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; +import { ChannelOrder } from '../color/channel-order.js'; +import { Color } from '../color/color.js'; +import { Format, FormatType } from '../color/format.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; export interface MemoryImageDataGetBytesOptions { order?: ChannelOrder; diff --git a/src/image/image-utils.ts b/src/image/image-utils.ts index 091fb50..d310eb4 100644 --- a/src/image/image-utils.ts +++ b/src/image/image-utils.ts @@ -1,9 +1,9 @@ /** @format */ -import { Line } from '../common/line'; -import { Point } from '../common/point'; -import { Rectangle } from '../common/rectangle'; -import { Pixel } from './pixel'; +import { Line } from '../common/line.js'; +import { Point } from '../common/point.js'; +import { Rectangle } from '../common/rectangle.js'; +import { Pixel } from './pixel.js'; export abstract class ImageUtils { /** diff --git a/src/image/image.ts b/src/image/image.ts index 22134a4..c3f7d10 100644 --- a/src/image/image.ts +++ b/src/image/image.ts @@ -1,46 +1,46 @@ /** @format */ -import { ChannelOrder, ChannelOrderLength } from '../color/channel-order'; -import { Color } from '../color/color'; -import { ColorUint8 } from '../color/color-uint8'; -import { ColorUtils } from '../color/color-utils'; +import { ChannelOrder, ChannelOrderLength } from '../color/channel-order.js'; +import { Color } from '../color/color.js'; +import { ColorUint8 } from '../color/color-uint8.js'; +import { ColorUtils } from '../color/color-utils.js'; import { Format, FormatMaxValue, FormatType, getRowStride, -} from '../color/format'; -import { ArrayUtils } from '../common/array-utils'; -import { Interpolation } from '../common/interpolation'; -import { MathUtils } from '../common/math-utils'; -import { LibError } from '../error/lib-error'; -import { ExifData } from '../exif/exif-data'; -import { FrameType } from './frame-type'; -import { IccProfile } from './icc-profile'; -import { MemoryImageData } from './image-data'; -import { MemoryImageDataFloat16 } from './image-data-float16'; -import { MemoryImageDataFloat32 } from './image-data-float32'; -import { MemoryImageDataFloat64 } from './image-data-float64'; -import { MemoryImageDataInt16 } from './image-data-int16'; -import { MemoryImageDataInt32 } from './image-data-int32'; -import { MemoryImageDataInt8 } from './image-data-int8'; -import { MemoryImageDataUint1 } from './image-data-uint1'; -import { MemoryImageDataUint16 } from './image-data-uint16'; -import { MemoryImageDataUint2 } from './image-data-uint2'; -import { MemoryImageDataUint32 } from './image-data-uint32'; -import { MemoryImageDataUint4 } from './image-data-uint4'; -import { MemoryImageDataUint8 } from './image-data-uint8'; -import { Palette } from './palette'; -import { PaletteFloat16 } from './palette-float16'; -import { PaletteFloat32 } from './palette-float32'; -import { PaletteFloat64 } from './palette-float64'; -import { PaletteInt16 } from './palette-int16'; -import { PaletteInt32 } from './palette-int32'; -import { PaletteInt8 } from './palette-int8'; -import { PaletteUint16 } from './palette-uint16'; -import { PaletteUint32 } from './palette-uint32'; -import { PaletteUint8 } from './palette-uint8'; -import { Pixel, UndefinedPixel } from './pixel'; +} from '../color/format.js'; +import { ArrayUtils } from '../common/array-utils.js'; +import { Interpolation } from '../common/interpolation.js'; +import { MathUtils } from '../common/math-utils.js'; +import { LibError } from '../error/lib-error.js'; +import { ExifData } from '../exif/exif-data.js'; +import { FrameType } from './frame-type.js'; +import { IccProfile } from './icc-profile.js'; +import { MemoryImageData } from './image-data.js'; +import { MemoryImageDataFloat16 } from './image-data-float16.js'; +import { MemoryImageDataFloat32 } from './image-data-float32.js'; +import { MemoryImageDataFloat64 } from './image-data-float64.js'; +import { MemoryImageDataInt16 } from './image-data-int16.js'; +import { MemoryImageDataInt32 } from './image-data-int32.js'; +import { MemoryImageDataInt8 } from './image-data-int8.js'; +import { MemoryImageDataUint1 } from './image-data-uint1.js'; +import { MemoryImageDataUint16 } from './image-data-uint16.js'; +import { MemoryImageDataUint2 } from './image-data-uint2.js'; +import { MemoryImageDataUint32 } from './image-data-uint32.js'; +import { MemoryImageDataUint4 } from './image-data-uint4.js'; +import { MemoryImageDataUint8 } from './image-data-uint8.js'; +import { Palette } from './palette.js'; +import { PaletteFloat16 } from './palette-float16.js'; +import { PaletteFloat32 } from './palette-float32.js'; +import { PaletteFloat64 } from './palette-float64.js'; +import { PaletteInt16 } from './palette-int16.js'; +import { PaletteInt32 } from './palette-int32.js'; +import { PaletteInt8 } from './palette-int8.js'; +import { PaletteUint16 } from './palette-uint16.js'; +import { PaletteUint32 } from './palette-uint32.js'; +import { PaletteUint8 } from './palette-uint8.js'; +import { Pixel, UndefinedPixel } from './pixel.js'; interface MemoryImageInitializeOptions { width: number; diff --git a/src/image/neural-quantizer.ts b/src/image/neural-quantizer.ts index 7c4432e..eca54e1 100644 --- a/src/image/neural-quantizer.ts +++ b/src/image/neural-quantizer.ts @@ -1,14 +1,14 @@ /** @format */ -import { Color } from '../color/color'; -import { ColorRgb8 } from '../color/color-rgb8'; -import { ColorRgba8 } from '../color/color-rgba8'; -import { MathUtils } from '../common/math-utils'; -import { MemoryImage } from './image'; -import { PaletteUint32 } from './palette-uint32'; -import { PaletteUint8 } from './palette-uint8'; -import { Pixel } from './pixel'; -import { Quantizer } from './quantizer'; +import { Color } from '../color/color.js'; +import { ColorRgb8 } from '../color/color-rgb8.js'; +import { ColorRgba8 } from '../color/color-rgba8.js'; +import { MathUtils } from '../common/math-utils.js'; +import { MemoryImage } from './image.js'; +import { PaletteUint32 } from './palette-uint32.js'; +import { PaletteUint8 } from './palette-uint8.js'; +import { Pixel } from './pixel.js'; +import { Quantizer } from './quantizer.js'; /** * Compute a color map with a given number of colors that best represents diff --git a/src/image/octree-node.ts b/src/image/octree-node.ts index 8dd60da..8969d14 100644 --- a/src/image/octree-node.ts +++ b/src/image/octree-node.ts @@ -1,6 +1,6 @@ /** @format */ -import { ArrayUtils } from '../common/array-utils'; +import { ArrayUtils } from '../common/array-utils.js'; export class OctreeNode { // sum of all colors represented by this node. diff --git a/src/image/octree-quantizer.ts b/src/image/octree-quantizer.ts index acbd373..94cbe31 100644 --- a/src/image/octree-quantizer.ts +++ b/src/image/octree-quantizer.ts @@ -1,13 +1,13 @@ /** @format */ -import { Color } from '../color/color'; -import { ColorRgb8 } from '../color/color-rgb8'; -import { HeapNode } from './heap-node'; -import { MemoryImage } from './image'; -import { OctreeNode } from './octree-node'; -import { PaletteUint8 } from './palette-uint8'; -import { Pixel } from './pixel'; -import { Quantizer } from './quantizer'; +import { Color } from '../color/color.js'; +import { ColorRgb8 } from '../color/color-rgb8.js'; +import { HeapNode } from './heap-node.js'; +import { MemoryImage } from './image.js'; +import { OctreeNode } from './octree-node.js'; +import { PaletteUint8 } from './palette-uint8.js'; +import { Pixel } from './pixel.js'; +import { Quantizer } from './quantizer.js'; /** * Color quantization using octree, diff --git a/src/image/palette-float16.ts b/src/image/palette-float16.ts index 6a8ce35..13a21a4 100644 --- a/src/image/palette-float16.ts +++ b/src/image/palette-float16.ts @@ -1,8 +1,8 @@ /** @format */ -import { Format } from '../color/format'; -import { Float16 } from '../common/float16'; -import { Palette } from './palette'; +import { Format } from '../color/format.js'; +import { Float16 } from '../common/float16.js'; +import { Palette } from './palette.js'; export class PaletteFloat16 implements Palette { private readonly _data: Uint16Array; diff --git a/src/image/palette-float32.ts b/src/image/palette-float32.ts index e1eccf7..3c06492 100644 --- a/src/image/palette-float32.ts +++ b/src/image/palette-float32.ts @@ -1,7 +1,7 @@ /** @format */ -import { Format } from '../color/format'; -import { Palette } from './palette'; +import { Format } from '../color/format.js'; +import { Palette } from './palette.js'; export class PaletteFloat32 implements Palette { private readonly _data: Float32Array; diff --git a/src/image/palette-float64.ts b/src/image/palette-float64.ts index 8a8d66f..6552338 100644 --- a/src/image/palette-float64.ts +++ b/src/image/palette-float64.ts @@ -1,7 +1,7 @@ /** @format */ -import { Format } from '../color/format'; -import { Palette } from './palette'; +import { Format } from '../color/format.js'; +import { Palette } from './palette.js'; export class PaletteFloat64 implements Palette { private readonly _data: Float64Array; diff --git a/src/image/palette-int16.ts b/src/image/palette-int16.ts index 08cef6c..e90376a 100644 --- a/src/image/palette-int16.ts +++ b/src/image/palette-int16.ts @@ -1,7 +1,7 @@ /** @format */ -import { Format } from '../color/format'; -import { Palette } from './palette'; +import { Format } from '../color/format.js'; +import { Palette } from './palette.js'; export class PaletteInt16 implements Palette { private readonly _data: Int16Array; diff --git a/src/image/palette-int32.ts b/src/image/palette-int32.ts index 41a1841..3552c24 100644 --- a/src/image/palette-int32.ts +++ b/src/image/palette-int32.ts @@ -1,7 +1,7 @@ /** @format */ -import { Format } from '../color/format'; -import { Palette } from './palette'; +import { Format } from '../color/format.js'; +import { Palette } from './palette.js'; export class PaletteInt32 implements Palette { private readonly _data: Int32Array; diff --git a/src/image/palette-int8.ts b/src/image/palette-int8.ts index 7cb083a..5382a56 100644 --- a/src/image/palette-int8.ts +++ b/src/image/palette-int8.ts @@ -1,7 +1,7 @@ /** @format */ -import { Format } from '../color/format'; -import { Palette } from './palette'; +import { Format } from '../color/format.js'; +import { Palette } from './palette.js'; export class PaletteInt8 implements Palette { private readonly _data: Int8Array; diff --git a/src/image/palette-uint16.ts b/src/image/palette-uint16.ts index 183cc47..5f3e6a4 100644 --- a/src/image/palette-uint16.ts +++ b/src/image/palette-uint16.ts @@ -1,7 +1,7 @@ /** @format */ -import { Format } from '../color/format'; -import { Palette } from './palette'; +import { Format } from '../color/format.js'; +import { Palette } from './palette.js'; export class PaletteUint16 implements Palette { private readonly _data: Uint16Array; diff --git a/src/image/palette-uint32.ts b/src/image/palette-uint32.ts index 336dc2f..abdda02 100644 --- a/src/image/palette-uint32.ts +++ b/src/image/palette-uint32.ts @@ -1,7 +1,7 @@ /** @format */ -import { Format } from '../color/format'; -import { Palette } from './palette'; +import { Format } from '../color/format.js'; +import { Palette } from './palette.js'; export class PaletteUint32 implements Palette { private readonly _data: Uint32Array; diff --git a/src/image/palette-uint8.ts b/src/image/palette-uint8.ts index 48ed237..4a4be46 100644 --- a/src/image/palette-uint8.ts +++ b/src/image/palette-uint8.ts @@ -1,7 +1,7 @@ /** @format */ -import { Format } from '../color/format'; -import { Palette } from './palette'; +import { Format } from '../color/format.js'; +import { Palette } from './palette.js'; export class PaletteUint8 implements Palette { private readonly _data: Uint8Array; diff --git a/src/image/palette.ts b/src/image/palette.ts index dd69d3c..bc373d2 100644 --- a/src/image/palette.ts +++ b/src/image/palette.ts @@ -1,6 +1,6 @@ /** @format */ -import { Format } from '../color/format'; +import { Format } from '../color/format.js'; export interface Palette { /** diff --git a/src/image/pixel-float16.ts b/src/image/pixel-float16.ts index a79020b..34efe91 100644 --- a/src/image/pixel-float16.ts +++ b/src/image/pixel-float16.ts @@ -1,15 +1,15 @@ /** @format */ -import { Channel } from '../color/channel'; -import { Color, ColorConvertOptions } from '../color/color'; -import { ColorUtils } from '../color/color-utils'; -import { Format } from '../color/format'; -import { ArrayUtils } from '../common/array-utils'; -import { Float16 } from '../common/float16'; -import { MemoryImage } from './image'; -import { MemoryImageDataFloat16 } from './image-data-float16'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; +import { Channel } from '../color/channel.js'; +import { Color, ColorConvertOptions } from '../color/color.js'; +import { ColorUtils } from '../color/color-utils.js'; +import { Format } from '../color/format.js'; +import { ArrayUtils } from '../common/array-utils.js'; +import { Float16 } from '../common/float16.js'; +import { MemoryImage } from './image.js'; +import { MemoryImageDataFloat16 } from './image-data-float16.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; export class PixelFloat16 implements Pixel, Iterable, Iterator { private _index: number; diff --git a/src/image/pixel-float32.ts b/src/image/pixel-float32.ts index 6185337..a51d512 100644 --- a/src/image/pixel-float32.ts +++ b/src/image/pixel-float32.ts @@ -1,14 +1,14 @@ /** @format */ -import { Channel } from '../color/channel'; -import { Color, ColorConvertOptions } from '../color/color'; -import { ColorUtils } from '../color/color-utils'; -import { Format } from '../color/format'; -import { ArrayUtils } from '../common/array-utils'; -import { MemoryImage } from './image'; -import { MemoryImageDataFloat32 } from './image-data-float32'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; +import { Channel } from '../color/channel.js'; +import { Color, ColorConvertOptions } from '../color/color.js'; +import { ColorUtils } from '../color/color-utils.js'; +import { Format } from '../color/format.js'; +import { ArrayUtils } from '../common/array-utils.js'; +import { MemoryImage } from './image.js'; +import { MemoryImageDataFloat32 } from './image-data-float32.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; export class PixelFloat32 implements Pixel, Iterable, Iterator { private _index: number; diff --git a/src/image/pixel-float64.ts b/src/image/pixel-float64.ts index 7b87a98..89fa5a6 100644 --- a/src/image/pixel-float64.ts +++ b/src/image/pixel-float64.ts @@ -1,14 +1,14 @@ /** @format */ -import { Channel } from '../color/channel'; -import { Color, ColorConvertOptions } from '../color/color'; -import { ColorUtils } from '../color/color-utils'; -import { Format } from '../color/format'; -import { ArrayUtils } from '../common/array-utils'; -import { MemoryImage } from './image'; -import { MemoryImageDataFloat64 } from './image-data-float64'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; +import { Channel } from '../color/channel.js'; +import { Color, ColorConvertOptions } from '../color/color.js'; +import { ColorUtils } from '../color/color-utils.js'; +import { Format } from '../color/format.js'; +import { ArrayUtils } from '../common/array-utils.js'; +import { MemoryImage } from './image.js'; +import { MemoryImageDataFloat64 } from './image-data-float64.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; export class PixelFloat64 implements Pixel, Iterable, Iterator { private _index: number; diff --git a/src/image/pixel-int16.ts b/src/image/pixel-int16.ts index 95bc280..ebb70a9 100644 --- a/src/image/pixel-int16.ts +++ b/src/image/pixel-int16.ts @@ -1,14 +1,14 @@ /** @format */ -import { Channel } from '../color/channel'; -import { Color, ColorConvertOptions } from '../color/color'; -import { ColorUtils } from '../color/color-utils'; -import { Format } from '../color/format'; -import { ArrayUtils } from '../common/array-utils'; -import { MemoryImage } from './image'; -import { MemoryImageDataInt16 } from './image-data-int16'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; +import { Channel } from '../color/channel.js'; +import { Color, ColorConvertOptions } from '../color/color.js'; +import { ColorUtils } from '../color/color-utils.js'; +import { Format } from '../color/format.js'; +import { ArrayUtils } from '../common/array-utils.js'; +import { MemoryImage } from './image.js'; +import { MemoryImageDataInt16 } from './image-data-int16.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; export class PixelInt16 implements Pixel, Iterable, Iterator { private _index: number; diff --git a/src/image/pixel-int32.ts b/src/image/pixel-int32.ts index c841540..7a7a804 100644 --- a/src/image/pixel-int32.ts +++ b/src/image/pixel-int32.ts @@ -1,14 +1,14 @@ /** @format */ -import { Channel } from '../color/channel'; -import { Color, ColorConvertOptions } from '../color/color'; -import { ColorUtils } from '../color/color-utils'; -import { Format } from '../color/format'; -import { ArrayUtils } from '../common/array-utils'; -import { MemoryImage } from './image'; -import { MemoryImageDataInt32 } from './image-data-int32'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; +import { Channel } from '../color/channel.js'; +import { Color, ColorConvertOptions } from '../color/color.js'; +import { ColorUtils } from '../color/color-utils.js'; +import { Format } from '../color/format.js'; +import { ArrayUtils } from '../common/array-utils.js'; +import { MemoryImage } from './image.js'; +import { MemoryImageDataInt32 } from './image-data-int32.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; export class PixelInt32 implements Pixel, Iterable, Iterator { private _index: number; diff --git a/src/image/pixel-int8.ts b/src/image/pixel-int8.ts index 0324e37..270677b 100644 --- a/src/image/pixel-int8.ts +++ b/src/image/pixel-int8.ts @@ -1,14 +1,14 @@ /** @format */ -import { Channel } from '../color/channel'; -import { Color, ColorConvertOptions } from '../color/color'; -import { ColorUtils } from '../color/color-utils'; -import { Format } from '../color/format'; -import { ArrayUtils } from '../common/array-utils'; -import { MemoryImage } from './image'; -import { MemoryImageDataInt8 } from './image-data-int8'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; +import { Channel } from '../color/channel.js'; +import { Color, ColorConvertOptions } from '../color/color.js'; +import { ColorUtils } from '../color/color-utils.js'; +import { Format } from '../color/format.js'; +import { ArrayUtils } from '../common/array-utils.js'; +import { MemoryImage } from './image.js'; +import { MemoryImageDataInt8 } from './image-data-int8.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; export class PixelInt8 implements Pixel, Iterable, Iterator { private _index: number; diff --git a/src/image/pixel-range-iterator.ts b/src/image/pixel-range-iterator.ts index 6294625..a5c5e68 100644 --- a/src/image/pixel-range-iterator.ts +++ b/src/image/pixel-range-iterator.ts @@ -1,6 +1,6 @@ /** @format */ -import { Pixel } from './pixel'; +import { Pixel } from './pixel.js'; export class PixelRangeIterator implements Iterator { private _pixel: Pixel; diff --git a/src/image/pixel-uint1.ts b/src/image/pixel-uint1.ts index 61ff9b5..5806f11 100644 --- a/src/image/pixel-uint1.ts +++ b/src/image/pixel-uint1.ts @@ -1,15 +1,15 @@ /** @format */ -import { Channel } from '../color/channel'; -import { Color, ColorConvertOptions } from '../color/color'; -import { ColorUtils } from '../color/color-utils'; -import { Format } from '../color/format'; -import { ArrayUtils } from '../common/array-utils'; -import { MathUtils } from '../common/math-utils'; -import { MemoryImage } from './image'; -import { MemoryImageDataUint1 } from './image-data-uint1'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; +import { Channel } from '../color/channel.js'; +import { Color, ColorConvertOptions } from '../color/color.js'; +import { ColorUtils } from '../color/color-utils.js'; +import { Format } from '../color/format.js'; +import { ArrayUtils } from '../common/array-utils.js'; +import { MathUtils } from '../common/math-utils.js'; +import { MemoryImage } from './image.js'; +import { MemoryImageDataUint1 } from './image-data-uint1.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; export class PixelUint1 implements Pixel, Iterable, Iterator { private _index: number; diff --git a/src/image/pixel-uint16.ts b/src/image/pixel-uint16.ts index 7263871..a5d2a78 100644 --- a/src/image/pixel-uint16.ts +++ b/src/image/pixel-uint16.ts @@ -1,14 +1,14 @@ /** @format */ -import { Channel } from '../color/channel'; -import { Color, ColorConvertOptions } from '../color/color'; -import { ColorUtils } from '../color/color-utils'; -import { Format } from '../color/format'; -import { ArrayUtils } from '../common/array-utils'; -import { MemoryImage } from './image'; -import { MemoryImageDataUint16 } from './image-data-uint16'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; +import { Channel } from '../color/channel.js'; +import { Color, ColorConvertOptions } from '../color/color.js'; +import { ColorUtils } from '../color/color-utils.js'; +import { Format } from '../color/format.js'; +import { ArrayUtils } from '../common/array-utils.js'; +import { MemoryImage } from './image.js'; +import { MemoryImageDataUint16 } from './image-data-uint16.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; export class PixelUint16 implements Pixel, Iterable, Iterator { private _index: number; diff --git a/src/image/pixel-uint2.ts b/src/image/pixel-uint2.ts index d901d3c..d09bcac 100644 --- a/src/image/pixel-uint2.ts +++ b/src/image/pixel-uint2.ts @@ -1,15 +1,15 @@ /** @format */ -import { Channel } from '../color/channel'; -import { Color, ColorConvertOptions } from '../color/color'; -import { ColorUtils } from '../color/color-utils'; -import { Format } from '../color/format'; -import { ArrayUtils } from '../common/array-utils'; -import { MathUtils } from '../common/math-utils'; -import { MemoryImage } from './image'; -import { MemoryImageDataUint2 } from './image-data-uint2'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; +import { Channel } from '../color/channel.js'; +import { Color, ColorConvertOptions } from '../color/color.js'; +import { ColorUtils } from '../color/color-utils.js'; +import { Format } from '../color/format.js'; +import { ArrayUtils } from '../common/array-utils.js'; +import { MathUtils } from '../common/math-utils.js'; +import { MemoryImage } from './image.js'; +import { MemoryImageDataUint2 } from './image-data-uint2.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; export class PixelUint2 implements Pixel, Iterable, Iterator { private _index: number; diff --git a/src/image/pixel-uint32.ts b/src/image/pixel-uint32.ts index 800822e..f16953d 100644 --- a/src/image/pixel-uint32.ts +++ b/src/image/pixel-uint32.ts @@ -1,14 +1,14 @@ /** @format */ -import { Channel } from '../color/channel'; -import { Color, ColorConvertOptions } from '../color/color'; -import { ColorUtils } from '../color/color-utils'; -import { Format } from '../color/format'; -import { ArrayUtils } from '../common/array-utils'; -import { MemoryImage } from './image'; -import { MemoryImageDataUint32 } from './image-data-uint32'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; +import { Channel } from '../color/channel.js'; +import { Color, ColorConvertOptions } from '../color/color.js'; +import { ColorUtils } from '../color/color-utils.js'; +import { Format } from '../color/format.js'; +import { ArrayUtils } from '../common/array-utils.js'; +import { MemoryImage } from './image.js'; +import { MemoryImageDataUint32 } from './image-data-uint32.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; export class PixelUint32 implements Pixel, Iterable, Iterator { private _index: number; diff --git a/src/image/pixel-uint4.ts b/src/image/pixel-uint4.ts index b345bf2..d807198 100644 --- a/src/image/pixel-uint4.ts +++ b/src/image/pixel-uint4.ts @@ -1,15 +1,15 @@ /** @format */ -import { Channel } from '../color/channel'; -import { Color, ColorConvertOptions } from '../color/color'; -import { ColorUtils } from '../color/color-utils'; -import { Format } from '../color/format'; -import { ArrayUtils } from '../common/array-utils'; -import { MathUtils } from '../common/math-utils'; -import { MemoryImage } from './image'; -import { MemoryImageDataUint4 } from './image-data-uint4'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; +import { Channel } from '../color/channel.js'; +import { Color, ColorConvertOptions } from '../color/color.js'; +import { ColorUtils } from '../color/color-utils.js'; +import { Format } from '../color/format.js'; +import { ArrayUtils } from '../common/array-utils.js'; +import { MathUtils } from '../common/math-utils.js'; +import { MemoryImage } from './image.js'; +import { MemoryImageDataUint4 } from './image-data-uint4.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; export class PixelUint4 implements Pixel, Iterable, Iterator { private _index: number; diff --git a/src/image/pixel-uint8.ts b/src/image/pixel-uint8.ts index ad259bb..8155d41 100644 --- a/src/image/pixel-uint8.ts +++ b/src/image/pixel-uint8.ts @@ -1,15 +1,15 @@ /** @format */ -import { Channel } from '../color/channel'; -import { Color, ColorConvertOptions } from '../color/color'; -import { ColorUtils } from '../color/color-utils'; -import { Format } from '../color/format'; -import { ArrayUtils } from '../common/array-utils'; -import { MathUtils } from '../common/math-utils'; -import { MemoryImage } from './image'; -import { MemoryImageDataUint8 } from './image-data-uint8'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; +import { Channel } from '../color/channel.js'; +import { Color, ColorConvertOptions } from '../color/color.js'; +import { ColorUtils } from '../color/color-utils.js'; +import { Format } from '../color/format.js'; +import { ArrayUtils } from '../common/array-utils.js'; +import { MathUtils } from '../common/math-utils.js'; +import { MemoryImage } from './image.js'; +import { MemoryImageDataUint8 } from './image-data-uint8.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; export class PixelUint8 implements Pixel, Iterable, Iterator { private _index: number; diff --git a/src/image/pixel-undefined.ts b/src/image/pixel-undefined.ts index 3b3878f..a8b69e8 100644 --- a/src/image/pixel-undefined.ts +++ b/src/image/pixel-undefined.ts @@ -1,12 +1,12 @@ /** @format */ -import { Channel } from '../color/channel'; -import { Color, ColorConvertOptions } from '../color/color'; -import { Format } from '../color/format'; -import { MemoryImageData } from './image-data'; -import { MemoryImageDataUint8 } from './image-data-uint8'; -import { Palette } from './palette'; -import { Pixel } from './pixel'; +import { Channel } from '../color/channel.js'; +import { Color, ColorConvertOptions } from '../color/color.js'; +import { Format } from '../color/format.js'; +import { MemoryImageData } from './image-data.js'; +import { MemoryImageDataUint8 } from './image-data-uint8.js'; +import { Palette } from './palette.js'; +import { Pixel } from './pixel.js'; /** * Represents an invalid pixel. diff --git a/src/image/pixel.ts b/src/image/pixel.ts index 3af7b5c..e65f3cd 100644 --- a/src/image/pixel.ts +++ b/src/image/pixel.ts @@ -1,8 +1,8 @@ /** @format */ -import { Color } from '../color/color'; -import { MemoryImageData } from './image-data'; -import { PixelUndefined } from './pixel-undefined'; +import { Color } from '../color/color.js'; +import { MemoryImageData } from './image-data.js'; +import { PixelUndefined } from './pixel-undefined.js'; export interface Pixel extends Color, Iterator { /** diff --git a/src/image/quantizer.ts b/src/image/quantizer.ts index 6aede2c..64c1e14 100644 --- a/src/image/quantizer.ts +++ b/src/image/quantizer.ts @@ -1,8 +1,8 @@ /** @format */ -import { Color } from '../color/color'; -import { MemoryImage } from './image'; -import { Palette } from './palette'; +import { Color } from '../color/color.js'; +import { MemoryImage } from './image.js'; +import { Palette } from './palette.js'; /** * Interface for color quantizers, which reduce the total number of colors diff --git a/src/index.ts b/src/index.ts index 9410cee..c1aa629 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,52 +1,52 @@ /** @format */ -import { CompressionLevel, TypedArray } from './common/typings'; -import { BmpDecoder } from './formats/bmp-decoder'; -import { BmpEncoder } from './formats/bmp-encoder'; -import { Encoder } from './formats/encoder'; -import { Decoder } from './formats/decoder'; -import { GifDecoder } from './formats/gif-decoder'; -import { GifEncoder } from './formats/gif-encoder'; -import { IcoDecoder } from './formats/ico-decoder'; -import { IcoEncoder } from './formats/ico-encoder'; -import { JpegDecoder } from './formats/jpeg-decoder'; -import { JpegChroma, JpegEncoder } from './formats/jpeg-encoder'; -import { PngDecoder } from './formats/png-decoder'; -import { PngEncoder } from './formats/png-encoder'; -import { TgaDecoder } from './formats/tga-decoder'; -import { TgaEncoder } from './formats/tga-encoder'; -import { TiffDecoder } from './formats/tiff-decoder'; -import { TiffEncoder } from './formats/tiff-encoder'; -import { MemoryImage } from './image/image'; -import { PngFilterType } from './formats/png/png-filter-type'; -import { DitherKernel } from './filter/dither-kernel'; -import { ExifData } from './exif/exif-data'; -import { JpegUtils } from './formats/jpeg/jpeg-utils'; -import { WebPDecoder } from './formats/webp-decoder'; -import { PnmDecoder } from './formats/pnm-decoder'; -import { ImageFormat } from './formats/image-format'; -import { PsdDecoder } from './formats/psd-decoder'; -import { PvrEncoder } from './formats/pvr-encoder'; -import { PvrDecoder } from './formats/pvr-decoder'; +import { CompressionLevel, TypedArray } from './common/typings.js'; +import { BmpDecoder } from './formats/bmp-decoder.js'; +import { BmpEncoder } from './formats/bmp-encoder.js'; +import { Encoder } from './formats/encoder.js'; +import { Decoder } from './formats/decoder.js'; +import { GifDecoder } from './formats/gif-decoder.js'; +import { GifEncoder } from './formats/gif-encoder.js'; +import { IcoDecoder } from './formats/ico-decoder.js'; +import { IcoEncoder } from './formats/ico-encoder.js'; +import { JpegDecoder } from './formats/jpeg-decoder.js'; +import { JpegChroma, JpegEncoder } from './formats/jpeg-encoder.js'; +import { PngDecoder } from './formats/png-decoder.js'; +import { PngEncoder } from './formats/png-encoder.js'; +import { TgaDecoder } from './formats/tga-decoder.js'; +import { TgaEncoder } from './formats/tga-encoder.js'; +import { TiffDecoder } from './formats/tiff-decoder.js'; +import { TiffEncoder } from './formats/tiff-encoder.js'; +import { MemoryImage } from './image/image.js'; +import { PngFilterType } from './formats/png/png-filter-type.js'; +import { DitherKernel } from './filter/dither-kernel.js'; +import { ExifData } from './exif/exif-data.js'; +import { JpegUtils } from './formats/jpeg/jpeg-utils.js'; +import { WebPDecoder } from './formats/webp-decoder.js'; +import { PnmDecoder } from './formats/pnm-decoder.js'; +import { ImageFormat } from './formats/image-format.js'; +import { PsdDecoder } from './formats/psd-decoder.js'; +import { PvrEncoder } from './formats/pvr-encoder.js'; +import { PvrDecoder } from './formats/pvr-decoder.js'; // Export types from 'color' directory -export { ChannelOrder, ChannelOrderLength } from './color/channel-order'; -export { Channel } from './color/channel'; -export { ColorFloat16 } from './color/color-float16'; -export { ColorFloat32 } from './color/color-float32'; -export { ColorFloat64 } from './color/color-float64'; -export { ColorInt8 } from './color/color-int8'; -export { ColorInt16 } from './color/color-int16'; -export { ColorInt32 } from './color/color-int32'; -export { ColorRgb8 } from './color/color-rgb8'; -export { ColorRgba8 } from './color/color-rgba8'; -export { ColorUint1 } from './color/color-uint1'; -export { ColorUint2 } from './color/color-uint2'; -export { ColorUint4 } from './color/color-uint4'; -export { ColorUint8 } from './color/color-uint8'; -export { ColorUint16 } from './color/color-uint16'; -export { ColorUint32 } from './color/color-uint32'; -export { Color, ColorConvertOptions } from './color/color'; +export { ChannelOrder, ChannelOrderLength } from './color/channel-order.js'; +export { Channel } from './color/channel.js'; +export { ColorFloat16 } from './color/color-float16.js'; +export { ColorFloat32 } from './color/color-float32.js'; +export { ColorFloat64 } from './color/color-float64.js'; +export { ColorInt8 } from './color/color-int8.js'; +export { ColorInt16 } from './color/color-int16.js'; +export { ColorInt32 } from './color/color-int32.js'; +export { ColorRgb8 } from './color/color-rgb8.js'; +export { ColorRgba8 } from './color/color-rgba8.js'; +export { ColorUint1 } from './color/color-uint1.js'; +export { ColorUint2 } from './color/color-uint2.js'; +export { ColorUint4 } from './color/color-uint4.js'; +export { ColorUint8 } from './color/color-uint8.js'; +export { ColorUint16 } from './color/color-uint16.js'; +export { ColorUint32 } from './color/color-uint32.js'; +export { Color, ColorConvertOptions } from './color/color.js'; export { Format, FormatType, @@ -55,28 +55,35 @@ export { FormatToFormatType, getRowStride, convertFormatValue, -} from './color/format'; +} from './color/format.js'; // Export types from 'common' directory -export { ArrayUtils } from './common/array-utils'; -export { BitUtils } from './common/bit-utils'; -export { Crc32, Crc32Options } from './common/crc32'; -export { Float16 } from './common/float16'; -export { InputBuffer, InputBufferInitOptions } from './common/input-buffer'; -export { Interpolation } from './common/interpolation'; -export { Line } from './common/line'; -export { MathUtils } from './common/math-utils'; -export { OutputBuffer, OutputBufferInitOptions } from './common/output-buffer'; -export { Point } from './common/point'; -export { RandomUtils } from './common/random-utils'; -export { Rational } from './common/rational'; -export { Rectangle } from './common/rectangle'; -export { StringUtils } from './common/string-utils'; -export { BufferEncoding, CompressionLevel, TypedArray } from './common/typings'; +export { ArrayUtils } from './common/array-utils.js'; +export { BitUtils } from './common/bit-utils.js'; +export { Crc32, Crc32Options } from './common/crc32.js'; +export { Float16 } from './common/float16.js'; +export { InputBuffer, InputBufferInitOptions } from './common/input-buffer.js'; +export { Interpolation } from './common/interpolation.js'; +export { Line } from './common/line.js'; +export { MathUtils } from './common/math-utils.js'; +export { + OutputBuffer, + OutputBufferInitOptions, +} from './common/output-buffer.js'; +export { Point } from './common/point.js'; +export { RandomUtils } from './common/random-utils.js'; +export { Rational } from './common/rational.js'; +export { Rectangle } from './common/rectangle.js'; +export { StringUtils } from './common/string-utils.js'; +export { + BufferEncoding, + CompressionLevel, + TypedArray, +} from './common/typings.js'; // Export types from 'draw' directory -export { BlendMode } from './draw/blend-mode'; -export { CircleQuadrant } from './draw/circle-quadrant'; +export { BlendMode } from './draw/blend-mode.js'; +export { CircleQuadrant } from './draw/circle-quadrant.js'; export { Draw, CompositeImageOptions, @@ -91,27 +98,27 @@ export { FillPolygonOptions, FillRectOptions, MaskFloodOptions, -} from './draw/draw'; +} from './draw/draw.js'; // Export types from 'error' directory -export { LibError } from './error/lib-error'; +export { LibError } from './error/lib-error.js'; // Export types from 'exif' directory -export { IfdAsciiValue } from './exif/ifd-value/ifd-ascii-value'; -export { IfdByteValue } from './exif/ifd-value/ifd-byte-value'; -export { IfdDoubleValue } from './exif/ifd-value/ifd-double-value'; -export { IfdLongValue } from './exif/ifd-value/ifd-long-value'; -export { IfdRationalValue } from './exif/ifd-value/ifd-rational-value'; -export { IfdSByteValue } from './exif/ifd-value/ifd-sbyte-value'; -export { IfdShortValue } from './exif/ifd-value/ifd-short-value'; -export { IfdSingleValue } from './exif/ifd-value/ifd-single-value'; -export { IfdSLongValue } from './exif/ifd-value/ifd-slong-value'; -export { IfdSRationalValue } from './exif/ifd-value/ifd-srational-value'; -export { IfdSShortValue } from './exif/ifd-value/ifd-sshort-value'; -export { IfdUndefinedValue } from './exif/ifd-value/ifd-undefined-value'; -export { IfdValue } from './exif/ifd-value/ifd-value'; -export { ExifData } from './exif/exif-data'; -export { ExifEntry } from './exif/exif-entry'; +export { IfdAsciiValue } from './exif/ifd-value/ifd-ascii-value.js'; +export { IfdByteValue } from './exif/ifd-value/ifd-byte-value.js'; +export { IfdDoubleValue } from './exif/ifd-value/ifd-double-value.js'; +export { IfdLongValue } from './exif/ifd-value/ifd-long-value.js'; +export { IfdRationalValue } from './exif/ifd-value/ifd-rational-value.js'; +export { IfdSByteValue } from './exif/ifd-value/ifd-sbyte-value.js'; +export { IfdShortValue } from './exif/ifd-value/ifd-short-value.js'; +export { IfdSingleValue } from './exif/ifd-value/ifd-single-value.js'; +export { IfdSLongValue } from './exif/ifd-value/ifd-slong-value.js'; +export { IfdSRationalValue } from './exif/ifd-value/ifd-srational-value.js'; +export { IfdSShortValue } from './exif/ifd-value/ifd-sshort-value.js'; +export { IfdUndefinedValue } from './exif/ifd-value/ifd-undefined-value.js'; +export { IfdValue } from './exif/ifd-value/ifd-value.js'; +export { ExifData } from './exif/exif-data.js'; +export { ExifEntry } from './exif/exif-entry.js'; export { ExifTag, ExifTagInitOptions, @@ -119,18 +126,18 @@ export { ExifImageTags, ExifInteropTags, ExifTagNameToID, -} from './exif/exif-tag'; -export { IfdContainer } from './exif/ifd-container'; -export { IfdDirectory } from './exif/ifd-directory'; +} from './exif/exif-tag.js'; +export { IfdContainer } from './exif/ifd-container.js'; +export { IfdDirectory } from './exif/ifd-directory.js'; export { IfdValueType, IfdValueTypeSize, getIfdValueTypeSize, getIfdValueTypeString, -} from './exif/ifd-value-type'; +} from './exif/ifd-value-type.js'; // Export types from 'filter' directory -export { DitherKernel, DitherKernels } from './filter/dither-kernel'; +export { DitherKernel, DitherKernels } from './filter/dither-kernel.js'; export { Filter, AdjustColorOptions, @@ -172,220 +179,226 @@ export { SolarizeOptions, StretchDistortionOptions, VignetteOptions, -} from './filter/filter'; -export { NoiseType } from './filter/noise-type'; -export { PixelateMode } from './filter/pixelate-mode'; -export { QuantizeMethod } from './filter/quantize-method'; +} from './filter/filter.js'; +export { NoiseType } from './filter/noise-type.js'; +export { PixelateMode } from './filter/pixelate-mode.js'; +export { QuantizeMethod } from './filter/quantize-method.js'; export { SeparableKernel, SeparableKernelApplyOptions, -} from './filter/separable-kernel'; -export { SolarizeMode } from './filter/solarize-mode'; +} from './filter/separable-kernel.js'; +export { SolarizeMode } from './filter/solarize-mode.js'; // Export types from 'formats' directory -export { BmpCompressionMode } from './formats/bmp/bmp-compression-mode'; -export { BmpFileHeader } from './formats/bmp/bmp-file-header'; -export { BmpInfo } from './formats/bmp/bmp-info'; +export { BmpCompressionMode } from './formats/bmp/bmp-compression-mode.js'; +export { BmpFileHeader } from './formats/bmp/bmp-file-header.js'; +export { BmpInfo } from './formats/bmp/bmp-info.js'; -export { GifColorMap } from './formats/gif/gif-color-map'; -export { GifImageDesc } from './formats/gif/gif-image-desc'; -export { GifInfo, GifInfoInitOptions } from './formats/gif/gif-info'; +export { GifColorMap } from './formats/gif/gif-color-map.js'; +export { GifImageDesc } from './formats/gif/gif-image-desc.js'; +export { GifInfo, GifInfoInitOptions } from './formats/gif/gif-info.js'; -export { IcoBmpInfo } from './formats/ico/ico-bmp-info'; +export { IcoBmpInfo } from './formats/ico/ico-bmp-info.js'; export { IcoInfoImage, IcoInfoImageInitOptions, -} from './formats/ico/ico-info-image'; -export { IcoInfo } from './formats/ico/ico-info'; -export { IcoType, IcoTypeLength } from './formats/ico/ico-type'; - -export { HuffmanNode } from './formats/jpeg/huffman-node'; -export { HuffmanParent } from './formats/jpeg/huffman-parent'; -export { HuffmanValue } from './formats/jpeg/huffman-value'; -export { JpegAdobe } from './formats/jpeg/jpeg-adobe'; -export { JpegComponentData } from './formats/jpeg/jpeg-component-data'; -export { JpegComponent } from './formats/jpeg/jpeg-component'; -export { JpegData } from './formats/jpeg/jpeg-data'; -export { JpegFrame } from './formats/jpeg/jpeg-frame'; -export { JpegHuffman } from './formats/jpeg/jpeg-huffman'; -export { JpegInfo } from './formats/jpeg/jpeg-info'; -export { JpegJfif } from './formats/jpeg/jpeg-jfif'; -export { JpegMarker } from './formats/jpeg/jpeg-marker'; -export { JpegQuantize } from './formats/jpeg/jpeg-quantize'; -export { JpegScan } from './formats/jpeg/jpeg-scan'; -export { JpegUtils } from './formats/jpeg/jpeg-utils'; - -export { PngBlendMode } from './formats/png/png-blend-mode'; -export { PngColorType } from './formats/png/png-color-type'; -export { PngDisposeMode } from './formats/png/png-dispose-mode'; -export { PngFilterType } from './formats/png/png-filter-type'; -export { PngFrame, PngFrameInitOptions } from './formats/png/png-frame'; -export { PngInfo, PngInfoInitOptions } from './formats/png/png-info'; - -export { PnmFormat } from './formats/pnm/pnm-format'; -export { PnmInfo } from './formats/pnm/pnm-info'; +} from './formats/ico/ico-info-image.js'; +export { IcoInfo } from './formats/ico/ico-info.js'; +export { IcoType, IcoTypeLength } from './formats/ico/ico-type.js'; + +export { HuffmanNode } from './formats/jpeg/huffman-node.js'; +export { HuffmanParent } from './formats/jpeg/huffman-parent.js'; +export { HuffmanValue } from './formats/jpeg/huffman-value.js'; +export { JpegAdobe } from './formats/jpeg/jpeg-adobe.js'; +export { JpegComponentData } from './formats/jpeg/jpeg-component-data.js'; +export { JpegComponent } from './formats/jpeg/jpeg-component.js'; +export { JpegData } from './formats/jpeg/jpeg-data.js'; +export { JpegFrame } from './formats/jpeg/jpeg-frame.js'; +export { JpegHuffman } from './formats/jpeg/jpeg-huffman.js'; +export { JpegInfo } from './formats/jpeg/jpeg-info.js'; +export { JpegJfif } from './formats/jpeg/jpeg-jfif.js'; +export { JpegMarker } from './formats/jpeg/jpeg-marker.js'; +export { JpegQuantize } from './formats/jpeg/jpeg-quantize.js'; +export { JpegScan } from './formats/jpeg/jpeg-scan.js'; +export { JpegUtils } from './formats/jpeg/jpeg-utils.js'; + +export { PngBlendMode } from './formats/png/png-blend-mode.js'; +export { PngColorType } from './formats/png/png-color-type.js'; +export { PngDisposeMode } from './formats/png/png-dispose-mode.js'; +export { PngFilterType } from './formats/png/png-filter-type.js'; +export { PngFrame, PngFrameInitOptions } from './formats/png/png-frame.js'; +export { PngInfo, PngInfoInitOptions } from './formats/png/png-info.js'; + +export { PnmFormat } from './formats/pnm/pnm-format.js'; +export { PnmInfo } from './formats/pnm/pnm-info.js'; export { PsdBevelEffect, PsdBevelEffectOptions, -} from './formats/psd/effect/psd-bevel-effect'; +} from './formats/psd/effect/psd-bevel-effect.js'; export { PsdDropShadowEffect, PsdDropShadowEffectOptions, -} from './formats/psd/effect/psd-drop-shadow-effect'; -export { PsdEffect, PsdEffectOptions } from './formats/psd/effect/psd-effect'; +} from './formats/psd/effect/psd-drop-shadow-effect.js'; +export { + PsdEffect, + PsdEffectOptions, +} from './formats/psd/effect/psd-effect.js'; export { PsdInnerGlowEffect, PsdInnerGlowEffectOptions, -} from './formats/psd/effect/psd-inner-glow-effect'; +} from './formats/psd/effect/psd-inner-glow-effect.js'; export { PsdInnerShadowEffect, PsdInnerShadowEffectOptions, -} from './formats/psd/effect/psd-inner-shadow-effect'; +} from './formats/psd/effect/psd-inner-shadow-effect.js'; export { PsdOuterGlowEffect, PsdOuterGlowEffectOptions, -} from './formats/psd/effect/psd-outer-glow-effect'; +} from './formats/psd/effect/psd-outer-glow-effect.js'; export { PsdSolidFillEffect, PsdSolidFillEffectOptions, -} from './formats/psd/effect/psd-solid-fill-effect'; -export { PsdLayerDataFactory } from './formats/psd/layer-data/psd-layer-data-factory'; -export { PsdLayerData } from './formats/psd/layer-data/psd-layer-data'; -export { PsdLayerAdditionalData } from './formats/psd/layer-data/psd-layer-additional-data'; -export { PsdLayerSectionDivider } from './formats/psd/layer-data/psd-layer-section-divider'; -export { PsdBlendMode } from './formats/psd/psd-blend-mode'; -export { PsdBlendingRanges } from './formats/psd/psd-blending-ranges'; +} from './formats/psd/effect/psd-solid-fill-effect.js'; +export { PsdLayerDataFactory } from './formats/psd/layer-data/psd-layer-data-factory.js'; +export { PsdLayerData } from './formats/psd/layer-data/psd-layer-data.js'; +export { PsdLayerAdditionalData } from './formats/psd/layer-data/psd-layer-additional-data.js'; +export { PsdLayerSectionDivider } from './formats/psd/layer-data/psd-layer-section-divider.js'; +export { PsdBlendMode } from './formats/psd/psd-blend-mode.js'; +export { PsdBlendingRanges } from './formats/psd/psd-blending-ranges.js'; export { PsdChannel, ReadOptions, ReadPlaneOptions, -} from './formats/psd/psd-channel'; -export { PsdColorMode } from './formats/psd/psd-color-mode'; -export { PsdFlag } from './formats/psd/psd-flag'; -export { PsdImage } from './formats/psd/psd-image'; -export { PsdImageResource } from './formats/psd/psd-image-resource'; -export { PsdLayer } from './formats/psd/psd-layer'; -export { PsdMask } from './formats/psd/psd-mask'; +} from './formats/psd/psd-channel.js'; +export { PsdColorMode } from './formats/psd/psd-color-mode.js'; +export { PsdFlag } from './formats/psd/psd-flag.js'; +export { PsdImage } from './formats/psd/psd-image.js'; +export { PsdImageResource } from './formats/psd/psd-image-resource.js'; +export { PsdLayer } from './formats/psd/psd-layer.js'; +export { PsdMask } from './formats/psd/psd-mask.js'; export { PvrAppleInfo, PvrAppleInfoOptions, -} from './formats/pvr/pvr-apple-info'; -export { PvrBitUtility } from './formats/pvr/pvr-bit-utility'; -export { PvrColorBoundingBox } from './formats/pvr/pvr-color-bounding-box'; -export { PvrColorRgb } from './formats/pvr/pvr-color-rgb'; -export { PvrColorRgbCore } from './formats/pvr/pvr-color-rgb-core'; -export { PvrColorRgba } from './formats/pvr/pvr-color-rgba'; -export { PvrFormat } from './formats/pvr/pvr-format'; -export { PvrPacket } from './formats/pvr/pvr-packet'; -export { Pvr2Info, Pvr2InfoOptions } from './formats/pvr/pvr2-info'; -export { Pvr3Info, Pvr3InfoOptions } from './formats/pvr/pvr3-info'; - -export { TgaImageType, TgaImageTypeLength } from './formats/tga/tga-image-type'; -export { TgaInfo, TgaInfoInitOptions } from './formats/tga/tga-info'; - -export { TiffBitReader } from './formats/tiff/tiff-bit-reader'; -export { TiffCompression } from './formats/tiff/tiff-compression'; -export { TiffEntry, TiffEntryInitOptions } from './formats/tiff/tiff-entry'; +} from './formats/pvr/pvr-apple-info.js'; +export { PvrBitUtility } from './formats/pvr/pvr-bit-utility.js'; +export { PvrColorBoundingBox } from './formats/pvr/pvr-color-bounding-box.js'; +export { PvrColorRgb } from './formats/pvr/pvr-color-rgb.js'; +export { PvrColorRgbCore } from './formats/pvr/pvr-color-rgb-core.js'; +export { PvrColorRgba } from './formats/pvr/pvr-color-rgba.js'; +export { PvrFormat } from './formats/pvr/pvr-format.js'; +export { PvrPacket } from './formats/pvr/pvr-packet.js'; +export { Pvr2Info, Pvr2InfoOptions } from './formats/pvr/pvr2-info.js'; +export { Pvr3Info, Pvr3InfoOptions } from './formats/pvr/pvr3-info.js'; + +export { + TgaImageType, + TgaImageTypeLength, +} from './formats/tga/tga-image-type.js'; +export { TgaInfo, TgaInfoInitOptions } from './formats/tga/tga-info.js'; + +export { TiffBitReader } from './formats/tiff/tiff-bit-reader.js'; +export { TiffCompression } from './formats/tiff/tiff-compression.js'; +export { TiffEntry, TiffEntryInitOptions } from './formats/tiff/tiff-entry.js'; export { TiffFaxDecoder, TiffFaxDecoderInitOptions, -} from './formats/tiff/tiff-fax-decoder'; -export { TiffFormat } from './formats/tiff/tiff-format'; -export { TiffImageType } from './formats/tiff/tiff-image-type'; -export { TiffImage } from './formats/tiff/tiff-image'; -export { TiffInfo, TiffInfoInitOptions } from './formats/tiff/tiff-info'; -export { LzwDecoder } from './formats/tiff/tiff-lzw-decoder'; +} from './formats/tiff/tiff-fax-decoder.js'; +export { TiffFormat } from './formats/tiff/tiff-format.js'; +export { TiffImageType } from './formats/tiff/tiff-image-type.js'; +export { TiffImage } from './formats/tiff/tiff-image.js'; +export { TiffInfo, TiffInfoInitOptions } from './formats/tiff/tiff-info.js'; +export { LzwDecoder } from './formats/tiff/tiff-lzw-decoder.js'; export { TiffPhotometricType, TiffPhotometricTypeLength, -} from './formats/tiff/tiff-photometric-type'; - -export { VP8BandProbas } from './formats/webp/vp8-band-probas'; -export { VP8BitReader } from './formats/webp/vp8-bit-reader'; -export { VP8FInfo } from './formats/webp/vp8-f-info'; -export { VP8FilterHeader } from './formats/webp/vp8-filter-header'; -export { VP8Filter } from './formats/webp/vp8-filter'; -export { VP8FrameHeader } from './formats/webp/vp8-frame-header'; -export { VP8MBData } from './formats/webp/vp8-mb-data'; -export { VP8MB } from './formats/webp/vp8-mb'; -export { VP8PictureHeader } from './formats/webp/vp8-picture-header'; -export { VP8Proba } from './formats/webp/vp8-proba'; -export { VP8QuantMatrix } from './formats/webp/vp8-quant-matrix'; -export { VP8Random } from './formats/webp/vp8-random'; -export { VP8SegmentHeader } from './formats/webp/vp8-segment-header'; -export { VP8TopSamples } from './formats/webp/vp8-top-samples'; -export { VP8 } from './formats/webp/vp8'; -export { VP8LBitReader } from './formats/webp/vp8l-bit-reader'; -export { VP8LColorCache } from './formats/webp/vp8l-color-cache'; -export { VP8LImageTransformType } from './formats/webp/vp8l-image-transform-type'; -export { VP8LInternal } from './formats/webp/vp8l-internal'; -export { VP8LMultipliers } from './formats/webp/vp8l-multipliers'; -export { VP8LTransform } from './formats/webp/vp8l-transform'; -export { VP8L } from './formats/webp/vp8l'; -export { WebPAlpha } from './formats/webp/webp-alpha'; -export { WebPFilters } from './formats/webp/webp-filters'; -export { WebPFormat } from './formats/webp/webp-format'; -export { WebPFrame } from './formats/webp/webp-frame'; -export { HuffmanTreeGroup } from './formats/webp/webp-huffman-tree-group'; -export { HuffmanTree } from './formats/webp/webp-huffman-tree'; -export { WebPInfoInternal } from './formats/webp/webp-info-internal'; -export { WebPInfo } from './formats/webp/webp-info'; - -export { BmpDecoder } from './formats/bmp-decoder'; -export { BmpEncoder } from './formats/bmp-encoder'; -export { DecodeInfo } from './formats/decode-info'; -export { Decoder, DecoderDecodeOptions } from './formats/decoder'; -export { DibDecoder } from './formats/dib-decoder'; -export { Encoder, EncoderEncodeOptions } from './formats/encoder'; -export { GifDecoder } from './formats/gif-decoder'; -export { GifEncoder, GifEncoderInitOptions } from './formats/gif-encoder'; -export { IcoDecoder } from './formats/ico-decoder'; -export { IcoEncoder } from './formats/ico-encoder'; -export { ImageFormat } from './formats/image-format'; -export { JpegDecoder } from './formats/jpeg-decoder'; +} from './formats/tiff/tiff-photometric-type.js'; + +export { VP8BandProbas } from './formats/webp/vp8-band-probas.js'; +export { VP8BitReader } from './formats/webp/vp8-bit-reader.js'; +export { VP8FInfo } from './formats/webp/vp8-f-info.js'; +export { VP8FilterHeader } from './formats/webp/vp8-filter-header.js'; +export { VP8Filter } from './formats/webp/vp8-filter.js'; +export { VP8FrameHeader } from './formats/webp/vp8-frame-header.js'; +export { VP8MBData } from './formats/webp/vp8-mb-data.js'; +export { VP8MB } from './formats/webp/vp8-mb.js'; +export { VP8PictureHeader } from './formats/webp/vp8-picture-header.js'; +export { VP8Proba } from './formats/webp/vp8-proba.js'; +export { VP8QuantMatrix } from './formats/webp/vp8-quant-matrix.js'; +export { VP8Random } from './formats/webp/vp8-random.js'; +export { VP8SegmentHeader } from './formats/webp/vp8-segment-header.js'; +export { VP8TopSamples } from './formats/webp/vp8-top-samples.js'; +export { VP8 } from './formats/webp/vp8.js'; +export { VP8LBitReader } from './formats/webp/vp8l-bit-reader.js'; +export { VP8LColorCache } from './formats/webp/vp8l-color-cache.js'; +export { VP8LImageTransformType } from './formats/webp/vp8l-image-transform-type.js'; +export { VP8LInternal } from './formats/webp/vp8l-internal.js'; +export { VP8LMultipliers } from './formats/webp/vp8l-multipliers.js'; +export { VP8LTransform } from './formats/webp/vp8l-transform.js'; +export { VP8L } from './formats/webp/vp8l.js'; +export { WebPAlpha } from './formats/webp/webp-alpha.js'; +export { WebPFilters } from './formats/webp/webp-filters.js'; +export { WebPFormat } from './formats/webp/webp-format.js'; +export { WebPFrame } from './formats/webp/webp-frame.js'; +export { HuffmanTreeGroup } from './formats/webp/webp-huffman-tree-group.js'; +export { HuffmanTree } from './formats/webp/webp-huffman-tree.js'; +export { WebPInfoInternal } from './formats/webp/webp-info-internal.js'; +export { WebPInfo } from './formats/webp/webp-info.js'; + +export { BmpDecoder } from './formats/bmp-decoder.js'; +export { BmpEncoder } from './formats/bmp-encoder.js'; +export { DecodeInfo } from './formats/decode-info.js'; +export { Decoder, DecoderDecodeOptions } from './formats/decoder.js'; +export { DibDecoder } from './formats/dib-decoder.js'; +export { Encoder, EncoderEncodeOptions } from './formats/encoder.js'; +export { GifDecoder } from './formats/gif-decoder.js'; +export { GifEncoder, GifEncoderInitOptions } from './formats/gif-encoder.js'; +export { IcoDecoder } from './formats/ico-decoder.js'; +export { IcoEncoder } from './formats/ico-encoder.js'; +export { ImageFormat } from './formats/image-format.js'; +export { JpegDecoder } from './formats/jpeg-decoder.js'; export { JpegChroma, JpegEncoder, JpegEncoderEncodeOptions, -} from './formats/jpeg-encoder'; -export { PngDecoder } from './formats/png-decoder'; -export { PngEncoder, PngEncoderInitOptions } from './formats/png-encoder'; -export { PnmDecoder } from './formats/pnm-decoder'; -export { PsdDecoder } from './formats/psd-decoder'; -export { PvrDecoder } from './formats/pvr-decoder'; -export { PvrEncoder } from './formats/pvr-encoder'; -export { TgaDecoder } from './formats/tga-decoder'; -export { TgaEncoder } from './formats/tga-encoder'; -export { TiffDecoder } from './formats/tiff-decoder'; -export { TiffEncoder } from './formats/tiff-encoder'; -export { WebPDecoder } from './formats/webp-decoder'; -export { WinEncoder } from './formats/win-encoder'; +} from './formats/jpeg-encoder.js'; +export { PngDecoder } from './formats/png-decoder.js'; +export { PngEncoder, PngEncoderInitOptions } from './formats/png-encoder.js'; +export { PnmDecoder } from './formats/pnm-decoder.js'; +export { PsdDecoder } from './formats/psd-decoder.js'; +export { PvrDecoder } from './formats/pvr-decoder.js'; +export { PvrEncoder } from './formats/pvr-encoder.js'; +export { TgaDecoder } from './formats/tga-decoder.js'; +export { TgaEncoder } from './formats/tga-encoder.js'; +export { TiffDecoder } from './formats/tiff-decoder.js'; +export { TiffEncoder } from './formats/tiff-encoder.js'; +export { WebPDecoder } from './formats/webp-decoder.js'; +export { WinEncoder } from './formats/win-encoder.js'; // Export types from 'image' directory -export { BinaryQuantizer } from './image/binary-quantizer'; -export { FrameType } from './image/frame-type'; -export { HeapNode } from './image/heap-node'; -export { IccProfile } from './image/icc-profile'; -export { IccProfileCompression } from './image/icc-profile-compression'; -export { MemoryImageDataFloat16 } from './image/image-data-float16'; -export { MemoryImageDataFloat32 } from './image/image-data-float32'; -export { MemoryImageDataFloat64 } from './image/image-data-float64'; -export { MemoryImageDataInt8 } from './image/image-data-int8'; -export { MemoryImageDataInt16 } from './image/image-data-int16'; -export { MemoryImageDataInt32 } from './image/image-data-int32'; -export { MemoryImageDataUint1 } from './image/image-data-uint1'; -export { MemoryImageDataUint2 } from './image/image-data-uint2'; -export { MemoryImageDataUint4 } from './image/image-data-uint4'; -export { MemoryImageDataUint8 } from './image/image-data-uint8'; -export { MemoryImageDataUint16 } from './image/image-data-uint16'; -export { MemoryImageDataUint32 } from './image/image-data-uint32'; +export { BinaryQuantizer } from './image/binary-quantizer.js'; +export { FrameType } from './image/frame-type.js'; +export { HeapNode } from './image/heap-node.js'; +export { IccProfile } from './image/icc-profile.js'; +export { IccProfileCompression } from './image/icc-profile-compression.js'; +export { MemoryImageDataFloat16 } from './image/image-data-float16.js'; +export { MemoryImageDataFloat32 } from './image/image-data-float32.js'; +export { MemoryImageDataFloat64 } from './image/image-data-float64.js'; +export { MemoryImageDataInt8 } from './image/image-data-int8.js'; +export { MemoryImageDataInt16 } from './image/image-data-int16.js'; +export { MemoryImageDataInt32 } from './image/image-data-int32.js'; +export { MemoryImageDataUint1 } from './image/image-data-uint1.js'; +export { MemoryImageDataUint2 } from './image/image-data-uint2.js'; +export { MemoryImageDataUint4 } from './image/image-data-uint4.js'; +export { MemoryImageDataUint8 } from './image/image-data-uint8.js'; +export { MemoryImageDataUint16 } from './image/image-data-uint16.js'; +export { MemoryImageDataUint32 } from './image/image-data-uint32.js'; export { MemoryImageData, MemoryImageDataGetBytesOptions, -} from './image/image-data'; -export { ImageUtils } from './image/image-utils'; +} from './image/image-data.js'; +export { ImageUtils } from './image/image-utils.js'; export { MemoryImage, MemoryImageCloneOptions, @@ -393,41 +406,41 @@ export { MemoryImageConvertOptions, MemoryImageCreateOptions, MemoryImageFromBytesOptions, -} from './image/image'; -export { NeuralQuantizer } from './image/neural-quantizer'; -export { OctreeNode } from './image/octree-node'; -export { OctreeQuantizer } from './image/octree-quantizer'; -export { PaletteFloat16 } from './image/palette-float16'; -export { PaletteFloat32 } from './image/palette-float32'; -export { PaletteFloat64 } from './image/palette-float64'; -export { PaletteInt8 } from './image/palette-int8'; -export { PaletteInt16 } from './image/palette-int16'; -export { PaletteInt32 } from './image/palette-int32'; -export { PaletteUint8 } from './image/palette-uint8'; -export { PaletteUint16 } from './image/palette-uint16'; -export { PaletteUint32 } from './image/palette-uint32'; -export { Palette } from './image/palette'; -export { PixelFloat16 } from './image/pixel-float16'; -export { PixelFloat32 } from './image/pixel-float32'; -export { PixelFloat64 } from './image/pixel-float64'; -export { PixelInt8 } from './image/pixel-int8'; -export { PixelInt16 } from './image/pixel-int16'; -export { PixelInt32 } from './image/pixel-int32'; -export { PixelUint1 } from './image/pixel-uint1'; -export { PixelUint2 } from './image/pixel-uint2'; -export { PixelUint4 } from './image/pixel-uint4'; -export { PixelUint8 } from './image/pixel-uint8'; -export { PixelUint16 } from './image/pixel-uint16'; -export { PixelUint32 } from './image/pixel-uint32'; -export { PixelUndefined } from './image/pixel-undefined'; -export { PixelRangeIterator } from './image/pixel-range-iterator'; -export { Pixel, UndefinedPixel } from './image/pixel'; -export { QuantizerType } from './image/quantizer-type'; -export { Quantizer } from './image/quantizer'; +} from './image/image.js'; +export { NeuralQuantizer } from './image/neural-quantizer.js'; +export { OctreeNode } from './image/octree-node.js'; +export { OctreeQuantizer } from './image/octree-quantizer.js'; +export { PaletteFloat16 } from './image/palette-float16.js'; +export { PaletteFloat32 } from './image/palette-float32.js'; +export { PaletteFloat64 } from './image/palette-float64.js'; +export { PaletteInt8 } from './image/palette-int8.js'; +export { PaletteInt16 } from './image/palette-int16.js'; +export { PaletteInt32 } from './image/palette-int32.js'; +export { PaletteUint8 } from './image/palette-uint8.js'; +export { PaletteUint16 } from './image/palette-uint16.js'; +export { PaletteUint32 } from './image/palette-uint32.js'; +export { Palette } from './image/palette.js'; +export { PixelFloat16 } from './image/pixel-float16.js'; +export { PixelFloat32 } from './image/pixel-float32.js'; +export { PixelFloat64 } from './image/pixel-float64.js'; +export { PixelInt8 } from './image/pixel-int8.js'; +export { PixelInt16 } from './image/pixel-int16.js'; +export { PixelInt32 } from './image/pixel-int32.js'; +export { PixelUint1 } from './image/pixel-uint1.js'; +export { PixelUint2 } from './image/pixel-uint2.js'; +export { PixelUint4 } from './image/pixel-uint4.js'; +export { PixelUint8 } from './image/pixel-uint8.js'; +export { PixelUint16 } from './image/pixel-uint16.js'; +export { PixelUint32 } from './image/pixel-uint32.js'; +export { PixelUndefined } from './image/pixel-undefined.js'; +export { PixelRangeIterator } from './image/pixel-range-iterator.js'; +export { Pixel, UndefinedPixel } from './image/pixel.js'; +export { QuantizerType } from './image/quantizer-type.js'; +export { Quantizer } from './image/quantizer.js'; // Export types from 'transform' directory -export { ExpandCanvasPosition } from './transform/expand-canvas-position'; -export { FlipDirection } from './transform/flip-direction'; +export { ExpandCanvasPosition } from './transform/expand-canvas-position.js'; +export { FlipDirection } from './transform/flip-direction.js'; export { Transform, CopyCropCircleOptions, @@ -441,9 +454,9 @@ export { FlipOptions, TransformOptions, TrimOptions, -} from './transform/transform'; -export { TrimMode } from './transform/trim-mode'; -export { TrimSide } from './transform/trim-side'; +} from './transform/transform.js'; +export { TrimMode } from './transform/trim-mode.js'; +export { TrimSide } from './transform/trim-side.js'; // In-place exports export interface DecodeOptions { diff --git a/src/transform/transform.ts b/src/transform/transform.ts index 1ebc8d0..464f9aa 100644 --- a/src/transform/transform.ts +++ b/src/transform/transform.ts @@ -1,21 +1,21 @@ /** @format */ -import { LibError } from '../error/lib-error'; -import { Point } from '../common/point'; -import { Interpolation } from '../common/interpolation'; -import { MathUtils } from '../common/math-utils'; -import { ExifData } from '../exif/exif-data'; -import { MemoryImage } from '../image/image'; -import { ImageUtils } from '../image/image-utils'; -import { Pixel } from '../image/pixel'; -import { FlipDirection } from './flip-direction'; -import { TrimSide } from './trim-side'; -import { Rectangle } from '../common/rectangle'; -import { Draw } from '../draw/draw'; -import { BlendMode } from '../draw/blend-mode'; -import { TrimMode } from './trim-mode'; -import { ExpandCanvasPosition } from './expand-canvas-position'; -import { Color } from '../color/color'; +import { LibError } from '../error/lib-error.js'; +import { Point } from '../common/point.js'; +import { Interpolation } from '../common/interpolation.js'; +import { MathUtils } from '../common/math-utils.js'; +import { ExifData } from '../exif/exif-data.js'; +import { MemoryImage } from '../image/image.js'; +import { ImageUtils } from '../image/image-utils.js'; +import { Pixel } from '../image/pixel.js'; +import { FlipDirection } from './flip-direction.js'; +import { TrimSide } from './trim-side.js'; +import { Rectangle } from '../common/rectangle.js'; +import { Draw } from '../draw/draw.js'; +import { BlendMode } from '../draw/blend-mode.js'; +import { TrimMode } from './trim-mode.js'; +import { ExpandCanvasPosition } from './expand-canvas-position.js'; +import { Color } from '../color/color.js'; export interface TransformOptions { image: MemoryImage;