@likec4/core
Advanced tools
Comparing version 0.19.0 to 0.20.0
import type { ModelIndex } from '../model-index'; | ||
import { type ElementView, type ComputedView } from '../types'; | ||
export declare function computeElementView(view: ElementView, index: ModelIndex): ComputedView; | ||
import { type ElementView, type ComputeResult } from '../types'; | ||
export declare function computeElementView<V extends ElementView>(view: V, index: ModelIndex): ComputeResult<V>; | ||
//# sourceMappingURL=compute-element-view.d.ts.map |
import { anyPass, filter, head, uniq, isNil } from 'rambdax'; | ||
import { DefaultThemeColor, DefaultElementShape } from '../types'; | ||
import { DefaultThemeColor, DefaultElementShape, } from '../types'; | ||
import * as Expression from '../types/expression'; | ||
@@ -4,0 +4,0 @@ import { isViewRuleAutoLayout, isViewRuleExpression, isViewRuleStyle } from '../types/view'; |
import { ModelIndex } from '../model-index'; | ||
import type { Element, ElementView, Fqn, LikeC4Model, Relation, ComputedView, RelationID, ViewID } from '../types'; | ||
export declare function computeView(view: ElementView, index: ModelIndex): ComputedView; | ||
type InputModel = { | ||
import type { Element, ElementView, Fqn, Relation, RelationID, ViewID, ComputeResult } from '../types'; | ||
export declare function computeView<V extends ElementView>(view: V, index: ModelIndex): ComputeResult<V>; | ||
type InputModel<V extends ElementView> = { | ||
elements: Record<Fqn, Element>; | ||
relations: Record<RelationID, Relation>; | ||
views: Record<ViewID, ElementView>; | ||
views: Record<ViewID, V>; | ||
}; | ||
export declare function computeViews(model: InputModel): LikeC4Model; | ||
type OutputModel<V extends ElementView> = { | ||
elements: Record<Fqn, Element>; | ||
relations: Record<RelationID, Relation>; | ||
views: Record<ViewID, ComputeResult<V>>; | ||
}; | ||
export declare function computeViews<V extends ElementView>(model: InputModel<V>): OutputModel<V>; | ||
export {}; | ||
//# sourceMappingURL=compute.d.ts.map |
@@ -33,2 +33,3 @@ import type { Opaque } from './opaque'; | ||
} | ||
export type ComputeResult<V extends ElementView> = V & Pick<ComputedView, 'autoLayout' | 'nodes' | 'edges'>; | ||
//# sourceMappingURL=computed-view.d.ts.map |
{ | ||
"name": "@likec4/core", | ||
"version": "0.19.0", | ||
"version": "0.20.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "bugs": "https://github.com/likec4/likec4/issues", |
58418
1542