Skip to content

Commit 54ba3c3

Browse files
Added minimumVisibleLevels option to OrgConfig and FamConfig
1 parent 3178e31 commit 54ba3c3

35 files changed

+866
-874
lines changed

changelog.md

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#### Version 6.4.0
2+
* Added `Director`, `SuperAdviser` and `SuperAssistant` item types.
3+
* Added `directorsPlacementType`, `advisersPlacementType` to `OrgItemConfig`
4+
* Added `minimumVisibleLevels` option to `OrgConfig` and `FamConfig`
15
#### Version 6.3.1
26
* Fixed family diagram padding
37
* Fixed `onButtonsRender` in `TemplateConfig`
@@ -17,7 +21,7 @@
1721
* Removed GraphicsType enumeration.
1822
* Removed graphicsType from OrgConfig and FamConfig
1923
#### Version 6.1.1
20-
* Fixed `levelOffset` property to work regardless of empty levels
24+
* Fixed the `levelOffset` property to work regardless of empty levels
2125
#### Version 6.1.0
2226
* Added LevelAnnotationConfig
2327
* Added level annotation options to OrgConfig and FamConfig
@@ -48,8 +52,8 @@
4852
* Fixed frame placeholder size
4953
#### Version 5.9.0
5054
* Added `showFrame`, `fameInnerPadding`, `frameOuterPadding` properties to `primitives.orgdiagram.Config` & `primitives.famdiagram.Config`
51-
* Modified callout annotation placement for minimized nodes placed outside view port.
52-
* Fixed exception when `selectedItems` collection contains non existing items.
55+
* Modified call-out annotation placement for minimized nodes placed outside view port.
56+
* Fixed exception when `selectedItems` collection contains non-existing items.
5357
* Fixed center on cursor in AutoSize mode
5458
#### Version 5.8.2
5559
* Fixed `selectionPathMode` in Family Diagram.
@@ -58,17 +62,17 @@
5862
#### Version 5.8.0
5963
* Added `loopsLayoutMode` property to `primitives.famdiagram.Config`. Property sets loops layout optimization mode in Family Diagram. See `Loops Layout Optimization` use case.
6064
* Added extra arrows to vertical segments of loops in family diagram
61-
* Fixed spouses selection in family diagram
65+
* Fixed spouses selection in the family diagram
6266
* Fixed background annotation `includeChildren` property in family diagram having loops between items.
6367
#### Version 5.7.0
6468
* Added `primaryParent` property to `primitives.famdiagram.ItemConfig`. Property defines user preference for item placement relative to its multiple parents in Family Diagram. See Technological Tree Demo.
6569
#### Version 5.6.4
6670
* Updated IntelliSense API annotations
6771
#### Version 5.6.3
6872
* Fixed initial callout placement
69-
* Fixed neighbours selection in family diagram having inactive nodes
73+
* Fixed neighbors selection in family diagram having inactive nodes
7074
#### Version 5.6.2
71-
* Fixed performance bug in the value reader.
75+
* Fixed performance bug in the value-reader.
7276
#### Version 5.6.0
7377
* Added `placeAssistantsAboveChildren` and `placeAdvisersAboveChildren` properties to `primitives.orgdiagram.Config` & `primitives.orgdiagram.ItemConfig`.
7478
* Added `levelOffset` property to `primitives.orgdiagram.ItemConfig`.
@@ -83,7 +87,7 @@
8387
* Removed CSS file from React component
8488
#### Version 5.4.0
8589
* Added OrgDiagram & FamDiagram React components and samples.
86-
* Extracted platform specific functionality out of core.
90+
* Extracted web-specific functionality out of the core.
8791
* Added onButtonsRender event to TemplateConfig.
8892
* Added support of cycles in objects definitions of labels.
8993
* Fixed CSS scale bugs.
@@ -111,9 +115,9 @@
111115
* Added npm package header and published library to [www.npmjs.com](https://www.npmjs.com/package/basicprimitives)
112116
* Added pagination for nodes in page fit mode set to None.
113117
#### Version 5.0.4
114-
* Fixed cursor neighbours selection over template inactive items.
118+
* Fixed cursor neighbors selection over template inactive items.
115119
#### Version 5.0.3
116-
* Fixed call out placement in auto size mode when control is placed in document layout and scrolled.
120+
* Fixed call-out placement in auto-size mode when control is placed in document layout and scrolled.
117121
#### Version 5.0.2
118122
* Fixed highlight path annotation tracing when famDiagram option hiding direct connections to grandparents is enabled.
119123
* Fixed false layout invalidation on highlight changed event
@@ -127,11 +131,8 @@
127131
* Removed support of VML and IE8
128132
* Reworked Drag & Scroll to use native JavaScript draggable object
129133
* Fixed highlight call-out placement in CSS Zoom scale mode.
130-
* Fixed selection check-boxes to ignore mouse double click event
134+
* Fixed selection checkboxes to ignore mouse double click event
131135
* Fixed controls rendering inside divs having computed width and height
132-
133-
*Version 4.3.0 archived. See primitives430.zip in downloads. Archive contains demos, "how to use" examples & reference. It is available only for registered users.*
134-
135136
#### Version 4.3.0
136137
* Added option groupTitlePlacementType to primitives.famdiagram.Config and primitives.orgdiagram.Config. Property swaps positions of group title and buttons.
137138
#### Version 4.2.3
@@ -222,26 +223,24 @@
222223
* Optimized data processing and rendering. See Controls Processing Diagrams.
223224
* Fixed CSS scale. See primitives.famdiagram.Config.scale and primitives.orgdiagram.Config.scale options
224225
* Added `neighboursSelectionMode` option to `primitives.famdiagram.Config`. See `primitives.common.NeighboursSelectionMode` enumeration for ParentsAndChildren & ParentsChildrenSiblingsAndSpouses options of cursor related nodes selection.
225-
*Version 2.1.10 archived. See primitives2110.zip in downloads. Archive contains demos, "how to use" examples & reference. It is available only for registered users.*
226-
227226
#### Version 2.1.10
228227
* Fixed label annotations placement on loop connections in famDiagram.
229228
#### Version 2.1.9
230229
* Fixed label annotations placement on loop connections in famDiagram.
231230
* Changed arrow size of 2 & 3 pixel wide lines.
232231
#### Version 2.1.8
233232
* Added PageFitMode.AutoSize, autoSizeMaximum and autoSizeMinimum options to Configs of orgDiagram & famDiagram widgets.
234-
* Changed PageFitMode.PrintPreview mode to auto size widget to show all nodes of diagram.
233+
* Changed PageFitMode.PrintPreview mode to auto size widget to show all nodes of the diagram.
235234
#### Version 2.1.7
236-
* Fixed multiple spouses connection lines.
235+
* Fixed multiple spouse's connection lines.
237236
#### Version 2.1.6
238237
* Added minimizedItemShapeType to Config, ItemConfig & TemplateConfig of orgDigram & famDiagram widgets.
239238
* Added minimizedItemLineWidth, minimizedItemBorderColor, minimizedItemLineType, minimizedItemFillColor and minimizedItemOpacity to TemplateConfig of orgDigram & famDiagram widgets.
240239
* Fixed spouses connection lines.
241240
* Fixed spouses navigation.
242241
* Fixed annotation labels navigation.
243242
#### Version 2.1.5
244-
* Fixed exception on orphan invisible item.
243+
* Fixed exception an orphan invisible item.
245244
* Enforced side alignment for SubAdviser and SubAssistant item types in orgDiagram.
246245
#### Version 2.1.4
247246
* Fixed keyboard navigation with arrow keys.
@@ -250,18 +249,18 @@
250249
#### Version 2.1.2
251250
* Improved family diagram layout.
252251
#### Version 2.1.1
253-
* Fixed loops visualization in family diagram.
252+
* Fixed loops visualization in the family diagram.
254253
#### Version 2.1.0
255-
* Added support of loops in family diagram. The item defined first in users items collection stays at the top of diagram.
256-
* Added nodes grouping to children/parents. See groupByType option of primitives.famdiagram.Config
254+
* Added support of loops in the family diagram. The item defined first in users items collection stays at the top of diagram.
255+
* Added nodes grouping to children/parents. See `groupByType` option of primitives.famdiagram.Config
257256
* Fixed disconnected family fragments alignment to the top.
258257
#### Version 2.0.24
259-
* Added onItemDblClick event to famDiagram and orgDiagram widget configs.
258+
* Added `onItemDblClick` event to `famDiagram` and `orgDiagram` widget configs.
260259
#### Version 2.0.23
261-
* Added elbowDotSize option to famDiagram and orgDiagram widget configs.
260+
* Added `elbowDotSize` option to `famDiagram` and `orgDiagram` widget configs.
262261
#### Version 2.0.22
263-
* Added BackgroundAnnotationConfig to famDiagram and orgDiagram widgets. See Partners & Annotations Demo.
264-
* Added includeChildren option to primitives.orgdiagram.BackgroundAnnotationConfig selecting all descendants of annotated items.
262+
* Added `BackgroundAnnotationConfig` to `famDiagram` and `orgDiagram` widgets. See Partners & Annotations Demo.
263+
* Added `includeChildren` option to `primitives.orgdiagram.BackgroundAnnotationConfig` selecting all descendants of annotated items.
265264
#### Version 2.0.21
266265
* Added arrowsDirection option to primitives.orgdiagram.Config, primitives.famdiagram. Config. See "Arrows Direction" options in "Organizational Chart Navigation" demo.
267266
#### Version 2.0.20

samples/javascript.controls/CaseSkippedLevels.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@
6565
options.items = items;
6666
options.cursorItem = 0;
6767
options.hasSelectorCheckbox = primitives.Enabled.True;
68+
options.pageFitMode = primitives.PageFitMode.AutoFit;
69+
options.normalLevelShift = 16;
6870

6971
control = primitives.OrgDiagram(document.getElementById('basicdiagram'), options);
7072
});

samples/javascript.controls/DemoCrossTeamGroup.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
placeAssistantsAboveChildren: true,
2929
maximumColumnsInMatrix: 6,
3030
minimalVisibility: primitives.Visibility.Dot,
31+
minimumVisibleLevels: 1,
3132
selectionPathMode: primitives.SelectionPathMode.FullStack,
3233

3334
hasButtons: primitives.Enabled.Auto,

samples/javascript.controls/DemoDependencies.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
leavesPlacementType: primitives.ChildrenPlacementType.Horizontal,
4646
maximumColumnsInMatrix: 6,
4747
minimalVisibility: primitives.Visibility.Dot,
48+
minimumVisibleLevels: 0,
4849
selectionPathMode: primitives.SelectionPathMode.FullStack,
4950

5051
hasButtons: primitives.Enabled.True,

samples/javascript.controls/DemoDynamicLoading.html

Lines changed: 5 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
placeAssistantsAboveChildren: true,
6969
maximumColumnsInMatrix: 6,
7070
minimalVisibility: primitives.Visibility.Dot,
71+
minimumVisibleLevels: 2,
7172
selectionPathMode: primitives.SelectionPathMode.FullStack,
7273

7374
hasButtons: primitives.Enabled.Auto,
@@ -471,34 +472,15 @@
471472
}
472473
]
473474
],
474-
["div",
475-
{
476-
"class": "bp-item",
477-
style: {
478-
top: "22px",
479-
left: "56px",
480-
width: "118px",
481-
height: "13px",
482-
fontSize: "11px"
483-
}
484-
},
485-
["a",
486-
{
487-
name: "email",
488-
href: "",
489-
target: "_top"
490-
}
491-
]
492-
],
493475
["div",
494476
{
495477
name: "description",
496478
"class": "bp-item",
497479
style: {
498-
top: "37px",
480+
top: "22px",
499481
left: "56px",
500482
width: "118px",
501-
height: "39px",
483+
height: "54px",
502484
fontSize: "11px",
503485
overflow: "hidden"
504486
}
@@ -553,25 +535,8 @@
553535
photo.src = itemConfig.image;
554536
photo.alt = itemConfig.title;
555537

556-
var email = element.childNodes[2];
557-
email.textContent = itemConfig.email;
558-
email.href = ("mailto:" + itemConfig.email + "?Subject=Hello%20again");
559-
560-
var description = element.childNodes[3];
538+
var description = element.childNodes[2];
561539
description.textContent = itemConfig.description;
562-
563-
switch (data.renderingMode) {
564-
case primitives.RenderingMode.Create:
565-
/* Initialize template content here */
566-
email.addEventListener("click", function (e) {
567-
/* Block mouse click propagation in order to avoid layout updates before server postback*/
568-
primitives.stopPropagation(e);
569-
});
570-
break;
571-
case primitives.RenderingMode.Update:
572-
/* Update template content here */
573-
break;
574-
}
575540
}
576541

577542
if (data.templateName == "contactTemplate") {
@@ -599,7 +564,7 @@
599564
case primitives.RenderingMode.Create:
600565
/* Initialize template content here */
601566
email.addEventListener("click", function (e) {
602-
/* Block mouse click propagation in order to avoid layout updates before server postback*/
567+
/* Block mouse click propagation in order to avoid layout updates before server post back*/
603568
primitives.stopPropagation(e);
604569
});
605570
break;

samples/javascript.controls/DemoExtraLargeHierarchy.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
placeAssistantsAboveChildren: true,
2929
maximumColumnsInMatrix: 6,
3030
minimalVisibility: primitives.Visibility.Dot,
31+
minimumVisibleLevels: 2,
3132
selectionPathMode: primitives.SelectionPathMode.FullStack,
3233

3334
hasButtons: primitives.Enabled.Auto,

samples/javascript.controls/DemoFamily.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
leavesPlacementType: primitives.ChildrenPlacementType.Horizontal,
5858
maximumColumnsInMatrix: 6,
5959
minimalVisibility: primitives.Visibility.Dot,
60+
minimumVisibleLevels: 0,
6061
selectionPathMode: primitives.SelectionPathMode.None,
6162

6263
hasButtons: primitives.Enabled.Auto,

samples/javascript.controls/DemoFamilyOrdering.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
leavesPlacementType: primitives.ChildrenPlacementType.Horizontal,
5252
maximumColumnsInMatrix: 6,
5353
minimalVisibility: primitives.Visibility.Dot,
54+
minimumVisibleLevels: 1,
5455
selectionPathMode: primitives.SelectionPathMode.None,
5556

5657
hasButtons: primitives.Enabled.Auto,

samples/javascript.controls/DemoHighlightAndAnnotations.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
leavesPlacementType: primitives.ChildrenPlacementType.Horizontal,
2727
maximumColumnsInMatrix: 6,
2828
minimalVisibility: primitives.Visibility.Dot,
29+
minimumVisibleLevels: 1,
2930
selectionPathMode: primitives.SelectionPathMode.FullStack,
3031

3132
hasButtons: primitives.Enabled.Auto,

samples/javascript.controls/DemoLargeHierarchy.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
placeAssistantsAboveChildren: true,
3030
maximumColumnsInMatrix: 6,
3131
minimalVisibility: primitives.Visibility.Dot,
32+
minimumVisibleLevels: 2,
3233
selectionPathMode: primitives.SelectionPathMode.FullStack,
3334

3435
hasButtons: primitives.Enabled.Auto,

0 commit comments

Comments
 (0)