schyma
Version:
JSON Schemas Visualizer React component
30 lines • 953 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.compositionEdgeColors = exports.initialEdges = exports.position = exports.nodeHeight = exports.nodeWidth = void 0;
const reactflow_1 = require("reactflow");
const types_1 = require("../types");
exports.nodeWidth = 172;
exports.nodeHeight = 36;
exports.position = { x: 0, y: 0, zoom: 0.2 };
exports.initialEdges = [
{
id: 'edges-e5-7',
source: '0',
target: '1',
label: '+',
labelBgPadding: [8, 4],
labelBgBorderRadius: 4,
animated: true,
type: 'smart',
markerEnd: {
type: reactflow_1.MarkerType.ArrowClosed,
},
},
];
exports.compositionEdgeColors = {
[types_1.CompositionType.OneOf]: '#f59e0b',
[types_1.CompositionType.AnyOf]: '#8b5cf6',
[types_1.CompositionType.AllOf]: '',
[types_1.CompositionType.Not]: '#ef4444',
};
//# sourceMappingURL=node.js.map