@likec4/core 0.22.0 → 0.24.0
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/colors.js +1 -0
- package/dist/compute-view/EdgeBuilder.js +1 -0
- package/dist/compute-view/compute-ctx.js +1 -0
- package/dist/compute-view/compute-element-view.js +2 -2
- package/dist/compute-view/compute.js +1 -0
- package/dist/compute-view/index.js +1 -0
- package/dist/compute-view/utils/anyPossibleRelations.js +1 -0
- package/dist/compute-view/utils/sortNodes.js +1 -0
- package/dist/index.js +1 -0
- package/dist/model-index/ModelIndex.js +1 -0
- package/dist/model-index/index.js +1 -0
- package/dist/types/computed-view.js +1 -0
- package/dist/types/diagram.js +1 -0
- package/dist/types/element.js +1 -0
- package/dist/types/expression.js +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/model.js +1 -0
- package/dist/types/opaque.js +1 -0
- package/dist/types/relation.js +1 -0
- package/dist/types/view.js +1 -0
- package/dist/utils/compute-node-levels.js +1 -0
- package/dist/utils/fqn.js +1 -0
- package/dist/utils/guards.js +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/relations.js +1 -0
- package/package.json +1 -1
package/dist/colors.js
CHANGED
|
@@ -23,3 +23,4 @@ export class ComputeCtx {
|
|
|
23
23
|
return new ComputeCtx(this.index, this.root, elements ? new Set(difference([...this.elements], elements)) : this.elements, relations ? new Set(difference([...this.relations], relations)) : this.relations, newImplicits);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
+
//# sourceMappingURL=compute-ctx.js.map
|
|
@@ -5,7 +5,6 @@ import { isViewRuleAutoLayout, isViewRuleExpression, isViewRuleStyle } from '../
|
|
|
5
5
|
import { compareByFqnHierarchically, failExpectedNever, ignoreNeverInRuntime, isAncestor, isSameHierarchy, parentFqn, Relations } from '../utils';
|
|
6
6
|
import { hasRelation, isAnyInOut, isBetween, isIncoming, isInside, isOutgoing } from '../utils/relations';
|
|
7
7
|
import { EdgeBuilder } from './EdgeBuilder';
|
|
8
|
-
import { sortNodes } from './utils/sortNodes';
|
|
9
8
|
import { ComputeCtx } from './compute-ctx';
|
|
10
9
|
import { anyPossibleRelations } from './utils/anyPossibleRelations';
|
|
11
10
|
import invariant from 'tiny-invariant';
|
|
@@ -463,7 +462,7 @@ export function computeElementView(view, index) {
|
|
|
463
462
|
}
|
|
464
463
|
return edge;
|
|
465
464
|
});
|
|
466
|
-
const nodes = applyViewRuleStyles(view.rules.filter(isViewRuleStyle),
|
|
465
|
+
const nodes = applyViewRuleStyles(view.rules.filter(isViewRuleStyle), [...nodesreg.values()].sort(compareByFqnHierarchically));
|
|
467
466
|
const autoLayoutRule = view.rules.find(isViewRuleAutoLayout);
|
|
468
467
|
return {
|
|
469
468
|
...view,
|
|
@@ -472,3 +471,4 @@ export function computeElementView(view, index) {
|
|
|
472
471
|
edges
|
|
473
472
|
};
|
|
474
473
|
}
|
|
474
|
+
//# sourceMappingURL=compute-element-view.js.map
|
package/dist/index.js
CHANGED
package/dist/types/diagram.js
CHANGED
package/dist/types/element.js
CHANGED
package/dist/types/expression.js
CHANGED
package/dist/types/index.js
CHANGED
package/dist/types/model.js
CHANGED
package/dist/types/opaque.js
CHANGED
package/dist/types/relation.js
CHANGED
package/dist/types/view.js
CHANGED
package/dist/utils/fqn.js
CHANGED
package/dist/utils/guards.js
CHANGED
package/dist/utils/index.js
CHANGED
package/dist/utils/relations.js
CHANGED