/** * @license * Copyright 2024 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { LitElement } from "lit"; import * as PIXI from "pixi.js"; import { Graph } from "./graph.js"; import { InspectableEdge, InspectableNode, InspectableNodePorts } from "@google-labs/breadboard"; import { GraphNode } from "./graph-node.js"; import { GraphEdge } from "./graph-edge.js"; import { GraphMetadata } from "@google-labs/breadboard-schema/graph.js"; import { GraphComment } from "./graph-comment.js"; interface GraphOpts { url: string; subGraphId: string | null; showNodeTypeDescriptions: boolean; collapseNodesByDefault: boolean; ports: Map | null; edges: InspectableEdge[]; nodes: InspectableNode[]; metadata: GraphMetadata; visible: boolean; } export declare class GraphRenderer extends LitElement { #private; private minScale; private maxScale; private zoomFactor; editable: boolean; invertZoomScrollDirection: boolean; readOnly: boolean; highlightInvalidWires: boolean; showPortTooltips: boolean; private _portTooltip?; ready: Promise; static styles: import("lit").CSSResult; constructor(minScale?: number, maxScale?: number, zoomFactor?: number); hideAllGraphs(): void; showAllGraphs(): void; set highlightedNodeId(highlightedNodeId: string | null); get highlightedNodeId(): string | null; createGraph(opts: GraphOpts): void; deleteGraphs(): false | undefined; updateGraphByUrl(url: string, subGraphId: string | null, opts: Partial): boolean; getGraphs(): Graph[]; addGraph(graph: Graph): void; removeGraph(graph: Graph): void; removeAllGraphs(): void; getSelectedChildren(): (GraphNode | GraphEdge | GraphComment)[]; deselectAllChildren(): void; toGlobal(point: PIXI.PointData): PIXI.PointData; setNodeLayoutPosition(node: string, type: "comment" | "node", position: PIXI.PointData, collapsed: boolean, justAdded: boolean): void | null; getNodeLayoutPosition(node: string): { x: number; y: number; type: "comment" | "node"; collapsed: boolean; justAdded?: boolean; } | null | undefined; addToAutoSelect(node: string): void; zoomToFit(): void; resetGraphLayout(): void; selectAll(): void; connectedCallback(): void; disconnectedCallback(): void; protected updated(): void; render(): (import("lit-html/directive.js").DirectiveResult | undefined)[]; } export {}; //# sourceMappingURL=graph-renderer.d.ts.map