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

12345678910111213141516171819202122232425262728293031
  1. import CodeShape from './index'
  2. import { uniqueId } from 'utils'
  3. import { DotShape, ShapeProps, ShapeType } from 'types'
  4. import { defaultStyle } from 'state/shape-styles'
  5. /* ----------------- Start Copy Here ---------------- */
  6. export default class Dot extends CodeShape<DotShape> {
  7. constructor(props = {} as ShapeProps<DotShape>) {
  8. super({
  9. id: uniqueId(),
  10. parentId: (window as any).currentPageId,
  11. type: ShapeType.Dot,
  12. isGenerated: true,
  13. name: 'Dot',
  14. childIndex: 0,
  15. point: [0, 0],
  16. rotation: 0,
  17. isAspectRatioLocked: false,
  18. isLocked: false,
  19. isHidden: false,
  20. ...props,
  21. style: {
  22. ...defaultStyle,
  23. ...props.style,
  24. isFilled: true,
  25. },
  26. })
  27. }
  28. }