MaskSegmentViewHelper

Mask segment view helper: handles hidden segments.

Constructor

new MaskSegmentViewHelper()

Methods

addToHidden(segment)

Add a segment to the hidden list.

Parameters:
NameTypeDescription
segmentMaskSegment

The segment to add.

getAlphaFunc() → {alphaFn}

Get the alpha function to apply hidden colors.

Returns:

The corresponding alpha function.

Type: 
alphaFn

isHidden(segmentNumber) → {boolean}

Check if a segment is in the hidden list.

Parameters:
NameTypeDescription
segmentNumbernumber

The segment number.

Returns:

True if the segment is in the list.

Type: 
boolean

removeFromHidden(segmentNumber)

Remove a segment from the hidden list.

Parameters:
NameTypeDescription
segmentNumbernumber

The segment number.