-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
449 additions
and
669 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<html> | ||
<head> | ||
<title>Demo</title> | ||
<link rel="stylesheet" href="./demo.css"/> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/paper-full.min.js"></script> | ||
<script type="text/javascript" src="./paperjs-offset.js"></script> | ||
<script type="text/javascript" src="./debug.js"></script> | ||
</head> | ||
<body> | ||
<canvas width="1200" height="768"></canvas> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
(function() { | ||
function DebugCase() { | ||
let canvas = document.querySelector('canvas'); | ||
paper.setup(canvas); | ||
paper.view.center = [0, 0]; | ||
|
||
const c3 = new paper.Path.Circle({ center: [180, 260], radius: 50, strokeColor: 'black' }); | ||
const c4 = new paper.Path.Circle({ center: [230, 260], radius: 40, strokeColor: 'black' }); | ||
const c5 = new paper.Path.Circle({ center: [205, 200], radius: 40, strokeColor: 'black' }); | ||
const cc1 = c3.unite(c4, { insert: true }); | ||
const cc = cc1.unite(c5, { insert: true }); | ||
c3.remove(); | ||
c4.remove(); | ||
c5.remove(); | ||
cc1.remove(); | ||
cc.bringToFront(); | ||
cc.translate(new paper.Point(-100, -100)); | ||
|
||
PaperOffset.offset(cc, 24); | ||
} | ||
|
||
window.onload = DebugCase; | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.