Class Scruffy::Components::Legend
In: lib/scruffy/components/legend.rb
Parent: Base

Methods

Constants

FONT_SIZE = 80

Public Instance methods

Protected Instance methods

Returns an array consisting of the total width needed by the legend information, as well as an array of @x-coords for each element. If vertical, then these are @y-coords, and @x is 0

ie: [200, [0, 50, 100, 150]]

Collects Legend Info from the provided Layers.

Automatically filters by legend‘s categories.

[Validate]