Lines Matching refs:state

115 	if ((this.state.fontStyle & mxConstants.FONT_BOLD) == mxConstants.FONT_BOLD)
120 if ((this.state.fontStyle & mxConstants.FONT_ITALIC) == mxConstants.FONT_ITALIC)
125 this.ctx.font = style + this.state.fontSize + 'px ' + this.state.fontFamily;
130 this.states.push(this.state);
131 this.state = mxUtils.clone(this.state);
137 this.state = this.states.pop();
143 this.state.scale *= s;
144 this.state.strokeWidth *= s;
150 this.state.dx += dx;
151 this.state.dy += dy;
159 cx -= this.state.dx;
160 cy -= this.state.dy;
178 this.state.alpha = alpha;
194 this.state.fillColor = value;
195 this.state.gradientColor = null;
203 var s = this.state;
234 this.state.strokeColor = null;
240 this.state.strokeColor = value;
251 this.state.dashed = value;
255 var dashArray = this.state.dashPattern.split(" ");
291 this.state.dashPattern = value;
293 if (this.state.dashed)
333 this.state.fontBackgroundColor = value;
343 this.state.fontBorderColor = value;
348 this.state.fontSize = value;
353 this.state.fontFamily = value;
358 this.state.fontStyle = value;
368 this.state.shadow = enabled;
372 this.setShadowOffset(this.state.shadowDx, this.state.shadowDy);
373 this.setShadowAlpha(this.state.shadowAlpha);
397 this.state.shadowColor = value;
399 if (this.state.shadow && value != null)
401 var alpha = (this.state.shadowAlpha != null) ? this.state.shadowAlpha : 1;
415 this.state.shadowAlpha = value;
416 this.setShadowColor(this.state.shadowColor);
427 this.state.shadowDx = dx;
428 this.state.shadowDy = dy;
430 if (this.state.shadow)
527 var scale = this.state.scale;
556 var s = this.state.scale;
608 if (!this.state.shadow)
641 var sc = this.state.scale;
680 if (this.state.fontBackgroundColor != null || this.state.fontBorderColor != null)
683 if (this.state.fontBackgroundColor != null)
685 this.ctx.fillStyle = this.state.fontBackgroundColor;
688 if (this.state.fontBorderColor != null)
690 this.ctx.strokeStyle = this.state.fontBorderColor;
716 div.style.fontFamily = this.state.fontFamily;
718 div.style.fontSize = this.state.fontSize + 'pt';
734 backgroundY = y - this.state.fontSize / 2;
739 backgroundY = y - this.state.fontSize;
762 if (this.state.fontBackgroundColor != null || this.state.fontBorderColor != null)
778 if (this.state.fontBackgroundColor != null)
780 this.ctx.fillStyle = this.state.fontBackgroundColor;
781 …this.ctx.fillRect(startMostX, backgroundY, maxWidth, this.state.fontSize * mxConstants.LINE_HEIGHT…
783 if (this.state.fontBorderColor != null)
785 this.ctx.strokeStyle = this.state.fontBorderColor;
787 …this.ctx.strokeRect(startMostX, backgroundY, maxWidth, this.state.fontSize * mxConstants.LINE_HEIG…
796 y += this.state.fontSize * mxConstants.LINE_HEIGHT;