@likec4/core 1.45.0 → 1.46.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.
Files changed (61) hide show
  1. package/dist/builder/index.d.mts +8 -7
  2. package/dist/builder/index.mjs +6 -5
  3. package/dist/compute-view/index.d.mts +8 -7
  4. package/dist/compute-view/index.mjs +5 -5
  5. package/dist/compute-view/relationships-view/index.d.mts +8 -7
  6. package/dist/geometry/index.d.mts +109 -0
  7. package/dist/geometry/index.mjs +328 -0
  8. package/dist/index.d.mts +10 -8
  9. package/dist/index.mjs +9 -8
  10. package/dist/model/connection/deployment/index.d.mts +10 -9
  11. package/dist/model/connection/deployment/index.mjs +1 -1
  12. package/dist/model/connection/index.d.mts +11 -10
  13. package/dist/model/connection/index.mjs +1 -1
  14. package/dist/model/connection/model/index.d.mts +10 -9
  15. package/dist/model/index.d.mts +12 -11
  16. package/dist/model/index.mjs +2 -2
  17. package/dist/shared/{core.DnCLhN8C.d.mts → core.5gPDaaG5.d.mts} +5 -4
  18. package/dist/shared/{core.0zAQeenX.d.mts → core.9U0HL3oG.d.mts} +2 -2
  19. package/dist/shared/{core.M9ayqQZa.mjs → core.BK-tI3Q3.mjs} +2 -3
  20. package/dist/shared/{core.CpURdWRM.d.mts → core.BLG-ADpi.d.mts} +7 -6
  21. package/dist/shared/core.BPGOjone.d.mts +46 -0
  22. package/dist/shared/{core.DIE3F6sw.mjs → core.BYdtmqY5.mjs} +1 -2
  23. package/dist/shared/{core.B73yxfPi.d.mts → core.BkSYCfRg.d.mts} +1 -1
  24. package/dist/shared/{core.5ZQ-r3Oa.d.mts → core.BqtAzeAh.d.mts} +1 -1
  25. package/dist/shared/{core.DEieYfbG.mjs → core.BspBF3SJ.mjs} +22 -70
  26. package/dist/shared/{core.Cog93roC.d.mts → core.Byj60hH6.d.mts} +3 -3
  27. package/dist/shared/{core.CR3PmPzr.mjs → core.CBLX4mT8.mjs} +3811 -15032
  28. package/dist/shared/{core.DX-WYEPA.d.mts → core.CDdf8izT.d.mts} +4 -2
  29. package/dist/shared/core.CLSZtnFh.mjs +69 -0
  30. package/dist/shared/{core.t3qfsVvn.d.mts → core.CQYL_Z-_.d.mts} +3 -3
  31. package/dist/shared/{core.DrUt0Lbi.mjs → core.CmGY9blO.mjs} +198 -291
  32. package/dist/shared/{core.C_Ni6yHl.mjs → core.D0WZutNd.mjs} +3 -1
  33. package/dist/shared/{core.BGFjN3nv.d.mts → core.D4Y4U8Lp.d.mts} +3 -3
  34. package/dist/shared/{core.mUnpvHtA.d.mts → core.DE-g9oFF.d.mts} +19 -49
  35. package/dist/shared/{core.CWwSgOzF.mjs → core.DJpiszim.mjs} +48 -16
  36. package/dist/shared/{core.CRI1AjFj.mjs → core.DU8pv3Q6.mjs} +21 -19
  37. package/dist/shared/{core.D_f4F48-.mjs → core.DbQpDoJS.mjs} +2 -2
  38. package/dist/shared/{core.vzLtp8i3.mjs → core.Qv7vZIwZ.mjs} +1 -1
  39. package/dist/shared/{core.BuQZczj6.mjs → core.om36dXXW.mjs} +5 -2
  40. package/dist/shared/{core.Dvh1H0T2.d.mts → core.or6-EHsb.d.mts} +2 -2
  41. package/dist/shared/{core.DViDmiAu.mjs → core.xeuDd__E.mjs} +1 -2
  42. package/dist/styles/index.d.mts +7 -6
  43. package/dist/styles/index.mjs +1 -1
  44. package/dist/types/_aux.d.mts +2 -2
  45. package/dist/types/expression-model.d.mts +3 -3
  46. package/dist/types/expression.d.mts +3 -3
  47. package/dist/types/fqnRef.d.mts +2 -2
  48. package/dist/types/fqnRef.mjs +1 -1
  49. package/dist/types/index.d.mts +11 -9
  50. package/dist/types/index.mjs +6 -180
  51. package/dist/types/scalar.d.mts +1 -1
  52. package/dist/types/scalar.mjs +1 -1
  53. package/dist/utils/graphology/index.mjs +1 -1
  54. package/dist/utils/index.d.mts +3 -3
  55. package/dist/utils/index.mjs +5 -5
  56. package/dist/utils/iterable/index.d.mts +17 -1
  57. package/dist/utils/iterable/index.mjs +17 -1
  58. package/geometry/package.json +4 -0
  59. package/package.json +19 -11
  60. package/dist/shared/core.BR4zXDH-.mjs +0 -13
  61. package/dist/shared/core.BdPcbSkN.mjs +0 -118
@@ -1,2 +1,2 @@
1
1
  export { C as Connection } from '../../../shared/core.DqlrMlsf.mjs';
2
- export { D as DeploymentConnectionModel, f as findConnection, g as findConnectionsBetween, h as findConnectionsWithin } from '../../../shared/core.D_f4F48-.mjs';
2
+ export { D as DeploymentConnectionModel, f as findConnection, g as findConnectionsBetween, h as findConnectionsWithin } from '../../../shared/core.DbQpDoJS.mjs';
@@ -1,18 +1,19 @@
1
- import { C as Connection } from '../../shared/core.Cog93roC.mjs';
2
- export { D as DeploymentConnectionModel, f as deployment } from '../../shared/core.t3qfsVvn.mjs';
3
- export { C as ConnectionModel, f as model } from '../../shared/core.BGFjN3nv.mjs';
1
+ import { C as Connection } from '../../shared/core.Byj60hH6.mjs';
2
+ export { D as DeploymentConnectionModel, f as deployment } from '../../shared/core.CQYL_Z-_.mjs';
3
+ export { C as ConnectionModel, f as model } from '../../shared/core.D4Y4U8Lp.mjs';
4
4
  import { I as IterableContainer, R as ReorderedArray } from '../../shared/core.DB0Ue5Wx.mjs';
5
- import '../../shared/core.CpURdWRM.mjs';
5
+ import '../../shared/core.BLG-ADpi.mjs';
6
6
  import 'type-fest';
7
- import '../../shared/core.Dvh1H0T2.mjs';
8
- import '../../shared/core.0zAQeenX.mjs';
9
- import '../../shared/core.B73yxfPi.mjs';
10
- import '../../shared/core.DX-WYEPA.mjs';
7
+ import '../../shared/core.or6-EHsb.mjs';
8
+ import '../../shared/core.9U0HL3oG.mjs';
9
+ import '../../shared/core.BkSYCfRg.mjs';
10
+ import '../../shared/core.CDdf8izT.mjs';
11
11
  import '../../types/fqnRef.mjs';
12
- import '../../shared/core.mUnpvHtA.mjs';
12
+ import '../../shared/core.DE-g9oFF.mjs';
13
13
  import '../../types/expression-model.mjs';
14
+ import '../../shared/core.BPGOjone.mjs';
14
15
  import '../../shared/core.CywrQs86.mjs';
15
- import '../../shared/core.DnCLhN8C.mjs';
16
+ import '../../shared/core.5gPDaaG5.mjs';
16
17
 
