Add config options for text
parent
2b6d663323
commit
1f57536546
|
@ -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',
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue