import * as React from "react"; import * as ReactDOM from "react-dom"; // TODO groupChildren were originally drawn as markerStart, but markerEnd is actually used much // more often than markerStart. So for performance and simplicity reasons, it would be better that // the groupChildren were drawn for markerEnd. When we redraw them, we can get rid of the extra g // element and its transform for each markerDrawer below. // NOTE: All markers put the groupChildren (visible marker contents) inside a group g element. // Draw the groupChildren for markerEnd. If a marker is markerStart, Kaavio will rotate it 180deg. export function Arrow(fill, stroke) { const markerWidth = 12; const markerHeight = 12; return { markerAttributes: { markerWidth: markerWidth, markerHeight: markerHeight }, groupChildren: [ ] }; } export function TBar(fill, stroke) { const markerWidth = 10; const markerHeight = 20; return { markerAttributes: { markerWidth: markerWidth, markerHeight: markerHeight }, groupChildren: [ ] }; }