Debian Codegraph @

debian/README.Debian

raw
1 Here is a minimal example which shows how to display some SVG objects
2 in page served by Apache2, with the help of SVG.js:
3
4 ----------------------------------------------------------
5
6 <!DOCTYPE html>
7 <html>
8 <head>
9 <title>SVG.draggable.js</title>
10 </head>
11 <body>
12 <script type="module" src="/javascript/svg.draggable.js/src/svg.draggable.js">
13 </script>
14 <script type="module">
15 import { SVG } from '/javascript/svg.js/src/main.js'
16 // initialize SVG.js
17 var draw = SVG().addTo('body')
18
19 // draw pink square
20 var rect = draw.rect(100, 100).move(100, 50).fill('#f06')
21 // make it draggable
22 rect.draggable()
23 </script>
24 </body>
25 </html>
26
27
28 -- Georges Khaznadar <[email protected]>, Sat, 7 Dec 2024 15:53:44 +0100