Skip to content

replikativ/flechtwerk

Repository files navigation

flechtwerk

Overview

flechtwerk is a visualization of commit graphs from replikativ using vega or quil.

See gorilla example use here.

Installation

flechtwerk is available at Clojars. Add the following to the :dependencies section of your project.clj file:

[io.replikativ/flechtwerk "0.1.1-SNAPSHOT"]

Gorilla usage

Start a gorilla worksheet in your project and add the following:

(ns harmonious-creek
  (:require [gorilla-repl.vega :as v]
            [full.async :refer [<??]]
            [konserve.memory :refer [new-mem-store]]
            [flechtwerk.core :as g]
            [flechtwerk.graph :as graph]))

(def store (<?? (new-mem-store (atom (into {} (map (fn [k v] [k v]) (range 17) (repeat {:branch "master"})))))))

(v/vega-view (<?? (g/vega-commit-graph graph/test-graph :store store)))

Quil usage

(ns harmonious-creek
  (:require [full.async :refer [<??]]
            [konserve.memory :refer [new-mem-store]]
            [flechtwerk.core :as g]
            [flechtwerk.graph :as graph]
            [flechtwerk.quilesque :as q]))

(def store (<?? (new-mem-store (atom (into {} (map (fn [k v] [k v]) (range 17) (repeat {:branch "master"})))))))

(q/sketch (<?? (g/quil-commit-graph graph/test-graph :store store)))

Quit frame via q, show commit id via mouse-over and print current frame to a given output-file via p.

In ClojureScript it works accordingly, look at demo.cljs and the provided index.html for details.

TODOs

load and merge branches from store (for colors)
  • State “DONE” from “TODO” [2016-04-10 So 01:01]
add smooth edges using bezier
add commit ids to vega plots
  • State “DONE” from “TODO” [2015-07-16 Do 15:57]
fix that index-out-of-bound error when new branches are created
  • State “FIXED” from “DONE” [2015-07-16 Do 13:18]
  • State “DONE” from “TODO” [2015-07-16 Do 13:18]
build graph using quil
adust to commit ids in new geschichte version
get commit ids on mouseover
show branch name at head commits
animate force-based build process (quil)
draw branches and merges via bezier curves
show commit value on click
store current frame

References

License

Copyright © 2016 Konrad Kühne, Christian Weilbach

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

flechtwerk provides visualization of commit graphs of CDVCS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published