@balkangraph/orgchart.js 8.14.79 → 8.14.80

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
@@ -118,7 +118,10 @@ declare class OrgChart {
118
118
 
119
119
 
120
120
  /**
121
- * Can update link
121
+ * Can update link (Does the node is dropping under itself)
122
+ * ```typescript
123
+ * let canDropTheNode = chart.canUpdateLink(draggedNodeId, droppedNodeId));
124
+ * ```
122
125
  * @param id child id
123
126
  * @param pid parent id
124
127
  */
@@ -126,6 +129,10 @@ declare class OrgChart {
126
129
 
127
130
  /**
128
131
  * Removes specified node from nodes collection, redraws the chart and fires remove event.
132
+ * ```typescript
133
+ * var chart = new OrgChart('#tree', {});
134
+ * chart.removeNode(2);
135
+ * ```
129
136
  * @param id identification number of the node
130
137
  * @param callback called at the end of animation
131
138
  * @param fireEvent indicates if the remove event will be called or not