@amcharts/amcharts4
Version:
amCharts 4
104 lines (103 loc) • 2.57 kB
TypeScript
/**
* Functionality for drawing quadratic curves.
*/
/**
* ============================================================================
* IMPORTS
* ============================================================================
* @hidden
*/
import { Line, ILineProperties, ILineAdapters, ILineEvents } from "./Line";
import { IOrientationPoint } from "../defs/IPoint";
/**
* ============================================================================
* REQUISITES
* ============================================================================
* @hidden
*/
/**
* Defines available properties for [[QuadraticCurve]].
*/
export interface IQuadraticCurveProperties extends ILineProperties {
/**
* X coordinate of control point.
*/
cpx?: number;
/**
* Y coordinate of control point.
*/
cpy?: number;
}
/**
* Defines events for [[QuadraticCurve]].
*/
export interface IQuadraticCurveEvents extends ILineEvents {
}
/**
* Defines adapters for [[QuadraticCurve]].
*
* @see {@link Adapter}
*/
export interface IQuadraticCurveAdapters extends ILineAdapters, IQuadraticCurveProperties {
}
/**
* ============================================================================
* MAIN CLASS
* ============================================================================
* @hidden
*/
/**
* Draws a waved line.
*
* @see {@link IQuadraticCurveEvents} for a list of available events
* @see {@link IQuadraticCurveAdapters} for a list of available Adapters
*/
export declare class QuadraticCurve extends Line {
/**
* Defines available properties.
*/
_properties: IQuadraticCurveProperties;
/**
* Defines available adapters.
*/
_adapter: IQuadraticCurveAdapters;
/**
* Defines available events.
*/
_events: IQuadraticCurveEvents;
/**
* Constructor
*/
constructor();
/**
* Draws the waved line.
*
* @ignore Exclude from docs
*/
draw(): void;
/**
* X coordinate of control point.
*
* @param value X
*/
/**
* @return X
*/
cpx: number;
/**
* Y coordinate of control point.
*
* @param value Y
*/
/**
* @return Y
*/
cpy: number;
/**
* Converts relative position along the line (0-1) into pixel coordinates.
*
* @param position Position (0-1)
* @return Coordinates
*/
positionToPoint(position: number): IOrientationPoint;
}