Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930
  1. import CodeShape from "./index"
  2. import { v4 as uuid } from "uuid"
  3. import { EllipseShape, ShapeType } from "types"
  4. export default class Ellipse extends CodeShape<EllipseShape> {
  5. constructor(props = {} as Partial<EllipseShape>) {
  6. super({
  7. id: uuid(),
  8. type: ShapeType.Ellipse,
  9. isGenerated: false,
  10. name: "Ellipse",
  11. parentId: "page0",
  12. childIndex: 0,
  13. point: [0, 0],
  14. radiusX: 20,
  15. radiusY: 20,
  16. rotation: 0,
  17. style: {
  18. fill: "#777",
  19. stroke: "#000",
  20. strokeWidth: 1,
  21. },
  22. ...props,
  23. })
  24. }
  25. get radius() {
  26. return this.shape.radius
  27. }
  28. }