Fork me on GitHub
#pathom
<
2021-08-03
>
wilkerlucio17:08:21

hello @jon693, currently integrating the full pathom viz isn't a trivial task, but if you wanna give a go you can use this file as a base (this is how its integrated in the Electron app): https://github.com/wilkerlucio/pathom-viz/blob/master/src/electron/com/wsscode/pathom/viz/electron/renderer/main.cljs

wilkerlucio17:08:42

I hope to make this a simpler task in the future, but a lot of refactoring is required for that

wilkerlucio17:08:53

that said, there are a few parts of Pathom Viz that are simple to integrate, those are: - the trace view - the node graph for those you can use Pathom Viz embed, which is something you integrate kinda like you would put a youtube video embed in a page

wilkerlucio17:08:58

there is some example code to wrap those as react components at the pathom 3 docs source: https://github.com/wilkerlucio/pathom3-docs/blob/master/src/main/com/wsscode/pathom3/docs/components.cljs

JonR22:08:16

thanks @U066U8JQJ, this is just the info I needed. I think it's a bit larger of an undertaking to take on at the moment then I was hoping. I'll use the electron app for now.

JonR22:08:34

Loving this workflow and the pathom-viz tool though FYI. Awesome work

🙏 3