Spector.js
Spector.js copied to clipboard
Show function argument names on the right hand side?
When looking at a function call, like in
the right hand side reads
command Arguments
0: 0
1: 3
2: 5126
3: 0
4: 24
5: 12
It would be great if that read
command Arguments
index: 0
size: 3
type: 5126
normalized: 0
stride: 24
offset: 12
since it's easy to forget which parameter means what, so the second form would show that clearly (btw, the links to the spec in the API call is a great idea!)
This would imply referencing all the functions with their signature in the tool. I agree it would be nice but not sure I will have time. It would be great if you could create a simple class using .d.ts file as the reference which could help adding this information.
I would then integrate it with pleasure.
FYI, before someone try to do it "manually" docs.gl has a tool to extract those, maybe modifying the outpout to some usable json could make it automated: https://github.com/BSVino/docs.gl#how-to-build-it