@balkangraph/orgchart.js 9.0.30 → 9.0.32
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 +51 -25
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -1727,7 +1727,13 @@ declare class OrgChart {
|
|
|
1727
1727
|
static convertNodesToCsv(nodes: Array<Object>) : string;
|
|
1728
1728
|
|
|
1729
1729
|
/**
|
|
1730
|
-
*
|
|
1730
|
+
* Wraps and formats text to fit within a given width and number of lines,
|
|
1731
|
+
* returning an SVG-compatible string.
|
|
1732
|
+
*
|
|
1733
|
+
* The method measures the provided value and inserts line breaks so the text
|
|
1734
|
+
* fits inside the specified width. If the text exceeds the allowed number of
|
|
1735
|
+
* lines, it will be truncated according to the internal wrapping rules.
|
|
1736
|
+
*
|
|
1731
1737
|
* See [Text Overflow](https://balkan.app/OrgChartJS/Docs/TextOverflow) doc page for more details
|
|
1732
1738
|
* ```typescript
|
|
1733
1739
|
* let chart = new OrgChart('#tree', {});
|
|
@@ -2557,7 +2563,10 @@ declare namespace OrgChart {
|
|
|
2557
2563
|
* move the the node on y axis
|
|
2558
2564
|
*/
|
|
2559
2565
|
movey?: number | undefined,
|
|
2560
|
-
|
|
2566
|
+
/**
|
|
2567
|
+
* TreeList layout state and configuration.
|
|
2568
|
+
* Available only when using OrgChart.layout.treeList.
|
|
2569
|
+
*/
|
|
2561
2570
|
treeList?: {
|
|
2562
2571
|
/**
|
|
2563
2572
|
* Pinned nodes at the top in TreeList layout, works with OrgChart.layout.
|
|
@@ -2581,8 +2590,10 @@ declare namespace OrgChart {
|
|
|
2581
2590
|
}
|
|
2582
2591
|
|
|
2583
2592
|
/**
|
|
2584
|
-
*
|
|
2585
|
-
*
|
|
2593
|
+
* Indicates whether this node is rendered as a Tree List item.
|
|
2594
|
+
*
|
|
2595
|
+
* When `true`, the node is displayed using the Tree List layout
|
|
2596
|
+
* instead of the standard chart layout.
|
|
2586
2597
|
*/
|
|
2587
2598
|
isTreeListItem?: boolean | undefined
|
|
2588
2599
|
}
|
|
@@ -2712,7 +2723,7 @@ declare namespace OrgChart {
|
|
|
2712
2723
|
* `<rect x="0" y="0" height="{h}" width="{w}" fill="#039BE5" stroke-width="1" stroke="#aeaeae" rx="7" ry="7"></rect>`;
|
|
2713
2724
|
* ```
|
|
2714
2725
|
*/
|
|
2715
|
-
node?: string,
|
|
2726
|
+
node?: string | ((node: OrgChart.node, data: OrgChart.nodeData, template: OrgChart.template, config: OrgChart.options) => string),
|
|
2716
2727
|
|
|
2717
2728
|
/**
|
|
2718
2729
|
* Plus/expand button
|
|
@@ -2723,7 +2734,7 @@ declare namespace OrgChart {
|
|
|
2723
2734
|
* <line x1="15" y1="4" x2="15" y2="26" stroke-width="1" stroke="#aeaeae"></line>`;
|
|
2724
2735
|
* ```
|
|
2725
2736
|
*/
|
|
2726
|
-
plus?: string,
|
|
2737
|
+
plus?: string | ((node: OrgChart.node, data: OrgChart.nodeData, template: OrgChart.template, config: OrgChart.options) => string),
|
|
2727
2738
|
|
|
2728
2739
|
/**
|
|
2729
2740
|
* Minus/collapse button
|
|
@@ -2733,7 +2744,7 @@ declare namespace OrgChart {
|
|
|
2733
2744
|
* <line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#aeaeae"></line>`;
|
|
2734
2745
|
* ```
|
|
2735
2746
|
*/
|
|
2736
|
-
minus?: string,
|
|
2747
|
+
minus?: string | ((node: OrgChart.node, data: OrgChart.nodeData, template: OrgChart.template, config: OrgChart.options) => string),
|
|
2737
2748
|
|
|
2738
2749
|
/**
|
|
2739
2750
|
* Node menu button
|
|
@@ -2746,7 +2757,7 @@ declare namespace OrgChart {
|
|
|
2746
2757
|
* </g>`;
|
|
2747
2758
|
* ```
|
|
2748
2759
|
*/
|
|
2749
|
-
nodeMenuButton?: string,
|
|
2760
|
+
nodeMenuButton?: string | ((node: OrgChart.node, data: OrgChart.nodeData, template: OrgChart.template, config: OrgChart.options) => string),
|
|
2750
2761
|
|
|
2751
2762
|
/**
|
|
2752
2763
|
* Menu button
|
|
@@ -2770,7 +2781,7 @@ declare namespace OrgChart {
|
|
|
2770
2781
|
* </image>`;
|
|
2771
2782
|
* ```
|
|
2772
2783
|
*/
|
|
2773
|
-
img_0?: string,
|
|
2784
|
+
img_0?: string | ((node: OrgChart.node, data: OrgChart.nodeData, template: OrgChart.template, config: OrgChart.options) => string),
|
|
2774
2785
|
|
|
2775
2786
|
/**
|
|
2776
2787
|
* Link label
|
|
@@ -2818,7 +2829,9 @@ declare namespace OrgChart {
|
|
|
2818
2829
|
|
|
2819
2830
|
|
|
2820
2831
|
/**
|
|
2821
|
-
|
|
2832
|
+
* Sets the maximum height of the Tree List.
|
|
2833
|
+
* When the content exceeds this height, vertical scrolling is enabled.
|
|
2834
|
+
* If set to Number.MAX_SAFE_INTEGER no scrolling is enabled.
|
|
2822
2835
|
* ```typescript
|
|
2823
2836
|
* OrgChart.templates.myTemplate.treeListMaxHeight = 450;
|
|
2824
2837
|
* ```
|
|
@@ -4411,51 +4424,64 @@ declare namespace OrgChart {
|
|
|
4411
4424
|
}
|
|
4412
4425
|
|
|
4413
4426
|
/**
|
|
4414
|
-
*
|
|
4427
|
+
* Defines how the initial chart scale is calculated to fit the container.
|
|
4415
4428
|
*/
|
|
4416
4429
|
enum match {
|
|
4417
4430
|
|
|
4418
4431
|
/**
|
|
4419
|
-
*
|
|
4420
|
-
*
|
|
4432
|
+
* Scales the chart to fit the container **height**.
|
|
4433
|
+
*
|
|
4434
|
+
* ```ts
|
|
4421
4435
|
* let chart = new OrgChart('#tree', {
|
|
4422
|
-
*
|
|
4436
|
+
* scaleInitial: OrgChart.match.height
|
|
4423
4437
|
* });
|
|
4424
4438
|
* ```
|
|
4425
4439
|
*/
|
|
4426
4440
|
height,
|
|
4427
4441
|
|
|
4428
4442
|
/**
|
|
4429
|
-
*
|
|
4430
|
-
*
|
|
4443
|
+
* Scales the chart to fit the container **width**.
|
|
4444
|
+
*
|
|
4445
|
+
* ```ts
|
|
4431
4446
|
* let chart = new OrgChart('#tree', {
|
|
4432
|
-
*
|
|
4447
|
+
* scaleInitial: OrgChart.match.width
|
|
4433
4448
|
* });
|
|
4434
4449
|
* ```
|
|
4435
4450
|
*/
|
|
4436
4451
|
width,
|
|
4437
4452
|
|
|
4438
4453
|
/**
|
|
4439
|
-
*
|
|
4440
|
-
*
|
|
4454
|
+
* Scales the chart to fit **both width and height**,
|
|
4455
|
+
* ensuring the entire chart is visible.
|
|
4456
|
+
*
|
|
4457
|
+
* ```ts
|
|
4441
4458
|
* let chart = new OrgChart('#tree', {
|
|
4442
|
-
*
|
|
4459
|
+
* scaleInitial: OrgChart.match.boundary
|
|
4443
4460
|
* });
|
|
4444
4461
|
* ```
|
|
4445
4462
|
*/
|
|
4446
4463
|
boundary,
|
|
4447
4464
|
|
|
4448
4465
|
/**
|
|
4449
|
-
*
|
|
4450
|
-
*
|
|
4466
|
+
* Scales the chart to fit the boundaries **only if**
|
|
4467
|
+
* part of the chart is outside the visible area.
|
|
4468
|
+
*
|
|
4469
|
+
* If the chart already fits, no scaling is applied.
|
|
4470
|
+
*
|
|
4471
|
+
* ```ts
|
|
4451
4472
|
* let chart = new OrgChart('#tree', {
|
|
4452
|
-
*
|
|
4473
|
+
* scaleInitial: OrgChart.match.boundaryIfOutside
|
|
4453
4474
|
* });
|
|
4454
4475
|
* ```
|
|
4455
4476
|
*/
|
|
4456
|
-
boundaryIfOutside
|
|
4457
|
-
}
|
|
4477
|
+
boundaryIfOutside,
|
|
4458
4478
|
|
|
4479
|
+
/**
|
|
4480
|
+
* Disables automatic scaling.
|
|
4481
|
+
* The chart is rendered at its default scale.
|
|
4482
|
+
*/
|
|
4483
|
+
none
|
|
4484
|
+
}
|
|
4459
4485
|
|
|
4460
4486
|
/**
|
|
4461
4487
|
* Add movable functionality
|
package/orgchart.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
1
|
+
/* eslint-disable */
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"author":{"name":"BALKAN App"},"bugs":{"email":"support@balkan.app","url":"https://github.com/BALKANGraph/OrgChartJS/issues"},"deprecated":false,"description":"Ultimate Organizational Chart JavaScript library, Interactive Diagrams","files":["orgchart.js","orgchart.d.ts","package.json","README.md"],"homepage":"https://balkan.app/","keywords":["diagram","chart","tree","orgchart","graph","svg","hierarchy","family-tree","decision-tree","visualization","tree-layout","hierarchical","javascript","js","html","html5"],"license":"SEE LICENSE IN https://balkan.app","main":"orgchart.js","types":"orgchart.d.ts","name":"@balkangraph/orgchart.js","repository":{"type":"git","url":"https://github.com/BALKANGraph/OrgChartJS"},"dependencies":{},"version":"9.00.
|
|
1
|
+
{"author":{"name":"BALKAN App"},"bugs":{"email":"support@balkan.app","url":"https://github.com/BALKANGraph/OrgChartJS/issues"},"deprecated":false,"description":"Ultimate Organizational Chart JavaScript library, Interactive Diagrams","files":["orgchart.js","orgchart.d.ts","package.json","README.md"],"homepage":"https://balkan.app/","keywords":["diagram","chart","tree","orgchart","graph","svg","hierarchy","family-tree","decision-tree","visualization","tree-layout","hierarchical","javascript","js","html","html5"],"license":"SEE LICENSE IN https://balkan.app","main":"orgchart.js","types":"orgchart.d.ts","name":"@balkangraph/orgchart.js","repository":{"type":"git","url":"https://github.com/BALKANGraph/OrgChartJS"},"dependencies":{},"version":"9.00.32"}
|