Lines Matching refs:R

1 define(["./raphael.core"], function(R) {  argument
2 if (R && !R.vml) {
16 eve = R.eve,
30 command = R._pathToAbsolute;
31 Str(path).match(total) && (command = R._path2curve);
33 if (command == R._pathToAbsolute && !Str(path).match(total)) {
63 var m = R.matrix();
111 R.toString = function () {
158 a.path = R._getPath[o.type](o);
167 …node.path = path2vml(~Str(a.path).toLowerCase().indexOf("r") ? R._pathToAbsolute(a.path) : a.path);
181 …node.path = R.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x", round((cx - rx) * zoom), round((cy - ry…
189 var div = node.clipRect || R._g.doc.createElement("div"),
191 dstyle.clip = R.format("rect({1}px {2}px {3}px {0}px)", rect);
244 var isURL = Str(params.fill).match(R._ISURL);
254 R._preload(isURL[1], function () {
258 fill.color = R.getRGB(params.fill).hex;
261 …if (R.getRGB(params.fill).error && (res.type in {circle: 1, ellipse: 1} || Str(params.fill).charAt…
269 …ty = ((+a["fill-opacity"] + 1 || 2) - 1) * ((+a.opacity + 1 || 2) - 1) * ((+R.getRGB(params.fill).…
290 var strokeColor = R.getRGB(params.stroke);
340 …("x" in params || "y" in params) && (res.path.v = R.format("m{0},{1}l{2},{1}", round(a.x * zoom), …
375 gradient = Str(gradient).replace(R._radial_gradient, function (all, fx, fy) {
393 var dots = R._parseDots(gradient);
427 this.id = R._oid++;
433 this.matrix = R.matrix();
450 var elproto = R.el;
464 R._extractTransform(this, vbt + tstr);
495 R._extractTransform(this, oldt);
573 elproto.auxGetBBox = R.el.getBBox;
608 R.eve.unbind("raphael.*.*." + this.id);
609 R._tear(this, this.paper);
613 this[i] = typeof this[i] == "function" ? R._removedFactory(i) : null;
630 if (value == null && R.is(name, "string")) {
640 } else if (R.is(this.paper.customAttributes[name], "function")) {
643 out[name] = R._availableAttrs[name];
648 if (this.attrs && value == null && R.is(name, "array")) {
660 value == null && R.is(name, "object") && (params = name);
665 …ttributes) if (this.paper.customAttributes[has](key) && params[has](key) && R.is(this.paper.custom…
683 this.paper && this.paper.top != this && R._tofront(this, this.paper);
692 R._toback(this, this.paper);
700 if (element.constructor == R.st.constructor) {
708 R._insertafter(this, element, this.paper);
715 if (element.constructor == R.st.constructor) {
719 R._insertbefore(this, element, this.paper);
729 s.margin = R.format("-{0}px 0 0 -{0}px", round(+size || 1.5));
738 R._engine.path = function (pathString, vml) {
758 R._engine.rect = function (vml, x, y, w, h, r) {
759 var path = R._rectPath(x, y, w, h, r),
771 R._engine.ellipse = function (vml, x, y, rx, ry) {
787 R._engine.circle = function (vml, x, y, r) {
801 R._engine.image = function (vml, src, x, y, w, h) {
802 var path = R._rectPath(x, y, w, h),
824 R._engine.text = function (vml, x, y, text) {
831 … path.v = R.format("m{0},{1}l{2},{1}", round(x * zoom), round(y * zoom), round(x * zoom) + 1);
842 font: R._availableAttrs.font,
865 R._engine.setSize = function (width, height) {
875 R._engine.setViewBox.apply(this, this._viewBox);
879 R._engine.setViewBox = function (x, y, w, h, fit) {
880 R.eve("raphael.setViewBox", this, this._viewBox, [x, y, w, h, fit]);
907 R._engine.initWin = function (win) {
927 R._engine.initWin(R._g.win);
928 R._engine.create = function () {
929 var con = R._getContainer.apply(0, arguments),
939 var res = new R._Paper,
940 c = res.canvas = R._g.doc.createElement("div"),
952 res.span = R._g.doc.createElement("span");
955 …cs.cssText = R.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;cl…
957 R._g.doc.body.appendChild(c);
971 R.prototype.clear = function () {
972 R.eve("raphael.clear", this);
974 this.span = R._g.doc.createElement("span");
979 R.prototype.remove = function () {
980 R.eve("raphael.remove", this);
983 this[i] = typeof this[i] == "function" ? R._removedFactory(i) : null;
988 var setproto = R.st;