mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-10 14:54:42 +00:00
Version 1.3.12
This commit is contained in:
parent
81e9535ef0
commit
89d8133ae1
7 changed files with 45 additions and 15 deletions
18
HEADER.js
18
HEADER.js
|
|
@ -1,6 +1,6 @@
|
|||
/*! Fabric.js Copyright 2008-2013, Printio (Juriy Zaytsev, Maxim Chernyak) */
|
||||
|
||||
var fabric = fabric || { version: "1.3.11" };
|
||||
var fabric = fabric || { version: "1.3.12" };
|
||||
if (typeof exports !== 'undefined') {
|
||||
exports.fabric = fabric;
|
||||
}
|
||||
|
|
@ -11,7 +11,9 @@ if (typeof document !== 'undefined' && typeof window !== 'undefined') {
|
|||
}
|
||||
else {
|
||||
// assume we're running under node.js when document/window are not present
|
||||
fabric.document = require("jsdom").jsdom("<!DOCTYPE html><html><head></head><body></body></html>");
|
||||
fabric.document = require("jsdom")
|
||||
.jsdom("<!DOCTYPE html><html><head></head><body></body></html>");
|
||||
|
||||
fabric.window = fabric.document.createWindow();
|
||||
}
|
||||
|
||||
|
|
@ -25,11 +27,19 @@ fabric.isTouchSupported = "ontouchstart" in fabric.document.documentElement;
|
|||
* True when in environment that's probably Node.js
|
||||
* @type boolean
|
||||
*/
|
||||
fabric.isLikelyNode = typeof Buffer !== 'undefined' && typeof window === 'undefined';
|
||||
fabric.isLikelyNode = typeof Buffer !== 'undefined' &&
|
||||
typeof window === 'undefined';
|
||||
|
||||
|
||||
/**
|
||||
* Attributes parsed from all SVG elements
|
||||
* @type array
|
||||
*/
|
||||
fabric.SHARED_ATTRIBUTES = [
|
||||
"transform",
|
||||
"fill", "fill-opacity", "fill-rule",
|
||||
"opacity",
|
||||
"stroke", "stroke-dasharray", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width"
|
||||
"stroke", "stroke-dasharray", "stroke-linecap",
|
||||
"stroke-linejoin", "stroke-miterlimit",
|
||||
"stroke-opacity", "stroke-width"
|
||||
];
|
||||
|
|
|
|||
|
|
@ -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.11",
|
||||
"version": "1.3.12",
|
||||
"keywords": ["canvas", "graphic", "graphics", "SVG", "node-canvas", "parser", "HTML5", "object model"],
|
||||
"dependencies": {},
|
||||
"development": {},
|
||||
|
|
|
|||
18
dist/all.js
vendored
18
dist/all.js
vendored
|
|
@ -1,7 +1,7 @@
|
|||
/* build: `node build.js modules=ALL exclude=gestures minifier=uglifyjs` */
|
||||
/*! Fabric.js Copyright 2008-2013, Printio (Juriy Zaytsev, Maxim Chernyak) */
|
||||
|
||||
var fabric = fabric || { version: "1.3.11" };
|
||||
var fabric = fabric || { version: "1.3.12" };
|
||||
if (typeof exports !== 'undefined') {
|
||||
exports.fabric = fabric;
|
||||
}
|
||||
|
|
@ -12,7 +12,9 @@ if (typeof document !== 'undefined' && typeof window !== 'undefined') {
|
|||
}
|
||||
else {
|
||||
// assume we're running under node.js when document/window are not present
|
||||
fabric.document = require("jsdom").jsdom("<!DOCTYPE html><html><head></head><body></body></html>");
|
||||
fabric.document = require("jsdom")
|
||||
.jsdom("<!DOCTYPE html><html><head></head><body></body></html>");
|
||||
|
||||
fabric.window = fabric.document.createWindow();
|
||||
}
|
||||
|
||||
|
|
@ -26,13 +28,21 @@ fabric.isTouchSupported = "ontouchstart" in fabric.document.documentElement;
|
|||
* True when in environment that's probably Node.js
|
||||
* @type boolean
|
||||
*/
|
||||
fabric.isLikelyNode = typeof Buffer !== 'undefined' && typeof window === 'undefined';
|
||||
fabric.isLikelyNode = typeof Buffer !== 'undefined' &&
|
||||
typeof window === 'undefined';
|
||||
|
||||
|
||||
/**
|
||||
* Attributes parsed from all SVG elements
|
||||
* @type array
|
||||
*/
|
||||
fabric.SHARED_ATTRIBUTES = [
|
||||
"transform",
|
||||
"fill", "fill-opacity", "fill-rule",
|
||||
"opacity",
|
||||
"stroke", "stroke-dasharray", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width"
|
||||
"stroke", "stroke-dasharray", "stroke-linecap",
|
||||
"stroke-linejoin", "stroke-miterlimit",
|
||||
"stroke-opacity", "stroke-width"
|
||||
];
|
||||
|
||||
|
||||
|
|
|
|||
2
dist/all.min.js
vendored
2
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.
18
dist/all.require.js
vendored
18
dist/all.require.js
vendored
|
|
@ -1,7 +1,7 @@
|
|||
/* build: `node build.js modules=ALL exclude=gestures minifier=uglifyjs` */
|
||||
/*! Fabric.js Copyright 2008-2013, Printio (Juriy Zaytsev, Maxim Chernyak) */
|
||||
|
||||
var fabric = fabric || { version: "1.3.11" };
|
||||
var fabric = fabric || { version: "1.3.12" };
|
||||
if (typeof exports !== 'undefined') {
|
||||
exports.fabric = fabric;
|
||||
}
|
||||
|
|
@ -12,7 +12,9 @@ if (typeof document !== 'undefined' && typeof window !== 'undefined') {
|
|||
}
|
||||
else {
|
||||
// assume we're running under node.js when document/window are not present
|
||||
fabric.document = require("jsdom").jsdom("<!DOCTYPE html><html><head></head><body></body></html>");
|
||||
fabric.document = require("jsdom")
|
||||
.jsdom("<!DOCTYPE html><html><head></head><body></body></html>");
|
||||
|
||||
fabric.window = fabric.document.createWindow();
|
||||
}
|
||||
|
||||
|
|
@ -26,13 +28,21 @@ fabric.isTouchSupported = "ontouchstart" in fabric.document.documentElement;
|
|||
* True when in environment that's probably Node.js
|
||||
* @type boolean
|
||||
*/
|
||||
fabric.isLikelyNode = typeof Buffer !== 'undefined' && typeof window === 'undefined';
|
||||
fabric.isLikelyNode = typeof Buffer !== 'undefined' &&
|
||||
typeof window === 'undefined';
|
||||
|
||||
|
||||
/**
|
||||
* Attributes parsed from all SVG elements
|
||||
* @type array
|
||||
*/
|
||||
fabric.SHARED_ATTRIBUTES = [
|
||||
"transform",
|
||||
"fill", "fill-opacity", "fill-rule",
|
||||
"opacity",
|
||||
"stroke", "stroke-dasharray", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width"
|
||||
"stroke", "stroke-dasharray", "stroke-linecap",
|
||||
"stroke-linejoin", "stroke-miterlimit",
|
||||
"stroke-opacity", "stroke-width"
|
||||
];
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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.11",
|
||||
"version": "1.3.12",
|
||||
"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