Merge pull request #91 from magnebra/add_text_config_options

Add config options for text
master
Jeff Schiller 2016-03-19 22:35:11 -07:00
commit a3dbb7c5af
2 changed files with 8 additions and 3 deletions

View File

@ -113,6 +113,11 @@ TODOS
color: '000000', // solid black color: '000000', // solid black
opacity: 1 opacity: 1
}, },
text: {
stroke_width: 0,
font_size: 24,
font_family: 'serif'
},
initOpacity: 1, initOpacity: 1,
colorPickerCSS: null, // Defaults to 'left' with a position equal to that of the fill_color or stroke_color element minus 140, and a 'bottom' equal to 40 colorPickerCSS: null, // Defaults to 'left' with a position equal to that of the fill_color or stroke_color element minus 140, and a 'bottom' equal to 40
initTool: 'select', initTool: 'select',

View File

@ -165,9 +165,9 @@ var all_properties = {
all_properties.text = $.extend(true, {}, all_properties.shape); all_properties.text = $.extend(true, {}, all_properties.shape);
$.extend(all_properties.text, { $.extend(all_properties.text, {
fill: '#000000', fill: '#000000',
stroke_width: 0, stroke_width: curConfig.text.stroke_width,
font_size: 24, font_size: curConfig.text.font_size,
font_family: 'serif' font_family: curConfig.text.font_family
}); });
// Current shape style properties // Current shape style properties