Open sbliven opened 1 year ago
The SVG package is generated using the same tooling as that used to create the Dash core and html packages. The API in each case is defined by the function docstrings. I use VSCODE and python intellisense works well.
There must be python cli tools that can read the package docstrings and spit them out in some other format, html, read the docs, or whatever.
The Dash tooling doesn't currently emit typings, it would be great if it did.
Cheers, Steve
Is the generated API documented anywhere? This would be useful for documenting particular version (if https://developer.mozilla.org changes), as well as documenting the expected parameters.
Guessing valid parameters from the SVG documentation is not always straightforward (for instance Ellipse accepts
x
andy
in addition to the svg-stylecx
andcy
). It also wasn't clear to me when starting out whether all parameters expect strings or if python types would work too (eg ifPolygon
would accept a list of points like[(0,0), (0,1),...]