You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

dot.ts 526B

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