mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-22 04:11:52 +00:00
Build distribution. Version 0.9.8.
This commit is contained in:
parent
462041d2ce
commit
20f9b9ed36
5 changed files with 13 additions and 18 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/*! Fabric.js Copyright 2008-2012, Printio (Juriy Zaytsev, Maxim Chernyak) */
|
||||
|
||||
var fabric = fabric || { version: "0.9.7" };
|
||||
var fabric = fabric || { version: "0.9.8" };
|
||||
|
||||
if (typeof exports != 'undefined') {
|
||||
exports.fabric = fabric;
|
||||
|
|
|
|||
23
dist/all.js
vendored
23
dist/all.js
vendored
|
|
@ -1,7 +1,7 @@
|
|||
/* build: `node build.js modules=ALL` */
|
||||
/*! Fabric.js Copyright 2008-2012, Printio (Juriy Zaytsev, Maxim Chernyak) */
|
||||
|
||||
var fabric = fabric || { version: "0.9.7" };
|
||||
var fabric = fabric || { version: "0.9.8" };
|
||||
|
||||
if (typeof exports != 'undefined') {
|
||||
exports.fabric = fabric;
|
||||
|
|
@ -11196,24 +11196,21 @@ fabric.util.object.extend(fabric.StaticCanvas.prototype, {
|
|||
|
||||
/**
|
||||
* Sets certain property to a certain value
|
||||
* @method set
|
||||
* @method _set
|
||||
* @param {String} prop
|
||||
* @param {Any} value
|
||||
* @return {fabric.PathGroup} thisArg
|
||||
*/
|
||||
set: function(prop, value) {
|
||||
if ((prop === 'fill' || prop === 'overlayFill') && this.isSameColor()) {
|
||||
this[prop] = value;
|
||||
_set: function(prop, value) {
|
||||
|
||||
if ((prop === 'fill' || prop === 'overlayFill') && value && this.isSameColor()) {
|
||||
var i = this.paths.length;
|
||||
while (i--) {
|
||||
this.paths[i].set(prop, value);
|
||||
this.paths[i]._set(prop, value);
|
||||
}
|
||||
}
|
||||
else {
|
||||
// skipping parent "class" - fabric.Path
|
||||
parentSet.call(this, prop, value);
|
||||
}
|
||||
return this;
|
||||
|
||||
return this.callSuper('_set', prop, value);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
@ -13637,9 +13634,7 @@ fabric.Image.filters.Tint.fromObject = function(object) {
|
|||
if (name === 'fontFamily' && this.path) {
|
||||
this.path = this.path.replace(/(.*?)([^\/]*)(\.font\.js)/, '$1' + value + '$3');
|
||||
}
|
||||
else {
|
||||
this.callSuper('_set', name, value);
|
||||
}
|
||||
this.callSuper('_set', name, value);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
4
dist/all.min.js
vendored
4
dist/all.min.js
vendored
File diff suppressed because one or more lines are too long
BIN
dist/all.min.js.gz
vendored
BIN
dist/all.min.js.gz
vendored
Binary file not shown.
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "fabric",
|
||||
"description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.",
|
||||
"version": "0.9.7",
|
||||
"version": "0.9.8",
|
||||
"author": "Juriy Zaytsev <kangax@gmail.com>",
|
||||
"keywords": ["canvas", "graphic", "graphics", "SVG", "node-canvas", "parser", "HTML5", "object model"],
|
||||
"repository": "git://github.com/kangax/fabric.js",
|
||||
|
|
|
|||
Loading…
Reference in a new issue