@ddd-tool/domain-designer-ui-component 0.1.0-beta.1 → 0.1.0-beta.11

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.
@@ -1,34 +1,11 @@
1
- declare const position: import("vue").Ref<{
2
- x: number;
3
- y: number;
4
- }, {
5
- x: number;
6
- y: number;
7
- } | {
8
- x: number;
9
- y: number;
10
- }>;
11
- declare const containerRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
12
- declare const cursor: import("vue").Ref<string, string>;
13
- declare const scale: import("vue").Ref<number, number>;
14
- declare const onMouseDown: (e: MouseEvent) => void;
15
- declare const onMouseMove: (e: MouseEvent) => void;
16
- declare const onMouseUp: (_: MouseEvent) => void;
17
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
1
+ declare function resetPosition(): void;
18
2
  declare var __VLS_1: {};
19
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
3
+ type __VLS_Slots = {} & {
20
4
  default?: (props: typeof __VLS_1) => any;
21
- }>;
22
- declare const __VLS_self: import("vue").DefineComponent<{}, {
23
- position: typeof position;
24
- containerRef: typeof containerRef;
25
- cursor: typeof cursor;
26
- scale: typeof scale;
27
- onMouseDown: typeof onMouseDown;
28
- onMouseMove: typeof onMouseMove;
29
- onMouseUp: typeof onMouseUp;
5
+ };
6
+ declare const __VLS_component: import("vue").DefineComponent<{}, {
7
+ resetPosition: typeof resetPosition;
30
8
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
31
- declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
32
9
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
33
10
  export default _default;
34
11
  type __VLS_WithSlots<T, S> = T & {
@@ -0,0 +1,2 @@
1
+ import type { RenderConfig } from '#lib/domain/diagram-agg/define';
2
+ export default function (config: RenderConfig): string;
@@ -0,0 +1,20 @@
1
+ export declare const EMPTY_STORY = "__Empty__";
2
+ export declare const VALID_RANKERS: Readonly<{
3
+ NetworkSimplex: "network-simplex";
4
+ TightTree: "tight-tree";
5
+ LongestPath: "longest-path";
6
+ }>;
7
+ export type Ranker = (typeof VALID_RANKERS)[keyof typeof VALID_RANKERS];
8
+ export declare const VALID_EDGE_TYPES: Readonly<{
9
+ Rounded: "rounded";
10
+ Hard: "hard";
11
+ }>;
12
+ export type EdgeType = (typeof VALID_EDGE_TYPES)[keyof typeof VALID_EDGE_TYPES];
13
+ export type RenderConfig = {
14
+ ranker: Ranker;
15
+ padding: number;
16
+ fontSize: number;
17
+ edges: EdgeType;
18
+ bendSize: number;
19
+ };
20
+ export declare function defaultRenderConfig(): RenderConfig;
@@ -1,2 +1,25 @@
1
- import type { DomainDesigner } from '@ddd-tool/domain-designer-core';
2
- export declare function nomnomlCodeGenerator<T extends DomainDesigner>(design: T, displayReadModel: boolean, displaySystem: boolean): Generator<string, void, unknown>;
1
+ import type { DomainDesignAgg, DomainDesigner } from '@ddd-tool/domain-designer-core';
2
+ export declare function nomnomlCodeGenerator<T extends DomainDesigner>(params: {
3
+ design: T;
4
+ currentStory: string;
5
+ linkReadModel: boolean;
6
+ linkSystem: boolean;
7
+ }): Generator<string, void, unknown>;
8
+ export declare function filterContext(params: {
9
+ design: DomainDesigner;
10
+ currentStory: string;
11
+ displayReadModel: boolean;
12
+ displaySystem: boolean;
13
+ }): {
14
+ aggs: DomainDesignAgg<any>[];
15
+ commands: import("@ddd-tool/domain-designer-core").DomainDesignCommand<any>[];
16
+ facadeCommands: import("@ddd-tool/domain-designer-core").DomainDesignFacadeCommand<any>[];
17
+ events: import("@ddd-tool/domain-designer-core").DomainDesignEvent<any>[];
18
+ services: import("@ddd-tool/domain-designer-core").DomainDesignService[];
19
+ actors: import("@ddd-tool/domain-designer-core").DomainDesignActor[];
20
+ policies: import("@ddd-tool/domain-designer-core").DomainDesignPolicy[];
21
+ readModels: import("@ddd-tool/domain-designer-core").DomainDesignReadModel<any>[];
22
+ systems: import("@ddd-tool/domain-designer-core").DomainDesignSystem[];
23
+ links: Record<string, import("@ddd-tool/domain-designer-core/common").LinkType>;
24
+ getIdMap: () => Record<string, import("@ddd-tool/domain-designer-core").DomainDesignObject>;
25
+ };