WireItLibrary

WireIt  0.6.0

WireItLibrary > WireIt > WireIt.LayerMap
Search:
 
Filters

Class WireIt.LayerMap - extends WireIt.CanvasElement

Widget to display a minimap on a layer

Constructor

WireIt.LayerMap ( layer , options )
Parameters:
layer <WireIt.Layer> the layer object it is attached to
options <Obj> configuration object

Properties

className - String

CSS class name for the layer map element
Default Value: "WireIt-LayerMap"

layer - object


lineWidth - Integer

Line width
Default Value: 2

parentEl - DOMElement

DOM element that schould contain the layer
Default Value: null

style - String

display style
Default Value: "WireIt-LayerMap"

Properties inherited from WireIt.CanvasElement:

Methods

draw

void draw ( )
Redraw the layer map

drawContainers

void drawContainers ( )
Subroutine to draw the containers

drawWires

void drawWires ( )
Subroutine to draw the wires

initEvents

void initEvents ( )
Listen for various events that should redraw the layer map

onLayerScroll

void onLayerScroll ( )
Redraw after a timeout

onMouseDown

void onMouseDown ( e , args )
When a mouse down is received
Parameters:
e <Event> Original event
args <Array> event parameters

onMouseMove

void onMouseMove ( e , args )
When a mouse move is received
Parameters:
e <Event> Original event
args <Array> event parameters

onMouseUp

void onMouseUp ( e , args )
When a mouseup or mouseout is received
Parameters:
e <Event> Original event
args <Array> event parameters

scrollLayer

void scrollLayer ( clientX , clientY )
Scroll the layer from mousedown/mousemove
Parameters:
clientX <Integer> mouse event x coordinate
clientY <Integer> mouse event y coordinate

setOptions

void setOptions ( )
Set the options by putting them in this (so it overrides the prototype default)


Copyright © 2010 Eric Abouaf All rights reserved.