Lines Matching defs:const
12 const linePaint = new CanvasKit.Paint();
18 const pathPaint = new CanvasKit.Paint();
91 for (const r of runs) {
94 const mid = (r.positions[i*2-2] + r.positions[i*2]) * 0.5;
103 const r = runs[runs.length-1];
111 for (const l of lines) {
120 for (const r of runs) {
129 const r = runs_index_to_run(runs, index);
130 for (const i in r.offsets) {
140 for (const l of lines) {
154 for (const l of lines) {
167 const path = new CanvasKit.Path();
168 const la = lines_index_to_line(lines, a);
169 const lb = lines_index_to_line(lines, b);
170 const ax = runs_index_to_x(la.runs, a);
171 const bx = runs_index_to_x(lb.runs, b);
189 const p = new CanvasKit.Paint();
195 const font = new CanvasKit.Font(tf);
253 const ed = {
283 const a = this._index.start;
284 const b = this._index.end;
287 const l = lines_index_to_line(this._lines, a);
288 const x = runs_index_to_x(l.runs, a);
317 const i = lines_index_to_line_index(this._lines, index);
323 const x = runs_index_to_x(this._lines[i].runs, index);
333 for (const s of this._styles) {
340 for (const b of blocks) {
349 const build_sparse = true;
350 const blocks = [];
352 for (const s of this._styles) {
378 for (const l of this._lines) {
379 for (const r of l.runs) {
418 const index = this._index.start;
421 const [i, prev_len] = this.find_style_index_and_prev_length(index);
437 const runs = this._runs;
438 const styles = this._styles;
439 const f = this._font;
440 const p = this._paint;
511 const gap = 2;
512 const Y = pos[1]; // first Y
513 const lastX = pos[gly.length*2];
514 const sects = f.getGlyphIntercepts(gly, pos, Y+2, Y+4);
518 const end = sects[i] - gap;
542 const l = this._styles[i]._length;
567 const skip = start - prev_len;
569 const shrink = Math.min(N, s._length - skip);
611 const ns = Object.assign({}, s);
634 const ns = Object.assign({}, s); // the new first half
654 const s = MakeStyle(ed._text.length);