}
$this->numerotation = explode(',', $this->book->numerotation);
}
-
- public function getCssScale(){
- if($this->book->parametres->zoomMode==1){
- return $this->cssOneScale;
- }else{
- return $this->cssScale;
- }
+
+ public function getCssScale() {
+ return $this->cssScale;
}
public function virtualToPhysical($virtual) {
$res = array();
// General theme
+ $cssWidth = $this->cssWidth;
+ $cssHeight = $this->cssHeight;
+ $cssScale = $this->cssScale;
+ $w2 = ($cssWidth * 2) . 'px';
- if ($this->book->parametres->zoomMode == '1') {
- // Slideshow mode
- $cssScale = $this->cssOneScale;
- $cssWidth = $this->cssOneWidth;
- $cssHeight = $this->cssOneHeight;
- $w2 = ($cssWidth * 2) . 'px';
- } else {
- // Normal mode
- $cssWidth = $this->cssWidth;
- $cssHeight = $this->cssHeight;
- $cssScale = $this->cssScale;
- $w2 = ($cssWidth * 2) . 'px';
- }
$h = $cssHeight . 'px';
-
+
$wm = ($this->width * $this->multiply) . 'px';
$hm = ($this->height * $this->multiply) . 'px';
$w = $cssWidth . 'px';