mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-01 18:44:42 +00:00
Build distribution
This commit is contained in:
parent
314e06db6d
commit
ab1d4fec82
4 changed files with 21 additions and 13 deletions
10
dist/fabric.js
vendored
10
dist/fabric.js
vendored
|
|
@ -2660,7 +2660,8 @@ if (typeof console !== 'undefined') {
|
|||
'stroke-miterlimit': 'strokeMiterLimit',
|
||||
'stroke-opacity': 'strokeOpacity',
|
||||
'stroke-width': 'strokeWidth',
|
||||
'text-decoration': 'textDecoration'
|
||||
'text-decoration': 'textDecoration',
|
||||
'text-anchor': 'originX'
|
||||
},
|
||||
|
||||
colorAttributes = {
|
||||
|
|
@ -2704,6 +2705,9 @@ if (typeof console !== 'undefined') {
|
|||
value = false;
|
||||
}
|
||||
}
|
||||
else if (attr === 'originX' /* text-anchor */) {
|
||||
value = value === 'start' ? 'left' : value === 'end' ? 'right' : 'center';
|
||||
}
|
||||
|
||||
isArray = Object.prototype.toString.call(value) === '[object Array]';
|
||||
|
||||
|
|
@ -2905,7 +2909,7 @@ if (typeof console !== 'undefined') {
|
|||
oStyle.fontStyle = fontStyle;
|
||||
}
|
||||
if (fontWeight) {
|
||||
oStyle.fontSize = isNaN(parseFloat(fontWeight)) ? fontWeight : parseFloat(fontWeight);
|
||||
oStyle.fontWeight = isNaN(parseFloat(fontWeight)) ? fontWeight : parseFloat(fontWeight);
|
||||
}
|
||||
if (fontSize) {
|
||||
oStyle.fontSize = parseFloat(fontSize);
|
||||
|
|
@ -18652,7 +18656,7 @@ fabric.Image.filters.BaseFilter = fabric.util.createClass(/** @lends fabric.Imag
|
|||
* @see: http://www.w3.org/TR/SVG/text.html#TextElement
|
||||
*/
|
||||
fabric.Text.ATTRIBUTE_NAMES = fabric.SHARED_ATTRIBUTES.concat(
|
||||
'x y dx dy font-family font-style font-weight font-size text-decoration'.split(' '));
|
||||
'x y dx dy font-family font-style font-weight font-size text-decoration text-anchor'.split(' '));
|
||||
|
||||
/**
|
||||
* Default SVG font size
|
||||
|
|
|
|||
14
dist/fabric.min.js
vendored
14
dist/fabric.min.js
vendored
File diff suppressed because one or more lines are too long
BIN
dist/fabric.min.js.gz
vendored
BIN
dist/fabric.min.js.gz
vendored
Binary file not shown.
10
dist/fabric.require.js
vendored
10
dist/fabric.require.js
vendored
|
|
@ -2660,7 +2660,8 @@ if (typeof console !== 'undefined') {
|
|||
'stroke-miterlimit': 'strokeMiterLimit',
|
||||
'stroke-opacity': 'strokeOpacity',
|
||||
'stroke-width': 'strokeWidth',
|
||||
'text-decoration': 'textDecoration'
|
||||
'text-decoration': 'textDecoration',
|
||||
'text-anchor': 'originX'
|
||||
},
|
||||
|
||||
colorAttributes = {
|
||||
|
|
@ -2704,6 +2705,9 @@ if (typeof console !== 'undefined') {
|
|||
value = false;
|
||||
}
|
||||
}
|
||||
else if (attr === 'originX' /* text-anchor */) {
|
||||
value = value === 'start' ? 'left' : value === 'end' ? 'right' : 'center';
|
||||
}
|
||||
|
||||
isArray = Object.prototype.toString.call(value) === '[object Array]';
|
||||
|
||||
|
|
@ -2905,7 +2909,7 @@ if (typeof console !== 'undefined') {
|
|||
oStyle.fontStyle = fontStyle;
|
||||
}
|
||||
if (fontWeight) {
|
||||
oStyle.fontSize = isNaN(parseFloat(fontWeight)) ? fontWeight : parseFloat(fontWeight);
|
||||
oStyle.fontWeight = isNaN(parseFloat(fontWeight)) ? fontWeight : parseFloat(fontWeight);
|
||||
}
|
||||
if (fontSize) {
|
||||
oStyle.fontSize = parseFloat(fontSize);
|
||||
|
|
@ -18652,7 +18656,7 @@ fabric.Image.filters.BaseFilter = fabric.util.createClass(/** @lends fabric.Imag
|
|||
* @see: http://www.w3.org/TR/SVG/text.html#TextElement
|
||||
*/
|
||||
fabric.Text.ATTRIBUTE_NAMES = fabric.SHARED_ATTRIBUTES.concat(
|
||||
'x y dx dy font-family font-style font-weight font-size text-decoration'.split(' '));
|
||||
'x y dx dy font-family font-style font-weight font-size text-decoration text-anchor'.split(' '));
|
||||
|
||||
/**
|
||||
* Default SVG font size
|
||||
|
|
|
|||
Loading…
Reference in a new issue