mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-26 08:24:42 +00:00
Fix bug when text objects were rendered with blue background when part of the selection.
This commit is contained in:
parent
9690f0849e
commit
b9dcfcf2c8
4 changed files with 14 additions and 6 deletions
|
|
@ -1,3 +1,3 @@
|
|||
/*! Fabric.js Copyright 2008-2011, Bitsonnet (Juriy Zaytsev, Maxim Chernyak) */
|
||||
|
||||
var fabric = fabric || { version: "0.4.10" };
|
||||
var fabric = fabric || { version: "0.4.11" };
|
||||
10
dist/all.js
vendored
10
dist/all.js
vendored
|
|
@ -1,6 +1,6 @@
|
|||
/*! Fabric.js Copyright 2008-2011, Bitsonnet (Juriy Zaytsev, Maxim Chernyak) */
|
||||
|
||||
var fabric = fabric || { version: "0.4.10" };
|
||||
var fabric = fabric || { version: "0.4.11" };
|
||||
|
||||
(function(){
|
||||
var view = document.defaultView;
|
||||
|
|
@ -765,6 +765,7 @@ Cufon.registerEngine('canvas', (function() {
|
|||
|
||||
function renderBackground() {
|
||||
g.save();
|
||||
|
||||
g.fillStyle = options.backgroundColor;
|
||||
|
||||
var left = 0, lineNum = 0;
|
||||
|
|
@ -918,7 +919,9 @@ Cufon.registerEngine('canvas', (function() {
|
|||
}
|
||||
|
||||
g.save();
|
||||
renderBackground();
|
||||
if (options.backgroundColor) {
|
||||
renderBackground();
|
||||
}
|
||||
renderText();
|
||||
g.restore();
|
||||
g.restore();
|
||||
|
|
@ -9836,7 +9839,8 @@ fabric.util.object.extend(fabric.Canvas.prototype, {
|
|||
*/
|
||||
fabric.Group.fromObject = function(object) {
|
||||
return new fabric.Group(object.objects, object);
|
||||
}
|
||||
};
|
||||
|
||||
})(this);
|
||||
|
||||
(function(global) {
|
||||
|
|
|
|||
|
|
@ -790,6 +790,7 @@ Cufon.registerEngine('canvas', (function() {
|
|||
|
||||
function renderBackground() {
|
||||
g.save();
|
||||
|
||||
g.fillStyle = options.backgroundColor;
|
||||
|
||||
var left = 0, lineNum = 0;
|
||||
|
|
@ -947,7 +948,9 @@ Cufon.registerEngine('canvas', (function() {
|
|||
}
|
||||
|
||||
g.save();
|
||||
renderBackground();
|
||||
if (options.backgroundColor) {
|
||||
renderBackground();
|
||||
}
|
||||
renderText();
|
||||
g.restore();
|
||||
g.restore();
|
||||
|
|
|
|||
|
|
@ -456,5 +456,6 @@
|
|||
*/
|
||||
fabric.Group.fromObject = function(object) {
|
||||
return new fabric.Group(object.objects, object);
|
||||
}
|
||||
};
|
||||
|
||||
})(this);
|
||||
Loading…
Reference in a new issue