mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Merge branch 'master' into mrazator/delta-based-sync
This commit is contained in:
commit
de81ba25fd
582 changed files with 24885 additions and 15321 deletions
|
@ -86,13 +86,10 @@ export const getNonDeletedGroupIds = (elements: ElementsMap) => {
|
|||
|
||||
// ------------------------------------------------------------
|
||||
|
||||
// @ts-expect-error
|
||||
export const isTestEnv = () => import.meta.env.MODE === "test";
|
||||
|
||||
// @ts-expect-error
|
||||
export const isDevEnv = () => import.meta.env.MODE === "development";
|
||||
|
||||
// @ts-expect-error
|
||||
export const isServerEnv = () => import.meta.env.MODE === "server";
|
||||
|
||||
export const shouldThrow = () => isDevEnv() || isTestEnv() || isServerEnv();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Delta } from "../common/delta";
|
||||
import { elementsToMap, newElementWith, shouldThrow } from "../common/utils";
|
||||
import { newElementWith, shouldThrow } from "../common/utils";
|
||||
|
||||
import type { DeltaContainer } from "../common/interfaces";
|
||||
import type {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue