@likec4/core 1.11.0 → 1.12.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/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const types_index = require('./shared/core.D78YmZ_A.cjs');
3
+ const types_index = require('./shared/core.CTiE4teS.cjs');
4
4
 
5
5
  const { min: min$4, max: max$4 } = Math;
6
6
 
@@ -3912,62 +3912,69 @@ function getDefaultExportFromCjs (x) {
3912
3912
 
3913
3913
  var naturalCompareLite = {exports: {}};
3914
3914
 
3915
- /*
3916
- * @version 1.4.0
3917
- * @date 2015-10-26
3918
- * @stability 3 - Stable
3919
- * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
3920
- * @license MIT License
3921
- */
3922
-
3923
-
3924
- var naturalCompare = function(a, b) {
3925
- var i, codeA
3926
- , codeB = 1
3927
- , posA = 0
3928
- , posB = 0
3929
- , alphabet = String.alphabet;
3930
-
3931
- function getCode(str, pos, code) {
3932
- if (code) {
3933
- for (i = pos; code = getCode(str, i), code < 76 && code > 65;) ++i;
3934
- return +str.slice(pos - 1, i)
3915
+ var hasRequiredNaturalCompareLite;
3916
+
3917
+ function requireNaturalCompareLite () {
3918
+ if (hasRequiredNaturalCompareLite) return naturalCompareLite.exports;
3919
+ hasRequiredNaturalCompareLite = 1;
3920
+ /*
3921
+ * @version 1.4.0
3922
+ * @date 2015-10-26
3923
+ * @stability 3 - Stable
3924
+ * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
3925
+ * @license MIT License
3926
+ */
3927
+
3928
+
3929
+ var naturalCompare = function(a, b) {
3930
+ var i, codeA
3931
+ , codeB = 1
3932
+ , posA = 0
3933
+ , posB = 0
3934
+ , alphabet = String.alphabet;
3935
+
3936
+ function getCode(str, pos, code) {
3937
+ if (code) {
3938
+ for (i = pos; code = getCode(str, i), code < 76 && code > 65;) ++i;
3939
+ return +str.slice(pos - 1, i)
3940
+ }
3941
+ code = alphabet && alphabet.indexOf(str.charAt(pos));
3942
+ return code > -1 ? code + 76 : ((code = str.charCodeAt(pos) || 0), code < 45 || code > 127) ? code
3943
+ : code < 46 ? 65 // -
3944
+ : code < 48 ? code - 1
3945
+ : code < 58 ? code + 18 // 0-9
3946
+ : code < 65 ? code - 11
3947
+ : code < 91 ? code + 11 // A-Z
3948
+ : code < 97 ? code - 37
3949
+ : code < 123 ? code + 5 // a-z
3950
+ : code - 63
3935
3951
  }
3936
- code = alphabet && alphabet.indexOf(str.charAt(pos));
3937
- return code > -1 ? code + 76 : ((code = str.charCodeAt(pos) || 0), code < 45 || code > 127) ? code
3938
- : code < 46 ? 65 // -
3939
- : code < 48 ? code - 1
3940
- : code < 58 ? code + 18 // 0-9
3941
- : code < 65 ? code - 11
3942
- : code < 91 ? code + 11 // A-Z
3943
- : code < 97 ? code - 37
3944
- : code < 123 ? code + 5 // a-z
3945
- : code - 63
3946
- }
3947
3952
 
3948
3953
 
3949
- if ((a+="") != (b+="")) for (;codeB;) {
3950
- codeA = getCode(a, posA++);
3951
- codeB = getCode(b, posB++);
3954
+ if ((a+="") != (b+="")) for (;codeB;) {
3955
+ codeA = getCode(a, posA++);
3956
+ codeB = getCode(b, posB++);
3957
+
3958
+ if (codeA < 76 && codeB < 76 && codeA > 66 && codeB > 66) {
3959
+ codeA = getCode(a, posA, posA);
3960
+ codeB = getCode(b, posB, posA = i);
3961
+ posB = i;
3962
+ }
3952
3963
 
3953
- if (codeA < 76 && codeB < 76 && codeA > 66 && codeB > 66) {
3954
- codeA = getCode(a, posA, posA);
3955
- codeB = getCode(b, posB, posA = i);
3956
- posB = i;
3964
+ if (codeA != codeB) return (codeA < codeB) ? -1 : 1
3957
3965
  }
3966
+ return 0
3967
+ };
3958
3968
 
3959
- if (codeA != codeB) return (codeA < codeB) ? -1 : 1
3969
+ try {
3970
+ naturalCompareLite.exports = naturalCompare;
3971
+ } catch (e) {
3972
+ String.naturalCompare = naturalCompare;
3960
3973
  }
3961
- return 0
3962
- };
3963
-
3964
- try {
3965
- naturalCompareLite.exports = naturalCompare;
3966
- } catch (e) {
3967
- String.naturalCompare = naturalCompare;
3974
+ return naturalCompareLite.exports;
3968
3975
  }
3969
3976
 
3970
- var naturalCompareLiteExports = naturalCompareLite.exports;
3977
+ var naturalCompareLiteExports = requireNaturalCompareLite();
3971
3978
  const compare = /*@__PURE__*/getDefaultExportFromCjs(naturalCompareLiteExports);
3972
3979
 
3973
3980
  function compareNatural(a, b) {
@@ -4789,6 +4796,7 @@ exports.getBBoxCenter = types_index.getBBoxCenter;
4789
4796
  exports.getParallelStepsPrefix = types_index.getParallelStepsPrefix;
4790
4797
  exports.invariant = types_index.invariant;
4791
4798
  exports.isAndOperator = types_index.isAndOperator;
4799
+ exports.isAutoLayoutDirection = types_index.isAutoLayoutDirection;
4792
4800
  exports.isComputedDynamicView = types_index.isComputedDynamicView;
4793
4801
  exports.isComputedElementView = types_index.isComputedElementView;
4794
4802
  exports.isCustomElement = types_index.isCustomElement;
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as HexColorLiteral, T as ThemeColorValues, F as Fqn$1, R as RelationID$1, V as ViewID$1, E as EdgeId$1, C as ComputedView, a as Tag, b as ComputedNode, N as NodeId, c as ElementKind, d as ElementShape, e as Color, f as ComputedEdge, g as ComputedLikeC4Model, L as LayoutedLikeC4Model, h as Element, i as Relation, j as RelationshipKind, D as DiagramView, k as DiagramNode, l as DiagramEdge, m as NonEmptyArray } from './shared/core.aVt8heZL.cjs';
2
- export { at as AndOperator, A as AsFqn, aS as AutoLayoutDirection, bo as BBox, aX as BasicElementView, aW as BasicView, q as BorderStyle, B as BorderStyles, aH as ColorLiteral, bl as ComputedDynamicView, bk as ComputedElementView, p as CustomColor, b7 as CustomColorDefinitions, M as CustomElementExpr, ag as CustomRelationExpr, aD as DefaultArrowType, t as DefaultElementShape, aC as DefaultLineStyle, aE as DefaultRelationshipColor, s as DefaultThemeColor, b5 as DynamicView, b2 as DynamicViewIncludeRule, b0 as DynamicViewParallelSteps, b4 as DynamicViewRule, a$ as DynamicViewStep, b1 as DynamicViewStepOrParallel, _ as ElementExpression, S as ElementKindExpr, y as ElementKindSpecification, x as ElementKindSpecificationStyle, bs as ElementNotation, a2 as ElementPredicateExpression, z as ElementRefExpr, r as ElementShapes, u as ElementStyle, Y as ElementTagExpr, aJ as ElementThemeColorValues, aK as ElementThemeColors, a_ as ElementView, a0 as ElementWhereExpr, am as EqualOperator, J as ExpandedElementExpr, n as Expr, ak as Expression, aZ as ExtendsElementView, I as IconUrl, a6 as InOutExpr, a8 as IncomingExpr, ap as KindEqual, aN as LikeC4Theme, b8 as LikeC4View, w as Link, o as NonEmptyReadonlyArray, ar as NotOperator, av as OrOperator, aa as OutgoingExpr, az as OverviewGraph, al as ParsedLikeC4Model, P as Point, a4 as RelationExpr, ac as RelationExpression, ai as RelationPredicateExpression, ae as RelationWhereExpr, aB as RelationshipArrowType, aF as RelationshipKindSpecification, aA as RelationshipLineType, aL as RelationshipThemeColorValues, aM as RelationshipThemeColors, aY as ScopedElementView, be as StepEdgeId, bd as StepEdgeIdLiteral, an as TagEqual, v as TagSpec, aG as ThemeColor, br as ViewChange, bq as ViewManualLayout, aV as ViewRule, aT as ViewRuleAutoLayout, aO as ViewRulePredicate, aQ as ViewRuleStyle, bi as ViewWithHash, bj as ViewWithNotation, ax as WhereOperator, W as WildcardExpr, X as XYPoint, bg as extractStep, bp as getBBoxCenter, bh as getParallelStepsPrefix, au as isAndOperator, bm as isComputedDynamicView, bn as isComputedElementView, O as isCustomElement, ah as isCustomRelationExpr, b9 as isDynamicView, b3 as isDynamicViewIncludeRule, b6 as isDynamicViewParallelSteps, $ as isElement, U as isElementKindExpr, a3 as isElementPredicateExpr, G as isElementRef, Z as isElementTagExpr, ba as isElementView, a1 as isElementWhere, K as isExpandedElementExpr, bb as isExtendsElementView, a7 as isInOut, a9 as isIncoming, aq as isKindEqual, as as isNotOperator, aw as isOrOperator, ab as isOutgoing, a5 as isRelation, ad as isRelationExpression, aj as isRelationPredicateExpr, af as isRelationWhere, bc as isScopedElementView, bf as isStepEdgeId, ao as isTagEqual, aI as isThemeColor, aU as isViewRuleAutoLayout, aP as isViewRulePredicate, aR as isViewRuleStyle, Q as isWildcard, ay as whereOperatorAsPredicate } from './shared/core.aVt8heZL.cjs';
1
+ import { H as HexColorLiteral, T as ThemeColorValues, F as Fqn$1, R as RelationID$1, V as ViewID$1, E as EdgeId$1, C as ComputedView, a as Tag, b as ComputedNode, N as NodeId, c as ElementKind, d as ElementShape, e as Color, f as ComputedEdge, g as ComputedLikeC4Model, L as LayoutedLikeC4Model, h as Element, i as Relation, j as RelationshipKind, D as DiagramView, k as DiagramNode, l as DiagramEdge, m as NonEmptyArray } from './shared/core.Ik3-ZP2n.cjs';
2
+ export { at as AndOperator, A as AsFqn, aS as AutoLayoutDirection, bq as BBox, aY as BasicElementView, aX as BasicView, q as BorderStyle, B as BorderStyles, aH as ColorLiteral, bn as ComputedDynamicView, bm as ComputedElementView, p as CustomColor, b8 as CustomColorDefinitions, M as CustomElementExpr, ag as CustomRelationExpr, aD as DefaultArrowType, t as DefaultElementShape, aC as DefaultLineStyle, aE as DefaultRelationshipColor, s as DefaultThemeColor, b6 as DynamicView, b3 as DynamicViewIncludeRule, b1 as DynamicViewParallelSteps, b5 as DynamicViewRule, b0 as DynamicViewStep, b2 as DynamicViewStepOrParallel, _ as ElementExpression, S as ElementKindExpr, y as ElementKindSpecification, x as ElementKindSpecificationStyle, bu as ElementNotation, a2 as ElementPredicateExpression, z as ElementRefExpr, r as ElementShapes, u as ElementStyle, Y as ElementTagExpr, aJ as ElementThemeColorValues, aK as ElementThemeColors, a$ as ElementView, a0 as ElementWhereExpr, am as EqualOperator, J as ExpandedElementExpr, n as Expr, ak as Expression, a_ as ExtendsElementView, I as IconUrl, a6 as InOutExpr, a8 as IncomingExpr, ap as KindEqual, aN as LikeC4Theme, b9 as LikeC4View, w as Link, o as NonEmptyReadonlyArray, ar as NotOperator, av as OrOperator, aa as OutgoingExpr, az as OverviewGraph, al as ParsedLikeC4Model, P as Point, a4 as RelationExpr, ac as RelationExpression, ai as RelationPredicateExpression, ae as RelationWhereExpr, aB as RelationshipArrowType, aF as RelationshipKindSpecification, aA as RelationshipLineType, aL as RelationshipThemeColorValues, aM as RelationshipThemeColors, aZ as ScopedElementView, bf as StepEdgeId, be as StepEdgeIdLiteral, an as TagEqual, v as TagSpec, aG as ThemeColor, bl as ViewAutoLayout, bt as ViewChange, bs as ViewManualLayout, aW as ViewRule, aU as ViewRuleAutoLayout, aO as ViewRulePredicate, aQ as ViewRuleStyle, bj as ViewWithHash, bk as ViewWithNotation, ax as WhereOperator, W as WildcardExpr, X as XYPoint, bh as extractStep, br as getBBoxCenter, bi as getParallelStepsPrefix, au as isAndOperator, aT as isAutoLayoutDirection, bo as isComputedDynamicView, bp as isComputedElementView, O as isCustomElement, ah as isCustomRelationExpr, ba as isDynamicView, b4 as isDynamicViewIncludeRule, b7 as isDynamicViewParallelSteps, $ as isElement, U as isElementKindExpr, a3 as isElementPredicateExpr, G as isElementRef, Z as isElementTagExpr, bb as isElementView, a1 as isElementWhere, K as isExpandedElementExpr, bc as isExtendsElementView, a7 as isInOut, a9 as isIncoming, aq as isKindEqual, as as isNotOperator, aw as isOrOperator, ab as isOutgoing, a5 as isRelation, ad as isRelationExpression, aj as isRelationPredicateExpr, af as isRelationWhere, bd as isScopedElementView, bg as isStepEdgeId, ao as isTagEqual, aI as isThemeColor, aV as isViewRuleAutoLayout, aP as isViewRulePredicate, aR as isViewRuleStyle, Q as isWildcard, ay as whereOperatorAsPredicate } from './shared/core.Ik3-ZP2n.cjs';
3
3
  import { LiteralUnion, IsNumericLiteral } from 'type-fest';
4
4
 
5
5
  declare const ElementColors: {
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as HexColorLiteral, T as ThemeColorValues, F as Fqn$1, R as RelationID$1, V as ViewID$1, E as EdgeId$1, C as ComputedView, a as Tag, b as ComputedNode, N as NodeId, c as ElementKind, d as ElementShape, e as Color, f as ComputedEdge, g as ComputedLikeC4Model, L as LayoutedLikeC4Model, h as Element, i as Relation, j as RelationshipKind, D as DiagramView, k as DiagramNode, l as DiagramEdge, m as NonEmptyArray } from './shared/core.aVt8heZL.mjs';
2
- export { at as AndOperator, A as AsFqn, aS as AutoLayoutDirection, bo as BBox, aX as BasicElementView, aW as BasicView, q as BorderStyle, B as BorderStyles, aH as ColorLiteral, bl as ComputedDynamicView, bk as ComputedElementView, p as CustomColor, b7 as CustomColorDefinitions, M as CustomElementExpr, ag as CustomRelationExpr, aD as DefaultArrowType, t as DefaultElementShape, aC as DefaultLineStyle, aE as DefaultRelationshipColor, s as DefaultThemeColor, b5 as DynamicView, b2 as DynamicViewIncludeRule, b0 as DynamicViewParallelSteps, b4 as DynamicViewRule, a$ as DynamicViewStep, b1 as DynamicViewStepOrParallel, _ as ElementExpression, S as ElementKindExpr, y as ElementKindSpecification, x as ElementKindSpecificationStyle, bs as ElementNotation, a2 as ElementPredicateExpression, z as ElementRefExpr, r as ElementShapes, u as ElementStyle, Y as ElementTagExpr, aJ as ElementThemeColorValues, aK as ElementThemeColors, a_ as ElementView, a0 as ElementWhereExpr, am as EqualOperator, J as ExpandedElementExpr, n as Expr, ak as Expression, aZ as ExtendsElementView, I as IconUrl, a6 as InOutExpr, a8 as IncomingExpr, ap as KindEqual, aN as LikeC4Theme, b8 as LikeC4View, w as Link, o as NonEmptyReadonlyArray, ar as NotOperator, av as OrOperator, aa as OutgoingExpr, az as OverviewGraph, al as ParsedLikeC4Model, P as Point, a4 as RelationExpr, ac as RelationExpression, ai as RelationPredicateExpression, ae as RelationWhereExpr, aB as RelationshipArrowType, aF as RelationshipKindSpecification, aA as RelationshipLineType, aL as RelationshipThemeColorValues, aM as RelationshipThemeColors, aY as ScopedElementView, be as StepEdgeId, bd as StepEdgeIdLiteral, an as TagEqual, v as TagSpec, aG as ThemeColor, br as ViewChange, bq as ViewManualLayout, aV as ViewRule, aT as ViewRuleAutoLayout, aO as ViewRulePredicate, aQ as ViewRuleStyle, bi as ViewWithHash, bj as ViewWithNotation, ax as WhereOperator, W as WildcardExpr, X as XYPoint, bg as extractStep, bp as getBBoxCenter, bh as getParallelStepsPrefix, au as isAndOperator, bm as isComputedDynamicView, bn as isComputedElementView, O as isCustomElement, ah as isCustomRelationExpr, b9 as isDynamicView, b3 as isDynamicViewIncludeRule, b6 as isDynamicViewParallelSteps, $ as isElement, U as isElementKindExpr, a3 as isElementPredicateExpr, G as isElementRef, Z as isElementTagExpr, ba as isElementView, a1 as isElementWhere, K as isExpandedElementExpr, bb as isExtendsElementView, a7 as isInOut, a9 as isIncoming, aq as isKindEqual, as as isNotOperator, aw as isOrOperator, ab as isOutgoing, a5 as isRelation, ad as isRelationExpression, aj as isRelationPredicateExpr, af as isRelationWhere, bc as isScopedElementView, bf as isStepEdgeId, ao as isTagEqual, aI as isThemeColor, aU as isViewRuleAutoLayout, aP as isViewRulePredicate, aR as isViewRuleStyle, Q as isWildcard, ay as whereOperatorAsPredicate } from './shared/core.aVt8heZL.mjs';
1
+ import { H as HexColorLiteral, T as ThemeColorValues, F as Fqn$1, R as RelationID$1, V as ViewID$1, E as EdgeId$1, C as ComputedView, a as Tag, b as ComputedNode, N as NodeId, c as ElementKind, d as ElementShape, e as Color, f as ComputedEdge, g as ComputedLikeC4Model, L as LayoutedLikeC4Model, h as Element, i as Relation, j as RelationshipKind, D as DiagramView, k as DiagramNode, l as DiagramEdge, m as NonEmptyArray } from './shared/core.Ik3-ZP2n.mjs';
2
+ export { at as AndOperator, A as AsFqn, aS as AutoLayoutDirection, bq as BBox, aY as BasicElementView, aX as BasicView, q as BorderStyle, B as BorderStyles, aH as ColorLiteral, bn as ComputedDynamicView, bm as ComputedElementView, p as CustomColor, b8 as CustomColorDefinitions, M as CustomElementExpr, ag as CustomRelationExpr, aD as DefaultArrowType, t as DefaultElementShape, aC as DefaultLineStyle, aE as DefaultRelationshipColor, s as DefaultThemeColor, b6 as DynamicView, b3 as DynamicViewIncludeRule, b1 as DynamicViewParallelSteps, b5 as DynamicViewRule, b0 as DynamicViewStep, b2 as DynamicViewStepOrParallel, _ as ElementExpression, S as ElementKindExpr, y as ElementKindSpecification, x as ElementKindSpecificationStyle, bu as ElementNotation, a2 as ElementPredicateExpression, z as ElementRefExpr, r as ElementShapes, u as ElementStyle, Y as ElementTagExpr, aJ as ElementThemeColorValues, aK as ElementThemeColors, a$ as ElementView, a0 as ElementWhereExpr, am as EqualOperator, J as ExpandedElementExpr, n as Expr, ak as Expression, a_ as ExtendsElementView, I as IconUrl, a6 as InOutExpr, a8 as IncomingExpr, ap as KindEqual, aN as LikeC4Theme, b9 as LikeC4View, w as Link, o as NonEmptyReadonlyArray, ar as NotOperator, av as OrOperator, aa as OutgoingExpr, az as OverviewGraph, al as ParsedLikeC4Model, P as Point, a4 as RelationExpr, ac as RelationExpression, ai as RelationPredicateExpression, ae as RelationWhereExpr, aB as RelationshipArrowType, aF as RelationshipKindSpecification, aA as RelationshipLineType, aL as RelationshipThemeColorValues, aM as RelationshipThemeColors, aZ as ScopedElementView, bf as StepEdgeId, be as StepEdgeIdLiteral, an as TagEqual, v as TagSpec, aG as ThemeColor, bl as ViewAutoLayout, bt as ViewChange, bs as ViewManualLayout, aW as ViewRule, aU as ViewRuleAutoLayout, aO as ViewRulePredicate, aQ as ViewRuleStyle, bj as ViewWithHash, bk as ViewWithNotation, ax as WhereOperator, W as WildcardExpr, X as XYPoint, bh as extractStep, br as getBBoxCenter, bi as getParallelStepsPrefix, au as isAndOperator, aT as isAutoLayoutDirection, bo as isComputedDynamicView, bp as isComputedElementView, O as isCustomElement, ah as isCustomRelationExpr, ba as isDynamicView, b4 as isDynamicViewIncludeRule, b7 as isDynamicViewParallelSteps, $ as isElement, U as isElementKindExpr, a3 as isElementPredicateExpr, G as isElementRef, Z as isElementTagExpr, bb as isElementView, a1 as isElementWhere, K as isExpandedElementExpr, bc as isExtendsElementView, a7 as isInOut, a9 as isIncoming, aq as isKindEqual, as as isNotOperator, aw as isOrOperator, ab as isOutgoing, a5 as isRelation, ad as isRelationExpression, aj as isRelationPredicateExpr, af as isRelationWhere, bd as isScopedElementView, bg as isStepEdgeId, ao as isTagEqual, aI as isThemeColor, aV as isViewRuleAutoLayout, aP as isViewRulePredicate, aR as isViewRuleStyle, Q as isWildcard, ay as whereOperatorAsPredicate } from './shared/core.Ik3-ZP2n.mjs';
3
3
  import { LiteralUnion, IsNumericLiteral } from 'type-fest';
4
4
 
5
5
  declare const ElementColors: {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as HexColorLiteral, T as ThemeColorValues, F as Fqn$1, R as RelationID$1, V as ViewID$1, E as EdgeId$1, C as ComputedView, a as Tag, b as ComputedNode, N as NodeId, c as ElementKind, d as ElementShape, e as Color, f as ComputedEdge, g as ComputedLikeC4Model, L as LayoutedLikeC4Model, h as Element, i as Relation, j as RelationshipKind, D as DiagramView, k as DiagramNode, l as DiagramEdge, m as NonEmptyArray } from './shared/core.aVt8heZL.js';
2
- export { at as AndOperator, A as AsFqn, aS as AutoLayoutDirection, bo as BBox, aX as BasicElementView, aW as BasicView, q as BorderStyle, B as BorderStyles, aH as ColorLiteral, bl as ComputedDynamicView, bk as ComputedElementView, p as CustomColor, b7 as CustomColorDefinitions, M as CustomElementExpr, ag as CustomRelationExpr, aD as DefaultArrowType, t as DefaultElementShape, aC as DefaultLineStyle, aE as DefaultRelationshipColor, s as DefaultThemeColor, b5 as DynamicView, b2 as DynamicViewIncludeRule, b0 as DynamicViewParallelSteps, b4 as DynamicViewRule, a$ as DynamicViewStep, b1 as DynamicViewStepOrParallel, _ as ElementExpression, S as ElementKindExpr, y as ElementKindSpecification, x as ElementKindSpecificationStyle, bs as ElementNotation, a2 as ElementPredicateExpression, z as ElementRefExpr, r as ElementShapes, u as ElementStyle, Y as ElementTagExpr, aJ as ElementThemeColorValues, aK as ElementThemeColors, a_ as ElementView, a0 as ElementWhereExpr, am as EqualOperator, J as ExpandedElementExpr, n as Expr, ak as Expression, aZ as ExtendsElementView, I as IconUrl, a6 as InOutExpr, a8 as IncomingExpr, ap as KindEqual, aN as LikeC4Theme, b8 as LikeC4View, w as Link, o as NonEmptyReadonlyArray, ar as NotOperator, av as OrOperator, aa as OutgoingExpr, az as OverviewGraph, al as ParsedLikeC4Model, P as Point, a4 as RelationExpr, ac as RelationExpression, ai as RelationPredicateExpression, ae as RelationWhereExpr, aB as RelationshipArrowType, aF as RelationshipKindSpecification, aA as RelationshipLineType, aL as RelationshipThemeColorValues, aM as RelationshipThemeColors, aY as ScopedElementView, be as StepEdgeId, bd as StepEdgeIdLiteral, an as TagEqual, v as TagSpec, aG as ThemeColor, br as ViewChange, bq as ViewManualLayout, aV as ViewRule, aT as ViewRuleAutoLayout, aO as ViewRulePredicate, aQ as ViewRuleStyle, bi as ViewWithHash, bj as ViewWithNotation, ax as WhereOperator, W as WildcardExpr, X as XYPoint, bg as extractStep, bp as getBBoxCenter, bh as getParallelStepsPrefix, au as isAndOperator, bm as isComputedDynamicView, bn as isComputedElementView, O as isCustomElement, ah as isCustomRelationExpr, b9 as isDynamicView, b3 as isDynamicViewIncludeRule, b6 as isDynamicViewParallelSteps, $ as isElement, U as isElementKindExpr, a3 as isElementPredicateExpr, G as isElementRef, Z as isElementTagExpr, ba as isElementView, a1 as isElementWhere, K as isExpandedElementExpr, bb as isExtendsElementView, a7 as isInOut, a9 as isIncoming, aq as isKindEqual, as as isNotOperator, aw as isOrOperator, ab as isOutgoing, a5 as isRelation, ad as isRelationExpression, aj as isRelationPredicateExpr, af as isRelationWhere, bc as isScopedElementView, bf as isStepEdgeId, ao as isTagEqual, aI as isThemeColor, aU as isViewRuleAutoLayout, aP as isViewRulePredicate, aR as isViewRuleStyle, Q as isWildcard, ay as whereOperatorAsPredicate } from './shared/core.aVt8heZL.js';
1
+ import { H as HexColorLiteral, T as ThemeColorValues, F as Fqn$1, R as RelationID$1, V as ViewID$1, E as EdgeId$1, C as ComputedView, a as Tag, b as ComputedNode, N as NodeId, c as ElementKind, d as ElementShape, e as Color, f as ComputedEdge, g as ComputedLikeC4Model, L as LayoutedLikeC4Model, h as Element, i as Relation, j as RelationshipKind, D as DiagramView, k as DiagramNode, l as DiagramEdge, m as NonEmptyArray } from './shared/core.Ik3-ZP2n.js';
2
+ export { at as AndOperator, A as AsFqn, aS as AutoLayoutDirection, bq as BBox, aY as BasicElementView, aX as BasicView, q as BorderStyle, B as BorderStyles, aH as ColorLiteral, bn as ComputedDynamicView, bm as ComputedElementView, p as CustomColor, b8 as CustomColorDefinitions, M as CustomElementExpr, ag as CustomRelationExpr, aD as DefaultArrowType, t as DefaultElementShape, aC as DefaultLineStyle, aE as DefaultRelationshipColor, s as DefaultThemeColor, b6 as DynamicView, b3 as DynamicViewIncludeRule, b1 as DynamicViewParallelSteps, b5 as DynamicViewRule, b0 as DynamicViewStep, b2 as DynamicViewStepOrParallel, _ as ElementExpression, S as ElementKindExpr, y as ElementKindSpecification, x as ElementKindSpecificationStyle, bu as ElementNotation, a2 as ElementPredicateExpression, z as ElementRefExpr, r as ElementShapes, u as ElementStyle, Y as ElementTagExpr, aJ as ElementThemeColorValues, aK as ElementThemeColors, a$ as ElementView, a0 as ElementWhereExpr, am as EqualOperator, J as ExpandedElementExpr, n as Expr, ak as Expression, a_ as ExtendsElementView, I as IconUrl, a6 as InOutExpr, a8 as IncomingExpr, ap as KindEqual, aN as LikeC4Theme, b9 as LikeC4View, w as Link, o as NonEmptyReadonlyArray, ar as NotOperator, av as OrOperator, aa as OutgoingExpr, az as OverviewGraph, al as ParsedLikeC4Model, P as Point, a4 as RelationExpr, ac as RelationExpression, ai as RelationPredicateExpression, ae as RelationWhereExpr, aB as RelationshipArrowType, aF as RelationshipKindSpecification, aA as RelationshipLineType, aL as RelationshipThemeColorValues, aM as RelationshipThemeColors, aZ as ScopedElementView, bf as StepEdgeId, be as StepEdgeIdLiteral, an as TagEqual, v as TagSpec, aG as ThemeColor, bl as ViewAutoLayout, bt as ViewChange, bs as ViewManualLayout, aW as ViewRule, aU as ViewRuleAutoLayout, aO as ViewRulePredicate, aQ as ViewRuleStyle, bj as ViewWithHash, bk as ViewWithNotation, ax as WhereOperator, W as WildcardExpr, X as XYPoint, bh as extractStep, br as getBBoxCenter, bi as getParallelStepsPrefix, au as isAndOperator, aT as isAutoLayoutDirection, bo as isComputedDynamicView, bp as isComputedElementView, O as isCustomElement, ah as isCustomRelationExpr, ba as isDynamicView, b4 as isDynamicViewIncludeRule, b7 as isDynamicViewParallelSteps, $ as isElement, U as isElementKindExpr, a3 as isElementPredicateExpr, G as isElementRef, Z as isElementTagExpr, bb as isElementView, a1 as isElementWhere, K as isExpandedElementExpr, bc as isExtendsElementView, a7 as isInOut, a9 as isIncoming, aq as isKindEqual, as as isNotOperator, aw as isOrOperator, ab as isOutgoing, a5 as isRelation, ad as isRelationExpression, aj as isRelationPredicateExpr, af as isRelationWhere, bd as isScopedElementView, bg as isStepEdgeId, ao as isTagEqual, aI as isThemeColor, aV as isViewRuleAutoLayout, aP as isViewRulePredicate, aR as isViewRuleStyle, Q as isWildcard, ay as whereOperatorAsPredicate } from './shared/core.Ik3-ZP2n.js';
3
3
  import { LiteralUnion, IsNumericLiteral } from 'type-fest';
4
4
 
5
5
  declare const ElementColors: {
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { u, e, n as nonNullable, D as DefaultRelationshipColor, a as DefaultElementShape, b as DefaultThemeColor } from './shared/core.CUlHblBQ.mjs';
2
- export { A as AsFqn, B as BorderStyles, K as DefaultArrowType, J as DefaultLineStyle, E as ElementShapes, c as Expr, V as StepEdgeId, X as extractStep, $ as getBBoxCenter, Y as getParallelStepsPrefix, i as invariant, G as isAndOperator, Z as isComputedDynamicView, _ as isComputedElementView, h as isCustomElement, x as isCustomRelationExpr, R as isDynamicView, P as isDynamicViewIncludeRule, Q as isDynamicViewParallelSteps, m as isElement, k as isElementKindExpr, p as isElementPredicateExpr, f as isElementRef, l as isElementTagExpr, S as isElementView, o as isElementWhere, g as isExpandedElementExpr, T as isExtendsElementView, r as isInOut, s as isIncoming, C as isKindEqual, F as isNotOperator, H as isOrOperator, t as isOutgoing, q as isRelation, v as isRelationExpression, y as isRelationPredicateExpr, w as isRelationWhere, U as isScopedElementView, W as isStepEdgeId, z as isTagEqual, L as isThemeColor, O as isViewRuleAutoLayout, M as isViewRulePredicate, N as isViewRuleStyle, j as isWildcard, d as nonexhaustive, I as whereOperatorAsPredicate } from './shared/core.CUlHblBQ.mjs';
1
+ import { u, e, n as nonNullable, D as DefaultRelationshipColor, a as DefaultElementShape, b as DefaultThemeColor } from './shared/core.BvFch1jG.mjs';
2
+ export { A as AsFqn, B as BorderStyles, K as DefaultArrowType, J as DefaultLineStyle, E as ElementShapes, c as Expr, W as StepEdgeId, Y as extractStep, a0 as getBBoxCenter, Z as getParallelStepsPrefix, i as invariant, G as isAndOperator, O as isAutoLayoutDirection, _ as isComputedDynamicView, $ as isComputedElementView, h as isCustomElement, x as isCustomRelationExpr, S as isDynamicView, Q as isDynamicViewIncludeRule, R as isDynamicViewParallelSteps, m as isElement, k as isElementKindExpr, p as isElementPredicateExpr, f as isElementRef, l as isElementTagExpr, T as isElementView, o as isElementWhere, g as isExpandedElementExpr, U as isExtendsElementView, r as isInOut, s as isIncoming, C as isKindEqual, F as isNotOperator, H as isOrOperator, t as isOutgoing, q as isRelation, v as isRelationExpression, y as isRelationPredicateExpr, w as isRelationWhere, V as isScopedElementView, X as isStepEdgeId, z as isTagEqual, L as isThemeColor, P as isViewRuleAutoLayout, M as isViewRulePredicate, N as isViewRuleStyle, j as isWildcard, d as nonexhaustive, I as whereOperatorAsPredicate } from './shared/core.BvFch1jG.mjs';
3
3
 
4
4
  const { min: min$4, max: max$4 } = Math;
5
5
 
@@ -3911,62 +3911,69 @@ function getDefaultExportFromCjs (x) {
3911
3911
 
3912
3912
  var naturalCompareLite = {exports: {}};
3913
3913
 
3914
- /*
3915
- * @version 1.4.0
3916
- * @date 2015-10-26
3917
- * @stability 3 - Stable
3918
- * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
3919
- * @license MIT License
3920
- */
3921
-
3922
-
3923
- var naturalCompare = function(a, b) {
3924
- var i, codeA
3925
- , codeB = 1
3926
- , posA = 0
3927
- , posB = 0
3928
- , alphabet = String.alphabet;
3929
-
3930
- function getCode(str, pos, code) {
3931
- if (code) {
3932
- for (i = pos; code = getCode(str, i), code < 76 && code > 65;) ++i;
3933
- return +str.slice(pos - 1, i)
3914
+ var hasRequiredNaturalCompareLite;
3915
+
3916
+ function requireNaturalCompareLite () {
3917
+ if (hasRequiredNaturalCompareLite) return naturalCompareLite.exports;
3918
+ hasRequiredNaturalCompareLite = 1;
3919
+ /*
3920
+ * @version 1.4.0
3921
+ * @date 2015-10-26
3922
+ * @stability 3 - Stable
3923
+ * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
3924
+ * @license MIT License
3925
+ */
3926
+
3927
+
3928
+ var naturalCompare = function(a, b) {
3929
+ var i, codeA
3930
+ , codeB = 1
3931
+ , posA = 0
3932
+ , posB = 0
3933
+ , alphabet = String.alphabet;
3934
+
3935
+ function getCode(str, pos, code) {
3936
+ if (code) {
3937
+ for (i = pos; code = getCode(str, i), code < 76 && code > 65;) ++i;
3938
+ return +str.slice(pos - 1, i)
3939
+ }
3940
+ code = alphabet && alphabet.indexOf(str.charAt(pos));
3941
+ return code > -1 ? code + 76 : ((code = str.charCodeAt(pos) || 0), code < 45 || code > 127) ? code
3942
+ : code < 46 ? 65 // -
3943
+ : code < 48 ? code - 1
3944
+ : code < 58 ? code + 18 // 0-9
3945
+ : code < 65 ? code - 11
3946
+ : code < 91 ? code + 11 // A-Z
3947
+ : code < 97 ? code - 37
3948
+ : code < 123 ? code + 5 // a-z
3949
+ : code - 63
3934
3950
  }
3935
- code = alphabet && alphabet.indexOf(str.charAt(pos));
3936
- return code > -1 ? code + 76 : ((code = str.charCodeAt(pos) || 0), code < 45 || code > 127) ? code
3937
- : code < 46 ? 65 // -
3938
- : code < 48 ? code - 1
3939
- : code < 58 ? code + 18 // 0-9
3940
- : code < 65 ? code - 11
3941
- : code < 91 ? code + 11 // A-Z
3942
- : code < 97 ? code - 37
3943
- : code < 123 ? code + 5 // a-z
3944
- : code - 63
3945
- }
3946
3951
 
3947
3952
 
3948
- if ((a+="") != (b+="")) for (;codeB;) {
3949
- codeA = getCode(a, posA++);
3950
- codeB = getCode(b, posB++);
3953
+ if ((a+="") != (b+="")) for (;codeB;) {
3954
+ codeA = getCode(a, posA++);
3955
+ codeB = getCode(b, posB++);
3956
+
3957
+ if (codeA < 76 && codeB < 76 && codeA > 66 && codeB > 66) {
3958
+ codeA = getCode(a, posA, posA);
3959
+ codeB = getCode(b, posB, posA = i);
3960
+ posB = i;
3961
+ }
3951
3962
 
3952
- if (codeA < 76 && codeB < 76 && codeA > 66 && codeB > 66) {
3953
- codeA = getCode(a, posA, posA);
3954
- codeB = getCode(b, posB, posA = i);
3955
- posB = i;
3963
+ if (codeA != codeB) return (codeA < codeB) ? -1 : 1
3956
3964
  }
3965
+ return 0
3966
+ };
3957
3967
 
3958
- if (codeA != codeB) return (codeA < codeB) ? -1 : 1
3968
+ try {
3969
+ naturalCompareLite.exports = naturalCompare;
3970
+ } catch (e) {
3971
+ String.naturalCompare = naturalCompare;
3959
3972
  }
3960
- return 0
3961
- };
3962
-
3963
- try {
3964
- naturalCompareLite.exports = naturalCompare;
3965
- } catch (e) {
3966
- String.naturalCompare = naturalCompare;
3973
+ return naturalCompareLite.exports;
3967
3974
  }
3968
3975
 
3969
- var naturalCompareLiteExports = naturalCompareLite.exports;
3976
+ var naturalCompareLiteExports = requireNaturalCompareLite();
3970
3977
  const compare = /*@__PURE__*/getDefaultExportFromCjs(naturalCompareLiteExports);
3971
3978
 
3972
3979
  function compareNatural(a, b) {
@@ -202,8 +202,11 @@ function isViewRulePredicate(rule) {
202
202
  function isViewRuleStyle(rule) {
203
203
  return "style" in rule && "targets" in rule;
204
204
  }
205
+ function isAutoLayoutDirection(autoLayout) {
206
+ return autoLayout === "TB" || autoLayout === "BT" || autoLayout === "LR" || autoLayout === "RL";
207
+ }
205
208
  function isViewRuleAutoLayout(rule) {
206
- return "autoLayout" in rule;
209
+ return "direction" in rule;
207
210
  }
208
211
  function isDynamicViewIncludeRule(rule) {
209
212
  return "include" in rule && Array.isArray(rule.include);
@@ -260,4 +263,4 @@ function getBBoxCenter({
260
263
  };
261
264
  }
262
265
 
263
- export { getBBoxCenter as $, AsFqn as A, BorderStyles as B, isKindEqual as C, DefaultRelationshipColor as D, ElementShapes as E, isNotOperator as F, isAndOperator as G, isOrOperator as H, whereOperatorAsPredicate as I, DefaultLineStyle as J, DefaultArrowType as K, isThemeColor as L, isViewRulePredicate as M, isViewRuleStyle as N, isViewRuleAutoLayout as O, isDynamicViewIncludeRule as P, isDynamicViewParallelSteps as Q, isDynamicView as R, isElementView as S, isExtendsElementView as T, isScopedElementView as U, StepEdgeId as V, isStepEdgeId as W, extractStep as X, getParallelStepsPrefix as Y, isComputedDynamicView as Z, isComputedElementView as _, DefaultElementShape as a, DefaultThemeColor as b, expression as c, nonexhaustive as d, e$1 as e, isElementRef as f, isExpandedElementExpr as g, isCustomElement as h, invariant as i, isWildcard as j, isElementKindExpr as k, isElementTagExpr as l, isElement as m, nonNullable as n, isElementWhere as o, isElementPredicateExpr as p, isRelation as q, isInOut as r, isIncoming as s, isOutgoing as t, u, isRelationExpression as v, isRelationWhere as w, isCustomRelationExpr as x, isRelationPredicateExpr as y, isTagEqual as z };
266
+ export { isComputedElementView as $, AsFqn as A, BorderStyles as B, isKindEqual as C, DefaultRelationshipColor as D, ElementShapes as E, isNotOperator as F, isAndOperator as G, isOrOperator as H, whereOperatorAsPredicate as I, DefaultLineStyle as J, DefaultArrowType as K, isThemeColor as L, isViewRulePredicate as M, isViewRuleStyle as N, isAutoLayoutDirection as O, isViewRuleAutoLayout as P, isDynamicViewIncludeRule as Q, isDynamicViewParallelSteps as R, isDynamicView as S, isElementView as T, isExtendsElementView as U, isScopedElementView as V, StepEdgeId as W, isStepEdgeId as X, extractStep as Y, getParallelStepsPrefix as Z, isComputedDynamicView as _, DefaultElementShape as a, getBBoxCenter as a0, DefaultThemeColor as b, expression as c, nonexhaustive as d, e$1 as e, isElementRef as f, isExpandedElementExpr as g, isCustomElement as h, invariant as i, isWildcard as j, isElementKindExpr as k, isElementTagExpr as l, isElement as m, nonNullable as n, isElementWhere as o, isElementPredicateExpr as p, isRelation as q, isInOut as r, isIncoming as s, isOutgoing as t, u, isRelationExpression as v, isRelationWhere as w, isCustomRelationExpr as x, isRelationPredicateExpr as y, isTagEqual as z };
@@ -204,8 +204,11 @@ function isViewRulePredicate(rule) {
204
204
  function isViewRuleStyle(rule) {
205
205
  return "style" in rule && "targets" in rule;
206
206
  }
207
+ function isAutoLayoutDirection(autoLayout) {
208
+ return autoLayout === "TB" || autoLayout === "BT" || autoLayout === "LR" || autoLayout === "RL";
209
+ }
207
210
  function isViewRuleAutoLayout(rule) {
208
- return "autoLayout" in rule;
211
+ return "direction" in rule;
209
212
  }
210
213
  function isDynamicViewIncludeRule(rule) {
211
214
  return "include" in rule && Array.isArray(rule.include);
@@ -278,6 +281,7 @@ exports.getBBoxCenter = getBBoxCenter;
278
281
  exports.getParallelStepsPrefix = getParallelStepsPrefix;
279
282
  exports.invariant = invariant;
280
283
  exports.isAndOperator = isAndOperator;
284
+ exports.isAutoLayoutDirection = isAutoLayoutDirection;
281
285
  exports.isComputedDynamicView = isComputedDynamicView;
282
286
  exports.isComputedElementView = isComputedElementView;
283
287
  exports.isCustomElement = isCustomElement;
@@ -354,8 +354,11 @@ interface ViewRuleStyle {
354
354
  }
355
355
  declare function isViewRuleStyle(rule: ViewRule): rule is ViewRuleStyle;
356
356
  type AutoLayoutDirection = 'TB' | 'BT' | 'LR' | 'RL';
357
+ declare function isAutoLayoutDirection(autoLayout: unknown): autoLayout is AutoLayoutDirection;
357
358
  interface ViewRuleAutoLayout {
358
- autoLayout: AutoLayoutDirection;
359
+ direction: AutoLayoutDirection;
360
+ nodeSep?: number;
361
+ rankSep?: number;
359
362
  }
360
363
  declare function isViewRuleAutoLayout(rule: ViewRule): rule is ViewRuleAutoLayout;
361
364
  type ViewRule = ViewRulePredicate | ViewRuleStyle | ViewRuleAutoLayout;
@@ -515,16 +518,21 @@ interface ViewWithNotation {
515
518
  elements: ElementNotation[];
516
519
  };
517
520
  }
521
+ interface ViewAutoLayout {
522
+ direction: ViewRuleAutoLayout['direction'];
523
+ rankSep?: number;
524
+ nodeSep?: number;
525
+ }
518
526
  interface ComputedElementView extends Omit<ElementView, 'rules' | 'docUri'>, ViewWithHash, ViewWithNotation {
519
527
  readonly extends?: ViewID;
520
- readonly autoLayout: ViewRuleAutoLayout['autoLayout'];
528
+ readonly autoLayout: ViewAutoLayout;
521
529
  readonly nodes: ComputedNode[];
522
530
  readonly edges: ComputedEdge[];
523
531
  rules?: never;
524
532
  docUri?: never;
525
533
  }
526
534
  interface ComputedDynamicView extends Omit<DynamicView, 'rules' | 'steps' | 'docUri'>, ViewWithHash, ViewWithNotation {
527
- readonly autoLayout: ViewRuleAutoLayout['autoLayout'];
535
+ readonly autoLayout: ViewAutoLayout;
528
536
  readonly nodes: ComputedNode[];
529
537
  readonly edges: ComputedEdge[];
530
538
  steps?: never;
@@ -570,7 +578,7 @@ type ViewManualLayout = {
570
578
  readonly y: number;
571
579
  readonly width: number;
572
580
  readonly height: number;
573
- readonly autoLayout: AutoLayoutDirection;
581
+ readonly autoLayout: ViewAutoLayout;
574
582
  readonly nodes: Record<string, {
575
583
  isCompound: boolean;
576
584
  x: number;
@@ -675,4 +683,4 @@ declare namespace ViewChange {
675
683
  }
676
684
  type ViewChange = ViewChange.ChangeElementStyle | ViewChange.SaveManualLayout | ViewChange.ChangeAutoLayout;
677
685
 
678
- export { isElement as $, AsFqn as A, BorderStyles as B, type ComputedView as C, type DiagramView as D, type EdgeId as E, type Fqn as F, isElementRef as G, type HexColorLiteral as H, type IconUrl as I, type ExpandedElementExpr as J, isExpandedElementExpr as K, type LayoutedLikeC4Model as L, type CustomElementExpr as M, type NodeId as N, isCustomElement as O, type Point as P, isWildcard as Q, type RelationID as R, type ElementKindExpr as S, type ThemeColorValues as T, isElementKindExpr as U, type ViewID as V, type WildcardExpr as W, type XYPoint as X, type ElementTagExpr as Y, isElementTagExpr as Z, type ElementExpression as _, type Tag as a, type DynamicViewStep as a$, type ElementWhereExpr as a0, isElementWhere as a1, type ElementPredicateExpression as a2, isElementPredicateExpr as a3, type RelationExpr as a4, isRelation as a5, type InOutExpr as a6, isInOut as a7, type IncomingExpr as a8, isIncoming as a9, type RelationshipLineType as aA, type RelationshipArrowType as aB, DefaultLineStyle as aC, DefaultArrowType as aD, DefaultRelationshipColor as aE, type RelationshipKindSpecification as aF, type ThemeColor as aG, type ColorLiteral as aH, isThemeColor as aI, type ElementThemeColorValues as aJ, type ElementThemeColors as aK, type RelationshipThemeColorValues as aL, type RelationshipThemeColors as aM, type LikeC4Theme as aN, type ViewRulePredicate as aO, isViewRulePredicate as aP, type ViewRuleStyle as aQ, isViewRuleStyle as aR, type AutoLayoutDirection as aS, type ViewRuleAutoLayout as aT, isViewRuleAutoLayout as aU, type ViewRule as aV, type BasicView as aW, type BasicElementView as aX, type ScopedElementView as aY, type ExtendsElementView as aZ, type ElementView as a_, type OutgoingExpr as aa, isOutgoing as ab, type RelationExpression as ac, isRelationExpression as ad, type RelationWhereExpr as ae, isRelationWhere as af, type CustomRelationExpr as ag, isCustomRelationExpr as ah, type RelationPredicateExpression as ai, isRelationPredicateExpr as aj, type Expression as ak, type ParsedLikeC4Model as al, type EqualOperator as am, type TagEqual as an, isTagEqual as ao, type KindEqual as ap, isKindEqual as aq, type NotOperator as ar, isNotOperator as as, type AndOperator as at, isAndOperator as au, type OrOperator as av, isOrOperator as aw, type WhereOperator as ax, whereOperatorAsPredicate as ay, OverviewGraph as az, type ComputedNode as b, type DynamicViewParallelSteps as b0, type DynamicViewStepOrParallel as b1, type DynamicViewIncludeRule as b2, isDynamicViewIncludeRule as b3, type DynamicViewRule as b4, type DynamicView as b5, isDynamicViewParallelSteps as b6, type CustomColorDefinitions as b7, type LikeC4View as b8, isDynamicView as b9, isElementView as ba, isExtendsElementView as bb, isScopedElementView as bc, type StepEdgeIdLiteral as bd, StepEdgeId as be, isStepEdgeId as bf, extractStep as bg, getParallelStepsPrefix as bh, type ViewWithHash as bi, type ViewWithNotation as bj, type ComputedElementView as bk, type ComputedDynamicView as bl, isComputedDynamicView as bm, isComputedElementView as bn, type BBox as bo, getBBoxCenter as bp, type ViewManualLayout as bq, ViewChange as br, type ElementNotation as bs, type ElementKind as c, type ElementShape as d, type Color as e, type ComputedEdge as f, type ComputedLikeC4Model as g, type Element as h, type Relation as i, type RelationshipKind as j, type DiagramNode as k, type DiagramEdge as l, type NonEmptyArray as m, expression as n, type NonEmptyReadonlyArray as o, type CustomColor as p, type BorderStyle as q, ElementShapes as r, DefaultThemeColor as s, DefaultElementShape as t, type ElementStyle as u, type TagSpec as v, type Link as w, type ElementKindSpecificationStyle as x, type ElementKindSpecification as y, type ElementRefExpr as z };
686
+ export { isElement as $, AsFqn as A, BorderStyles as B, type ComputedView as C, type DiagramView as D, type EdgeId as E, type Fqn as F, isElementRef as G, type HexColorLiteral as H, type IconUrl as I, type ExpandedElementExpr as J, isExpandedElementExpr as K, type LayoutedLikeC4Model as L, type CustomElementExpr as M, type NodeId as N, isCustomElement as O, type Point as P, isWildcard as Q, type RelationID as R, type ElementKindExpr as S, type ThemeColorValues as T, isElementKindExpr as U, type ViewID as V, type WildcardExpr as W, type XYPoint as X, type ElementTagExpr as Y, isElementTagExpr as Z, type ElementExpression as _, type Tag as a, type ElementView as a$, type ElementWhereExpr as a0, isElementWhere as a1, type ElementPredicateExpression as a2, isElementPredicateExpr as a3, type RelationExpr as a4, isRelation as a5, type InOutExpr as a6, isInOut as a7, type IncomingExpr as a8, isIncoming as a9, type RelationshipLineType as aA, type RelationshipArrowType as aB, DefaultLineStyle as aC, DefaultArrowType as aD, DefaultRelationshipColor as aE, type RelationshipKindSpecification as aF, type ThemeColor as aG, type ColorLiteral as aH, isThemeColor as aI, type ElementThemeColorValues as aJ, type ElementThemeColors as aK, type RelationshipThemeColorValues as aL, type RelationshipThemeColors as aM, type LikeC4Theme as aN, type ViewRulePredicate as aO, isViewRulePredicate as aP, type ViewRuleStyle as aQ, isViewRuleStyle as aR, type AutoLayoutDirection as aS, isAutoLayoutDirection as aT, type ViewRuleAutoLayout as aU, isViewRuleAutoLayout as aV, type ViewRule as aW, type BasicView as aX, type BasicElementView as aY, type ScopedElementView as aZ, type ExtendsElementView as a_, type OutgoingExpr as aa, isOutgoing as ab, type RelationExpression as ac, isRelationExpression as ad, type RelationWhereExpr as ae, isRelationWhere as af, type CustomRelationExpr as ag, isCustomRelationExpr as ah, type RelationPredicateExpression as ai, isRelationPredicateExpr as aj, type Expression as ak, type ParsedLikeC4Model as al, type EqualOperator as am, type TagEqual as an, isTagEqual as ao, type KindEqual as ap, isKindEqual as aq, type NotOperator as ar, isNotOperator as as, type AndOperator as at, isAndOperator as au, type OrOperator as av, isOrOperator as aw, type WhereOperator as ax, whereOperatorAsPredicate as ay, OverviewGraph as az, type ComputedNode as b, type DynamicViewStep as b0, type DynamicViewParallelSteps as b1, type DynamicViewStepOrParallel as b2, type DynamicViewIncludeRule as b3, isDynamicViewIncludeRule as b4, type DynamicViewRule as b5, type DynamicView as b6, isDynamicViewParallelSteps as b7, type CustomColorDefinitions as b8, type LikeC4View as b9, isDynamicView as ba, isElementView as bb, isExtendsElementView as bc, isScopedElementView as bd, type StepEdgeIdLiteral as be, StepEdgeId as bf, isStepEdgeId as bg, extractStep as bh, getParallelStepsPrefix as bi, type ViewWithHash as bj, type ViewWithNotation as bk, type ViewAutoLayout as bl, type ComputedElementView as bm, type ComputedDynamicView as bn, isComputedDynamicView as bo, isComputedElementView as bp, type BBox as bq, getBBoxCenter as br, type ViewManualLayout as bs, ViewChange as bt, type ElementNotation as bu, type ElementKind as c, type ElementShape as d, type Color as e, type ComputedEdge as f, type ComputedLikeC4Model as g, type Element as h, type Relation as i, type RelationshipKind as j, type DiagramNode as k, type DiagramEdge as l, type NonEmptyArray as m, expression as n, type NonEmptyReadonlyArray as o, type CustomColor as p, type BorderStyle as q, ElementShapes as r, DefaultThemeColor as s, DefaultElementShape as t, type ElementStyle as u, type TagSpec as v, type Link as w, type ElementKindSpecificationStyle as x, type ElementKindSpecification as y, type ElementRefExpr as z };
@@ -354,8 +354,11 @@ interface ViewRuleStyle {
354
354
  }
355
355
  declare function isViewRuleStyle(rule: ViewRule): rule is ViewRuleStyle;
356
356
  type AutoLayoutDirection = 'TB' | 'BT' | 'LR' | 'RL';
357
+ declare function isAutoLayoutDirection(autoLayout: unknown): autoLayout is AutoLayoutDirection;
357
358
  interface ViewRuleAutoLayout {
358
- autoLayout: AutoLayoutDirection;
359
+ direction: AutoLayoutDirection;
360
+ nodeSep?: number;
361
+ rankSep?: number;
359
362
  }
360
363
  declare function isViewRuleAutoLayout(rule: ViewRule): rule is ViewRuleAutoLayout;
361
364
  type ViewRule = ViewRulePredicate | ViewRuleStyle | ViewRuleAutoLayout;
@@ -515,16 +518,21 @@ interface ViewWithNotation {
515
518
  elements: ElementNotation[];
516
519
  };
517
520
  }
521
+ interface ViewAutoLayout {
522
+ direction: ViewRuleAutoLayout['direction'];
523
+ rankSep?: number;
524
+ nodeSep?: number;
525
+ }
518
526
  interface ComputedElementView extends Omit<ElementView, 'rules' | 'docUri'>, ViewWithHash, ViewWithNotation {
519
527
  readonly extends?: ViewID;
520
- readonly autoLayout: ViewRuleAutoLayout['autoLayout'];
528
+ readonly autoLayout: ViewAutoLayout;
521
529
  readonly nodes: ComputedNode[];
522
530
  readonly edges: ComputedEdge[];
523
531
  rules?: never;
524
532
  docUri?: never;
525
533
  }
526
534
  interface ComputedDynamicView extends Omit<DynamicView, 'rules' | 'steps' | 'docUri'>, ViewWithHash, ViewWithNotation {
527
- readonly autoLayout: ViewRuleAutoLayout['autoLayout'];
535
+ readonly autoLayout: ViewAutoLayout;
528
536
  readonly nodes: ComputedNode[];
529
537
  readonly edges: ComputedEdge[];
530
538
  steps?: never;
@@ -570,7 +578,7 @@ type ViewManualLayout = {
570
578
  readonly y: number;
571
579
  readonly width: number;
572
580
  readonly height: number;
573
- readonly autoLayout: AutoLayoutDirection;
581
+ readonly autoLayout: ViewAutoLayout;
574
582
  readonly nodes: Record<string, {
575
583
  isCompound: boolean;
576
584
  x: number;
@@ -675,4 +683,4 @@ declare namespace ViewChange {
675
683
  }
676
684
  type ViewChange = ViewChange.ChangeElementStyle | ViewChange.SaveManualLayout | ViewChange.ChangeAutoLayout;
677
685
 
678
- export { isElement as $, AsFqn as A, BorderStyles as B, type ComputedView as C, type DiagramView as D, type EdgeId as E, type Fqn as F, isElementRef as G, type HexColorLiteral as H, type IconUrl as I, type ExpandedElementExpr as J, isExpandedElementExpr as K, type LayoutedLikeC4Model as L, type CustomElementExpr as M, type NodeId as N, isCustomElement as O, type Point as P, isWildcard as Q, type RelationID as R, type ElementKindExpr as S, type ThemeColorValues as T, isElementKindExpr as U, type ViewID as V, type WildcardExpr as W, type XYPoint as X, type ElementTagExpr as Y, isElementTagExpr as Z, type ElementExpression as _, type Tag as a, type DynamicViewStep as a$, type ElementWhereExpr as a0, isElementWhere as a1, type ElementPredicateExpression as a2, isElementPredicateExpr as a3, type RelationExpr as a4, isRelation as a5, type InOutExpr as a6, isInOut as a7, type IncomingExpr as a8, isIncoming as a9, type RelationshipLineType as aA, type RelationshipArrowType as aB, DefaultLineStyle as aC, DefaultArrowType as aD, DefaultRelationshipColor as aE, type RelationshipKindSpecification as aF, type ThemeColor as aG, type ColorLiteral as aH, isThemeColor as aI, type ElementThemeColorValues as aJ, type ElementThemeColors as aK, type RelationshipThemeColorValues as aL, type RelationshipThemeColors as aM, type LikeC4Theme as aN, type ViewRulePredicate as aO, isViewRulePredicate as aP, type ViewRuleStyle as aQ, isViewRuleStyle as aR, type AutoLayoutDirection as aS, type ViewRuleAutoLayout as aT, isViewRuleAutoLayout as aU, type ViewRule as aV, type BasicView as aW, type BasicElementView as aX, type ScopedElementView as aY, type ExtendsElementView as aZ, type ElementView as a_, type OutgoingExpr as aa, isOutgoing as ab, type RelationExpression as ac, isRelationExpression as ad, type RelationWhereExpr as ae, isRelationWhere as af, type CustomRelationExpr as ag, isCustomRelationExpr as ah, type RelationPredicateExpression as ai, isRelationPredicateExpr as aj, type Expression as ak, type ParsedLikeC4Model as al, type EqualOperator as am, type TagEqual as an, isTagEqual as ao, type KindEqual as ap, isKindEqual as aq, type NotOperator as ar, isNotOperator as as, type AndOperator as at, isAndOperator as au, type OrOperator as av, isOrOperator as aw, type WhereOperator as ax, whereOperatorAsPredicate as ay, OverviewGraph as az, type ComputedNode as b, type DynamicViewParallelSteps as b0, type DynamicViewStepOrParallel as b1, type DynamicViewIncludeRule as b2, isDynamicViewIncludeRule as b3, type DynamicViewRule as b4, type DynamicView as b5, isDynamicViewParallelSteps as b6, type CustomColorDefinitions as b7, type LikeC4View as b8, isDynamicView as b9, isElementView as ba, isExtendsElementView as bb, isScopedElementView as bc, type StepEdgeIdLiteral as bd, StepEdgeId as be, isStepEdgeId as bf, extractStep as bg, getParallelStepsPrefix as bh, type ViewWithHash as bi, type ViewWithNotation as bj, type ComputedElementView as bk, type ComputedDynamicView as bl, isComputedDynamicView as bm, isComputedElementView as bn, type BBox as bo, getBBoxCenter as bp, type ViewManualLayout as bq, ViewChange as br, type ElementNotation as bs, type ElementKind as c, type ElementShape as d, type Color as e, type ComputedEdge as f, type ComputedLikeC4Model as g, type Element as h, type Relation as i, type RelationshipKind as j, type DiagramNode as k, type DiagramEdge as l, type NonEmptyArray as m, expression as n, type NonEmptyReadonlyArray as o, type CustomColor as p, type BorderStyle as q, ElementShapes as r, DefaultThemeColor as s, DefaultElementShape as t, type ElementStyle as u, type TagSpec as v, type Link as w, type ElementKindSpecificationStyle as x, type ElementKindSpecification as y, type ElementRefExpr as z };
686
+ export { isElement as $, AsFqn as A, BorderStyles as B, type ComputedView as C, type DiagramView as D, type EdgeId as E, type Fqn as F, isElementRef as G, type HexColorLiteral as H, type IconUrl as I, type ExpandedElementExpr as J, isExpandedElementExpr as K, type LayoutedLikeC4Model as L, type CustomElementExpr as M, type NodeId as N, isCustomElement as O, type Point as P, isWildcard as Q, type RelationID as R, type ElementKindExpr as S, type ThemeColorValues as T, isElementKindExpr as U, type ViewID as V, type WildcardExpr as W, type XYPoint as X, type ElementTagExpr as Y, isElementTagExpr as Z, type ElementExpression as _, type Tag as a, type ElementView as a$, type ElementWhereExpr as a0, isElementWhere as a1, type ElementPredicateExpression as a2, isElementPredicateExpr as a3, type RelationExpr as a4, isRelation as a5, type InOutExpr as a6, isInOut as a7, type IncomingExpr as a8, isIncoming as a9, type RelationshipLineType as aA, type RelationshipArrowType as aB, DefaultLineStyle as aC, DefaultArrowType as aD, DefaultRelationshipColor as aE, type RelationshipKindSpecification as aF, type ThemeColor as aG, type ColorLiteral as aH, isThemeColor as aI, type ElementThemeColorValues as aJ, type ElementThemeColors as aK, type RelationshipThemeColorValues as aL, type RelationshipThemeColors as aM, type LikeC4Theme as aN, type ViewRulePredicate as aO, isViewRulePredicate as aP, type ViewRuleStyle as aQ, isViewRuleStyle as aR, type AutoLayoutDirection as aS, isAutoLayoutDirection as aT, type ViewRuleAutoLayout as aU, isViewRuleAutoLayout as aV, type ViewRule as aW, type BasicView as aX, type BasicElementView as aY, type ScopedElementView as aZ, type ExtendsElementView as a_, type OutgoingExpr as aa, isOutgoing as ab, type RelationExpression as ac, isRelationExpression as ad, type RelationWhereExpr as ae, isRelationWhere as af, type CustomRelationExpr as ag, isCustomRelationExpr as ah, type RelationPredicateExpression as ai, isRelationPredicateExpr as aj, type Expression as ak, type ParsedLikeC4Model as al, type EqualOperator as am, type TagEqual as an, isTagEqual as ao, type KindEqual as ap, isKindEqual as aq, type NotOperator as ar, isNotOperator as as, type AndOperator as at, isAndOperator as au, type OrOperator as av, isOrOperator as aw, type WhereOperator as ax, whereOperatorAsPredicate as ay, OverviewGraph as az, type ComputedNode as b, type DynamicViewStep as b0, type DynamicViewParallelSteps as b1, type DynamicViewStepOrParallel as b2, type DynamicViewIncludeRule as b3, isDynamicViewIncludeRule as b4, type DynamicViewRule as b5, type DynamicView as b6, isDynamicViewParallelSteps as b7, type CustomColorDefinitions as b8, type LikeC4View as b9, isDynamicView as ba, isElementView as bb, isExtendsElementView as bc, isScopedElementView as bd, type StepEdgeIdLiteral as be, StepEdgeId as bf, isStepEdgeId as bg, extractStep as bh, getParallelStepsPrefix as bi, type ViewWithHash as bj, type ViewWithNotation as bk, type ViewAutoLayout as bl, type ComputedElementView as bm, type ComputedDynamicView as bn, isComputedDynamicView as bo, isComputedElementView as bp, type BBox as bq, getBBoxCenter as br, type ViewManualLayout as bs, ViewChange as bt, type ElementNotation as bu, type ElementKind as c, type ElementShape as d, type Color as e, type ComputedEdge as f, type ComputedLikeC4Model as g, type Element as h, type Relation as i, type RelationshipKind as j, type DiagramNode as k, type DiagramEdge as l, type NonEmptyArray as m, expression as n, type NonEmptyReadonlyArray as o, type CustomColor as p, type BorderStyle as q, ElementShapes as r, DefaultThemeColor as s, DefaultElementShape as t, type ElementStyle as u, type TagSpec as v, type Link as w, type ElementKindSpecificationStyle as x, type ElementKindSpecification as y, type ElementRefExpr as z };
@@ -354,8 +354,11 @@ interface ViewRuleStyle {
354
354
  }
355
355
  declare function isViewRuleStyle(rule: ViewRule): rule is ViewRuleStyle;
356
356
  type AutoLayoutDirection = 'TB' | 'BT' | 'LR' | 'RL';
357
+ declare function isAutoLayoutDirection(autoLayout: unknown): autoLayout is AutoLayoutDirection;
357
358
  interface ViewRuleAutoLayout {
358
- autoLayout: AutoLayoutDirection;
359
+ direction: AutoLayoutDirection;
360
+ nodeSep?: number;
361
+ rankSep?: number;
359
362
  }
360
363
  declare function isViewRuleAutoLayout(rule: ViewRule): rule is ViewRuleAutoLayout;
361
364
  type ViewRule = ViewRulePredicate | ViewRuleStyle | ViewRuleAutoLayout;
@@ -515,16 +518,21 @@ interface ViewWithNotation {
515
518
  elements: ElementNotation[];
516
519
  };
517
520
  }
521
+ interface ViewAutoLayout {
522
+ direction: ViewRuleAutoLayout['direction'];
523
+ rankSep?: number;
524
+ nodeSep?: number;
525
+ }
518
526
  interface ComputedElementView extends Omit<ElementView, 'rules' | 'docUri'>, ViewWithHash, ViewWithNotation {
519
527
  readonly extends?: ViewID;
520
- readonly autoLayout: ViewRuleAutoLayout['autoLayout'];
528
+ readonly autoLayout: ViewAutoLayout;
521
529
  readonly nodes: ComputedNode[];
522
530
  readonly edges: ComputedEdge[];
523
531
  rules?: never;
524
532
  docUri?: never;
525
533
  }
526
534
  interface ComputedDynamicView extends Omit<DynamicView, 'rules' | 'steps' | 'docUri'>, ViewWithHash, ViewWithNotation {
527
- readonly autoLayout: ViewRuleAutoLayout['autoLayout'];
535
+ readonly autoLayout: ViewAutoLayout;
528
536
  readonly nodes: ComputedNode[];
529
537
  readonly edges: ComputedEdge[];
530
538
  steps?: never;
@@ -570,7 +578,7 @@ type ViewManualLayout = {
570
578
  readonly y: number;
571
579
  readonly width: number;
572
580
  readonly height: number;
573
- readonly autoLayout: AutoLayoutDirection;
581
+ readonly autoLayout: ViewAutoLayout;
574
582
  readonly nodes: Record<string, {
575
583
  isCompound: boolean;
576
584
  x: number;
@@ -675,4 +683,4 @@ declare namespace ViewChange {
675
683
  }
676
684
  type ViewChange = ViewChange.ChangeElementStyle | ViewChange.SaveManualLayout | ViewChange.ChangeAutoLayout;
677
685
 
678
- export { isElement as $, AsFqn as A, BorderStyles as B, type ComputedView as C, type DiagramView as D, type EdgeId as E, type Fqn as F, isElementRef as G, type HexColorLiteral as H, type IconUrl as I, type ExpandedElementExpr as J, isExpandedElementExpr as K, type LayoutedLikeC4Model as L, type CustomElementExpr as M, type NodeId as N, isCustomElement as O, type Point as P, isWildcard as Q, type RelationID as R, type ElementKindExpr as S, type ThemeColorValues as T, isElementKindExpr as U, type ViewID as V, type WildcardExpr as W, type XYPoint as X, type ElementTagExpr as Y, isElementTagExpr as Z, type ElementExpression as _, type Tag as a, type DynamicViewStep as a$, type ElementWhereExpr as a0, isElementWhere as a1, type ElementPredicateExpression as a2, isElementPredicateExpr as a3, type RelationExpr as a4, isRelation as a5, type InOutExpr as a6, isInOut as a7, type IncomingExpr as a8, isIncoming as a9, type RelationshipLineType as aA, type RelationshipArrowType as aB, DefaultLineStyle as aC, DefaultArrowType as aD, DefaultRelationshipColor as aE, type RelationshipKindSpecification as aF, type ThemeColor as aG, type ColorLiteral as aH, isThemeColor as aI, type ElementThemeColorValues as aJ, type ElementThemeColors as aK, type RelationshipThemeColorValues as aL, type RelationshipThemeColors as aM, type LikeC4Theme as aN, type ViewRulePredicate as aO, isViewRulePredicate as aP, type ViewRuleStyle as aQ, isViewRuleStyle as aR, type AutoLayoutDirection as aS, type ViewRuleAutoLayout as aT, isViewRuleAutoLayout as aU, type ViewRule as aV, type BasicView as aW, type BasicElementView as aX, type ScopedElementView as aY, type ExtendsElementView as aZ, type ElementView as a_, type OutgoingExpr as aa, isOutgoing as ab, type RelationExpression as ac, isRelationExpression as ad, type RelationWhereExpr as ae, isRelationWhere as af, type CustomRelationExpr as ag, isCustomRelationExpr as ah, type RelationPredicateExpression as ai, isRelationPredicateExpr as aj, type Expression as ak, type ParsedLikeC4Model as al, type EqualOperator as am, type TagEqual as an, isTagEqual as ao, type KindEqual as ap, isKindEqual as aq, type NotOperator as ar, isNotOperator as as, type AndOperator as at, isAndOperator as au, type OrOperator as av, isOrOperator as aw, type WhereOperator as ax, whereOperatorAsPredicate as ay, OverviewGraph as az, type ComputedNode as b, type DynamicViewParallelSteps as b0, type DynamicViewStepOrParallel as b1, type DynamicViewIncludeRule as b2, isDynamicViewIncludeRule as b3, type DynamicViewRule as b4, type DynamicView as b5, isDynamicViewParallelSteps as b6, type CustomColorDefinitions as b7, type LikeC4View as b8, isDynamicView as b9, isElementView as ba, isExtendsElementView as bb, isScopedElementView as bc, type StepEdgeIdLiteral as bd, StepEdgeId as be, isStepEdgeId as bf, extractStep as bg, getParallelStepsPrefix as bh, type ViewWithHash as bi, type ViewWithNotation as bj, type ComputedElementView as bk, type ComputedDynamicView as bl, isComputedDynamicView as bm, isComputedElementView as bn, type BBox as bo, getBBoxCenter as bp, type ViewManualLayout as bq, ViewChange as br, type ElementNotation as bs, type ElementKind as c, type ElementShape as d, type Color as e, type ComputedEdge as f, type ComputedLikeC4Model as g, type Element as h, type Relation as i, type RelationshipKind as j, type DiagramNode as k, type DiagramEdge as l, type NonEmptyArray as m, expression as n, type NonEmptyReadonlyArray as o, type CustomColor as p, type BorderStyle as q, ElementShapes as r, DefaultThemeColor as s, DefaultElementShape as t, type ElementStyle as u, type TagSpec as v, type Link as w, type ElementKindSpecificationStyle as x, type ElementKindSpecification as y, type ElementRefExpr as z };
686
+ export { isElement as $, AsFqn as A, BorderStyles as B, type ComputedView as C, type DiagramView as D, type EdgeId as E, type Fqn as F, isElementRef as G, type HexColorLiteral as H, type IconUrl as I, type ExpandedElementExpr as J, isExpandedElementExpr as K, type LayoutedLikeC4Model as L, type CustomElementExpr as M, type NodeId as N, isCustomElement as O, type Point as P, isWildcard as Q, type RelationID as R, type ElementKindExpr as S, type ThemeColorValues as T, isElementKindExpr as U, type ViewID as V, type WildcardExpr as W, type XYPoint as X, type ElementTagExpr as Y, isElementTagExpr as Z, type ElementExpression as _, type Tag as a, type ElementView as a$, type ElementWhereExpr as a0, isElementWhere as a1, type ElementPredicateExpression as a2, isElementPredicateExpr as a3, type RelationExpr as a4, isRelation as a5, type InOutExpr as a6, isInOut as a7, type IncomingExpr as a8, isIncoming as a9, type RelationshipLineType as aA, type RelationshipArrowType as aB, DefaultLineStyle as aC, DefaultArrowType as aD, DefaultRelationshipColor as aE, type RelationshipKindSpecification as aF, type ThemeColor as aG, type ColorLiteral as aH, isThemeColor as aI, type ElementThemeColorValues as aJ, type ElementThemeColors as aK, type RelationshipThemeColorValues as aL, type RelationshipThemeColors as aM, type LikeC4Theme as aN, type ViewRulePredicate as aO, isViewRulePredicate as aP, type ViewRuleStyle as aQ, isViewRuleStyle as aR, type AutoLayoutDirection as aS, isAutoLayoutDirection as aT, type ViewRuleAutoLayout as aU, isViewRuleAutoLayout as aV, type ViewRule as aW, type BasicView as aX, type BasicElementView as aY, type ScopedElementView as aZ, type ExtendsElementView as a_, type OutgoingExpr as aa, isOutgoing as ab, type RelationExpression as ac, isRelationExpression as ad, type RelationWhereExpr as ae, isRelationWhere as af, type CustomRelationExpr as ag, isCustomRelationExpr as ah, type RelationPredicateExpression as ai, isRelationPredicateExpr as aj, type Expression as ak, type ParsedLikeC4Model as al, type EqualOperator as am, type TagEqual as an, isTagEqual as ao, type KindEqual as ap, isKindEqual as aq, type NotOperator as ar, isNotOperator as as, type AndOperator as at, isAndOperator as au, type OrOperator as av, isOrOperator as aw, type WhereOperator as ax, whereOperatorAsPredicate as ay, OverviewGraph as az, type ComputedNode as b, type DynamicViewStep as b0, type DynamicViewParallelSteps as b1, type DynamicViewStepOrParallel as b2, type DynamicViewIncludeRule as b3, isDynamicViewIncludeRule as b4, type DynamicViewRule as b5, type DynamicView as b6, isDynamicViewParallelSteps as b7, type CustomColorDefinitions as b8, type LikeC4View as b9, isDynamicView as ba, isElementView as bb, isExtendsElementView as bc, isScopedElementView as bd, type StepEdgeIdLiteral as be, StepEdgeId as bf, isStepEdgeId as bg, extractStep as bh, getParallelStepsPrefix as bi, type ViewWithHash as bj, type ViewWithNotation as bk, type ViewAutoLayout as bl, type ComputedElementView as bm, type ComputedDynamicView as bn, isComputedDynamicView as bo, isComputedElementView as bp, type BBox as bq, getBBoxCenter as br, type ViewManualLayout as bs, ViewChange as bt, type ElementNotation as bu, type ElementKind as c, type ElementShape as d, type Color as e, type ComputedEdge as f, type ComputedLikeC4Model as g, type Element as h, type Relation as i, type RelationshipKind as j, type DiagramNode as k, type DiagramEdge as l, type NonEmptyArray as m, expression as n, type NonEmptyReadonlyArray as o, type CustomColor as p, type BorderStyle as q, ElementShapes as r, DefaultThemeColor as s, DefaultElementShape as t, type ElementStyle as u, type TagSpec as v, type Link as w, type ElementKindSpecificationStyle as x, type ElementKindSpecification as y, type ElementRefExpr as z };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const types_index = require('../shared/core.D78YmZ_A.cjs');
3
+ const types_index = require('../shared/core.CTiE4teS.cjs');
4
4
 
5
5
 
6
6
 
@@ -17,6 +17,7 @@ exports.extractStep = types_index.extractStep;
17
17
  exports.getBBoxCenter = types_index.getBBoxCenter;
18
18
  exports.getParallelStepsPrefix = types_index.getParallelStepsPrefix;
19
19
  exports.isAndOperator = types_index.isAndOperator;
20
+ exports.isAutoLayoutDirection = types_index.isAutoLayoutDirection;
20
21
  exports.isComputedDynamicView = types_index.isComputedDynamicView;
21
22
  exports.isComputedElementView = types_index.isComputedElementView;
22
23
  exports.isCustomElement = types_index.isCustomElement;
@@ -1,2 +1,2 @@
1
- export { at as AndOperator, A as AsFqn, aS as AutoLayoutDirection, bo as BBox, aX as BasicElementView, aW as BasicView, q as BorderStyle, B as BorderStyles, e as Color, aH as ColorLiteral, bl as ComputedDynamicView, f as ComputedEdge, bk as ComputedElementView, g as ComputedLikeC4Model, b as ComputedNode, C as ComputedView, p as CustomColor, b7 as CustomColorDefinitions, M as CustomElementExpr, ag as CustomRelationExpr, aD as DefaultArrowType, t as DefaultElementShape, aC as DefaultLineStyle, aE as DefaultRelationshipColor, s as DefaultThemeColor, l as DiagramEdge, k as DiagramNode, D as DiagramView, b5 as DynamicView, b2 as DynamicViewIncludeRule, b0 as DynamicViewParallelSteps, b4 as DynamicViewRule, a$ as DynamicViewStep, b1 as DynamicViewStepOrParallel, E as EdgeId, h as Element, _ as ElementExpression, c as ElementKind, S as ElementKindExpr, y as ElementKindSpecification, x as ElementKindSpecificationStyle, bs as ElementNotation, a2 as ElementPredicateExpression, z as ElementRefExpr, d as ElementShape, r as ElementShapes, u as ElementStyle, Y as ElementTagExpr, aJ as ElementThemeColorValues, aK as ElementThemeColors, a_ as ElementView, a0 as ElementWhereExpr, am as EqualOperator, J as ExpandedElementExpr, ak as Expression, aZ as ExtendsElementView, F as Fqn, H as HexColorLiteral, I as IconUrl, a6 as InOutExpr, a8 as IncomingExpr, ap as KindEqual, L as LayoutedLikeC4Model, aN as LikeC4Theme, b8 as LikeC4View, w as Link, N as NodeId, m as NonEmptyArray, o as NonEmptyReadonlyArray, ar as NotOperator, av as OrOperator, aa as OutgoingExpr, az as OverviewGraph, al as ParsedLikeC4Model, P as Point, i as Relation, a4 as RelationExpr, ac as RelationExpression, R as RelationID, ai as RelationPredicateExpression, ae as RelationWhereExpr, aB as RelationshipArrowType, j as RelationshipKind, aF as RelationshipKindSpecification, aA as RelationshipLineType, aL as RelationshipThemeColorValues, aM as RelationshipThemeColors, aY as ScopedElementView, be as StepEdgeId, bd as StepEdgeIdLiteral, a as Tag, an as TagEqual, v as TagSpec, aG as ThemeColor, T as ThemeColorValues, br as ViewChange, V as ViewID, bq as ViewManualLayout, aV as ViewRule, aT as ViewRuleAutoLayout, aO as ViewRulePredicate, aQ as ViewRuleStyle, bi as ViewWithHash, bj as ViewWithNotation, ax as WhereOperator, W as WildcardExpr, X as XYPoint, bg as extractStep, bp as getBBoxCenter, bh as getParallelStepsPrefix, au as isAndOperator, bm as isComputedDynamicView, bn as isComputedElementView, O as isCustomElement, ah as isCustomRelationExpr, b9 as isDynamicView, b3 as isDynamicViewIncludeRule, b6 as isDynamicViewParallelSteps, $ as isElement, U as isElementKindExpr, a3 as isElementPredicateExpr, G as isElementRef, Z as isElementTagExpr, ba as isElementView, a1 as isElementWhere, K as isExpandedElementExpr, bb as isExtendsElementView, a7 as isInOut, a9 as isIncoming, aq as isKindEqual, as as isNotOperator, aw as isOrOperator, ab as isOutgoing, a5 as isRelation, ad as isRelationExpression, aj as isRelationPredicateExpr, af as isRelationWhere, bc as isScopedElementView, bf as isStepEdgeId, ao as isTagEqual, aI as isThemeColor, aU as isViewRuleAutoLayout, aP as isViewRulePredicate, aR as isViewRuleStyle, Q as isWildcard, ay as whereOperatorAsPredicate } from '../shared/core.aVt8heZL.cjs';
1
+ export { at as AndOperator, A as AsFqn, aS as AutoLayoutDirection, bq as BBox, aY as BasicElementView, aX as BasicView, q as BorderStyle, B as BorderStyles, e as Color, aH as ColorLiteral, bn as ComputedDynamicView, f as ComputedEdge, bm as ComputedElementView, g as ComputedLikeC4Model, b as ComputedNode, C as ComputedView, p as CustomColor, b8 as CustomColorDefinitions, M as CustomElementExpr, ag as CustomRelationExpr, aD as DefaultArrowType, t as DefaultElementShape, aC as DefaultLineStyle, aE as DefaultRelationshipColor, s as DefaultThemeColor, l as DiagramEdge, k as DiagramNode, D as DiagramView, b6 as DynamicView, b3 as DynamicViewIncludeRule, b1 as DynamicViewParallelSteps, b5 as DynamicViewRule, b0 as DynamicViewStep, b2 as DynamicViewStepOrParallel, E as EdgeId, h as Element, _ as ElementExpression, c as ElementKind, S as ElementKindExpr, y as ElementKindSpecification, x as ElementKindSpecificationStyle, bu as ElementNotation, a2 as ElementPredicateExpression, z as ElementRefExpr, d as ElementShape, r as ElementShapes, u as ElementStyle, Y as ElementTagExpr, aJ as ElementThemeColorValues, aK as ElementThemeColors, a$ as ElementView, a0 as ElementWhereExpr, am as EqualOperator, J as ExpandedElementExpr, ak as Expression, a_ as ExtendsElementView, F as Fqn, H as HexColorLiteral, I as IconUrl, a6 as InOutExpr, a8 as IncomingExpr, ap as KindEqual, L as LayoutedLikeC4Model, aN as LikeC4Theme, b9 as LikeC4View, w as Link, N as NodeId, m as NonEmptyArray, o as NonEmptyReadonlyArray, ar as NotOperator, av as OrOperator, aa as OutgoingExpr, az as OverviewGraph, al as ParsedLikeC4Model, P as Point, i as Relation, a4 as RelationExpr, ac as RelationExpression, R as RelationID, ai as RelationPredicateExpression, ae as RelationWhereExpr, aB as RelationshipArrowType, j as RelationshipKind, aF as RelationshipKindSpecification, aA as RelationshipLineType, aL as RelationshipThemeColorValues, aM as RelationshipThemeColors, aZ as ScopedElementView, bf as StepEdgeId, be as StepEdgeIdLiteral, a as Tag, an as TagEqual, v as TagSpec, aG as ThemeColor, T as ThemeColorValues, bl as ViewAutoLayout, bt as ViewChange, V as ViewID, bs as ViewManualLayout, aW as ViewRule, aU as ViewRuleAutoLayout, aO as ViewRulePredicate, aQ as ViewRuleStyle, bj as ViewWithHash, bk as ViewWithNotation, ax as WhereOperator, W as WildcardExpr, X as XYPoint, bh as extractStep, br as getBBoxCenter, bi as getParallelStepsPrefix, au as isAndOperator, aT as isAutoLayoutDirection, bo as isComputedDynamicView, bp as isComputedElementView, O as isCustomElement, ah as isCustomRelationExpr, ba as isDynamicView, b4 as isDynamicViewIncludeRule, b7 as isDynamicViewParallelSteps, $ as isElement, U as isElementKindExpr, a3 as isElementPredicateExpr, G as isElementRef, Z as isElementTagExpr, bb as isElementView, a1 as isElementWhere, K as isExpandedElementExpr, bc as isExtendsElementView, a7 as isInOut, a9 as isIncoming, aq as isKindEqual, as as isNotOperator, aw as isOrOperator, ab as isOutgoing, a5 as isRelation, ad as isRelationExpression, aj as isRelationPredicateExpr, af as isRelationWhere, bd as isScopedElementView, bg as isStepEdgeId, ao as isTagEqual, aI as isThemeColor, aV as isViewRuleAutoLayout, aP as isViewRulePredicate, aR as isViewRuleStyle, Q as isWildcard, ay as whereOperatorAsPredicate } from '../shared/core.Ik3-ZP2n.cjs';
2
2
  import 'type-fest';
@@ -1,2 +1,2 @@
1
- export { at as AndOperator, A as AsFqn, aS as AutoLayoutDirection, bo as BBox, aX as BasicElementView, aW as BasicView, q as BorderStyle, B as BorderStyles, e as Color, aH as ColorLiteral, bl as ComputedDynamicView, f as ComputedEdge, bk as ComputedElementView, g as ComputedLikeC4Model, b as ComputedNode, C as ComputedView, p as CustomColor, b7 as CustomColorDefinitions, M as CustomElementExpr, ag as CustomRelationExpr, aD as DefaultArrowType, t as DefaultElementShape, aC as DefaultLineStyle, aE as DefaultRelationshipColor, s as DefaultThemeColor, l as DiagramEdge, k as DiagramNode, D as DiagramView, b5 as DynamicView, b2 as DynamicViewIncludeRule, b0 as DynamicViewParallelSteps, b4 as DynamicViewRule, a$ as DynamicViewStep, b1 as DynamicViewStepOrParallel, E as EdgeId, h as Element, _ as ElementExpression, c as ElementKind, S as ElementKindExpr, y as ElementKindSpecification, x as ElementKindSpecificationStyle, bs as ElementNotation, a2 as ElementPredicateExpression, z as ElementRefExpr, d as ElementShape, r as ElementShapes, u as ElementStyle, Y as ElementTagExpr, aJ as ElementThemeColorValues, aK as ElementThemeColors, a_ as ElementView, a0 as ElementWhereExpr, am as EqualOperator, J as ExpandedElementExpr, ak as Expression, aZ as ExtendsElementView, F as Fqn, H as HexColorLiteral, I as IconUrl, a6 as InOutExpr, a8 as IncomingExpr, ap as KindEqual, L as LayoutedLikeC4Model, aN as LikeC4Theme, b8 as LikeC4View, w as Link, N as NodeId, m as NonEmptyArray, o as NonEmptyReadonlyArray, ar as NotOperator, av as OrOperator, aa as OutgoingExpr, az as OverviewGraph, al as ParsedLikeC4Model, P as Point, i as Relation, a4 as RelationExpr, ac as RelationExpression, R as RelationID, ai as RelationPredicateExpression, ae as RelationWhereExpr, aB as RelationshipArrowType, j as RelationshipKind, aF as RelationshipKindSpecification, aA as RelationshipLineType, aL as RelationshipThemeColorValues, aM as RelationshipThemeColors, aY as ScopedElementView, be as StepEdgeId, bd as StepEdgeIdLiteral, a as Tag, an as TagEqual, v as TagSpec, aG as ThemeColor, T as ThemeColorValues, br as ViewChange, V as ViewID, bq as ViewManualLayout, aV as ViewRule, aT as ViewRuleAutoLayout, aO as ViewRulePredicate, aQ as ViewRuleStyle, bi as ViewWithHash, bj as ViewWithNotation, ax as WhereOperator, W as WildcardExpr, X as XYPoint, bg as extractStep, bp as getBBoxCenter, bh as getParallelStepsPrefix, au as isAndOperator, bm as isComputedDynamicView, bn as isComputedElementView, O as isCustomElement, ah as isCustomRelationExpr, b9 as isDynamicView, b3 as isDynamicViewIncludeRule, b6 as isDynamicViewParallelSteps, $ as isElement, U as isElementKindExpr, a3 as isElementPredicateExpr, G as isElementRef, Z as isElementTagExpr, ba as isElementView, a1 as isElementWhere, K as isExpandedElementExpr, bb as isExtendsElementView, a7 as isInOut, a9 as isIncoming, aq as isKindEqual, as as isNotOperator, aw as isOrOperator, ab as isOutgoing, a5 as isRelation, ad as isRelationExpression, aj as isRelationPredicateExpr, af as isRelationWhere, bc as isScopedElementView, bf as isStepEdgeId, ao as isTagEqual, aI as isThemeColor, aU as isViewRuleAutoLayout, aP as isViewRulePredicate, aR as isViewRuleStyle, Q as isWildcard, ay as whereOperatorAsPredicate } from '../shared/core.aVt8heZL.mjs';
1
+ export { at as AndOperator, A as AsFqn, aS as AutoLayoutDirection, bq as BBox, aY as BasicElementView, aX as BasicView, q as BorderStyle, B as BorderStyles, e as Color, aH as ColorLiteral, bn as ComputedDynamicView, f as ComputedEdge, bm as ComputedElementView, g as ComputedLikeC4Model, b as ComputedNode, C as ComputedView, p as CustomColor, b8 as CustomColorDefinitions, M as CustomElementExpr, ag as CustomRelationExpr, aD as DefaultArrowType, t as DefaultElementShape, aC as DefaultLineStyle, aE as DefaultRelationshipColor, s as DefaultThemeColor, l as DiagramEdge, k as DiagramNode, D as DiagramView, b6 as DynamicView, b3 as DynamicViewIncludeRule, b1 as DynamicViewParallelSteps, b5 as DynamicViewRule, b0 as DynamicViewStep, b2 as DynamicViewStepOrParallel, E as EdgeId, h as Element, _ as ElementExpression, c as ElementKind, S as ElementKindExpr, y as ElementKindSpecification, x as ElementKindSpecificationStyle, bu as ElementNotation, a2 as ElementPredicateExpression, z as ElementRefExpr, d as ElementShape, r as ElementShapes, u as ElementStyle, Y as ElementTagExpr, aJ as ElementThemeColorValues, aK as ElementThemeColors, a$ as ElementView, a0 as ElementWhereExpr, am as EqualOperator, J as ExpandedElementExpr, ak as Expression, a_ as ExtendsElementView, F as Fqn, H as HexColorLiteral, I as IconUrl, a6 as InOutExpr, a8 as IncomingExpr, ap as KindEqual, L as LayoutedLikeC4Model, aN as LikeC4Theme, b9 as LikeC4View, w as Link, N as NodeId, m as NonEmptyArray, o as NonEmptyReadonlyArray, ar as NotOperator, av as OrOperator, aa as OutgoingExpr, az as OverviewGraph, al as ParsedLikeC4Model, P as Point, i as Relation, a4 as RelationExpr, ac as RelationExpression, R as RelationID, ai as RelationPredicateExpression, ae as RelationWhereExpr, aB as RelationshipArrowType, j as RelationshipKind, aF as RelationshipKindSpecification, aA as RelationshipLineType, aL as RelationshipThemeColorValues, aM as RelationshipThemeColors, aZ as ScopedElementView, bf as StepEdgeId, be as StepEdgeIdLiteral, a as Tag, an as TagEqual, v as TagSpec, aG as ThemeColor, T as ThemeColorValues, bl as ViewAutoLayout, bt as ViewChange, V as ViewID, bs as ViewManualLayout, aW as ViewRule, aU as ViewRuleAutoLayout, aO as ViewRulePredicate, aQ as ViewRuleStyle, bj as ViewWithHash, bk as ViewWithNotation, ax as WhereOperator, W as WildcardExpr, X as XYPoint, bh as extractStep, br as getBBoxCenter, bi as getParallelStepsPrefix, au as isAndOperator, aT as isAutoLayoutDirection, bo as isComputedDynamicView, bp as isComputedElementView, O as isCustomElement, ah as isCustomRelationExpr, ba as isDynamicView, b4 as isDynamicViewIncludeRule, b7 as isDynamicViewParallelSteps, $ as isElement, U as isElementKindExpr, a3 as isElementPredicateExpr, G as isElementRef, Z as isElementTagExpr, bb as isElementView, a1 as isElementWhere, K as isExpandedElementExpr, bc as isExtendsElementView, a7 as isInOut, a9 as isIncoming, aq as isKindEqual, as as isNotOperator, aw as isOrOperator, ab as isOutgoing, a5 as isRelation, ad as isRelationExpression, aj as isRelationPredicateExpr, af as isRelationWhere, bd as isScopedElementView, bg as isStepEdgeId, ao as isTagEqual, aI as isThemeColor, aV as isViewRuleAutoLayout, aP as isViewRulePredicate, aR as isViewRuleStyle, Q as isWildcard, ay as whereOperatorAsPredicate } from '../shared/core.Ik3-ZP2n.mjs';
2
2
  import 'type-fest';
@@ -1,2 +1,2 @@
1
- export { at as AndOperator, A as AsFqn, aS as AutoLayoutDirection, bo as BBox, aX as BasicElementView, aW as BasicView, q as BorderStyle, B as BorderStyles, e as Color, aH as ColorLiteral, bl as ComputedDynamicView, f as ComputedEdge, bk as ComputedElementView, g as ComputedLikeC4Model, b as ComputedNode, C as ComputedView, p as CustomColor, b7 as CustomColorDefinitions, M as CustomElementExpr, ag as CustomRelationExpr, aD as DefaultArrowType, t as DefaultElementShape, aC as DefaultLineStyle, aE as DefaultRelationshipColor, s as DefaultThemeColor, l as DiagramEdge, k as DiagramNode, D as DiagramView, b5 as DynamicView, b2 as DynamicViewIncludeRule, b0 as DynamicViewParallelSteps, b4 as DynamicViewRule, a$ as DynamicViewStep, b1 as DynamicViewStepOrParallel, E as EdgeId, h as Element, _ as ElementExpression, c as ElementKind, S as ElementKindExpr, y as ElementKindSpecification, x as ElementKindSpecificationStyle, bs as ElementNotation, a2 as ElementPredicateExpression, z as ElementRefExpr, d as ElementShape, r as ElementShapes, u as ElementStyle, Y as ElementTagExpr, aJ as ElementThemeColorValues, aK as ElementThemeColors, a_ as ElementView, a0 as ElementWhereExpr, am as EqualOperator, J as ExpandedElementExpr, ak as Expression, aZ as ExtendsElementView, F as Fqn, H as HexColorLiteral, I as IconUrl, a6 as InOutExpr, a8 as IncomingExpr, ap as KindEqual, L as LayoutedLikeC4Model, aN as LikeC4Theme, b8 as LikeC4View, w as Link, N as NodeId, m as NonEmptyArray, o as NonEmptyReadonlyArray, ar as NotOperator, av as OrOperator, aa as OutgoingExpr, az as OverviewGraph, al as ParsedLikeC4Model, P as Point, i as Relation, a4 as RelationExpr, ac as RelationExpression, R as RelationID, ai as RelationPredicateExpression, ae as RelationWhereExpr, aB as RelationshipArrowType, j as RelationshipKind, aF as RelationshipKindSpecification, aA as RelationshipLineType, aL as RelationshipThemeColorValues, aM as RelationshipThemeColors, aY as ScopedElementView, be as StepEdgeId, bd as StepEdgeIdLiteral, a as Tag, an as TagEqual, v as TagSpec, aG as ThemeColor, T as ThemeColorValues, br as ViewChange, V as ViewID, bq as ViewManualLayout, aV as ViewRule, aT as ViewRuleAutoLayout, aO as ViewRulePredicate, aQ as ViewRuleStyle, bi as ViewWithHash, bj as ViewWithNotation, ax as WhereOperator, W as WildcardExpr, X as XYPoint, bg as extractStep, bp as getBBoxCenter, bh as getParallelStepsPrefix, au as isAndOperator, bm as isComputedDynamicView, bn as isComputedElementView, O as isCustomElement, ah as isCustomRelationExpr, b9 as isDynamicView, b3 as isDynamicViewIncludeRule, b6 as isDynamicViewParallelSteps, $ as isElement, U as isElementKindExpr, a3 as isElementPredicateExpr, G as isElementRef, Z as isElementTagExpr, ba as isElementView, a1 as isElementWhere, K as isExpandedElementExpr, bb as isExtendsElementView, a7 as isInOut, a9 as isIncoming, aq as isKindEqual, as as isNotOperator, aw as isOrOperator, ab as isOutgoing, a5 as isRelation, ad as isRelationExpression, aj as isRelationPredicateExpr, af as isRelationWhere, bc as isScopedElementView, bf as isStepEdgeId, ao as isTagEqual, aI as isThemeColor, aU as isViewRuleAutoLayout, aP as isViewRulePredicate, aR as isViewRuleStyle, Q as isWildcard, ay as whereOperatorAsPredicate } from '../shared/core.aVt8heZL.js';
1
+ export { at as AndOperator, A as AsFqn, aS as AutoLayoutDirection, bq as BBox, aY as BasicElementView, aX as BasicView, q as BorderStyle, B as BorderStyles, e as Color, aH as ColorLiteral, bn as ComputedDynamicView, f as ComputedEdge, bm as ComputedElementView, g as ComputedLikeC4Model, b as ComputedNode, C as ComputedView, p as CustomColor, b8 as CustomColorDefinitions, M as CustomElementExpr, ag as CustomRelationExpr, aD as DefaultArrowType, t as DefaultElementShape, aC as DefaultLineStyle, aE as DefaultRelationshipColor, s as DefaultThemeColor, l as DiagramEdge, k as DiagramNode, D as DiagramView, b6 as DynamicView, b3 as DynamicViewIncludeRule, b1 as DynamicViewParallelSteps, b5 as DynamicViewRule, b0 as DynamicViewStep, b2 as DynamicViewStepOrParallel, E as EdgeId, h as Element, _ as ElementExpression, c as ElementKind, S as ElementKindExpr, y as ElementKindSpecification, x as ElementKindSpecificationStyle, bu as ElementNotation, a2 as ElementPredicateExpression, z as ElementRefExpr, d as ElementShape, r as ElementShapes, u as ElementStyle, Y as ElementTagExpr, aJ as ElementThemeColorValues, aK as ElementThemeColors, a$ as ElementView, a0 as ElementWhereExpr, am as EqualOperator, J as ExpandedElementExpr, ak as Expression, a_ as ExtendsElementView, F as Fqn, H as HexColorLiteral, I as IconUrl, a6 as InOutExpr, a8 as IncomingExpr, ap as KindEqual, L as LayoutedLikeC4Model, aN as LikeC4Theme, b9 as LikeC4View, w as Link, N as NodeId, m as NonEmptyArray, o as NonEmptyReadonlyArray, ar as NotOperator, av as OrOperator, aa as OutgoingExpr, az as OverviewGraph, al as ParsedLikeC4Model, P as Point, i as Relation, a4 as RelationExpr, ac as RelationExpression, R as RelationID, ai as RelationPredicateExpression, ae as RelationWhereExpr, aB as RelationshipArrowType, j as RelationshipKind, aF as RelationshipKindSpecification, aA as RelationshipLineType, aL as RelationshipThemeColorValues, aM as RelationshipThemeColors, aZ as ScopedElementView, bf as StepEdgeId, be as StepEdgeIdLiteral, a as Tag, an as TagEqual, v as TagSpec, aG as ThemeColor, T as ThemeColorValues, bl as ViewAutoLayout, bt as ViewChange, V as ViewID, bs as ViewManualLayout, aW as ViewRule, aU as ViewRuleAutoLayout, aO as ViewRulePredicate, aQ as ViewRuleStyle, bj as ViewWithHash, bk as ViewWithNotation, ax as WhereOperator, W as WildcardExpr, X as XYPoint, bh as extractStep, br as getBBoxCenter, bi as getParallelStepsPrefix, au as isAndOperator, aT as isAutoLayoutDirection, bo as isComputedDynamicView, bp as isComputedElementView, O as isCustomElement, ah as isCustomRelationExpr, ba as isDynamicView, b4 as isDynamicViewIncludeRule, b7 as isDynamicViewParallelSteps, $ as isElement, U as isElementKindExpr, a3 as isElementPredicateExpr, G as isElementRef, Z as isElementTagExpr, bb as isElementView, a1 as isElementWhere, K as isExpandedElementExpr, bc as isExtendsElementView, a7 as isInOut, a9 as isIncoming, aq as isKindEqual, as as isNotOperator, aw as isOrOperator, ab as isOutgoing, a5 as isRelation, ad as isRelationExpression, aj as isRelationPredicateExpr, af as isRelationWhere, bd as isScopedElementView, bg as isStepEdgeId, ao as isTagEqual, aI as isThemeColor, aV as isViewRuleAutoLayout, aP as isViewRulePredicate, aR as isViewRuleStyle, Q as isWildcard, ay as whereOperatorAsPredicate } from '../shared/core.Ik3-ZP2n.js';
2
2
  import 'type-fest';
@@ -1 +1 @@
1
- export { A as AsFqn, B as BorderStyles, K as DefaultArrowType, a as DefaultElementShape, J as DefaultLineStyle, D as DefaultRelationshipColor, b as DefaultThemeColor, E as ElementShapes, V as StepEdgeId, X as extractStep, $ as getBBoxCenter, Y as getParallelStepsPrefix, G as isAndOperator, Z as isComputedDynamicView, _ as isComputedElementView, h as isCustomElement, x as isCustomRelationExpr, R as isDynamicView, P as isDynamicViewIncludeRule, Q as isDynamicViewParallelSteps, m as isElement, k as isElementKindExpr, p as isElementPredicateExpr, f as isElementRef, l as isElementTagExpr, S as isElementView, o as isElementWhere, g as isExpandedElementExpr, T as isExtendsElementView, r as isInOut, s as isIncoming, C as isKindEqual, F as isNotOperator, H as isOrOperator, t as isOutgoing, q as isRelation, v as isRelationExpression, y as isRelationPredicateExpr, w as isRelationWhere, U as isScopedElementView, W as isStepEdgeId, z as isTagEqual, L as isThemeColor, O as isViewRuleAutoLayout, M as isViewRulePredicate, N as isViewRuleStyle, j as isWildcard, I as whereOperatorAsPredicate } from '../shared/core.CUlHblBQ.mjs';
1
+ export { A as AsFqn, B as BorderStyles, K as DefaultArrowType, a as DefaultElementShape, J as DefaultLineStyle, D as DefaultRelationshipColor, b as DefaultThemeColor, E as ElementShapes, W as StepEdgeId, Y as extractStep, a0 as getBBoxCenter, Z as getParallelStepsPrefix, G as isAndOperator, O as isAutoLayoutDirection, _ as isComputedDynamicView, $ as isComputedElementView, h as isCustomElement, x as isCustomRelationExpr, S as isDynamicView, Q as isDynamicViewIncludeRule, R as isDynamicViewParallelSteps, m as isElement, k as isElementKindExpr, p as isElementPredicateExpr, f as isElementRef, l as isElementTagExpr, T as isElementView, o as isElementWhere, g as isExpandedElementExpr, U as isExtendsElementView, r as isInOut, s as isIncoming, C as isKindEqual, F as isNotOperator, H as isOrOperator, t as isOutgoing, q as isRelation, v as isRelationExpression, y as isRelationPredicateExpr, w as isRelationWhere, V as isScopedElementView, X as isStepEdgeId, z as isTagEqual, L as isThemeColor, P as isViewRuleAutoLayout, M as isViewRulePredicate, N as isViewRuleStyle, j as isWildcard, I as whereOperatorAsPredicate } from '../shared/core.BvFch1jG.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likec4/core",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "license": "MIT",
5
5
  "homepage": "https://likec4.dev",
6
6
  "author": "Denis Davydkov <denis@davydkov.com>",
@@ -79,17 +79,17 @@
79
79
  "type-fest": "4.26.1"
80
80
  },
81
81
  "devDependencies": {
82
- "@likec4/tsconfig": "1.11.0",
82
+ "@likec4/tsconfig": "1.12.0",
83
83
  "@mantine/colors-generator": "^7.12.2",
84
84
  "@types/natural-compare-lite": "^1.4.2",
85
85
  "chroma-js": "^3.1.1",
86
86
  "execa": "^9.3.1",
87
87
  "natural-compare-lite": "^1.4.0",
88
88
  "remeda": "^2.14.0",
89
- "turbo": "^2.1.1",
89
+ "turbo": "^2.1.2",
90
90
  "typescript": "^5.6.2",
91
- "unbuild": "^3.0.0-rc.7",
92
- "vitest": "^2.1.1"
91
+ "unbuild": "^3.0.0-rc.8",
92
+ "vitest": "^2.1.2"
93
93
  },
94
- "packageManager": "yarn@4.4.1"
94
+ "packageManager": "yarn@4.5.0"
95
95
  }
package/src/types/view.ts CHANGED
@@ -40,11 +40,17 @@ export function isViewRuleStyle(rule: ViewRule): rule is ViewRuleStyle {
40
40
  }
41
41
 
42
42
  export type AutoLayoutDirection = 'TB' | 'BT' | 'LR' | 'RL'
43
+ export function isAutoLayoutDirection(autoLayout: unknown): autoLayout is AutoLayoutDirection {
44
+ return autoLayout === 'TB' || autoLayout === 'BT' || autoLayout === 'LR' || autoLayout === 'RL'
45
+ }
46
+
43
47
  export interface ViewRuleAutoLayout {
44
- autoLayout: AutoLayoutDirection
48
+ direction: AutoLayoutDirection
49
+ nodeSep?: number
50
+ rankSep?: number
45
51
  }
46
52
  export function isViewRuleAutoLayout(rule: ViewRule): rule is ViewRuleAutoLayout {
47
- return 'autoLayout' in rule
53
+ return 'direction' in rule
48
54
  }
49
55
 
50
56
  export type ViewRule = ViewRulePredicate | ViewRuleStyle | ViewRuleAutoLayout
@@ -265,10 +271,14 @@ export interface ViewWithNotation {
265
271
  elements: ElementNotation[]
266
272
  }
267
273
  }
268
-
274
+ export interface ViewAutoLayout {
275
+ direction: ViewRuleAutoLayout['direction']
276
+ rankSep?: number
277
+ nodeSep?: number
278
+ }
269
279
  export interface ComputedElementView extends Omit<ElementView, 'rules' | 'docUri'>, ViewWithHash, ViewWithNotation {
270
280
  readonly extends?: ViewID
271
- readonly autoLayout: ViewRuleAutoLayout['autoLayout']
281
+ readonly autoLayout: ViewAutoLayout
272
282
  readonly nodes: ComputedNode[]
273
283
  readonly edges: ComputedEdge[]
274
284
  rules?: never
@@ -277,7 +287,7 @@ export interface ComputedElementView extends Omit<ElementView, 'rules' | 'docUri
277
287
  export interface ComputedDynamicView
278
288
  extends Omit<DynamicView, 'rules' | 'steps' | 'docUri'>, ViewWithHash, ViewWithNotation
279
289
  {
280
- readonly autoLayout: ViewRuleAutoLayout['autoLayout']
290
+ readonly autoLayout: ViewAutoLayout
281
291
  readonly nodes: ComputedNode[]
282
292
  readonly edges: ComputedEdge[]
283
293
  steps?: never
@@ -354,7 +364,7 @@ export type ViewManualLayout = {
354
364
  readonly y: number
355
365
  readonly width: number
356
366
  readonly height: number
357
- readonly autoLayout: AutoLayoutDirection
367
+ readonly autoLayout: ViewAutoLayout
358
368
  readonly nodes: Record<string, {
359
369
  isCompound: boolean
360
370
  x: number