summaryrefslogtreecommitdiff
path: root/library/WT/Controller/Pedigree.php
diff options
context:
space:
mode:
authorNigel Osborne <kiwi3685@me.com>2012-06-24 04:07:56 +0000
committerNigel Osborne <kiwi3685@me.com>2012-06-24 04:07:56 +0000
commit6bf80ae5ae6f3f1ea0138cc2f357948e9571b7b1 (patch)
tree3e42d6ad8ce1b727e7852b091175f2212dcde8cd /library/WT/Controller/Pedigree.php
parent8282eee574011733ae5a66f96ceb43d0d9a1f56b (diff)
downloadwebtrees-6bf80ae5ae6f3f1ea0138cc2f357948e9571b7b1.tar.gz
webtrees-6bf80ae5ae6f3f1ea0138cc2f357948e9571b7b1.tar.bz2
webtrees-6bf80ae5ae6f3f1ea0138cc2f357948e9571b7b1.zip
pedigree chart lines - use HTML5 canvas (EXPERIMENTAL)
Diffstat (limited to 'library/WT/Controller/Pedigree.php')
-rw-r--r--library/WT/Controller/Pedigree.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/library/WT/Controller/Pedigree.php b/library/WT/Controller/Pedigree.php
index c347fcb775..e7ab7ddc58 100644
--- a/library/WT/Controller/Pedigree.php
+++ b/library/WT/Controller/Pedigree.php
@@ -51,11 +51,19 @@ class WT_Controller_Pedigree extends WT_Controller_Chart {
global $PEDIGREE_FULL_DETAILS, $PEDIGREE_LAYOUT, $MAX_PEDIGREE_GENERATIONS;
global $DEFAULT_PEDIGREE_GENERATIONS, $SHOW_EMPTY_BOXES;
global $bwidth, $bheight, $cbwidth, $cbheight, $baseyoffset, $basexoffset, $byspacing, $bxspacing;
+ global $linewidth, $shadowcolor, $shadowblur, $shadowoffsetX, $shadowoffsetY;
+
global $BROWSER_TYPE, $show_full, $talloffset;
parent::__construct();
$this->log2 = log(2);
-
+
+ $this->linewidth = $linewidth;
+ $this->shadowcolor = $shadowcolor;
+ $this->shadowblur = $shadowblur;
+ $this->shadowoffsetX = $shadowoffsetX;
+ $this->shadowoffsetY = $shadowoffsetY;
+
$this->show_full =safe_GET('show_full', array('0', '1'), $PEDIGREE_FULL_DETAILS);
$this->talloffset=safe_GET('talloffset', array('0', '1', '2', '3'), $PEDIGREE_LAYOUT);
$this->box_width =safe_GET_integer('box_width', 50, 300, 100);
@@ -96,7 +104,6 @@ class WT_Controller_Pedigree extends WT_Controller_Chart {
//-- adjustments for portrait mode
if ($this->talloffset==0) {
$bxspacing+=12;
- //$bwidth+=20;
$baseyoffset -= 20*($this->PEDIGREE_GENERATIONS-1);
}