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

class anychart.graphics.vector.Clip Improve this Doc

Class representing independent clip, that can be applied to any element. Used to set one clip to many elements, and updates only clip.

Methods Overview

Miscellaneous
bounds()Gets bounds for clip.
height()Gets height of clip rectangle.
left()Gets left coordinate of clip rectangle.
top()Gets top coordinate of clip rectangle.
width()Gets width of clip rectangle.

Methods Description

bounds

Gets bounds for clip.

Returns:

anychart.graphics.math.Rect - The current bounds of clipping.

Try it:

Sets bounds for clip using one value.

Params:

Name Type Description
rect anychart.graphics.math.Rect Rect.

Returns:

anychart.graphics.math.Rect - Self instance for method chaining.

Try it:

Sets bounds for clip using several value.

Params:

Name Type Description
left number Left coordinate of the rect.
top number Top coordinate of the rect.
width number Width of the rect.
height number Height of the rect.

Returns:

anychart.graphics.math.Rect - Self instance for method chaining.

Try it:

height

Gets height of clip rectangle.

Returns:

number - The current height of rectangle.

Try it:

Sets height of clip rectangle.

Params:

Name Type Description
value number Height of rectangle.

Returns:

anychart.graphics.vector.Clip - Self instance for method chaining.

Try it:

left

Gets left coordinate of clip rectangle.

Returns:

number - The current left coordinate.

Try it:

Sets left coordinate of clip rectangle.

Params:

Name Type Description
value number Left coordinate.

Returns:

anychart.graphics.vector.Clip - Self instance for method chaining.

Try it:

top

Gets top coordinate of clip rectangle.

Returns:

number - The current top coordinate.

Try it:

Sets top coordinate of clip rectangle.

Params:

Name Type Description
value number Top coordinate.

Returns:

anychart.graphics.vector.Clip - Self instance for method chaining.

Try it:

width

Gets width of clip rectangle.

Returns:

number - The current width of rectangle.

Try it:

Sets width of clip rectangle.

Params:

Name Type Description
value number Width of rectangle.

Returns:

anychart.graphics.vector.Clip - Self instance for method chaining.

Try it: