diff --git a/CHANGELOG.md b/CHANGELOG.md index 058f88dd01d..bbee57ab67e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [4.0.0-beta.3] + +fix: control offset rendering code had extras `beginPath` that would clear all but not the last of them [#6114](https://github.com/fabricjs/fabric.js/pull/6114) + ## [4.0.0-beta.2] fix: Control.getVisibility will always receive the fabric.Object argument. diff --git a/HEADER.js b/HEADER.js index f410e748caa..6b758166471 100644 --- a/HEADER.js +++ b/HEADER.js @@ -1,6 +1,6 @@ /*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */ -var fabric = fabric || { version: '4.0.0-beta.2' }; +var fabric = fabric || { version: '4.0.0-beta.3' }; if (typeof exports !== 'undefined') { exports.fabric = fabric; } diff --git a/package.json b/package.json index 03866ad77b1..9366e72bf55 100644 --- a/package.json +++ b/package.json @@ -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": "4.0.0-beta.2", + "version": "4.0.0-beta.3", "author": "Juriy Zaytsev ", "contributors": [ { diff --git a/src/mixins/object_interactivity.mixin.js b/src/mixins/object_interactivity.mixin.js index 9899fed3ac6..b3dfff86f5f 100644 --- a/src/mixins/object_interactivity.mixin.js +++ b/src/mixins/object_interactivity.mixin.js @@ -189,10 +189,10 @@ ); if (hasControls) { + ctx.beginPath(); this.forEachControl(function(control, key, fabricObject) { // in this moment, the ctx is centered on the object. // width and height of the above function are the size of the bbox. - ctx.beginPath(); if (control.withConnection && control.getVisibility(fabricObject)) { // reset movement for each control shouldStroke = true;