mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-19 19:01:52 +00:00
Update text.js
So tests don't fail.
This commit is contained in:
parent
20df73c362
commit
ddbcb47d23
1 changed files with 2 additions and 1 deletions
|
|
@ -158,7 +158,7 @@
|
|||
width: 8,
|
||||
height: 20.8,
|
||||
fontSize: 16,
|
||||
originX: 'center'
|
||||
originX: 'left'
|
||||
});
|
||||
|
||||
deepEqual(text.toObject(), expectedObject);
|
||||
|
|
@ -184,6 +184,7 @@
|
|||
elTextWithAttrs.setAttribute('font-weight', 'bold');
|
||||
elTextWithAttrs.setAttribute('font-size', '123');
|
||||
elTextWithAttrs.setAttribute('text-decoration', 'underline');
|
||||
elTextWithAttrs.setAttribute('text-anchor', 'middle');
|
||||
|
||||
var textWithAttrs = fabric.Text.fromElement(elTextWithAttrs);
|
||||
// temp workaround for text objects not obtaining width under node
|
||||
|
|
|
|||
Loading…
Reference in a new issue