Lines Matching refs:canvas

700 		var rc = rough.canvas(
808 function RoughCanvas(canvas, rc, shape) argument
810 this.canvas = canvas;
815 this.canvas.setLineJoin('round');
816 this.canvas.setLineCap('round');
818 this.originalBegin = this.canvas.begin;
819 this.canvas.begin = mxUtils.bind(this, RoughCanvas.prototype.begin);
821 this.originalEnd = this.canvas.end;
822 this.canvas.end = mxUtils.bind(this, RoughCanvas.prototype.end);
824 this.originalRect = this.canvas.rect;
825 this.canvas.rect = mxUtils.bind(this, RoughCanvas.prototype.rect);
827 this.originalRoundrect = this.canvas.roundrect;
828 this.canvas.roundrect = mxUtils.bind(this, RoughCanvas.prototype.roundrect);
830 this.originalEllipse = this.canvas.ellipse;
831 this.canvas.ellipse = mxUtils.bind(this, RoughCanvas.prototype.ellipse);
833 this.originalLineTo = this.canvas.lineTo;
834 this.canvas.lineTo = mxUtils.bind(this, RoughCanvas.prototype.lineTo);
836 this.originalMoveTo = this.canvas.moveTo;
837 this.canvas.moveTo = mxUtils.bind(this, RoughCanvas.prototype.moveTo);
839 this.originalQuadTo = this.canvas.quadTo;
840 this.canvas.quadTo = mxUtils.bind(this, RoughCanvas.prototype.quadTo);
842 this.originalCurveTo = this.canvas.curveTo;
843 this.canvas.curveTo = mxUtils.bind(this, RoughCanvas.prototype.curveTo);
845 this.originalArcTo = this.canvas.arcTo;
846 this.canvas.arcTo = mxUtils.bind(this, RoughCanvas.prototype.arcTo);
848 this.originalClose = this.canvas.close;
849 this.canvas.close = mxUtils.bind(this, RoughCanvas.prototype.close);
851 this.originalFill = this.canvas.fill;
852 this.canvas.fill = mxUtils.bind(this, RoughCanvas.prototype.fill);
854 this.originalStroke = this.canvas.stroke;
855 this.canvas.stroke = mxUtils.bind(this, RoughCanvas.prototype.stroke);
857 this.originalFillAndStroke = this.canvas.fillAndStroke;
858 this.canvas.fillAndStroke = mxUtils.bind(this, RoughCanvas.prototype.fillAndStroke);
888 var style = {strokeWidth: this.canvas.state.strokeWidth, seed: seed, preserveVertices: true};
893 …style.stroke = this.canvas.state.strokeColor === 'none' ? 'transparent' : this.canvas.state.stroke…
905 style.fill = this.canvas.state.fillColor === 'none' ? '' : this.canvas.state.fillColor;
906 gradient = this.canvas.state.gradientColor === 'none' ? null : this.canvas.state.gradientColor;
951 this.originalBegin.apply(this.canvas, arguments);
963 this.originalEnd.apply(this.canvas, arguments);
979 var s = this.canvas.state;
986 this.path.push(this.canvas.format((this.lastX)));
987 this.path.push(this.canvas.format((this.lastY)));
997 this.originalLineTo.apply(this.canvas, arguments);
1011 this.originalMoveTo.apply(this.canvas, arguments);
1027 this.originalClose.apply(this.canvas, arguments);
1039 this.originalQuadTo.apply(this.canvas, arguments);
1053 this.originalCurveTo.apply(this.canvas, arguments);
1067 this.originalArcTo.apply(this.canvas, arguments);
1091 this.originalRect.apply(this.canvas, arguments);
1104 this.originalEllipse.apply(this.canvas, arguments);
1117 this.originalRoundrect.apply(this.canvas, arguments);
1176 this.originalStroke.apply(this.canvas, arguments);
1188 this.originalFill.apply(this.canvas, arguments);
1200 this.originalFillAndStroke.apply(this.canvas, arguments);
1210 this.canvas.lineTo = this.originalLineTo;
1211 this.canvas.moveTo = this.originalMoveTo;
1212 this.canvas.close = this.originalClose;
1213 this.canvas.quadTo = this.originalQuadTo;
1214 this.canvas.curveTo = this.originalCurveTo;
1215 this.canvas.arcTo = this.originalArcTo;
1216 this.canvas.close = this.originalClose;
1217 this.canvas.fill = this.originalFill;
1218 this.canvas.stroke = this.originalStroke;
1219 this.canvas.fillAndStroke = this.originalFillAndStroke;
1220 this.canvas.begin = this.originalBegin;
1221 this.canvas.end = this.originalEnd;
1222 this.canvas.rect = this.originalRect;
1223 this.canvas.ellipse = this.originalEllipse;
1224 this.canvas.roundrect = this.originalRoundrect;
2739 var canvas = document.createElement('canvas');
2740 var ctx = canvas.getContext('2d');
2741 canvas.height = img.height;
2742 canvas.width = img.width;
2745 callback(canvas.toDataURL());
3405 var canvas = document.createElement('canvas');
3419 canvas.setAttribute('width', w);
3420 canvas.setAttribute('height', h);
3421 var ctx = canvas.getContext('2d');
3444 callback(canvas, svgRoot);
3450 callback(canvas, svgRoot);
7788 mxMarker.createMarker = function(canvas, shape, type, pe, unitX, unitY, size, source, sw, filled) argument
8594 var canvas = document.createElement('canvas'); variable
8602 var ctx = canvas.getContext('2d');
8606 var result = canvas.toDataURL('image/png');