Class Index | File Index

Classes


Function Namespace vonline.Canvas


Defined in: canvas.js.

Function Namespace Summary
Constructor Attributes Constructor Name and Description
 
Class for managing the svg elements
Method Summary
Method Attributes Method Name and Description
 
add(obj)
 
Deletes all object from canvas
 
 
 
 
 
 
 
 
 
load(json)
loads a document from its json representation
 
normalizes the event.offsetX and event.offsetY value
<inner>  
 
remove(obj)
 
setOffset(x, y)
 
setZoom(zoom)
Function Namespace Detail
vonline.Canvas()
Class for managing the svg elements
Method Detail
add(obj)
Parameters:
{vonline.Base} obj

clear()
Deletes all object from canvas

createObject(data)
Parameters:
data

exportJSON()

{vonline.Base} getObjectById(id)
Parameters:
{number} id
Returns:
{vonline.Base} object

getObjects()

getPaper()

getZoom()

initDragging()

initRectangleSelection()

load(json)
loads a document from its json representation
Parameters:
{array} json
array containing the components

normalizeEvent(event)
normalizes the event.offsetX and event.offsetY value
Parameters:
event

<inner> onResize()

remove(obj)
Parameters:
{vonline.Base} obj

setOffset(x, y)
Parameters:
x
y

setZoom(zoom)
Parameters:
zoom

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Mar 03 2011 22:07:38 GMT+0100 (MEZ)