mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-13 20:39:38 +02:00
5 failing tests
This commit is contained in:
27
debug-interpolate.js
Normal file
27
debug-interpolate.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// 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);
|
||||
}
|
Reference in New Issue
Block a user