* Namespaced JSPdf Api

This commit is contained in:
Michaël Van Canneyt 2023-11-27 23:11:19 +01:00
parent 83d39de9a2
commit 647f7c452e
2 changed files with 10 additions and 4 deletions
packages/jspdf

View File

@ -0,0 +1,3 @@
{$DEFINE FPC_DOTTEDUNITS}
unit Api.JSPdf;
{$include ../src/jspdf.pas}

View File

@ -12,8 +12,9 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**********************************************************************}
{$IFNDEF FPC_DOTTEDUNITS}
unit jsPDF;
{$ENDIF}
{$MODE OBJFPC}
{$MODESWITCH EXTERNALCLASS}
@ -21,9 +22,11 @@ unit jsPDF;
interface
uses
Types,
JS,
SysUtils;
{$IFNDEF FPC_DOTTEDUNITS}
System.Types, JSApi.JS, System.SysUtils;
{$ELSE}
Types, JS, SysUtils;
{$ENDIF}
type
TjsPDF = class external name 'jsPDF'