Skip to content

Commit

Permalink
added CustomCRS and CustomTransformation
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJDufour committed Aug 23, 2021
1 parent 65e3684 commit 51deba8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable camelcase */
import type { GridLayerOptions, Coords, DoneCallback, LatLngBounds } from "leaflet";
import type { GridLayerOptions, Coords, CRS, DoneCallback, LatLngBounds, Transformation } from "leaflet";

export type PixelValuesToColorFn = (values: number[]) => string;

Expand Down Expand Up @@ -108,3 +108,14 @@ export interface GeoRaster {
export interface CustomCSSStyleDeclaration extends CSSStyleDeclaration {
WebkitBackfaceVisibility?: string
}

export interface CustomTransformation extends Transformation {
_a?: Number,
_b?: Number,
_c?: Number,
_d?: Number
}

export interface CustomCRS extends CRS {
transformation?: CustomTransformation
}

0 comments on commit 51deba8

Please sign in to comment.