initWin(g.win);
}
};
- // colour utilities
var toHex = function (color) {
if (R.vml) {
// http://dean.edwards.name/weblog/2009/10/convert-any-colour-value-to-hex-in-msie/
paperproto.safari = fun;
}
- // Events
var preventDefault = function () {
this.returnValue = false;
},
return "Rapha\xebl\u2018s set";
};
+
R.registerFont = function (font) {
if (!font.face) {
return font;
}
return font;
};
+
paperproto.getFont = function (family, weight, style, stretch) {
stretch = stretch || "normal";
style = style || "normal";
}
return thefont;
};
+
paperproto.print = function (x, y, string, font, size, origin, letter_spacing) {
origin = origin || "middle"; // baseline|middle
letter_spacing = mmax(mmin(letter_spacing || 0, 1), -1);
eve = R.eve,
E = "",
S = " ";
- // SVG
var xlink = "http://www.w3.org/1999/xlink",
markers = {
block: "M5,0 0,2.5 5,5z",
tuneText(o, params);
node.style.visibility = vis;
- console.log("new");
},
leading = 1.2,
tuneText = function (el, params) {
};
elproto.toFront = function () {
!this.removed && this.node.parentNode.appendChild(this.node);
- this.paper && this.paper.top != this && tofront(this, this.paper);
+ this.paper && this.paper.top != this && R._tofront(this, this.paper);
return this;
};
elproto.toBack = function () {
}
if (this.node.parentNode.firstChild != this.node) {
this.node.parentNode.insertBefore(this.node, this.node.parentNode.firstChild);
- toback(this, this.paper);
+ R._toback(this, this.paper);
}
return this;
};