mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
26 lines
882 B
TypeScript
26 lines
882 B
TypeScript
import Target from './events/Target';
|
|
import Projection from './proj/Projection';
|
|
import { TileCoord } from './tilecoord';
|
|
import TileState from './TileState';
|
|
|
|
export type LoadFunction = (p0: Tile, p1: string) => void;
|
|
export interface Options {
|
|
transition?: number;
|
|
}
|
|
export type UrlFunction = (p0: TileCoord, p1: number, p2: Projection) => string;
|
|
export default abstract class Tile extends Target {
|
|
constructor(tileCoord: TileCoord, state: TileState, opt_options?: Options);
|
|
protected state: TileState;
|
|
protected changed(): void;
|
|
endTransition(id: string): void;
|
|
getAlpha(id: string, time: number): number;
|
|
getInterimTile(): Tile;
|
|
getKey(): string;
|
|
getState(): TileState;
|
|
getTileCoord(): TileCoord;
|
|
inTransition(id: string): boolean;
|
|
abstract load(): void;
|
|
refreshInterimChain(): void;
|
|
setState(state: TileState): void;
|
|
}
|