UNPKG

pencil.js

Version:

Nice modular interactive 2D drawing library.

45 lines (44 loc) 1.13 kB
/** * @module Pie */ /** * Pie class * <br><img src="./media/examples/pie.png" alt="pie demo"/> * @class * @extends {module:Arc} */ export default class Pie { /** * @return {ComponentOptions} */ static get defaultOptions(): ComponentOptions; /** * Pie constructor * @param {PositionDefinition} positionDefinition - Position of the center * @param {Number} radius - Circle radius * @param {Number} startAngle - Angle beginning the arc * @param {Number} endAngle - Angle ending the arc * @param {ComponentOptions} [options] - Specific options */ constructor(positionDefinition: PositionDefinition, radius: number, startAngle: number, endAngle: number, options?: ComponentOptions); /** * @inheritDoc */ trace(path: any): any; /** * Change this pie's radius * @param {Number} radius - New radius value */ set radius(radius: number); /** * Return this pie's radius * @return {Number} */ get radius(): number; width: number; height: number; /** * @inheritDoc */ toJSON(): any; }