The event handler for this control. Although it is permitted to set
this property directly it is recommended that the setAction(...)
method is used to define the event handler actions.
Add a child to this control using its relative position [rx, ry]. If rx and ry are not provided then it uses the values set in the child.
this control
is the actual control or its name
Optional
rx: numberOptional
ry: numberSet or get the corner radii used for this control
an array with the 4 corner radii
an array of 4 corner radii
Disables this control
this control
Optional
cascade: booleanif true disable child controls
Enables this control
this control
Optional
cascade: booleanif true enable child controls
Calculates the absolute position on the canvas taking into account any ancestors
the actual position in the canvas
this controls parent
Make this control invisible
this control
Remove this control from its parent
this control
Makes the controls background opaque. The actual color depends on the controls color scheme
this control
Adds this control to another control which becomes its parent
this control
is the parental control or its name
Optional
rx: numberx position relative to parent
Optional
ry: numbery position relative to parent
Remove a child control from this one so that it stays in same screen position
this control
the control to remove or its name
Sets or gets the scale and or scale limits
If no parameters are passed the the current scale is returned. A single parameter sets the current scale and three parameter sets the current scale and the limits for the zoom slider.
this control or the current scale
the scale to use
Sets the existing scaler value (if there is no scaler it will be created) and limits. The initial value will be constrained to the limits.
this control
the scale to use
the lowest scale allowed
the highest scale allowed
Sets or gets the color scheme used by this control.
this control or the control's color scheme
Optional
id: stringOptional
cascade: booleanThis sets the event handler to be used when this control fires an event. The parameter can take three forms:
this control
the function to handle this controls event
Make this control visible
this control
The current status is an object with 3 fields { cX, cY, scale }
where -
cX, cY
is the position in the image that correseponds to the view center andscale
is the current scale used to display the image.the current status
Makes the controls background fully transparent.
this control
Sets the view of the image to be displayed. If you enter values outside the image or ar scale value outside scaler limts they will be constrained to legal action on the viewer to report back changes to the view centre and/or scale attributes.
Optional
wscale: numberGenerated using TypeDoc
This control is used to scroll and zoom on an image.
When the mouse moves over the control scrollbars will appear (if needed) inside the bottom and right-hand-side edges of the view. When the mouse is near the centre a slider will appear which can be used to change the scale.
THis control also supports layers where multiple images can be layered to make the final visual.