17
18
  /**
18
19
  * Check if connection is nested inside another connection
@@ -1,3 +1,3 @@
1
1
  export { C as Connection } from '../../shared/core.DqlrMlsf.mjs';
2
- export { D as DeploymentConnectionModel, d as deployment } from '../../shared/core.D_f4F48-.mjs';
2
+ export { D as DeploymentConnectionModel, d as deployment } from '../../shared/core.DbQpDoJS.mjs';
3
3
  export { C as ConnectionModel, d as differenceConnections, f as findAscendingConnections, a as findDeepestNestedConnection, b as findDescendantConnections, h as hasSameSource, c as hasSameSourceTarget, e as hasSameTarget, i as isAnyInOut, g as isIncoming, j as isNestedConnection, k as isOutgoing, m as mergeConnections, n as model, s as sortConnectionsByBoundaryHierarchy, l as sortDeepestFirst } from '../../shared/core.CQPEY2wQ.mjs';
@@ -1,14 +1,15 @@
1
- export { C as Connection } from '../../../shared/core.Cog93roC.mjs';
2
- export { C as ConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.BGFjN3nv.mjs';
3
- import '../../../shared/core.CpURdWRM.mjs';
1
+ export { C as Connection } from '../../../shared/core.Byj60hH6.mjs';
2
+ export { C as ConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.D4Y4U8Lp.mjs';
3
+ import '../../../shared/core.BLG-ADpi.mjs';
4
4
  import 'type-fest';
5
- import '../../../shared/core.Dvh1H0T2.mjs';
6
- import '../../../shared/core.0zAQeenX.mjs';
7
- import '../../../shared/core.B73yxfPi.mjs';
5
+ import '../../../shared/core.or6-EHsb.mjs';
6
+ import '../../../shared/core.9U0HL3oG.mjs';
7
+ import '../../../shared/core.BkSYCfRg.mjs';
8
8
  import '../../../shared/core.DB0Ue5Wx.mjs';
9
- import '../../../shared/core.DX-WYEPA.mjs';
9
+ import '../../../shared/core.CDdf8izT.mjs';
10
10
  import '../../../types/fqnRef.mjs';
11
- import '../../../shared/core.mUnpvHtA.mjs';
11
+ import '../../../shared/core.DE-g9oFF.mjs';
12
12
  import '../../../types/expression-model.mjs';
13
+ import '../../../shared/core.BPGOjone.mjs';
13
14
  import '../../../shared/core.CywrQs86.mjs';
14
- import '../../../shared/core.DnCLhN8C.mjs';
15
+ import '../../../shared/core.5gPDaaG5.mjs';
@@ -1,20 +1,21 @@
1
- import { D as DeploymentNodeModel, a as DeployedInstanceModel, b as DeploymentRelationModel, A as AnyRelationshipModel, N as NestedElementOfDeployedInstanceModel, E as ElementModel, R as RelationshipModel, L as LikeC4ViewModel, c as NodeModel, d as EdgeModel, e as DeploymentElementModel } from '../shared/core.CpURdWRM.mjs';
2
- export { g as AnyLikeC4Model, l as DeploymentOrFqn, i as DeploymentRelationEndpoint, m as EdgeOrId, n as ElementOrFqn, I as IncomingFilter, j as LikeC4DeploymentModel, f as LikeC4Model, k as LikeC4ViewsFolder, o as NodeOrId, O as OutgoingFilter, h as RelationshipsAccum, W as WithMetadata, p as WithTags } from '../shared/core.CpURdWRM.mjs';
3
- import { A as Any } from '../shared/core.B73yxfPi.mjs';
4
- export { C as Connection } from '../shared/core.Cog93roC.mjs';
5
- export { C as ConnectionModel, f as modelConnection } from '../shared/core.BGFjN3nv.mjs';
6
- export { D as DeploymentConnectionModel, f as deploymentConnection } from '../shared/core.t3qfsVvn.mjs';
1
+ import { D as DeploymentNodeModel, a as DeployedInstanceModel, b as DeploymentRelationModel, A as AnyRelationshipModel, N as NestedElementOfDeployedInstanceModel, E as ElementModel, R as RelationshipModel, L as LikeC4ViewModel, c as NodeModel, d as EdgeModel, e as DeploymentElementModel } from '../shared/core.BLG-ADpi.mjs';
2
+ export { g as AnyLikeC4Model, l as DeploymentOrFqn, i as DeploymentRelationEndpoint, m as EdgeOrId, n as ElementOrFqn, I as IncomingFilter, j as LikeC4DeploymentModel, f as LikeC4Model, k as LikeC4ViewsFolder, o as NodeOrId, O as OutgoingFilter, h as RelationshipsAccum, W as WithMetadata, p as WithTags } from '../shared/core.BLG-ADpi.mjs';
3
+ import { A as Any } from '../shared/core.BkSYCfRg.mjs';
4
+ export { C as Connection } from '../shared/core.Byj60hH6.mjs';
5
+ export { C as ConnectionModel, f as modelConnection } from '../shared/core.D4Y4U8Lp.mjs';
6
+ export { D as DeploymentConnectionModel, f as deploymentConnection } from '../shared/core.CQYL_Z-_.mjs';
7
7
  export { differenceConnections, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isIncoming, isNestedConnection, isOutgoing, mergeConnections, sortConnectionsByBoundaryHierarchy, sortDeepestFirst } from './connection/index.mjs';
8
8
  import 'type-fest';
9
- import '../shared/core.Dvh1H0T2.mjs';
10
- import '../shared/core.0zAQeenX.mjs';
9
+ import '../shared/core.or6-EHsb.mjs';
10
+ import '../shared/core.9U0HL3oG.mjs';
11
11
  import '../shared/core.DB0Ue5Wx.mjs';
12
12
  import '../types/fqnRef.mjs';
13
- import '../shared/core.DX-WYEPA.mjs';
14
- import '../shared/core.mUnpvHtA.mjs';
13
+ import '../shared/core.CDdf8izT.mjs';
14
+ import '../shared/core.DE-g9oFF.mjs';
15
15
  import '../types/expression-model.mjs';
16
+ import '../shared/core.BPGOjone.mjs';
16
17
  import '../shared/core.CywrQs86.mjs';
17
- import '../shared/core.DnCLhN8C.mjs';
18
+ import '../shared/core.5gPDaaG5.mjs';
18
19
 
19
20
  type AnyModel<A extends Any> = DeploymentNodeModel<A> | DeployedInstanceModel<A> | DeploymentRelationModel<A> | AnyRelationshipModel<A> | NestedElementOfDeployedInstanceModel<A> | ElementModel<A> | RelationshipModel<A> | LikeC4ViewModel<A> | NodeModel<A> | EdgeModel<A>;
20
21
  declare function isDeploymentNodeModel<M extends Any>(model: AnyModel<M>): model is DeploymentNodeModel<M>;
@@ -1,4 +1,4 @@
1
- export { g as EdgeModel, E as ElementModel, f as LikeC4DeploymentModel, L as LikeC4Model, h as LikeC4ViewModel, j as LikeC4ViewsFolder, N as NodeModel, R as RelationshipModel, V as VIEW_FOLDERS_SEPARATOR, k as extractViewTitleFromPath, l as getViewFolderPath, c as isDeployedInstanceModel, e as isDeploymentElementModel, d as isDeploymentNodeModel, m as isDeploymentRelationModel, r as isEdgeModel, i as isElementModel, p as isLikeC4ViewModel, o as isModelRelation, b as isNestedElementOfDeployedInstanceModel, q as isNodeModel, o as isRelationModel, o as isRelationshipModel, n as normalizeViewPath } from '../shared/core.CRI1AjFj.mjs';
2
- export { b as DeployedInstanceModel, D as DeploymentConnectionModel, a as DeploymentNodeModel, c as DeploymentRelationModel, R as RelationshipsAccum, d as deploymentConnection } from '../shared/core.D_f4F48-.mjs';
1
+ export { g as EdgeModel, E as ElementModel, f as LikeC4DeploymentModel, L as LikeC4Model, h as LikeC4ViewModel, j as LikeC4ViewsFolder, N as NodeModel, R as RelationshipModel, V as VIEW_FOLDERS_SEPARATOR, k as extractViewTitleFromPath, l as getViewFolderPath, c as isDeployedInstanceModel, e as isDeploymentElementModel, d as isDeploymentNodeModel, m as isDeploymentRelationModel, r as isEdgeModel, i as isElementModel, p as isLikeC4ViewModel, o as isModelRelation, b as isNestedElementOfDeployedInstanceModel, q as isNodeModel, o as isRelationModel, o as isRelationshipModel, n as normalizeViewPath } from '../shared/core.DU8pv3Q6.mjs';
2
+ export { b as DeployedInstanceModel, D as DeploymentConnectionModel, a as DeploymentNodeModel, c as DeploymentRelationModel, R as RelationshipsAccum, d as deploymentConnection } from '../shared/core.DbQpDoJS.mjs';
3
3
  export { C as Connection } from '../shared/core.DqlrMlsf.mjs';
4
4
  export { C as ConnectionModel, d as differenceConnections, f as findAscendingConnections, a as findDeepestNestedConnection, b as findDescendantConnections, h as hasSameSource, c as hasSameSourceTarget, e as hasSameTarget, i as isAnyInOut, g as isIncoming, j as isNestedConnection, k as isOutgoing, m as mergeConnections, n as modelConnection, s as sortConnectionsByBoundaryHierarchy, l as sortDeepestFirst } from '../shared/core.CQPEY2wQ.mjs';
@@ -1,10 +1,11 @@
1
1
  import { Simplify, IsAny } from 'type-fest';
2
- import { A as Any, U as Unknown, W as WithDescriptionAndTech, s as WithOptionalTags, u as WithOptionalLinks, v as WithMetadata, w as WithNotation, x as DeploymentFqn, y as DeploymentKind, F as Fqn, n as _type, m as _stage, o as _layout, S as StrictViewId, N as NodeId, z as EdgeId, k as ExtractOnStage, M as ModelStage, P as ProjectId, a as ElementId, D as DeploymentId, d as AnyParsed, i as UnknownParsed, V as ViewId$1, b as AnyComputed, g as UnknownComputed, c as AnyLayouted, h as UnknownLayouted, f as SpecAux, e as Aux, B as Never } from './core.B73yxfPi.mjs';
2
+ import { A as Any, U as Unknown, W as WithDescriptionAndTech, s as WithOptionalTags, u as WithOptionalLinks, v as WithMetadata, w as WithNotation, x as DeploymentFqn, y as DeploymentKind, F as Fqn, n as _type, m as _stage, o as _layout, S as StrictViewId, N as NodeId, z as EdgeId, k as ExtractOnStage, M as ModelStage, P as ProjectId, a as ElementId, D as DeploymentId, d as AnyParsed, i as UnknownParsed, V as ViewId$1, b as AnyComputed, g as UnknownComputed, c as AnyLayouted, h as UnknownLayouted, f as SpecAux, e as Aux, B as Never } from './core.BkSYCfRg.mjs';
3
3
  import { a as NonEmptyReadonlyArray, N as NonEmptyArray, E as ExclusiveUnion, K as KeysOf } from './core.DB0Ue5Wx.mjs';
4
- import { E as ElementStyle, A as AbstractRelationship, F as ViewType, B as BBox, z as ViewAutoLayout, J as ViewWithNotation, H as BaseViewProperties, K as ViewWithHash, O as ComputedNode, Q as ComputedEdge, P as Point, X as XYPoint, a7 as DynamicViewDisplayVariant, I as BaseParsedViewProperties, p as AnyIncludePredicate, q as AnyExcludePredicate, r as AnyViewRuleStyle, x as ViewRuleAutoLayout, ag as ParsedElementView, a8 as ParsedDynamicView, U as ComputedElementView, W as ComputedDeploymentView, Y as ComputedDynamicView, o as LikeC4Project, S as Specification, f as Element, g as Relationship, M as ModelGlobals } from './core.mUnpvHtA.mjs';
4
+ import { E as ElementStyle, A as AbstractRelationship, F as ViewType, B as ViewAutoLayout, J as ViewWithNotation, H as BaseViewProperties, K as ViewWithHash, O as ComputedNode, P as ComputedEdge, a6 as DynamicViewDisplayVariant, I as BaseParsedViewProperties, o as AnyIncludePredicate, p as AnyExcludePredicate, q as AnyViewRuleStyle, y as ViewRuleAutoLayout, ah as ParsedElementView, a7 as ParsedDynamicView, U as ComputedElementView, W as ComputedDeploymentView, X as ComputedDynamicView, n as LikeC4Project, S as Specification, f as Element, R as Relationship, M as ModelGlobals } from './core.DE-g9oFF.mjs';
5
5
  import { FqnRef } from '../types/fqnRef.mjs';
6
- import { F as Fqn$1, V as ViewId, M as MarkdownOrString, d as RelationId } from './core.DX-WYEPA.mjs';
7
- import { j as Expression, F as FqnExpr } from './core.0zAQeenX.mjs';
6
+ import { F as Fqn$1, V as ViewId, M as MarkdownOrString, d as RelationId } from './core.CDdf8izT.mjs';
7
+ import { B as BBox, P as Point, X as XYPoint } from './core.BPGOjone.mjs';
8
+ import { j as Expression, F as FqnExpr } from './core.9U0HL3oG.mjs';
8
9
 
9
10
  interface DeploymentNode<A extends Any = Unknown> extends WithDescriptionAndTech, WithOptionalTags<A>, WithOptionalLinks, WithMetadata<A>, WithNotation {
10
11
  element?: never;
@@ -1,8 +1,8 @@
1
1
  import { TupleToUnion, Tagged } from 'type-fest';
2
- import { A as Any, T as Tag, q as AllKinds, r as Tags, S as StrictViewId, E as ElementKind } from './core.B73yxfPi.mjs';
2
+ import { A as Any, T as Tag, q as AllKinds, r as Tags, S as StrictViewId, E as ElementKind } from './core.BkSYCfRg.mjs';
3
3
  import { N as NonEmptyArray, E as ExclusiveUnion } from './core.DB0Ue5Wx.mjs';
4
4
  import { FqnRef } from '../types/fqnRef.mjs';
5
- import { M as MarkdownOrString, I as Icon } from './core.DX-WYEPA.mjs';
5
+ import { M as MarkdownOrString, I as Icon } from './core.CDdf8izT.mjs';
6
6
 
7
7
  /**
8
8
  * For padding, margin, etc.
@@ -1,8 +1,7 @@
1
1
  import { t as t$1 } from './core.BsSXS-_R.mjs';
2
2
  import { g as getDefaultExportFromCjs } from './core.B85MJLTf.mjs';
3
- import { r as requireIterator } from './core.BdPcbSkN.mjs';
4
- import { r as requireForeach, a as markdownToText, m as markdownToHtml } from './core.CR3PmPzr.mjs';
5
- import { m as memoizeProp } from './core.BR4zXDH-.mjs';
3
+ import { r as requireForeach, b as requireIterator, a as markdownToText, m as markdownToHtml } from './core.CBLX4mT8.mjs';
4
+ import { m as memoizeProp } from './core.CLSZtnFh.mjs';
6
5
  import { n as nonexhaustive } from './core.D4npX2q8.mjs';
7
6
 
8
7
  function t(...t){return t$1(n,t)}function n(e,t){let n={...e};for(let[r,i]of Object.entries(n))t(i,r,e)&&delete n[r];return n}
@@ -1,12 +1,13 @@
1
1
  import { SetRequired, IsAny } from 'type-fest';
2
- import { L as LikeC4Styles } from './core.Dvh1H0T2.mjs';
3
- import { A as Any, R as RelationKind, r as Tags, H as Metadata, C as MetadataKey, I as LooseTag, F as Fqn, a as ElementId, E as ElementKind, y as DeploymentKind, c as AnyLayouted, J as RelationId$1, S as StrictViewId, n as _type, m as _stage, K as LooseElementId, O as LooseDeploymentId, x as DeploymentFqn, t as toComputed, b as AnyComputed, Q as Stage, D as DeploymentId, V as ViewId, T as Tag, d as AnyParsed, P as ProjectId$1, X as LooseViewId, U as Unknown, e as Aux, i as UnknownParsed, g as UnknownComputed, h as UnknownLayouted } from './core.B73yxfPi.mjs';
4
- import { d as RelationId, P as ProjectId, a as IconUrl, N as NodeId, G as GroupElementKind, j as EdgeId, k as StepEdgeId, V as ViewId$1 } from './core.DX-WYEPA.mjs';
2
+ import { L as LikeC4Styles } from './core.or6-EHsb.mjs';
3
+ import { A as Any, R as RelationKind, r as Tags, H as Metadata, C as MetadataKey, I as LooseTag, F as Fqn, a as ElementId, E as ElementKind, y as DeploymentKind, c as AnyLayouted, J as RelationId$1, S as StrictViewId, n as _type, m as _stage, K as LooseElementId, O as LooseDeploymentId, x as DeploymentFqn, t as toComputed, b as AnyComputed, Q as Stage, D as DeploymentId, V as ViewId, T as Tag, d as AnyParsed, P as ProjectId$1, X as LooseViewId, U as Unknown, e as Aux, i as UnknownParsed, g as UnknownComputed, h as UnknownLayouted } from './core.BkSYCfRg.mjs';
4
+ import { d as RelationId, P as ProjectId, a as IconUrl, j as NodeId, G as GroupElementKind, k as EdgeId, l as StepEdgeId, V as ViewId$1 } from './core.CDdf8izT.mjs';
5
5
  import { D as DefaultMap } from './core.CywrQs86.mjs';
6
- import { b as RichTextOrEmpty, L as LayoutedView, V as ViewManualLayoutSnapshot, r as ComputedView, v as ViewWithType, P as ParsedLikeC4ModelData, C as ComputedLikeC4ModelData, c as LayoutedLikeC4ModelData, e as DeployedInstance, j as DeploymentRelationship, f as DeploymentElement, D as DeploymentNode, m as LikeC4ModelDump, o as AuxFromDump } from './core.DnCLhN8C.mjs';
6
+ import { b as RichTextOrEmpty, L as LayoutedView, V as ViewManualLayoutSnapshot, r as ComputedView, v as ViewWithType, P as ParsedLikeC4ModelData, C as ComputedLikeC4ModelData, c as LayoutedLikeC4ModelData, e as DeployedInstance, j as DeploymentRelationship, f as DeploymentElement, D as DeploymentNode, m as LikeC4ModelDump, o as AuxFromDump } from './core.5gPDaaG5.mjs';
7
7
  import { c as IteratorLike, L as Link, N as NonEmptyArray } from './core.DB0Ue5Wx.mjs';
8
- import { C as Color, f as RelationshipLineType, g as RelationshipArrowType, h as ElementShape, W as WhereOperator } from './core.0zAQeenX.mjs';
9
- import { g as Relationship, f as Element, E as ElementStyle, C as ComputedNodeStyle, B as BBox, a7 as DynamicViewDisplayVariant, o as LikeC4Project, S as Specification, M as ModelGlobals } from './core.mUnpvHtA.mjs';
8
+ import { C as Color, f as RelationshipLineType, g as RelationshipArrowType, h as ElementShape, W as WhereOperator } from './core.9U0HL3oG.mjs';
9
+ import { R as Relationship, f as Element, E as ElementStyle, C as ComputedNodeStyle, a6 as DynamicViewDisplayVariant, n as LikeC4Project, S as Specification, M as ModelGlobals } from './core.DE-g9oFF.mjs';
10
+ import { B as BBox } from './core.BPGOjone.mjs';
10
11
  import { FqnRef } from '../types/fqnRef.mjs';
11
12
 
12
13
  type RelationshipsIterator<A extends Any> = IteratorLike<RelationshipModel<A>>;
@@ -0,0 +1,46 @@
1
+ type Point = readonly [x: number, y: number];
2
+ interface XYPoint {
3
+ x: number;
4
+ y: number;
5
+ }
6
+ interface BBox {
7
+ x: number;
8
+ y: number;
9
+ width: number;
10
+ height: number;
11
+ }
12
+ declare namespace BBox {
13
+ function center({ x, y, width, height }: BBox): XYPoint;
14
+ /**
15
+ * Returns the four corner points of the box in clockwise order starting from top-left
16
+ */
17
+ function toPoints({ x, y, width, height }: BBox): [XYPoint, XYPoint, XYPoint, XYPoint];
18
+ function fromPoints(points: Point[]): BBox;
19
+ function merge(...boxes: BBox[]): BBox;
20
+ function fromRectBox(rect: RectBox): BBox;
21
+ function toRectBox(box: BBox): RectBox;
22
+ function expand(box: BBox, plus: number): BBox;
23
+ function shrink(box: BBox, minus: number): BBox;
24
+ /**
25
+ * Returns true if `a` includes `b` (i.e. `b` is inside `a`)
26
+ */
27
+ function includes(a: BBox, b: BBox): boolean;
28
+ }
29
+ interface RectBox {
30
+ x1: number;
31
+ y1: number;
32
+ x2: number;
33
+ y2: number;
34
+ }
35
+ declare namespace RectBox {
36
+ function center({ x1, y1, x2, y2 }: RectBox): XYPoint;
37
+ function fromPoints(points: Point[]): RectBox;
38
+ function merge(...boxes: RectBox[]): RectBox;
39
+ function toBBox(box: RectBox): BBox;
40
+ /**
41
+ * Returns true if `a` includes `b` (i.e. `b` is inside `a`)
42
+ */
43
+ function includes(a: RectBox, b: RectBox): boolean;
44
+ }
45
+
46
+ export { BBox as B, type Point as P, RectBox as R, type XYPoint as X };
@@ -1,6 +1,5 @@
1
1
  import { g as getDefaultExportFromCjs } from './core.B85MJLTf.mjs';
