git ssb

0+

mixmix / patchbay-mix



forked from Dominic / patchbay

Tree: d5fdd871022fae183005b8a90a5c4882e6688518

Files: d5fdd871022fae183005b8a90a5c4882e6688518 / ui.js

512 bytesRaw
1var h = require('hyperscript')
2var pull = require('pull-stream')
3var u = require('./util')
4var Scroller = require('pull-scroll')
5
6exports.createStream = function createStream (stream, render) {
7 var div = h('div.column', {style: {'overflow-y': 'auto'}})
8
9 pull(
10 stream,
11 Scroller(div, div, render, false, false)
12 )
13
14 return div
15}
16
17exports.createRenderers = function (renderers, sbot) {
18 return function (data) {
19 return u.first(renderers, function (fn) {
20 return fn(data, sbot)
21 })
22 }
23}
24
25

Built with git-ssb-web