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.AlignImprove this Doc

Align enumeration.
ValueDescriptionExample
noneDo not force uniform scaling. Scale the graphic content of the given element non-uniformly if necessary such that the element's bounding box exactly matches the viewport rectangle. (Note: if is none, then the optional value is ignored.)
xMaxYMaxForce uniform scaling.
Align the + of the element's ‘viewBox’ with the maximum X value of the viewport.
Align the + of the element's ‘viewBox’ with the maximum Y value of the viewport.
xMaxYMidForce uniform scaling.
Align the + of the element's ‘viewBox’ with the maximum X value of the viewport.
Align the midpoint Y value of the element's ‘viewBox’ with the midpoint Y value of the viewport.
xMaxYMinForce uniform scaling.
Align the + of the element's ‘viewBox’ with the maximum X value of the viewport.
Align the of the element's ‘viewBox’ with the smallest Y value of the viewport.
xMidYMaxForce uniform scaling.
Align the midpoint X value of the element's ‘viewBox’ with the midpoint X value of the viewport.
Align the + of the element's ‘viewBox’ with the maximum Y value of the viewport.
xMidYMidForce uniform scaling.
Align the midpoint X value of the element's ‘viewBox’ with the midpoint X value of the viewport.
Align the midpoint Y value of the element's ‘viewBox’ with the midpoint Y value of the viewport.
xMidYMinForce uniform scaling.
Align the midpoint X value of the element's ‘viewBox’ with the midpoint X value of the viewport.
Align the of the element's ‘viewBox’ with the smallest Y value of the viewport.
xMinYMaxForce uniform scaling.
Align the of the element's ‘viewBox’ with the smallest X value of the viewport.
Align the + of the element's ‘viewBox’ with the maximum Y value of the viewport.
xMinYMidForce uniform scaling.
Align the of the element's ‘viewBox’ with the smallest X value of the viewport.
Align the midpoint Y value of the element's ‘viewBox’ with the midpoint Y value of the viewport.
xMinYMinForce uniform scaling.
Align the of the element's ‘viewBox’ with the smallest X value of the viewport.
Align the of the element's ‘viewBox’ with the smallest Y value of the viewport.