From 296ecf5164513c01aa6c489860492f197af12c1b Mon Sep 17 00:00:00 2001 From: Bernhard Weichel Date: Thu, 20 Dec 2018 11:11:20 +0100 Subject: [PATCH] fix #2137 and example for linedash #1331 --- examples/js/lines.js | 16 +++++++++++++++- index.html | 9 ++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/examples/js/lines.js b/examples/js/lines.js index f44efbbc5..28e4686b3 100644 --- a/examples/js/lines.js +++ b/examples/js/lines.js @@ -23,4 +23,18 @@ doc.setLineWidth(1); doc.line(110, 20, 110, 60); doc.setLineWidth(1.5); -doc.line(115, 20, 115, 60); \ No newline at end of file +doc.line(115, 20, 115, 60); + +doc.text(10,110, "setLineDash"); + +doc.setLineWidth(0.1) +doc.setDrawColor(0,0,0); + +doc.setLineDash([2.5]) +doc.line(10,120,200,120) + +doc.setLineDash([1, 1.5, 1, 1.5, 1, 1.5, 3, 2, 3, 2, 3, 2 ]) +doc.line(10,125,200,125) + +doc.setLineDash([1, 1.5, 1, 1.5, 1, 1.5, 3, 2, 3, 2, 3, 2 ], 7.5) +doc.line(10,130,200,130) diff --git a/index.html b/index.html index 257122270..7e31c0d1a 100644 --- a/index.html +++ b/index.html @@ -28,7 +28,6 @@
-

Version 0.9.0rc2

jsPDF

@@ -84,6 +83,14 @@

Have a play.

+ +