updated examples

This commit is contained in:
Preet Shihn
2019-01-07 00:52:24 -08:00
parent df2395842b
commit 7be758d718
8 changed files with 10 additions and 12 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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;

View File

@@ -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>

View File

@@ -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;

View File

@@ -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>

View File

@@ -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
}

View File

@@ -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
}