Skip to content

Commit d05e4df

Browse files
committed
update engine
1 parent a46bcb1 commit d05e4df

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

public/about.html

+2-7
Original file line numberDiff line numberDiff line change
@@ -437,25 +437,20 @@ <h2><a id="drawing">Functions for Drawing</a></h2>
437437

438438
// Draw a text
439439
// style can be "normal", "italic" and/or "bold"
440-
text(x, y, text, color? = 3, style = 'normal'): void
440+
text(x, y, text, color? = 3, style? = 'normal'): void
441441

442442
// Sets the text alignment and baseline
443443
// default values: align = 'start', baseline = 'top'
444444
// see: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textAlign
445445
// see: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textBaseline
446-
textalign(align: string, baseline: string): void
446+
textalign(align?: string, baseline?: string): void
447447

448448
// Sets the font family for texts
449449
textfont(fontName: string): void
450450

451451
// Sets the font size (default: 32)
452452
textsize(size: number): void
453453

454-
// Returns the text dimensions like width and height
455-
// when size is omitted, it will use the current
456-
// font size defined by textsize()
457-
textmetrics(text: string, size?: number)
458-
459454
/**
460455
* IMAGE DRAWING-RELATED FUNCTIONS
461456
*/

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 = "2.57.0";
2+
const version = "2.57.1";
33

44
const precacheResources = [
55
"/",

0 commit comments

Comments
 (0)