alecmce-primitivesjs
Version:
A small library for visualizing the prime factor decomposition of numbers.
22 lines (21 loc) • 703 B
JavaScript
var __assign = (this && this.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
Object.defineProperty(exports, "__esModule", { value: true });
var Atom = (function () {
function Atom(drawCircle, radius) {
this.drawCircle = drawCircle;
this.radius = radius;
}
Atom.prototype.draw = function (config) {
return this.drawCircle(__assign({}, config, { color: 'black', radius: this.radius, stroke: false }));
};
return Atom;
}());
exports.Atom = Atom;
;