Lines Matching defs:const
12 const linePaint = new CanvasKit.Paint();
18 const pathPaint = new CanvasKit.Paint();
94 for (const r of runs) {
97 const mid = (r.positions[i*2-2] + r.positions[i*2]) * 0.5;
106 const r = runs[runs.length-1];
114 const l = lines.find((l) => y <= l.bottom);
120 const r = runs.find((r) => index <= r.offsets[r.offsets.length-1]);
126 const r = runs_index_to_run(runs, index);
127 const i = r.offsets.findIndex((offset) => index === offset);
133 const l = lines.findIndex((l) => index <= l.textRange.last);
147 const path = new CanvasKit.Path();
148 const la = lines_index_to_line(lines, a);
149 const lb = lines_index_to_line(lines, b);
150 const ax = runs_index_to_x(la.runs, a);
151 const bx = runs_index_to_x(lb.runs, b);
169 const p = new CanvasKit.Paint();
175 const font = new CanvasKit.Font(tf);
242 const ed = {
272 const a = this._index.start;
273 const b = this._index.end;
276 const l = lines_index_to_line(this._lines, a);
277 const x = runs_index_to_x(l.runs, a);
306 const i = lines_index_to_line_index(this._lines, index);
312 const x = runs_index_to_x(this._lines[i].runs, index);
321 const len = this._styles.reduce((sum, style) => sum + style._length, 0);
325 const len = blocks.reduce((sum, block) => sum + block.length, 0);
332 const blocks = [];
334 for (const s of this._styles) {
353 for (const l of this._lines) {
354 for (const r of l.runs) {
397 const len = charcode.length;
401 const index = this._index.start;
404 const [i, prev_len] = this.find_style_index_and_prev_length(index);
420 const runs = this._runs;
421 const styles = this._styles;
422 const f = this._font;
423 const p = this._paint;
494 const xscale = 0.05;
495 const yscale = r.size * 0.125;
498 const x = pos[i + 0];
521 const l = this._styles[i]._length;
546 const skip = start - prev_len;
548 const shrink = Math.min(N, s._length - skip);
590 const ns = Object.assign({}, s);
613 const ns = Object.assign({}, s); // the new first half
633 const s = MakeStyle(ed._text.length);