This commit is contained in:
kekee000
2016-03-30 00:14:46 +08:00
parent 77b9befcd8
commit 9a45bef1bd
2 changed files with 3 additions and 35 deletions

View File

@@ -1,33 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>贝塞尔分割</title>
<script src="../dep/esl.js"></script>
<script src="../dep/jquery.min.js"></script>
<script src="../dep/clipper.js"></script>
<style>
body {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<canvas id="canvas" width="800" height="800"></canvas>
<script>
require.config({
baseUrl: '../src',
paths: {
demo: '../demo/js',
}
});
define('jquery', $);
define('ClipperLib', window.ClipperLib);
</script>
<script>require(['demo/clipper'])</script>
</body>
</html>

View File

@@ -5,7 +5,7 @@
<title>canvas拟合图像</title>
<script src="../dep/esl.js"></script>
<script src="../dep/jquery.min.js"></script>
<script src="../dep/clipper.js"></script>
<script src="../dep/paper-full.js"></script>
<link rel="stylesheet" type="text/css" href="./css/editor.css">
<style>
body {
@@ -48,7 +48,8 @@
}
});
define('jquery', window.jQuery);
define('ClipperLib', window.ClipperLib);
paper.install(window);
define('paper', paper);
</script>
<script>require(['demo/fitImage'])</script>