mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-06 17:17:15 +02:00
feat: sharpness (#1931)
* feat: sharpness * feat: fill sharp lines, et al. * fix: rotated positioning * chore: simplify path with Q * fix: hit test inside sharp elements * make sharp / round buttons work properly * fix tsc tests * update snapshots * update snapshots * fix: sharp arrow creation error * fix merge and test * avoid type assertion * remove duplicate helper Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
@@ -164,6 +164,7 @@ export function renderSpreadsheet(
|
||||
strokeStyle: appState.currentItemStrokeStyle,
|
||||
roughness: appState.currentItemRoughness,
|
||||
opacity: appState.currentItemOpacity,
|
||||
strokeSharpness: appState.currentItemStrokeSharpness,
|
||||
text: min.toLocaleString(),
|
||||
fontSize: 16,
|
||||
fontFamily: appState.currentItemFontFamily,
|
||||
@@ -181,6 +182,7 @@ export function renderSpreadsheet(
|
||||
strokeStyle: appState.currentItemStrokeStyle,
|
||||
roughness: appState.currentItemRoughness,
|
||||
opacity: appState.currentItemOpacity,
|
||||
strokeSharpness: appState.currentItemStrokeSharpness,
|
||||
text: max.toLocaleString(),
|
||||
fontSize: 16,
|
||||
fontFamily: appState.currentItemFontFamily,
|
||||
@@ -207,6 +209,7 @@ export function renderSpreadsheet(
|
||||
strokeStyle: appState.currentItemStrokeStyle,
|
||||
roughness: appState.currentItemRoughness,
|
||||
opacity: appState.currentItemOpacity,
|
||||
strokeSharpness: appState.currentItemStrokeSharpness,
|
||||
});
|
||||
});
|
||||
|
||||
@@ -226,6 +229,7 @@ export function renderSpreadsheet(
|
||||
strokeStyle: appState.currentItemStrokeStyle,
|
||||
roughness: appState.currentItemRoughness,
|
||||
opacity: appState.currentItemOpacity,
|
||||
strokeSharpness: appState.currentItemStrokeSharpness,
|
||||
fontSize: 16,
|
||||
fontFamily: appState.currentItemFontFamily,
|
||||
textAlign: "center",
|
||||
@@ -247,6 +251,7 @@ export function renderSpreadsheet(
|
||||
strokeStyle: appState.currentItemStrokeStyle,
|
||||
roughness: appState.currentItemRoughness,
|
||||
opacity: appState.currentItemOpacity,
|
||||
strokeSharpness: appState.currentItemStrokeSharpness,
|
||||
fontSize: 20,
|
||||
fontFamily: appState.currentItemFontFamily,
|
||||
textAlign: "center",
|
||||
|
Reference in New Issue
Block a user