IText doc fixes

This commit is contained in:
kangax 2013-10-30 14:55:02 +01:00
parent 1f4d400ba1
commit 8ad5e7e511
7 changed files with 1827 additions and 1818 deletions

View file

@ -231,8 +231,8 @@ var filesToInclude = [
ifSpecifiedInclude('text', 'src/shapes/text.class.js'),
ifSpecifiedInclude('cufon', 'src/shapes/text.cufon.js'),
ifSpecifiedInclude('itext', 'src/mixins/itext_behavior.mixin.js'),
ifSpecifiedInclude('itext', 'src/shapes/itext.class.js'),
ifSpecifiedInclude('itext', 'src/mixins/itext_behavior.mixin.js'),
ifSpecifiedInclude('node', 'src/node.js'),

1811
dist/all.js vendored

File diff suppressed because it is too large Load diff

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.

1811
dist/all.require.js vendored

File diff suppressed because it is too large Load diff

View file

@ -2,7 +2,7 @@
var clone = fabric.util.object.clone;
fabric.ITextBehavior = { /** @lends fabric.IText.prototype */
fabric.util.object.extend(fabric.IText.prototype, /** @lends fabric.IText.prototype */ {
/**
* Initializes all the interactive behavior of IText
@ -1162,5 +1162,7 @@
insertNewline: function() {
this.insertChar('\n');
}
};
});
})();

View file

@ -3,16 +3,16 @@
var clone = fabric.util.object.clone;
/**
* IText class
* IText class (introduced in <b>v1.4</b>)
* @class fabric.IText
* @extends fabric.Text
* @mixes fabric.Observable
* @fires #text:changed
* @fires text:changed
* @return {fabric.IText} thisArg
* @see {@link fabric.IText#initialize} for constructor definition
*
* Supported key combinations:
*
* <p>Supported key combinations:</p>
* <pre>
* Move cursor: left, right, up, down
* Select character: shift + left, shift + right
* Select text vertically: shift + up, shift + down
@ -26,8 +26,9 @@
* Delete word: alt + backspace
* Delete line: cmd + backspace
* Forward delete: delete
* </pre>
*/
fabric.IText = fabric.util.createClass(fabric.Text, fabric.Observable, fabric.ITextBehavior, {
fabric.IText = fabric.util.createClass(fabric.Text, fabric.Observable, /** @lends fabric.IText.prototype */ {
/**
* Type of an object