Lines Matching refs:charIndex

20652         return this.styles[loc.lineIndex][loc.charIndex] || { };
20687 if (!this.styles[loc.lineIndex][loc.charIndex]) {
20688 this.styles[loc.lineIndex][loc.charIndex] = { };
20690 fabric.util.object.extend(this.styles[loc.lineIndex][loc.charIndex], styles);
20750 charIndex: linesBeforeCursor[linesBeforeCursor.length - 1].length
20760 getCurrentCharStyle: function(lineIndex, charIndex) { argument
20761 …var style = this.styles[lineIndex] && this.styles[lineIndex][charIndex === 0 ? 0 : (charIndex - 1)…
20782 getCurrentCharFontSize: function(lineIndex, charIndex) { argument
20785 this.styles[lineIndex][charIndex === 0 ? 0 : (charIndex - 1)] &&
20786 this.styles[lineIndex][charIndex === 0 ? 0 : (charIndex - 1)].fontSize) || this.fontSize;
20795 getCurrentCharColor: function(lineIndex, charIndex) { argument
20798 this.styles[lineIndex][charIndex === 0 ? 0 : (charIndex - 1)] &&
20799 this.styles[lineIndex][charIndex === 0 ? 0 : (charIndex - 1)].fill) || this.cursorColor;
20835 charIndex = 0,
20845 charIndex = 0;
20848 leftOffset += this._getWidthOfChar(this.ctx, chars[i], lineIndex, charIndex);
20849 charIndex++;
20856 - this.getCurrentCharFontSize(lineIndex, charIndex) * (1 - this._fontSizeFraction);
20885 charIndex = cursorLocation.charIndex,
20886 charHeight = this.getCurrentCharFontSize(lineIndex, charIndex),
20887 leftOffset = (lineIndex === 0 && charIndex === 0)
20891 ctx.fillStyle = this.getCurrentCharColor(lineIndex, charIndex);
20924 if (j >= start.charIndex && (i !== endLine || j < end.charIndex)) {
20927 if (j < start.charIndex) {
20936 for (var j2 = 0, j2len = end.charIndex; j2 < j2len; j2++) {
21229 _applyCharStylesGetWidth: function(ctx, _char, lineIndex, charIndex, decl) { argument
21232 this.styles[lineIndex][charIndex]);
21305 _getStyleDeclaration: function(lineIndex, charIndex) { argument
21306 return (this.styles[lineIndex] && this.styles[lineIndex][charIndex])
21307 ? clone(this.styles[lineIndex][charIndex])
21315 _getWidthOfChar: function(ctx, _char, lineIndex, charIndex) { argument
21320 var styleDeclaration = this._getStyleDeclaration(lineIndex, charIndex);
21329 var width = this._applyCharStylesGetWidth(ctx, _char, lineIndex, charIndex);
21339 _getHeightOfChar: function(ctx, _char, lineIndex, charIndex) { argument
21340 if (this.styles[lineIndex] && this.styles[lineIndex][charIndex]) {
21341 return this.styles[lineIndex][charIndex].fontSize || this.fontSize;
21350 _getHeightOfCharAt: function(ctx, lineIndex, charIndex) { argument
21351 var _char = this._textLines[lineIndex][charIndex];
21352 return this._getHeightOfChar(ctx, _char, lineIndex, charIndex);
21359 _getWidthOfCharsAt: function(ctx, lineIndex, charIndex) { argument
21361 for (i = 0; i < charIndex; i++) {
21407 for (var charIndex = 0; charIndex < line.length; charIndex++) {
21408 var _char = line[charIndex];
21411 width += this._getWidthOfChar(ctx, _char, lineIndex, charIndex);
22011 var prevIndex = this.get2DCursorLocation(i).charIndex;
22014 var index = this.get2DCursorLocation(i).charIndex,
22021 this.removeStyleObject(this.get2DCursorLocation(i).charIndex === 0, i);
22065 insertNewlineStyleObject: function(lineIndex, charIndex, isEndOfLine) { argument
22073 var currentCharStyle = this.styles[lineIndex][charIndex - 1],
22086 if (parseInt(index, 10) >= charIndex) {
22087 newLineStyles[parseInt(index, 10) - charIndex] = this.styles[lineIndex][index];
22103 insertCharStyleObject: function(lineIndex, charIndex, style) { argument
22108 if (charIndex === 0 && !style) {
22109 charIndex = 1;
22116 if (numericIndex >= charIndex) {
22122 this.styles[lineIndex][charIndex] =
22123 style || clone(currentLineStyles[charIndex - 1]);
22138 charIndex = cursorLocation.charIndex;
22145 this.insertNewlineStyleObject(lineIndex, charIndex, isEndOfLine);
22153 this.insertCharStyleObject(lineIndex, charIndex);
22166 charIndex = cursorLocation.charIndex;
22168 this.insertCharStyleObject(lineIndex, charIndex, styles[i]);
22197 charIndex = cursorLocation.charIndex;
22210 for (charIndex in this.styles[lineIndex]) {
22211 this.styles[lineIndex - 1][parseInt(charIndex, 10) + newCharIndexOnPrevLine]
22212 = this.styles[lineIndex][charIndex];
22222 delete currentLineStyles[charIndex + offset];
22231 if (numericIndex >= charIndex && numericIndex !== 0) {
22434 charIndex = 0,
22461 charIndex++;
22466 mouseOffset, prevWidth, width, charIndex + i, jlen);
22471 mouseOffset, prevWidth, width, charIndex + i, jlen);