SVGService.js 369 B

12345678910111213141516
  1. import SVG from "../Geometry/SVG.js";
  2. import { dataService } from "./DataService.js";
  3. import { mathUtil } from "../Util/MathUtil.js";
  4. export default class SVGService {
  5. constructor() {}
  6. create(position, svgId) {
  7. let svg = new SVG(position, svgId);
  8. dataService.addSVG(svg);
  9. return svg;
  10. }
  11. }
  12. const svgService = new SVGService();
  13. export { svgService };