source: main/trunk/model-sites-dev/von-sparql/js/paper/examples/SVG Import/Nested Groups Test.html@ 28914

Last change on this file since 28914 was 28914, checked in by ak19, 10 years ago

Supporting javascript libraries and bespoke code written by Steffan to support the von-sparql user interface

File size: 2.7 KB
Line 
1<!DOCTYPE html>
2<html>
3<head>
4 <meta charset="UTF-8">
5 <title>Nested Groups Test</title>
6 <link rel="stylesheet" href="../css/style.css">
7 <script type="text/javascript" src="../../dist/paper.js"></script>
8 <script type="text/paperscript" canvas="canvas">
9 project.importSVG(document.getElementById('svg'));
10 </script>
11</head>
12<body>
13 <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="500" height="500" id="svg">
14 <g>
15 <circle cx="25" cy="25" r="20" style="fill:orange;" id="circle" />
16 <g>
17 <circle cx="75" cy="25" r="20" style="fill:red;" id="circle" />
18 <g>
19 <circle cx="125" cy="25" r="20" style="fill:pink;" id="circle" />
20 <g>
21 <circle cx="175" cy="25" r="20" style="fill:blue;" id="circle" />
22 <g>
23 <circle cx="225" cy="25" r="20" style="fill:green;" id="circle" />
24 <g>
25 <circle cx="275" cy="25" r="20" style="fill:purple;" id="circle" />
26 <g>
27 <circle cx="25" cy="75" r="20" style="fill:black;" id="circle" />
28 <g>
29 <circle cx="75" cy="75" r="20" style="fill:indigo;" id="circle" />
30 <g>
31 <circle cx="125" cy="75" r="20" style="fill:gold;" id="circle" />
32 <g>
33 <circle cx="175" cy="75" r="20" style="fill:brown;" id="circle" />
34 <g>
35 <circle cx="225" cy="75" r="20" style="fill:darkred;" id="circle" />
36 <g>
37 <circle cx="275" cy="75" r="20" style="fill:darkgreen;" id="circle" />
38 <g>
39 <circle cx="25" cy="125" r="20" style="fill:darkgrey;" id="circle" />
40 <g>
41 <circle cx="75" cy="125" r="20" style="fill:violet;" id="circle" />
42 <g>
43 <circle cx="125" cy="125" r="20" style="fill:yellow;" id="circle" />
44 <g>
45 <circle cx="175" cy="125" r="20" style="fill:lightblue;" id="circle" />
46 <g>
47 <circle cx="225" cy="125" r="20" style="fill:lightgreen;" id="circle" />
48 <g>
49 <circle cx="275" cy="125" r="20" style="fill:darkblue;" id="circle" />
50 <g>
51 <circle cx="25" cy="175" r="20" style="fill:darkorange;" id="circle" />
52 <g>
53 <circle cx="75" cy="175" r="20" style="fill:lawngreen;" id="circle" />
54 </g>
55 </g>
56 </g>
57 </g>
58 </g>
59 </g>
60 </g>
61 </g>
62 </g>
63 </g>
64 </g>
65 </g>
66 </g>
67 </g>
68 </g>
69 </g>
70 </g>
71 </g>
72 </g>
73 </g>
74
75 </svg>
76 <canvas id="canvas" width="500" height="500"></canvas>
77</body>
78</html>
Note: See TracBrowser for help on using the repository browser.