diff --git a/README.md b/README.md index 1a08ffd..989d50c 100644 --- a/README.md +++ b/README.md @@ -103,4 +103,23 @@ Inside `.vscode/settings.json`, set the following : } ``` -Change the `url` to the dev server url. Set the `runtimeExecutable` to your favorite chromium browser. \ No newline at end of file +Change the `url` to the dev server url. Set the `runtimeExecutable` to your favorite chromium browser. + + +# Generate definition files for SmartModeler + +Pre-requisite: `typescript`, `python3` + +Go to the `src/dts` directory and run the following command + +``` +tsc --project tsconfig.dts.json +``` + +Then, run `python3` (or `py` on Windows) on `generate_dts.py`: + +``` +python3 generate_dts.py SVGLD svgld.d.ts +``` + +A definition will be generated as `svgld.d.ts` with the namespace `SVGLD`. \ No newline at end of file diff --git a/index.html b/index.html index d9f5a08..7342bd5 100644 --- a/index.html +++ b/index.html @@ -3,12 +3,12 @@
- +