Lines Matching +refs:R +refs:e
56 var e = events,
131 e = events,
140 es = [e],
145 e = es[j].n;
146 items = [e[names[i]], e[wildcard]];
191 e = events;
193 e = e.n;
194 e = e.hasOwnProperty(names[i]) && e[names[i]] || (e[names[i]] = {n: {}});
196 e.f = e.f || [];
197 for (i = 0, ii = e.f.length; i < ii; i++) if (e.f[i] == f) {
200 e.f.push(f);
294 e, variable
302 e = cur[j].n;
304 if (e[names[i]]) {
305 splice.push(e[names[i]]);
308 for (key in e) if (e[has](key)) {
309 splice.push(e[key]);
316 e = cur[i];
317 while (e.n) {
319 if (e.f) {
320 for (j = 0, jj = e.f.length; j < jj; j++) if (e.f[j] == f) {
321 e.f.splice(j, 1);
324 !e.f.length && delete e.f;
326 for (key in e.n) if (e.n[has](key) && e.n[key].f) {
327 var funcs = e.n[key].f;
332 !funcs.length && delete e.n[key].f;
335 delete e.f;
336 for (key in e.n) if (e.n[has](key) && e.n[key].f) {
337 delete e.n[key].f;
340 e = e.n;
451 function R(first) { class
452 if (R.is(first, "function")) {
454 } else if (R.is(first, array)) {
455 return R._engine.create[apply](R, first.splice(0, 3 + R.is(first[0], nu))).add(first);
458 if (R.is(args[args.length - 1], "function")) {
460 … return loaded ? f.call(R._engine.create[apply](R, args)) : eve.on("raphael.DOMload", function () {
461 f.call(R._engine.create[apply](R, args));
464 return R._engine.create[apply](R, arguments);
468 R.version = "2.1.0";
469 R.eve = eve;
549 ISURL = R._ISURL = /^url\(['"]?([^\)]+?)['"]?\)$/i,
558 availableAttrs = R._availableAttrs = {
598 availableAnimAttrs = R._availableAnimAttrs = {
627 …radial_gradient = R._radial_gradient = /^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u…
639 rectPath = R._rectPath = function (x, y, w, h, r) {
651 getPath = R._getPath = {
690 mapPath = R.mapPath = function (path, matrix) {
708 R._g = g;
715 …R.type = (g.win.SVGAngle || g.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Ba…
716 if (R.type == "VML") {
723 return (R.type = E);
739 R.svg = !(R.vml = R.type == "VML");
740 R._Paper = Paper;
767 R.fn = paperproto = Paper.prototype = R.prototype;
768 R._id = 0;
769 R._oid = 0;
780 R.is = function (o, type) {
820 R.angle = function (x1, y1, x2, y2, x3, y3) {
829 return R.angle(x1, y1, x3, y3) - R.angle(x2, y2, x3, y3);
841 R.rad = function (deg) {
853 R.deg = function (rad) {
867 R.snapTo = function (values, value, tolerance) {
868 tolerance = R.is(tolerance, "finite") ? tolerance : 10;
869 if (R.is(values, array)) {
893 var createUUID = R.createUUID = (function (uuidRegEx, uuidReplacer) {
911 R.setWindow = function (newwin) {
912 eve("raphael.setWindow", R, g.win, newwin);
915 if (R._engine.initWin) {
916 R._engine.initWin(g.win);
920 if (R.vml) {
929 } catch(e) {
939 } catch(e) {
965 if (g == null && R.is(r, "object") && "r" in r && "g" in r && "b" in r) {
970 if (g == null && R.is(r, string)) {
971 var clr = R.getRGB(r);
992 hex: R.rgb(r, g, b),
995 R.is(o, "finite") && (rgb.opacity = o);
1019 R.color = function (clr) {
1021 if (R.is(clr, "object") && "h" in clr && "s" in clr && "b" in clr) {
1022 rgb = R.hsb2rgb(clr);
1027 } else if (R.is(clr, "object") && "h" in clr && "s" in clr && "l" in clr) {
1028 rgb = R.hsl2rgb(clr);
1034 if (R.is(clr, "string")) {
1035 clr = R.getRGB(clr);
1037 if (R.is(clr, "object") && "r" in clr && "g" in clr && "b" in clr) {
1038 rgb = R.rgb2hsl(clr);
1042 rgb = R.rgb2hsb(clr);
1069 R.hsb2rgb = function (h, s, v, o) {
1077 var R, G, B, X, C;
1081 R = G = B = v - C;
1084 R += [C, X, 0, 0, X, C][h];
1087 return packageRGB(R, G, B, o);
1106 R.hsl2rgb = function (h, s, l, o) {
1118 var R, G, B, X, C;
1122 R = G = B = l - C / 2;
1125 R += [C, X, 0, 0, X, C][h];
1128 return packageRGB(R, G, B, o);
1146 R.rgb2hsb = function (r, g, b) {
1180 R.rgb2hsl = function (r, g, b) {
1201 R._path2string = function () {
1227 var preload = R._preload = function (src, f) {
1273 R.getRGB = cacher(function (colour) {
1322 return R.hsb2rgb(red, green, blue, opacity);
1335 return R.hsl2rgb(red, green, blue, opacity);
1339 R.is(opacity, "finite") && (rgb.opacity = opacity);
1343 }, R);
1355 R.hsb = cacher(function (h, s, b) {
1356 return R.hsb2rgb(h, s, b).hex;
1369 R.hsl = cacher(function (h, s, l) {
1370 return R.hsl2rgb(h, s, l).hex;
1383 R.rgb = cacher(function (r, g, b) {
1395 R.getColor = function (value) {
1412 R.getColor.reset = function () {
1465 R.parsePathString = function (pathString) {
1476 if (R.is(pathString, array) && R.is(pathString[0], array)) { // rough assumption
1501 data.toString = R._path2string;
1516 R.parseTransformString = cacher(function (TString) {
1522 if (R.is(TString, array) && R.is(TString[0], array)) { // rough assumption
1535 data.toString = R._path2string;
1596 R.findDotsAtSegment = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t) {
1654 R.bezierBBox = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y) {
1655 if (!R.is(p1x, "array")) {
1681 R.isPointInsideBBox = function (bbox, x, y) {
1696 R.isBBoxIntersect = function (bbox1, bbox2) {
1697 var i = R.isPointInsideBBox;
1741 e = .01;
1743 while (abs(l - ll) > e) {
1791 var bbox1 = R.bezierBBox(bez1),
1792 bbox2 = R.bezierBBox(bez2);
1793 if (!R.isBBoxIntersect(bbox1, bbox2)) {
1805 var p = R.findDotsAtSegment.apply(R, bez1.concat(i / n1));
1809 p = R.findDotsAtSegment.apply(R, bez2.concat(i / n2));
1869 R.pathIntersection = function (path1, path2) {
1872 R.pathIntersectionNumber = function (path1, path2) {
1876 path1 = R._path2curve(path1);
1877 path2 = R._path2curve(path2);
1941 R.isPointInsidePath = function (path, x, y) {
1942 var bbox = R.pathBBox(path);
1943 return R.isPointInsideBBox(bbox, x, y) &&
1946 R._removedFactory = function (methodname) {
1972 var pathDimensions = R.pathBBox = function (path) {
2022 res.toString = R._path2string;
2025 pathToRelative = R._pathToRelative = function (pathArray) {
2030 … if (!R.is(pathArray, array) || !R.is(pathArray && pathArray[0], array)) { // rough assumption
2031 pathArray = R.parsePathString(pathArray);
2100 res.toString = R._path2string;
2104 pathToAbsolute = R._pathToAbsolute = function (pathArray) {
2109 … if (!R.is(pathArray, array) || !R.is(pathArray && pathArray[0], array)) { // rough assumption
2110 pathArray = R.parsePathString(pathArray);
2197 res.toString = R._path2string;
2355 path2curve = R._path2curve = cacher(function (path, path2) {
2466 parseDots = R._parseDots = cacher(function (gradient) {
2471 dot.color = R.getRGB(par[1]);
2503 tear = R._tear = function (el, paper) {
2509 tofront = R._tofront = function (el, paper) {
2519 toback = R._toback = function (el, paper) {
2529 insertafter = R._insertafter = function (el, el2, paper) {
2537 insertbefore = R._insertbefore = function (el, el2, paper) {
2557 toMatrix = R.toMatrix = function (path, transform) {
2582 transformPath = R.transformPath = function (path, transform) {
2585 extractTransform = R._extractTransform = function (el, tstr) {
2590 var tdata = R.parseTransformString(tstr),
2672 _.dx = dx = m.e;
2701 equaliseTransform = R._equaliseTransform = function (t1, t2) {
2703 t1 = R.parseTransformString(t1) || [];
2704 t2 = R.parseTransformString(t2) || [];
2731 R._getContainer = function (x, y, w, h) {
2733 container = h == null && !R.is(x, "object") ? g.doc.getElementById(x) : x;
2771 R.pathToRelative = pathToRelative;
2772 R._engine = {};
2784 R.path2curve = path2curve;
2801 R.matrix = function (a, b, c, d, e, f) { argument
2802 return new Matrix(a, b, c, d, e, f);
2804 function Matrix(a, b, c, d, e, f) { argument
2810 this.e = +e;
2817 this.e = 0;
2837 matrixproto.add = function (a, b, c, d, e, f) { argument
2839 m = [[this.a, this.c, this.e], [this.b, this.d, this.f], [0, 0, 1]],
2840 matrix = [[a, c, e], [b, d, f], [0, 0, 1]],
2844 matrix = [[a.a, a.c, a.e], [a.b, a.d, a.f], [0, 0, 1]];
2860 this.e = out[0][2];
2873 …e.d / x, -me.b / x, -me.c / x, me.a / x, (me.c * me.f - me.d * me.e) / x, (me.b * me.e - me.a * me…
2883 return new Matrix(this.a, this.b, this.c, this.d, this.e, this.f);
2925 a = R.rad(a);
2944 return x * this.a + y * this.c + this.e;
2963 return R.svg ?
2973 return [this.e.toFixed(4), this.f.toFixed(4)];
3000 out.dx = this.e;
3019 out.rotate = R.deg(math.acos(cos));
3024 out.rotate = R.deg(math.asin(sin));
3086 getEventPosition = function (e) { argument
3091 x: e.clientX + scrollX,
3092 y: e.clientY + scrollY
3098 var f = function (e) { argument
3099 var pos = getEventPosition(e);
3100 return fn.call(element, e, pos.x, pos.y);
3105 var _f = function (e) { argument
3106 var pos = getEventPosition(e),
3107 olde = e;
3109 … for (var i = 0, ii = e.targetTouches && e.targetTouches.length; i < ii; i++) {
3110 if (e.targetTouches[i].target == obj) {
3111 e = e.targetTouches[i];
3112 e.originalEvent = olde;
3113 e.preventDefault = preventTouch;
3114 e.stopPropagation = stopTouch;
3119 return fn.call(element, e, pos.x, pos.y);
3135 var f = function (e) { argument
3136 e = e || g.win.event;
3139 x = e.clientX + scrollX,
3140 y = e.clientY + scrollY;
3141 e.preventDefault = e.preventDefault || preventDefault;
3142 e.stopPropagation = e.stopPropagation || stopPropagation;
3143 return fn.call(element, e, x, y);
3155 dragMove = function (e) { argument
3156 var x = e.clientX,
3157 y = e.clientY,
3164 if (supportsTouch && e.touches) {
3165 var i = e.touches.length,
3168 touch = e.touches[i];
3172 (e.originalEvent ? e.originalEvent : e).preventDefault();
3177 e.preventDefault();
3192 … + dragi.el.id, dragi.move_scope || dragi.el, x - dragi.el._drag.x, y - dragi.el._drag.y, x, y, e);
3195 dragUp = function (e) { argument
3196 R.unmousemove(dragMove).unmouseup(dragUp);
3202 …drag.end." + dragi.el.id, dragi.end_scope || dragi.start_scope || dragi.move_scope || dragi.el, e);
3220 elproto = R.el = {};
3431 R[eventName] = elproto[eventName] = function (fn, scope) {
3432 if (R.is(fn, "function")) {
3438 R["un" + eventName] = elproto["un" + eventName] = function (fn) {
3442 … if (events[l].name == eventName && (R.is(fn, "undefined") || events[l].f == fn)) {
3484 if (R.is(key, "object")) {
3585 function start(e) { argument
3586 (e.originalEvent || e).preventDefault();
3587 var x = e.clientX,
3588 y = e.clientY,
3591 this._drag.id = e.identifier;
3592 if (supportsTouch && e.touches) {
3593 var i = e.touches.length, touch;
3595 touch = e.touches[i];
3606 !drag.length && R.mousemove(dragMove).mouseup(dragUp);
3611 ….start." + this.id, start_scope || move_scope || this, e.clientX + scrollX, e.clientY + scrollY, e…
3642 !draggable.length && R.unmousemove(dragMove).unmouseup(dragUp);
3662 var out = R._engine.circle(this, x || 0, y || 0, r || 0);
3688 var out = R._engine.rect(this, x || 0, y || 0, w || 0, h || 0, r || 0);
3710 var out = R._engine.ellipse(this, x || 0, y || 0, rx || 0, ry || 0);
3747 pathString && !R.is(pathString, string) && !R.is(pathString[0], array) && (pathString += E);
3748 var out = R._engine.path(R.format[apply](R, arguments), this);
3771 var out = R._engine.image(this, src || "about:blank", x || 0, y || 0, w || 0, h || 0);
3792 var out = R._engine.text(this, x || 0, y || 0, Str(text));
3814 …!R.is(itemsArray, "array") && (itemsArray = Array.prototype.splice.call(arguments, 0, arguments.le…
3863 return R._engine.setSize.call(this, width, height);
3881 return R._engine.setViewBox.call(this, x, y, w, h, fit);
3902 paperproto.raphael = R;
3970 if (R.isBBoxIntersect(el.getBBox(), bbox)) {
4068 rp = R.transformPath(rp, this.attr('transform'));
4070 return R.isPointInsidePath(rp, x, y);
4187 …return R.findDotsAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, getTatLen(p1x, p1y, c1x, c1y, c…
4226 …point = istotal ? len : subpath ? subpaths : R.findDotsAtSegment(x, y, p[0], p[1], p[2], p[3], p[4…
4246 R.getTotalLength = getTotalLength;
4265 R.getPointAtLength = getPointAtLength;
4280 R.getSubpath = function (path, from, to) {
4341 getPath = R._getPath[this.type];
4372 return R.getSubpath(path, from, to);
4391 var ef = R.easing_formulas = {
4468 var e = animationElements[l];
4469 if (e.el.removed || e.paused) {
4472 var time = Now - e.start,
4473 ms = e.ms,
4474 easing = e.easing,
4475 from = e.from,
4476 diff = e.diff,
4477 to = e.to,
4478 t = e.t,
4479 that = e.el,
4484 if (e.initstatus) {
4485 time = (e.initstatus * e.anim.top - e.prev) / (e.percent - e.prev) * ms;
4486 e.status = e.initstatus;
4487 delete e.initstatus;
4488 e.stop && animationElements.splice(l--, 1);
4490 e.status = (e.prev + (e.percent - e.prev) * (time / ms)) / e.anim.top;
4562 })(that.id, that, e.anim);
4568 R.is(f, "function") && f.call(el);
4570 })(e.callback, that, e.anim);
4573 if (e.repeat > 1 && !e.next) {
4575 init[key] = e.totalOrigin[key];
4577 e.el.attr(init);
4578 … runAnimation(e.anim, e.el, e.anim.percents[0], null, e.totalOrigin, e.repeat - 1);
4580 if (e.next && !e.stop) {
4581 runAnimation(e.anim, e.el, e.next, null, e.totalOrigin, e.repeat);
4585 R.svg && that && that.paper && that.paper.safari();
4618 var a = params instanceof Animation ? params : R.animation(params, ms, easing, callback),
4760 var e = animationElements[i];
4761 if (e.el.id == element.id && e.anim == anim) {
4762 if (e.percent != percent) {
4766 isInAnim = e;
4768 element.attr(e.totalOrigin);
4801 from[attr] = R.getRGB(from[attr]);
4802 var toColour = R.getRGB(to[attr]);
4848 m.e,
4858 (to2.matrix.e - m.e) / ms,
4899 easyeasy = R.easing_formulas[easing];
4912 e = { variable
4933 animationElements.push(e);
4935 e.stop = true;
4936 e.start = new Date - ms * status;
4942 e.start = new Date - e.ms * status;
4967 R.animation = function (params, ms, easing, callback) {
4971 if (R.is(easing, "function") || !easing) {
5015 var anim = params instanceof Animation ? params : R.animation(params, ms, easing, callback);
5066 e;
5073 e = animationElements[i]; property
5074 if (e.el.id == this.id && (!anim || e.anim == anim)) {
5076 return e.status;
5079 anim: e.anim,
5080 status: e.status
5124 var e = animationElements[i];
5125 if (eve("raphael.anim.resume." + this.id, this, e.anim) !== false) {
5126 delete e.paused;
5127 this.status(e.anim, e.status);
5242 if (name && R.is(name, array) && R.is(name[0], "object")) {
5321 (R.is(easing, "function") || !easing) && (callback = easing || null);
5333 easing = R.is(easing, string) ? easing : collector;
5334 var anim = R.animation(params, ms, easing, collector);
5438 R.registerFont = function (font) {
5497 if (!R.fonts) {
5500 var font = R.fonts[family];
5503 for (var fontName in R.fonts) if (R.fonts[has](fontName)) {
5505 font = R.fonts[fontName];
5551 R.is(font, "string") && (font = this.getFont(font));
5572 …path += R.transformPath(curr.d, ["t", shift * scale, shifty * scale, "s", scale, scale, top, heigh…
5611 if (R.is(json, "array")) {
5643 R.format = function (token, params) {
5644 var args = R.is(params, array) ? [0][concat](params) : arguments;
5645 …token && R.is(token, string) && args.length - 1 && (token = token.replace(formatrg, function (str,…
5673 R.fullfill = (function () {
5710 R.ninja = function () {
5712 return R;
5734 R.st = setproto;
5745 (/in/).test(doc.readyState) ? setTimeout(isLoaded, 9) : R.eve("raphael.DOMload");
5765 if (!R.svg) {
5777 eve = R.eve,
5789 R.toString = function () {
5805 el = R._g.doc.createElementNS("http://www.w3.org/2000/svg", el);
5817 el = R._g.doc.getElementById(id);
5819 gradient = Str(gradient).replace(R._radial_gradient, function (all, _fx, _fy) {
5839 var vector = [0, 0, math.cos(R.rad(angle)), math.sin(R.rad(angle))],
5852 var dots = R._parseDots(gradient);
5964 if (!R._g.doc.getElementById(pathId)) {
5974 var marker = R._g.doc.getElementById(markerId),
6001 to = R.getTotalLength(attrs.path) - delta * stroke;
6004 to = R.getTotalLength(attrs.path) - (o._.arrows.enddx * stroke || 0);
6009 attr.d = R.getSubpath(attrs.path, from, to);
6020 to = R.getTotalLength(attrs.path) - from;
6023 to = R.getTotalLength(attrs.path) - (o._.arrows.enddx * stroke || 0);
6025 o._.arrows[se + "Path"] && $(node, {d: R.getSubpath(attrs.path, from, to)});
6033 var item = R._g.doc.getElementById(attr);
6072 if (!R._availableAttrs[has](att)) {
6084 var val = R._g.doc.createTextNode(value);
6120 el.id = R.createUUID();
6135 … var clip = R._g.doc.getElementById(path.replace(/(^url\(#|\)$)/g, E));
6144 $(node, {d: value ? attrs.path = R._pathToAbsolute(value) : "M0,0"});
6229 var isURL = Str(value).match(R._ISURL);
6233 el.id = R.createUUID();
6239 R._preload(isURL[1], function () {
6253 var clr = R.getRGB(value);
6257 !R.is(attrs.opacity, "undefined") &&
6258 R.is(params.opacity, "undefined") &&
6260 !R.is(attrs["fill-opacity"], "undefined") &&
6261 R.is(params["fill-opacity"], "undefined") &&
6265 … var gradient = R._g.doc.getElementById(node.getAttribute("fill").replace(/^url\(#|\)$/g, E));
6277 clr = R.getRGB(value);
6295 … gradient = R._g.doc.getElementById(node.getAttribute("fill").replace(/^url\(#|\)$/g, E));
6325 …fontSize = node.firstChild ? toInt(R._g.doc.defaultView.getComputedStyle(node.firstChild, E).getPr…
6338 tspan.appendChild(R._g.doc.createTextNode(texts[i]));
6354 dif && R.is(dif, "finite") && $(tspans[0], {dy: dif});
6394 this.id = R._oid++;
6396 this.matrix = R.matrix();
6439 elproto = R.el;
6444 R._engine.path = function (pathString, SVG) {
6591 R._extractTransform(this, tstr);
6642 R._tear(this, paper);
6649 this[i] = typeof this[i] == "function" ? R._removedFactory(i) : null;
6661 } catch(e) {
6763 if (value == null && R.is(name, "string")) {
6776 } else if (R.is(this.paper.customAttributes[name], "function")) {
6779 out[name] = R._availableAttrs[name];
6784 if (value == null && R.is(name, "array")) {
6794 } else if (name != null && R.is(name, "object")) {
6800 …ttributes) if (this.paper.customAttributes[has](key) && params[has](key) && R.is(this.paper.custom…
6827 svg.top != this && R._tofront(this, svg);
6847 R._toback(this, this.paper);
6868 R._insertafter(this, element, this.paper);
6884 R._insertbefore(this, element, this.paper);
6894 fltr.id = R.createUUID();
6910 R._engine.circle = function (svg, x, y, r) {
6919 R._engine.rect = function (svg, x, y, w, h, r) {
6928 R._engine.ellipse = function (svg, x, y, rx, ry) {
6937 R._engine.image = function (svg, src, x, y, w, h) {
6947 R._engine.text = function (svg, x, y, text) {
6956 font: R._availableAttrs.font,
6964 R._engine.setSize = function (width, height) {
6974 R._engine.create = function () {
6975 var con = R._getContainer.apply(0, arguments),
6999 R._g.doc.body.appendChild(cnvs);
7009 container = new R._Paper;
7019 R._engine.setViewBox = function (x, y, w, h, fit) {
7060 R.prototype.renderfix = function () {
7066 } catch (e) {
7069 var left = -pos.e % 1,
7088 R.prototype.clear = function () {
7089 R.eve("raphael.clear", this);
7095 …(this.desc = $("desc")).appendChild(R._g.doc.createTextNode("Created with Rapha\xebl " + R.version…
7105 R.prototype.remove = function () {
7109 this[i] = typeof this[i] == "function" ? R._removedFactory(i) : null;
7112 var setproto = R.st;
7136 if (!R.vml) {
7149 eve = R.eve,
7163 command = R._pathToAbsolute;
7164 Str(path).match(total) && (command = R._path2curve);
7166 if (command == R._pathToAbsolute && !Str(path).match(total)) {
7196 var m = R.matrix();
7244 R.toString = function () {
7291 a.path = R._getPath[o.type](o);
7300 …node.path = path2vml(~Str(a.path).toLowerCase().indexOf("r") ? R._pathToAbsolute(a.path) : a.path);
7313 …node.path = R.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x", round((cx - rx) * zoom), round((cy - ry…
7321 var div = node.clipRect || R._g.doc.createElement("div"),
7323 dstyle.clip = R.format("rect({1}px {2}px {3}px {0}px)", rect);
7377 var isURL = Str(params.fill).match(R._ISURL);
7387 R._preload(isURL[1], function () {
7391 fill.color = R.getRGB(params.fill).hex;
7394 …if (R.getRGB(params.fill).error && (res.type in {circle: 1, ellipse: 1} || Str(params.fill).charAt…
7402 …ty = ((+a["fill-opacity"] + 1 || 2) - 1) * ((+a.opacity + 1 || 2) - 1) * ((+R.getRGB(params.fill).…
7423 var strokeColor = R.getRGB(params.stroke);
7473 …("x" in params || "y" in params) && (res.path.v = R.format("m{0},{1}l{2},{1}", round(a.x * zoom), …
7508 gradient = Str(gradient).replace(R._radial_gradient, function (all, fx, fy) {
7526 var dots = R._parseDots(gradient);
7560 this.id = R._oid++;
7566 this.matrix = R.matrix();
7583 var elproto = R.el;
7597 R._extractTransform(this, vbt + tstr);
7718 R.eve.unbind("raphael.*.*." + this.id);
7719 R._tear(this, this.paper);
7723 this[i] = typeof this[i] == "function" ? R._removedFactory(i) : null;
7740 if (value == null && R.is(name, "string")) {
7750 } else if (R.is(this.paper.customAttributes[name], "function")) {
7753 out[name] = R._availableAttrs[name];
7758 if (this.attrs && value == null && R.is(name, "array")) {
7770 value == null && R.is(name, "object") && (params = name);
7775 …ttributes) if (this.paper.customAttributes[has](key) && params[has](key) && R.is(this.paper.custom…
7793 this.paper && this.paper.top != this && R._tofront(this, this.paper);
7802 R._toback(this, this.paper);
7810 if (element.constructor == R.st.constructor) {
7818 R._insertafter(this, element, this.paper);
7825 if (element.constructor == R.st.constructor) {
7829 R._insertbefore(this, element, this.paper);
7839 s.margin = R.format("-{0}px 0 0 -{0}px", round(+size || 1.5));
7848 R._engine.path = function (pathString, vml) {
7868 R._engine.rect = function (vml, x, y, w, h, r) {
7869 var path = R._rectPath(x, y, w, h, r),
7881 R._engine.ellipse = function (vml, x, y, rx, ry) {
7897 R._engine.circle = function (vml, x, y, r) {
7911 R._engine.image = function (vml, src, x, y, w, h) {
7912 var path = R._rectPath(x, y, w, h),
7934 R._engine.text = function (vml, x, y, text) {
7941 … path.v = R.format("m{0},{1}l{2},{1}", round(x * zoom), round(y * zoom), round(x * zoom) + 1);
7952 font: R._availableAttrs.font,
7975 R._engine.setSize = function (width, height) {
7985 R._engine.setViewBox.apply(this, this._viewBox);
7989 R._engine.setViewBox = function (x, y, w, h, fit) {
7990 R.eve("raphael.setViewBox", this, this._viewBox, [x, y, w, h, fit]);
8017 R._engine.initWin = function (win) {
8025 } catch (e) {
8031 R._engine.initWin(R._g.win);
8032 R._engine.create = function () {
8033 var con = R._getContainer.apply(0, arguments),
8043 var res = new R._Paper,
8044 c = res.canvas = R._g.doc.createElement("div"),
8056 res.span = R._g.doc.createElement("span");
8059 …cs.cssText = R.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;cl…
8061 R._g.doc.body.appendChild(c);
8075 R.prototype.clear = function () {
8076 R.eve("raphael.clear", this);
8078 this.span = R._g.doc.createElement("span");
8083 R.prototype.remove = function () {
8084 R.eve("raphael.remove", this);
8087 this[i] = typeof this[i] == "function" ? R._removedFactory(i) : null;
8092 var setproto = R.st;
8108 oldRaphael.was ? (g.win.Raphael = R) : (Raphael = R);
8110 return R;