Commit 7ba1a825 by Dmitry Baranovskiy

2.1.0. Look history.md for list of changes

parent 2b0c5a21
2.0.2 * 2012-02-08
2.1.0 • 2012-03-14
------------------
* Put all Eve events into “raphael.” namespace
* Refactored path caching
* Added x2 and y2 to returning bounding box values
* Fixed bug with matrix.f in animation
* Method [Paper.print](http://raphaeljs.com/reference.html#Paper.print) now returns all letters as one path without any transformations applied and supports multiline text
* New methods
* [Element.isPointInside](http://raphaeljs.com/reference.html#Element.isPointInside)
* [Paper.getElementsByPoint](http://raphaeljs.com/reference.html#Paper.getElementsByPoint)
* [Raphael.bezierBBox](http://raphaeljs.com/reference.html#Raphael.bezierBBox)
* [Raphael.isBBoxIntersect](http://raphaeljs.com/reference.html#Raphael.isBBoxIntersect)
* [Raphael.isPointInsideBBox](http://raphaeljs.com/reference.html#Raphael.isPointInsideBBox)
* [Raphael.isPointInsidePath](http://raphaeljs.com/reference.html#Raphael.isPointInsidePath)
* [Raphael.pathBBox](http://raphaeljs.com/reference.html#Raphael.pathBBox)
* [Raphael.pathIntersection](http://raphaeljs.com/reference.html#Raphael.pathIntersection)
* [Raphael.toMatrix](http://raphaeljs.com/reference.html#Raphael.toMatrix)
* [Raphael.transformPath](http://raphaeljs.com/reference.html#Raphael.transformPath)
2.0.2 • 2012-02-08
------------------
* Removing of linked element now removes `<a>` as well
......@@ -10,7 +30,7 @@
* Fixed bug with changing fill from image to solid colour
* fixed renderfix method
2.0.1 * 2011-11-18
2.0.1 2011-11-18
------------------
* Global variables leakage fix
......@@ -25,7 +45,7 @@
* Fix for `clip-path`
* Doc update
2.0.0 * 2011-10-03
2.0.0 2011-10-03
------------------
* Completely changed transformation handling:
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -695,6 +695,7 @@ window.Raphael.svg && function (R) {
* Element.rotate
[ method ]
**
* Deprecated! Use @Element.transform instead.
* Adds rotation by given angle around given point to the list of
* transformations of the element.
> Parameters
......@@ -727,6 +728,7 @@ window.Raphael.svg && function (R) {
* Element.scale
[ method ]
**
* Deprecated! Use @Element.transform instead.
* Adds scale by given amount relative to given point to the list of
* transformations of the element.
> Parameters
......@@ -762,6 +764,7 @@ window.Raphael.svg && function (R) {
* Element.translate
[ method ]
**
* Deprecated! Use @Element.transform instead.
* Adds translation by given amount to the list of transformations of the element.
> Parameters
- dx (number) horisontal shift
......@@ -865,12 +868,12 @@ window.Raphael.svg && function (R) {
* Removes element form the paper.
\*/
elproto.remove = function () {
if (this.removed) {
if (this.removed || !this.node.parentNode) {
return;
}
var paper = this.paper;
paper.__set__ && paper.__set__.exclude(this);
eve.unbind("*.*." + this.id);
eve.unbind("raphael.*.*." + this.id);
if (this.gradient) {
paper.defs.removeChild(this.gradient);
}
......@@ -1030,7 +1033,7 @@ window.Raphael.svg && function (R) {
params = name;
}
for (var key in params) {
eve("attr." + key + "." + this.id, this, params[key]);
eve("raphael.attr." + key + "." + this.id, this, params[key]);
}
for (key in this.paper.customAttributes) if (this.paper.customAttributes[has](key) && params[has](key) && R.is(this.paper.customAttributes[key], "function")) {
var par = this.paper.customAttributes[key].apply(this, [].concat(params[key]));
......@@ -1251,7 +1254,7 @@ window.Raphael.svg && function (R) {
return container;
};
R._engine.setViewBox = function (x, y, w, h, fit) {
eve("setViewBox", this, this._viewBox, [x, y, w, h, fit]);
eve("raphael.setViewBox", this, this._viewBox, [x, y, w, h, fit]);
var size = mmax(w / this.width, h / this.height),
top = this.top,
aspectRatio = fit ? "meet" : "xMinYMin",
......@@ -1320,7 +1323,7 @@ window.Raphael.svg && function (R) {
* Clears the paper, i.e. removes all the elements.
\*/
R.prototype.clear = function () {
R.eve("clear", this);
R.eve("raphael.clear", this);
var c = this.canvas;
while (c.firstChild) {
c.removeChild(c.firstChild);
......@@ -1337,7 +1340,7 @@ window.Raphael.svg && function (R) {
* Removes the paper from the DOM.
\*/
R.prototype.remove = function () {
eve("remove", this);
eve("raphael.remove", this);
this.canvas.parentNode && this.canvas.parentNode.removeChild(this.canvas);
for (var i in this) {
this[i] = typeof this[i] == "function" ? R._removedFactory(i) : null;
......
......@@ -582,11 +582,11 @@ window.Raphael.vml && function (R) {
};
};
elproto.remove = function () {
if (this.removed) {
if (this.removed || !this.node.parentNode) {
return;
}
this.paper.__set__ && this.paper.__set__.exclude(this);
R.eve.unbind("*.*." + this.id);
R.eve.unbind("raphael.*.*." + this.id);
R._tear(this, this.paper);
this.node.parentNode.removeChild(this.node);
this.shape && this.shape.parentNode.removeChild(this.shape);
......@@ -640,7 +640,7 @@ window.Raphael.vml && function (R) {
}
value == null && R.is(name, "object") && (params = name);
for (var key in params) {
eve("attr." + key + "." + this.id, this, params[key]);
eve("raphael.attr." + key + "." + this.id, this, params[key]);
}
if (params) {
for (key in this.paper.customAttributes) if (this.paper.customAttributes[has](key) && params[has](key) && R.is(this.paper.customAttributes[key], "function")) {
......@@ -857,7 +857,7 @@ window.Raphael.vml && function (R) {
return this;
};
R._engine.setViewBox = function (x, y, w, h, fit) {
R.eve("setViewBox", this, this._viewBox, [x, y, w, h, fit]);
R.eve("raphael.setViewBox", this, this._viewBox, [x, y, w, h, fit]);
var width = this.width,
height = this.height,
size = 1 / mmax(w / width, h / height),
......@@ -939,12 +939,11 @@ window.Raphael.vml && function (R) {
container.appendChild(c);
}
}
// plugins.call(res, res, R.fn);
res.renderfix = function () {};
return res;
};
R.prototype.clear = function () {
R.eve("clear", this);
R.eve("raphael.clear", this);
this.canvas.innerHTML = E;
this.span = R._g.doc.createElement("span");
this.span.style.cssText = "position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";
......@@ -952,7 +951,7 @@ window.Raphael.vml && function (R) {
this.bottom = this.top = null;
};
R.prototype.remove = function () {
R.eve("remove", this);
R.eve("raphael.remove", this);
this.canvas.parentNode.removeChild(this.canvas);
for (var i in this) {
this[i] = typeof this[i] == "function" ? R._removedFactory(i) : null;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment