fix: Improve rendering stability

This commit is contained in:
Mark Tolmacs
2025-09-05 12:58:22 +02:00
parent 5ba2798306
commit 2ed78d4895
5 changed files with 5 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ import {
assertNever,
COLOR_PALETTE,
LINE_POLYGON_POINT_MERGE_DISTANCE,
isTestEnv,
} from "@excalidraw/common";
import { RoughGenerator } from "roughjs/bin/generator";
@@ -182,7 +183,7 @@ export const generateRoughOptions = (
continuousPath = false,
): Options => {
const options: Options = {
seed: element.seed,
seed: isTestEnv() ? 1 : element.seed,
strokeLineDash:
element.strokeStyle === "dashed"
? getDashArrayDashed(element.strokeWidth)