symbolThumbnailDocument function
A thumbnail's document (spec D5): the placer's own output, so a thumbnail
is what a placement makes. prepareDocument registers the app's
components (so the SymbolComponent is accepted), then placeSymbol
runs at the definition's base point, no turn, not mirrored: an identity
transform.
Implementation
DraftDocument symbolThumbnailDocument(
SymbolEntry entry, TextMeasurer measurer) {
final doc = prepareDocument(measurer);
// Spec 14a T13 (F-15): a thumbnail shows the symbol, not a table number.
doc.commands.execute(
placeSymbol(doc, entry, at: entry.definition.basePoint, numbered: false));
return doc;
}