namespace Fluidbook\Tools\Compiler;
+use Cubist\Util\Data;
use Cubist\Util\Files\VirtualDirectory;
trait FluidbookCompiler
*/
public $wdir = '';
+ /**
+ * @var Data
+ */
+ public $config;
+
/**
* @return VirtualDirectory
*/
$this->wdir = $wdir;
}
- public function working_path($path = ''):string
+ public function working_path($path = ''): string
{
$res = $this->getWorkingDir();
return $path ? $res . '/' . $path : $res;
protected $maxzoom_default = 4;
public $defaultZIndex = 31;
+ public function ignore()
+ {
+ return parent::ignore() || $this->isOutsidePage();
+ }
+
public function getCSS()
{
$attributes = $this->getZoomAttributes();
}
}
+ public function isOutsidePage()
+ {
+ if ($this->top > $this->compiler->getSetting('height')) {
+ return true;
+ }
+ if ($this->left > $this->compiler->getSetting('width')) {
+ return true;
+ }
+ }
+
+ public function ignore()
+ {
+ return false;
+ }
+
public function getConfigZIP($d)
{
return $this->compiler->getConfigZIP($d);
protected $maxzoom_default = 2;
protected $_groups = null;
+ public function ignore()
+ {
+ return parent::ignore() || $this->isOutsidePage();
+ }
+
public function getGroups()
{
if (null === $this->_groups) {