1import { erdAdapter } from '../adapters/erd'2import { dbmlAdapter } from '../adapters/dbml'3import { graphvizAdapter } from '../adapters/graphviz'4import { createRendererUnitGroup } from '../runtime/unit'56export default createRendererUnitGroup('graphviz-family', [7 {8 id: 'dbml',9 kind: 'translate',10 adapter: dbmlAdapter,11 pipeline: ['dbml', 'graphviz'],12 knownLosses: [13 'Only SVG is supported.',14 'DBML URLs are lowered to GraphViz HREFs, then external links are removed by SVG sanitization.',15 'The translated graph uses GraphViz 15.1.1 versus the compatibility DBML image Viz.js/GraphViz 2.47.0; output differences are possible.',16 ],17 },18 {19 id: 'graphviz',20 kind: 'render',21 adapter: graphvizAdapter,22 pipeline: ['graphviz'],23 knownLosses: [24 'Only SVG is in the rendering contract.',25 'GraphViz resource-loading attributes are rejected because the edge unit has no file or network asset loader.',26 'The edge build uses GraphViz 15.1.1 versus the compatibility image GraphViz 14.1.3; output differences are possible.',27 'The GraphViz scale option is not supported by the edge-Wasm adapter.',28 ],29 },30 {31 id: 'erd',32 kind: 'translate',33 adapter: erdAdapter,34 pipeline: ['erd', 'graphviz'],35 knownLosses: [36 'Only the source language and default Kroki rendering mode are supported; ERD CLI/config-file modes are not exposed.',37 'The translated graph uses GraphViz 15.1.1 versus the compatibility image GraphViz 14.1.3; output differences are possible.',38 ],39 },40])