Skip to content

Commit 7c51caa

Browse files
authored
Correct the millimeter unit conversion constant in docs (#3872)
1 parent d8bfc9f commit 7c51caa

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/module-split_text_to_size.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ <h4 class="name" id="~getStringUnitWidth"><span class="type-signature">(inner) <
396396
<p>In other words, this is &quot;proportional&quot; value. For 1 unit of font size, the length
397397
of the string will be that much.</p>
398398
<p>Multiply by font size to get actual width in <em>points</em>
399-
Then divide by 72 to get inches or divide by (72/25.6) to get 'mm' etc.</p>
399+
Then divide by 72 to get inches or divide by (72/25.4) to get 'mm' etc.</p>
400400
</div>
401401

402402

@@ -759,4 +759,4 @@ <h5>Returns:</h5>
759759

760760

761761
</body>
762-
</html>
762+
</html>

docs/modules_split_text_to_size.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ <h1 class="page-title">modules/split_text_to_size.js</h1>
152152
* of the string will be that much.
153153
*
154154
* Multiply by font size to get actual width in *points*
155-
* Then divide by 72 to get inches or divide by (72/25.6) to get 'mm' etc.
155+
* Then divide by 72 to get inches or divide by (72/25.4) to get 'mm' etc.
156156
*
157157
* @name getStringUnitWidth
158158
* @public

src/modules/split_text_to_size.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ import { jsPDF } from "../jspdf.js";
108108
* of the string will be that much.
109109
*
110110
* Multiply by font size to get actual width in *points*
111-
* Then divide by 72 to get inches or divide by (72/25.6) to get 'mm' etc.
111+
* Then divide by 72 to get inches or divide by (72/25.4) to get 'mm' etc.
112112
*
113113
* @name getStringUnitWidth
114114
* @public

0 commit comments

Comments
 (0)