Closed dy closed 5 years ago
Some additional changes after practical work w/scatter plot
update(a, b, c)
rather than update([a, b, c])
- for nested options complacency. That simplifies draw(els, els, els)
vs draw([els, els, els])
. It is not batch in fact, that is multiple passes. Doing update(a)
after update(a, b)
removes b
pass, in that update
fully redefines state. (see immutability-helper for inspiration)
i
-th item: ``i
-th item: ``update
, draw
, destroy
, viewport
, render
.update
to recalc viewport.Thanks for writing this down. Very helpful.
Full gl-component interface is implemented by gl-waveform. Main changes:
render
method instead of draw
, for compatibility with virtual-domviewport
→ clip
, flip
Within all
regl-
components there is shareable pattern of code.viewport
,range
paramstranslate
andscale
as pixel alternative torange
draw.range
ordraw.viewport
destroy
method? or justupdate(null)
? Orupdate({destroy})
?