You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: changelog.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,12 @@
1
+
#### Version 5.6.0
2
+
* Added `placeAssistantsAboveChildren` and `placeAdvisersAboveChildren` properties to `primitives.orgdiagram.Config` & `primitives.orgdiagram.ItemConfig`.
3
+
* Added `levelOffset` property to `primitives.orgdiagram.ItemConfig`.
4
+
* Added extra validation for annotations properties.
1
5
#### Version 5.5.0
2
6
* Added IntelliSense API annotations to code
3
-
* Added API annotations conversion into markdown
7
+
* Added API annotations conversion into markdown
4
8
#### Version 5.4.15
5
-
* Fixed minimised items highlight alignment in React
9
+
* Fixed minimised items highlight alignment in React
6
10
#### Version 5.4.14
7
11
* Fixed objects comparison for React JSX
8
12
#### Version 5.4.12
@@ -33,7 +37,7 @@
33
37
* Published React Demo & Tutorial to Github
34
38
#### Version 5.1.0
35
39
36
-
<spanstyle="color:red">**Warning**</span>: Extracted jQuery UI Widgets into separate `file primitives.jquery.latest.js` !
40
+
**Warning**: Extracted jQuery UI Widgets into separate `file primitives.jquery.latest.js` !
37
41
* Added npm package header and published library to [www.npmjs.com](https://www.npmjs.com/package/basicprimitives)
38
42
* Added pagination for nodes in page fit mode set to None.
39
43
#### Version 5.0.4
@@ -46,7 +50,7 @@
46
50
#### Version 5.0.1
47
51
* Fixed fit to page mode in primitives.famdigram.Control.
48
52
#### Version 5.0.0
49
-
<spanstyle="color:red">**Warning**</span>: Non-backward compatible API changes!
53
+
**Warning**: Non-backward compatible API changes!
50
54
* Removed dependency on jQuery.
51
55
* Added pure JavaScript Controls `primitives.orgdiagram.Control` and `primitives.famdiagram.Control`
52
56
* Added JSON ML support for HTML templates
@@ -245,7 +249,7 @@
245
249
#### Version 1.1.1
246
250
* Added extra constructors to HighlightPathAnnotationConfig, ShapeAnnotationConfig and ConnectorAnnotationConfig.
247
251
#### Version 1.1.0
248
-
<spanstyle="color:red">**Warning**</span>: **Non-backward compatible API changes!**
252
+
**Warning**: **Non-backward compatible API changes!**
Copy file name to clipboardExpand all lines: min/package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "basicprimitives",
3
-
"version": "5.5.0",
3
+
"version": "5.6.0",
4
4
"description": "Basic Primitives Diagrams for JavaScript - data visualization components library that implements organizational chart and multi-parent dependency diagrams, contains implementations of JavaScript Controls and PDF rendering plugins.",
Copy file name to clipboardExpand all lines: samples/AdviserAndAssistantItemTypes.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ The chart is able to represent the following child positions in diagram layout r
19
19
All of them affect child placement relative to its parent in hierarchy. The following example demonstrates Adviser and Assistant types. Adviser item placed at the same level as its parent and connected to it horizontally. Assistant item is placed at level between parent and its regular children and horizontally connected to connection line between parent and its children as well.
20
20
21
21
Use `ItemConfig.adviserPlacementType` option to place adviser or assistant on the left or right side of hierarchy;
22
+
Use `ItemConfig.levelOffset` option to place assitants into multiple rows. See children layout samples.
## Adviser child nodes placement above parent's node children
41
+
42
+
If adviser node has its own children then control adds extra levels, so advisers children are placed above level of the regular children. This behavior can be altered with `placeAdvisersAboveChildren` property. So parent's node and advisers node children would be rendered side by side at the same level.
## Assitamt child nodes placement above parent's node children
48
+
49
+
If assitant node has its own children then control adds extra levels, so assitants children are placed above level of the regular children. This behavior can be altered with `placeAssistantsAboveChildren` property. So parent's node and assitants node children would be rendered side by side at the same level.
Children Placement Layout can be defined individually per item or globally for all chart items. Following chart and item config properties are used to define layout of children:
3
3
4
-
* childrenPlacementType - this property is available for chart and for individual items, it defines shape of children with enumeration `primitives.common.ChildrenPlacementType` it provides following options Vertical, Horizontal & Matrix
5
-
* leavesPlacementType - this option is available only at global chart level and it is used to control children layout having no sub children, so it is only for children of the last level in hierarchy.
6
-
* maximumColumnsInMatrix - by default children in matrix are shaped into square, in order to form them into rectangular shape you have to limit maximum number of columns in matrix, so rectangular shape would grow vertically.
4
+
*`childrenPlacementType` - this property is available for chart and for individual items, it defines shape of children with enumeration `primitives.common.ChildrenPlacementType` it provides following options `Vertical`, `Horizontal` & `Matrix`
5
+
*`leavesPlacementType` - this option is available only at global chart level and it is used to control children layout having no sub children, so it is only for children of the last level in hierarchy.
6
+
*`maximumColumnsInMatrix` - by default children in matrix are shaped into square, in order to form them into rectangular shape you have to limit maximum number of columns in matrix, so rectangular shape would grow vertically.
# Placing children into multiple horizontal levels
14
+
Children nodes can be placed into multiple rows with `levelOffset` property. Child nodes would be grouped by that property and placed in rows. Only the last row of children is effected by `childrenPlacementType` property setting their formation.
0 commit comments