LON-CAPA Help
- labelgroup: One is required, but multiple are allowed.
This declares a group of locations and labels associated with them. Possible
attributes are:
- name: This is the name of the group. A hash
with this name will be generated holding the mappings for later use
in the problem. For each location a value will be set for which label
is there (EX. $hash{'1'}="TEXT-2"). For locations with values,
the hash will contain 2 items, a location to value mapping ($hash{'value_1'}=10),
and a label to value mapping ($hash{'labelvalue_2'}=10). For all
image style of labels there will also be a label description to label
URL mapping ($hash{'image_2'}=IMG-URL). The entry numlocations
will also be set to the total number of locations that exist (Note: locations and labels start counting from one.)
- type: the type of labels in this group, either
'image' or 'text'
- location: declares a location on the image
that a label should appear at. Possible attributes are:
- x: The x value of the location in pixels.
- y: The y value of the location in pixels.
- value: An optional scalar value to associate
at this location.
- label: Declaration of a label. If this is a
text type label, the internal text should be the text of
the label (HTML is not currently supported); if this is an image
type of label, the internal text must be a LON-CAPA resource specification,
and the description filed must be set. Possible attributes are:
- description: Required field for image
labels. It will be used when setting values in the hash.