Skip to content

Commit 6f66f86

Browse files
committed
fix cheatsheet
1 parent ff64f51 commit 6f66f86

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

public/about.html

+9-3
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ <h1>LITECANVAS</h1>
5959

6060
<nav>
6161
<a href="https://github.com/litecanvas/game-engine">Main Repository</a>
62-
| <a href="https://litecanvas.js.org/">Playground</a> | |
62+
| <a href="https://litecanvas.js.org/">Playground</a> |
6363
<a href="https://github.com/litecanvas/game-engine#basic-demos"
6464
>Demos</a
6565
>
@@ -222,6 +222,9 @@ <h2><a id="drawing">Functions for Drawing</a></h2>
222222
// see: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textBaseline
223223
textalign(align = 'start', baseline = 'top'): void
224224

225+
// set the default font family
226+
textfont(fontName: string): void
227+
225228
/**
226229
* IMAGE DRAWING-RELATED FUNCTIONS
227230
*/
@@ -402,10 +405,13 @@ <h2><a id="advanced">Advanced Features</a></h2>
402405
// see: https://github.com/litecanvas/plugin-asset-loader
403406

404407
// Asynchronously load an image
405-
loadImage(url: string, callback: function)
408+
loadImage(url: string, callback: function): void
406409

407410
// Asynchronously load an external JavaScript file
408-
loadScript(url: string, callback: function)
411+
loadScript(url: string, callback: function): void
412+
413+
// Asynchronously load a font
414+
loadFont(fontName:string, url: string, callback: function): void
409415
</code></pre>
410416
</main>
411417
<script src="prism/prism.js" defer></script>

public/sw.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const cacheName = "luizbills.litecanvas-editor-v1";
2-
const version = "1.23.1";
2+
const version = "1.23.2";
33

44
const precacheResources = [
55
"/",

0 commit comments

Comments
 (0)