Skip to content

Correct the millimeter unit conversion constant in docs #3872

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/module-split_text_to_size.html
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ <h4 class="name" id="~getStringUnitWidth"><span class="type-signature">(inner) <
<p>In other words, this is &quot;proportional&quot; value. For 1 unit of font size, the length
of the string will be that much.</p>
<p>Multiply by font size to get actual width in <em>points</em>
Then divide by 72 to get inches or divide by (72/25.6) to get 'mm' etc.</p>
Then divide by 72 to get inches or divide by (72/25.4) to get 'mm' etc.</p>
</div>


Expand Down Expand Up @@ -759,4 +759,4 @@ <h5>Returns:</h5>


</body>
</html>
</html>
2 changes: 1 addition & 1 deletion docs/modules_split_text_to_size.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ <h1 class="page-title">modules/split_text_to_size.js</h1>
* of the string will be that much.
*
* Multiply by font size to get actual width in *points*
* Then divide by 72 to get inches or divide by (72/25.6) to get 'mm' etc.
* Then divide by 72 to get inches or divide by (72/25.4) to get 'mm' etc.
*
* @name getStringUnitWidth
* @public
Expand Down
2 changes: 1 addition & 1 deletion src/modules/split_text_to_size.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ import { jsPDF } from "../jspdf.js";
* of the string will be that much.
*
* Multiply by font size to get actual width in *points*
* Then divide by 72 to get inches or divide by (72/25.6) to get 'mm' etc.
* Then divide by 72 to get inches or divide by (72/25.4) to get 'mm' etc.
*
* @name getStringUnitWidth
* @public
Expand Down