2
- import { r as requireForeach } from './core.CR3PmPzr.mjs';
3
- import { r as requireIterator } from './core.BdPcbSkN.mjs';
2
+ import { r as requireForeach, b as requireIterator } from './core.CBLX4mT8.mjs';
4
3
 
5
4
  /**
6
5
  * Mnemonist BiMap
@@ -1,6 +1,6 @@
1
1
  import { IfNever, IsNever, IsLiteral } from 'type-fest';
2
2
  import { C as Coalesce, L as Link } from './core.DB0Ue5Wx.mjs';
3
- import { V as ViewId$1, F as Fqn$1, D as DeploymentFqn$1, N as NodeId$1, j as EdgeId$1, d as RelationId$1, P as ProjectId$1, T as Tag$1, E as ElementKind$1, b as DeploymentKind$1, c as RelationshipKind, M as MarkdownOrString } from './core.DX-WYEPA.mjs';
3
+ import { V as ViewId$1, F as Fqn$1, D as DeploymentFqn$1, j as NodeId$1, k as EdgeId$1, d as RelationId$1, P as ProjectId$1, T as Tag$1, E as ElementKind$1, b as DeploymentKind$1, c as RelationshipKind, M as MarkdownOrString } from './core.CDdf8izT.mjs';
4
4
 
5
5
  /**
6
6
  * Determines the stage of the model:
@@ -1,5 +1,5 @@
1
1
  import { I as IterableContainer, R as ReorderedArray, N as NonEmptyArray } from './core.DB0Ue5Wx.mjs';
2
- import { F as Fqn } from './core.DX-WYEPA.mjs';
2
+ import { F as Fqn } from './core.CDdf8izT.mjs';
3
3
  import { SetRequired, SetNonNullable } from 'type-fest';
4
4
 
5
5
  /**
@@ -1,6 +1,6 @@
1
+ import { d as defu, m as memoizeProp } from './core.CLSZtnFh.mjs';
1
2
  import { t as t$2, a as t$3 } from './core.BsSXS-_R.mjs';
2
3
  import { i as invariant } from './core.D4npX2q8.mjs';
3
- import { m as memoizeProp } from './core.BR4zXDH-.mjs';
4
4
 
5
5
  function t$1(...t){return t$2(n$1,t)}function n$1(e,t){let n={};for(let[r,i]of e.entries())n[i]=t(i,r,e);return n}
6
6
 
@@ -140,7 +140,7 @@ class Color {
140
140
  }
141
141
 
142
142
  // this gets updated automatically
143
- const version = '3.1.2';
143
+ const version = '3.2.0';
144
144
 
145
145
  const chroma = (...args) => {
146
146
  return new Color(...args);
@@ -1762,6 +1762,7 @@ function scale (colors) {
1762
1762
  let _nacol = chroma('#ccc');
1763
1763
  let _spread = 0;
1764
1764
  // const _fixed = false;
1765
+ let _positions = [0, 1];
1765
1766
  let _domain = [0, 1];
1766
1767
  let _pos = [];
1767
1768
  let _padding = [0, 0];
@@ -1930,9 +1931,9 @@ function scale (colors) {
1930
1931
  if (classes != null) {
1931
1932
  if (type(classes) === 'array') {
1932
1933
  _classes = classes;
1933
- _domain = [classes[0], classes[classes.length - 1]];
1934
+ _positions = [classes[0], classes[classes.length - 1]];
1934
1935
  } else {
1935
- const d = chroma.analyze(_domain);
1936
+ const d = chroma.analyze(_positions);
1936
1937
  if (classes === 0) {
1937
1938
  _classes = [d.min, d.max];
1938
1939
  } else {
@@ -1946,8 +1947,11 @@ function scale (colors) {
1946
1947
 
1947
1948
  f.domain = function (domain) {
1948
1949
  if (!arguments.length) {
1950
+ // return original domain
1949
1951
  return _domain;
1950
1952
  }
1953
+ // store original domain so we can return it later
1954
+ _domain = domain.slice(0);
1951
1955
  _min = domain[0];
1952
1956
  _max = domain[domain.length - 1];
1953
1957
  _pos = [];
@@ -1978,7 +1982,7 @@ function scale (colors) {
1978
1982
  }
1979
1983
  }
1980
1984
  }
1981
- _domain = [_min, _max];
1985
+ _positions = [_min, _max];
1982
1986
  return f;
1983
1987
  };
1984
1988
 
@@ -2074,8 +2078,8 @@ function scale (colors) {
2074
2078
  } else if (numColors === 1) {
2075
2079
  result = [f(0.5)];
2076
2080
  } else if (numColors > 1) {
2077
- const dm = _domain[0];
2078
- const dd = _domain[1] - dm;
2081
+ const dm = _positions[0];
2082
+ const dd = _positions[1] - dm;
2079
2083
  result = __range__(0, numColors).map((i) =>
2080
2084
  f(dm + (i / (numColors - 1)) * dd)
2081
2085
  );
@@ -2092,7 +2096,7 @@ function scale (colors) {
2092
2096
  samples.push((_classes[i - 1] + _classes[i]) * 0.5);
2093
2097
  }
2094
2098
  } else {
2095
- samples = _domain;
2099
+ samples = _positions;
2096
2100
  }
2097
2101
  result = samples.map((v) => f(v));
2098
2102
  }
@@ -2408,10 +2412,14 @@ const digits = '0123456789abcdef';
2408
2412
 
2409
2413
  const { floor: floor$1, random } = Math;
2410
2414
 
2411
- const random$1 = () => {
2415
+ /**
2416
+ * Generates a random color.
2417
+ * @param {() => number} rng - A random number generator function.
2418
+ */
2419
+ const random$1 = (rng = random) => {
2412
2420
  let code = '#';
2413
2421
  for (let i = 0; i < 6; i++) {
2414
- code += digits.charAt(floor$1(random() * 16));
2422
+ code += digits.charAt(floor$1(rng() * 16));
2415
2423
  }
2416
2424
  return new Color(code, 'hex');
2417
2425
  };
