Remove Scripts/Fitting.

Scripts/Resize demonstrates the same functionality.
This commit is contained in:
Jonathan Puckey 2012-11-22 21:01:26 +01:00
parent e1bb0a23e7
commit 3bf473924a

View file

@ -1,29 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Fitting</title>
<link rel="stylesheet" href="../css/style.css">
<script type="text/javascript" src="../../dist/paper.js"></script>
<script type="text/paperscript" canvas="canvas">
var blackPath = new Path.Circle(new Point(), 10);
blackPath.fillColor = 'black';
var redPath = new Path.Circle(new Point(), 10);
redPath.fillColor = 'red';
function onResize() {
// Whenever the view is resized:
// Fit the black path, so it covers the view:
blackPath.fitBounds(view.bounds, true);
// Fit the red path, so it fits inside the view:
redPath.fitBounds(view.bounds);
}
</script>
</head>
<body>
<canvas id="canvas" resize></canvas>
</body>
</html>