NAME
Chart::GGPlot::Theme::ElementTree - Definitions of theme elements
VERSION
version 0.002003
DESCRIPTION
An element tree is a specification of a set of elements usable by themes in the Chart::GGPlot system. For each element its value type is defined. Also an elment can inherit other elements, so that in case of an absent element Chart::GGPlot knows to look for values from its parent elements.
A consumer of Chart::GGPlot::Theme shall follow the element tree and specify values to elements. A Chart::GGPlot::Backend consumer, depend on its implementation, shall support (at least a subset of) theme elements defined in the element tree.
This module provides a default element tree, and normally you do not need to define your own element tree.
CLASS METHODS
el_def
This method defines a theme element.
my $href = el_def($type, $inherits=[], $desc='')
$type: A Type::Tiny type.
$inherits: An element can inherit other elements.
$desc: Description of the element.
default_element_tree
Returns an object of Chart::GGPlot::ElementTree.
my $element_tree = Chart::GGPlot::ElementTree->default_element_tree();
SEE ALSO
Chart::GGPlot::Theme::Defaults, Chart::GGPlot::Theme::Element
AUTHOR
Stephan Loyd <sloyd@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2019-2023 by Stephan Loyd.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.