@targetprocess/relations-renderer 1.0.1-ci.7 → 1.0.2-ci.4
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/dist/relations.d.ts +4 -2
- package/dist/relations.js +6 -0
- package/package.json +1 -1
package/dist/relations.d.ts
CHANGED
|
@@ -3,10 +3,12 @@ export declare enum RelationType {
|
|
|
3
3
|
Blocker = "Blocker",
|
|
4
4
|
Relation = "Relation",
|
|
5
5
|
Link = "Link",
|
|
6
|
-
Duplicate = "Duplicate"
|
|
6
|
+
Duplicate = "Duplicate",
|
|
7
|
+
ParentChild = "Parent-Child"
|
|
7
8
|
}
|
|
8
9
|
export interface IRelation {
|
|
9
|
-
|
|
10
|
+
typeMarker: string;
|
|
11
|
+
id: string;
|
|
10
12
|
masterEntityId: number;
|
|
11
13
|
slaveEntityId: number;
|
|
12
14
|
relationType: RelationType;
|
package/dist/relations.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.relationsConfigs = exports.RelationType = void 0;
|
|
5
|
+
// Note: string values from here are used as a title DOM attribute for the arrows.
|
|
5
6
|
var RelationType;
|
|
6
7
|
(function (RelationType) {
|
|
7
8
|
RelationType["Dependency"] = "Dependency";
|
|
@@ -9,6 +10,7 @@ var RelationType;
|
|
|
9
10
|
RelationType["Relation"] = "Relation";
|
|
10
11
|
RelationType["Link"] = "Link";
|
|
11
12
|
RelationType["Duplicate"] = "Duplicate";
|
|
13
|
+
RelationType["ParentChild"] = "Parent-Child";
|
|
12
14
|
})(RelationType = exports.RelationType || (exports.RelationType = {}));
|
|
13
15
|
exports.relationsConfigs = (_a = {},
|
|
14
16
|
_a[RelationType.Dependency] = {
|
|
@@ -31,4 +33,8 @@ exports.relationsConfigs = (_a = {},
|
|
|
31
33
|
type: RelationType.Duplicate,
|
|
32
34
|
style: { color: '#e79010', violatedColor: '#f00' }
|
|
33
35
|
},
|
|
36
|
+
_a[RelationType.ParentChild] = {
|
|
37
|
+
type: RelationType.ParentChild,
|
|
38
|
+
style: { color: '#32CD32', violatedColor: '#f00' }
|
|
39
|
+
},
|
|
34
40
|
_a);
|