mirror of
https://github.com/rough-stuff/rough.git
synced 2026-04-22 03:00:28 -04:00
updated examples
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
<head>
|
||||
<title>RoughJS Map example with D3.js</title>
|
||||
<script src="https://rawgit.com/pshihn/rough/master/dist/rough.min.js"></script>
|
||||
<script src="https://rawgit.com/pshihn/rough/master/dist/rough.js"></script>
|
||||
<script src="https://d3js.org/d3.v4.min.js"></script>
|
||||
</head>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<head>
|
||||
<title>RoughJS sample</title>
|
||||
<script src="https://rawgit.com/pshihn/rough/master/dist/rough.min.js"></script>
|
||||
<script src="https://rawgit.com/pshihn/rough/master/dist/rough.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<head>
|
||||
<title>RoughJS Paths sample - SVG</title>
|
||||
<script src="https://rawgit.com/pshihn/rough/master/dist/rough.min.js"></script>
|
||||
<script src="https://rawgit.com/pshihn/rough/master/dist/rough.js"></script>
|
||||
<style>
|
||||
svg {
|
||||
display: block;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<head>
|
||||
<title>RoughJS Paths sample</title>
|
||||
<script src="https://rawgit.com/pshihn/rough/master/dist/rough.min.js"></script>
|
||||
<script src="https://rawgit.com/pshihn/rough/master/dist/rough.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<head>
|
||||
<title>RoughJS SVG sample</title>
|
||||
<script src="https://rawgit.com/pshihn/rough/master/dist/rough.min.js"></script>
|
||||
<script src="https://rawgit.com/pshihn/rough/master/dist/rough.js"></script>
|
||||
<style>
|
||||
svg {
|
||||
display: block;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<head>
|
||||
<title>RoughJS sample</title>
|
||||
<script src="https://rawgit.com/pshihn/rough/master/dist/rough.min.js"></script>
|
||||
<script src="https://rawgit.com/pshihn/rough/master/dist/rough.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
|
||||
<head>
|
||||
<title>RoughJS Map example with D3.js - SVG</title>
|
||||
<script src="https://rawgit.com/pshihn/workly/master/dist/workly.min.js"></script>
|
||||
<script src="https://rawgit.com/pshihn/rough/master/dist/rough.min.js"></script>
|
||||
<script src="https://rawgit.com/pshihn/rough/master/dist/rough-async.js"></script>
|
||||
<script src="//d3js.org/d3.v3.min.js"></script>
|
||||
<script src="//d3js.org/topojson.v1.min.js"></script>
|
||||
<style>
|
||||
@@ -22,7 +21,7 @@
|
||||
<script>
|
||||
const svg = document.getElementById('svg');
|
||||
const rc = rough.svg(svg, {
|
||||
async: true,
|
||||
workerURL: 'https://rawgit.com/pshihn/rough/master/dist/worker.js',
|
||||
options: {
|
||||
simplification: 0.2, roughness: 0.65
|
||||
}
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
|
||||
<head>
|
||||
<title>RoughJS Map example with D3.js - Canvas</title>
|
||||
<script src="https://rawgit.com/pshihn/workly/master/dist/workly.min.js"></script>
|
||||
<script src="https://rawgit.com/pshihn/rough/master/dist/rough.min.js"></script>
|
||||
<script src="https://rawgit.com/pshihn/rough/master/dist/rough-async.js"></script>
|
||||
<script src="//d3js.org/d3.v3.min.js"></script>
|
||||
<script src="//d3js.org/topojson.v1.min.js"></script>
|
||||
</head>
|
||||
@@ -14,7 +13,7 @@
|
||||
|
||||
<script>
|
||||
const rc = rough.canvas(document.getElementById('canvas'), {
|
||||
async: true,
|
||||
workerURL: 'https://rawgit.com/pshihn/rough/master/dist/worker.js',
|
||||
options: {
|
||||
simplification: 0.2, roughness: 0.65
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user