From 8211db32337aceb30ad2d457e5b13e3cab5c2b39 Mon Sep 17 00:00:00 2001 From: Anton Lavrevov Date: Fri, 28 Mar 2025 14:13:08 -0500 Subject: [PATCH] update justify option --- src/shapes/Text.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shapes/Text.ts b/src/shapes/Text.ts index eeeb6026..129ff3af 100644 --- a/src/shapes/Text.ts +++ b/src/shapes/Text.ts @@ -171,7 +171,7 @@ function checkDefaultFill(config?: TextConfig) { * @param {String} [config.fontVariant] can be normal or small-caps. Default is normal * @param {String} [config.textDecoration] can be line-through, underline or empty string. Default is empty string. * @param {String} config.text - * @param {String} [config.align] can be left, center, or right + * @param {String} [config.align] can be left, center, right or justify * @param {String} [config.verticalAlign] can be top, middle or bottom * @param {Number} [config.padding] * @param {Number} [config.lineHeight] default is 1 @@ -885,6 +885,8 @@ Factory.addGetterSetter(Text, 'padding', 0, getNumberValidator()); * * // align text to right * text.align('right'); + * + * // justify text */ Factory.addGetterSetter(Text, 'align', LEFT);