Documentation about OmniGraffle JavaScriptCore API. Examples

I am new to this scripting environment. I want to try animations of simple figures to illustrate algorithms for my students. I’d really appreciate samples/source code/documentation about it. Any repositories?

Thanks!

You might want to also ask in the Automation forum; they do more scripting there.