Created
January 3, 2014 23:49
-
-
Save bergie/8249056 to your computer and use it in GitHub Desktop.
Port state demo, needs latest build of NoFlo UI and deps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "6pl6o", | |
"project": "", | |
"properties": { | |
"name": "BazGraph", | |
"environment": { | |
"runtime": "html", | |
"src": "./preview/iframe.html", | |
"width": 300, | |
"height": 300, | |
"content": "<button id=\"open\">Open</button>\n<button id=\"close\">Close</button>\n<p id=\"count\"></p>", | |
"wsUrl": "ws://localhost:3569" | |
} | |
}, | |
"exports": [], | |
"groups": [], | |
"processes": { | |
"flow/Gate_4hc4c": { | |
"component": "flow/Gate", | |
"metadata": { | |
"x": 1080, | |
"y": 360, | |
"label": "flow/Gate" | |
} | |
}, | |
"interaction/ListenMouse_nfpbs": { | |
"component": "interaction/ListenMouse", | |
"metadata": { | |
"x": 900, | |
"y": 432, | |
"label": "interaction/ListenMouse" | |
} | |
}, | |
"interaction/ListenMouse_puepb": { | |
"component": "interaction/ListenMouse", | |
"metadata": { | |
"x": 900, | |
"y": 324, | |
"label": "interaction/ListenMouse" | |
} | |
}, | |
"dom/GetElement_r9wmp": { | |
"component": "dom/GetElement", | |
"metadata": { | |
"x": 756, | |
"y": 324, | |
"label": "dom/GetElement" | |
} | |
}, | |
"dom/GetElement_660zl": { | |
"component": "dom/GetElement", | |
"metadata": { | |
"x": 756, | |
"y": 432, | |
"label": "dom/GetElement" | |
} | |
}, | |
"core/RunInterval_ob4oj": { | |
"component": "core/RunInterval", | |
"metadata": { | |
"x": 1080, | |
"y": 216, | |
"label": "core/RunInterval" | |
} | |
}, | |
"core/Repeat_xyth3": { | |
"component": "core/Repeat", | |
"metadata": { | |
"x": 1080, | |
"y": 72, | |
"label": "core/Repeat" | |
} | |
}, | |
"dom/GetElement_oyqjj": { | |
"component": "dom/GetElement", | |
"metadata": { | |
"x": 900, | |
"y": 648, | |
"label": "dom/GetElement" | |
} | |
}, | |
"dom/WriteHtml_vzcrh": { | |
"component": "dom/WriteHtml", | |
"metadata": { | |
"x": 1080, | |
"y": 648, | |
"label": "dom/WriteHtml" | |
} | |
}, | |
"packets/Counter_hxx6w": { | |
"component": "packets/Counter", | |
"metadata": { | |
"x": 1080, | |
"y": 504, | |
"label": "packets/Counter" | |
} | |
}, | |
"core/Drop_wry7c": { | |
"component": "core/Drop", | |
"metadata": { | |
"x": 1224, | |
"y": 504, | |
"label": "core/Drop" | |
} | |
} | |
}, | |
"connections": [ | |
{ | |
"src": { | |
"process": "interaction/ListenMouse_puepb", | |
"port": "click" | |
}, | |
"tgt": { | |
"process": "flow/Gate_4hc4c", | |
"port": "close" | |
}, | |
"metadata": { | |
"route": "1" | |
} | |
}, | |
{ | |
"src": { | |
"process": "interaction/ListenMouse_nfpbs", | |
"port": "click" | |
}, | |
"tgt": { | |
"process": "flow/Gate_4hc4c", | |
"port": "open" | |
}, | |
"metadata": { | |
"route": "5" | |
} | |
}, | |
{ | |
"src": { | |
"process": "dom/GetElement_660zl", | |
"port": "element" | |
}, | |
"tgt": { | |
"process": "interaction/ListenMouse_nfpbs", | |
"port": "element" | |
}, | |
"metadata": { | |
"route": "5" | |
} | |
}, | |
{ | |
"src": { | |
"process": "dom/GetElement_r9wmp", | |
"port": "element" | |
}, | |
"tgt": { | |
"process": "interaction/ListenMouse_puepb", | |
"port": "element" | |
}, | |
"metadata": { | |
"route": "1" | |
} | |
}, | |
{ | |
"src": { | |
"process": "core/RunInterval_ob4oj", | |
"port": "out" | |
}, | |
"tgt": { | |
"process": "flow/Gate_4hc4c", | |
"port": "in" | |
}, | |
"metadata": { | |
"route": "3" | |
} | |
}, | |
{ | |
"src": { | |
"process": "core/Repeat_xyth3", | |
"port": "out" | |
}, | |
"tgt": { | |
"process": "core/RunInterval_ob4oj", | |
"port": "start" | |
}, | |
"metadata": { | |
"route": "3" | |
} | |
}, | |
{ | |
"src": { | |
"process": "flow/Gate_4hc4c", | |
"port": "out" | |
}, | |
"tgt": { | |
"process": "packets/Counter_hxx6w", | |
"port": "in" | |
}, | |
"metadata": { | |
"route": "3" | |
} | |
}, | |
{ | |
"src": { | |
"process": "dom/GetElement_oyqjj", | |
"port": "element" | |
}, | |
"tgt": { | |
"process": "dom/WriteHtml_vzcrh", | |
"port": "container" | |
}, | |
"metadata": { | |
"route": "7" | |
} | |
}, | |
{ | |
"src": { | |
"process": "packets/Counter_hxx6w", | |
"port": "count" | |
}, | |
"tgt": { | |
"process": "dom/WriteHtml_vzcrh", | |
"port": "html" | |
}, | |
"metadata": { | |
"route": "3" | |
} | |
}, | |
{ | |
"src": { | |
"process": "packets/Counter_hxx6w", | |
"port": "out" | |
}, | |
"tgt": { | |
"process": "core/Drop_wry7c", | |
"port": "in" | |
}, | |
"metadata": { | |
"route": "7" | |
} | |
}, | |
{ | |
"data": "#close", | |
"tgt": { | |
"process": "dom/GetElement_r9wmp", | |
"port": "selector" | |
} | |
}, | |
{ | |
"data": "#open", | |
"tgt": { | |
"process": "dom/GetElement_660zl", | |
"port": "selector" | |
} | |
}, | |
{ | |
"data": "1000", | |
"tgt": { | |
"process": "core/RunInterval_ob4oj", | |
"port": "interval" | |
} | |
}, | |
{ | |
"data": "t", | |
"tgt": { | |
"process": "core/Repeat_xyth3", | |
"port": "in" | |
} | |
}, | |
{ | |
"data": "#count", | |
"tgt": { | |
"process": "dom/GetElement_oyqjj", | |
"port": "selector" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment