@@ -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
449449textfont(fontName: string): void
450450
451451// Sets the font size (default: 32)
452452textsize(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 */
0 commit comments