Skip to content

Commit

Permalink
define ChannelSelection and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jansule committed Mar 21, 2019
1 parent 7fbeb47 commit 76e8733
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,14 +287,16 @@ export interface GrayChannel {
grayChannel: Channel;
}

export type ChannelSelection = RGBChannel | GrayChannel;

/**
* A RasterSymbolizer defines the style representation of RASTER data.
*/
export interface RasterSymbolizer {
kind: 'Raster';
opacity?: number;
colorMap?: ColorMap;
channelSelection?: RGBChannel | GrayChannel;
channelSelection?: ChannelSelection;
contrastEnhancement?: ContrastEnhancement;
}

Expand Down
2 changes: 1 addition & 1 deletion sample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const sampleStyle: Style = {
}
],
extended: false,
type: "ramp"
type: 'ramp'
},
channelSelection: {
grayChannel: {
Expand Down

0 comments on commit 76e8733

Please sign in to comment.