Update renderElement.ts
This commit is contained in:
parent
a82ce8ce5a
commit
0604542cfb
@ -1364,9 +1364,7 @@ export function getFreeDrawSvgPath(element: ExcalidrawFreeDrawElement) {
|
|||||||
if (element.customData?.strokeOptions?.options) {
|
if (element.customData?.strokeOptions?.options) {
|
||||||
options.simulatePressure =
|
options.simulatePressure =
|
||||||
options.simulatePressure ?? element.simulatePressure;
|
options.simulatePressure ?? element.simulatePressure;
|
||||||
options.size = options.size
|
options.size = element.strokeWidth * 4.25; //override size with stroke width
|
||||||
? (options.size * element.strokeWidth) / 4
|
|
||||||
: element.strokeWidth * 4.25;
|
|
||||||
options.last = !!element.lastCommittedPoint;
|
options.last = !!element.lastCommittedPoint;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user