-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathindex.html
2393 lines (2391 loc) · 226 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>RedRaphaël API Reference</title>
<meta name="viewport" content="user-scalable=no,initial-scale = 1.0,maximum-scale = 1.0">
<link rel="stylesheet" href="docs/fonts/stylesheet.css"><link rel="stylesheet" href="docs/css/topcoat-desktop-light.css">
<link rel="stylesheet" href="docs/css/main.css">
<link rel="stylesheet" href="docs/css/dr.css">
<link rel="stylesheet" href="docs/css/prism.css"><!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body class="light">
<div id="wrapper">
<div class="max-width">
<div id="sideNav">
<div class="combo">
<input type="search" id="dr-filter" value="" placeholder="search" class="topcoat-search-input">
</div>
<div id="pageNav"><ol id="dr-toc"><li class="dr-lvl0"><a href="# Animation" class="{clas}"><span> Animation</span></a></li><li class="dr-lvl1"><a href="# Animation.delay" class="dr- method"><span> Animation.delay</span></a></li><li class="dr-lvl1"><a href="# Animation.repeat" class="dr- method"><span> Animation.repeat</span></a></li><li class="dr-lvl0"><a href="# Element" class="{clas}"><span> Element</span></a></li><li class="dr-lvl1"><a href="# Element.animate" class="dr- method"><span> Element.animate</span></a></li><li class="dr-lvl1"><a href="# Element.animateWith" class="dr- method"><span> Element.animateWith</span></a></li><li class="dr-lvl1"><a href="# Element.click" class="dr- method"><span> Element.click</span></a></li><li class="dr-lvl1"><a href="# Element.clone" class="dr- method"><span> Element.clone</span></a></li><li class="dr-lvl1"><a href="# Element.data" class="dr- method"><span> Element.data</span></a></li><li class="dr-lvl1"><a href="# Element.dblclick" class="dr- method"><span> Element.dblclick</span></a></li><li class="dr-lvl1"><a href="# Element.drag" class="dr- method"><span> Element.drag</span></a></li><li class="dr-lvl1"><a href="# Element.getBBox" class="dr- method"><span> Element.getBBox</span></a></li><li class="dr-lvl1"><a href="# Element.getData" class="dr- method"><span> Element.getData</span></a></li><li class="dr-lvl1"><a href="# Element.glow" class="dr- method"><span> Element.glow</span></a></li><li class="dr-lvl1"><a href="# Element.hover" class="dr- method"><span> Element.hover</span></a></li><li class="dr-lvl1"><a href="# Element.isPointInside" class="dr- method"><span> Element.isPointInside</span></a></li><li class="dr-lvl1"><a href="# Element.matrix" class="dr- property"><span> Element.matrix</span></a></li><li class="dr-lvl1"><a href="# Element.mousedown" class="dr- method"><span> Element.mousedown</span></a></li><li class="dr-lvl1"><a href="# Element.mousemove" class="dr- method"><span> Element.mousemove</span></a></li><li class="dr-lvl1"><a href="# Element.mouseout" class="dr- method"><span> Element.mouseout</span></a></li><li class="dr-lvl1"><a href="# Element.mouseover" class="dr- method"><span> Element.mouseover</span></a></li><li class="dr-lvl1"><a href="# Element.mouseup" class="dr- method"><span> Element.mouseup</span></a></li><li class="dr-lvl1"><a href="# Element.onDragOver" class="dr- method"><span> Element.onDragOver</span></a></li><li class="dr-lvl1"><a href="# Element.pause" class="dr- method"><span> Element.pause</span></a></li><li class="dr-lvl1"><a href="# Element.removeData" class="dr- method"><span> Element.removeData</span></a></li><li class="dr-lvl1"><a href="# Element.resume" class="dr- method"><span> Element.resume</span></a></li><li class="dr-lvl1"><a href="# Element.setTime" class="dr- method"><span> Element.setTime</span></a></li><li class="dr-lvl1"><a href="# Element.status" class="dr- method"><span> Element.status</span></a></li><li class="dr-lvl1"><a href="# Element.stop" class="dr- method"><span> Element.stop</span></a></li><li class="dr-lvl1"><a href="# Element.touchcancel" class="dr- method"><span> Element.touchcancel</span></a></li><li class="dr-lvl1"><a href="# Element.touchend" class="dr- method"><span> Element.touchend</span></a></li><li class="dr-lvl1"><a href="# Element.touchmove" class="dr- method"><span> Element.touchmove</span></a></li><li class="dr-lvl1"><a href="# Element.touchstart" class="dr- method"><span> Element.touchstart</span></a></li><li class="dr-lvl1"><a href="# Element.unclick" class="dr- method"><span> Element.unclick</span></a></li><li class="dr-lvl1"><a href="# Element.undblclick" class="dr- method"><span> Element.undblclick</span></a></li><li class="dr-lvl1"><a href="# Element.undrag" class="dr- method"><span> Element.undrag</span></a></li><li class="dr-lvl1"><a href="# Element.unhover" class="dr- method"><span> Element.unhover</span></a></li><li class="dr-lvl1"><a href="# Element.unmousedown" class="dr- method"><span> Element.unmousedown</span></a></li><li class="dr-lvl1"><a href="# Element.unmousemove" class="dr- method"><span> Element.unmousemove</span></a></li><li class="dr-lvl1"><a href="# Element.unmouseout" class="dr- method"><span> Element.unmouseout</span></a></li><li class="dr-lvl1"><a href="# Element.unmouseover" class="dr- method"><span> Element.unmouseover</span></a></li><li class="dr-lvl1"><a href="# Element.unmouseup" class="dr- method"><span> Element.unmouseup</span></a></li><li class="dr-lvl1"><a href="# Element.untouchcancel" class="dr- method"><span> Element.untouchcancel</span></a></li><li class="dr-lvl1"><a href="# Element.untouchend" class="dr- method"><span> Element.untouchend</span></a></li><li class="dr-lvl1"><a href="# Element.untouchmove" class="dr- method"><span> Element.untouchmove</span></a></li><li class="dr-lvl1"><a href="# Element.untouchstart" class="dr- method"><span> Element.untouchstart</span></a></li><li class="dr-lvl0"><a href="# Matrix" class="{clas}"><span> Matrix</span></a></li><li class="dr-lvl1"><a href="# Matrix.add" class="dr- method"><span> Matrix.add</span></a></li><li class="dr-lvl1"><a href="# Matrix.clone" class="dr- method"><span> Matrix.clone</span></a></li><li class="dr-lvl1"><a href="# Matrix.invert" class="dr- method"><span> Matrix.invert</span></a></li><li class="dr-lvl1"><a href="# Matrix.rotate" class="dr- method"><span> Matrix.rotate</span></a></li><li class="dr-lvl1"><a href="# Matrix.scale" class="dr- method"><span> Matrix.scale</span></a></li><li class="dr-lvl1"><a href="# Matrix.split" class="dr- method"><span> Matrix.split</span></a></li><li class="dr-lvl1"><a href="# Matrix.toTransformString" class="dr- method"><span> Matrix.toTransformString</span></a></li><li class="dr-lvl1"><a href="# Matrix.translate" class="dr- method"><span> Matrix.translate</span></a></li><li class="dr-lvl1"><a href="# Matrix.x" class="dr- method"><span> Matrix.x</span></a></li><li class="dr-lvl1"><a href="# Matrix.y" class="dr- method"><span> Matrix.y</span></a></li><li class="dr-lvl0"><a href="# Paper" class="{clas}"><span> Paper</span></a></li><li class="dr-lvl1"><a href="# Paper.add" class="dr- method"><span> Paper.add</span></a></li><li class="dr-lvl1"><a href="# Paper.bottom" class="dr- property"><span> Paper.bottom</span></a></li><li class="dr-lvl1"><a href="# Paper.ca" class="dr- property"><span> Paper.ca</span></a></li><li class="dr-lvl1"><a href="# Paper.circle" class="dr- method"><span> Paper.circle</span></a></li><li class="dr-lvl1"><a href="# Paper.customAttributes" class="dr- property"><span> Paper.customAttributes</span></a></li><li class="dr-lvl1"><a href="# Paper.ellipse" class="dr- method"><span> Paper.ellipse</span></a></li><li class="dr-lvl1"><a href="# Paper.forEach" class="dr- method"><span> Paper.forEach</span></a></li><li class="dr-lvl1"><a href="# Paper.getElementByPoint" class="dr- method"><span> Paper.getElementByPoint</span></a></li><li class="dr-lvl1"><a href="# Paper.getElementsByBBox" class="dr- method"><span> Paper.getElementsByBBox</span></a></li><li class="dr-lvl1"><a href="# Paper.getElementsByPoint" class="dr- method"><span> Paper.getElementsByPoint</span></a></li><li class="dr-lvl1"><a href="# Paper.getFont" class="dr- method"><span> Paper.getFont</span></a></li><li class="dr-lvl1"><a href="# Paper.group" class="dr- method"><span> Paper.group</span></a></li><li class="dr-lvl1"><a href="# Paper.hide" class="dr- method"><span> Paper.hide</span></a></li><li class="dr-lvl1"><a href="# Paper.image" class="dr- method"><span> Paper.image</span></a></li><li class="dr-lvl1"><a href="# Paper.path" class="dr- method"><span> Paper.path</span></a></li><li class="dr-lvl1"><a href="# Paper.print" class="dr- method"><span> Paper.print</span></a></li><li class="dr-lvl1"><a href="# Paper.raphael" class="dr- property"><span> Paper.raphael</span></a></li><li class="dr-lvl1"><a href="# Paper.rect" class="dr- method"><span> Paper.rect</span></a></li><li class="dr-lvl1"><a href="# Paper.safari" class="dr- method"><span> Paper.safari</span></a></li><li class="dr-lvl1"><a href="# Paper.set" class="dr- method"><span> Paper.set</span></a></li><li class="dr-lvl1"><a href="# Paper.setFinish" class="dr- method"><span> Paper.setFinish</span></a></li><li class="dr-lvl1"><a href="# Paper.setSize" class="dr- method"><span> Paper.setSize</span></a></li><li class="dr-lvl1"><a href="# Paper.setStart" class="dr- method"><span> Paper.setStart</span></a></li><li class="dr-lvl1"><a href="# Paper.setViewBox" class="dr- method"><span> Paper.setViewBox</span></a></li><li class="dr-lvl1"><a href="# Paper.show" class="dr- method"><span> Paper.show</span></a></li><li class="dr-lvl1"><a href="# Paper.text" class="dr- method"><span> Paper.text</span></a></li><li class="dr-lvl1"><a href="# Paper.top" class="dr- property"><span> Paper.top</span></a></li><li class="dr-lvl0"><a href="# Raphael" class="dr- method"><span> Raphael</span></a></li><li class="dr-lvl1"><a href="# Raphael.angle" class="dr- method"><span> Raphael.angle</span></a></li><li class="dr-lvl1"><a href="# Raphael.animation" class="dr- method"><span> Raphael.animation</span></a></li><li class="dr-lvl1"><a href="# Raphael.bezierBBox" class="dr- method"><span> Raphael.bezierBBox</span></a></li><li class="dr-lvl1"><a href="# Raphael.ca" class="dr- property"><span> Raphael.ca</span></a></li><li class="dr-lvl1"><a href="# Raphael.clone" class="dr- method"><span> Raphael.clone</span></a></li><li class="dr-lvl1"><a href="# Raphael.color" class="dr- method"><span> Raphael.color</span></a></li><li class="dr-lvl1"><a href="# Raphael.createUUID" class="dr- method"><span> Raphael.createUUID</span></a></li><li class="dr-lvl1"><a href="# Raphael.customAttributes" class="dr- property"><span> Raphael.customAttributes</span></a></li><li class="dr-lvl1"><a href="# Raphael.define" class="dr- method"><span> Raphael.define</span></a></li><li class="dr-lvl1"><a href="# Raphael.deg" class="dr- method"><span> Raphael.deg</span></a></li><li class="dr-lvl1"><a href="# Raphael.easing_formulas" class="dr- property"><span> Raphael.easing_formulas</span></a></li><li class="dr-lvl1"><a href="# Raphael.el" class="dr- property"><span> Raphael.el</span></a></li><li class="dr-lvl1"><a href="# Raphael.findDotsAtSegment" class="dr- method"><span> Raphael.findDotsAtSegment</span></a></li><li class="dr-lvl1"><a href="# Raphael.fn" class="dr- property"><span> Raphael.fn</span></a></li><li class="dr-lvl1"><a href="# Raphael.format" class="dr- method"><span> Raphael.format</span></a></li><li class="dr-lvl1"><a href="# Raphael.fullfill" class="dr- method"><span> Raphael.fullfill</span></a></li><li class="dr-lvl1"><a href="# Raphael.getColor" class="dr- method"><span> Raphael.getColor</span></a></li><li class="dr-lvl2"><a href="# Raphael.getColor.reset" class="dr- method"><span> Raphael.getColor.reset</span></a></li><li class="dr-lvl1"><a href="# Raphael.getPointAtLength" class="dr- method"><span> Raphael.getPointAtLength</span></a></li><li class="dr-lvl1"><a href="# Raphael.getRGB" class="dr- method"><span> Raphael.getRGB</span></a></li><li class="dr-lvl1"><a href="# Raphael.getSubpath" class="dr- method"><span> Raphael.getSubpath</span></a></li><li class="dr-lvl1"><a href="# Raphael.getTotalLength" class="dr- method"><span> Raphael.getTotalLength</span></a></li><li class="dr-lvl1"><a href="# Raphael.hsb" class="dr- method"><span> Raphael.hsb</span></a></li><li class="dr-lvl1"><a href="# Raphael.hsb2rgb" class="dr- method"><span> Raphael.hsb2rgb</span></a></li><li class="dr-lvl1"><a href="# Raphael.hsl" class="dr- method"><span> Raphael.hsl</span></a></li><li class="dr-lvl1"><a href="# Raphael.hsl2rgb" class="dr- method"><span> Raphael.hsl2rgb</span></a></li><li class="dr-lvl1"><a href="# Raphael.is" class="dr- method"><span> Raphael.is</span></a></li><li class="dr-lvl1"><a href="# Raphael.isBBoxIntersect" class="dr- method"><span> Raphael.isBBoxIntersect</span></a></li><li class="dr-lvl1"><a href="# Raphael.isPointInsideBBox" class="dr- method"><span> Raphael.isPointInsideBBox</span></a></li><li class="dr-lvl1"><a href="# Raphael.isPointInsidePath" class="dr- method"><span> Raphael.isPointInsidePath</span></a></li><li class="dr-lvl1"><a href="# Raphael.mapPath" class="dr- method"><span> Raphael.mapPath</span></a></li><li class="dr-lvl1"><a href="# Raphael.matrix" class="dr- method"><span> Raphael.matrix</span></a></li><li class="dr-lvl1"><a href="# Raphael.ninja" class="dr- method"><span> Raphael.ninja</span></a></li><li class="dr-lvl1"><a href="# Raphael.parsePathString" class="dr- method"><span> Raphael.parsePathString</span></a></li><li class="dr-lvl1"><a href="# Raphael.parseTransformString" class="dr- method"><span> Raphael.parseTransformString</span></a></li><li class="dr-lvl1"><a href="# Raphael.path2curve" class="dr- method"><span> Raphael.path2curve</span></a></li><li class="dr-lvl1"><a href="# Raphael.pathBBox" class="dr- method"><span> Raphael.pathBBox</span></a></li><li class="dr-lvl1"><a href="# Raphael.pathIntersection" class="dr- method"><span> Raphael.pathIntersection</span></a></li><li class="dr-lvl1"><a href="# Raphael.pathToRelative" class="dr- method"><span> Raphael.pathToRelative</span></a></li><li class="dr-lvl1"><a href="# Raphael.pick" class="dr- method"><span> Raphael.pick</span></a></li><li class="dr-lvl1"><a href="# Raphael.rad" class="dr- method"><span> Raphael.rad</span></a></li><li class="dr-lvl1"><a href="# Raphael.registerFont" class="dr- method"><span> Raphael.registerFont</span></a></li><li class="dr-lvl1"><a href="# Raphael.rgb" class="dr- method"><span> Raphael.rgb</span></a></li><li class="dr-lvl1"><a href="# Raphael.rgb2hsb" class="dr- method"><span> Raphael.rgb2hsb</span></a></li><li class="dr-lvl1"><a href="# Raphael.rgb2hsl" class="dr- method"><span> Raphael.rgb2hsl</span></a></li><li class="dr-lvl1"><a href="# Raphael.setWindow" class="dr- method"><span> Raphael.setWindow</span></a></li><li class="dr-lvl1"><a href="# Raphael.snapTo" class="dr- method"><span> Raphael.snapTo</span></a></li><li class="dr-lvl1"><a href="# Raphael.st" class="dr- property"><span> Raphael.st</span></a></li><li class="dr-lvl1"><a href="# Raphael.svg" class="dr- property"><span> Raphael.svg</span></a></li><li class="dr-lvl1"><a href="# Raphael.toMatrix" class="dr- method"><span> Raphael.toMatrix</span></a></li><li class="dr-lvl1"><a href="# Raphael.transformPath" class="dr- method"><span> Raphael.transformPath</span></a></li><li class="dr-lvl1"><a href="# Raphael.type" class="dr- property"><span> Raphael.type</span></a></li><li class="dr-lvl1"><a href="# Raphael.vml" class="dr- property"><span> Raphael.vml</span></a></li><li class="dr-lvl0"><a href="# Set" class="{clas}"><span> Set</span></a></li><li class="dr-lvl1"><a href="# Set.clear" class="dr- method"><span> Set.clear</span></a></li><li class="dr-lvl1"><a href="# Set.exclude" class="dr- method"><span> Set.exclude</span></a></li><li class="dr-lvl1"><a href="# Set.forEach" class="dr- method"><span> Set.forEach</span></a></li><li class="dr-lvl1"><a href="# Set.pop" class="dr- method"><span> Set.pop</span></a></li><li class="dr-lvl1"><a href="# Set.push" class="dr- method"><span> Set.push</span></a></li><li class="dr-lvl1"><a href="# Set.splice" class="dr- method"><span> Set.splice</span></a></li><li class="dr-lvl0"><a href="# eve" class="dr- method"><span> eve</span></a></li><li class="dr-lvl1"><a href="# eve.f" class="dr- method"><span> eve.f</span></a></li><li class="dr-lvl1"><a href="# eve.listeners" class="dr- method"><span> eve.listeners</span></a></li><li class="dr-lvl1"><a href="# eve.nt" class="dr- method"><span> eve.nt</span></a></li><li class="dr-lvl1"><a href="# eve.nts" class="dr- method"><span> eve.nts</span></a></li><li class="dr-lvl1"><a href="# eve.off" class="dr- method"><span> eve.off</span></a></li><li class="dr-lvl1"><a href="# eve.on" class="dr- method"><span> eve.on</span></a></li><li class="dr-lvl1"><a href="# eve.once" class="dr- method"><span> eve.once</span></a></li><li class="dr-lvl1"><a href="# eve.stop" class="dr- method"><span> eve.stop</span></a></li><li class="dr-lvl1"><a href="# eve.unbind" class="dr- method"><span> eve.unbind</span></a></li><li class="dr-lvl1"><a href="# eve.version" class="dr- property"><span> eve.version</span></a></li></ol></div>
</div>
</div>
<div id="site">
<header id="main-header">
<div class="max-width">
<hgroup>
<h1>RedRaphaël</h1>
<p>API Reference</p>
</hgroup>
</div>
</header>
<div id="content" class="max-width"><article id=" Animation" class=" Animation-section"><header><h2 id=" Animation" class="undefined"> Animation<a href="# Animation" title="Link to this section" class="dr-hash">⚓</a></h2></header>
<section><div class="extra" id=" Animation-extra"></div></section></article><article id=" Animation.delay" class=" Animation-delay-section"><header><h3 id=" Animation.delay" class="dr- method"> Animation.delay<a href="# Animation.delay" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 5362 in the source" href="raphael-src.html#L5362">➭</a></h3></header>
<section><div class="extra" id=" Animation.delay-extra"></div><div class="dr- method"><p>*
Creates a copy of existing animation object with given delay.
*
</p>
<h3> Parameters</h3><p>*
</p>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> delay</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description">number of ms to pass between animation start and actual animation</span></li>
</ol></div>
<p>*
</p>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">new altered Animation object</span></p>
<section class="code"><pre class="javascript code"><code data-language="javascript" class="language-javascript"> var anim = Raphael.animation({cx: 10, cy: 20}, 2e3);
circle1.animate(anim); // run the given animation immediately
circle2.animate(anim.delay(500)); // run the given animation after 500 ms
</code></pre></section>
</div></section></article><article id=" Animation.repeat" class=" Animation-repeat-section"><header><h3 id=" Animation.repeat" class="dr- method"> Animation.repeat<a href="# Animation.repeat" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 5381 in the source" href="raphael-src.html#L5381">➭</a></h3></header>
<section><div class="extra" id=" Animation.repeat-extra"></div><div class="dr- method"><p>*
Creates a copy of existing animation object with given repetition.
*
</p>
<h3> Parameters</h3><p>*
</p>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> repeat</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description">number iterations of animation. For infinite animation pass <code>Infinity</code></span></li>
</ol></div>
<p>*
</p>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">new altered Animation object</span></p>
</div></section></article><article id=" Element" class=" Element-section"><header><h2 id=" Element" class="undefined"> Element<a href="# Element" title="Link to this section" class="dr-hash">⚓</a></h2></header>
<section><div class="extra" id=" Element-extra"></div></section></article><article id=" Element.animate" class=" Element-animate-section"><header><h3 id=" Element.animate" class="dr- method"> Element.animate<a href="# Element.animate" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 5659 in the source" href="raphael-src.html#L5659">➭</a></h3></header>
<section><div class="extra" id=" Element.animate-extra"></div><div class="dr- method"><p>*
Creates and starts animation for given element.
*
</p>
<h3> Parameters</h3><p>*
</p>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> params</span>
<span class="dr-type"><em class="dr-type-object">object</em></span>
<span class="dr-description">final attributes for the element, see also <a href="#Element.attr" class="dr-link">Element.attr</a></span></li>
<li class="topcoat-list__item"><span class="dr-param"> ms</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description">number of milliseconds for animation to run</span></li>
<li class="topcoat-list__item"><span class="dr-param optional"> easing</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-string">string</em></span>
<span class="dr-description">easing type. Accept one of <a href="#Raphael.easing_formulas" class="dr-link">Raphael.easing_formulas</a> or CSS format: <code>cubic&#x2010;bezier(XX,&#160;XX,&#160;XX,&#160;XX)</code></span></li>
<li class="topcoat-list__item"><span class="dr-param optional"> callback</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">callback function. Will be called at the end of animation.</span></li>
</ol></div>
<p> or
</p>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> animation</span>
<span class="dr-type"><em class="dr-type-object">object</em></span>
<span class="dr-description">animation object, see <a href="#Raphael.animation" class="dr-link">Raphael.animation</a></span></li>
</ol></div>
<p>*
</p>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">original element</span></p>
</div></section></article><article id=" Element.animateWith" class=" Element-animateWith-section"><header><h3 id=" Element.animateWith" class="dr- method"> Element.animateWith<a href="# Element.animateWith" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 5251 in the source" href="raphael-src.html#L5251">➭</a></h3></header>
<section><div class="extra" id=" Element.animateWith-extra"></div><div class="dr- method"><p>*
Acts similar to <a href="#Element.animate" class="dr-link">Element.animate</a>, but ensure that given animation runs in sync with another given element.
*
</p>
<h3> Parameters</h3><p>*
</p>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> el</span>
<span class="dr-type"><em class="dr-type-object">object</em></span>
<span class="dr-description">element to sync with</span></li>
<li class="topcoat-list__item"><span class="dr-param"> anim</span>
<span class="dr-type"><em class="dr-type-object">object</em></span>
<span class="dr-description">animation to sync with</span></li>
<li class="topcoat-list__item"><span class="dr-param optional"> params</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-object">object</em></span>
<span class="dr-description">final attributes for the element, see also <a href="#Element.attr" class="dr-link">Element.attr</a></span></li>
<li class="topcoat-list__item"><span class="dr-param optional"> ms</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description">number of milliseconds for animation to run</span></li>
<li class="topcoat-list__item"><span class="dr-param optional"> easing</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-string">string</em></span>
<span class="dr-description">easing type. Accept on of <a href="#Raphael.easing_formulas" class="dr-link">Raphael.easing_formulas</a> or CSS format: <code>cubic&#x2010;bezier(XX,&#160;XX,&#160;XX,&#160;XX)</code></span></li>
<li class="topcoat-list__item"><span class="dr-param optional"> callback</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">callback function. Will be called at the end of animation.</span></li>
</ol></div>
<p> or
</p>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> element</span>
<span class="dr-type"><em class="dr-type-object">object</em></span>
<span class="dr-description">element to sync with</span></li>
<li class="topcoat-list__item"><span class="dr-param"> anim</span>
<span class="dr-type"><em class="dr-type-object">object</em></span>
<span class="dr-description">animation to sync with</span></li>
<li class="topcoat-list__item"><span class="dr-param optional"> animation</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-object">object</em></span>
<span class="dr-description">animation object, see <a href="#Raphael.animation" class="dr-link">Raphael.animation</a></span></li>
</ol></div>
<p>*
</p>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">original element</span></p>
</div></section></article><article id=" Element.click" class=" Element-click-section"><header><h3 id=" Element.click" class="dr- method"> Element.click<a href="# Element.click" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3739 in the source" href="raphael-src.html#L3739">➭</a></h3></header>
<section><div class="extra" id=" Element.click-extra"></div><div class="dr- method"><p>*
Adds event handler for click for the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> handler</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for the event</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.clone" class=" Element-clone-section"><header><h3 id=" Element.clone" class="dr- method"> Element.clone<a href="# Element.clone" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 4806 in the source" href="raphael-src.html#L4806">➭</a></h3></header>
<section><div class="extra" id=" Element.clone-extra"></div><div class="dr- method"><p>*
</p>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">clone of a given element</span></p>
<p>*
</p>
</div></section></article><article id=" Element.data" class=" Element-data-section"><header><h3 id=" Element.data" class="dr- method"> Element.data<a href="# Element.data" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3989 in the source" href="raphael-src.html#L3989">➭</a></h3></header>
<section><div class="extra" id=" Element.data-extra"></div><div class="dr- method"><p>*
Adds or retrieves given value asociated with given key.
*
See also <a href="#Element.removeData" class="dr-link">Element.removeData</a>
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> key</span>
<span class="dr-type"><em class="dr-type-string">string</em></span>
<span class="dr-description">key to store data</span></li>
<li class="topcoat-list__item"><span class="dr-param optional"> value</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-any">any</em></span>
<span class="dr-description">value to store</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
<p> or, if value is not specified:
</p>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-any">any</em> <span class="dr-description">value</span></p>
<h3> Usage</h3><section class="code"><pre class="javascript code"><code data-language="javascript" class="language-javascript"> for (var i = 0, i < 5, i++) {
paper.circle(10 + 15 * i, 10, 10)
.attr({fill: "#000"})
.data("i", i)
.click(function () {
alert(this.data("i"));
});
}
</code></pre></section>
</div></section></article><article id=" Element.dblclick" class=" Element-dblclick-section"><header><h3 id=" Element.dblclick" class="dr- method"> Element.dblclick<a href="# Element.dblclick" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3758 in the source" href="raphael-src.html#L3758">➭</a></h3></header>
<section><div class="extra" id=" Element.dblclick-extra"></div><div class="dr- method"><p>*
Adds event handler for double click for the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> handler</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for the event</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.drag" class=" Element-drag-section"><header><h3 id=" Element.drag" class="dr- method"> Element.drag<a href="# Element.drag" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 4137 in the source" href="raphael-src.html#L4137">➭</a></h3></header>
<section><div class="extra" id=" Element.drag-extra"></div><div class="dr- method"><p>*
Adds event handlers for drag of the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> onmove</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for moving</span></li>
<li class="topcoat-list__item"><span class="dr-param"> onstart</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for drag start</span></li>
<li class="topcoat-list__item"><span class="dr-param"> onend</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for drag end</span></li>
<li class="topcoat-list__item"><span class="dr-param optional"> mcontext</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-object">object</em></span>
<span class="dr-description">context for moving handler</span></li>
<li class="topcoat-list__item"><span class="dr-param optional"> scontext</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-object">object</em></span>
<span class="dr-description">context for drag start handler</span></li>
<li class="topcoat-list__item"><span class="dr-param optional"> econtext</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-object">object</em></span>
<span class="dr-description">context for drag end handler</span></li>
</ol></div>
<p> Additionaly following <code>drag</code> events will be triggered: <code>drag.start.<id></code> on start,
<code>drag.end.<id></code> on end and <code>drag.move.<id></code> on every move. When element will be dragged over another element
<code>drag.over.<id></code> will be fired as well.
</p>
<p> Start event and start handler will be called in specified context or in context of the element with following parameters:
</p>
<ol class="dr-json"><li><span class="dr-json-key">x</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">x position of the mouse</span>
<li><span class="dr-json-key">y</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">y position of the mouse</span>
<li><span class="dr-json-key">event</span><span class="dr-type"><em class="dr-type-object">object</em></span><span class="dr-json-description">DOM event object</span>
</ol>
<p> Move event and move handler will be called in specified context or in context of the element with following parameters:
</p>
<ol class="dr-json"><li><span class="dr-json-key">dx</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">shift by x from the start point</span>
<li><span class="dr-json-key">dy</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">shift by y from the start point</span>
<li><span class="dr-json-key">x</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">x position of the mouse</span>
<li><span class="dr-json-key">y</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">y position of the mouse</span>
<li><span class="dr-json-key">event</span><span class="dr-type"><em class="dr-type-object">object</em></span><span class="dr-json-description">DOM event object</span>
</ol>
<p> End event and end handler will be called in specified context or in context of the element with following parameters:
</p>
<ol class="dr-json"><li><span class="dr-json-key">event</span><span class="dr-type"><em class="dr-type-object">object</em></span><span class="dr-json-description">DOM event object</span>
</ol>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.getBBox" class=" Element-getBBox-section"><header><h3 id=" Element.getBBox" class="dr- method"> Element.getBBox<a href="# Element.getBBox" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 4773 in the source" href="raphael-src.html#L4773">➭</a></h3></header>
<section><div class="extra" id=" Element.getBBox-extra"></div><div class="dr- method"><p>*
Return bounding box for a given element
*
</p>
<h3> Parameters</h3><p>*
</p>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> isWithoutTransform</span>
<span class="dr-type"><em class="dr-type-boolean">boolean</em></span>
<span class="dr-description">flag, <code>true</code> if you want to have bounding box before transformations. Default is <code>false</code>.</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">Bounding box object:</span></p>
<ol class="dr-json"><li> {<ol class="dr-json"><li><span class="dr-json-key">x:</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">top left corner x</span>
<li><span class="dr-json-key">y:</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">top left corner y</span>
<li><span class="dr-json-key">x2:</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">bottom right corner x</span>
<li><span class="dr-json-key">y2:</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">bottom right corner y</span>
<li><span class="dr-json-key">width:</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">width</span>
<li><span class="dr-json-key">height:</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">height</span>
</ol></li><li> }</li></ol>
</div></section></article><article id=" Element.getData" class=" Element-getData-section"><header><h3 id=" Element.getData" class="dr- method"> Element.getData<a href="# Element.getData" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 4033 in the source" href="raphael-src.html#L4033">➭</a></h3></header>
<section><div class="extra" id=" Element.getData-extra"></div><div class="dr- method"><p>*
Retrieves the element data
</p>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">data</span></p>
</div></section></article><article id=" Element.glow" class=" Element-glow-section"><header><h3 id=" Element.glow" class="dr- method"> Element.glow<a href="# Element.glow" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 4837 in the source" href="raphael-src.html#L4837">➭</a></h3></header>
<section><div class="extra" id=" Element.glow-extra"></div><div class="dr- method"><p>*
Return set of elements that create glow-like effect around given element. See <a href="#Paper.set" class="dr-link">Paper.set</a>.
</p>
<p> Note: Glow is not connected to the element. If you change element attributes it won’t adjust itself.
*
</p>
<h3> Parameters</h3><p>*
</p>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param optional"> glow</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-object">object</em></span>
<span class="dr-description">parameters object with all properties optional:</span></li>
</ol></div>
<ol class="dr-json"><li> {<ol class="dr-json"><li><span class="dr-json-key">width</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">size of the glow, default is <code>10</code></span>
<li><span class="dr-json-key">fill</span><span class="dr-type"><em class="dr-type-boolean">boolean</em></span><span class="dr-json-description">will it be filled, default is <code>false</code></span>
<li><span class="dr-json-key">opacity</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">opacity, default is <code>0.5</code></span>
<li><span class="dr-json-key">offsetx</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">horizontal offset, default is <code>0</code></span>
<li><span class="dr-json-key">offsety</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">vertical offset, default is <code>0</code></span>
<li><span class="dr-json-key">color</span><span class="dr-type"><em class="dr-type-string">string</em></span><span class="dr-json-description">glow colour, default is <code>black</code></span>
</ol></li><li> }</li></ol>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Paper.set" class="dr-link">Paper.set</a> of elements that represents glow</span></p>
</div></section></article><article id=" Element.hover" class=" Element-hover-section"><header><h3 id=" Element.hover" class="dr- method"> Element.hover<a href="# Element.hover" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 4088 in the source" href="raphael-src.html#L4088">➭</a></h3></header>
<section><div class="extra" id=" Element.hover-extra"></div><div class="dr- method"><p>*
Adds event handlers for hover for the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> f_in</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for hover in</span></li>
<li class="topcoat-list__item"><span class="dr-param"> f_out</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for hover out</span></li>
<li class="topcoat-list__item"><span class="dr-param optional"> icontext</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-object">object</em></span>
<span class="dr-description">context for hover in handler</span></li>
<li class="topcoat-list__item"><span class="dr-param optional"> ocontext</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-object">object</em></span>
<span class="dr-description">context for hover out handler</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.isPointInside" class=" Element-isPointInside-section"><header><h3 id=" Element.isPointInside" class="dr- method"> Element.isPointInside<a href="# Element.isPointInside" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 4747 in the source" href="raphael-src.html#L4747">➭</a></h3></header>
<section><div class="extra" id=" Element.isPointInside-extra"></div><div class="dr- method"><p>*
Determine if given point is inside this element’s shape
*
</p>
<h3> Parameters</h3><p>*
</p>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> x</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description">x coordinate of the point</span></li>
<li class="topcoat-list__item"><span class="dr-param"> y</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description">y coordinate of the point</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-boolean">boolean</em> <span class="dr-description"><code>true</code> if point inside the shape</span></p>
</div></section></article><article id=" Element.matrix" class=" Element-matrix-section"><header><h3 id=" Element.matrix" class="dr- property"> Element.matrix<a href="# Element.matrix" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3167 in the source" href="raphael-src.html#L3167">➭</a></h3></header>
<section><div class="extra" id=" Element.matrix-extra"></div><div class="dr- property"><em class="dr-type dr-type-object">object</em><p>*
Keeps <a href="#Matrix" class="dr-link">Matrix</a> object, which represents element transformation
</p>
</div></section></article><article id=" Element.mousedown" class=" Element-mousedown-section"><header><h3 id=" Element.mousedown" class="dr- method"> Element.mousedown<a href="# Element.mousedown" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3777 in the source" href="raphael-src.html#L3777">➭</a></h3></header>
<section><div class="extra" id=" Element.mousedown-extra"></div><div class="dr- method"><p>*
Adds event handler for mousedown for the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> handler</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for the event</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.mousemove" class=" Element-mousemove-section"><header><h3 id=" Element.mousemove" class="dr- method"> Element.mousemove<a href="# Element.mousemove" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3796 in the source" href="raphael-src.html#L3796">➭</a></h3></header>
<section><div class="extra" id=" Element.mousemove-extra"></div><div class="dr- method"><p>*
Adds event handler for mousemove for the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> handler</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for the event</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.mouseout" class=" Element-mouseout-section"><header><h3 id=" Element.mouseout" class="dr- method"> Element.mouseout<a href="# Element.mouseout" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3815 in the source" href="raphael-src.html#L3815">➭</a></h3></header>
<section><div class="extra" id=" Element.mouseout-extra"></div><div class="dr- method"><p>*
Adds event handler for mouseout for the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> handler</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for the event</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.mouseover" class=" Element-mouseover-section"><header><h3 id=" Element.mouseover" class="dr- method"> Element.mouseover<a href="# Element.mouseover" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3834 in the source" href="raphael-src.html#L3834">➭</a></h3></header>
<section><div class="extra" id=" Element.mouseover-extra"></div><div class="dr- method"><p>*
Adds event handler for mouseover for the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> handler</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for the event</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.mouseup" class=" Element-mouseup-section"><header><h3 id=" Element.mouseup" class="dr- method"> Element.mouseup<a href="# Element.mouseup" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3853 in the source" href="raphael-src.html#L3853">➭</a></h3></header>
<section><div class="extra" id=" Element.mouseup-extra"></div><div class="dr- method"><p>*
Adds event handler for mouseup for the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> handler</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for the event</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.onDragOver" class=" Element-onDragOver-section"><header><h3 id=" Element.onDragOver" class="dr- method"> Element.onDragOver<a href="# Element.onDragOver" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 4174 in the source" href="raphael-src.html#L4174">➭</a></h3></header>
<section><div class="extra" id=" Element.onDragOver-extra"></div><div class="dr- method"><p>*
Shortcut for assigning event handler for <code>drag.over.<id></code> event, where id is id of the element (see <a href="#Element.id" class="dr-link">Element.id</a>).
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> f</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for event, first argument would be the element you are dragging over</span></li>
</ol></div>
</div></section></article><article id=" Element.pause" class=" Element-pause-section"><header><h3 id=" Element.pause" class="dr- method"> Element.pause<a href="# Element.pause" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 5755 in the source" href="raphael-src.html#L5755">➭</a></h3></header>
<section><div class="extra" id=" Element.pause-extra"></div><div class="dr- method"><p>*
Stops animation of the element with ability to resume it later on.
*
</p>
<h3> Parameters</h3><p>*
</p>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param optional"> anim</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-object">object</em></span>
<span class="dr-description">animation object</span></li>
</ol></div>
<p>*
</p>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">original element</span></p>
</div></section></article><article id=" Element.removeData" class=" Element-removeData-section"><header><h3 id=" Element.removeData" class="dr- method"> Element.removeData<a href="# Element.removeData" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 4017 in the source" href="raphael-src.html#L4017">➭</a></h3></header>
<section><div class="extra" id=" Element.removeData-extra"></div><div class="dr- method"><p>*
Removes value associated with an element by given key.
If key is not provided, removes all the data of the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param optional"> key</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-string">string</em></span>
<span class="dr-description">key</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.resume" class=" Element-resume-section"><header><h3 id=" Element.resume" class="dr- method"> Element.resume<a href="# Element.resume" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 5777 in the source" href="raphael-src.html#L5777">➭</a></h3></header>
<section><div class="extra" id=" Element.resume-extra"></div><div class="dr- method"><p>*
Resumes animation if it was paused with <a href="#Element.pause" class="dr-link">Element.pause</a> method.
*
</p>
<h3> Parameters</h3><p>*
</p>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param optional"> anim</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-object">object</em></span>
<span class="dr-description">animation object</span></li>
</ol></div>
<p>*
</p>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">original element</span></p>
</div></section></article><article id=" Element.setTime" class=" Element-setTime-section"><header><h3 id=" Element.setTime" class="dr- method"> Element.setTime<a href="# Element.setTime" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 5686 in the source" href="raphael-src.html#L5686">➭</a></h3></header>
<section><div class="extra" id=" Element.setTime-extra"></div><div class="dr- method"><p>*
Sets the status of animation of the element in milliseconds. Similar to <a href="#Element.status" class="dr-link">Element.status</a> method.
*
</p>
<h3> Parameters</h3><p>*
</p>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> anim</span>
<span class="dr-type"><em class="dr-type-object">object</em></span>
<span class="dr-description">animation object</span></li>
<li class="topcoat-list__item"><span class="dr-param"> value</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description">number of milliseconds from the beginning of the animation</span></li>
</ol></div>
<p>*
</p>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">original element if <code>value</code> is specified</span></p>
<p> Note, that during animation following events are triggered:
</p>
<p> On each animation frame event <code>anim.frame.<id></code>, on start <code>anim.start.<id></code> and on end <code>anim.finish.<id></code>.
</p>
</div></section></article><article id=" Element.status" class=" Element-status-section"><header><h3 id=" Element.status" class="dr- method"> Element.status<a href="# Element.status" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 5714 in the source" href="raphael-src.html#L5714">➭</a></h3></header>
<section><div class="extra" id=" Element.status-extra"></div><div class="dr- method"><p>*
Gets or sets the status of animation of the element.
*
</p>
<h3> Parameters</h3><p>*
</p>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param optional"> anim</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-object">object</em></span>
<span class="dr-description">animation object</span></li>
<li class="topcoat-list__item"><span class="dr-param optional"> value</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description">0 – 1. If specified, method works like a setter and sets the status of a given animation to the value. This will cause animation to jump to the given position.</span></li>
</ol></div>
<p>*
</p>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-number">number</em> <span class="dr-description">status</span></p>
<p> or
</p>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-array">array</em> <span class="dr-description">status if <code>anim</code> is not specified. Array of objects in format:</span></p>
<ol class="dr-json"><li> {<ol class="dr-json"><li><span class="dr-json-key">anim:</span><span class="dr-type"><em class="dr-type-object">object</em></span><span class="dr-json-description">animation object</span>
<li><span class="dr-json-key">status:</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">status</span>
</ol></li><li> }</li></ol>
<p> or
</p>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">original element if <code>value</code> is specified</span></p>
</div></section></article><article id=" Element.stop" class=" Element-stop-section"><header><h3 id=" Element.stop" class="dr- method"> Element.stop<a href="# Element.stop" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 5801 in the source" href="raphael-src.html#L5801">➭</a></h3></header>
<section><div class="extra" id=" Element.stop-extra"></div><div class="dr- method"><p>*
Stops animation of the element.
*
</p>
<h3> Parameters</h3><p>*
</p>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param optional"> anim</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-object">object</em></span>
<span class="dr-description">animation object</span></li>
</ol></div>
<p>*
</p>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">original element</span></p>
</div></section></article><article id=" Element.touchcancel" class=" Element-touchcancel-section"><header><h3 id=" Element.touchcancel" class="dr- method"> Element.touchcancel<a href="# Element.touchcancel" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3929 in the source" href="raphael-src.html#L3929">➭</a></h3></header>
<section><div class="extra" id=" Element.touchcancel-extra"></div><div class="dr- method"><p>*
Adds event handler for touchcancel for the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> handler</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for the event</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.touchend" class=" Element-touchend-section"><header><h3 id=" Element.touchend" class="dr- method"> Element.touchend<a href="# Element.touchend" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3910 in the source" href="raphael-src.html#L3910">➭</a></h3></header>
<section><div class="extra" id=" Element.touchend-extra"></div><div class="dr- method"><p>*
Adds event handler for touchend for the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> handler</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for the event</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.touchmove" class=" Element-touchmove-section"><header><h3 id=" Element.touchmove" class="dr- method"> Element.touchmove<a href="# Element.touchmove" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3891 in the source" href="raphael-src.html#L3891">➭</a></h3></header>
<section><div class="extra" id=" Element.touchmove-extra"></div><div class="dr- method"><p>*
Adds event handler for touchmove for the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> handler</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for the event</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.touchstart" class=" Element-touchstart-section"><header><h3 id=" Element.touchstart" class="dr- method"> Element.touchstart<a href="# Element.touchstart" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3872 in the source" href="raphael-src.html#L3872">➭</a></h3></header>
<section><div class="extra" id=" Element.touchstart-extra"></div><div class="dr- method"><p>*
Adds event handler for touchstart for the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> handler</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for the event</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.unclick" class=" Element-unclick-section"><header><h3 id=" Element.unclick" class="dr- method"> Element.unclick<a href="# Element.unclick" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3748 in the source" href="raphael-src.html#L3748">➭</a></h3></header>
<section><div class="extra" id=" Element.unclick-extra"></div><div class="dr- method"><p>*
Removes event handler for click for the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> handler</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for the event</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.undblclick" class=" Element-undblclick-section"><header><h3 id=" Element.undblclick" class="dr- method"> Element.undblclick<a href="# Element.undblclick" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3767 in the source" href="raphael-src.html#L3767">➭</a></h3></header>
<section><div class="extra" id=" Element.undblclick-extra"></div><div class="dr- method"><p>*
Removes event handler for double click for the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> handler</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for the event</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.undrag" class=" Element-undrag-section"><header><h3 id=" Element.undrag" class="dr- method"> Element.undrag<a href="# Element.undrag" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 4184 in the source" href="raphael-src.html#L4184">➭</a></h3></header>
<section><div class="extra" id=" Element.undrag-extra"></div><div class="dr- method"><p>*
Removes all drag event handlers from given element.
</p>
</div></section></article><article id=" Element.unhover" class=" Element-unhover-section"><header><h3 id=" Element.unhover" class="dr- method"> Element.unhover<a href="# Element.unhover" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 4102 in the source" href="raphael-src.html#L4102">➭</a></h3></header>
<section><div class="extra" id=" Element.unhover-extra"></div><div class="dr- method"><p>*
Removes event handlers for hover for the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> f_in</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for hover in</span></li>
<li class="topcoat-list__item"><span class="dr-param"> f_out</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for hover out</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.unmousedown" class=" Element-unmousedown-section"><header><h3 id=" Element.unmousedown" class="dr- method"> Element.unmousedown<a href="# Element.unmousedown" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3786 in the source" href="raphael-src.html#L3786">➭</a></h3></header>
<section><div class="extra" id=" Element.unmousedown-extra"></div><div class="dr- method"><p>*
Removes event handler for mousedown for the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> handler</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for the event</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.unmousemove" class=" Element-unmousemove-section"><header><h3 id=" Element.unmousemove" class="dr- method"> Element.unmousemove<a href="# Element.unmousemove" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3805 in the source" href="raphael-src.html#L3805">➭</a></h3></header>
<section><div class="extra" id=" Element.unmousemove-extra"></div><div class="dr- method"><p>*
Removes event handler for mousemove for the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> handler</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for the event</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.unmouseout" class=" Element-unmouseout-section"><header><h3 id=" Element.unmouseout" class="dr- method"> Element.unmouseout<a href="# Element.unmouseout" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3824 in the source" href="raphael-src.html#L3824">➭</a></h3></header>
<section><div class="extra" id=" Element.unmouseout-extra"></div><div class="dr- method"><p>*
Removes event handler for mouseout for the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> handler</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for the event</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.unmouseover" class=" Element-unmouseover-section"><header><h3 id=" Element.unmouseover" class="dr- method"> Element.unmouseover<a href="# Element.unmouseover" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3843 in the source" href="raphael-src.html#L3843">➭</a></h3></header>
<section><div class="extra" id=" Element.unmouseover-extra"></div><div class="dr- method"><p>*
Removes event handler for mouseover for the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> handler</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for the event</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.unmouseup" class=" Element-unmouseup-section"><header><h3 id=" Element.unmouseup" class="dr- method"> Element.unmouseup<a href="# Element.unmouseup" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3862 in the source" href="raphael-src.html#L3862">➭</a></h3></header>
<section><div class="extra" id=" Element.unmouseup-extra"></div><div class="dr- method"><p>*
Removes event handler for mouseup for the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> handler</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for the event</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.untouchcancel" class=" Element-untouchcancel-section"><header><h3 id=" Element.untouchcancel" class="dr- method"> Element.untouchcancel<a href="# Element.untouchcancel" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3938 in the source" href="raphael-src.html#L3938">➭</a></h3></header>
<section><div class="extra" id=" Element.untouchcancel-extra"></div><div class="dr- method"><p>*
Removes event handler for touchcancel for the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> handler</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for the event</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.untouchend" class=" Element-untouchend-section"><header><h3 id=" Element.untouchend" class="dr- method"> Element.untouchend<a href="# Element.untouchend" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3919 in the source" href="raphael-src.html#L3919">➭</a></h3></header>
<section><div class="extra" id=" Element.untouchend-extra"></div><div class="dr- method"><p>*
Removes event handler for touchend for the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> handler</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for the event</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.untouchmove" class=" Element-untouchmove-section"><header><h3 id=" Element.untouchmove" class="dr- method"> Element.untouchmove<a href="# Element.untouchmove" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3900 in the source" href="raphael-src.html#L3900">➭</a></h3></header>
<section><div class="extra" id=" Element.untouchmove-extra"></div><div class="dr- method"><p>*
Removes event handler for touchmove for the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> handler</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for the event</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Element.untouchstart" class=" Element-untouchstart-section"><header><h3 id=" Element.untouchstart" class="dr- method"> Element.untouchstart<a href="# Element.untouchstart" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3881 in the source" href="raphael-src.html#L3881">➭</a></h3></header>
<section><div class="extra" id=" Element.untouchstart-extra"></div><div class="dr- method"><p>*
Removes event handler for touchstart for the element.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> handler</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">handler for the event</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
</div></section></article><article id=" Matrix" class=" Matrix-section"><header><h2 id=" Matrix" class="undefined"> Matrix<a href="# Matrix" title="Link to this section" class="dr-hash">⚓</a></h2></header>
<section><div class="extra" id=" Matrix-extra"></div></section></article><article id=" Matrix.add" class=" Matrix-add-section"><header><h3 id=" Matrix.add" class="dr- method"> Matrix.add<a href="# Matrix.add" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3346 in the source" href="raphael-src.html#L3346">➭</a></h3></header>
<section><div class="extra" id=" Matrix.add-extra"></div><div class="dr- method"><p>*
Adds given matrix to existing one.
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> a</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description"> </span></li>
<li class="topcoat-list__item"><span class="dr-param"> b</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description"> </span></li>
<li class="topcoat-list__item"><span class="dr-param"> c</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description"> </span></li>
<li class="topcoat-list__item"><span class="dr-param"> d</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description"> </span></li>
<li class="topcoat-list__item"><span class="dr-param"> e</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description"> </span></li>
<li class="topcoat-list__item"><span class="dr-param"> f</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description"> </span></li>
</ol></div>
<ol class="dr-json"><li>r</ol>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> matrix</span>
<span class="dr-type"><em class="dr-type-object">object</em></span>
<span class="dr-description"><a href="#Matrix" class="dr-link">Matrix</a></span></li>
</ol></div>
</div></section></article><article id=" Matrix.clone" class=" Matrix-clone-section"><header><h3 id=" Matrix.clone" class="dr- method"> Matrix.clone<a href="# Matrix.clone" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3393 in the source" href="raphael-src.html#L3393">➭</a></h3></header>
<section><div class="extra" id=" Matrix.clone-extra"></div><div class="dr- method"><p>*
Returns copy of the matrix
</p>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Matrix" class="dr-link">Matrix</a></span></p>
</div></section></article><article id=" Matrix.invert" class=" Matrix-invert-section"><header><h3 id=" Matrix.invert" class="dr- method"> Matrix.invert<a href="# Matrix.invert" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3380 in the source" href="raphael-src.html#L3380">➭</a></h3></header>
<section><div class="extra" id=" Matrix.invert-extra"></div><div class="dr- method"><p>*
Returns inverted version of the matrix
</p>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Matrix" class="dr-link">Matrix</a></span></p>
</div></section></article><article id=" Matrix.rotate" class=" Matrix-rotate-section"><header><h3 id=" Matrix.rotate" class="dr- method"> Matrix.rotate<a href="# Matrix.rotate" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3438 in the source" href="raphael-src.html#L3438">➭</a></h3></header>
<section><div class="extra" id=" Matrix.rotate-extra"></div><div class="dr- method"><p>*
Rotates the matrix
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> a</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description"> </span></li>
<li class="topcoat-list__item"><span class="dr-param"> x</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description"> </span></li>
<li class="topcoat-list__item"><span class="dr-param"> y</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description"> </span></li>
</ol></div>
</div></section></article><article id=" Matrix.scale" class=" Matrix-scale-section"><header><h3 id=" Matrix.scale" class="dr- method"> Matrix.scale<a href="# Matrix.scale" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3421 in the source" href="raphael-src.html#L3421">➭</a></h3></header>
<section><div class="extra" id=" Matrix.scale-extra"></div><div class="dr- method"><p>*
Scales the matrix
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> x</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description"> </span></li>
<li class="topcoat-list__item"><span class="dr-param optional"> y</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description"> </span></li>
<li class="topcoat-list__item"><span class="dr-param optional"> cx</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description"> </span></li>
<li class="topcoat-list__item"><span class="dr-param optional"> cy</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description"> </span></li>
</ol></div>
</div></section></article><article id=" Matrix.split" class=" Matrix-split-section"><header><h3 id=" Matrix.split" class="dr- method"> Matrix.split<a href="# Matrix.split" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3517 in the source" href="raphael-src.html#L3517">➭</a></h3></header>
<section><div class="extra" id=" Matrix.split-extra"></div><div class="dr- method"><p>*
Splits matrix into primitive transformations
</p>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">in format:</span></p>
<ol class="dr-json"><li><span class="dr-json-key">dx</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">translation by x</span>
<li><span class="dr-json-key">dy</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">translation by y</span>
<li><span class="dr-json-key">scalex</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">scale by x</span>
<li><span class="dr-json-key">scaley</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">scale by y</span>
<li><span class="dr-json-key">shear</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">shear</span>
<li><span class="dr-json-key">rotate</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">rotation in deg</span>
<li><span class="dr-json-key">isSimple</span><span class="dr-type"><em class="dr-type-boolean">boolean</em></span><span class="dr-json-description">could it be represented via simple transformations</span>
</ol>
</div></section></article><article id=" Matrix.toTransformString" class=" Matrix-toTransformString-section"><header><h3 id=" Matrix.toTransformString" class="dr- method"> Matrix.toTransformString<a href="# Matrix.toTransformString" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3560 in the source" href="raphael-src.html#L3560">➭</a></h3></header>
<section><div class="extra" id=" Matrix.toTransformString-extra"></div><div class="dr- method"><p>*
Return transform string that represents given matrix
</p>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-string">string</em> <span class="dr-description">transform string</span></p>
</div></section></article><article id=" Matrix.translate" class=" Matrix-translate-section"><header><h3 id=" Matrix.translate" class="dr- method"> Matrix.translate<a href="# Matrix.translate" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3406 in the source" href="raphael-src.html#L3406">➭</a></h3></header>
<section><div class="extra" id=" Matrix.translate-extra"></div><div class="dr- method"><p>*
Translate the matrix
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> x</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description"> </span></li>
<li class="topcoat-list__item"><span class="dr-param"> y</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description"> </span></li>
</ol></div>
</div></section></article><article id=" Matrix.x" class=" Matrix-x-section"><header><h3 id=" Matrix.x" class="dr- method"> Matrix.x<a href="# Matrix.x" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3458 in the source" href="raphael-src.html#L3458">➭</a></h3></header>
<section><div class="extra" id=" Matrix.x-extra"></div><div class="dr- method"><p>*
Return x coordinate for given point after transformation described by the matrix. See also <a href="#Matrix.y" class="dr-link">Matrix.y</a>
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> x</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description"> </span></li>
<li class="topcoat-list__item"><span class="dr-param"> y</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description"> </span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-number">number</em> <span class="dr-description">x</span></p>
</div></section></article><article id=" Matrix.y" class=" Matrix-y-section"><header><h3 id=" Matrix.y" class="dr- method"> Matrix.y<a href="# Matrix.y" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3472 in the source" href="raphael-src.html#L3472">➭</a></h3></header>
<section><div class="extra" id=" Matrix.y-extra"></div><div class="dr- method"><p>*
Return y coordinate for given point after transformation described by the matrix. See also <a href="#Matrix.x" class="dr-link">Matrix.x</a>
</p>
<h3> Parameters</h3><div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> x</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description"> </span></li>
<li class="topcoat-list__item"><span class="dr-param"> y</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description"> </span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-number">number</em> <span class="dr-description">y</span></p>
</div></section></article><article id=" Paper" class=" Paper-section"><header><h2 id=" Paper" class="undefined"> Paper<a href="# Paper" title="Link to this section" class="dr-hash">⚓</a></h2></header>
<section><div class="extra" id=" Paper-extra"></div></section></article><article id=" Paper.add" class=" Paper-add-section"><header><h3 id=" Paper.add" class="dr- method"> Paper.add<a href="# Paper.add" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 6432 in the source" href="raphael-src.html#L6432">➭</a></h3></header>
<section><div class="extra" id=" Paper.add-extra"></div><div class="dr- method"><p>*
Imports elements in JSON array in format <code>{type: type, <attributes>}</code>
*
</p>
<h3> Parameters</h3><p>*
</p>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> json</span>
<span class="dr-type"><em class="dr-type-array">array</em></span>
<span class="dr-description"> </span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">resulting set of imported elements</span></p>
<h3> Usage</h3><section class="code"><pre class="javascript code"><code data-language="javascript" class="language-javascript"> paper.add([
{
type: "circle",
cx: 10,
cy: 10,
r: 5
},
{
type: "rect",
x: 10,
y: 10,
width: 10,
height: 10,
fill: "#fc0"
}
]);
</code></pre></section>
</div></section></article><article id=" Paper.bottom" class=" Paper-bottom-section"><header><h3 id=" Paper.bottom" class="dr- property"> Paper.bottom<a href="# Paper.bottom" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 4582 in the source" href="raphael-src.html#L4582">➭</a></h3></header>
<section><div class="extra" id=" Paper.bottom-extra"></div><div class="dr- property"><p>*
Points to the bottom element on the paper
</p>
</div></section></article><article id=" Paper.ca" class=" Paper-ca-section"><header><h3 id=" Paper.ca" class="dr- property"> Paper.ca<a href="# Paper.ca" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 569 in the source" href="raphael-src.html#L569">➭</a></h3></header>
<section><div class="extra" id=" Paper.ca-extra"></div><div class="dr- property"><em class="dr-type dr-type-object">object</em><p>*
Shortcut for <a href="#Paper.customAttributes" class="dr-link">Paper.customAttributes</a>
</p>
</div></section></article><article id=" Paper.circle" class=" Paper-circle-section"><header><h3 id=" Paper.circle" class="dr- method"> Paper.circle<a href="# Paper.circle" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 4294 in the source" href="raphael-src.html#L4294">➭</a></h3></header>
<section><div class="extra" id=" Paper.circle-extra"></div><div class="dr- method"><p>*
Draws a circle.
*
</p>
<h3> Parameters</h3><p>*
</p>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> x</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description">x coordinate of the centre</span></li>
<li class="topcoat-list__item"><span class="dr-param"> y</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description">y coordinate of the centre</span></li>
<li class="topcoat-list__item"><span class="dr-param"> r</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description">radius</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">Raphaël element object with type “circle”</span></p>
<p>*
</p>
<h3> Usage</h3><section class="code"><pre class="javascript code"><code data-language="javascript" class="language-javascript"> var c = paper.circle(50, 50, 40);
</code></pre></section>
</div></section></article><article id=" Paper.customAttributes" class=" Paper-customAttributes-section"><header><h3 id=" Paper.customAttributes" class="dr- property"> Paper.customAttributes<a href="# Paper.customAttributes" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 595 in the source" href="raphael-src.html#L595">➭</a></h3></header>
<section><div class="extra" id=" Paper.customAttributes-extra"></div><div class="dr- property"><em class="dr-type dr-type-object">object</em><p>*
If you have a set of attributes that you would like to represent
as a function of some number you can do it easily with custom attributes:
</p>
<h3> Usage</h3><section class="code"><pre class="javascript code"><code data-language="javascript" class="language-javascript"> paper.customAttributes.hue = function (num) {
num = num % 1;
return {fill: "hsb(" + num + ", 0.75, 1)"};
};
// Custom attribute “hue” will change fill
// to be given hue with fixed saturation and brightness.
// Now you can use it like this:
var c = paper.circle(10, 10, 10).attr({hue: .45});
// or even like this:
c.animate({hue: 1}, 1e3);
// You could also create custom attribute
// with multiple parameters:
paper.customAttributes.hsb = function (h, s, b) {
return {fill: "hsb(" + [h, s, b].join(",") + ")"};
};
c.attr({hsb: "0.5 .8 1"});
c.animate({hsb: [1, 0, 0.5]}, 1e3);
</code></pre></section>
</div></section></article><article id=" Paper.ellipse" class=" Paper-ellipse-section"><header><h3 id=" Paper.ellipse" class="dr- method"> Paper.ellipse<a href="# Paper.ellipse" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 4359 in the source" href="raphael-src.html#L4359">➭</a></h3></header>
<section><div class="extra" id=" Paper.ellipse-extra"></div><div class="dr- method"><p>*
Draws an ellipse.
*
</p>
<h3> Parameters</h3><p>*
</p>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> x</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description">x coordinate of the centre</span></li>
<li class="topcoat-list__item"><span class="dr-param"> y</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description">y coordinate of the centre</span></li>
<li class="topcoat-list__item"><span class="dr-param"> rx</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description">horizontal radius</span></li>
<li class="topcoat-list__item"><span class="dr-param"> ry</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description">vertical radius</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">Raphaël element object with type “ellipse”</span></p>
<p>*
</p>
<h3> Usage</h3><section class="code"><pre class="javascript code"><code data-language="javascript" class="language-javascript"> var c = paper.ellipse(50, 50, 40, 20);
</code></pre></section>
</div></section></article><article id=" Paper.forEach" class=" Paper-forEach-section"><header><h3 id=" Paper.forEach" class="dr- method"> Paper.forEach<a href="# Paper.forEach" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 4696 in the source" href="raphael-src.html#L4696">➭</a></h3></header>
<section><div class="extra" id=" Paper.forEach-extra"></div><div class="dr- method"><p>*
Executes given function for each element on the paper
</p>
<p> If callback function returns <code>false</code> it will stop loop running.
*
</p>
<h3> Parameters</h3><p>*
</p>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> callback</span>
<span class="dr-type"><em class="dr-type-function">function</em></span>
<span class="dr-description">function to run</span></li>
<li class="topcoat-list__item"><span class="dr-param"> thisArg</span>
<span class="dr-type"><em class="dr-type-object">object</em></span>
<span class="dr-description">context object for the callback</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">Paper object</span></p>
<h3> Usage</h3><section class="code"><pre class="javascript code"><code data-language="javascript" class="language-javascript"> paper.forEach(function (el) {
el.attr({ stroke: "blue" });
});
</code></pre></section>
</div></section></article><article id=" Paper.getElementByPoint" class=" Paper-getElementByPoint-section"><header><h3 id=" Paper.getElementByPoint" class="dr- method"> Paper.getElementByPoint<a href="# Paper.getElementByPoint" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 4620 in the source" href="raphael-src.html#L4620">➭</a></h3></header>
<section><div class="extra" id=" Paper.getElementByPoint-extra"></div><div class="dr- method"><p>*
Returns you topmost element under given point.
*
</p>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">Raphaël element object</span></p>
<h3> Parameters</h3><p>*
</p>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> x</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description">x coordinate from the top left corner of the window</span></li>
<li class="topcoat-list__item"><span class="dr-param"> y</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description">y coordinate from the top left corner of the window</span></li>
</ol></div>
<h3> Usage</h3><section class="code"><pre class="javascript code"><code data-language="javascript" class="language-javascript"> paper.getElementByPoint(mouseX, mouseY).attr({stroke: "#f00"});
</code></pre></section>
</div></section></article><article id=" Paper.getElementsByBBox" class=" Paper-getElementsByBBox-section"><header><h3 id=" Paper.getElementsByBBox" class="dr- method"> Paper.getElementsByBBox<a href="# Paper.getElementsByBBox" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 4657 in the source" href="raphael-src.html#L4657">➭</a></h3></header>
<section><div class="extra" id=" Paper.getElementsByBBox-extra"></div><div class="dr- method"><p>*
Returns set of elements that have an intersecting bounding box
*
</p>
<h3> Parameters</h3><p>*
</p>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> bbox</span>
<span class="dr-type"><em class="dr-type-object">object</em></span>
<span class="dr-description">bbox to check with</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Set" class="dr-link">Set</a></span></p>
</div></section></article><article id=" Paper.getElementsByPoint" class=" Paper-getElementsByPoint-section"><header><h3 id=" Paper.getElementsByPoint" class="dr- method"> Paper.getElementsByPoint<a href="# Paper.getElementsByPoint" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 4719 in the source" href="raphael-src.html#L4719">➭</a></h3></header>
<section><div class="extra" id=" Paper.getElementsByPoint-extra"></div><div class="dr- method"><p>*
Returns set of elements that have common point inside
*
</p>
<h3> Parameters</h3><p>*
</p>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> x</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description">x coordinate of the point</span></li>
<li class="topcoat-list__item"><span class="dr-param"> y</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description">y coordinate of the point</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Set" class="dr-link">Set</a></span></p>
</div></section></article><article id=" Paper.getFont" class=" Paper-getFont-section"><header><h3 id=" Paper.getFont" class="dr- method"> Paper.getFont<a href="# Paper.getFont" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 6309 in the source" href="raphael-src.html#L6309">➭</a></h3></header>
<section><div class="extra" id=" Paper.getFont-extra"></div><div class="dr- method"><p>*
Finds font object in the registered fonts by given parameters. You could specify only one word from the font name, like “Myriad” for “Myriad Pro”.
*
</p>
<h3> Parameters</h3><p>*
</p>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> family</span>
<span class="dr-type"><em class="dr-type-string">string</em></span>
<span class="dr-description">font family name or any word from it</span></li>
<li class="topcoat-list__item"><span class="dr-param optional"> weight</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-string">string</em></span>
<span class="dr-description">font weight</span></li>
<li class="topcoat-list__item"><span class="dr-param optional"> style</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-string">string</em></span>
<span class="dr-description">font style</span></li>
<li class="topcoat-list__item"><span class="dr-param optional"> stretch</span>
<span class="dr-optional">optional</span>
<span class="dr-type"><em class="dr-type-string">string</em></span>
<span class="dr-description">font stretch</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">the font object</span></p>
<h3> Usage</h3><section class="code"><pre class="javascript code"><code data-language="javascript" class="language-javascript"> paper.print(100, 100, "Test string", paper.getFont("Times", 800), 30);
</code></pre></section>
</div></section></article><article id=" Paper.group" class=" Paper-group-section"><header><h3 id=" Paper.group" class="dr- method"> Paper.group<a href="# Paper.group" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 4266 in the source" href="raphael-src.html#L4266">➭</a></h3></header>
<section><div class="extra" id=" Paper.group-extra"></div><div class="dr- method"><p>*
Creates a group
*
</p>
<h3> Parameters</h3><p>*
</p>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> id</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description">id of the group</span></li>
</ol></div>
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">Raphaël element object with type “group”</span></p>
<p>*
</p>
<h3> Usage</h3><section class="code"><pre class="javascript code"><code data-language="javascript" class="language-javascript"> var g = paper.group();
</code></pre></section>
</div></section></article><article id=" Paper.hide" class=" Paper-hide-section"><header><h3 id=" Paper.hide" class="dr- method"> Paper.hide<a href="# Paper.hide" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 4231 in the source" href="raphael-src.html#L4231">➭</a></h3></header>
<section><div class="extra" id=" Paper.hide-extra"></div><div class="dr- method"><p>*
Hides a paper
*
</p>
<h3> Usage</h3><section class="code"><pre class="javascript code"><code data-language="javascript" class="language-javascript"> paper.hide();
</code></pre></section>
</div></section></article><article id=" Paper.image" class=" Paper-image-section"><header><h3 id=" Paper.image" class="dr- method"> Paper.image<a href="# Paper.image" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 4439 in the source" href="raphael-src.html#L4439">➭</a></h3></header>
<section><div class="extra" id=" Paper.image-extra"></div><div class="dr- method"><p>*
Embeds an image into the surface.
*
</p>
<h3> Parameters</h3><p>*
</p>
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param"> src</span>
<span class="dr-type"><em class="dr-type-string">string</em></span>
<span class="dr-description">URI of the source image</span></li>
<li class="topcoat-list__item"><span class="dr-param"> x</span>
<span class="dr-type"><em class="dr-type-number">number</em></span>
<span class="dr-description">x coordinate position</span></li>
<li class="topcoat-list__item"><span class="dr-param"> y</span>