kisonecat / tikzjax

TikZJax is TikZ running under WebAssembly in the browser
LaTeX Project Public License v1.3c
437 stars 36 forks source link

Address issue #8 #14

Closed raphaelreyna closed 2 months ago

raphaelreyna commented 2 years ago

This PR adds 2 new variables to window: window.TikZJax and window.TikZJaxNoAutostart.

The variable window.TikZJax is a function, the one that used to be assigned to window.onload. It also now accepts a root parameter which defaults to document.

The variable window.TikZJaxNoAutostart prevents TikZJax from assigning window.TikZJax to window.onload if set to true.