Git Product home page Git Product logo

rxdiag's Introduction

rxdiag - Animirani Rx "Marble" Dijagrami

Ciljevi

  1. Okvir za vizalizacija rada Rx kombinatora/operatora.
  2. Lako uključivanje animacije u HTML dokumente koristeći nekoliko linija JavaScript koda.
  3. Definisanje ulaznih tokova animacije koristeći nizove i objekte.
  4. Definisanje ulaznih tokova iz brauzer DOM evenata (mouseover, keyup, mouseover ...)
  5. Definisanje lanca kombinatora koristeći Rx Js biblioteku.
  6. (samo JS verzija) Generisanje SVG statičkih prikaza pojedinih faza animacije

ToDo

  • (loop) kružno izvršavanje animacije
  • (pause/stop) kontrola animacije
  • (create operators) prikaz operatora bez ulaznog toka (Just, Throw, Empty...)
  • (multiple inputs) prikaz operatora sa više ulaza (Map, Merge ...)
  • (dom event streams) brauzer DOM event tokovi
  • (graphics) strelice, senke...

Upotreba

<!DOCTYPE html>
...

<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/4.0.7/rx.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/4.0.7/rx.time.js"></script>
<script src="./rx.diag.js"></script>

<body>
<script>
    // 4 events, onComplete
    var in1 = [
        {shape: "marble", color: "blue", "tick": 1},
        {shape: "marble", color: "green", "tick": 3},
        {shape: "marble", color: "gray", "tick": 4},
        {shape: "marble", color: "magenta", "tick": 6},
        {shape: "complete", color: undefined, "tick": 8}
    ];
    
    RxDiag.init(
        {title: "Delay (500ms)"},                // naslov
        function (in) { return in.delay(500) },  // kombinator/operator za prikaz
        in1                                      // definicija ulaznog toka
    );
</script>

Primer

Primer rada kombinatora Delay sa parametrom 500ms. Ulazni tok se okončava izuzetkom. http://amilosevic.github.io/sample/rxdiag/delay.html

Linkovi

rxdiag's People

Contributors

amilosevic avatar

Watchers

 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.