alpha
Login
or
Join now
tynanpurdy.com
/
real-font-size
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/tynanpurdy/real-font-size. Tiny calculator that tells you the real dimensions of text, not its bounding box
tynanpurdy.github.io/real-font-size/
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
prettier clearCanvas
author
Tynan Purdy
date
2 years ago
(Jul 11, 2024, 10:30 AM -0400)
commit
8c879945
8c8799451397992f057ed8484309cfc9c7f55c4e
parent
92bdc2a4
92bdc2a41cfa2ab1658fecc8df88c4a87e369083
+2
-2
1 changed file
Expand all
Collapse all
Unified
Split
index.js
+2
-2
index.js
View file
Reviewed
···
40
40
}
41
41
42
42
function clearCanvas(canvas) {
43
43
-
const ctx = canvas.getContext('2d');
43
43
+
const ctx = canvas.getContext("2d");
44
44
ctx.clearRect(0, 0, canvas.width, canvas.height);
45
45
-
return ctx
45
45
+
return ctx;
46
46
}
47
47
48
48
function drawDiagram(font = new Font(), testString = "Apd", canvas = diagram) {