Coder Social home page Coder Social logo

flechtwerk's Introduction

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.

flechtwerk's People

Contributors

kordano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.