@@ -3553,9 +3561,9 @@ const ElementColors = {
3553
3561
  };
3554
3562
 
3555
3563
  const gray = {
3556
- line: "#6E6E6E",
3557
- labelBg: "#18191b",
3558
- label: "#C6C6C6"
3564
+ line: "#8D8D8D",
3565
+ labelBg: "#18191B",
3566
+ label: "#C9C9C9"
3559
3567
  };
3560
3568
  const slate = {
3561
3569
  line: "#64748b",
@@ -3779,62 +3787,6 @@ const defaultTheme = {
3779
3787
  }
3780
3788
  };
3781
3789
 
3782
- function isPlainObject(value) {
3783
- if (value === null || typeof value !== "object") {
3784
- return false;
3785
- }
3786
- const prototype = Object.getPrototypeOf(value);
3787
- if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {
3788
- return false;
3789
- }
3790
- if (Symbol.iterator in value) {
3791
- return false;
3792
- }
3793
- if (Symbol.toStringTag in value) {
3794
- return Object.prototype.toString.call(value) === "[object Module]";
3795
- }
3796
- return true;
3797
- }
3798
-
3799
- function _defu(baseObject, defaults, namespace = ".", merger) {
3800
- if (!isPlainObject(defaults)) {
3801
- return _defu(baseObject, {}, namespace, merger);
3802
- }
3803
- const object = Object.assign({}, defaults);
3804
- for (const key in baseObject) {
3805
- if (key === "__proto__" || key === "constructor") {
3806
- continue;
3807
- }
3808
- const value = baseObject[key];
3809
- if (value === null || value === void 0) {
3810
- continue;
3811
- }
3812
- if (merger && merger(object, key, value, namespace)) {
3813
- continue;
3814
- }
3815
- if (Array.isArray(value) && Array.isArray(object[key])) {
3816
- object[key] = [...value, ...object[key]];
3817
- } else if (isPlainObject(value) && isPlainObject(object[key])) {
3818
- object[key] = _defu(
3819
- value,
3820
- object[key],
3821
- (namespace ? `${namespace}.` : "") + key.toString(),
3822
- merger
3823
- );
3824
- } else {
3825
- object[key] = value;
3826
- }
3827
- }
3828
- return object;
3829
- }
3830
- function createDefu(merger) {
3831
- return (...arguments_) => (
3832
- // eslint-disable-next-line unicorn/no-array-reduce
3833
- arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
3834
- );
3835
- }
3836
- const defu = createDefu();
3837
-
3838
3790
  function ensureSizes({
3839
3791
  size,
3840
3792
  padding,
@@ -3989,4 +3941,4 @@ class LikeC4Styles {
3989
3941
  }
3990
3942
  }
3991
3943
 
3992
- export { BorderStyles as B, ElementShapes as E, LikeC4Styles as L, RelationshipArrowTypes as R, Sizes as S, ThemeColors as T, t as a, defaultTheme as b, computeColorValues as c, defu as d, ensureSizes as e, isCustomColor as f, isThemeColor as i, styleDefaults as s, t$1 as t };
3944
+ export { BorderStyles as B, ElementShapes as E, LikeC4Styles as L, RelationshipArrowTypes as R, Sizes as S, ThemeColors as T, t as a, isCustomColor as b, computeColorValues as c, defaultTheme as d, ensureSizes as e, isThemeColor as i, styleDefaults as s, t$1 as t };
@@ -1,6 +1,6 @@
1
- import { E as ElementModel, e as DeploymentElementModel } from './core.CpURdWRM.mjs';
2
- import { A as Any } from './core.B73yxfPi.mjs';
3
- import { F as Fqn } from './core.DX-WYEPA.mjs';
1
+ import { E as ElementModel, e as DeploymentElementModel } from './core.BLG-ADpi.mjs';
2
+ import { A as Any } from './core.BkSYCfRg.mjs';
3
+ import { F as Fqn } from './core.CDdf8izT.mjs';
4
4
 
5
5
  interface Connection<Elem = ElementModel<Any> | DeploymentElementModel<Any>, Id = string> {
6
6
  readonly id: Id;