Add methods to Item and Project to directly use SvgImporter / Exporter functionality.

This commit is contained in:
Jürg Lehni 2012-11-06 12:49:12 -08:00
parent c70948c762
commit 88e6ac09d7
21 changed files with 71 additions and 132 deletions

View file

@ -6,12 +6,7 @@
<link rel="stylesheet" href="../css/style.css">
<script type="text/javascript" src="../../dist/paper.js"></script>
<script type="text/paperscript" canvas="canvas">
project.currentStyle = {
// strokeColor: 'black',
// strokeWidth: 2,
// strokeCap: 'round'
};
SvgImporter.importSvg(document.getElementById('svg'));
project.importSvg(document.getElementById('svg'));
</script>
</head>
<body>