11import { basename , loggableText , Logger } from './util.ts' ;
2- import { Box , RenderItem } from './layout-box.ts' ;
2+ import { Box , TreeNode } from './layout-box.ts' ;
33import { Style } from './style.ts' ;
44import {
55 ReplacedBox ,
@@ -19,7 +19,7 @@ import {createItemizeState, itemizeNext} from './text-itemize.ts';
1919
2020import type { LoadedFontFace } from './text-font.ts' ;
2121import type { HbFace , HbFont } from './text-harfbuzz.ts' ;
22- import type { RenderItemLogOptions } from './layout-box.ts' ;
22+ import type { TreeLogOptions } from './layout-box.ts' ;
2323import type { TextAlign , WhiteSpace } from './style.ts' ;
2424import type { BlockLevel , InlineLevel , BlockContainer , LayoutContext } from './layout-flow.ts' ;
2525
@@ -70,7 +70,7 @@ export function prevGrapheme(text: string, index: number) {
7070 return graphemeStart < index ? graphemeStart : index ;
7171}
7272
73- export class Run extends RenderItem {
73+ export class Run extends TreeNode {
7474 public textStart : number ;
7575 public textEnd : number ;
7676
@@ -111,7 +111,7 @@ export class Run extends RenderItem {
111111 return true ;
112112 }
113113
114- logName ( log : Logger , options ?: RenderItemLogOptions ) {
114+ logName ( log : Logger , options ?: TreeLogOptions ) {
115115 log . text ( `${ this . textStart } ,${ this . textEnd } ` ) ;
116116 if ( options ?. paragraphText ) {
117117 log . text ( ` "${ loggableText ( options . paragraphText . slice ( this . textStart , this . textEnd ) ) } "` ) ;
0 commit comments