chore: Use isDevEnv() and isTestEnv() (#9264)

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
Co-authored-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
Mursaleen Nisar
2025-03-25 00:14:00 +05:30
committed by GitHub
parent 77aca48c84
commit e1bb59fb8f
16 changed files with 48 additions and 45 deletions

View File

@@ -15,6 +15,8 @@ import {
import { newElement, newLinearElement, newTextElement } from "./element";
import { randomId } from "./random";
import { isDevEnv } from "./utils";
import type { NonDeletedExcalidrawElement } from "./element/types";
export type ChartElements = readonly NonDeletedExcalidrawElement[];
@@ -373,7 +375,7 @@ const chartTypeBar = (
y,
groupId,
backgroundColor,
import.meta.env.DEV,
isDevEnv(),
),
];
};
@@ -455,7 +457,7 @@ const chartTypeLine = (
y,
groupId,
backgroundColor,
import.meta.env.DEV,
isDevEnv(),
),
line,
...lines,