0xfe/vexflow — pull request #66 by aaronmars (2012-07-31 22:25:24+00:00)
Title: Add in line configuration for Stave

Added in a line configuration data structure the Stave instance options.

This is an array of objects, one per Stave line that can be used to granularly control how each line is drawn in Stave.draw(). Currently, the only configuration parameter is line visibility, but it was designed so that other parameters can be added with minimal effort.

3 new instance functions were added to Vex.Flow.Stave:

* getLinesConfiguration(): Returns the current line configuration array.

* setLineConfiguration(int, object): Sets the line configuration for a single line. All other lines are unaffected.

* setLinesConfiguration(array): Sets the configuration for all lines. The length of the input array must match the existing num_lines option that is set in the Stave constructor. If the defaults are desired for a particular line index, null may be passed in at that array index.