first commit

This commit is contained in:
2026-01-16 14:13:44 +08:00
commit 903ff8d495
34603 changed files with 8585054 additions and 0 deletions

File diff suppressed because one or more lines are too long

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