UNPKG

pencil.js

Version:

Nice modular interactive 2D drawing library.

30 lines (29 loc) 818 B
/** * @module Heart */ /** * Heart class * <br><img src="./media/examples/heart.png" alt="heart demo"/> * @class * @extends Component */ export default class Heart extends Component { /** * @inheritDoc * @param {Object} definition - Heart definition * @return {Heart} */ static from(definition: any): Heart; /** * Heart constructor * @param {PositionDefinition} positionDefinition - Position of the center of the heart * @param {Number} radius - radius The distance from center of heart * @param {ComponentOptions} [options] - Drawing options */ constructor(positionDefinition: any, radius: number, options?: any); /** * @type {Number} */ radius: number; } import Component from "@pencil.js/component";