Add IDs to elements

- Move round rect function within the renderer
This commit is contained in:
Gasim Gasimzada 2020-01-07 19:13:59 +04:00
parent 829a65b8cb
commit 9de9bd1cff
3 changed files with 2 additions and 1 deletions

View file

@ -14,6 +14,7 @@ export function newElement(
height = 0
) {
const element = {
id: new Date().getTime(),
type,
x,
y,

View file

@ -3,7 +3,7 @@ import { RoughCanvas } from "roughjs/bin/canvas";
import { ExcalidrawElement } from "../element/types";
import { getElementAbsoluteCoords, handlerRectangles } from "../element";
import { roundRect } from "../scene/roundRect";
import { roundRect } from "./roundRect";
import { SceneState } from "../scene/types";
import {
getScrollBars,