A default diagram-adjustment implementation for two-dimensional diagrams, useful for backend implementors.
As its first argument it requires a method for extracting the requested output size from the rendering options.
It then performs the following adjustments:
- Set some default attributes (in case they have not been set):
- Line width 0.01
- Line color black
- Font size 1
- Freeze the diagram in its final form
- Scale and translate the diagram to fit within the requested size