• Home
  • Raw
  • Download

Lines Matching refs:paragraph

88         const paragraph = builder.build();
90 paragraph.layout(wrapTo);
92 expect(paragraph.didExceedMaxLines()).toBeTruthy();
93 expect(paragraph.getAlphabeticBaseline()).toBeCloseTo(21.377, 3);
94 expect(paragraph.getHeight()).toEqual(240);
95 expect(paragraph.getIdeographicBaseline()).toBeCloseTo(27.236, 3);
96 expect(paragraph.getLongestLine()).toBeCloseTo(193.820, 3);
97 expect(paragraph.getMaxIntrinsicWidth()).toBeCloseTo(1444.250, 3);
98 expect(paragraph.getMaxWidth()).toEqual(200);
99 expect(paragraph.getMinIntrinsicWidth()).toBeCloseTo(172.360, 3);
100 expect(paragraph.getWordBoundary(8)).toEqual({
104 expect(paragraph.getWordBoundary(25)).toEqual({
110 const lineMetrics = paragraph.getLineMetrics();
128 canvas.drawParagraph(paragraph, 10, 10);
132 paragraph.delete();
157 const paragraph = builder.build();
158 paragraph.layout(300);
161 canvas.drawParagraph(paragraph, 10, 10);
164 paragraph.delete();
195 const paragraph = builder.build();
196 paragraph.layout(300);
199 canvas.drawParagraph(paragraph, 10, 10);
201 canvas.drawParagraph(paragraph, 15, 10);
206 paragraph.delete();
231 const paragraph = builder.build();
232 paragraph.layout(300);
235 canvas.drawParagraph(paragraph, 10, 10);
238 paragraph.delete();
262 const paragraph = builder.build();
263 paragraph.layout(300);
266 canvas.drawParagraph(paragraph, 10, 10);
269 paragraph.delete();
331 const paragraph = builder.build();
332 paragraph.layout(300);
338 canvas.drawParagraph(paragraph, 10, 10);
342 paragraph.delete();
363 const paragraph = builder.build();
364 paragraph.layout(300);
367 canvas.drawParagraph(paragraph, 10, 10);
370 paragraph.delete();
402 const paragraph = builder.build();
403 paragraph.layout(300);
405 let rects = paragraph.getRectsForPlaceholders();
408 canvas.drawParagraph(paragraph, 10, 10);
422 paragraph.delete();
448 const paragraph = builder.build();
451 paragraph.layout(wrapTo);
493 canvas.drawParagraph(paragraph, 0, 0);
496 let rects = paragraph.getRectsForRange(test.start, test.end, hStyle, wStyle);
512 paragraph.delete();
550 const paragraph = builder.build();
552 paragraph.layout(wrapTo);
555 canvas.drawParagraph(paragraph, 10, 10);
565 paragraph.delete();
584 const paragraph = builder.build();
586 paragraph.layout(wrapTo);
590 canvas.drawParagraph(paragraph, 0, 0);
604 let posU = paragraph.getGlyphPositionAtCoordinate(20, 30);
609 let posA = paragraph.getGlyphPositionAtCoordinate(80, 90);
614 let posG = paragraph.getGlyphPositionAtCoordinate(280, 2);
621 paragraph.delete();
665 const paragraph = builder.build();
667 paragraph.layout(wrapTo);
672 canvas.drawParagraph(paragraph, 10, 10);
675 paragraph.delete();
722 const paragraph = builder.build();
724 paragraph.layout(wrapTo);
729 canvas.drawParagraph(paragraph, 10, 10);
732 paragraph.delete();
776 const paragraph = builder.build();
778 paragraph.layout(wrapTo);
780 expect(paragraph.getAlphabeticBaseline()).toBeCloseTo(21.377, 3);
781 expect(paragraph.getHeight()).toEqual(227);
782 expect(paragraph.getIdeographicBaseline()).toBeCloseTo(27.236, 3);
783 expect(paragraph.getLongestLine()).toBeCloseTo(195.664, 3);
784 expect(paragraph.getMaxIntrinsicWidth()).toBeCloseTo(1167.140, 3);
785 expect(paragraph.getMaxWidth()).toEqual(200);
786 expect(paragraph.getMinIntrinsicWidth()).toBeCloseTo(172.360, 3);
788 expect(paragraph.getWordBoundary(8)).toEqual({
793 expect(paragraph.getWordBoundary(25)).toEqual({
800 canvas.drawParagraph(paragraph, 10, 10);
804 paragraph.delete();
838 const paragraph = builder.build();
840 paragraph.layout(wrapTo);
842 canvas.drawParagraph(paragraph, 0, 0);
845 paragraph.delete();
873 const paragraph = builder.build();
874 paragraph.layout(wrapTo);
875 canvas.drawParagraph(paragraph, 0, 150 * i);
877 paragraph.delete();
920 const paragraph = builder.build();
922 paragraph.layout(wrapTo);
926 canvas.drawParagraph(paragraph, 10, 10);
930 paragraph.delete();
971 const paragraph = builder.build();
973 paragraph.layout(wrapTo);
977 canvas.drawParagraph(paragraph, 10, 10);
981 paragraph.delete();