toLimitStyle method

RenderContext toLimitStyle()

Style transformation when entering large operator limits

Implementation

RenderContext toLimitStyle() {
  final newStyle = mathStyle.toLimit();
  return copyWith(
    fontSize: fontSize * (newStyle.scaleFactor() / mathStyle.scaleFactor()),
    mathStyle: newStyle,
  );
}