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:
co-authored by
Mark Tolmacs
parent
77aca48c84
commit
e1bb59fb8f
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user