@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
53 lines • 1.17 kB
TypeScript
export class NodeGraphVisualData {
/**
*
* @type {Map<number, NodeVisualData>}
*/
nodes: Map<number, NodeVisualData>;
/**
*
* @type {Map<number, Color>}
*/
dataColors: Map<number, Color>;
/**
*
* @param {AABB2} result
*/
computeBoundingBox(result: AABB2): void;
/**
*
* @param {NodeGraph} graph
*/
layout(graph: NodeGraph): void;
/**
*
* @param {number} id
* @param {Color} color
*/
addDataColor(id: number, color: Color): void;
/**
*
* @param {number} id
* @returns {Color}
*/
getDataColor(id: number): Color;
/**
*
* @param {number} id
* @param {NodeVisualData} node
*/
addNode(id: number, node: NodeVisualData): void;
/**
*
* @param {number} id
* @returns {NodeVisualData|undefined}
*/
getNode(id: number): NodeVisualData | undefined;
toJSON(): {
nodes: {};
};
fromJSON(json: any): void;
}
import { NodeVisualData } from "./NodeVisualData.js";
import { Color } from "../../../color/Color.js";
//# sourceMappingURL=NodeGraphVisualData.d.ts.map