Skip to content

Commit acdfb48

Browse files
Reworked organizational chart item types
1 parent 823561c commit acdfb48

1 file changed

Lines changed: 32 additions & 34 deletions

File tree

src/enums.js

Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -489,33 +489,49 @@ export const HorizontalAlignmentType = {
489489
*/
490490
export const ItemType = {
491491
/**
492-
* The regular node is a default placement of child nodes in the form of a horizontal line.
492+
* The regular type places node below parent.
493493
*/
494494
Regular: 0,
495495
/**
496-
* The adviser type sets node placement at the same row as the logical parent node on the left or right side and makes it connected horizontally.
496+
* The assistant type places node at the row on the side of the connection line going from parent to its children.
497+
*/
498+
Assistant: 1,
499+
/**
500+
* The sub-assistant node type is a variation of the assistant node type.
501+
* The sub-assistant places node at the row on the side of the connection line
502+
* going from parent to its children. The connection line goes out of the top side of the node.
503+
*/
504+
SubAssistant: 4,
505+
/**
506+
* The adviser type places node on the right or left side of the parent.
497507
*/
498508
Adviser: 2,
499509
/**
500-
* The assistant type sets node placement at the row in between logical parent and child
501-
* rows and makes it connected horizontally to the connection line going from parent to the regular children
510+
* The sub-adviser type places node on the right or left side of the parent.
511+
* The connection line goes out of the top side of the sub-adviser node.
502512
*/
503-
Assistant: 1,
513+
SubAdviser: 5,
504514
/**
505-
* The sub-assistant node type is a variation of the assistant node type.
506-
* It places a node between the logical parent and its regular children, and the difference
507-
* is how it is connected. The top side of the node connects the sub-assistant to the connector
508-
* line going to the parent node.
509-
* @ignore
515+
* The super adviser type places node at the column between parent and
516+
* adviser nodes above the connection line going from the parent to advisers.
517+
* The super adviser node is opposite to the sub-adviser, and
518+
* it rotates the entire hierarchy of its children in the upward direction.
510519
*/
511-
SubAssistant: 4,
520+
SuperAdviser: 11,
512521
/**
513-
* The sub adviser type sets node placement at the column in between logical parent
514-
* and adviser nodes and makes it connected vertically to the connection
515-
* line going from parent to the advisers.
516-
* @ignore
522+
* The director type places node above the logical parent. So it opposite position
523+
* to the regular nodes. The director node rotates the organizational chart layout
524+
* and the hierarchy of its child nodes upward. If there is no space to place the
525+
* director above the parent, control transforms it into a regular adviser node.
526+
*/
527+
Director: 9,
528+
/**
529+
* The super assistant type places node between parent and directors
530+
* on the left or right side of the connection line connecting the parent with directors.
531+
* The super assistant node is opposite to the assistant, and
532+
* it rotates the entire hierarchy of its children in the upward direction.
517533
*/
518-
SubAdviser: 5,
534+
SuperAssistant: 10,
519535
/**
520536
* The general partner type is an imitation of multiple inheritances in the organizational chart hierarchy.
521537
* The general-partner node is drawn side by side with its logical parent, and control places
@@ -534,24 +550,6 @@ export const ItemType = {
534550
* The difference is that it has an extra connection line to its logical parent.
535551
*/
536552
AdviserPartner: 8,
537-
/**
538-
* The director type places node above the logical parent. So it completely rotates
539-
* the hierarchy of its child nodes upward. If there is no space to place the director
540-
* above the parent, control transforms it into a regular adviser node.
541-
*/
542-
Director: 9,
543-
/**
544-
* The assistant director type sets node placement at the row in between logical parent
545-
* and directors nodes row and makes it connected horizontally to the connection
546-
* line going from parent to the directors.
547-
*/
548-
AssistantDirector: 10,
549-
/**
550-
* The assistant adviser type sets node placement at the column in between logical parent
551-
* and adviser nodes column and makes it connected vertically to the connection
552-
* line going from parent to the advisers.
553-
*/
554-
AssistantAdviser: 11
555553
};
556554

557555
export const LabelType =

0 commit comments

Comments
 (0)