@siedlerchr/types-ol-ext
Version:
Type definitions for ol-ext
27 lines (22 loc) • 644 B
TypeScript
import type { Options as BaseOptions } from './Base'
import Base from './Base'
/** A cloud particule to display clouds over the map
* @constructor
* @extends {ol_particule_Base}
*/
export default class Cloud extends Base {
/**
* @param {*} options
* @param {ol.Overlay} options.overlay
* @param {ol.pixel} coordinate the position of the particule
*/
constructor(options?: BaseOptions);
/** Draw the particule
* @param {CanvasRenderingContext2D } ctx
*/
draw(ctx: CanvasRenderingContext2D): void;
/** Update the particule
* @param {number} dt timelapes since last call
*/
update(dt: number): void;
}