AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated 7.6.0 version of this document. Switch to the 8.4.0 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:

NameTypeDescription
valuenumber | string | nullBottom bound settings for the element.

Returns:

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

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:

NameTypeDescription
valueanychart.utils.RectObj | anychart.math.Rect | anychart.core.utils.BoundsBounds of element.

Returns:

anychart.core.VisualBaseWithBounds - Self instance for method chaining.
Setter for the element bounds settings.

Params:

NameTypeDescription
xnumber | stringX-coordinate.
ynumber | stringY-coordinate.
widthnumber | stringWidth.
heightnumber | stringHeight.

Returns:

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

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:

NameTypeDescription
valuenumber | string | nullHeight settings for the element.

Returns:

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

left

Getter for element left bound settings.

Returns:

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

Params:

NameTypeDescription
valuenumber | string | nullLeft bound settings for the element.

Returns:

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

maxHeight

Getter for maximum height.

Returns:

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

Params:

NameTypeDescription
valuenumber | string | nullValue to set.

Returns:

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

maxWidth

Getter for maximum width.

Returns:

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

Params:

NameTypeDescription
valuenumber | string | nullValue to set.

Returns:

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

minHeight

Getter for minimum height.

Returns:

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

Params:

NameTypeDescription
valuenumber | string | nullValue to set.

Returns:

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

minWidth

Getter for minimum width.

Returns:

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

Params:

NameTypeDefaultDescription
valuenumber | string | null
null
Value to set.

Returns:

anychart.core.VisualBaseWithBounds - Self instance for method chaining.
Getter for element right bound settings.

Returns:

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

Params:

NameTypeDescription
valuenumber | string | nullRight bound settings for the element.

Returns:

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

top

Getter for element top bound settings.

Returns:

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

Params:

NameTypeDescription
valuenumber | string | nullTop bound settings for the element.

Returns:

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

width

Getter for element width settings.

Returns:

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

Params:

NameTypeDescription
valuenumber | string | nullWidth settings for the element.

Returns:

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