fabric 5.4.1 → 5.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/HEADER.js +1 -1
- package/dist/fabric.js +8 -6
- package/dist/fabric.min.js +1 -1
- package/package.json +1 -1
- package/src/mixins/itext.svg_export.js +7 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [5.4.2]
|
|
4
|
+
|
|
5
|
+
- fix() Use correct Path context when creating the svg for the path [`#10276`](https://github.com/fabricjs/fabric.js/pull/10276)
|
|
6
|
+
|
|
3
7
|
## [5.4.1]
|
|
4
8
|
|
|
5
9
|
- fix() Fix the svg export of text with path [`#10268`](https://github.com/fabricjs/fabric.js/pull/10268)
|
package/HEADER.js
CHANGED
package/dist/fabric.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* build: `node build.js modules=ALL exclude=gestures,accessors,erasing requirejs minifier=uglifyjs` */
|
|
2
2
|
/*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */
|
|
3
3
|
|
|
4
|
-
var fabric = fabric || { version: '5.4.
|
|
4
|
+
var fabric = fabric || { version: '5.4.2' };
|
|
5
5
|
if (typeof exports !== 'undefined') {
|
|
6
6
|
exports.fabric = fabric;
|
|
7
7
|
}
|
|
@@ -30417,13 +30417,15 @@ fabric.util.object.extend(fabric.IText.prototype, /** @lends fabric.IText.protot
|
|
|
30417
30417
|
*/
|
|
30418
30418
|
toSVG: function(reviver) {
|
|
30419
30419
|
var textSvg = this._createBaseSVGMarkup(
|
|
30420
|
-
|
|
30421
|
-
|
|
30422
|
-
|
|
30423
|
-
|
|
30420
|
+
this._toSVG(),
|
|
30421
|
+
{ reviver: reviver, noStyle: true, withShadow: true }
|
|
30422
|
+
),
|
|
30423
|
+
path = this.path;
|
|
30424
|
+
|
|
30425
|
+
if (path) {
|
|
30424
30426
|
return (
|
|
30425
30427
|
textSvg +
|
|
30426
|
-
|
|
30428
|
+
path._createBaseSVGMarkup(path._toSVG(), {
|
|
30427
30429
|
reviver: reviver,
|
|
30428
30430
|
withShadow: true,
|
|
30429
30431
|
})
|