boxes/BoxConnector
Source: BoxConnector.js:32
File : boxes/BoxConnector.js
Created : 26/05/2015
By : Francesc Busquets francesc@gmail.com
JClic.js
An HTML5 player of JClic activities
https://projectestac.github.io/jclic.js
- License: EUPL-1.2
Other
BoxConnector
static
BoxConnector.js:46BoxConnector allows users to visually connect two ActiveBox objects of an
ActivityPanel. There are two modes of operation:
- Drawing a line between an origin point (usually the point where the user clicks on) and a
destination point. - Dragging the ActiveBox from one location to another.
The connecting lines can have arrowheads at its endings.
Parameters
parent(module:AWT.Container) — The Container to which this BoxConnector belongs$canvas(external:jQuery) — The HTMLcanvaselement where this BoxConnector will draw.