boxes/BoxBase
Source: BoxBase.js:32
File : boxes/BoxBase.js
Created : 12/04/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
BoxBase
static
BoxBase.js:48This class contains all the main visual attributes needed to draw AbstractBox objects:
background and foreground colors, gradients, colors for special states (inactive, alternative,
disabled...), margins, fonts, border strokes, etc.
Objects derived from AbstractBox can have inheritance: boxes that act as "containers"
of other boxes (like BoxBag). Most of the attributes of BoxBase can be null,
meaning that the value of the ancestor -or the default value if the box has no ancestors- must
be used.
Parameters
parent(module:boxes/BoxBase.BoxBase, optional) — Another BoxBase object used to determine the value of properties not
locally set.