Source for file SvgGrapher.constants.php
Documentation is available at SvgGrapher.constants.php
* $Source: /cvsroot/svggrapher/svggrapher/SvgGrapher.constants.php,v $
* Define the constants wich can be redefined.
* @version $Id: SvgGrapher.constants.php,v 1.7 2007/10/18 16:32:00 geelweb Exp $
* @author Guillaume L. <guillaume@geelweb.org>
* @copyright Copyright © 2006, Guillaume Luchet.
* @license http://opensource.org/licenses/bsd-license.php BSD License
define('DEFAULT_TITLE', 'Svg Graph');
* define the default X label
define('DEFAULT_LABEL_X', 'Axe X');
* define the default Y label
define('DEFAULT_LABEL_Y', 'Axe Y');
define('TITLE_STYLE', 'font-family: sans-serif; font-size: 18pt; ' .
'text-rendering: geometricPrecision; text-anchor: middle;');
define('LEGEND_BOX_STYLE', 'shape-rendering: crispEdges; fill:none; stroke:#000000; stroke-width:1;');
if(!defined('LEGEND_TEXT_STYLE')) {
define('LEGEND_TEXT_STYLE', 'font-family: sans-serif; font-size: 8pt; ' .
'text-rendering: geometricPrecision; text-anchor: start;');
define('LABEL_X_STYLE', 'font-family: sans-serif; font-size: 13px; ' .
'text-rendering:geometricPrecision; text-anchor: middle;');
define('LABEL_Y_STYLE', 'font-family: sans-serif; font-size: 13px; ' .
'text-rendering:geometricPrecision; text-anchor: middle;');
if(!defined('GRID_LINES_X_STYLE')) {
define('GRID_LINES_X_STYLE', 'shape-rendering:crispEdges; stroke:#ccc; stroke-width:1;');
if(!defined('GRID_LINES_Y_STYLE')) {
define('GRID_LINES_Y_STYLE', 'shape-rendering:crispEdges; stroke:#ccc; stroke-width:1;');
define('STEP_X_STYLE', 'shape-rendering:crispEdges; stroke:#000000; stroke-width:2;');
define('STEP_Y_STYLE', 'shape-rendering:crispEdges; stroke:#000000; stroke-width:2;');
define('TAGS_X_STYLE', 'font-family: sans-serif; font-size: 8pt;text-rendering: geometricPrecision;');
define('TAGS_Y_STYLE', 'font-family: sans-serif; font-size: 8pt;text-rendering: geometricPrecision;');
if(!defined('MINOR_STEP_X_STYLE')) {
define('MINOR_STEP_X_STYLE', 'shape-rendering:crispEdges; stroke:#000000; stroke-width:1;');
if(!defined('MINOR_STEP_Y_STYLE')) {
define('MINOR_STEP_Y_STYLE', 'shape-rendering:crispEdges; stroke:#000000; stroke-width:1;');
if(!defined('LIMITS_LINES_STYLE')) {
define('LIMITS_LINES_STYLE', 'shape-rendering:crispEdges; stroke-width:1;');
define('BOX_STYLE', 'stroke:#000; stroke-width:1;shape-rendering: crispEdges; fill:none;');
if(!defined('DECIMAL_SEPARATOR')) {
define('DECIMAL_SEPARATOR', ',');
if(!defined('THOUSANDS_SEPERATOR')) {
define('THOUSANDS_SEPERATOR', '');
* Default number of decimal
* define the number of pixels between each lines of the X grid
if(!defined('GRID_LINES_X_DELTA')) {
define('GRID_LINES_X_DELTA', 0);
* define the number of pixels between each lines of the Y grid
if(!defined('GRID_LINES_Y_DELTA')) {
define('GRID_LINES_Y_DELTA', 0);
* define the number of pixels between each minor steps of the Y grid
if(!defined('MINOR_STEP_Y_DELTA')) {
define('MINOR_STEP_Y_DELTA', 0);
* define the number of lines of the Y grid.
* Padding of the first point from the abscisse.
* Padding of the first point from the abscisse.
* Space between graph and abscisse tags, 0 to 5% of the width limit to 15.
if(!defined('NICER_LOOK_X_OFFSET')) {
define('NICER_LOOK_X_OFFSET', 0);
* Space between graph and ordinate tags, 0 to 5% of the width limit to 15.
if(!defined('NICER_LOOK_Y_OFFSET')) {
define('NICER_LOOK_Y_OFFSET', 0);
* Default screen resolution
if(!defined('DEFAULT_DPI_RESOLUTION')) {
define('DEFAULT_DPI_RESOLUTION', 96);
* true to generate auto id for the svg elements
$dir =
'@DATA_DIR@' .
'/SvgGrapher/fonts/';
define('TTF_FONTS_PATH', $dir);
Documentation generated on Tue, 23 Oct 2007 11:32:09 +0200 by phpDocumentor 1.4.0