updated examples

This commit is contained in:
Vadim Namniak
2015-05-06 00:23:29 -04:00
parent 0debea2d2b
commit da27d152c5
3 changed files with 10 additions and 16 deletions
+7 -7
View File
@@ -1,14 +1,14 @@
var optionsArr = [
var model = [
{
txt: 'Break text on every next word',
font: 'bold 25px Arial, sans-serif',
font: 'italic 800 36px Arial, sans-serif',
textAlign: 'center',
lineBreak: 'word',
lineHeight: "160%"
},
{
txt: 'Center text block horizontally and vertically',
font: 'bold 35px Verdana, Geneva, sans-serif',
font: 'bold 35px Arial, sans-serif',
textAlign: 'center',
verticalAlign: 'middle'
},
@@ -21,8 +21,8 @@ var optionsArr = [
paddingY: 30
},
{
txt: 'Justify text lines takes effect only with "auto" break line. One-word lines are skipped',
font: 'bold 40px Arial, Geneva, sans-serif',
txt: 'Justify text lines takes effect only with "auto" break line. Single word lines are skipped',
font: 'bold 40px Arial, sans-serif',
paddingX: 20,
paddingY: 20,
verticalAlign: 'middle',
@@ -31,7 +31,7 @@ var optionsArr = [
},
{
txt: 'Apply text stroke is based on context settings',
font: 'bold 40px Tahoma, Geneva, sans-serif',
font: 'bold 40px Arial, sans-serif',
textAlign: 'right',
paddingX: 25,
strokeText: true,
@@ -39,7 +39,7 @@ var optionsArr = [
},
{
txt: 'Use\n new line character "\\n"\n to break lines\nwhere needed',
font: 'bold 30px Tahoma, Geneva, sans-serif',
font: 'bold 30px Arial, sans-serif',
verticalAlign: 'bottom',
allowNewLine: true,
lineHeight: '200%'