Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
libo committed Jan 11, 2024
1 parent 1e6b2ae commit ea7d736
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion dist/fabric.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* build: `node build.js modules=ALL exclude=gestures,accessors requirejs minifier=uglifyjs` */
/*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */

var fabric = fabric || { version: '5.3.0' };
var fabric = fabric || { version: '5.3.5' };
if (typeof exports !== 'undefined') {
exports.fabric = fabric;
}
Expand Down Expand Up @@ -7524,6 +7524,9 @@ fabric.ElementsParser = function(elements, callback, options, reviver, parsingOp
multiplier = isTransformCentered(transform) ? 2 : 1,
oldWidth = target.width,
newWidth = Math.abs(localPoint.x * multiplier / target.scaleX) - strokePadding;
if (target.autoWrapAfterChangeWidth) {
target.splitByGrapheme = true
}
target.set('width', Math.max(newWidth, 0));
return oldWidth !== newWidth;
}
Expand Down Expand Up @@ -30733,6 +30736,13 @@ fabric.util.object.extend(fabric.IText.prototype, /** @lends fabric.IText.protot
*/
splitByGrapheme: false,

/**
* Once changed width, all the inputs that follow will be auto wrapped. like keynote.
* @type Boolean
* @since 5.3.6
*/
autoWrapAfterChangeWidth: false,

/**
* Unlike superclass's version of this function, Textbox does not update
* its width.
Expand Down
2 changes: 1 addition & 1 deletion dist/fabric.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "fabric-near-erasing",
"description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.",
"homepage": "http://fabricjs.com/",
"version": "5.3.6",
"version": "5.3.7",
"author": "Juriy Zaytsev <[email protected]>",
"contributors": [
{
Expand Down

0 comments on commit ea7d736

Please sign in to comment.