Lines Matching refs:styles

1869   function setStyle(element, styles) {  argument
1874 if (typeof styles === 'string') {
1875 element.style.cssText += ';' + styles;
1876 return styles.indexOf('opacity') > -1
1877 ? setOpacity(element, styles.match(/opacity:\s*(\d?\.?\d*)/)[1])
1880 for (var property in styles) {
1882 setOpacity(element, styles[property]);
1888 elementStyle[normalizedProperty] = styles[property];
3116 var styles = { };
3120 styles[property] = fabric.cssRules[svgUid][rule][property];
3124 return styles;
3658 var styles = doc.getElementsByTagName('style'),
3662 for (var i = 0, len = styles.length; i < len; i++) {
3663 var styleContents = styles[i].textContent;
20524 styles: null,
20572 this.styles = options ? (options.styles || { }) : { };
20590 if (!this.styles) {
20593 var obj = this.styles;
20643 var styles = [ ];
20645 styles.push(this.getSelectionStyles(i));
20647 return styles;
20651 if (this.styles[loc.lineIndex]) {
20652 return this.styles[loc.lineIndex][loc.charIndex] || { };
20664 setSelectionStyles: function(styles) { argument
20666 this._extendStyles(this.selectionStart, styles);
20670 this._extendStyles(i, styles);
20681 _extendStyles: function(index, styles) { argument
20684 if (!this.styles[loc.lineIndex]) {
20685 this.styles[loc.lineIndex] = { };
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);
20761 …var style = this.styles[lineIndex] && this.styles[lineIndex][charIndex === 0 ? 0 : (charIndex - 1)…
20784 this.styles[lineIndex] &&
20785 this.styles[lineIndex][charIndex === 0 ? 0 : (charIndex - 1)] &&
20786 this.styles[lineIndex][charIndex === 0 ? 0 : (charIndex - 1)].fontSize) || this.fontSize;
20797 this.styles[lineIndex] &&
20798 this.styles[lineIndex][charIndex === 0 ? 0 : (charIndex - 1)] &&
20799 this.styles[lineIndex][charIndex === 0 ? 0 : (charIndex - 1)].fill) || this.cursorColor;
21031 if (this.styles && this.styles[lineIndex] && (decl = this.styles[lineIndex][i])) {
21154 if (!this.textBackgroundColor && !this.styles) {
21187 if (this.styles[i]) {
21189 if (this.styles[i] && this.styles[i][j] && this.styles[i][j].textBackgroundColor) {
21193 ctx.fillStyle = this.styles[i][j].textBackgroundColor;
21231 (this.styles[lineIndex] &&
21232 this.styles[lineIndex][charIndex]);
21306 return (this.styles[lineIndex] && this.styles[lineIndex][charIndex])
21307 ? clone(this.styles[lineIndex][charIndex])
21340 if (this.styles[lineIndex] && this.styles[lineIndex][charIndex]) {
21341 return this.styles[lineIndex][charIndex].fontSize || this.fontSize;
21483 styles: clone(this.styles)
21996 for (var prop in this.styles) {
21998 delete this.styles[prop];
22069 if (!this.styles[lineIndex + 1]) {
22070 this.styles[lineIndex + 1] = { };
22073 var currentCharStyle = this.styles[lineIndex][charIndex - 1],
22080 this.styles[lineIndex + 1] = newLineStyles;
22085 for (var index in this.styles[lineIndex]) {
22087 newLineStyles[parseInt(index, 10) - charIndex] = this.styles[lineIndex][index];
22089 delete this.styles[lineIndex][index];
22092 this.styles[lineIndex + 1] = newLineStyles;
22105 var currentLineStyles = this.styles[lineIndex],
22122 this.styles[lineIndex][charIndex] =
22140 if (!this.styles[lineIndex]) {
22141 this.styles[lineIndex] = { };
22161 _insertStyles: function(styles) { argument
22162 for (var i = 0, len = styles.length; i < len; i++) {
22168 this.insertCharStyleObject(lineIndex, charIndex, styles[i]);
22179 var clonedStyles = clone(this.styles);
22180 for (var line in this.styles) {
22183 this.styles[numericLine + offset] = clonedStyles[numericLine];
22206 if (!this.styles[lineIndex - 1]) {
22207 this.styles[lineIndex - 1] = { };
22210 for (charIndex in this.styles[lineIndex]) {
22211 this.styles[lineIndex - 1][parseInt(charIndex, 10) + newCharIndexOnPrevLine]
22212 = this.styles[lineIndex][charIndex];
22218 var currentLineStyles = this.styles[lineIndex];
23150 if (!this.styles[lineIndex]) {
23172 var styleDecl = this.styles[lineIndex][i] || { };