Skip to content

Commit

Permalink
v651
Browse files Browse the repository at this point in the history
  • Loading branch information
asturur committed Nov 18, 2024
1 parent c093e29 commit c92531a
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 21 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## [next]

## [6.5.1]

- fix(TS): Add missing export for type DrawContext [#10281](https://github.com/fabricjs/fabric.js/pull/10281)
- fix(Control): Borderscalefactor should apply to controls as well [#10283](https://github.com/fabricjs/fabric.js/pull/10283)

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.

8 changes: 2 additions & 6 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.3";
var version = "6.5.1";

// use this syntax so babel plugin see this import here
const VERSION = version;
Expand Down Expand Up @@ -8305,8 +8305,6 @@ function renderCircleControl(ctx, left, top, styleOverride, fabricObject) {
} else {
size = xSize;
}
// this is still wrong
ctx.lineWidth = 1;
ctx.beginPath();
ctx.arc(myLeft, myTop, size / 2, 0, twoMathPi, false);
ctx[methodName]();
Expand Down Expand Up @@ -8339,8 +8337,6 @@ function renderSquareControl(ctx, left, top, styleOverride, fabricObject) {
ctx.save();
ctx.fillStyle = styleOverride.cornerColor || fabricObject.cornerColor || '';
ctx.strokeStyle = styleOverride.cornerStrokeColor || fabricObject.cornerStrokeColor || '';
// this is still wrong
ctx.lineWidth = 1;
ctx.translate(left, top);
// angle is relative to canvas plane
const angle = fabricObject.getTotalAngle();
Expand Down Expand Up @@ -9468,7 +9464,7 @@ class InteractiveFabricObject extends FabricObject$1 {
const options = qrDecompose(matrix);
ctx.save();
ctx.translate(options.translateX, options.translateY);
ctx.lineWidth = 1 * this.borderScaleFactor;
ctx.lineWidth = this.borderScaleFactor; // 1 * this.borderScaleFactor;
// since interactive groups have been introduced, an object could be inside a group and needing controls
// the following equality check `this.group === this.parent` covers:
// object without a group ( undefined === undefined )
Expand Down
2 changes: 1 addition & 1 deletion dist/index.mjs.map

Large diffs are not rendered by default.

8 changes: 2 additions & 6 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.3";
var version = "6.5.1";

// use this syntax so babel plugin see this import here
const VERSION = version;
Expand Down Expand Up @@ -8361,8 +8361,6 @@ function renderCircleControl(ctx, left, top, styleOverride, fabricObject) {
} else {
size = xSize;
}
// this is still wrong
ctx.lineWidth = 1;
ctx.beginPath();
ctx.arc(myLeft, myTop, size / 2, 0, twoMathPi, false);
ctx[methodName]();
Expand Down Expand Up @@ -8395,8 +8393,6 @@ function renderSquareControl(ctx, left, top, styleOverride, fabricObject) {
ctx.save();
ctx.fillStyle = styleOverride.cornerColor || fabricObject.cornerColor || '';
ctx.strokeStyle = styleOverride.cornerStrokeColor || fabricObject.cornerStrokeColor || '';
// this is still wrong
ctx.lineWidth = 1;
ctx.translate(left, top);
// angle is relative to canvas plane
const angle = fabricObject.getTotalAngle();
Expand Down Expand Up @@ -9524,7 +9520,7 @@ class InteractiveFabricObject extends FabricObject$1 {
const options = qrDecompose(matrix);
ctx.save();
ctx.translate(options.translateX, options.translateY);
ctx.lineWidth = 1 * this.borderScaleFactor;
ctx.lineWidth = this.borderScaleFactor; // 1 * this.borderScaleFactor;
// since interactive groups have been introduced, an object could be inside a group and needing controls
// the following equality check `this.group === this.parent` covers:
// object without a group ( undefined === undefined )
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.5.0",
"version": "6.5.1",
"author": "Juriy Zaytsev <[email protected]>",
"contributors": [
{
Expand Down

0 comments on commit c92531a

Please sign in to comment.