(function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === "function" && define.amd) { define(["require", "exports", "./PolygonDrawerBase"], factory); } })(function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PolygonDrawer = void 0; const PolygonDrawerBase_1 = require("./PolygonDrawerBase"); class PolygonDrawer extends PolygonDrawerBase_1.PolygonDrawerBase { getCenter(particle, radius) { return { x: -radius / (particle.sides / 3.5), y: -radius / (2.66 / 3.5), }; } getSidesData(particle, radius) { const sides = particle.sides; return { count: { denominator: 1, numerator: sides, }, length: (radius * 2.66) / (sides / 3), }; } } exports.PolygonDrawer = PolygonDrawer; });