AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated v7 version of this document. Switch to the v8 version to see the up to date information.

[enum] anychart.graphics.vector.Image.FittingImprove this Doc

Fitting mode.
ValueDescriptionExample
meetAspect ratio is preserved. The entire ‘viewBox’ is visible within the viewport. The ‘viewBox’ is scaled up as much as possible, while still meeting the other criteria.
sliceAspect ratio is preserved. The entire viewport is covered by the ‘viewBox’. The ‘viewBox’ is scaled down as much as possible, while still meeting the other criteria.