{"size": 569, "ext": "js", "max_stars_repo_path": "src/js/components/componentDiagram/graph/shapes/marker.js", "max_stars_repo_name": "appmaporg/d3-appmap", "max_stars_repo_stars_event_min_datetime": "2020-12-08T20:19:25.000Z", "max_stars_repo_stars_event_max_datetime": "2021-09-17T20:43:51.000Z", "max_issues_repo_path": "src/js/components/componentDiagram/graph/shapes/marker.js", "max_issues_repo_name": "appmaporg/d3-appmap", "max_issues_repo_issues_event_min_datetime": "2020-12-08T20:17:19.000Z", "max_issues_repo_issues_event_max_datetime": "2021-02-19T19:10:39.000Z", "max_forks_repo_path": "src/js/components/componentDiagram/graph/shapes/marker.js", "max_forks_repo_name": "applandinc/diagrams-js", "max_forks_repo_forks_event_min_datetime": "2020-10-20T15:58:36.000Z", "max_forks_repo_forks_event_max_datetime": "2020-10-20T15:58:36.000Z"}
{"max_stars_count": 3, "max_issues_count": 16, "max_forks_count": 1, "avg_line_length": 31.6111111111, "max_line_length": 52, "alphanum_fraction": 0.6854130053}
import { createSVGElement } from '../util.js';

export default function Marker() {
  const marker = createSVGElement('marker');
  marker.setAttribute('viewBox', '0 0 10 10');
  marker.setAttribute('refX', '10');
  marker.setAttribute('refY', '5');
  marker.setAttribute('markerUnits', 'strokeWidth');
  marker.setAttribute('markerWidth', '4');
  marker.setAttribute('markerHeight', '4');
  marker.setAttribute('orient', 'auto');

  const path = createSVGElement('path');
  path.setAttribute('d', 'M 0 0 L 10 5 L 0 10 z');
  marker.appendChild(path);

  return marker;
}