Move shared attributes out of parser since it's needed by many "classes"

This commit is contained in:
kangax 2013-10-28 14:01:44 +01:00
parent ab7fbe798f
commit 167f2fa089
6 changed files with 23 additions and 23 deletions

View file

@ -26,3 +26,10 @@ fabric.isTouchSupported = "ontouchstart" in fabric.document.documentElement;
* @type boolean
*/
fabric.isLikelyNode = typeof Buffer !== 'undefined' && typeof window === 'undefined';
fabric.SHARED_ATTRIBUTES = [
"transform",
"fill", "fill-opacity", "fill-rule",
"opacity",
"stroke", "stroke-dasharray", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width"
];

14
dist/all.js vendored
View file

@ -28,6 +28,13 @@ fabric.isTouchSupported = "ontouchstart" in fabric.document.documentElement;
*/
fabric.isLikelyNode = typeof Buffer !== 'undefined' && typeof window === 'undefined';
fabric.SHARED_ATTRIBUTES = [
"transform",
"fill", "fill-opacity", "fill-rule",
"opacity",
"stroke", "stroke-dasharray", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width"
];
/*!
* Copyright (c) 2009 Simo Kinnunen.
@ -4142,13 +4149,6 @@ fabric.util.string = {
toFixed = fabric.util.toFixed,
multiplyTransformMatrices = fabric.util.multiplyTransformMatrices;
fabric.SHARED_ATTRIBUTES = [
"transform",
"fill", "fill-opacity", "fill-rule",
"opacity",
"stroke", "stroke-dasharray", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width"
];
var attributesMap = {
'fill-opacity': 'fillOpacity',
'fill-rule': 'fillRule',

4
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.

14
dist/all.require.js vendored
View file

@ -28,6 +28,13 @@ fabric.isTouchSupported = "ontouchstart" in fabric.document.documentElement;
*/
fabric.isLikelyNode = typeof Buffer !== 'undefined' && typeof window === 'undefined';
fabric.SHARED_ATTRIBUTES = [
"transform",
"fill", "fill-opacity", "fill-rule",
"opacity",
"stroke", "stroke-dasharray", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width"
];
/*!
* Copyright (c) 2009 Simo Kinnunen.
@ -4142,13 +4149,6 @@ fabric.util.string = {
toFixed = fabric.util.toFixed,
multiplyTransformMatrices = fabric.util.multiplyTransformMatrices;
fabric.SHARED_ATTRIBUTES = [
"transform",
"fill", "fill-opacity", "fill-rule",
"opacity",
"stroke", "stroke-dasharray", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width"
];
var attributesMap = {
'fill-opacity': 'fillOpacity',
'fill-rule': 'fillRule',

View file

@ -14,13 +14,6 @@
toFixed = fabric.util.toFixed,
multiplyTransformMatrices = fabric.util.multiplyTransformMatrices;
fabric.SHARED_ATTRIBUTES = [
"transform",
"fill", "fill-opacity", "fill-rule",
"opacity",
"stroke", "stroke-dasharray", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width"
];
var attributesMap = {
'fill-opacity': 'fillOpacity',
'fill-rule': 'fillRule',