Lines Matching refs:styleDeclaration

21088 … _renderCharDecoration: function(ctx, styleDeclaration, left, top, offset, charWidth, charHeight) {  argument
21090 var textDecoration = styleDeclaration
21091 ? (styleDeclaration.textDecoration || this.textDecoration)
21212 _getCacheProp: function(_char, styleDeclaration) { argument
21214 styleDeclaration.fontFamily +
21215 styleDeclaration.fontSize +
21216 styleDeclaration.fontWeight +
21217 styleDeclaration.fontStyle +
21218 styleDeclaration.shadow;
21230 var styleDeclaration = decl ||
21234 if (styleDeclaration) {
21236 styleDeclaration = clone(styleDeclaration);
21239 styleDeclaration = { };
21242 this._applyFontStyles(styleDeclaration);
21244 var cacheProp = this._getCacheProp(_char, styleDeclaration);
21251 if (typeof styleDeclaration.shadow === 'string') {
21252 styleDeclaration.shadow = new fabric.Shadow(styleDeclaration.shadow);
21255 var fill = styleDeclaration.fill || this.fill;
21260 if (styleDeclaration.stroke) {
21261 ctx.strokeStyle = (styleDeclaration.stroke && styleDeclaration.stroke.toLive)
21262 ? styleDeclaration.stroke.toLive(ctx, this)
21263 : styleDeclaration.stroke;
21266 ctx.lineWidth = styleDeclaration.strokeWidth || this.strokeWidth;
21267 ctx.font = this._getFontDeclaration.call(styleDeclaration);
21268 this._setShadow.call(styleDeclaration, ctx);
21285 _applyFontStyles: function(styleDeclaration) { argument
21286 if (!styleDeclaration.fontFamily) {
21287 styleDeclaration.fontFamily = this.fontFamily;
21289 if (!styleDeclaration.fontSize) {
21290 styleDeclaration.fontSize = this.fontSize;
21292 if (!styleDeclaration.fontWeight) {
21293 styleDeclaration.fontWeight = this.fontWeight;
21295 if (!styleDeclaration.fontStyle) {
21296 styleDeclaration.fontStyle = this.fontStyle;
21320 var styleDeclaration = this._getStyleDeclaration(lineIndex, charIndex);
21321 this._applyFontStyles(styleDeclaration);
21322 var cacheProp = this._getCacheProp(_char, styleDeclaration);