nimib icon indicating copy to clipboard operation
nimib copied to clipboard

Add postRender template to nbKaraxCode

Open HugoGranstrom opened this issue 1 year ago • 1 comments

See https://forum.nim-lang.org/t/9345 where some code has to be called after Karax has rendered the graph to access the canvas. There exists such a feature, but it has to be passed to setRenderer which is hidden from the user in nbKaraxCode. So introducing postRender template:

nbKaraxCode:
  postRender:
    # code here will be run *after* Karax has rendered
  karaxHtml:
    # the usual stuff

The only thing missing would be if we want a better name than postRender for this template...

HugoGranstrom avatar Aug 03 '22 18:08 HugoGranstrom

Implemented in #125

HugoGranstrom avatar Aug 03 '22 18:08 HugoGranstrom

fixed by #125

pietroppeter avatar Sep 11 '22 15:09 pietroppeter