mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-30 18:14:42 +00:00
Set default originX as center. Closes #974
This commit is contained in:
parent
4664b2985d
commit
f5691b4b4f
1 changed files with 4 additions and 0 deletions
|
|
@ -1088,6 +1088,10 @@
|
|||
options.fontSize = fabric.Text.DEFAULT_SVG_FONT_SIZE;
|
||||
}
|
||||
|
||||
if (!options.originX) {
|
||||
options.originX = 'center';
|
||||
}
|
||||
|
||||
var text = new fabric.Text(element.textContent, options);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue