mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-28 22:08:54 -04:00
Add methods to Item and Project to directly use SvgImporter / Exporter functionality.
This commit is contained in:
parent
c70948c762
commit
88e6ac09d7
21 changed files with 71 additions and 132 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue