mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-08-18 08:39:16 +02:00
* Namespaced ChartJS API
This commit is contained in:
parent
176286ed63
commit
bf3de15513
3
packages/chartjs/namespaced/Api.ChartJS.pas
Normal file
3
packages/chartjs/namespaced/Api.ChartJS.pas
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{$DEFINE FPC_DOTTEDUNITS}
|
||||||
|
unit Api.ChartJS;
|
||||||
|
{$include ../src/chartjs.pas}
|
@ -12,8 +12,9 @@
|
|||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
|
||||||
**********************************************************************}
|
**********************************************************************}
|
||||||
|
{$IFNDEF FPC_DOTTEDUNITS}
|
||||||
unit ChartJS;
|
unit ChartJS;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
{$MODE OBJFPC}
|
{$MODE OBJFPC}
|
||||||
{$MODESWITCH EXTERNALCLASS}
|
{$MODESWITCH EXTERNALCLASS}
|
||||||
@ -21,8 +22,11 @@ unit ChartJS;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
JS,
|
{$IFDEF FPC_DOTTEDUNITS}
|
||||||
Web;
|
JSApi.JS, BrowserApi.Web;
|
||||||
|
{$ELSE}
|
||||||
|
JS, Web;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
type
|
type
|
||||||
TChart = class;
|
TChart = class;
|
Loading…
Reference in New Issue
Block a user