Skip to content

Commit

Permalink
v643
Browse files Browse the repository at this point in the history
  • Loading branch information
asturur committed Oct 3, 2024
1 parent 557b146 commit e53760e
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 18 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## [next]
## [6.4.3]

- fix(Controls): changeWidth can change width with decimals [#10186](https://github.com/fabricjs/fabric.js/pull/10186)
- ci(): Add some prebuilt fabric in the dist folder [#10178](https://github.com/fabricjs/fabric.js/pull/10178)
Expand Down
2 changes: 1 addition & 1 deletion dist/index.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.min.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.min.mjs.map

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions dist/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ class Cache {
}
const cache = new Cache();

var version = "6.4.2";
var version = "6.4.3";

// use this syntax so babel plugin see this import here
const VERSION = version;
Expand Down Expand Up @@ -8227,8 +8227,8 @@ const changeObjectWidth = (eventData, transform, x, y) => {
strokePadding = target.strokeWidth / (target.strokeUniform ? target.scaleX : 1),
multiplier = isTransformCentered(transform) ? 2 : 1,
oldWidth = target.width,
newWidth = Math.ceil(Math.abs(localPoint.x * multiplier / target.scaleX) - strokePadding);
target.set('width', Math.max(newWidth, 0));
newWidth = Math.abs(localPoint.x * multiplier / target.scaleX) - strokePadding;
target.set('width', Math.max(newWidth, 1));
// check against actual target width in case `newWidth` was rejected
return oldWidth !== target.width;
}
Expand Down Expand Up @@ -20032,6 +20032,12 @@ class FabricText extends StyledText {
complexity() {
return 1;
}

/**
* List of generic font families
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/font-family#generic-name
*/

/**
* Returns FabricText instance from an SVG element (<b>not yet implemented</b>)
* @static
Expand Down Expand Up @@ -20116,7 +20122,7 @@ _defineProperty(FabricText, "textLayoutProperties", textLayoutProperties);
_defineProperty(FabricText, "cacheProperties", [...cacheProperties, ...additionalProps]);
_defineProperty(FabricText, "ownDefaults", textDefaultValues);
_defineProperty(FabricText, "type", 'Text');
_defineProperty(FabricText, "genericFonts", ['sans-serif', 'serif', 'cursive', 'fantasy', 'monospace']);
_defineProperty(FabricText, "genericFonts", ['serif', 'sans-serif', 'monospace', 'cursive', 'fantasy', 'system-ui', 'ui-serif', 'ui-sans-serif', 'ui-monospace', 'ui-rounded', 'math', 'emoji', 'fangsong']);
/* _FROM_SVG_START_ */
/**
* List of attribute names to account for when parsing SVG element (used by {@link FabricText.fromElement})
Expand Down
2 changes: 1 addition & 1 deletion dist/index.mjs.map

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions dist/index.node.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ class Cache {
}
const cache = new Cache();

var version = "6.4.2";
var version = "6.4.3";

// use this syntax so babel plugin see this import here
const VERSION = version;
Expand Down Expand Up @@ -8283,8 +8283,8 @@ const changeObjectWidth = (eventData, transform, x, y) => {
strokePadding = target.strokeWidth / (target.strokeUniform ? target.scaleX : 1),
multiplier = isTransformCentered(transform) ? 2 : 1,
oldWidth = target.width,
newWidth = Math.ceil(Math.abs(localPoint.x * multiplier / target.scaleX) - strokePadding);
target.set('width', Math.max(newWidth, 0));
newWidth = Math.abs(localPoint.x * multiplier / target.scaleX) - strokePadding;
target.set('width', Math.max(newWidth, 1));
// check against actual target width in case `newWidth` was rejected
return oldWidth !== target.width;
}
Expand Down Expand Up @@ -20088,6 +20088,12 @@ class FabricText extends StyledText {
complexity() {
return 1;
}

/**
* List of generic font families
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/font-family#generic-name
*/

/**
* Returns FabricText instance from an SVG element (<b>not yet implemented</b>)
* @static
Expand Down Expand Up @@ -20172,7 +20178,7 @@ _defineProperty(FabricText, "textLayoutProperties", textLayoutProperties);
_defineProperty(FabricText, "cacheProperties", [...cacheProperties, ...additionalProps]);
_defineProperty(FabricText, "ownDefaults", textDefaultValues);
_defineProperty(FabricText, "type", 'Text');
_defineProperty(FabricText, "genericFonts", ['sans-serif', 'serif', 'cursive', 'fantasy', 'monospace']);
_defineProperty(FabricText, "genericFonts", ['serif', 'sans-serif', 'monospace', 'cursive', 'fantasy', 'system-ui', 'ui-serif', 'ui-sans-serif', 'ui-monospace', 'ui-rounded', 'math', 'emoji', 'fangsong']);
/* _FROM_SVG_START_ */
/**
* List of attribute names to account for when parsing SVG element (used by {@link FabricText.fromElement})
Expand Down
2 changes: 1 addition & 1 deletion dist/index.node.mjs.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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",
"description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.",
"homepage": "http://fabricjs.com/",
"version": "6.4.2",
"version": "6.4.3",
"author": "Juriy Zaytsev <[email protected]>",
"contributors": [
{
Expand Down

0 comments on commit e53760e

Please sign in to comment.