first commit
This commit is contained in:
409
WebRoot/node_modules/pdf/jsPDF-1.3.2/examples/context2d/test_context2d.html
generated
vendored
Normal file
409
WebRoot/node_modules/pdf/jsPDF-1.3.2/examples/context2d/test_context2d.html
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
47
WebRoot/node_modules/pdf/jsPDF-1.3.2/examples/context2d/test_context2d_paths.html
generated
vendored
Normal file
47
WebRoot/node_modules/pdf/jsPDF-1.3.2/examples/context2d/test_context2d_paths.html
generated
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
<!doctype html>
|
||||
<!--
|
||||
/**
|
||||
* jsPDF Context2d PlugIn
|
||||
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
||||
*
|
||||
* Licensed under the MIT License.
|
||||
* http://opensource.org/licenses/mit-license
|
||||
*/
|
||||
-->
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
|
||||
<title>Context2D Paths Test</title>
|
||||
|
||||
</head>
|
||||
|
||||
<body style='background-color: silver; margin: 0;'>
|
||||
|
||||
<script src="../../dist/jspdf.min.js"></script>
|
||||
<script src="../../examples/js/test_harness.js"></script>
|
||||
|
||||
<script>
|
||||
var pdf = new jsPDF('p', 'pt', 'letter');
|
||||
var context = pdf.context2d;
|
||||
|
||||
context.beginPath();
|
||||
context.arc(150,150,50,0,Math.PI, false);
|
||||
context.lineTo(300,300);
|
||||
//context.moveTo(300,150);
|
||||
//context.rect(5,5,150,150);
|
||||
//context.arc(150,150,50,0,Math.PI, false);
|
||||
context.stroke();
|
||||
|
||||
context.fillStyle = 'red';
|
||||
context.fillRect(545,205,50,40);
|
||||
|
||||
pdf_test_harness_init(pdf);
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user