@balkangraph/orgchart.js 9.0.29 → 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 +28 -12
- 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', {});
|
|
@@ -2127,13 +2133,16 @@ declare class OrgChart {
|
|
|
2127
2133
|
static ORGSCRIBE_OFFSET: Array<string>;
|
|
2128
2134
|
|
|
2129
2135
|
/**
|
|
2130
|
-
*
|
|
2136
|
+
* Mouse wheel scroll step (in pixels) for the TreeList layout.
|
|
2137
|
+
* Controls vertical scroll speed in `OrgChart.layout.treeList`.
|
|
2138
|
+
* Larger values scroll faster; smaller values scroll slower.
|
|
2139
|
+
* Default: half of the first TreeList item height.
|
|
2131
2140
|
*/
|
|
2132
2141
|
static TREELIST_WHEEL_STEP: string;
|
|
2133
2142
|
|
|
2134
2143
|
|
|
2135
2144
|
/**
|
|
2136
|
-
*
|
|
2145
|
+
* Scrollbar width (in pixels) for the TreeList layout.
|
|
2137
2146
|
*/
|
|
2138
2147
|
static TREELIST_SCROLLBAR_WIDTH: number;
|
|
2139
2148
|
|
|
@@ -2554,7 +2563,10 @@ declare namespace OrgChart {
|
|
|
2554
2563
|
* move the the node on y axis
|
|
2555
2564
|
*/
|
|
2556
2565
|
movey?: number | undefined,
|
|
2557
|
-
|
|
2566
|
+
/**
|
|
2567
|
+
* TreeList layout state and configuration.
|
|
2568
|
+
* Available only when using OrgChart.layout.treeList.
|
|
2569
|
+
*/
|
|
2558
2570
|
treeList?: {
|
|
2559
2571
|
/**
|
|
2560
2572
|
* Pinned nodes at the top in TreeList layout, works with OrgChart.layout.
|
|
@@ -2578,8 +2590,10 @@ declare namespace OrgChart {
|
|
|
2578
2590
|
}
|
|
2579
2591
|
|
|
2580
2592
|
/**
|
|
2581
|
-
*
|
|
2582
|
-
*
|
|
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.
|
|
2583
2597
|
*/
|
|
2584
2598
|
isTreeListItem?: boolean | undefined
|
|
2585
2599
|
}
|
|
@@ -2709,7 +2723,7 @@ declare namespace OrgChart {
|
|
|
2709
2723
|
* `<rect x="0" y="0" height="{h}" width="{w}" fill="#039BE5" stroke-width="1" stroke="#aeaeae" rx="7" ry="7"></rect>`;
|
|
2710
2724
|
* ```
|
|
2711
2725
|
*/
|
|
2712
|
-
node?: string,
|
|
2726
|
+
node?: string | ((node: OrgChart.node, data: OrgChart.nodeData, template: OrgChart.template, config: OrgChart.options) => string),
|
|
2713
2727
|
|
|
2714
2728
|
/**
|
|
2715
2729
|
* Plus/expand button
|
|
@@ -2720,7 +2734,7 @@ declare namespace OrgChart {
|
|
|
2720
2734
|
* <line x1="15" y1="4" x2="15" y2="26" stroke-width="1" stroke="#aeaeae"></line>`;
|
|
2721
2735
|
* ```
|
|
2722
2736
|
*/
|
|
2723
|
-
plus?: string,
|
|
2737
|
+
plus?: string | ((node: OrgChart.node, data: OrgChart.nodeData, template: OrgChart.template, config: OrgChart.options) => string),
|
|
2724
2738
|
|
|
2725
2739
|
/**
|
|
2726
2740
|
* Minus/collapse button
|
|
@@ -2730,7 +2744,7 @@ declare namespace OrgChart {
|
|
|
2730
2744
|
* <line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#aeaeae"></line>`;
|
|
2731
2745
|
* ```
|
|
2732
2746
|
*/
|
|
2733
|
-
minus?: string,
|
|
2747
|
+
minus?: string | ((node: OrgChart.node, data: OrgChart.nodeData, template: OrgChart.template, config: OrgChart.options) => string),
|
|
2734
2748
|
|
|
2735
2749
|
/**
|
|
2736
2750
|
* Node menu button
|
|
@@ -2743,7 +2757,7 @@ declare namespace OrgChart {
|
|
|
2743
2757
|
* </g>`;
|
|
2744
2758
|
* ```
|
|
2745
2759
|
*/
|
|
2746
|
-
nodeMenuButton?: string,
|
|
2760
|
+
nodeMenuButton?: string | ((node: OrgChart.node, data: OrgChart.nodeData, template: OrgChart.template, config: OrgChart.options) => string),
|
|
2747
2761
|
|
|
2748
2762
|
/**
|
|
2749
2763
|
* Menu button
|
|
@@ -2767,7 +2781,7 @@ declare namespace OrgChart {
|
|
|
2767
2781
|
* </image>`;
|
|
2768
2782
|
* ```
|
|
2769
2783
|
*/
|
|
2770
|
-
img_0?: string,
|
|
2784
|
+
img_0?: string | ((node: OrgChart.node, data: OrgChart.nodeData, template: OrgChart.template, config: OrgChart.options) => string),
|
|
2771
2785
|
|
|
2772
2786
|
/**
|
|
2773
2787
|
* Link label
|
|
@@ -2815,7 +2829,9 @@ declare namespace OrgChart {
|
|
|
2815
2829
|
|
|
2816
2830
|
|
|
2817
2831
|
/**
|
|
2818
|
-
|
|
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.
|
|
2819
2835
|
* ```typescript
|
|
2820
2836
|
* OrgChart.templates.myTemplate.treeListMaxHeight = 450;
|
|
2821
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.
|
|
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"}
|