@nubisco/ui 1.22.1 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,6 @@
1
- import type { IBlueprintConnection, IBlueprintProps } from './Blueprint.d';
1
+ import type { IBlueprintConnection, IBlueprintCardMove, IBlueprintProps } from './Blueprint.d';
2
+ declare function selectAll(): void;
3
+ declare function deselectAll(): void;
2
4
  declare function onPortMouseDown(data: {
3
5
  nodeId: string;
4
6
  portId: string;
@@ -10,12 +12,41 @@ declare function onPortMouseUp(data: {
10
12
  type: string;
11
13
  }): void;
12
14
  declare function centerView(): void;
15
+ declare function fitToView(padding?: number): void;
16
+ declare function resetView(): void;
17
+ declare function alignLeft(): void;
18
+ declare function alignCenter(): void;
19
+ declare function alignRight(): void;
20
+ declare function alignTop(): void;
21
+ declare function alignMiddle(): void;
22
+ declare function alignBottom(): void;
23
+ declare function distributeHorizontally(): void;
24
+ declare function distributeVertically(): void;
25
+ declare function autoLayout(options?: {
26
+ gapX?: number;
27
+ gapY?: number;
28
+ padding?: number;
29
+ }): void;
13
30
  declare var __VLS_1: {};
14
31
  type __VLS_Slots = {} & {
15
32
  default?: (props: typeof __VLS_1) => any;
16
33
  };
17
34
  declare const __VLS_base: import("vue").DefineComponent<IBlueprintProps, {
18
35
  centerView: typeof centerView;
36
+ fitToView: typeof fitToView;
37
+ resetView: typeof resetView;
38
+ selectedIds: import("vue").Ref<Set<string> & Omit<Set<string>, keyof Set<any>>, Set<string> | (Set<string> & Omit<Set<string>, keyof Set<any>>)>;
39
+ selectAll: typeof selectAll;
40
+ deselectAll: typeof deselectAll;
41
+ alignLeft: typeof alignLeft;
42
+ alignCenter: typeof alignCenter;
43
+ alignRight: typeof alignRight;
44
+ alignTop: typeof alignTop;
45
+ alignMiddle: typeof alignMiddle;
46
+ alignBottom: typeof alignBottom;
47
+ distributeHorizontally: typeof distributeHorizontally;
48
+ distributeVertically: typeof distributeVertically;
49
+ autoLayout: typeof autoLayout;
19
50
  onPortMouseDown: typeof onPortMouseDown;
20
51
  onPortMouseUp: typeof onPortMouseUp;
21
52
  panX: import("vue").Ref<number, number>;
@@ -24,9 +55,13 @@ declare const __VLS_base: import("vue").DefineComponent<IBlueprintProps, {
24
55
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
56
  disconnect: (conn: IBlueprintConnection) => any;
26
57
  connect: (conn: IBlueprintConnection) => any;
58
+ move: (moves: IBlueprintCardMove[]) => any;
59
+ "selection-change": (ids: string[]) => any;
27
60
  }, string, import("vue").PublicProps, Readonly<IBlueprintProps> & Readonly<{
28
61
  onDisconnect?: ((conn: IBlueprintConnection) => any) | undefined;
29
62
  onConnect?: ((conn: IBlueprintConnection) => any) | undefined;
63
+ onMove?: ((moves: IBlueprintCardMove[]) => any) | undefined;
64
+ "onSelection-change"?: ((ids: string[]) => any) | undefined;
30
65
  }>, {
31
66
  connections: IBlueprintConnection[];
32
67
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"Blueprint.vue.d.ts","sourceRoot":"","sources":["../../src/components/Blueprint.vue"],"names":[],"mappings":"AA4ZA,OAAO,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAkF1E,iBAAS,eAAe,CAAC,IAAI,EAAE;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;CACb,QAIA;AA8BD,iBAAS,aAAa,CAAC,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,QAiB5E;AAqDD,iBAAS,UAAU,SA+BlB;AAqID,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,E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