Errata

RaphaelJS

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
PDF Page 32
2nd code snippet

The event handler is incorrect on the following line of code ...

document.getElementById("on_off").onclick = toggleHover();

The parenthesis should be removed because otherwise the toggleHover() function is invoked immediately instead of waiting until the onclick event is triggered.

AJ Speller  Mar 12, 2014 
PDF Page 33
1st paragraph

the this inside the function refers not the set of objects, but to whichever individual one you clicked on

AJ Speller  Mar 12, 2014 
PDF Page 35
Just above paragraph 4

The parameters are out of order. According to the documentation

circle.drag(dragstart, dragmove, dragend);

should be ...

circle.drag(dragmove, dragstart, dragend);

AJ Speller  Mar 15, 2014 
PDF Page 37
2nd paragraph

The ellipse begins with a center of 300,200.

After the transformation of T50,10 shouldn't the new center for the ellipse be 350,210 ?

The text reads, "It places it at (100,30)".

AJ Speller  Mar 12, 2014 
Printed Page 40
dominoes function

The function will not work without first declaring var angle = 0

Mac Liems  Jun 27, 2014 
42
Chapter 3 -- Domino example

In the Dominoes example there is reference to a variable angle.

However, the angle is actually within the pos objects.

Within the code and textbook text, angle should be replaced with pos.a

J Dean Brock  Nov 15, 2014 
PDF, ePub, Mobi Page 52
2

"As such, they require a few peices of information"

-'pieces' typo.

Daniel Furze  Dec 29, 2013 
PDF Page 66
2nd paragraph

Fortunately, Raphael.animate() accepts a function as a final argument that gets called only after the animation is complete.

Should be ..

Fortunately, Raphael.animation() accepts a function as a final argument that gets called only after the animation is complete.

AJ Speller  Mar 15, 2014 
PDF Page 67
First snippet of code near the end

var anim = Raphael.animation({ path: decagon }, 1000);

Should be ...

var anim = Raphael.animation({ path: decagon_path }, 1000);

AJ Speller  Mar 15, 2014 
PDF Page 88
last sentence on page

Let?s try it will the point 800 pixels

Let?s try it with the point 800 pixels

AJ Speller  Mar 15, 2014