This is a demonstration of four new attributes of Konva.Text:
- {Number} [config.resizeToFitX] scale dynamically until either the maximum width is reached or the scaling factor resizeToFitMaxRatio is hit
- {Number} [config.resizeToFitY] scale dynamically until either the maximum height is reached or the scaling factor resizeToFitMaxRatio is hit
- {Number} [config.resizeToFitMaxRatio] Limits resizeToFitX/resizeToFitY to prevent text thinning or flattening. The default is 4
- {String} [config.verticalAlign] Vertically align the text. One of top, middle, bottom. Forces one line text when resizeToFitX AND resizeToFitY is used at the same time