X-Git-Url: http://git.roojs.org/?p=raphael;a=blobdiff_plain;f=reference.html;h=3474e44df1a90599f9463ca08ba2d69846f2df3a;hp=cb0d1295fe9e38f4a8bd406199efeb1e5a97a10b;hb=8aa6a57d9de94873b2c73b0afc31fd4010ec391c;hpb=03538da207cb41e2ebc303fe8fc247dd0b5e655f diff --git a/reference.html b/reference.html index cb0d129..3474e44 100644 --- a/reference.html +++ b/reference.html @@ -1,6 +1,4 @@ - - + Raphaël Reference @@ -9,26 +7,17 @@ + - - + - - - - -
-
-
+
 

Main Function

@@ -189,6 +178,15 @@ var set = Raphael(["notepad", 320, 200, {
var c = paper.path("M10 10L90 90");
 // draw a diagonal line:
 // move to 10,10, line to 90,90
+

+ clear +

+

+ Clears the canvas, i.e. removes all the elements. +

+

Usage

+
var c = paper.path("M10 10L90 90");
+paper.clear();

Element’s generic methods

@@ -854,6 +852,9 @@ element.hover(function (event) {
  • path
  • +
  • + clear +
  • node
  • @@ -972,14 +973,14 @@ element.hover(function (event) { Some Rights Reserved by Dmitry Baranovskiy

    - Logo by Wasabicube · - Work at this project started as 20% time at Atlassian + Logo by Wasabicube

    -
    -
    + + + - \ No newline at end of file +