mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Add IDs to elements
- Move round rect function within the renderer
This commit is contained in:
parent
829a65b8cb
commit
9de9bd1cff
3 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@ export function newElement(
|
||||||
height = 0
|
height = 0
|
||||||
) {
|
) {
|
||||||
const element = {
|
const element = {
|
||||||
|
id: new Date().getTime(),
|
||||||
type,
|
type,
|
||||||
x,
|
x,
|
||||||
y,
|
y,
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { RoughCanvas } from "roughjs/bin/canvas";
|
||||||
import { ExcalidrawElement } from "../element/types";
|
import { ExcalidrawElement } from "../element/types";
|
||||||
import { getElementAbsoluteCoords, handlerRectangles } from "../element";
|
import { getElementAbsoluteCoords, handlerRectangles } from "../element";
|
||||||
|
|
||||||
import { roundRect } from "../scene/roundRect";
|
import { roundRect } from "./roundRect";
|
||||||
import { SceneState } from "../scene/types";
|
import { SceneState } from "../scene/types";
|
||||||
import {
|
import {
|
||||||
getScrollBars,
|
getScrollBars,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue