@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.
- package/dist/index.cjs.min.js +2 -2
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.js +139 -167
- package/dist/index.js.map +1 -1
- package/dist/src/rendering/text-renderer.d.ts +11 -14
- package/package.json +1 -1
|
@@ -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
|
|
62
|
-
*
|
|
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
|
|
66
|
+
private calculateRBRAlignmentPoint;
|
|
69
67
|
/**
|
|
70
|
-
* Calculate
|
|
71
|
-
*
|
|
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
|
|
71
|
+
private calculateEBRAlignmentPoint;
|
|
76
72
|
/**
|
|
77
|
-
* Calculate
|
|
73
|
+
* Calculate RBRs from reference nodes.
|
|
74
|
+
* Nodes on different lines create separate RBRs.
|
|
78
75
|
*/
|
|
79
|
-
private
|
|
76
|
+
private calculateRBRs;
|
|
80
77
|
/**
|
|
81
78
|
* Update settings.
|
|
82
79
|
*/
|