Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(scripts/auto-import-xopp): stroke too thick
Elian Doranff4480a9d6e7
diff --git a/apps/script-deployer/scripts/auto-import-xopp.ts b/apps/script-deployer/scripts/auto-import-xopp.tsindex 5a15d7ad28..6ac2cfd56e 100644--- a/apps/script-deployer/scripts/auto-import-xopp.ts+++ b/apps/script-deployer/scripts/auto-import-xopp.ts@@ -68,7 +68,7 @@ function makeBaseElement(type: string, x: number, y: number, width: number, heigstrokeColor: "#000000",backgroundColor: "transparent",fillStyle: "solid",- strokeWidth: 2,+ strokeWidth: 1,strokeStyle: "solid",roughness: 0,opacity: 100,@@ -160,7 +160,7 @@ function convertStroke(strokeNode: Record<string, unknown>, yOffset: number) {el.pressures = hasPressure ? pressures : [];el.simulatePressure = !hasPressure;el.strokeColor = convertColor(color);- el.strokeWidth = widths[0] || 2;+ el.strokeWidth = Math.floor(widths[0] || 1);el.opacity = isHighlighter ? 40 : extractOpacity(color);el.lastCommittedPoint = points[points.length - 1] || null;