Mask.CompositeMask Class
Controls the mask surrounds the subject (the step focussed area)
Item Index
Methods
init
()
Initializes the composite mask
pollForScreenChanges
()
A Polling function to check if screen dimension has changed
pollForSubjectChanges
()
A Polling function to check if subject coordinates has changed
render
()
Renders the composite mask
scrollIfNecessary
(
-
position
-
dimension
Checks if the subject is fully visible, if not, scrolls 'til it became fully visible
Parameters:
-
position
ObjectAn object representing the positioning info for the mask
-
dimension
ObjectAn object representing the dimension info for the mask
update
(
-
position
-
dimension
-
borderRadius
Updates the positioning and dimension of each part composing the whole mask, according to the subject coordinates
Parameters:
-
position
ObjectAn object representing the positioning info for the mask
-
dimension
ObjectAn object representing the dimension info for the mask
-
borderRadius
ObjectAn object representing the borderRadius info for the mask