mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Fix an error in applyTextAttribute() handling.
This commit is contained in:
parent
5501f48570
commit
1c8e3a5db1
1 changed files with 3 additions and 3 deletions
|
@ -329,19 +329,19 @@ new function() {
|
|||
'stroke-opacity': applyOpacity,
|
||||
|
||||
'font-family': function(item, value) {
|
||||
applyTextAttribute(item, function() {
|
||||
applyTextAttribute(item, function(item) {
|
||||
item.setFont(value.split(',')[0].replace(/^\s+|\s+$/g, ''));
|
||||
});
|
||||
},
|
||||
|
||||
'font-size': function(item, value) {
|
||||
applyTextAttribute(item, function() {
|
||||
applyTextAttribute(item, function(item) {
|
||||
item.setFontSize(parseFloat(value));
|
||||
});
|
||||
},
|
||||
|
||||
'text-anchor': function(item, value) {
|
||||
applyTextAttribute(item, function() {
|
||||
applyTextAttribute(item, function(item) {
|
||||
// http://www.w3.org/TR/SVG/text.html#TextAnchorProperty
|
||||
item.setJustification({
|
||||
start: 'left',
|
||||
|
|
Loading…
Reference in a new issue