diff --git a/build/files/HEADER.js b/build/files/HEADER.js index a69e069d99..8f151875d2 100644 --- a/build/files/HEADER.js +++ b/build/files/HEADER.js @@ -1,6 +1,6 @@ /*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */ -var fabric = fabric || { version: '2.0.0-rc.1' }; +var fabric = fabric || { version: '2.0.0-rc.2' }; if (typeof exports !== 'undefined') { exports.fabric = fabric; } @@ -18,6 +18,7 @@ else { FetchExternalResources: ['img'] } }); + fabric.jsdomImplForWrapper = require('jsdom/lib/jsdom/living/generated/utils').implForWrapper; fabric.window = fabric.document.defaultView; DOMParser = require('xmldom').DOMParser; } diff --git a/build/files/src/mixins/itext_behavior.mixin.js b/build/files/src/mixins/itext_behavior.mixin.js index 30601f8f3c..bbbeec85e9 100644 --- a/build/files/src/mixins/itext_behavior.mixin.js +++ b/build/files/src/mixins/itext_behavior.mixin.js @@ -572,7 +572,7 @@ return; } - this.hoverCursor = this._savedProps.overCursor; + this.hoverCursor = this._savedProps.hoverCursor; this.hasControls = this._savedProps.hasControls; this.borderColor = this._savedProps.borderColor; this.lockMovementX = this._savedProps.lockMovementX; diff --git a/build/files/src/mixins/itext_key_behavior.mixin.js b/build/files/src/mixins/itext_key_behavior.mixin.js index 86e7de57d8..fb1496e620 100644 --- a/build/files/src/mixins/itext_key_behavior.mixin.js +++ b/build/files/src/mixins/itext_key_behavior.mixin.js @@ -591,55 +591,25 @@ fabric.util.object.extend(fabric.IText.prototype, /** @lends fabric.IText.protot }, /** - * Removes characters selected by selection - * @param {Event} e Event object - */ - removeChars: function(e) { - if (this.selectionStart === this.selectionEnd) { - this._removeCharsNearCursor(e); - } - else { - this._removeCharsFromTo(this.selectionStart, this.selectionEnd); - } - + * Removes characters from start/end + * start/end ar per grapheme position in _text array. + * + * @param {Number} start + * @param {Number} end default to start + 1 + */ + removeChars: function(start, end) { + if (typeof end === 'undefined') { + end = start + 1; + } + this.removeStyleFromTo(start, end); + this._text.splice(start, end - start); + this.text = this._text.join(''); this.set('dirty', true); - this.setSelectionEnd(this.selectionStart); - this._removeExtraneousStyles(); if (this._shouldClearDimensionCache()) { this.initDimensions(); this.setCoords(); } - this.canvas && this.canvas.requestRenderAll(); - this.fire('changed'); - this.canvas && this.canvas.fire('text:changed', { target: this }); }, - /** - * @private - * @param {Event} e Event object - */ - _removeCharsNearCursor: function(e) { - if (this.selectionStart === 0) { - return; - } - if (e.metaKey) { - // remove all till the start of current line - var leftLineBoundary = this.findLineBoundaryLeft(this.selectionStart); - - this._removeCharsFromTo(leftLineBoundary, this.selectionStart); - this.setSelectionStart(leftLineBoundary); - } - else if (e.altKey) { - // remove all till the start of current word - var leftWordBoundary = this.findWordBoundaryLeft(this.selectionStart); - - this._removeCharsFromTo(leftWordBoundary, this.selectionStart); - this.setSelectionStart(leftWordBoundary); - } - else { - this._removeSingleCharAndStyle(this.selectionStart); - this.setSelectionStart(this.selectionStart - 1); - } - } }); diff --git a/build/files/src/static_canvas.class.js b/build/files/src/static_canvas.class.js index 334bb0343f..a472933b27 100644 --- a/build/files/src/static_canvas.class.js +++ b/build/files/src/static_canvas.class.js @@ -1759,4 +1759,14 @@ */ fabric.StaticCanvas.prototype.toJSON = fabric.StaticCanvas.prototype.toObject; + if (fabric.isLikelyNode) { + fabric.StaticCanvas.prototype.createPNGStream = function() { + var impl = fabric.jsdomImplForWrapper(this.lowerCanvasEl); + return impl && impl.createPNGStream(); + }; + fabric.StaticCanvas.prototype.createJPEGStream = function(opts) { + var impl = fabric.jsdomImplForWrapper(this.lowerCanvasEl); + return impl && impl.createJPEGStream(opts); + }; + } })(); diff --git a/build/index.html b/build/index.html index a1bed36c1b..e15877ba9b 100644 --- a/build/index.html +++ b/build/index.html @@ -21,7 +21,7 @@ } -
Fabric version: 2.0.0 - rc 1
+
Fabric version: 2.0.0 - rc 2

FabricJS builder

diff --git a/docs/fabric.ActiveSelection.html b/docs/fabric.ActiveSelection.html index 402a404390..28d3b168e3 100644 --- a/docs/fabric.ActiveSelection.html +++ b/docs/fabric.ActiveSelection.html @@ -94,7 +94,7 @@

-

new ActiveSelection()

+

new ActiveSelection()

@@ -138,7 +138,7 @@

new Ac
Source:
@@ -204,7 +204,7 @@

Members

-

__corner :number|string|any

+

__corner :number|string|any

@@ -273,7 +273,7 @@
Type:
Source:
@@ -295,7 +295,7 @@
Type:
-

aCoords

+

aCoords

@@ -348,7 +348,7 @@

aCoordsSource:
@@ -370,7 +370,7 @@

aCoords -

angle :Number

+

angle :Number

@@ -425,7 +425,7 @@
Type:
Source:
@@ -447,7 +447,7 @@
Type:
-

backgroundColor :String

+

backgroundColor :String

@@ -502,7 +502,7 @@
Type:
Source:
@@ -524,7 +524,7 @@
Type:
-

borderColor :String

+

borderColor :String

@@ -584,7 +584,7 @@
Type:
Source:
@@ -606,7 +606,7 @@
Type:
-

borderDashArray :Array

+

borderDashArray :Array

@@ -664,7 +664,7 @@
Type:
Source:
@@ -686,7 +686,7 @@
Type:
-

borderOpacityWhenMoving :Number

+

borderOpacityWhenMoving :Number

@@ -746,7 +746,7 @@
Type:
Source:
@@ -768,7 +768,7 @@
Type:
-

borderScaleFactor :Number

+

borderScaleFactor :Number

@@ -828,7 +828,7 @@
Type:
Source:
@@ -850,7 +850,7 @@
Type:
-

cacheProperties :Array

+

cacheProperties :Array

@@ -910,7 +910,7 @@
Type:
Source:
@@ -932,7 +932,7 @@
Type:
-

centeredRotation :Boolean

+

centeredRotation :Boolean

@@ -997,7 +997,7 @@
Type:
Source:
@@ -1019,7 +1019,7 @@
Type:
-

centeredScaling :Boolean

+

centeredScaling :Boolean

@@ -1079,7 +1079,7 @@
Type:
Source:
@@ -1101,7 +1101,7 @@
Type:
-

clipTo :function

+

clipTo :function

@@ -1159,7 +1159,7 @@
Type:
Source:
@@ -1181,7 +1181,7 @@
Type:
-

cornerColor :String

+

cornerColor :String

@@ -1241,7 +1241,7 @@
Type:
Source:
@@ -1263,7 +1263,7 @@
Type:
-

cornerDashArray :Array

+

cornerDashArray :Array

@@ -1321,7 +1321,7 @@
Type:
Source:
@@ -1343,7 +1343,7 @@
Type:
-

cornerSize :Number

+

cornerSize :Number

@@ -1403,7 +1403,7 @@
Type:
Source:
@@ -1425,7 +1425,7 @@
Type:
-

cornerStrokeColor :String

+

cornerStrokeColor :String

@@ -1483,7 +1483,7 @@
Type:
Source:
@@ -1505,7 +1505,7 @@
Type:
-

cornerStyle :String

+

cornerStyle :String

@@ -1563,7 +1563,7 @@
Type:
Source:
@@ -1585,7 +1585,7 @@
Type:
-

dirty :Boolean

+

dirty :Boolean

@@ -1646,7 +1646,7 @@
Type:
Source:
@@ -1668,7 +1668,7 @@
Type:
-

evented :Boolean

+

evented :Boolean

@@ -1728,7 +1728,7 @@
Type:
Source:
@@ -1750,7 +1750,7 @@
Type:
-

excludeFromExport :Boolean

+

excludeFromExport :Boolean

@@ -1806,7 +1806,7 @@
Type:
Source:
@@ -1828,7 +1828,7 @@
Type:
-

fill :String

+

fill :String

@@ -1888,7 +1888,7 @@
Type:
Source:
@@ -1910,7 +1910,7 @@
Type:
-

fillRule :String

+

fillRule :String

@@ -1972,7 +1972,7 @@
Type:
Source:
@@ -1994,7 +1994,7 @@
Type:
-

flipX :Boolean

+

flipX :Boolean

@@ -2049,7 +2049,7 @@
Type:
Source:
@@ -2071,7 +2071,7 @@
Type:
-

flipY :Boolean

+

flipY :Boolean

@@ -2126,7 +2126,7 @@
Type:
Source:
@@ -2148,7 +2148,7 @@
Type:
-

globalCompositeOperation :String

+

globalCompositeOperation :String

@@ -2208,7 +2208,7 @@
Type:
Source:
@@ -2230,7 +2230,7 @@
Type:
-

hasBorders :Boolean

+

hasBorders :Boolean

@@ -2290,7 +2290,7 @@
Type:
Source:
@@ -2312,7 +2312,7 @@
Type:
-

hasControls :Boolean

+

hasControls :Boolean

@@ -2372,7 +2372,7 @@
Type:
Source:
@@ -2394,7 +2394,7 @@
Type:
-

hasRotatingPoint :Boolean

+

hasRotatingPoint :Boolean

@@ -2454,7 +2454,7 @@
Type:
Source:
@@ -2476,7 +2476,7 @@
Type:
-

height :Number

+

height :Number

@@ -2531,7 +2531,7 @@
Type:
Source:
@@ -2553,7 +2553,7 @@
Type:
-

hoverCursor :String

+

hoverCursor :String

@@ -2608,7 +2608,7 @@
Type:
Source:
@@ -2630,7 +2630,7 @@
Type:
-

includeDefaultValues :Boolean

+

includeDefaultValues :Boolean

@@ -2690,7 +2690,7 @@
Type:
Source:
@@ -2712,7 +2712,7 @@
Type:
-

left :Number

+

left :Number

@@ -2767,7 +2767,7 @@
Type:
Source:
@@ -2789,7 +2789,7 @@
Type:
-

lockMovementX :Boolean

+

lockMovementX :Boolean

@@ -2844,7 +2844,7 @@
Type:
Source:
@@ -2866,7 +2866,7 @@
Type:
-

lockMovementY :Boolean

+

lockMovementY :Boolean

@@ -2921,7 +2921,7 @@
Type:
Source:
@@ -2943,7 +2943,7 @@
Type:
-

lockRotation :Boolean

+

lockRotation :Boolean

@@ -2998,7 +2998,7 @@
Type:
Source:
@@ -3020,7 +3020,7 @@
Type:
-

lockScalingFlip :Boolean

+

lockScalingFlip :Boolean

@@ -3075,7 +3075,7 @@
Type:
Source:
@@ -3097,7 +3097,7 @@
Type:
-

lockScalingX :Boolean

+

lockScalingX :Boolean

@@ -3152,7 +3152,7 @@
Type:
Source:
@@ -3174,7 +3174,7 @@
Type:
-

lockScalingY :Boolean

+

lockScalingY :Boolean

@@ -3229,7 +3229,7 @@
Type:
Source:
@@ -3251,7 +3251,7 @@
Type:
-

lockSkewingX :Boolean

+

lockSkewingX :Boolean

@@ -3306,7 +3306,7 @@
Type:
Source:
@@ -3328,7 +3328,7 @@
Type:
-

lockSkewingY :Boolean

+

lockSkewingY :Boolean

@@ -3383,7 +3383,7 @@
Type:
Source:
@@ -3405,7 +3405,7 @@
Type:
-

lockUniScaling :Boolean

+

lockUniScaling :Boolean

@@ -3460,7 +3460,7 @@
Type:
Source:
@@ -3482,7 +3482,74 @@
Type:
-

minScaleLimit :Number

+

matrixCache

+ + +
+ storage for object full transform matrix +
+ + + + + +
+ + + + + + +
Inherited From:
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + +
+ + + + + +
+ +

minScaleLimit :Number

@@ -3537,7 +3604,7 @@
Type:
Source:
@@ -3559,7 +3626,7 @@
Type:
-

moveCursor :String

+

moveCursor :String

@@ -3614,7 +3681,7 @@
Type:
Source:
@@ -3636,7 +3703,7 @@
Type:
-

noScaleCache :Boolean

+

noScaleCache :Boolean

@@ -3700,7 +3767,7 @@
Type:
Source:
@@ -3722,7 +3789,7 @@
Type:
-

objectCaching :Boolean

+

objectCaching :Boolean

@@ -3784,7 +3851,7 @@
Type:
Source:
@@ -3806,7 +3873,7 @@
Type:
-

oCoords

+

oCoords

@@ -3859,7 +3926,7 @@

oCoordsSource:
@@ -3881,7 +3948,7 @@

oCoords -

opacity :Number

+

opacity :Number

@@ -3941,7 +4008,7 @@
Type:
Source:
@@ -3963,7 +4030,7 @@
Type:
-

originX :String

+

originX :String

@@ -4024,7 +4091,7 @@
Type:
Source:
@@ -4046,7 +4113,7 @@
Type:
-

originY :String

+

originY :String

@@ -4107,7 +4174,7 @@
Type:
Source:
@@ -4129,7 +4196,74 @@
Type:
-

padding :Number

+

ownMatrixCache

+ + +
+ storage for object transform matrix +
+ + + + + +
+ + + + + + +
Inherited From:
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + +
+ + + + + +
+ +

padding :Number

@@ -4184,7 +4318,7 @@
Type:
Source:
@@ -4206,7 +4340,7 @@
Type:
-

paintFirst :String

+

paintFirst :String

@@ -4266,7 +4400,7 @@
Type:
Source:
@@ -4288,7 +4422,7 @@
Type:
-

perPixelTargetFind :Boolean

+

perPixelTargetFind :Boolean

@@ -4343,7 +4477,7 @@
Type:
Source:
@@ -4365,7 +4499,7 @@
Type:
-

rotatingPointOffset :Number

+

rotatingPointOffset :Number

@@ -4425,7 +4559,7 @@
Type:
Source:
@@ -4447,7 +4581,7 @@
Type:
-

scaleX :Number

+

scaleX :Number

@@ -4507,7 +4641,7 @@
Type:
Source:
@@ -4529,7 +4663,7 @@
Type:
-

scaleY :Number

+

scaleY :Number

@@ -4589,7 +4723,7 @@
Type:
Source:
@@ -4611,7 +4745,7 @@
Type:
-

selectable :Boolean

+

selectable :Boolean

@@ -4672,7 +4806,7 @@
Type:
Source:
@@ -4694,7 +4828,7 @@
Type:
-

selectionBackgroundColor :String

+

selectionBackgroundColor :String

@@ -4750,7 +4884,7 @@
Type:
Source:
@@ -4772,7 +4906,7 @@
Type:
-

shadow :fabric.Shadow

+

shadow :fabric.Shadow

@@ -4827,7 +4961,7 @@
Type:
Source:
@@ -4849,7 +4983,7 @@
Type:
-

skewX :Number

+

skewX :Number

@@ -4904,7 +5038,7 @@
Type:
Source:
@@ -4926,7 +5060,7 @@
Type:
-

skewY :Number

+

skewY :Number

@@ -4981,7 +5115,7 @@
Type:
Source:
@@ -5003,7 +5137,7 @@
Type:
-

statefullCache :Boolean

+

statefullCache :Boolean

@@ -5068,7 +5202,7 @@
Type:
Source:
@@ -5090,7 +5224,7 @@
Type:
-

stateProperties :Array

+

stateProperties :Array

@@ -5147,7 +5281,7 @@
Type:
Source:
@@ -5169,7 +5303,7 @@
Type:
-

stroke :String

+

stroke :String

@@ -5224,7 +5358,7 @@
Type:
Source:
@@ -5246,7 +5380,7 @@
Type:
-

strokeDashArray :Array

+

strokeDashArray :Array

@@ -5301,7 +5435,7 @@
Type:
Source:
@@ -5323,7 +5457,7 @@
Type:
-

strokeLineCap :String

+

strokeLineCap :String

@@ -5383,7 +5517,7 @@
Type:
Source:
@@ -5405,7 +5539,7 @@
Type:
-

strokeLineJoin :String

+

strokeLineJoin :String

@@ -5465,7 +5599,7 @@
Type:
Source:
@@ -5487,7 +5621,7 @@
Type:
-

strokeMiterLimit :Number

+

strokeMiterLimit :Number

@@ -5547,7 +5681,7 @@
Type:
Source:
@@ -5569,7 +5703,7 @@
Type:
-

strokeWidth :Number

+

strokeWidth :Number

@@ -5624,7 +5758,7 @@
Type:
Source:
@@ -5646,7 +5780,7 @@
Type:
-

subTargetCheck :Boolean

+

subTargetCheck :Boolean

@@ -5701,7 +5835,7 @@
Type:
Source:
@@ -5723,7 +5857,7 @@
Type:
-

top :Number

+

top :Number

@@ -5778,7 +5912,7 @@
Type:
Source:
@@ -5800,7 +5934,7 @@
Type:
-

transformMatrix :Array

+

transformMatrix :Array

@@ -5855,7 +5989,7 @@
Type:
Source:
@@ -5877,7 +6011,7 @@
Type:
-

transparentCorners :Boolean

+

transparentCorners :Boolean

@@ -5937,7 +6071,7 @@
Type:
Source:
@@ -5957,7 +6091,7 @@
Type:
-

type :String

+

type :String

@@ -6017,7 +6151,7 @@
Type:
Source:
@@ -6037,7 +6171,7 @@
Type:
-

useSetOnGroup :Boolean

+

useSetOnGroup :Boolean

@@ -6096,7 +6230,7 @@
Type:
Source:
@@ -6118,7 +6252,7 @@
Type:
-

visible :Boolean

+

visible :Boolean

@@ -6178,7 +6312,7 @@
Type:
Source:
@@ -6200,7 +6334,7 @@
Type:
-

width :Number

+

width :Number

@@ -6255,7 +6389,7 @@
Type:
Source:
@@ -6283,7 +6417,7 @@

Methods

-

(static) fromObject(object, callbackopt)

+

(static) fromObject(object, callbackopt)

@@ -6419,7 +6553,7 @@
Parameters:
Source:
@@ -6446,7 +6580,7 @@
Parameters:
-

_calcRotateMatrix() → {Array}

+

_calcRotateMatrix() → {Array}

@@ -6495,7 +6629,7 @@

_cal
Source:
@@ -6546,7 +6680,7 @@

Returns:
-

_limitCacheSize(dims) → {Object|Object|Object|Object}

+

_limitCacheSize(dims) → {Object|Object|Object|Object}

@@ -6765,7 +6899,7 @@
Properties
Source:
@@ -6866,6 +7000,84 @@
Returns:
+
+ + + + + +
+ + + +

_removeCacheCanvas()

+ + + +
+ Remove cacheCanvas and its dimensions from the objects +
+ + + + + + + + +
+ + + + + + +
Inherited From:
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +
@@ -6874,7 +7086,7 @@
Returns:
-

_renderControls(ctx, styleOverrideopt, childrenOverrideopt)

+

_renderControls(ctx, styleOverrideopt, childrenOverrideopt)

@@ -7048,7 +7260,7 @@
Parameters:
Source:
@@ -7075,7 +7287,7 @@
Parameters:
-

_setupCompositeOperation(ctx)

+

_setupCompositeOperation(ctx)

@@ -7174,7 +7386,7 @@
Parameters:
Source:
@@ -7203,7 +7415,7 @@
Parameters:
-

add(…object) → {Self}

+

add(…object) → {Self}

@@ -7327,7 +7539,7 @@
Parameters:
Source:
@@ -7378,7 +7590,7 @@
Returns:
-

addWithUpdate(object) → {fabric.Group}

+

addWithUpdate(object) → {fabric.Group}

@@ -7476,7 +7688,7 @@
Parameters:
Source:
@@ -7527,7 +7739,7 @@
Returns:
-

adjustPosition(to)

+

adjustPosition(to)

@@ -7621,7 +7833,7 @@
Parameters:
Source:
@@ -7650,7 +7862,7 @@
Parameters:
-

animate(property, value) → {fabric.Object}

+

animate(property, value) → {fabric.Object}

@@ -7777,7 +7989,7 @@
Parameters:
Source:
@@ -7835,7 +8047,7 @@
Returns:
-

bringForward(intersectingopt) → {fabric.Object}

+

bringForward(intersectingopt) → {fabric.Object}

@@ -7945,7 +8157,7 @@
Parameters:
Source:
@@ -7996,7 +8208,7 @@
Returns:
-

bringToFront() → {fabric.Object}

+

bringToFront() → {fabric.Object}

@@ -8045,7 +8257,7 @@

bringToFr
Source:
@@ -8096,7 +8308,7 @@

Returns:
-

calcCoords() → {Object}

+

calcCoords() → {Object}

@@ -8145,7 +8357,7 @@

calcCoords<
Source:
@@ -8196,7 +8408,7 @@

Returns:
-

calcTransformMatrix(skipGroupopt) → {Array}

+

calcTransformMatrix(skipGroupopt) → {Array}

@@ -8307,7 +8519,7 @@
Parameters:
Source:
@@ -8358,7 +8570,7 @@
Returns:
-

center() → {fabric.Object}

+

center() → {fabric.Object}

@@ -8408,7 +8620,7 @@

centerSource:
@@ -8459,7 +8671,7 @@
Returns:
-

centerH() → {fabric.Object}

+

centerH() → {fabric.Object}

@@ -8509,7 +8721,7 @@

centerHSource:
@@ -8560,7 +8772,7 @@
Returns:
-

centerV() → {fabric.Object}

+

centerV() → {fabric.Object}

@@ -8610,7 +8822,7 @@

centerVSource:
@@ -8661,7 +8873,7 @@
Returns:
-

clone(callback, propertiesToIncludeopt)

+

clone(callback, propertiesToIncludeopt)

@@ -8802,7 +9014,7 @@
Parameters:
Source:
@@ -8831,7 +9043,7 @@
Parameters:
-

cloneAsImage(callback, optionsopt) → {fabric.Object}

+

cloneAsImage(callback, optionsopt) → {fabric.Object}

@@ -9033,7 +9245,7 @@
Properties
Source:
@@ -9084,7 +9296,7 @@
Returns:
-

complexity() → {Number}

+

complexity() → {Number}

@@ -9141,7 +9353,7 @@

complexity<
Source:
@@ -9192,7 +9404,7 @@

Returns:
-

contains(object) → {Boolean}

+

contains(object) → {Boolean}

@@ -9298,7 +9510,7 @@
Parameters:
Source:
@@ -9349,7 +9561,7 @@
Returns:
-

containsPoint(point, linesopt, absoluteopt, calculateopt) → {Boolean}

+

containsPoint(point, linesopt, absoluteopt, calculateopt) → {Boolean}

@@ -9556,7 +9768,7 @@
Parameters:
Source:
@@ -9607,7 +9819,7 @@
Returns:
-

destroy() → {fabric.Group}

+

destroy() → {fabric.Group}

@@ -9656,7 +9868,7 @@

destroySource:
@@ -9707,7 +9919,7 @@
Returns:
-

drawBorders(ctx, styleOverride) → {fabric.Object}

+

drawBorders(ctx, styleOverride) → {fabric.Object}

@@ -9830,7 +10042,7 @@
Parameters:
Source:
@@ -9881,7 +10093,7 @@
Returns:
-

drawBordersInGroup(ctx, options, styleOverride) → {fabric.Object}

+

drawBordersInGroup(ctx, options, styleOverride) → {fabric.Object}

@@ -10027,7 +10239,7 @@
Parameters:
Source:
@@ -10078,7 +10290,7 @@
Returns:
-

drawCacheOnCanvas(ctx)

+

drawCacheOnCanvas(ctx)

@@ -10176,7 +10388,7 @@
Parameters:
Source:
@@ -10205,7 +10417,7 @@
Parameters:
-

drawControls(ctx, styleOverride) → {fabric.Object}

+

drawControls(ctx, styleOverride) → {fabric.Object}

@@ -10328,7 +10540,7 @@
Parameters:
Source:
@@ -10379,7 +10591,7 @@
Returns:
-

drawObject(ctx)

+

drawObject(ctx)

@@ -10477,7 +10689,7 @@
Parameters:
Source:
@@ -10506,7 +10718,7 @@
Parameters:
-

drawSelectionBackground(ctx) → {fabric.Object}

+

drawSelectionBackground(ctx) → {fabric.Object}

@@ -10607,7 +10819,7 @@
Parameters:
Source:
@@ -10658,7 +10870,7 @@
Returns:
-

forEachObject(callback, context) → {Self}

+

forEachObject(callback, context) → {Self}

@@ -10790,7 +11002,7 @@
Parameters:
Source:
@@ -10841,7 +11053,7 @@
Returns:
-

fxStraighten(callbacks) → {fabric.Object}

+

fxStraighten(callbacks) → {fabric.Object}

@@ -11033,7 +11245,7 @@
Properties
Source:
@@ -11084,7 +11296,7 @@
Returns:
-

getBoundingRect(absoluteopt, calculateopt) → {Object}

+

getBoundingRect(absoluteopt, calculateopt) → {Object}

@@ -11228,7 +11440,7 @@
Parameters:
Source:
@@ -11279,7 +11491,7 @@
Returns:
-

getCenterPoint() → {fabric.Point}

+

getCenterPoint() → {fabric.Point}

@@ -11328,7 +11540,7 @@

getCent
Source:
@@ -11375,7 +11587,7 @@

Returns:
-

getCoords()

+

getCoords()

@@ -11424,7 +11636,7 @@

getCoordsSource:
@@ -11453,7 +11665,7 @@

getCoordsgetLocalPointer(e, pointeropt) → {Object}

+

getLocalPointer(e, pointeropt) → {Object}

@@ -11594,7 +11806,7 @@
Parameters:
Source:
@@ -11645,7 +11857,7 @@
Returns:
-

getObjectOpacity() → {Number}

+

getObjectOpacity() → {Number}

@@ -11694,7 +11906,7 @@

getOb
Source:
@@ -11741,7 +11953,7 @@

Returns:
-

getObjects(typeopt) → {Array}

+

getObjects(typeopt) → {Array}

@@ -11860,7 +12072,7 @@
Parameters:
Source:
@@ -11907,7 +12119,7 @@
Returns:
-

getObjectScaling() → {Object}

+

getObjectScaling() → {Object}

@@ -11956,7 +12168,7 @@

getOb
Source:
@@ -12007,7 +12219,7 @@

Returns:
-

getPointByOrigin(originX, originY) → {fabric.Point}

+

getPointByOrigin(originX, originY) → {fabric.Point}

@@ -12128,7 +12340,7 @@
Parameters:
Source:
@@ -12175,7 +12387,7 @@
Returns:
-

getScaledHeight() → {Number}

+

getScaledHeight() → {Number}

@@ -12224,7 +12436,7 @@

getSca
Source:
@@ -12275,7 +12487,7 @@

Returns:
-

getScaledWidth() → {Number}

+

getScaledWidth() → {Number}

@@ -12324,7 +12536,7 @@

getScal
Source:
@@ -12375,7 +12587,7 @@

Returns:
-

getSvgFilter() → {String}

+

getSvgFilter() → {String}

@@ -12424,7 +12636,7 @@

getSvgFil
Source:
@@ -12471,7 +12683,7 @@

Returns:
-

getSvgId() → {String}

+

getSvgId() → {String}

@@ -12520,7 +12732,7 @@

getSvgIdSource:
@@ -12567,7 +12779,7 @@
Returns:
-

getSvgSpanStyles(style, useWhiteSpace) → {String}

+

getSvgSpanStyles(style, useWhiteSpace) → {String}

@@ -12688,7 +12900,7 @@
Parameters:
Source:
@@ -12735,7 +12947,7 @@
Returns:
-

getSvgStyles(skipShadow) → {String}

+

getSvgStyles(skipShadow) → {String}

@@ -12833,7 +13045,7 @@
Parameters:
Source:
@@ -12880,7 +13092,7 @@
Returns:
-

getSvgTransform() → {String}

+

getSvgTransform() → {String}

@@ -12929,7 +13141,7 @@

getSvg
Source:
@@ -12976,7 +13188,7 @@

Returns:
-

getSvgTransformMatrix() → {String}

+

getSvgTransformMatrix() → {String}

@@ -13025,7 +13237,7 @@

Source:
@@ -13072,7 +13284,7 @@

Returns:
-

getViewportTransform() → {Boolean}

+

getViewportTransform() → {Boolean}

@@ -13121,7 +13333,7 @@

g
Source:
@@ -13168,7 +13380,7 @@

Returns:
-

hasStateChanged(propertySetopt) → {Boolean}

+

hasStateChanged(propertySetopt) → {Boolean}

@@ -13278,7 +13490,7 @@
Parameters:
Source:
@@ -13327,7 +13539,7 @@
Returns:
-

initialize(objects, optionsopt) → {Object}

+

initialize(objects, optionsopt) → {Object}

@@ -13468,7 +13680,7 @@
Parameters:
Source:
@@ -13517,7 +13729,7 @@
Returns:
-

insertAt(object, index, nonSplicing) → {Self}

+

insertAt(object, index, nonSplicing) → {Self}

@@ -13673,7 +13885,7 @@
Parameters:
Source:
@@ -13724,7 +13936,7 @@
Returns:
-

intersectsWithObject(other, absoluteopt, calculateopt) → {Boolean}

+

intersectsWithObject(other, absoluteopt, calculateopt) → {Boolean}

@@ -13898,7 +14110,7 @@
Parameters:
Source:
@@ -13949,7 +14161,7 @@
Returns:
-

intersectsWithRect(pointTL, pointBR, absoluteopt, calculateopt) → {Boolean}

+

intersectsWithRect(pointTL, pointBR, absoluteopt, calculateopt) → {Boolean}

@@ -14154,7 +14366,7 @@
Parameters:
Source:
@@ -14205,7 +14417,7 @@
Returns:
-

isCacheDirty()

+

isCacheDirty()

@@ -14254,7 +14466,7 @@

isCacheDi
Source:
@@ -14283,7 +14495,7 @@

isCacheDi -

isContainedWithinObject(other, absoluteopt, calculateopt) → {Boolean}

+

isContainedWithinObject(other, absoluteopt, calculateopt) → {Boolean}

@@ -14457,7 +14669,7 @@
Parameters:
Source:
@@ -14508,7 +14720,7 @@
Returns:
-

isContainedWithinRect(pointTL, pointBR, absoluteopt, calculateopt) → {Boolean}

+

isContainedWithinRect(pointTL, pointBR, absoluteopt, calculateopt) → {Boolean}

@@ -14713,7 +14925,7 @@
Parameters:
Source:
@@ -14764,7 +14976,7 @@
Returns:
-

isControlVisible(controlName) → {Boolean}

+

isControlVisible(controlName) → {Boolean}

@@ -14862,7 +15074,7 @@
Parameters:
Source:
@@ -14913,7 +15125,7 @@
Returns:
-

isEmpty() → {Boolean}

+

isEmpty() → {Boolean}

@@ -14970,7 +15182,7 @@

isEmptySource:
@@ -15019,7 +15231,7 @@
Returns:
-

isOnACache() → {Boolean}

+

isOnACache() → {Boolean}

@@ -15068,7 +15280,7 @@

isOnACache<
Source:
@@ -15113,7 +15325,7 @@

Returns:
-

isOnScreen(calculateopt) → {Boolean}

+

isOnScreen(calculateopt) → {Boolean}

@@ -15224,7 +15436,7 @@
Parameters:
Source:
@@ -15275,7 +15487,7 @@
Returns:
-

isType(type) → {Boolean}

+

isType(type) → {Boolean}

@@ -15373,7 +15585,7 @@
Parameters:
Source:
@@ -15420,7 +15632,7 @@
Returns:
-

item(index) → {Self}

+

item(index) → {Self}

@@ -15526,7 +15738,7 @@
Parameters:
Source:
@@ -15577,7 +15789,7 @@
Returns:
-

moveTo(index) → {fabric.Object}

+

moveTo(index) → {fabric.Object}

@@ -15675,7 +15887,7 @@
Parameters:
Source:
@@ -15726,7 +15938,7 @@
Returns:
-

needsItsOwnCache()

+

needsItsOwnCache()

@@ -15779,7 +15991,7 @@

needs
Source:
@@ -15816,7 +16028,7 @@

Returns:
-

onDeselect() → {Boolean}

+

onDeselect() → {Boolean}

@@ -15868,7 +16080,7 @@

onDeselect<
Source:
@@ -15917,7 +16129,7 @@

Returns:
-

onSelect(optionsopt)

+

onSelect(optionsopt)

@@ -16089,7 +16301,7 @@
Properties
Source:
@@ -16118,7 +16330,7 @@
Properties
-

realizeTransform(object) → {fabric.Object}

+

realizeTransform(object) → {fabric.Object}

@@ -16219,7 +16431,7 @@
Parameters:
Source:
@@ -16270,7 +16482,7 @@
Returns:
-

remove(…object) → {Self}

+

remove(…object) → {Self}

@@ -16388,7 +16600,7 @@
Parameters:
Source:
@@ -16439,7 +16651,7 @@
Returns:
-

removeWithUpdate(object) → {fabric.Group}

+

removeWithUpdate(object) → {fabric.Group}

@@ -16537,7 +16749,7 @@
Parameters:
Source:
@@ -16588,7 +16800,7 @@
Returns:
-

render(ctx)

+

render(ctx)

@@ -16686,7 +16898,7 @@
Parameters:
Source:
@@ -16715,7 +16927,7 @@
Parameters:
-

rotate(angle) → {fabric.Object}

+

rotate(angle) → {fabric.Object}

@@ -16813,7 +17025,7 @@
Parameters:
Source:
@@ -16864,7 +17076,7 @@
Returns:
-

saveState(optionsopt) → {fabric.Object}

+

saveState(optionsopt) → {fabric.Object}

@@ -16974,7 +17186,7 @@
Parameters:
Source:
@@ -17025,7 +17237,7 @@
Returns:
-

scale(value) → {fabric.Object}

+

scale(value) → {fabric.Object}

@@ -17123,7 +17335,7 @@
Parameters:
Source:
@@ -17174,7 +17386,7 @@
Returns:
-

scaleToHeight(value, absolute) → {fabric.Object}

+

scaleToHeight(value, absolute) → {fabric.Object}

@@ -17295,7 +17507,7 @@
Parameters:
Source:
@@ -17346,7 +17558,7 @@
Returns:
-

scaleToWidth(value, absolute) → {fabric.Object}

+

scaleToWidth(value, absolute) → {fabric.Object}

@@ -17467,7 +17679,7 @@
Parameters:
Source:
@@ -17518,7 +17730,7 @@
Returns:
-

sendBackwards(intersectingopt) → {fabric.Object}

+

sendBackwards(intersectingopt) → {fabric.Object}

@@ -17628,7 +17840,7 @@
Parameters:
Source:
@@ -17679,7 +17891,7 @@
Returns:
-

sendToBack() → {fabric.Object}

+

sendToBack() → {fabric.Object}

@@ -17728,7 +17940,7 @@

sendToBack<
Source:
@@ -17779,7 +17991,7 @@

Returns:
-

setColor(color) → {fabric.Object}

+

setColor(color) → {fabric.Object}

@@ -17877,7 +18089,7 @@
Parameters:
Source:
@@ -17928,7 +18140,7 @@
Returns:
-

setControlsVisibility(optionsopt) → {fabric.Object}

+

setControlsVisibility(optionsopt) → {fabric.Object}

@@ -18363,7 +18575,7 @@
Properties
Source:
@@ -18414,7 +18626,7 @@
Returns:
-

setControlVisible(controlName, visible) → {fabric.Object}

+

setControlVisible(controlName, visible) → {fabric.Object}

@@ -18535,7 +18747,7 @@
Parameters:
Source:
@@ -18586,7 +18798,7 @@
Returns:
-

setCoords(ignoreZoomopt, skipAbsoluteopt) → {fabric.Object}

+

setCoords(ignoreZoomopt, skipAbsoluteopt) → {fabric.Object}

@@ -18730,7 +18942,7 @@
Parameters:
Source:
@@ -18781,7 +18993,7 @@
Returns:
-

setGradient(property, optionsopt) → {fabric.Object}

+

setGradient(property, optionsopt) → {fabric.Object}

@@ -19298,7 +19510,7 @@
Properties
Source:
@@ -19393,7 +19605,7 @@
Examples
-

setObjectsCoords() → {fabric.Group}

+

setObjectsCoords() → {fabric.Group}

@@ -19442,7 +19654,7 @@

setOb
Source:
@@ -19493,7 +19705,7 @@

Returns:
-

setOnGroup()

+

setOnGroup()

@@ -19545,7 +19757,7 @@

setOnGroup<
Source:
@@ -19574,7 +19786,7 @@

setOnGroup< -

setOptions(optionsopt)

+

setOptions(optionsopt)

@@ -19684,7 +19896,7 @@
Parameters:
Source:
@@ -19713,7 +19925,7 @@
Parameters:
-

setPatternFill(options) → {fabric.Object}

+

setPatternFill(options) → {fabric.Object}

@@ -19996,7 +20208,7 @@
Properties
Source:
@@ -20067,7 +20279,7 @@
Example
-

setPositionByOrigin(pos, originX, originY) → {void}

+

setPositionByOrigin(pos, originX, originY) → {void}

@@ -20211,7 +20423,7 @@
Parameters:
Source:
@@ -20258,7 +20470,7 @@
Returns:
-

setShadow(optionsopt) → {fabric.Object}

+

setShadow(optionsopt) → {fabric.Object}

@@ -20557,7 +20769,7 @@
Properties
Source:
@@ -20633,7 +20845,7 @@
Examples
-

setupState(optionsopt) → {fabric.Object}

+

setupState(optionsopt) → {fabric.Object}

@@ -20743,7 +20955,7 @@
Parameters:
Source:
@@ -20792,7 +21004,7 @@
Returns:
-

shouldCache() → {Boolean}

+

shouldCache() → {Boolean}

@@ -20845,7 +21057,7 @@

shouldCach
Source:
@@ -20890,7 +21102,7 @@

Returns:
-

size() → {Number}

+

size() → {Number}

@@ -20947,7 +21159,7 @@

sizeSource:
@@ -20998,7 +21210,7 @@
Returns:
-

straighten() → {fabric.Object}

+

straighten() → {fabric.Object}

@@ -21047,7 +21259,7 @@

straighten<
Source:
@@ -21098,7 +21310,7 @@

Returns:
-

toActiveSelection() → {fabric.ActiveSelection}

+

toActiveSelection() → {fabric.ActiveSelection}

@@ -21148,7 +21360,7 @@

toAc
Source:
@@ -21199,7 +21411,7 @@

Returns:
-

toDatalessObject(propertiesToIncludeopt) → {Object}

+

toDatalessObject(propertiesToIncludeopt) → {Object}

@@ -21309,7 +21521,7 @@
Parameters:
Source:
@@ -21360,7 +21572,7 @@
Returns:
-

toDataURL(options) → {String}

+

toDataURL(options) → {String}

@@ -21790,7 +22002,7 @@
Properties
Source:
@@ -21839,7 +22051,7 @@
Returns:
-

toGroup() → {fabric.Group}

+

toGroup() → {fabric.Group}

@@ -21888,7 +22100,7 @@

toGroupSource:
@@ -21933,7 +22145,7 @@
Returns:
-

toJSON(propertiesToIncludeopt) → {Object}

+

toJSON(propertiesToIncludeopt) → {Object}

@@ -22043,7 +22255,7 @@
Parameters:
Source:
@@ -22094,7 +22306,7 @@
Returns:
-

toLocalPoint(point, originX, originY) → {fabric.Point}

+

toLocalPoint(point, originX, originY) → {fabric.Point}

@@ -22238,7 +22450,7 @@
Parameters:
Source:
@@ -22285,7 +22497,7 @@
Returns:
-

toObject(propertiesToIncludeopt) → {Object}

+

toObject(propertiesToIncludeopt) → {Object}

@@ -22395,7 +22607,7 @@
Parameters:
Source:
@@ -22444,7 +22656,7 @@
Returns:
-

toString() → {String}

+

toString() → {String}

@@ -22493,7 +22705,7 @@

toStringSource:
@@ -22538,7 +22750,7 @@
Returns:
-

toSVG(reviveropt) → {String}

+

toSVG(reviveropt) → {String}

@@ -22648,7 +22860,7 @@
Parameters:
Source:
@@ -22699,7 +22911,7 @@
Returns:
-

transform(ctx, fromLeft)

+

transform(ctx)

@@ -22756,29 +22968,6 @@
Parameters:
- - - - fromLeft - - - - - -Boolean - - - - - - - - - - When true, context is transformed to object's top/left corner. This is used when rendering text on Node - - - @@ -22820,7 +23009,7 @@
Parameters:
Source:
@@ -22849,7 +23038,7 @@
Parameters:
-

translateToCenterPoint(point, originX, originY) → {fabric.Point}

+

translateToCenterPoint(point, originX, originY) → {fabric.Point}

@@ -22993,7 +23182,7 @@
Parameters:
Source:
@@ -23040,7 +23229,7 @@
Returns:
-

translateToGivenOrigin(point, fromOriginX, fromOriginY, toOriginX, toOriginY) → {fabric.Point}

+

translateToGivenOrigin(point, fromOriginX, fromOriginY, toOriginX, toOriginY) → {fabric.Point}

@@ -23230,7 +23419,7 @@
Parameters:
Source:
@@ -23277,7 +23466,7 @@
Returns:
-

translateToOriginPoint(center, originX, originY) → {fabric.Point}

+

translateToOriginPoint(center, originX, originY) → {fabric.Point}

@@ -23421,7 +23610,7 @@
Parameters:
Source:
@@ -23468,7 +23657,7 @@
Returns:
-

ungroupOnCanvas() → {fabric.Group}

+

ungroupOnCanvas() → {fabric.Group}

@@ -23517,7 +23706,7 @@

ungrou
Source:
@@ -23568,7 +23757,7 @@

Returns:
-

viewportCenter() → {fabric.Object}

+

viewportCenter() → {fabric.Object}

@@ -23618,7 +23807,7 @@

viewpor
Source:
@@ -23669,7 +23858,7 @@

Returns:
-

viewportCenterH() → {fabric.Object}

+

viewportCenterH() → {fabric.Object}

@@ -23719,7 +23908,7 @@

viewpo
Source:
@@ -23770,7 +23959,7 @@

Returns:
-

viewportCenterV() → {fabric.Object}

+

viewportCenterV() → {fabric.Object}

@@ -23820,7 +24009,7 @@

viewpo
Source:
@@ -23869,7 +24058,7 @@

Returns:
-

willDrawShadow() → {Boolean}

+

willDrawShadow() → {Boolean}

@@ -23918,7 +24107,7 @@

willDra
Source:
@@ -23988,10 +24177,10 @@

Returns:

-