Build distribution. Version 1.3.2

This commit is contained in:
kangax 2013-09-24 13:25:26 +02:00
parent 83ca60e885
commit 5dc3bcff6d
7 changed files with 23 additions and 19 deletions

View file

@ -1,6 +1,6 @@
/*! Fabric.js Copyright 2008-2013, Printio (Juriy Zaytsev, Maxim Chernyak) */
var fabric = fabric || { version: "1.3.1" };
var fabric = fabric || { version: "1.3.2" };
if (typeof exports !== 'undefined') {
exports.fabric = fabric;
}

View file

@ -2,7 +2,7 @@
"name": "fabric.js",
"repo": "kangax/fabric.js",
"description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.",
"version": "1.3.1",
"version": "1.3.2",
"keywords": ["canvas", "graphic", "graphics", "SVG", "node-canvas", "parser", "HTML5", "object model"],
"dependencies": {},
"development": {},

12
dist/all.js vendored
View file

@ -1,7 +1,7 @@
/* build: `node build.js modules=ALL exclude=gestures` */
/*! Fabric.js Copyright 2008-2013, Printio (Juriy Zaytsev, Maxim Chernyak) */
var fabric = fabric || { version: "1.3.1" };
var fabric = fabric || { version: "1.3.2" };
if (typeof exports !== 'undefined') {
exports.fabric = fabric;
}
@ -2022,7 +2022,7 @@ fabric.Collection = {
};
(function() {
(function(global) {
var sqrt = Math.sqrt,
atan2 = Math.atan2;
@ -2136,7 +2136,9 @@ fabric.Collection = {
* @return {Object} klass "Class"
*/
function getKlass(type, namespace) {
return resolveNamespace(namespace)[fabric.util.string.camelize(fabric.util.string.capitalize(type))];
// capitalize first letter only
type = fabric.util.string.camelize(type.charAt(0).toUpperCase() + type.slice(1));
return resolveNamespace(namespace)[type];
}
/**
@ -2150,7 +2152,7 @@ fabric.Collection = {
var parts = namespace.split('.'),
len = parts.length,
obj = fabric.window;
obj = global || fabric.window;
for (var i = 0; i < len; ++i) {
obj = obj[parts[i]];
@ -2557,7 +2559,7 @@ fabric.Collection = {
fabric.util.getFunctionBody = getFunctionBody;
fabric.util.drawArc = drawArc;
})();
})(typeof exports !== 'undefined' ? exports : this);
(function() {

12
dist/all.min.js vendored

File diff suppressed because one or more lines are too long

BIN
dist/all.min.js.gz vendored

Binary file not shown.

12
dist/all.require.js vendored
View file

@ -1,7 +1,7 @@
/* build: `node build.js modules=ALL exclude=gestures` */
/*! Fabric.js Copyright 2008-2013, Printio (Juriy Zaytsev, Maxim Chernyak) */
var fabric = fabric || { version: "1.3.1" };
var fabric = fabric || { version: "1.3.2" };
if (typeof exports !== 'undefined') {
exports.fabric = fabric;
}
@ -2022,7 +2022,7 @@ fabric.Collection = {
};
(function() {
(function(global) {
var sqrt = Math.sqrt,
atan2 = Math.atan2;
@ -2136,7 +2136,9 @@ fabric.Collection = {
* @return {Object} klass "Class"
*/
function getKlass(type, namespace) {
return resolveNamespace(namespace)[fabric.util.string.camelize(fabric.util.string.capitalize(type))];
// capitalize first letter only
type = fabric.util.string.camelize(type.charAt(0).toUpperCase() + type.slice(1));
return resolveNamespace(namespace)[type];
}
/**
@ -2150,7 +2152,7 @@ fabric.Collection = {
var parts = namespace.split('.'),
len = parts.length,
obj = fabric.window;
obj = global || fabric.window;
for (var i = 0; i < len; ++i) {
obj = obj[parts[i]];
@ -2557,7 +2559,7 @@ fabric.Collection = {
fabric.util.getFunctionBody = getFunctionBody;
fabric.util.drawArc = drawArc;
})();
})(typeof exports !== 'undefined' ? exports : this);
(function() {

View file

@ -1,7 +1,7 @@
{
"name": "fabric",
"description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.",
"version": "1.3.1",
"version": "1.3.2",
"author": "Juriy Zaytsev <kangax@gmail.com>",
"keywords": ["canvas", "graphic", "graphics", "SVG", "node-canvas", "parser", "HTML5", "object model"],
"repository": "git://github.com/kangax/fabric.js",