better jsdocs

This commit is contained in:
Andrea Bogazzi 2018-08-19 08:40:24 +02:00
parent 79f8f9f019
commit 56fefbdb0d
2 changed files with 7 additions and 2 deletions

View file

@ -441,7 +441,9 @@
includeDefaultValues: true,
/**
* Function that determines clipping of an object (context is passed as a first argument)
* Function that determines clipping of an object (context is passed as a first argument).
* If you are using code minification, ctx argument can be minified/manglied you should use
* as a workaround `var ctx = arguments[0];` in the function;
* Note that context origin is at the object's center point (not left/top corner)
* @deprecated since 2.0.0
* @type Function

View file

@ -112,7 +112,10 @@
/**
* Function that determines clipping of entire canvas area
* Being passed context as first argument. See clipping canvas area in {@link https://github.com/kangax/fabric.js/wiki/FAQ}
* Being passed context as first argument.
* If you are using code minification, ctx argument can be minified/manglied you should use
* as a workaround `var ctx = arguments[0];` in the function;
* See clipping canvas area in {@link https://github.com/kangax/fabric.js/wiki/FAQ}
* @deprecated since 2.0.0
* @type Function
* @default