(pageWidth: number, ribbonFraction: number)
| 303 | }) |
| 304 | |
| 305 | const fitsSmart = (pageWidth: number, ribbonFraction: number) => { |
| 306 | return <A>( |
| 307 | stream: DocStream.DocStream<A>, |
| 308 | indentation: number, |
| 309 | currentColumn: number, |
| 310 | comparator: LazyArg<DocStream.DocStream<A>> |
| 311 | ): boolean => { |
| 312 | const availableWidth = InternalPageWidth.remainingWidth( |
| 313 | pageWidth, |
| 314 | ribbonFraction, |
| 315 | indentation, |
| 316 | currentColumn |
| 317 | ) |
| 318 | return fitsSmartLoop( |
| 319 | stream, |
| 320 | comparator, |
| 321 | pageWidth, |
| 322 | currentColumn, |
| 323 | availableWidth |
| 324 | ) |
| 325 | } |
| 326 | } |
| 327 | |
| 328 | const fitsSmartLoop = <A>( |
| 329 | self: DocStream.DocStream<A>, |
no test coverage detected
searching dependent graphs…