Set default originX as center. Closes #974

This commit is contained in:
kangax 2014-05-09 23:29:11 +02:00
parent 4664b2985d
commit f5691b4b4f

View file

@ -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);
/*