mirror of
				https://github.com/excalidraw/excalidraw.git
				synced 2025-11-04 04:44:31 +01:00 
			
		
		
		
	do not center text when not applicable (#1783)
This commit is contained in:
		@@ -1,3 +1,5 @@
 | 
			
		||||
import { FontFamily } from "./element/types";
 | 
			
		||||
 | 
			
		||||
export const DRAGGING_THRESHOLD = 10; // 10px
 | 
			
		||||
export const LINE_CONFIRM_THRESHOLD = 10; // 10px
 | 
			
		||||
export const ELEMENT_SHIFT_TRANSLATE_AMOUNT = 5;
 | 
			
		||||
@@ -67,6 +69,11 @@ export const FONT_FAMILY = {
 | 
			
		||||
  3: "Cascadia",
 | 
			
		||||
} as const;
 | 
			
		||||
 | 
			
		||||
export const DEFAULT_FONT_SIZE = 20;
 | 
			
		||||
export const DEFAULT_FONT_FAMILY: FontFamily = 1;
 | 
			
		||||
export const DEFAULT_TEXT_ALIGN = "left";
 | 
			
		||||
export const DEFAULT_VERTICAL_ALIGN = "top";
 | 
			
		||||
 | 
			
		||||
export const CANVAS_ONLY_ACTIONS = ["selectAll"];
 | 
			
		||||
 | 
			
		||||
export const GRID_SIZE = 20; // TODO make it configurable?
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user