123456789101112131415161718192021222324252627 |
- import { mathUtil } from "../Util/MathUtil";
- import { svgService } from "../Service/SVGService";
- import { listenLayer } from "../ListenLayer";
- export default class AddSVG {
- constructor() {
- this.newSVG = null;
- this.center = null;
- }
- setCenter(value) {
- this.center = {};
- mathUtil.clonePoint(this.center, value);
- }
- buildSVG(center) {
- this.newSVG = svgService.create(center);
- }
- clear() {
- this.newSVG = null;
- this.center = null;
- }
- }
- const addSVG = new AddSVG();
- export { addSVG };
|