mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-18 20:39:22 +02:00
* Namespaced JSPdf Api
This commit is contained in:
parent
83d39de9a2
commit
647f7c452e
packages/jspdf
3
packages/jspdf/namespaced/Api.JSPdf.pas
Normal file
3
packages/jspdf/namespaced/Api.JSPdf.pas
Normal file
@ -0,0 +1,3 @@
|
||||
{$DEFINE FPC_DOTTEDUNITS}
|
||||
unit Api.JSPdf;
|
||||
{$include ../src/jspdf.pas}
|
@ -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'
|
Loading…
Reference in New Issue
Block a user