event.subject is always null, no matter what I select or deselect. I expected this to be the same iterable as diagram.selection (which does work properly).
The documentation for the “ChangedSelection” DiagramEvent, DiagramEvent | GoJS API, doesn’t say that the DiagramEvent.subject is supposed to be any particular value.
So event.diagram.selection should give you the collection of selected Parts.
I suppose we could set the subject to be that collection, if you like.
It doesn’t really matter, I just expected the subject to contain something. If nothing else, it might be nice to be explicit about this in the documentation.