Creating a text near the center of a shape should put it in the center (#270)
* Snap to element center * Fixed typo * Added comment * Reduced threshold to 30 * Skip snapping if alt key is pressed * Fixed creating text with shape tool
This commit is contained in:
@ -138,7 +138,6 @@ export function renderElement(
|
||||
context.fillStyle = fillStyle;
|
||||
context.font = font;
|
||||
context.globalAlpha = 1;
|
||||
console.log(element);
|
||||
} else {
|
||||
throw new Error("Unimplemented type " + element.type);
|
||||
}
|
||||
|
Reference in New Issue
Block a user