testing library

Test and benchmark fixtures. Not part of the package's public surface — jet_cad_2d.dart deliberately does not export this. It lives in lib/ for one reason: the Flutter package's render rigs and this package's query benchmark must generate byte-identical documents, and a file under benchmark/ cannot be imported across packages.

Constants

kDefaultOriginX → const double
generateDocument's own default for originX, pulled out as a constant so query_throughput.dart can build extra fixtures (the dirty-list filler) at the same large coordinates without repeating the literal.
kFloorHeight → const double
kFloorWidth → const double
The floor plan's extent in each axis, independent of entityCount: a site is a fixed physical size, and adding more detail to it raises density rather than growing the plan. Chosen together with kQueryRectHalfSize in query_throughput.dart so a 500k-entity document gives the "~2k visible" rect query the brief's gate row describes without re-deriving that number from a run's actual output.
kOriginY → const double
Large-coordinate offset on the Y axis. The brief only names originX explicitly, but a fixture that is huge on one axis and near zero on the other is only half honest about float precision at scale, so both axes sit far from the origin.

Functions

generateDocument(int entityCount, {int definitionCount = 20, int instanceCount = 0, double originX = kDefaultOriginX, int nestingDepth = 0, double mirroredFraction = 0, double nonUniformFraction = 0, int groupCount = 0, int layerCount = 1, double byBlockFraction = 0, double dashedFraction = 0, double labelFraction = 0, double attributedInstanceFraction = 0, TextMeasurer measurer = const InsertionPointMeasurer()}) → DraftDocument
Builds a document for benchmark measurement.