monowind 0.2.9 → 0.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../src/element.ts"],"names":[],"mappings":"AA6LA,QAAA,MAAM,eAAe,EAEhB,OAAO,WAAW,CAAC;AAExB,qBAAa,eAAgB,SAAQ,eAAe;;IAClD,MAAM,CAAC,kBAAkB,WAAuB;IA6HhD,cAsBC;IAkBD,iBAAiB,IAAI,IAAI,CAmGxB;IAED,oBAAoB,IAAI,IAAI,CAyC3B;IA+iCD,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CA+B1F;IAED;;;;0DAIsD;IACtD,WAAW,IAAI,MAAM,CAIpB;CAyQF;AAED;+DAC+D;AAC/D,wBAAgB,cAAc,IAAI,IAAI,CAIrC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,eAAe,CAAC;KAC9B;CACF;AAyDD;;;;;;;;;yDASyD;AACzD,wBAAgB,cAAc,CAC5B,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,GACX,MAAM,CAMR"}
1
+ {"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../src/element.ts"],"names":[],"mappings":"AAgOA,QAAA,MAAM,eAAe,EAEhB,OAAO,WAAW,CAAC;AAExB,qBAAa,eAAgB,SAAQ,eAAe;;IAClD,MAAM,CAAC,kBAAkB,WAAuB;IAyIhD,cAsBC;IAkBD,iBAAiB,IAAI,IAAI,CAoGxB;IAED,oBAAoB,IAAI,IAAI,CA4C3B;IAkoCD,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CA+B1F;IAED;;;;0DAIsD;IACtD,WAAW,IAAI,MAAM,CAIpB;CA2QF;AAED;+DAC+D;AAC/D,wBAAgB,cAAc,IAAI,IAAI,CAIrC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,eAAe,CAAC;KAC9B;CACF;AAyDD;;;;;;;;;yDASyD;AACzD,wBAAgB,cAAc,CAC5B,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,GACX,MAAM,CAMR"}
@@ -20,6 +20,13 @@ export interface GlyphBox {
20
20
  /** The vertical period of a shade's lattice at that scale, in px
21
21
  * (set for shades only). */
22
22
  period?: number;
23
+ /** How far the glyph's content area — what a browser's selection
24
+ * highlight covers — reaches past the box above and below, in px
25
+ * (set with `period`). */
26
+ reach?: {
27
+ above: number;
28
+ below: number;
29
+ };
23
30
  }
24
31
  /** Where the baseline of `glyph` lands, in px from the top of a box a
25
32
  * row tall with that `font-size` factor and `line-height`. */
@@ -48,9 +55,11 @@ export declare class GlyphBoxes {
48
55
  * and at least the row's height). Nothing is cached while fonts are
49
56
  * still loading. */
50
57
  box(cluster: string, cells: number, paint?: CellPaint): GlyphBox | null;
51
- /** How far down a shade's lattice sits in `row` so that it carries
52
- * on from the row above: what remains of the period after the rows
53
- * above it. */
58
+ /** How far a shade's lattice moves in `row` so that it carries on
59
+ * from the row above: down by the phase, or up by the rest of the
60
+ * period when down would carry the glyph's content area off the
61
+ * box's top and up keeps it past the bottom — a selection highlight
62
+ * covers the content area, and the move must not bare the box. */
54
63
  shift(box: GlyphBox, row: number): number;
55
64
  }
56
65
  //# sourceMappingURL=glyph-box.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"glyph-box.d.ts","sourceRoot":"","sources":["../src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