fix_frames
fix_frames(
frames,x_min?,x_max?,pad?):any[]
Defined in: packages/pleco-xa/src/scripts/xa-util.js:1399
Fix a list of frames to lie within [x_min, x_max]
Parameters
Section titled “Parameters”frames
Section titled “frames”any[]
Frame indices to fix
x_min?
Section titled “x_min?”number = 0
Minimum allowed frame index (default: 0)
x_max?
Section titled “x_max?”number = null
Maximum allowed frame index (default: null, no upper bound)
boolean = true
If true, pad to ensure coverage of [x_min, x_max] (default: true)
Returns
Section titled “Returns”any[]
Fixed frame indices