| Package | com.yworks.canvas.drawing |
| Interface | public interface IVisibilityTest |
| Implementors | AbstractStyleRenderer |
See also
| Method | Defined By | ||
|---|---|---|---|
Determines whether an element might intersect the visible region for a given context. | IVisibilityTest | ||
| isVisible | () | method |
public function isVisible(clip:IRectangle, ctx:ICanvasContext):BooleanDetermines whether an element might intersect the visible region for a given context.
Conservative implementations can always return true.
Parameters
clip:IRectangle — The visible region clip.
| |
ctx:ICanvasContext — The context to determine the visibility for.
|
Boolean — false if and only if the it is safe not to paint the element because
it would not affect the given clipping region.
|