Skip to content

Commit ba81306

Browse files
Merge pull request #29 from BasicPrimitives/callout
Fixed callout annotation initial placement
2 parents a58c384 + b75f7d7 commit ba81306

File tree

15 files changed

+8239
-7702
lines changed

15 files changed

+8239
-7702
lines changed

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#### Version 5.6.3
2+
* Fixed initial callout placement
3+
* Fixed neighbours selection in family diagram having inactive nodes
14
#### Version 5.6.2
25
* Fixed performance bug in the value reader.
36
#### Version 5.6.0

min/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "basicprimitives",
3-
"version": "5.6.2",
3+
"version": "5.6.3",
44
"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.",
55
"main": "primitives.latest.js",
66
"scripts": {

min/primitives.latest.js

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @preserve Basic Primitives Diagrams v5.6.2
2+
* @preserve Basic Primitives Diagrams v5.6.3
33
* Copyright (c) 2013 - 2019 Basic Primitives Inc
44
*
55
* Non-commercial - Free
@@ -35,7 +35,7 @@
3535

3636
var primitives = {
3737
common: {
38-
version: "5.6.2"
38+
version: "5.6.3"
3939
},
4040
orgdiagram: {},
4141
famdiagram: {},
@@ -18177,10 +18177,9 @@ primitives.orgdiagram.DrawHighlightAnnotationTask = function (getGraphics, creat
1817718177
uiHash.isCursor = (cursorItemTask.getCursorTreeItem() == treeItemId);
1817818178
uiHash.isSelected = selectedItemsTask.isSelected(treeItemId);
1817918179
uiHash.templateName = calloutTemplate.templateConfig.name;
18180-
18181-
_graphics.position("calloutplaceholder", calloutPanelPosition.x, calloutPanelPosition.y, calloutPanelPosition.width, calloutPanelPosition.height);
1818218180
_graphics.show("calloutplaceholder");
1818318181
panel = _graphics.activate("calloutplaceholder", 15/*primitives.common.Layers.Annotation*/);
18182+
_graphics.position("calloutplaceholder", calloutPanelPosition.x, calloutPanelPosition.y, calloutPanelPosition.width, calloutPanelPosition.height);
1818418183
element = _graphics.template(
1818518184
position.x
1818618185
, position.y
@@ -25272,18 +25271,18 @@ primitives.common.family = function (source) {
2527225271

2527325272
if (onItem.call(thisArg, childid, child, 1)) {
2527425273
processed[childid] = SKIP;
25274+
}
2527525275

25276-
loopParents(this, childid, function (parentid, parent, parentLevel) {
25277-
if (!processed.hasOwnProperty(parentid)) {
25278-
processed[parentid] = null;
25276+
loopParents(this, childid, function (parentid, parent, parentLevel) {
25277+
if (!processed.hasOwnProperty(parentid)) {
25278+
processed[parentid] = null;
2527925279

25280-
if (onItem.call(thisArg, parentid, parent, 2)) {
25281-
processed[parentid] = SKIP;
25282-
}
25280+
if (onItem.call(thisArg, parentid, parent, 2)) {
25281+
processed[parentid] = SKIP;
2528325282
}
25284-
return processed[parentid];
25285-
});
25286-
}
25283+
}
25284+
return processed[parentid];
25285+
});
2528725286
}
2528825287
return processed[childid];
2528925288
});
@@ -25294,18 +25293,19 @@ primitives.common.family = function (source) {
2529425293

2529525294
if (onItem.call(thisArg, parentid, parent, 1)) {
2529625295
processed[parentid] = SKIP;
25296+
}
2529725297

25298-
loopChildren(this, parentid, function (childid, child, childLevel) {
25299-
if (!processed.hasOwnProperty(childid)) {
25300-
processed[childid] = true;
25298+
loopChildren(this, parentid, function (childid, child, childLevel) {
25299+
if (!processed.hasOwnProperty(childid)) {
25300+
processed[childid] = true;
2530125301

25302-
if (onItem.call(thisArg, childid, child, 2)) {
25303-
processed[childid] = SKIP;
25304-
}
25302+
if (onItem.call(thisArg, childid, child, 2)) {
25303+
processed[childid] = SKIP;
2530525304
}
25306-
return processed[childid];
25307-
});
25308-
}
25305+
}
25306+
return processed[childid];
25307+
});
25308+
2530925309
}
2531025310
return processed[parentid];
2531125311
});

min/primitives.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)