Skip to content

Commit

Permalink
text itext textbox 区别
Browse files Browse the repository at this point in the history
  • Loading branch information
amanisky committed Nov 28, 2018
1 parent 0df7092 commit 02ecfd1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 01.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@
height: 300,
backgroundColor: '#ccc'
});
// 无法输入
var text = new fabric.Text('hello world', {
fill: 'red',
underline: true
});
// 可输入默认不换行
var itext = new fabric.IText('hello world', {
fill: 'green',
top: 80
});
// 可输入默认根据空格换行
var textbox = new fabric.Textbox('hello world', {
fill: 'blue',
top: 150
Expand Down

0 comments on commit 02ecfd1

Please sign in to comment.