Skip to content

Commit

Permalink
docs: expand explanation of offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Nov 26, 2023
1 parent 474ea3b commit be648f6
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions packages/core/src/const/tiff.tag.id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ export enum TiffTag {
/**
* Number of bits per channel
*
* if only one band is present it is a number not a number[]
*
* @example
* ```typescript
* [8,8,8] // 8 bit RGB
Expand Down Expand Up @@ -363,28 +365,33 @@ export interface TiffTagType {
[TiffTag.ImageHeight]: number;
[TiffTag.ImageWidth]: number;
[TiffTag.SubFileType]: SubFileType;
[TiffTag.BitsPerSample]: number[];
/** Number if only one band present */
[TiffTag.BitsPerSample]: number[] | number;
[TiffTag.Compression]: Compression;
[TiffTag.OldSubFileType]: OldSubFileType;
[TiffTag.Photometric]: Photometric;

[TiffTag.TileWidth]: number;
[TiffTag.TileHeight]: number;
[TiffTag.TileOffsets]: number[];
[TiffTag.TileByteCounts]: number[];
/** Will be number if only one tile is present */
[TiffTag.TileOffsets]: number[] | number;
/** Will be number if only one tile is present */
[TiffTag.TileByteCounts]: number[] | number;
[TiffTag.JpegTables]: number[];

[TiffTag.StripByteCounts]: number[];
[TiffTag.StripOffsets]: number[];
/** Will be number if only one strip is present */
[TiffTag.StripByteCounts]: number[] | number;
/** Will be number if only one strip is present */
[TiffTag.StripOffsets]: number[] | number;

[TiffTag.SampleFormat]: SampleFormat;
[TiffTag.GdalMetadata]: string;
[TiffTag.GdalNoData]: string;
[TiffTag.ModelPixelScale]: number[];
[TiffTag.ModelTiePoint]: number[];
[TiffTag.ModelTransformation]: number[];
[TiffTag.GeoKeyDirectory]: number[];
[TiffTag.GeoDoubleParams]: number[];
[TiffTag.GeoKeyDirectory]: number[] | number;
[TiffTag.GeoDoubleParams]: number[] | number;
[TiffTag.GeoAsciiParams]: string;

[TiffTag.PlanarConfiguration]: PlanarConfiguration;
Expand Down

0 comments on commit be648f6

Please sign in to comment.