Update renderElement.ts

This commit is contained in:
zsviczian 2023-01-05 09:15:35 +01:00 committed by GitHub
parent a82ce8ce5a
commit 0604542cfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1364,9 +1364,7 @@ export function getFreeDrawSvgPath(element: ExcalidrawFreeDrawElement) {
if (element.customData?.strokeOptions?.options) {
options.simulatePressure =
options.simulatePressure ?? element.simulatePressure;
options.size = options.size
? (options.size * element.strokeWidth) / 4
: element.strokeWidth * 4.25;
options.size = element.strokeWidth * 4.25; //override size with stroke width
options.last = !!element.lastCommittedPoint;
}