mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 07:17:04 +00:00
[ol] Fix optional parameters in function type (#36440)
This commit is contained in:
committed by
Benjamin Lichtman
parent
e9d771c356
commit
aef6653bc4
Vendored
+4
-4
@@ -10,7 +10,7 @@ export default class Collection<T> extends BaseObject {
|
||||
constructor(opt_array?: T[], opt_options?: Options);
|
||||
clear(): void;
|
||||
extend(arr: T[]): Collection<T>;
|
||||
forEach(f: ((param0: T, param1: number, param2: T[]) => void)): void;
|
||||
forEach(f: ((p0: T, p1: number, p2: T[]) => void)): void;
|
||||
getArray(): T[];
|
||||
getLength(): number;
|
||||
insertAt(index: number, elem: T): void;
|
||||
@@ -20,9 +20,9 @@ export default class Collection<T> extends BaseObject {
|
||||
remove(elem: T): T;
|
||||
removeAt(index: number): T;
|
||||
setAt(index: number, elem: T): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'add', listener: (evt: CollectionEvent<T>) => void): EventsKey;
|
||||
once(type: 'add', listener: (evt: CollectionEvent<T>) => void): EventsKey;
|
||||
un(type: 'add', listener: (evt: CollectionEvent<T>) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -18,9 +18,9 @@ export default class Feature extends BaseObject {
|
||||
setGeometryName(name: string): void;
|
||||
setId(id: number | string): void;
|
||||
setStyle(style: StyleLike): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -21,9 +21,9 @@ export default class Geolocation extends BaseObject {
|
||||
setProjection(projection: ProjectionLike): void;
|
||||
setTracking(tracking: boolean): void;
|
||||
setTrackingOptions(options: PositionOptions): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+2
-2
@@ -21,8 +21,8 @@ export interface Options {
|
||||
strokeStyle?: Stroke;
|
||||
targetSize?: number;
|
||||
showLabels?: boolean;
|
||||
lonLabelFormatter?: ((param0: number) => string);
|
||||
latLabelFormatter?: ((param0: number) => string);
|
||||
lonLabelFormatter?: ((p0: number) => string);
|
||||
latLabelFormatter?: ((p0: number) => string);
|
||||
lonLabelPosition?: number;
|
||||
latLabelPosition?: number;
|
||||
lonLabelStyle?: Text;
|
||||
|
||||
Vendored
+1
-1
@@ -7,4 +7,4 @@ export default class ImageWrapper extends ImageBase {
|
||||
protected state: ImageState;
|
||||
setImage(image: HTMLCanvasElement | HTMLImageElement | HTMLVideoElement): void;
|
||||
}
|
||||
export type LoadFunction = ((param0: ImageWrapper, param1: string) => void);
|
||||
export type LoadFunction = ((p0: ImageWrapper, p1: string) => void);
|
||||
|
||||
Vendored
+1
-1
@@ -7,4 +7,4 @@ export default class ImageCanvas extends ImageBase {
|
||||
getImage(): HTMLCanvasElement;
|
||||
getImage(): HTMLCanvasElement | HTMLImageElement | HTMLVideoElement;
|
||||
}
|
||||
export type Loader = ((param0: (() => void)) => void);
|
||||
export type Loader = ((p0: (() => void)) => void);
|
||||
|
||||
Vendored
+3
-3
@@ -8,9 +8,9 @@ import RenderEvent from './render/Event';
|
||||
|
||||
export default class Map extends PluggableMap {
|
||||
constructor(options: MapOptions);
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -17,9 +17,9 @@ export default class BaseObject extends Observable {
|
||||
set(key: string, value: any, opt_silent?: boolean): void;
|
||||
setProperties(values: { [key: string]: any }, opt_silent?: boolean): void;
|
||||
unset(key: string, opt_silent?: boolean): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -7,9 +7,9 @@ export default class Observable extends Target {
|
||||
constructor();
|
||||
changed(): void;
|
||||
getRevision(): number;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+4
-4
@@ -56,9 +56,9 @@ export default class Overlay extends BaseObject {
|
||||
setOffset(offset: number[]): void;
|
||||
setPosition(position: Coordinate): void;
|
||||
setPositioning(positioning: OverlayPositioning): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
@@ -83,5 +83,5 @@ export default class Overlay extends BaseObject {
|
||||
}
|
||||
export interface PanOptions {
|
||||
duration?: number;
|
||||
easing?: ((param0: number) => number);
|
||||
easing?: ((p0: number) => number);
|
||||
}
|
||||
|
||||
Vendored
+7
-7
@@ -24,7 +24,7 @@ import { Transform } from './transform';
|
||||
import View, { State } from './View';
|
||||
|
||||
export interface AtPixelOptions {
|
||||
layerFilter: ((param0: Layer) => boolean);
|
||||
layerFilter: ((p0: Layer) => boolean);
|
||||
hitTolerance?: number;
|
||||
}
|
||||
export interface FrameState {
|
||||
@@ -78,8 +78,8 @@ export default class PluggableMap extends BaseObject {
|
||||
addLayer(layer: BaseLayer): void;
|
||||
addOverlay(overlay: Overlay): void;
|
||||
createRenderer(): MapRenderer;
|
||||
forEachFeatureAtPixel<S, T>(pixel: Pixel, callback: ((this: S, param1: FeatureLike, param2: Layer) => T), opt_options?: AtPixelOptions): T;
|
||||
forEachLayerAtPixel<S, T>(pixel: Pixel, callback: ((this: S, param1: Layer, param2: Uint8ClampedArray | Uint8Array) => T), opt_options?: AtPixelOptions): T;
|
||||
forEachFeatureAtPixel<S, T>(pixel: Pixel, callback: ((this: S, p1: FeatureLike, p2: Layer) => T), opt_options?: AtPixelOptions): T;
|
||||
forEachLayerAtPixel<S, T>(pixel: Pixel, callback: ((this: S, p1: Layer, p2: Uint8ClampedArray | Uint8Array) => T), opt_options?: AtPixelOptions): T;
|
||||
getControls(): Collection<Control>;
|
||||
getCoordinateFromPixel(pixel: Pixel): Coordinate;
|
||||
getEventCoordinate(event: Event): Coordinate;
|
||||
@@ -117,9 +117,9 @@ export default class PluggableMap extends BaseObject {
|
||||
skipFeature(feature: Feature): void;
|
||||
unskipFeature(feature: Feature): void;
|
||||
updateSize(): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
@@ -172,4 +172,4 @@ export default class PluggableMap extends BaseObject {
|
||||
once(type: 'singleclick', listener: (evt: MapBrowserEvent) => void): EventsKey;
|
||||
un(type: 'singleclick', listener: (evt: MapBrowserEvent) => void): void;
|
||||
}
|
||||
export type PostRenderFunction = ((param0: PluggableMap, param1?: FrameState) => boolean);
|
||||
export type PostRenderFunction = ((p0: PluggableMap, p1?: FrameState) => boolean);
|
||||
|
||||
Vendored
+2
-2
@@ -3,7 +3,7 @@ import Projection from './proj/Projection';
|
||||
import { TileCoord } from './tilecoord';
|
||||
import TileState from './TileState';
|
||||
|
||||
export type LoadFunction = ((param0: Tile, param1: string) => void);
|
||||
export type LoadFunction = ((p0: Tile, p1: string) => void);
|
||||
export interface Options {
|
||||
transition?: number;
|
||||
}
|
||||
@@ -22,4 +22,4 @@ export default class Tile extends Target {
|
||||
refreshInterimChain(): void;
|
||||
setState(state: TileState): void;
|
||||
}
|
||||
export type UrlFunction = ((param0: TileCoord, param1: number, param2: Projection) => string);
|
||||
export type UrlFunction = ((p0: TileCoord, p1: number, p2: Projection) => string);
|
||||
|
||||
Vendored
+3
-3
@@ -7,9 +7,9 @@ export default class TileCache extends LRUCache<any> {
|
||||
constructor(opt_highWaterMark?: number);
|
||||
expireCache(usedTiles: { [key: string]: TileRange }): void;
|
||||
pruneExceptNewestZ(): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+1
-1
@@ -3,7 +3,7 @@ import Event from './events/Event';
|
||||
import PriorityQueue from './structs/PriorityQueue';
|
||||
import Tile from './Tile';
|
||||
|
||||
export type PriorityFunction = ((param0: Tile, param1: string, param2: Coordinate, param3: number) => number);
|
||||
export type PriorityFunction = ((p0: Tile, p1: string, p2: Coordinate, p3: number) => number);
|
||||
export default class TileQueue extends PriorityQueue<any> {
|
||||
constructor(tilePriorityFunction: PriorityFunction, tileChangeCallback: (() => void));
|
||||
protected handleTileChange(event: Event): void;
|
||||
|
||||
Vendored
+1
-1
@@ -18,7 +18,7 @@ export interface ReplayState {
|
||||
renderedRevision: number;
|
||||
}
|
||||
export default class VectorImageTile extends Tile {
|
||||
constructor(tileCoord: TileCoord, state: TileState, sourceRevision: number, format: FeatureFormat, tileLoadFunction: LoadFunction, urlTileCoord: TileCoord, tileUrlFunction: UrlFunction, sourceTileGrid: TileGrid, tileGrid: TileGrid, sourceTiles: { [key: string]: VectorTile }, pixelRatio: number, projection: Projection, tileClass: VectorTile, handleTileChange: ((this: VectorTile_1, param1: Event) => void), zoom: number);
|
||||
constructor(tileCoord: TileCoord, state: TileState, sourceRevision: number, format: FeatureFormat, tileLoadFunction: LoadFunction, urlTileCoord: TileCoord, tileUrlFunction: UrlFunction, sourceTileGrid: TileGrid, tileGrid: TileGrid, sourceTiles: { [key: string]: VectorTile }, pixelRatio: number, projection: Projection, tileClass: VectorTile, handleTileChange: ((this: VectorTile_1, p1: Event) => void), zoom: number);
|
||||
getContext(layer: Layer): CanvasRenderingContext2D;
|
||||
getImage(layer: Layer): HTMLCanvasElement;
|
||||
getReplayState(layer: Layer): ReplayState;
|
||||
|
||||
Vendored
+11
-11
@@ -28,8 +28,8 @@ export interface Animation {
|
||||
start: number;
|
||||
duration: number;
|
||||
complete: boolean;
|
||||
easing: ((param0: number) => number);
|
||||
callback: ((param0: boolean) => void);
|
||||
easing: ((p0: number) => number);
|
||||
callback: ((p0: boolean) => void);
|
||||
}
|
||||
export interface AnimationOptions {
|
||||
center?: Coordinate;
|
||||
@@ -38,7 +38,7 @@ export interface AnimationOptions {
|
||||
rotation?: number;
|
||||
anchor?: Coordinate;
|
||||
duration?: number;
|
||||
easing?: ((param0: number) => number);
|
||||
easing?: ((p0: number) => number);
|
||||
}
|
||||
export interface Constraints {
|
||||
center: Type;
|
||||
@@ -53,8 +53,8 @@ export interface FitOptions {
|
||||
minResolution?: number;
|
||||
maxZoom?: number;
|
||||
duration?: number;
|
||||
easing?: ((param0: number) => number);
|
||||
callback?: ((param0: boolean) => void);
|
||||
easing?: ((p0: number) => number);
|
||||
callback?: ((p0: boolean) => void);
|
||||
}
|
||||
export interface State {
|
||||
center: Coordinate;
|
||||
@@ -65,7 +65,7 @@ export interface State {
|
||||
}
|
||||
export default class View extends BaseObject {
|
||||
constructor(opt_options?: ViewOptions);
|
||||
animate(...var_args: (AnimationOptions | ((param0: boolean) => void))[]): void;
|
||||
animate(...var_args: (AnimationOptions | ((p0: boolean) => void))[]): void;
|
||||
applyOptions_(options: ViewOptions): void;
|
||||
calculateCenterRotate(rotation: number, anchor: Coordinate): Coordinate;
|
||||
calculateCenterZoom(resolution: number, anchor: Coordinate): Coordinate;
|
||||
@@ -88,13 +88,13 @@ export default class View extends BaseObject {
|
||||
getProjection(): Projection;
|
||||
getResolution(): number;
|
||||
getResolutionForExtent(extent: Extent, opt_size?: Size): number;
|
||||
getResolutionForValueFunction(opt_power?: number): ((param0: number) => number);
|
||||
getResolutionForValueFunction(opt_power?: number): ((p0: number) => number);
|
||||
getResolutionForZoom(zoom: number): number;
|
||||
getResolutions(): number[];
|
||||
getRotation(): number;
|
||||
getState(pixelRatio: number): State;
|
||||
getUpdatedOptions_(newOptions: ViewOptions): ViewOptions;
|
||||
getValueForResolutionFunction(opt_power?: number): ((param0: number) => number);
|
||||
getValueForResolutionFunction(opt_power?: number): ((p0: number) => number);
|
||||
getZoom(): number;
|
||||
getZoomForResolution(resolution: number): number;
|
||||
isDef(): boolean;
|
||||
@@ -107,9 +107,9 @@ export default class View extends BaseObject {
|
||||
setRotation(rotation: number): void;
|
||||
setZoom(zoom: number): void;
|
||||
updateAnimations_(): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -8,9 +8,9 @@ import RenderEvent from './render/Event';
|
||||
|
||||
export default class WebGLMap extends PluggableMap {
|
||||
constructor(options: MapOptions);
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+1
-1
@@ -3,4 +3,4 @@ import { Extent } from './extent';
|
||||
|
||||
export function createExtent(extent: Extent): Type;
|
||||
export function none(center?: Coordinate): Coordinate;
|
||||
export type Type = ((param0: Coordinate) => Coordinate);
|
||||
export type Type = ((p0: Coordinate) => Coordinate);
|
||||
|
||||
Vendored
+4
-4
@@ -11,9 +11,9 @@ export default class Attribution extends Control {
|
||||
getCollapsible(): boolean;
|
||||
setCollapsed(collapsed: boolean): void;
|
||||
setCollapsible(collapsible: boolean): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
@@ -29,5 +29,5 @@ export interface Options {
|
||||
tipLabel?: string;
|
||||
label?: string | HTMLElement;
|
||||
collapseLabel?: string | HTMLElement;
|
||||
render?: ((param0: MapEvent) => void);
|
||||
render?: ((p0: MapEvent) => void);
|
||||
}
|
||||
|
||||
Vendored
+4
-4
@@ -11,9 +11,9 @@ export default class Control extends BaseObject {
|
||||
getMap(): PluggableMap;
|
||||
setMap(map: PluggableMap): void;
|
||||
setTarget(target: HTMLElement | string): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
@@ -23,6 +23,6 @@ export default class Control extends BaseObject {
|
||||
}
|
||||
export interface Options {
|
||||
element?: HTMLElement;
|
||||
render?: ((param0: MapEvent) => void);
|
||||
render?: ((p0: MapEvent) => void);
|
||||
target?: HTMLElement | string;
|
||||
}
|
||||
|
||||
Vendored
+3
-3
@@ -5,9 +5,9 @@ import Control from './Control';
|
||||
|
||||
export default class FullScreen extends Control {
|
||||
constructor(opt_options?: Options);
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+4
-4
@@ -16,9 +16,9 @@ export default class MousePosition extends Control {
|
||||
getProjection(): Projection;
|
||||
setCoordinateFormat(format: CoordinateFormat): void;
|
||||
setProjection(projection: ProjectionLike): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
@@ -36,7 +36,7 @@ export interface Options {
|
||||
className?: string;
|
||||
coordinateFormat?: CoordinateFormat;
|
||||
projection?: ProjectionLike;
|
||||
render?: ((param0: MapEvent) => void);
|
||||
render?: ((p0: MapEvent) => void);
|
||||
target?: HTMLElement | string;
|
||||
undefinedHTML?: string;
|
||||
}
|
||||
|
||||
Vendored
+4
-4
@@ -16,7 +16,7 @@ export interface Options {
|
||||
collapsible?: boolean;
|
||||
label?: string | HTMLElement;
|
||||
layers?: Layer[] | Collection<Layer>;
|
||||
render?: ((param0: MapEvent) => void);
|
||||
render?: ((p0: MapEvent) => void);
|
||||
target?: HTMLElement | string;
|
||||
tipLabel?: string;
|
||||
view?: View;
|
||||
@@ -28,9 +28,9 @@ export default class OverviewMap extends Control {
|
||||
getOverviewMap(): PluggableMap;
|
||||
setCollapsed(collapsed: boolean): void;
|
||||
setCollapsible(collapsible: boolean): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+4
-4
@@ -11,15 +11,15 @@ export interface Options {
|
||||
tipLabel?: string;
|
||||
duration?: number;
|
||||
autoHide?: boolean;
|
||||
render?: ((param0: MapEvent) => void);
|
||||
render?: ((p0: MapEvent) => void);
|
||||
resetNorth?: (() => void);
|
||||
target?: HTMLElement | string;
|
||||
}
|
||||
export default class Rotate extends Control {
|
||||
constructor(opt_options?: Options);
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+4
-4
@@ -8,7 +8,7 @@ export function render(mapEvent: MapEvent): void;
|
||||
export interface Options {
|
||||
className?: string;
|
||||
minWidth?: number;
|
||||
render?: ((param0: MapEvent) => void);
|
||||
render?: ((p0: MapEvent) => void);
|
||||
target?: HTMLElement | string;
|
||||
units?: Units | string;
|
||||
}
|
||||
@@ -16,9 +16,9 @@ export default class ScaleLine extends Control {
|
||||
constructor(opt_options?: Options);
|
||||
getUnits(): Units;
|
||||
setUnits(units: Units): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -15,9 +15,9 @@ export interface Options {
|
||||
}
|
||||
export default class Zoom extends Control {
|
||||
constructor(opt_options?: Options);
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+4
-4
@@ -8,13 +8,13 @@ export function render(mapEvent: MapEvent): void;
|
||||
export interface Options {
|
||||
className?: string;
|
||||
duration?: number;
|
||||
render?: ((param0: MapEvent) => void);
|
||||
render?: ((p0: MapEvent) => void);
|
||||
}
|
||||
export default class ZoomSlider extends Control {
|
||||
constructor(opt_options?: Options);
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -15,9 +15,9 @@ export default class ZoomToExtent extends Control {
|
||||
constructor(opt_options?: Options);
|
||||
protected extent: Extent;
|
||||
protected handleZoomToExtent(): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+1
-1
@@ -15,4 +15,4 @@ export function squaredDistanceToSegment(coordinate: Coordinate, segment: Coordi
|
||||
export function toStringHDMS(coordinate: Coordinate, opt_fractionDigits?: number): string;
|
||||
export function toStringXY(coordinate: Coordinate, opt_fractionDigits?: number): string;
|
||||
export type Coordinate = number[];
|
||||
export type CoordinateFormat = ((param0: Coordinate) => string);
|
||||
export type CoordinateFormat = ((p0: Coordinate) => string);
|
||||
|
||||
Vendored
+1
-1
@@ -4,4 +4,4 @@ export const CLASS_HIDDEN: string;
|
||||
export const CLASS_SELECTABLE: string;
|
||||
export const CLASS_UNSELECTABLE: string;
|
||||
export const CLASS_UNSUPPORTED: string;
|
||||
export const getFontFamilies: ((param0: string) => { [key: string]: any });
|
||||
export const getFontFamilies: ((p0: string) => string[]);
|
||||
|
||||
Vendored
+1
-1
@@ -18,4 +18,4 @@ export interface EventsKey {
|
||||
target: EventTargetLike;
|
||||
type: string;
|
||||
}
|
||||
export type ListenerFunction = ((param0: Event | Event) => void | boolean);
|
||||
export type ListenerFunction = ((p0: Event | Event) => void | boolean);
|
||||
|
||||
Vendored
+1
-1
@@ -5,7 +5,7 @@ export function altKeyOnly(mapBrowserEvent: MapBrowserEvent): boolean;
|
||||
export function altShiftKeysOnly(mapBrowserEvent: MapBrowserEvent): boolean;
|
||||
export const always: typeof TRUE;
|
||||
export function click(mapBrowserEvent: MapBrowserEvent): boolean;
|
||||
export type Condition = ((this: any, param1: MapBrowserEvent) => boolean);
|
||||
export type Condition = ((this: any, p1: MapBrowserEvent) => boolean);
|
||||
export function doubleClick(mapBrowserEvent: MapBrowserEvent): boolean;
|
||||
export function focus(event: MapBrowserEvent): boolean;
|
||||
export function mouseActionButton(mapBrowserEvent: MapBrowserEvent): boolean;
|
||||
|
||||
Vendored
+1
-1
@@ -27,7 +27,7 @@ export function extendCoordinates(extent: Extent, coordinates: Coordinate[]): Ex
|
||||
export function extendFlatCoordinates(extent: Extent, flatCoordinates: number[], offset: number, end: number, stride: number): Extent;
|
||||
export function extendRings(extent: Extent, rings: Coordinate[][]): Extent;
|
||||
export function extendXY(extent: Extent, x: number, y: number): void;
|
||||
export function forEachCorner<S, T>(extent: Extent, callback: ((this: T, param1: Coordinate) => S), opt_this?: T): S | boolean;
|
||||
export function forEachCorner<S, T>(extent: Extent, callback: ((this: T, p1: Coordinate) => S), opt_this?: T): S | boolean;
|
||||
export function getArea(extent: Extent): number;
|
||||
export function getBottomLeft(extent: Extent): Coordinate;
|
||||
export function getBottomRight(extent: Extent): Coordinate;
|
||||
|
||||
Vendored
+2
-2
@@ -6,5 +6,5 @@ import VectorTile from './VectorTile';
|
||||
|
||||
export function loadFeaturesXhr(url: string | FeatureUrlFunction, format: FeatureFormat, success: (() => void) | (() => void), failure: ((this: VectorSource) => void) | (() => void)): FeatureLoader;
|
||||
export function xhr(url: string | FeatureUrlFunction, format: FeatureFormat): FeatureLoader;
|
||||
export type FeatureLoader = ((this: VectorSource | VectorTile, param1: Extent, param2: number, param3: Projection) => void);
|
||||
export type FeatureUrlFunction = ((param0: Extent, param1: number, param2: Projection) => string);
|
||||
export type FeatureLoader = ((this: VectorSource | VectorTile, p1: Extent, p2: number, p3: Projection) => void);
|
||||
export type FeatureUrlFunction = ((p0: Extent, p1: number, p2: Projection) => string);
|
||||
|
||||
Vendored
+1
-1
@@ -12,5 +12,5 @@ export interface LayoutOptions {
|
||||
hasM?: boolean;
|
||||
}
|
||||
export interface Options {
|
||||
readExtensions?: ((param0: Feature, param1: Node) => void);
|
||||
readExtensions?: ((p0: Feature, p1: Node) => void);
|
||||
}
|
||||
|
||||
Vendored
+3
-3
@@ -16,9 +16,9 @@ export default class Circle extends SimpleGeometry {
|
||||
setRadius(radius: number): void;
|
||||
transform(source: ProjectionLike, destination: ProjectionLike): Circle;
|
||||
transform(source: ProjectionLike, destination: ProjectionLike): Geometry;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -27,9 +27,9 @@ export default class Geometry extends BaseObject {
|
||||
simplify(tolerance: number): Geometry;
|
||||
transform(source: ProjectionLike, destination: ProjectionLike): Geometry;
|
||||
translate(deltaX: number, deltaY: number): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
+3
-3
@@ -10,9 +10,9 @@ export default class GeometryCollection extends Geometry {
|
||||
isEmpty(): boolean;
|
||||
setGeometries(geometries: Geometry[]): void;
|
||||
setGeometriesArray(geometries: Geometry[]): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+4
-4
@@ -8,14 +8,14 @@ import SimpleGeometry from './SimpleGeometry';
|
||||
export default class LineString extends SimpleGeometry {
|
||||
constructor(coordinates: Coordinate[] | number[], opt_layout?: GeometryLayout);
|
||||
appendCoordinate(coordinate: Coordinate): void;
|
||||
forEachSegment<T, S>(callback: ((this: S, param1: Coordinate, param2: Coordinate) => T)): T | boolean;
|
||||
forEachSegment<T, S>(callback: ((this: S, p1: Coordinate, p2: Coordinate) => T)): T | boolean;
|
||||
getCoordinateAt(fraction: number, opt_dest?: Coordinate): Coordinate;
|
||||
getCoordinateAtM(m: number, opt_extrapolate?: boolean): Coordinate;
|
||||
getFlatMidpoint(): number[];
|
||||
getLength(): number;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -8,9 +8,9 @@ import SimpleGeometry from './SimpleGeometry';
|
||||
export default class LinearRing extends SimpleGeometry {
|
||||
constructor(coordinates: Coordinate[] | number[], opt_layout?: GeometryLayout);
|
||||
getArea(): number;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -14,9 +14,9 @@ export default class MultiLineString extends SimpleGeometry {
|
||||
getFlatMidpoints(): number[];
|
||||
getLineString(index: number): LineString;
|
||||
getLineStrings(): LineString[];
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -11,9 +11,9 @@ export default class MultiPoint extends SimpleGeometry {
|
||||
appendPoint(point: Point): void;
|
||||
getPoint(index: number): Point;
|
||||
getPoints(): Point[];
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -16,9 +16,9 @@ export default class MultiPolygon extends SimpleGeometry {
|
||||
getOrientedFlatCoordinates(): number[];
|
||||
getPolygon(index: number): Polygon;
|
||||
getPolygons(): Polygon[];
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -7,9 +7,9 @@ import SimpleGeometry from './SimpleGeometry';
|
||||
|
||||
export default class Point extends SimpleGeometry {
|
||||
constructor(coordinates: Coordinate, opt_layout?: GeometryLayout);
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -24,9 +24,9 @@ export default class Polygon extends SimpleGeometry {
|
||||
getLinearRingCount(): number;
|
||||
getLinearRings(): LinearRing[];
|
||||
getOrientedFlatCoordinates(): number[];
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -23,9 +23,9 @@ export default class SimpleGeometry extends Geometry {
|
||||
getStride(): number;
|
||||
setCoordinates(coordinates: any[], opt_layout?: GeometryLayout): void;
|
||||
setFlatCoordinates(layout: GeometryLayout, flatCoordinates: number[]): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
import { Coordinate } from '../../coordinate';
|
||||
|
||||
export function forEach<T, S>(flatCoordinates: number[], offset: number, end: number, stride: number, callback: ((this: S, param1: Coordinate, param2: Coordinate) => T), opt_this?: S): T | boolean;
|
||||
export function forEach<T, S>(flatCoordinates: number[], offset: number, end: number, stride: number, callback: ((this: S, p1: Coordinate, p2: Coordinate) => T), opt_this?: S): T | boolean;
|
||||
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
export function drawTextOnPath(flatCoordinates: number[], offset: number, end: number, stride: number, text: string, measure: ((param0: string) => number), startM: number, maxAngle: number): any[][];
|
||||
export function drawTextOnPath(flatCoordinates: number[], offset: number, end: number, stride: number, text: string, measure: ((p0: string) => number), startM: number, maxAngle: number): any[][];
|
||||
|
||||
+3
-3
@@ -6,9 +6,9 @@ import Interaction from './Interaction';
|
||||
|
||||
export default class DoubleClickZoom extends Interaction {
|
||||
constructor(opt_options?: Options);
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
+3
-3
@@ -10,9 +10,9 @@ import Interaction from './Interaction';
|
||||
|
||||
export default class DragAndDrop extends Interaction {
|
||||
constructor(opt_options?: Options);
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'addfeatures', listener: (evt: DragAndDropEvent) => void): EventsKey;
|
||||
once(type: 'addfeatures', listener: (evt: DragAndDropEvent) => void): EventsKey;
|
||||
un(type: 'addfeatures', listener: (evt: DragAndDropEvent) => void): void;
|
||||
|
||||
Vendored
+5
-5
@@ -12,9 +12,9 @@ export default class DragBox extends PointerInteraction {
|
||||
constructor(opt_options?: Options);
|
||||
defaultBoxEndCondition(mapBrowserEvent: MapBrowserEvent, startPixel: Pixel, endPixel: Pixel): boolean;
|
||||
getGeometry(): Polygon;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'boxdrag', listener: (evt: DragBoxEvent) => void): EventsKey;
|
||||
once(type: 'boxdrag', listener: (evt: DragBoxEvent) => void): EventsKey;
|
||||
un(type: 'boxdrag', listener: (evt: DragBoxEvent) => void): void;
|
||||
@@ -44,11 +44,11 @@ export enum DragBoxEventType {
|
||||
BOXDRAG = 'boxdrag',
|
||||
BOXEND = 'boxend',
|
||||
}
|
||||
export type EndCondition = ((this: any, param1: MapBrowserEvent, param2: Pixel, param3: Pixel) => boolean);
|
||||
export type EndCondition = ((this: any, p1: MapBrowserEvent, p2: Pixel, p3: Pixel) => boolean);
|
||||
export interface Options {
|
||||
className?: string;
|
||||
condition?: Condition;
|
||||
minArea?: number;
|
||||
boxEndCondition?: EndCondition;
|
||||
onBoxEnd: ((this: DragBox, param1: MapBrowserEvent) => void);
|
||||
onBoxEnd: ((this: DragBox, p1: MapBrowserEvent) => void);
|
||||
}
|
||||
|
||||
Vendored
+3
-3
@@ -7,9 +7,9 @@ import PointerInteraction from './Pointer';
|
||||
|
||||
export default class DragPan extends PointerInteraction {
|
||||
constructor(opt_options?: Options);
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -6,9 +6,9 @@ import PointerInteraction from './Pointer';
|
||||
|
||||
export default class DragRotate extends PointerInteraction {
|
||||
constructor(opt_options?: Options);
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
+3
-3
@@ -6,9 +6,9 @@ import PointerInteraction from './Pointer';
|
||||
|
||||
export default class DragRotateAndZoom extends PointerInteraction {
|
||||
constructor(opt_options?: Options);
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -6,9 +6,9 @@ import DragBox, { DragBoxEvent } from './DragBox';
|
||||
|
||||
export default class DragZoom extends DragBox {
|
||||
constructor(opt_options?: Options);
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'boxdrag', listener: (evt: DragBoxEvent) => void): EventsKey;
|
||||
once(type: 'boxdrag', listener: (evt: DragBoxEvent) => void): EventsKey;
|
||||
un(type: 'boxdrag', listener: (evt: DragBoxEvent) => void): void;
|
||||
|
||||
Vendored
+4
-4
@@ -20,9 +20,9 @@ export default class Draw extends PointerInteraction {
|
||||
finishDrawing(): void;
|
||||
getOverlay(): VectorLayer;
|
||||
removeLastPoint(): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
@@ -47,7 +47,7 @@ export enum DrawEventType {
|
||||
DRAWSTART = 'drawstart',
|
||||
DRAWEND = 'drawend',
|
||||
}
|
||||
export type GeometryFunction = ((param0: SketchCoordType, param1: SimpleGeometry) => SimpleGeometry);
|
||||
export type GeometryFunction = ((p0: SketchCoordType, p1?: SimpleGeometry) => SimpleGeometry);
|
||||
export type LineCoordType = Coordinate[];
|
||||
export interface Options {
|
||||
type: GeometryType;
|
||||
|
||||
Vendored
+3
-3
@@ -10,9 +10,9 @@ export default class ExtentInteraction extends PointerInteraction {
|
||||
constructor(opt_options?: Options);
|
||||
getExtent(): Extent;
|
||||
setExtent(extent: Extent): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
+4
-4
@@ -19,9 +19,9 @@ export default class Interaction extends BaseObject {
|
||||
handleEvent(mapBrowserEvent: MapBrowserEvent): boolean;
|
||||
setActive(active: boolean): void;
|
||||
setMap(map: PluggableMap): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
@@ -33,5 +33,5 @@ export default class Interaction extends BaseObject {
|
||||
un(type: 'propertychange', listener: (evt: ObjectEvent) => void): void;
|
||||
}
|
||||
export interface InteractionOptions {
|
||||
handleEvent: ((param0: MapBrowserEvent) => boolean);
|
||||
handleEvent: ((p0: MapBrowserEvent) => boolean);
|
||||
}
|
||||
|
||||
+3
-3
@@ -7,9 +7,9 @@ import Interaction from './Interaction';
|
||||
|
||||
export default class KeyboardPan extends Interaction {
|
||||
constructor(opt_options?: Options);
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
+3
-3
@@ -7,9 +7,9 @@ import Interaction from './Interaction';
|
||||
|
||||
export default class KeyboardZoom extends Interaction {
|
||||
constructor(opt_options?: Options);
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -22,9 +22,9 @@ export default class Modify extends PointerInteraction {
|
||||
constructor(options: Options);
|
||||
getOverlay(): VectorLayer;
|
||||
removePoint(): boolean;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
+3
-3
@@ -11,9 +11,9 @@ export enum Mode {
|
||||
export default class MouseWheelZoom extends Interaction {
|
||||
constructor(opt_options?: Options);
|
||||
setMouseAnchor(useAnchor: boolean): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
+3
-3
@@ -9,9 +9,9 @@ export interface Options {
|
||||
}
|
||||
export default class PinchRotate extends PointerInteraction {
|
||||
constructor(opt_options?: Options);
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -9,9 +9,9 @@ export interface Options {
|
||||
}
|
||||
export default class PinchZoom extends PointerInteraction {
|
||||
constructor(opt_options?: Options);
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+9
-9
@@ -9,12 +9,12 @@ import Interaction from './Interaction';
|
||||
|
||||
export function centroid(pointerEvents: PointerEvent[]): Pixel;
|
||||
export interface Options {
|
||||
handleDownEvent?: ((param0: MapBrowserPointerEvent) => boolean);
|
||||
handleDragEvent?: ((param0: MapBrowserPointerEvent) => void);
|
||||
handleEvent?: ((param0: MapBrowserEvent) => boolean);
|
||||
handleMoveEvent?: ((param0: MapBrowserPointerEvent) => void);
|
||||
handleUpEvent?: ((param0: MapBrowserPointerEvent) => boolean);
|
||||
stopDown?: ((param0: boolean) => boolean);
|
||||
handleDownEvent?: ((p0: MapBrowserPointerEvent) => boolean);
|
||||
handleDragEvent?: ((p0: MapBrowserPointerEvent) => void);
|
||||
handleEvent?: ((p0: MapBrowserEvent) => boolean);
|
||||
handleMoveEvent?: ((p0: MapBrowserPointerEvent) => void);
|
||||
handleUpEvent?: ((p0: MapBrowserPointerEvent) => boolean);
|
||||
stopDown?: ((p0: boolean) => boolean);
|
||||
}
|
||||
export default class PointerInteraction extends Interaction {
|
||||
constructor(opt_options?: Options);
|
||||
@@ -25,9 +25,9 @@ export default class PointerInteraction extends Interaction {
|
||||
protected handleMoveEvent(mapBrowserEvent: MapBrowserPointerEvent): void;
|
||||
protected handleUpEvent(mapBrowserEvent: MapBrowserPointerEvent): boolean;
|
||||
stopDown(handled: boolean): boolean;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+5
-5
@@ -10,11 +10,11 @@ import { ObjectEvent } from '../Object';
|
||||
import { StyleFunction, StyleLike } from '../style/Style';
|
||||
import Interaction from './Interaction';
|
||||
|
||||
export type FilterFunction = ((param0: FeatureLike, param1: Layer) => boolean);
|
||||
export type FilterFunction = ((p0: FeatureLike, p1: Layer) => boolean);
|
||||
export interface Options {
|
||||
addCondition?: Condition;
|
||||
condition?: Condition;
|
||||
layers?: Layer[] | ((param0: Layer) => boolean);
|
||||
layers?: Layer[] | ((p0: Layer) => boolean);
|
||||
style?: StyleLike;
|
||||
removeCondition?: Condition;
|
||||
toggleCondition?: Condition;
|
||||
@@ -31,9 +31,9 @@ export default class Select extends Interaction {
|
||||
getLayer(feature: FeatureLike): VectorLayer;
|
||||
getOverlay(): VectorLayer;
|
||||
setHitTolerance(hitTolerance: number): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -30,9 +30,9 @@ export default class Snap extends PointerInteraction {
|
||||
addFeature(feature: Feature, opt_listen?: boolean): void;
|
||||
removeFeature(feature: Feature, opt_unlisten?: boolean): void;
|
||||
snapTo(pixel: Pixel, pixelCoordinate: Coordinate, map: PluggableMap): Result;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+4
-4
@@ -14,16 +14,16 @@ export class TranslateEvent extends Event {
|
||||
}
|
||||
export interface Options {
|
||||
features?: Collection<Feature>;
|
||||
layers?: Layer[] | ((param0: Layer) => boolean);
|
||||
layers?: Layer[] | ((p0: Layer) => boolean);
|
||||
hitTolerance?: number;
|
||||
}
|
||||
export default class Translate extends PointerInteraction {
|
||||
constructor(opt_options?: Options);
|
||||
getHitTolerance(): number;
|
||||
setHitTolerance(hitTolerance: number): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -25,9 +25,9 @@ export default class BaseLayer extends BaseObject {
|
||||
setOpacity(opacity: number): void;
|
||||
setVisible(visible: boolean): void;
|
||||
setZIndex(zindex: number): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -9,9 +9,9 @@ export default class LayerGroup extends BaseLayer {
|
||||
constructor(opt_options?: Options);
|
||||
getLayers(): Collection<BaseLayer>;
|
||||
setLayers(layers: Collection<BaseLayer>): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+4
-4
@@ -16,9 +16,9 @@ export default class Heatmap extends VectorLayer {
|
||||
setBlur(blur: number): void;
|
||||
setGradient(colors: string[]): void;
|
||||
setRadius(radius: number): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
@@ -79,7 +79,7 @@ export interface Options {
|
||||
radius?: number;
|
||||
blur?: number;
|
||||
shadow?: number;
|
||||
weight?: string | ((param0: Feature) => number);
|
||||
weight?: string | ((p0: Feature) => number);
|
||||
renderMode?: VectorRenderType | string;
|
||||
source?: VectorSource;
|
||||
}
|
||||
|
||||
Vendored
+3
-3
@@ -14,9 +14,9 @@ export default class ImageLayer extends Layer {
|
||||
protected type: LayerType;
|
||||
getSource(): ImageSource;
|
||||
getSource(): Source;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -14,9 +14,9 @@ export default class Layer extends BaseLayer {
|
||||
getSource(): Source;
|
||||
setMap(map: PluggableMap): void;
|
||||
setSource(source: Source): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -30,9 +30,9 @@ export default class TileLayer extends Layer {
|
||||
getUseInterimTilesOnError(): boolean;
|
||||
setPreload(preload: number): void;
|
||||
setUseInterimTilesOnError(useInterimTilesOnError: boolean): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+4
-4
@@ -36,7 +36,7 @@ export default class VectorLayer extends Layer {
|
||||
getDeclutter(): boolean;
|
||||
getRenderBuffer(): number;
|
||||
getRenderMode(): VectorRenderType | string;
|
||||
getRenderOrder(): ((param0: Feature, param1: Feature) => number);
|
||||
getRenderOrder(): ((p0: Feature, p1: Feature) => number);
|
||||
getSource(): VectorSource;
|
||||
getSource(): Source;
|
||||
getStyle(): StyleLike;
|
||||
@@ -46,9 +46,9 @@ export default class VectorLayer extends Layer {
|
||||
setDeclutter(declutter: boolean): void;
|
||||
setRenderOrder(renderOrder: OrderFunction): void;
|
||||
setStyle(style: Style | Style[] | StyleFunction): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -40,9 +40,9 @@ export default class VectorTileLayer extends VectorLayer {
|
||||
getUseInterimTilesOnError(): boolean;
|
||||
setPreload(preload: number): void;
|
||||
setUseInterimTilesOnError(useInterimTilesOnError: boolean): void;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+1
-1
@@ -3,4 +3,4 @@ import TileGrid from './tilegrid/TileGrid';
|
||||
|
||||
export function all(extent: Extent, resolution: number): Extent[];
|
||||
export function bbox(extent: Extent, resolution: number): Extent[];
|
||||
export function tile(tileGrid: TileGrid): ((param0: Extent, param1: number) => Extent[]);
|
||||
export function tile(tileGrid: TileGrid): ((p0: Extent, p1: number) => Extent[]);
|
||||
|
||||
Vendored
+1
-1
@@ -3,5 +3,5 @@ import PointerEventHandler from './PointerEventHandler';
|
||||
export default class EventSource {
|
||||
constructor(dispatcher: PointerEventHandler, mapping: { [key: string]: any });
|
||||
getEvents(): string[];
|
||||
getHandlerForEvent(eventType: string): ((param0: Event) => void);
|
||||
getHandlerForEvent(eventType: string): ((p0: Event) => void);
|
||||
}
|
||||
|
||||
Vendored
+3
-3
@@ -4,7 +4,7 @@ import Projection from './proj/Projection';
|
||||
import Units from './proj/Units';
|
||||
|
||||
export function addCommon(): void;
|
||||
export function addCoordinateTransforms(source: ProjectionLike, destination: ProjectionLike, forward: ((param0: Coordinate) => Coordinate), inverse: ((param0: Coordinate) => Coordinate)): void;
|
||||
export function addCoordinateTransforms(source: ProjectionLike, destination: ProjectionLike, forward: ((p0: Coordinate) => Coordinate), inverse: ((p0: Coordinate) => Coordinate)): void;
|
||||
export function addEquivalentProjections(projections: Projection[]): void;
|
||||
export function addEquivalentTransforms(projections1: Projection[], projections2: Projection[], forwardTransform: TransformFunction, inverseTransform: TransformFunction): void;
|
||||
export function addProjection(projection: Projection): void;
|
||||
@@ -12,7 +12,7 @@ export function addProjections(projections: Projection[]): void;
|
||||
export function clearAllProjections(): void;
|
||||
export function cloneTransform(input: number[], opt_output?: number[], opt_dimension?: number): number[];
|
||||
export function createProjection(projection: Projection | string, defaultCode: string): Projection;
|
||||
export function createTransformFromCoordinateTransform(coordTransform: ((param0: Coordinate) => Coordinate)): TransformFunction;
|
||||
export function createTransformFromCoordinateTransform(coordTransform: ((p0: Coordinate) => Coordinate)): TransformFunction;
|
||||
export function equivalent(projection1: Projection, projection2: Projection): boolean;
|
||||
export function fromLonLat(coordinate: Coordinate, opt_projection?: ProjectionLike): Coordinate;
|
||||
export function get(projectionLike: ProjectionLike): Projection;
|
||||
@@ -25,4 +25,4 @@ export function transform(coordinate: Coordinate, source: ProjectionLike, destin
|
||||
export function transformExtent(extent: Extent, source: ProjectionLike, destination: ProjectionLike): Extent;
|
||||
export function transformWithProjections(point: Coordinate, sourceProjection: Projection, destinationProjection: Projection): Coordinate;
|
||||
export type ProjectionLike = Projection | string;
|
||||
export type TransformFunction = ((param0: number[], param1: number[], param2: number) => number[]);
|
||||
export type TransformFunction = ((p0: number[], p1?: number[], p2?: number) => number[]);
|
||||
|
||||
Vendored
+3
-3
@@ -11,7 +11,7 @@ export interface Options {
|
||||
global?: boolean;
|
||||
metersPerUnit?: number;
|
||||
worldExtent?: Extent;
|
||||
getPointResolution?: ((param0: number, param1: Coordinate) => number);
|
||||
getPointResolution?: ((p0: number, p1: Coordinate) => number);
|
||||
}
|
||||
export default class Projection {
|
||||
constructor(options: Options);
|
||||
@@ -21,13 +21,13 @@ export default class Projection {
|
||||
getDefaultTileGrid(): TileGrid;
|
||||
getExtent(): Extent;
|
||||
getMetersPerUnit(): number;
|
||||
getPointResolutionFunc(): ((param0: number, param1: Coordinate) => number);
|
||||
getPointResolutionFunc(): ((p0: number, p1: Coordinate) => number);
|
||||
getUnits(): Units;
|
||||
getWorldExtent(): Extent;
|
||||
isGlobal(): boolean;
|
||||
setDefaultTileGrid(tileGrid: TileGrid): void;
|
||||
setExtent(extent: Extent): void;
|
||||
setGetPointResolution(func: ((param0: number, param1: Coordinate) => number)): void;
|
||||
setGetPointResolution(func: ((p0: number, p1: Coordinate) => number)): void;
|
||||
setGlobal(global: boolean): void;
|
||||
setWorldExtent(worldExtent: Extent): void;
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -4,7 +4,7 @@ import CanvasImmediateRenderer from './render/canvas/Immediate';
|
||||
import { Size } from './size';
|
||||
|
||||
export function toContext(context: CanvasRenderingContext2D, opt_options?: ToContextOptions): CanvasImmediateRenderer;
|
||||
export type OrderFunction = ((param0: FeatureLike, param1: FeatureLike) => number);
|
||||
export type OrderFunction = ((p0: FeatureLike, p1: FeatureLike) => number);
|
||||
export interface State {
|
||||
context: CanvasRenderingContext2D;
|
||||
feature: FeatureLike;
|
||||
|
||||
Vendored
+2
-2
@@ -38,6 +38,6 @@ export default class CanvasReplay extends VectorContext {
|
||||
replayImage_(context: CanvasRenderingContext2D, x: number, y: number, image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, anchorX: number, anchorY: number, declutterGroup: DeclutterGroup, height: number, opacity: number, originX: number, originY: number, rotation: number, scale: number, snapToPixel: boolean, width: number, padding: number[], fillInstruction: any[], strokeInstruction: any[]): void;
|
||||
replayTextBackground_(context: CanvasRenderingContext2D, p1: Coordinate, p2: Coordinate, p3: Coordinate, p4: Coordinate, fillInstruction: any[], strokeInstruction: any[]): void;
|
||||
reverseHitDetectionInstructions(): void;
|
||||
updateFillStyle(state: FillStrokeState, createFill: ((this: CanvasReplay, param1: FillStrokeState, param2: Geometry | RenderFeature) => any[]), geometry: Geometry | RenderFeature): void;
|
||||
updateStrokeStyle(state: FillStrokeState, applyStroke: ((this: CanvasReplay, param1: FillStrokeState) => void)): void;
|
||||
updateFillStyle(state: FillStrokeState, createFill: ((this: CanvasReplay, p1: FillStrokeState, p2: Geometry | RenderFeature) => any[]), geometry: Geometry | RenderFeature): void;
|
||||
updateStrokeStyle(state: FillStrokeState, applyStroke: ((this: CanvasReplay, p1: FillStrokeState) => void)): void;
|
||||
}
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ export default class CanvasReplayGroup extends ReplayGroup {
|
||||
constructor(tolerance: number, maxExtent: Extent, resolution: number, pixelRatio: number, overlaps: boolean, declutterTree: any, opt_renderBuffer?: number);
|
||||
clip(context: CanvasRenderingContext2D, transform: Transform): void;
|
||||
finish(): void;
|
||||
forEachFeatureAtCoordinate<T>(coordinate: Coordinate, resolution: number, rotation: number, hitTolerance: number, skippedFeaturesHash: { [key: string]: boolean }, callback: ((param0: Feature | RenderFeature) => T), declutterReplays: { [key: string]: DeclutterGroup }): T;
|
||||
forEachFeatureAtCoordinate<T>(coordinate: Coordinate, resolution: number, rotation: number, hitTolerance: number, skippedFeaturesHash: { [key: string]: boolean }, callback: ((p0: Feature | RenderFeature) => T), declutterReplays: { [key: string]: DeclutterGroup }): T;
|
||||
getClipCoords(transform: Transform): number[];
|
||||
getReplays(): { [key: string]: { [key in ReplayType]: CanvasReplay } };
|
||||
hasReplays(replays: ReplayType[]): boolean;
|
||||
|
||||
Vendored
+4
-4
@@ -24,14 +24,14 @@ export default class WebGLReplay extends VectorContext {
|
||||
protected vertices: number[];
|
||||
protected verticesBuffer: WebGLBuffer;
|
||||
protected drawElements(gl: WebGLRenderingContext, context: WebGLContext, start: number, end: number): void;
|
||||
protected drawHitDetectionReplay<T>(gl: WebGLRenderingContext, context: WebGLContext, skippedFeaturesHash: { [key: string]: boolean }, featureCallback: ((param0: Feature | RenderFeature) => T), oneByOne: boolean, opt_hitExtent?: Extent): T;
|
||||
protected drawHitDetectionReplayAll<T>(gl: WebGLRenderingContext, context: WebGLContext, skippedFeaturesHash: { [key: string]: boolean }, featureCallback: ((param0: Feature | RenderFeature) => T)): T;
|
||||
protected drawHitDetectionReplayOneByOne<T>(gl: WebGLRenderingContext, context: WebGLContext, skippedFeaturesHash: { [key: string]: boolean }, featureCallback: ((param0: Feature | RenderFeature) => T), opt_hitExtent?: Extent): T;
|
||||
protected drawHitDetectionReplay<T>(gl: WebGLRenderingContext, context: WebGLContext, skippedFeaturesHash: { [key: string]: boolean }, featureCallback: ((p0: Feature | RenderFeature) => T), oneByOne: boolean, opt_hitExtent?: Extent): T;
|
||||
protected drawHitDetectionReplayAll<T>(gl: WebGLRenderingContext, context: WebGLContext, skippedFeaturesHash: { [key: string]: boolean }, featureCallback: ((p0: Feature | RenderFeature) => T)): T;
|
||||
protected drawHitDetectionReplayOneByOne<T>(gl: WebGLRenderingContext, context: WebGLContext, skippedFeaturesHash: { [key: string]: boolean }, featureCallback: ((p0: Feature | RenderFeature) => T), opt_hitExtent?: Extent): T;
|
||||
protected drawReplay(gl: WebGLRenderingContext, context: WebGLContext, skippedFeaturesHash: { [key: string]: boolean }, hitDetection: boolean): void;
|
||||
protected setUpProgram(gl: WebGLRenderingContext, context: WebGLContext, size: Size, pixelRatio: number): Locations | Locations_1 | Locations_2 | Locations_3;
|
||||
protected shutDownProgram(gl: WebGLRenderingContext, locations: Locations | Locations_1 | Locations_2 | Locations_3): void;
|
||||
protected maxExtent: Extent;
|
||||
finish(context: WebGLContext): void;
|
||||
getDeleteResourcesFunction(context: WebGLContext): (() => void);
|
||||
replay<T>(context: WebGLContext, center: Coordinate, resolution: number, rotation: number, size: Size, pixelRatio: number, opacity: number, skippedFeaturesHash: { [key: string]: boolean }, featureCallback: ((param0: Feature | RenderFeature) => T), oneByOne: boolean, opt_hitExtent?: Extent): T;
|
||||
replay<T>(context: WebGLContext, center: Coordinate, resolution: number, rotation: number, size: Size, pixelRatio: number, opacity: number, skippedFeaturesHash: { [key: string]: boolean }, featureCallback: ((p0: Feature | RenderFeature) => T), oneByOne: boolean, opt_hitExtent?: Extent): T;
|
||||
}
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import ReplayGroup from '../ReplayGroup';
|
||||
export default class WebGLReplayGroup extends ReplayGroup {
|
||||
constructor(tolerance: number, maxExtent: Extent, opt_renderBuffer?: number);
|
||||
finish(context: WebGLContext): void;
|
||||
forEachFeatureAtCoordinate<T>(coordinate: Coordinate, context: WebGLContext, center: Coordinate, resolution: number, rotation: number, size: Size, pixelRatio: number, opacity: number, skippedFeaturesHash: { [key: string]: boolean }, callback: ((param0: Feature | RenderFeature) => T)): T;
|
||||
forEachFeatureAtCoordinate<T>(coordinate: Coordinate, context: WebGLContext, center: Coordinate, resolution: number, rotation: number, size: Size, pixelRatio: number, opacity: number, skippedFeaturesHash: { [key: string]: boolean }, callback: ((p0: Feature | RenderFeature) => T)): T;
|
||||
getDeleteResourcesFunction(context: WebGLContext): (() => void);
|
||||
hasFeatureAtCoordinate(coordinate: Coordinate, context: WebGLContext, center: Coordinate, resolution: number, rotation: number, size: Size, pixelRatio: number, opacity: number, skippedFeaturesHash: { [key: string]: boolean }): boolean;
|
||||
replay(context: WebGLContext, center: Coordinate, resolution: number, rotation: number, size: Size, pixelRatio: number, opacity: number, skippedFeaturesHash: { [key: string]: boolean }): void;
|
||||
|
||||
Vendored
+5
-5
@@ -15,18 +15,18 @@ import TileRange from '../TileRange';
|
||||
|
||||
export default class LayerRenderer extends Observable {
|
||||
constructor(layer: Layer);
|
||||
protected createLoadedTileFinder(source: TileSource, projection: Projection, tiles: { [key: number]: { [key: string]: Tile } }): ((param0: number, param1: TileRange) => boolean);
|
||||
protected createLoadedTileFinder(source: TileSource, projection: Projection, tiles: { [key: number]: { [key: string]: Tile } }): ((p0: number, p1: TileRange) => boolean);
|
||||
protected loadImage(image: ImageBase): boolean;
|
||||
protected manageTilePyramid<T>(frameState: FrameState, tileSource: TileSource, tileGrid: TileGrid, pixelRatio: number, projection: Projection, extent: Extent, currentZ: number, preload: number, opt_tileCallback?: (() => void), opt_this?: T): void;
|
||||
protected renderIfReadyAndVisible(): void;
|
||||
protected scheduleExpireCache(frameState: FrameState, tileSource: TileSource): void;
|
||||
protected updateUsedTiles(usedTiles: { [key: string]: { [key: string]: TileRange } }, tileSource: TileSource, z: number, tileRange: TileRange): void;
|
||||
forEachFeatureAtCoordinate<T>(coordinate: Coordinate, frameState: FrameState, hitTolerance: number, callback: ((param0: FeatureLike, param1: Layer) => T)): T | void;
|
||||
forEachFeatureAtCoordinate<T>(coordinate: Coordinate, frameState: FrameState, hitTolerance: number, callback: ((p0: FeatureLike, p1: Layer) => T)): T | void;
|
||||
getLayer(): Layer;
|
||||
hasFeatureAtCoordinate(coordinate: Coordinate, frameState: FrameState): boolean;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+3
-3
@@ -18,10 +18,10 @@ export default class MapRenderer extends Disposable {
|
||||
protected scheduleExpireIconCache(frameState: FrameState): void;
|
||||
protected scheduleRemoveUnusedLayerRenderers(frameState: FrameState): void;
|
||||
dispatchRenderEvent(type: EventType, frameState: FrameState): void;
|
||||
forEachFeatureAtCoordinate<S, T, U>(coordinate: Coordinate, frameState: FrameState, hitTolerance: number, callback: ((this: S, param1: FeatureLike, param2: Layer) => T), thisArg: S, layerFilter: ((this: U, param1: Layer) => boolean), thisArg2: U): T;
|
||||
forEachLayerAtPixel<S, T, U>(pixel: Pixel, frameState: FrameState, hitTolerance: number, callback: ((this: S, param1: Layer, param2: Uint8ClampedArray | Uint8Array) => T), thisArg: S, layerFilter: ((this: U, param1: Layer) => boolean), thisArg2: U): T;
|
||||
forEachFeatureAtCoordinate<S, T, U>(coordinate: Coordinate, frameState: FrameState, hitTolerance: number, callback: ((this: S, p1: FeatureLike, p2: Layer) => T), thisArg: S, layerFilter: ((this: U, p1: Layer) => boolean), thisArg2: U): T;
|
||||
forEachLayerAtPixel<S, T, U>(pixel: Pixel, frameState: FrameState, hitTolerance: number, callback: ((this: S, p1: Layer, p2: Uint8ClampedArray | Uint8Array) => T), thisArg: S, layerFilter: ((this: U, p1: Layer) => boolean), thisArg2: U): T;
|
||||
getMap(): PluggableMap;
|
||||
hasFeatureAtCoordinate<U>(coordinate: Coordinate, frameState: FrameState, hitTolerance: number, layerFilter: ((this: U, param1: Layer) => boolean), thisArg: U): boolean;
|
||||
hasFeatureAtCoordinate<U>(coordinate: Coordinate, frameState: FrameState, hitTolerance: number, layerFilter: ((this: U, p1: Layer) => boolean), thisArg: U): boolean;
|
||||
registerLayerRenderers(constructors: LayerRenderer[]): void;
|
||||
removeLayerRenderers(): void;
|
||||
renderFrame(frameState: FrameState): void;
|
||||
|
||||
+3
-3
@@ -10,9 +10,9 @@ export default class CanvasImageLayerRenderer extends IntermediateCanvasRenderer
|
||||
constructor(imageLayer: ImageLayer | VectorLayer);
|
||||
create(mapRenderer: MapRenderer, layer: Layer): CanvasImageLayerRenderer;
|
||||
handles(layer: Layer): boolean;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
+3
-3
@@ -9,9 +9,9 @@ export default class IntermediateCanvasRenderer extends CanvasLayerRenderer {
|
||||
protected coordinateToCanvasPixelTransform: Transform;
|
||||
getImage(): HTMLCanvasElement | HTMLVideoElement | HTMLImageElement;
|
||||
getImageTransform(): Transform;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+4
-4
@@ -16,11 +16,11 @@ export default class CanvasLayerRenderer extends LayerRenderer {
|
||||
protected postCompose(context: CanvasRenderingContext2D, frameState: FrameState, layerState: State, opt_transform?: Transform): void;
|
||||
protected preCompose(context: CanvasRenderingContext2D, frameState: FrameState, opt_transform?: Transform): void;
|
||||
composeFrame(frameState: FrameState, layerState: State, context: CanvasRenderingContext2D): void;
|
||||
forEachLayerAtCoordinate<S, T, U>(coordinate: Coordinate, frameState: FrameState, hitTolerance: number, callback: ((this: S, param1: Layer, param2: Uint8ClampedArray | Uint8Array) => T), thisArg: S): T;
|
||||
forEachLayerAtCoordinate<S, T, U>(coordinate: Coordinate, frameState: FrameState, hitTolerance: number, callback: ((this: S, p1: Layer, p2: Uint8ClampedArray | Uint8Array) => T), thisArg: S): T;
|
||||
prepareFrame(frameState: FrameState, layerState: State): boolean;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
+3
-3
@@ -24,9 +24,9 @@ export default class CanvasTileLayerRenderer extends IntermediateCanvasRenderer
|
||||
getLayer(): TileLayer | VectorTileLayer;
|
||||
getLayer(): Layer;
|
||||
getTile(z: number, x: number, y: number, pixelRatio: number, projection: Projection): Tile;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
+3
-3
@@ -16,9 +16,9 @@ export default class CanvasVectorLayerRenderer extends CanvasLayerRenderer {
|
||||
compose(context: CanvasRenderingContext2D, frameState: FrameState, layerState: State): void;
|
||||
handleFontsChanged_(event: Event): void;
|
||||
renderFeature(feature: Feature, resolution: number, pixelRatio: number, styles: Style | Style[], replayGroup: CanvasReplayGroup): boolean;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
+3
-3
@@ -14,9 +14,9 @@ export default class CanvasVectorTileLayerRenderer extends CanvasTileLayerRender
|
||||
handles(layer: Layer): boolean;
|
||||
handleFontsChanged_(event: Event): void;
|
||||
renderFeature(feature: FeatureLike, squaredTolerance: number, styles: Style | Style[], replayGroup: CanvasReplayGroup): boolean;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+1
-1
@@ -16,4 +16,4 @@ import Style from '../style/Style';
|
||||
export function defaultOrder(feature1: FeatureLike, feature2: FeatureLike): number;
|
||||
export function getSquaredTolerance(resolution: number, pixelRatio: number): number;
|
||||
export function getTolerance(resolution: number, pixelRatio: number): number;
|
||||
export function renderFeature<T>(replayGroup: ReplayGroup, feature: FeatureLike, style: Style, squaredTolerance: number, listener: ((this: T, param1: Event) => void), thisArg: T): boolean;
|
||||
export function renderFeature<T>(replayGroup: ReplayGroup, feature: FeatureLike, style: Style, squaredTolerance: number, listener: ((this: T, p1: Event) => void), thisArg: T): boolean;
|
||||
|
||||
+3
-3
@@ -10,9 +10,9 @@ export default class WebGLImageLayerRenderer extends WebGLLayerRenderer {
|
||||
constructor(mapRenderer: WebGLMapRenderer, imageLayer: ImageLayer);
|
||||
create(mapRenderer: MapRenderer, layer: Layer): WebGLImageLayerRenderer;
|
||||
handles(layer: Layer): boolean;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+4
-4
@@ -18,15 +18,15 @@ export default class WebGLLayerRenderer extends LayerRenderer {
|
||||
protected texture: WebGLTexture;
|
||||
protected bindFramebuffer(frameState: FrameState, framebufferDimension: number): void;
|
||||
composeFrame(frameState: FrameState, layerState: State, context: WebGLContext): void;
|
||||
forEachLayerAtPixel<S, T, U>(pixel: Pixel, frameState: FrameState, callback: ((this: S, param1: Layer, param2: Uint8ClampedArray | Uint8Array) => T), thisArg: S): T;
|
||||
forEachLayerAtPixel<S, T, U>(pixel: Pixel, frameState: FrameState, callback: ((this: S, p1: Layer, p2: Uint8ClampedArray | Uint8Array) => T), thisArg: S): T;
|
||||
getProjectionMatrix(): Transform;
|
||||
getTexCoordMatrix(): Transform;
|
||||
getTexture(): WebGLTexture;
|
||||
handleWebGLContextLost(): void;
|
||||
prepareFrame(frameState: FrameState, layerState: State, context: WebGLContext): boolean;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
+3
-3
@@ -10,9 +10,9 @@ export default class WebGLTileLayerRenderer extends WebGLLayerRenderer {
|
||||
constructor(mapRenderer: WebGLMapRenderer, tileLayer: TileLayer);
|
||||
create(mapRenderer: MapRenderer, layer: Layer): WebGLTileLayerRenderer;
|
||||
handles(layer: Layer): boolean;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
+3
-3
@@ -14,9 +14,9 @@ export default class WebGLVectorLayerRenderer extends WebGLLayerRenderer {
|
||||
create(mapRenderer: MapRenderer, layer: Layer): WebGLVectorLayerRenderer;
|
||||
handles(layer: Layer): boolean;
|
||||
renderFeature(feature: Feature, resolution: number, pixelRatio: number, styles: Style | Style[], replayGroup: WebGLReplayGroup): boolean;
|
||||
on(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((param0: any) => void)): void;
|
||||
on(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
once(type: string | string[], listener: ((p0: any) => void)): EventsKey | EventsKey[];
|
||||
un(type: string | string[], listener: ((p0: any) => void)): void;
|
||||
on(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
once(type: 'change', listener: (evt: Event) => void): EventsKey;
|
||||
un(type: 'change', listener: (evt: Event) => void): void;
|
||||
|
||||
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
export function createSnapToPower(power: number, maxResolution: number, opt_maxLevel?: number): Type;
|
||||
export function createSnapToResolutions(resolutions: number[]): Type;
|
||||
export type Type = ((param0: number, param1: number, param2: number) => number);
|
||||
export type Type = ((p0: number, p1: number, p2: number) => number);
|
||||
|
||||
Vendored
+1
-1
@@ -2,4 +2,4 @@ export function createSnapToN(n: number): Type;
|
||||
export function createSnapToZero(opt_tolerance?: number): Type;
|
||||
export function disable(rotation: number, delta: number): number;
|
||||
export function none(rotation: number, delta: number): number;
|
||||
export type Type = ((param0: number, param1: number) => number);
|
||||
export type Type = ((p0: number, p1: number) => number);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user