@balkangraph/orgchart.js 8.15.14 → 8.15.16
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 +33 -1
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -3275,8 +3275,31 @@ declare namespace OrgChart {
|
|
|
3275
3275
|
*/
|
|
3276
3276
|
collapse,
|
|
3277
3277
|
|
|
3278
|
-
|
|
3278
|
+
/**
|
|
3279
|
+
* OrgChart.action.exporting = 14;
|
|
3280
|
+
* ```typescript
|
|
3281
|
+
* let chart = new OrgChart('#tree', {
|
|
3282
|
+
* });
|
|
3283
|
+
* chart.on("field", function (sender, args) {
|
|
3284
|
+
* if (sender.manager.action == OrgChart.action.exporting) {
|
|
3285
|
+
* args.value = "hidden";
|
|
3286
|
+
* }
|
|
3287
|
+
* });
|
|
3288
|
+
* chart.load(nodes)
|
|
3289
|
+
* ```
|
|
3290
|
+
*/
|
|
3279
3291
|
exporting,
|
|
3292
|
+
|
|
3293
|
+
/**
|
|
3294
|
+
* Reload/Initialize the chart
|
|
3295
|
+
* OrgChart.action.init = 6;
|
|
3296
|
+
* ```typescript
|
|
3297
|
+
* document.getElementById("btn").addEventListener("click", function () {
|
|
3298
|
+
* chart.add({ id: 4, pid: 2, name: "Elliot Patel", title: "Sales" });
|
|
3299
|
+
* chart.draw(OrgChart.action.init);
|
|
3300
|
+
* });
|
|
3301
|
+
* ```
|
|
3302
|
+
*/
|
|
3280
3303
|
init,
|
|
3281
3304
|
|
|
3282
3305
|
/**
|
|
@@ -3300,6 +3323,15 @@ declare namespace OrgChart {
|
|
|
3300
3323
|
expandCollapse,
|
|
3301
3324
|
pan,
|
|
3302
3325
|
zoom,
|
|
3326
|
+
|
|
3327
|
+
/**
|
|
3328
|
+
* OrgChart.action.ctrlZoom = 22;
|
|
3329
|
+
* ```typescript
|
|
3330
|
+
* let chart = new OrgChart('#tree', {
|
|
3331
|
+
* mouseScrool: OrgChart.action.ctrlZoom,
|
|
3332
|
+
* });
|
|
3333
|
+
* ```
|
|
3334
|
+
*/
|
|
3303
3335
|
ctrlZoom,
|
|
3304
3336
|
xScroll,
|
|
3305
3337
|
yScroll,
|