loadAll
Loads every shape of the SVG document at path as typed leaves, in document order — the any-count load: loadAll<PolygonNode>("files/tiles.svg") yields a List<PolygonNode>.
The same found-vs-expected assertion applies to every leaf in the document; any shape count is accepted — a whole layout can be one document, and a shapeless one yields an empty list. The document loads exactly like loadGroup, <use> templates included.
Return
The document's leaves as typed Ns, in document order.
Parameters
path
The document's resource path.
Type Parameters
N
The expected concrete ShapeNode type of every leaf.
Throws
when any leaf in the document is not an N.
when a document violates the /v1 format — every failure is a subtype naming its condition.