@balkangraph/orgchart.js 8.2.26 → 8.2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/orgchart.d.ts +4 -4
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -407,7 +407,7 @@ declare class OrgChart extends OrgChartBase {
|
|
|
407
407
|
* Occurs in the beginning of the export. Extra css styles can be added to the exported document using this event listener or show loading image.
|
|
408
408
|
* ```typescript
|
|
409
409
|
* var chart = new OrgChart('#tree', {});
|
|
410
|
-
* chart.
|
|
410
|
+
* chart.onExportStart(() => {
|
|
411
411
|
* args.styles += '<link href="https://fonts.googleapis.com/css?family=Gochi+Hand" rel="stylesheet">';
|
|
412
412
|
* //return false; to cancel the operation
|
|
413
413
|
* });
|
|
@@ -415,7 +415,7 @@ declare class OrgChart extends OrgChartBase {
|
|
|
415
415
|
* @category Event Listeners
|
|
416
416
|
* @param listener
|
|
417
417
|
*/
|
|
418
|
-
|
|
418
|
+
onExportStart(listener: (args:
|
|
419
419
|
{
|
|
420
420
|
/**
|
|
421
421
|
* the content to be exported
|
|
@@ -464,14 +464,14 @@ declare class OrgChart extends OrgChartBase {
|
|
|
464
464
|
* Occurs in the beginning of the export. Use this event listener to hide loading image or upload exported document to your server using ArrayBuffer argument.
|
|
465
465
|
* ```typescript
|
|
466
466
|
* var chart = new OrgChart('#tree', {});
|
|
467
|
-
* chart.
|
|
467
|
+
* chart.onExportEnd(() => {
|
|
468
468
|
* //return false; to cancel the operation for example id you prefer the exported document to not download
|
|
469
469
|
* });
|
|
470
470
|
* ```
|
|
471
471
|
* @category Event Listeners
|
|
472
472
|
* @param listener
|
|
473
473
|
*/
|
|
474
|
-
|
|
474
|
+
onExportEnd(listener: (args:
|
|
475
475
|
/**
|
|
476
476
|
* for PDF/PNG
|
|
477
477
|
*/
|