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

class anychart.core.VisualBase Improve this Doc

Extends: anychart.core.Base

Base class for all elements.

Methods Overview

Miscellaneous
enabled()Getter for the current element state (enabled or disabled).
fullScreen()Getter for the current full screen mode.
print()Prints all element on related stage.
toSVG()Returns SVG string if type of content SVG otherwise returns empty string.
zIndex()Getter for the current Z-index of the element.

Methods Description

enabled

Getter for the current element state (enabled or disabled).

Returns:

boolean - The current element state.
Setter for the element enabled state.

Params:

Name Type Description
value boolean Value to set.

Returns:

anychart.core.VisualBase - Self instance for method chaining.
Example
if (!element.enabled())
   element.enabled(true);

Try it:

fullScreen

Getter for the current full screen mode.

Returns:

boolean - The current full screen mode.

Try it:

Setter for the full screen mode.

Params:

Name Type Description
value boolean Boolean flag.

Returns:

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

Try it:

print

Prints all element on related stage.

Params:

Name Type Description
paperSize anychart.graphics.vector.PaperSize Paper size.
landscape boolean Flag of landscape.

Try it:

toSVG

Returns SVG string if type of content SVG otherwise returns empty string.

Returns:

string -

Try it:

zIndex

Getter for the current Z-index of the element.

Returns:

number - The current zIndex.
Setter for the Z-index of the element.

Params:

Name Type Description
value number Value to set.

Returns:

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