Function: operationInputs()
ts
function operationInputs(operations, ref): OperationDependency[];Defined in: validate/dependencies.ts:273
The operations feeding the one identified by ref — the state that configures it, plus any chain-wide limit that applies to it. Empty when the operation has no modelled dependencies or is absent from the chain.
A modifier reaches a target only if no later occurrence of the same modifier sits between them, so the nearest one wins. Pass an element of operations to pin a specific occurrence; a name or creator resolves to the first match.
Parameters
| Parameter | Type |
|---|---|
operations | readonly CdnOperation[] |
ref | OperationRef |
Returns
See
https://uploadcare.com/docs/transformations/image/overlay/#overlay-text
Example
ts
const ops = [font({ size: 24 }), textAlign('center', 'bottom'), text(['80p','20p'], 'bottom', 'Hi')]
operationInputs(ops, 'text').map((d) => d.operation.name) // → ['font', 'text_align']