mirror of
https://github.com/excalidraw/excalidraw.git
synced 2026-12-03 01:59:25 +03:00
feat(editor): element creation timestamp tracking Co-authored-by: Márk Tolmács <mark@lazycat.hu>
5 lines
373 B
Markdown
5 lines
373 B
Markdown
# Guidelines
|
|
|
|
- For new DOM/browser API usage, use `app.ownerDocument` and `app.ownerWindow` instead of globals; without `app`, derive them from the mounted node's `ownerDocument` and its `defaultView`.
|
|
- When overriding properties of an existing type, prefer `Merge<Base, Overrides>` from `@excalidraw/common/utility-types` over `Omit<Base, keyof Overrides> & Overrides`.
|