How to use the @gitgraph/react.Orientation.HorizontalReverse function in @gitgraph/react

To help you get started, we’ve selected a few @gitgraph/react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nicoespeon / gitgraph.js / packages / stories / src / gitgraph-react / 2-orientations.stories.tsx View on Github external
.add("horizontal reverse (black arrow)", () => (
    
      {(gitgraph) => {
        const master = gitgraph.branch("master").commit("Initial commit");
        const develop = gitgraph.branch("develop");
        develop.commit("one");
        master.commit("two");
        develop.commit("three");
        master.merge(develop);
        master.commit();
      }}
    
  ))
  .add("vertical reverse (commit after merge)", () => (
github nicoespeon / gitgraph.js / packages / stories / src / gitgraph-react / 2-orientations.stories.tsx View on Github external
.add("horizontal reverse", () => (
    
      {(gitgraph) => {
        const master = gitgraph.branch("master").commit("Initial commit");
        const develop = gitgraph.branch("develop");
        develop.commit("one");
        master.commit("two");
        develop.commit("three");
        master.merge(develop);
        master.commit();
      }}
    
  ))
  .add("horizontal (black arrow)", () => (