Lines Matching +refs:text +refs:line
25 Raphael.fn.line = function(x1, y1, x2, y2) { function
84 cleanText: function(text) { argument
85 text = _.invoke(text.split('\n'), 'trim');
86 return text.join('\n');
92 textBBox: function(text, font) { argument
93 text = this.cleanText(text);
97 p = this.paper_.print(0, 0, text, font.obj_, font['font-size']);
99 p = this.paper_.text(0, 0, text);
110 var line = this.paper_.line(x1, y1, x2, y2).attr(LINE);
112 line.attr('arrow-end', this.arrowTypes_[arrowhead] + '-wide-long');
115 line.attr('stroke-dasharray', this.lineTypes_[linetype]);
117 return line;
131 drawText: function(x, y, text, font, align) { argument
132 text = this.cleanText(text);
137 var bb = this.textBBox(text, font);
147 t = paper.print(x - bb.x, y - bb.y, text, font.obj_, font['font-size']);
149 t = paper.text(x - bb.x - bb.width / 2, y - bb.y, text);
177 var line = this.paper_.path(handLine(x1, y1, x2, y2)).attr(LINE);
179 line.attr('arrow-end', this.arrowTypes_[arrowhead] + '-wide-long');
182 line.attr('stroke-dasharray', this.lineTypes_[linetype]);
184 return line;