mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-18 18:41:08 +00:00
Move shared attributes out of parser since it's needed by many "classes"
This commit is contained in:
parent
ab7fbe798f
commit
167f2fa089
6 changed files with 23 additions and 23 deletions
|
|
@ -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
14
dist/all.js
vendored
|
|
@ -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
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.
14
dist/all.require.js
vendored
14
dist/all.require.js
vendored
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue