rename drawingConfigs to freedrawOptions

This commit is contained in:
dwelle
2025-07-14 13:15:31 +02:00
parent 446f871536
commit d615c2cea1
8 changed files with 25 additions and 25 deletions

View File

@@ -1,4 +1,4 @@
import { DRAWING_CONFIGS, isFreeDrawElement } from "@excalidraw/element";
import { STROKE_OPTIONS, isFreeDrawElement } from "@excalidraw/element";
import { useState, useEffect } from "react";
import { useUIAppState } from "@excalidraw/excalidraw/context/ui-appState";
@@ -8,10 +8,10 @@ import { round } from "../../packages/math/src";
export const FreedrawDebugSliders = () => {
const [streamline, setStreamline] = useState<number>(
DRAWING_CONFIGS.default.streamline,
STROKE_OPTIONS.default.streamline,
);
const [simplify, setSimplify] = useState<number>(
DRAWING_CONFIGS.default.simplify,
STROKE_OPTIONS.default.simplify,
);
useEffect(() => {
@@ -21,7 +21,7 @@ export const FreedrawDebugSliders = () => {
if (!window.h.debugFreedraw) {
window.h.debugFreedraw = {
enabled: true,
...DRAWING_CONFIGS.default,
...STROKE_OPTIONS.default,
};
}