Top
You are looking at an outdated 7.6.0 version of this document. Switch to the 8.0.1 version to see the up to date information.

class anychart.core.VisualBaseWithBounds Improve this Doc

Extends: anychart.core.VisualBase

An extended base element that understands bounds settings and can handle percent values in it.

Methods Overview

Miscellaneous
bottom()Getter for element bottom bound settings.
bounds()Getter for the element bounds settings.
getPixelBounds()Returns pixel bounds of the element due to parent bounds and self bounds settings.
height()Getter for element height settings.
left()Getter for element left bound settings.
maxHeight()Getter for maximum height.
maxWidth()Getter for maximum width.
minHeight()Getter for minimum height.
minWidth()Getter for minimum width.
right()Getter for element right bound settings.
top()Getter for element top bound settings.
width()Getter for element width settings.

Methods Description

bottom

Getter for element bottom bound settings.

Returns:

number string undefined - Current element's bottom bound settings.
Sets element bottom.

Params:

Name Type Description
value number | string | null Bottom bound settings for the element.

Returns:

anychart.core.VisualBaseWithBounds - Returns self for method chaining.

Try it:

bounds

Getter for the element bounds settings.

Returns:

anychart.core.utils.Bounds - Current bounds of the element.
Sets bounds of the element using one parameter.

Params:

Name Type Description
value anychart.utils.RectObj | anychart.math.Rect | anychart.core.utils.Bounds Bounds of element.

Returns:

anychart.core.VisualBase - Self instance for method chaining.

Try it:

Setter for the element bounds settings.

Params:

Name Type Description
x number | string X-coordinate.
y number | string Y-coordinate.
width number | string Width.
height number | string Height.

Returns:

anychart.core.VisualBase - Self instance for method chaining.

Try it:

getPixelBounds

Returns pixel bounds of the element due to parent bounds and self bounds settings.

Returns:

anychart.math.Rect - Pixel bounds of the element.

height

Getter for element height settings.

Returns:

number string undefined - Current element's height settings.
Sets element height.

Params:

Name Type Description
value number | string | null Height settings for the element.

Returns:

anychart.core.VisualBaseWithBounds - Returns self for method chaining.

Try it:

left

Getter for element left bound settings.

Returns:

number string undefined - Current element's left bound settings.
Sets element left.

Params:

Name Type Description
value number | string | null Left bound settings for the element.

Returns:

anychart.core.VisualBaseWithBounds - Returns self for method chaining.

Try it:

maxHeight

Getter for maximum height.

Returns:

number string null - Current element's maximum height.
Setter for maximum height.

Params:

Name Type Description
value number | string | null Value to set.

Returns:

anychart.core.VisualBase - Self instance for method chaining.

Try it:

maxWidth

Getter for maximum width.

Returns:

number string null - Current element's maximum width.
Setter for maximum width.

Params:

Name Type Description
value number | string | null Value to set.

Returns:

anychart.core.VisualBase - Self instance for method chaining.

Try it:

minHeight

Getter for minimum height.

Returns:

number string null - Current element's minimum height.
Setter for minimum height.

Params:

Name Type Description
value number | string | null Value to set.

Returns:

anychart.core.VisualBase - Self instance for method chaining.

Try it:

minWidth

Getter for minimum width.

Returns:

number string null - Current element's minimum width.
Setter for minimum width.

Params:

Name Type Default Description
value number | string | null
null
Value to set.

Returns:

anychart.core.VisualBase - Self instance for method chaining.

Try it:

Getter for element right bound settings.

Returns:

number string undefined - Current element's right bound settings.
Sets element right.

Params:

Name Type Description
value number | string | null Right bound settings for the element.

Returns:

anychart.core.VisualBaseWithBounds - Returns self for method chaining.

Try it:

top

Getter for element top bound settings.

Returns:

number string undefined - Current element's top bound settings.
Sets element top.

Params:

Name Type Description
value number | string | null Top bound settings for the element.

Returns:

anychart.core.VisualBaseWithBounds - Returns self for method chaining.

Try it:

width

Getter for element width settings.

Returns:

number string undefined - Current element's width settings.
Sets element width.

Params:

Name Type Description
value number | string | null Width settings for the element.

Returns:

anychart.core.VisualBaseWithBounds - Returns self for method chaining.

Try it: