Skip to content

Commit 77ce3d3

Browse files
authored
Fix types of text method parameters in docs. (#2915)
* Update types of text method parameters in docs. * Revert "Update types of text method parameters in docs." This reverts commit e4281a5. * Update documentation in jspdf.js text method.
1 parent de1e8ef commit 77ce3d3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/jspdf.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3286,14 +3286,14 @@ function jsPDF(options) {
32863286
* @param {Object} [options] - Collection of settings signaling how the text must be encoded.
32873287
* @param {string} [options.align=left] - The alignment of the text, possible values: left, center, right, justify.
32883288
* @param {string} [options.baseline=alphabetic] - Sets text baseline used when drawing the text, possible values: alphabetic, ideographic, bottom, top, middle, hanging
3289-
* @param {string} [options.angle=0] - Rotate the text clockwise or counterclockwise. Expects the angle in degree.
3290-
* @param {string} [options.rotationDirection=1] - Direction of the rotation. 0 = clockwise, 1 = counterclockwise.
3291-
* @param {string} [options.charSpace=0] - The space between each letter.
3292-
* @param {string} [options.lineHeightFactor=1.15] - The lineheight of each line.
3293-
* @param {string} [options.flags] - Flags for to8bitStream.
3294-
* @param {string} [options.flags.noBOM=true] - Don't add BOM to Unicode-text.
3295-
* @param {string} [options.flags.autoencode=true] - Autoencode the Text.
3296-
* @param {string} [options.maxWidth=0] - Split the text by given width, 0 = no split.
3289+
* @param {number|Matrix} [options.angle=0] - Rotate the text clockwise or counterclockwise. Expects the angle in degree.
3290+
* @param {number} [options.rotationDirection=1] - Direction of the rotation. 0 = clockwise, 1 = counterclockwise.
3291+
* @param {number} [options.charSpace=0] - The space between each letter.
3292+
* @param {number} [options.lineHeightFactor=1.15] - The lineheight of each line.
3293+
* @param {Object} [options.flags] - Flags for to8bitStream.
3294+
* @param {boolean} [options.flags.noBOM=true] - Don't add BOM to Unicode-text.
3295+
* @param {boolean} [options.flags.autoencode=true] - Autoencode the Text.
3296+
* @param {number} [options.maxWidth=0] - Split the text by given width, 0 = no split.
32973297
* @param {string} [options.renderingMode=fill] - Set how the text should be rendered, possible values: fill, stroke, fillThenStroke, invisible, fillAndAddForClipping, strokeAndAddPathForClipping, fillThenStrokeAndAddToPathForClipping, addToPathForClipping.
32983298
* @param {boolean} [options.isInputVisual] - Option for the BidiEngine
32993299
* @param {boolean} [options.isOutputVisual] - Option for the BidiEngine

0 commit comments

Comments
 (0)