Class mindmaps.ZoomController
Defined in: ZoomController.js.
Constructor Attributes | Constructor Name and Description |
---|---|
mindmaps.ZoomController(eventBus, commandRegistry)
Creates a new ZoomController.
|
Field Attributes | Field Name and Description |
---|---|
<constant> | |
<constant> | |
<constant> | |
<constant> | |
<private> |
Method Attributes | Method Name and Description |
---|---|
zoomIn()
Zooms in by ZOOM_STEP.
|
|
zoomOut()
Zooms out by ZOOM_STEP,
|
|
zoomTo(factor)
Sets the zoom factor if param is within MIN_ZOOM and MAX_ZOOM bounds.
|
Class Detail
mindmaps.ZoomController(eventBus, commandRegistry)
Creates a new ZoomController. Object that controls the zoom setting.
- Parameters:
- {mindmaps.EventBus} eventBus
- commandRegistry
Field Detail
<constant>
DEFAULT_ZOOM
<constant>
MAX_ZOOM
<constant>
MIN_ZOOM
<constant>
ZOOM_STEP
<private>
zoomFactor
Method Detail
{Number}
zoomIn()
Zooms in by ZOOM_STEP.
- Returns:
- {Number} the new zoomFactor.
{Number}
zoomOut()
Zooms out by ZOOM_STEP,
- Returns:
- {Number} the new zoomFactor.
zoomTo(factor)
Sets the zoom factor if param is within MIN_ZOOM and MAX_ZOOM bounds.
- Parameters:
- {Number} factor