Skip to content

Commit

Permalink
Fixes for VML missing methods
Browse files Browse the repository at this point in the history
Split issues
  • Loading branch information
DmitryBaranovskiy committed Aug 4, 2011
1 parent 68cabfa commit d8f7740
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion raphael-min.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions raphael.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,6 @@
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/
Expand Down Expand Up @@ -2122,7 +2121,6 @@
paperproto.safari = fun;
}

// Events
var preventDefault = function () {
this.returnValue = false;
},
Expand Down
11 changes: 5 additions & 6 deletions raphael.js
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,6 @@
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/
Expand Down Expand Up @@ -1820,7 +1819,6 @@
paperproto.safari = fun;
}

// Events
var preventDefault = function () {
this.returnValue = false;
},
Expand Down Expand Up @@ -3091,6 +3089,7 @@
return "Rapha\xebl\u2018s set";
};


R.registerFont = function (font) {
if (!font.face) {
return font;
Expand Down Expand Up @@ -3130,6 +3129,7 @@
}
return font;
};

paperproto.getFont = function (family, weight, style, stretch) {
stretch = stretch || "normal";
style = style || "normal";
Expand Down Expand Up @@ -3158,6 +3158,7 @@
}
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);
Expand Down Expand Up @@ -3270,7 +3271,6 @@ window.Raphael.svg && function (R) {
eve = R.eve,
E = "",
S = " ";
// SVG
var xlink = "http://www.w3.org/1999/xlink",
markers = {
block: "M5,0 0,2.5 5,5z",
Expand Down Expand Up @@ -3808,7 +3808,6 @@ window.Raphael.svg && function (R) {

tuneText(o, params);
node.style.visibility = vis;
console.log("new");
},
leading = 1.2,
tuneText = function (el, params) {
Expand Down Expand Up @@ -4988,7 +4987,7 @@ window.Raphael.vml && function (R) {
};
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 () {
Expand All @@ -4997,7 +4996,7 @@ window.Raphael.vml && function (R) {
}
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;
};
Expand Down
4 changes: 2 additions & 2 deletions raphael.vml.js
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ window.Raphael.vml && function (R) {
};
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 () {
Expand All @@ -665,7 +665,7 @@ window.Raphael.vml && function (R) {
}
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;
};
Expand Down

0 comments on commit d8f7740

Please sign in to comment.