( gravity processing.GravityType, offset float64, )
| 333 | } |
| 334 | |
| 335 | func (p *Parser) isGravityOffsetValid( |
| 336 | gravity processing.GravityType, |
| 337 | offset float64, |
| 338 | ) bool { |
| 339 | return gravity != processing.GravityFocusPoint || (offset >= 0 && offset <= 1) |
| 340 | } |
| 341 | |
| 342 | func (p *Parser) parseGravity( |
| 343 | ctx context.Context, |