Jan
Jan
There is a PR with working gridworld example, #17
I just use it in Jupyter. But principaly it should be possible to make it display to VS code as well since it can render webpages. Look into 'src/show.jl' for...
One problem is that different types of shapes require different styling parameters (`r` for circle, `width` and `height` for square), but those might indeed be passed through `style`. That is...
How about keeping the `style` only as `Dict` and splatting constants such as `SVG_CRICLE` as ```Julia style=[Dict(SVG_CIRCLE..., "opacity"=>"0.7"), etc.] ``` to guide users in how to use different shapes?
That sounds reasonable, I will try to rewrite it this way.
I tried looking at the SVGs myself, I think it might be better actually to combine the element and its attributes in a single object. The reason is that as...
The `String` approach could also cover the text and tooltip. I think it is reasonable to pass the SVG as a string to let users pass anything they want and...
Ok, I will give it a try and we will see what comes out of it.
The shapes are now entered as SVG strings into `node_svg`, which are pasted directly into the visualized js node using the `.html(svg_string)` method. This seems to work nicely, allowing multiple...
Also, instead of constants `SVG_CIRCLE` and `SVG_SQUARE`, we could have methods that return styled svg_strings. But I am undecided whether it's worth it to hide the SVG details this way....