Files
mermaid/debug-interpolate.js
Knut Sveidqvist cb6f8e51a2 5 failing tests
2025-06-20 07:33:27 +02:00

28 lines
859 B
JavaScript

// Debug script for interpolate functionality
import { FlowDB } from './packages/mermaid/src/diagrams/flowchart/flowDb.js';
import flow from './packages/mermaid/src/diagrams/flowchart/parser/flowParserAdapter.js';
// Set up test
flow.yy = new FlowDB();
flow.yy.clear();
console.log('Testing interpolate functionality...');
try {
const input = 'graph TD\nA-->B\nlinkStyle default interpolate basis';
console.log('Input:', input);
const result = flow.parse(input);
console.log('Parse result:', result);
const edges = flow.yy.getEdges();
console.log('Edges:', edges);
console.log('edges.defaultInterpolate:', edges.defaultInterpolate);
// Check if updateLinkInterpolate method exists
console.log('updateLinkInterpolate method exists:', typeof flow.yy.updateLinkInterpolate);
} catch (error) {
console.error('Error:', error);
}