@balkangraph/orgchart.js 9.0.30 → 9.0.31

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 CHANGED
@@ -1727,7 +1727,13 @@ declare class OrgChart {
1727
1727
  static convertNodesToCsv(nodes: Array<Object>) : string;
1728
1728
 
1729
1729
  /**
1730
- * Replace a text in a field
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
- * Gets the type of the tree grid, foxed or auto.
2585
- * By default is undefined it is initialized only with OrgChart.layout.treeList lyouts
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
- * Max height if the layout is tree list
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
  * ```
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.30"}
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.31"}