Variable: textBox
ts
const textBox: ((mode, fill?, padding?, borderRadius?) => CdnOperation) & NamedOperationCreator;Defined in: ops/overlay.ts:272
Background box state for the following text operation. The parts are positional, so a padding needs a color before it, and a border radius writes a zero padding when none is given.
See
https://uploadcare.com/docs/transformations/image/overlay/#overlay-text
Example
ts
textBox('fill', '000', 10) // → -/text_box/fill/000/10/
textBox('fit', 'ff000080', 10, 15) // → -/text_box/fit/ff000080/10/15/