UNPKG

awv3

Version:
12 lines (10 loc) 436 B
import Arc from './arc'; import BaseGraphics from './base'; export default class Circle extends Arc { updateFromGeomParams(geomParams) { // call grandparent (BaseGraphics) method, skipping parent (Arc) one BaseGraphics.prototype.updateFromGeomParams.call(this, geomParams); this.updateWithAngles(geomParams.center, geomParams.radius, 0, 2 * Math.PI, geomParams.scale); this.updateMetaBox(); } }