@amcharts/amcharts4
Version:
amCharts 4
47 lines (46 loc) • 1.37 kB
TypeScript
/**
* This module defines a [[Validatable]] class which can be used by all
* non-[[Sprite]] classes to use system beats to revalidate themselves.
*/
/**
* ============================================================================
* IMPORTS
* ============================================================================
* @hidden
*/
import { BaseObjectEvents, IBaseObjectEvents } from "../Base";
/**
* Events.
*/
export interface IValidatableEvents extends IBaseObjectEvents {
}
/**
* This module defines a [[Validatable]] class which can be used by all
* non-[[Sprite]] classes to use system update cycle to revalidate themselves.
*
* @ignore Exclude from docs
*/
export declare class Validatable extends BaseObjectEvents {
/**
* Is invalid and should be revalidated?
*/
private _validateDisposer;
/**
* Invalidates the element, so that it can re-validate/redraw itself in the
* next cycle.
*
* @ignore Exclude from docs
*/
invalidate(): void;
/**
* Validates itself.
*
* Most probably the extending class will have an overriding `validate()`
* method which will do actual work, as well as call this method using
* `super.validate()`.
*
* @ignore Exclude from docs
*/
validate(): void;
dispose(): void;
}