mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 12:36:57 +00:00
30 lines
762 B
TypeScript
30 lines
762 B
TypeScript
import { Marker } from "leaflet";
|
|
|
|
declare class BouncingOptions {
|
|
bounceHeight: number;
|
|
contractHeight: number;
|
|
bounceSpeed: number;
|
|
contractSpeed: number;
|
|
shadowAngle: number;
|
|
elastic: number;
|
|
exclusive: number;
|
|
|
|
constructor(options: Partial<BouncingOptions>);
|
|
}
|
|
|
|
// Declare a class type that adds in methods etc. defined by leaflet.smooth_marker_bouncing
|
|
// to keep Typescript happy
|
|
export declare class BouncingMarker extends Marker {
|
|
isBouncing(): boolean;
|
|
bounce(): void;
|
|
stopBouncing(): void;
|
|
getBouncingMarkers(): Marker[];
|
|
setBouncingOptions(options: BouncingOptions | Partial<BouncingOptions>): void;
|
|
stopAllBouncingMarkers(): void;
|
|
|
|
_icon: HTMLElement;
|
|
_bouncingMotion?: {
|
|
bouncingAnimationPlaying: boolean;
|
|
};
|
|
}
|