@myrmidon/gve-snapshot-rendition 2.0.1 → 2.0.2

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.
@@ -55,28 +55,25 @@ export declare class TextRenderer {
55
55
  /**
56
56
  * Calculate positions for additional text characters.
57
57
  * Additional text flows left to right from the base position.
58
+ * When config is provided its font metrics are used for character width
59
+ * measurement, matching what applyTextStyle will actually render.
58
60
  */
59
61
  private calculateAdditionalTextPositions;
60
62
  /**
61
- * Calculate RBRs from reference nodes.
62
- * Nodes on different lines create separate RBRs.
63
- */
64
- private calculateRBRs;
65
- /**
66
- * Calculate target position on the RBR based on position type.
63
+ * Calculate the RBR anchor point for a given position type.
64
+ * This is the point on the RBR where the corresponding EBR point will land.
67
65
  */
68
- private calculateTargetPosition;
66
+ private calculateRBRAlignmentPoint;
69
67
  /**
70
- * Calculate total rendered width of additional text nodes.
71
- * Mirrors the spacing logic in calculateAdditionalTextPositions so the result
72
- * is the exact horizontal span from the first character's left edge to the last
73
- * character's right edge.
68
+ * Calculate the EBR anchor point for a given position type.
69
+ * This is the point on the EBR that should coincide with the RBR anchor point.
74
70
  */
75
- private calculateTotalTextWidth;
71
+ private calculateEBRAlignmentPoint;
76
72
  /**
77
- * Calculate bounding rectangle for a set of positioned characters.
73
+ * Calculate RBRs from reference nodes.
74
+ * Nodes on different lines create separate RBRs.
78
75
  */
79
- private calculateTextBounds;
76
+ private calculateRBRs;
80
77
  /**
81
78
  * Update settings.
82
79
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myrmidon/gve-snapshot-rendition",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "homepage": "https://github.com/vedph/gve-snapshot-rendition",
5
5
  "repository": {
6
6
  "type": "git",