I noticed the examples include rending a map and rendering a graph. It looks like pehaps Tonic is looking for specific properties in the resulting object and if found enables special renderers.
If so what objects are supported? If I want to graph a function how do I go about this?
Is it possible to extend this behavior. Also, is it possible to render nothing?
I was somewhat suprised that something like
const { x, y } = { x: 1, y: 100, z: 1000 };
would stil render all 3 properties, I guess this is because it prints the last evaluated expression and not the assignment.
I then tried console.log({x, n}) which prints this as an object like I want but then with a comment followed by ? undefined. The best workaround I found for this is just to call an identity function so that its the last evaluated expression, but feels like I should have more control over the output somehow, some undocumented command(s) maybe?