Fix SVG examples that make use of display: none;

This commit is contained in:
Jürg Lehni 2014-05-07 17:32:49 +01:00
parent 6aaeb81869
commit a775d1eca4
2 changed files with 3 additions and 1 deletions

View file

@ -6,7 +6,8 @@
<script type="text/javascript" src="../../dist/paper-full.js"></script>
<script type="text/paperscript" canvas="canvas">
// Import the tiger svg:
project.importSVG(document.getElementById('svg'));
var svg = project.importSVG(document.getElementById('svg'));
svg.visible = true; // Turn off display: none;
// Resize the tiger to fit within the window:
project.activeLayer.fitBounds(view.bounds);

View file

@ -6,6 +6,7 @@
<script type="text/javascript" src="../../dist/paper-full.js"></script>
<script type="text/paperscript" canvas="canvas">
var words = project.importSVG(document.getElementById('svg'));
words.visible = true; // Turn off display: none;
words.fillColor = null;
words.strokeColor = 'black';