Update TextStyle.js

This commit is contained in:
Luca Fagioli 2024-09-02 11:06:01 +02:00 committed by GitHub
parent 9f3afafb29
commit 0cf92cba50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,7 +6,7 @@
* *
* @property {string} [fontFamily='Courier'] - The font the Text object will render with. This is a Canvas style font string. * @property {string} [fontFamily='Courier'] - The font the Text object will render with. This is a Canvas style font string.
* @property {(number|string)} [fontSize='16px'] - The font size, as a CSS size string. * @property {(number|string)} [fontSize='16px'] - The font size, as a CSS size string.
* @property {string} [fontStyle] - Any addition font styles, such as 'strong'. * @property {string} [fontStyle] - Any addition font styles, such as 'bold'.
* @property {string} [font] - The font family or font settings to set. Overrides the other font settings. * @property {string} [font] - The font family or font settings to set. Overrides the other font settings.
* @property {string} [backgroundColor] - A solid fill color that is rendered behind the Text object. Given as a CSS string color such as `#ff0`. * @property {string} [backgroundColor] - A solid fill color that is rendered behind the Text object. Given as a CSS string color such as `#ff0`.
* @property {(string|CanvasGradient|CanvasPattern)} [color='#fff'] - The color the Text is drawn in. Given as a CSS string color such as `#fff` or `rgb()`. * @property {(string|CanvasGradient|CanvasPattern)} [color='#fff'] - The color the Text is drawn in. Given as a CSS string color such as `#fff` or `rgb()`.