Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/renderer-vue/src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ export { ContextMenu } from "./contextmenu";
export { default as Node } from "./node/Node.vue";
export { default as NodeInterface } from "./node/NodeInterface.vue";
export { default as NodePalette } from "./nodepalette/NodePalette.vue";
export { default as PaletteEntry } from "./nodepalette/PaletteEntry.vue";
export { default as Sidebar } from "./sidebar/Sidebar.vue";
export { default as Toolbar } from "./toolbar/Toolbar.vue";
export { default as ToolbarButton } from "./toolbar/ToolbarButton.vue";
12 changes: 6 additions & 6 deletions packages/renderer-vue/src/graph/createSubgraph.command.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import {
AbstractNode,
Graph,
type AbstractNode,
type Graph,
GraphTemplate,
getGraphNodeTypeString,
GRAPH_INPUT_NODE_TYPE,
GRAPH_OUTPUT_NODE_TYPE,
INodeState,
IConnectionState,
type INodeState,
type IConnectionState,
} from "@baklavajs/core";
import { v4 as uuidv4 } from "uuid";
import { reactive, Ref } from "vue";
import { reactive, type Ref } from "vue";
import type { ICommand, ICommandHandler } from "../commands";
import { useViewModel } from "../utility";
import { IViewNodeState } from "../node/viewNode";
import type { IViewNodeState } from "../node/viewNode";
import { SaveSubgraphCommand, SAVE_SUBGRAPH_COMMAND } from "./saveSubgraph.command";
import type { SwitchGraph } from "./switchGraph";
import { SubgraphInputNode, SubgraphOutputNode } from "./subgraphInterfaceNodes";
Expand Down
4 changes: 2 additions & 2 deletions packages/renderer-vue/src/graph/deleteNodes.command.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Ref } from "vue";
import { Graph } from "@baklavajs/core";
import type { Ref } from "vue";
import type { Graph } from "@baklavajs/core";
import type { ICommand, ICommandHandler } from "../commands";
import { COMMIT_TRANSACTION_COMMAND, START_TRANSACTION_COMMAND } from "../history";

Expand Down
22 changes: 10 additions & 12 deletions packages/renderer-vue/src/graph/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Ref } from "vue";
import { Graph } from "@baklavajs/core";
import { ICommandHandler } from "../commands";
import type { Ref } from "vue";
import type { Graph } from "@baklavajs/core";
import type { ICommandHandler } from "../commands";
import { registerCreateSubgraphCommand } from "./createSubgraph.command";
import { registerDeleteNodesCommand } from "./deleteNodes.command";
import { registerSaveSubgraphCommand } from "./saveSubgraph.command";
import { SwitchGraph } from "./switchGraph";
import type { SwitchGraph } from "./switchGraph";
import { registerSwitchToMainGraphCommand } from "./switchToMainGraph.command";

export function registerGraphCommands(displayedGraph: Ref<Graph>, handler: ICommandHandler, switchGraph: SwitchGraph) {
Expand All @@ -14,12 +14,10 @@ export function registerGraphCommands(displayedGraph: Ref<Graph>, handler: IComm
registerSwitchToMainGraphCommand(displayedGraph, handler, switchGraph);
}

export type { CreateSubgraphCommand } from "./createSubgraph.command";
export type { DeleteNodesCommand } from "./deleteNodes.command";
export type { SaveSubgraphCommand } from "./saveSubgraph.command";
export type { SwitchToMainGraphCommand } from "./switchToMainGraph.command";
export * from "./createSubgraph.command";
export * from "./deleteNodes.command";
export * from "./saveSubgraph.command";
export * from "./switchToMainGraph.command";

export { CREATE_SUBGRAPH_COMMAND } from "./createSubgraph.command";
export { DELETE_NODES_COMMAND } from "./deleteNodes.command";
export { SAVE_SUBGRAPH_COMMAND } from "./saveSubgraph.command";
export { SWITCH_TO_MAIN_GRAPH_COMMAND } from "./switchToMainGraph.command";
export * from "./subgraphInterfaceNodes";
export * from "./switchGraph";
4 changes: 2 additions & 2 deletions packages/renderer-vue/src/graph/saveSubgraph.command.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Ref } from "vue";
import { Graph } from "@baklavajs/core";
import type { Ref } from "vue";
import type { Graph } from "@baklavajs/core";
import type { ICommand, ICommandHandler } from "../commands";

export const SAVE_SUBGRAPH_COMMAND = "SAVE_SUBGRAPH";
Expand Down
4 changes: 2 additions & 2 deletions packages/renderer-vue/src/graph/switchGraph.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Ref } from "vue";
import { Editor, Graph, GraphTemplate } from "@baklavajs/core";
import type { Ref } from "vue";
import { type Editor, Graph, type GraphTemplate } from "@baklavajs/core";

export type SwitchGraph = (newGraph: Graph | GraphTemplate) => void;

Expand Down
4 changes: 2 additions & 2 deletions packages/renderer-vue/src/graph/switchToMainGraph.command.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Graph } from "@baklavajs/core";
import { Ref } from "vue";
import type { Graph } from "@baklavajs/core";
import type { Ref } from "vue";
import type { ICommand, ICommandHandler } from "../commands";
import { SAVE_SUBGRAPH_COMMAND } from "./saveSubgraph.command";
import type { SwitchGraph } from "./switchGraph";
Expand Down
9 changes: 7 additions & 2 deletions packages/renderer-vue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@ export * from "./overrides";
export * from "./editor";
export * from "./commands";
export * from "./connection";
export * from "./graph";
export * from "./history";
export * from "./clipboard";
export * from "./node";
export * from "./nodeinterfaces";
export * from "./toolbar";
export * from "./viewModel";
export * from "./utility";
export { displayInSidebar } from "./sidebar";
export * from "./sidebar";
export * from "./zoomToFit";

export * as Components from "./components";
export * as Commands from "./commandList";

export { type IViewSettings } from "./settings";
export * from "./settings";
1 change: 1 addition & 0 deletions packages/renderer-vue/src/node/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./viewNode";