From: vincent@cubedesigners.com Date: Thu, 20 Aug 2020 16:09:44 +0000 (+0000) Subject: wip #3785 @4 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=b6e4cf74e899764b51473c4bf1bf6b3363fafc4f;p=cubeextranet.git wip #3785 @4 --- diff --git a/inc/ws/Util/html5/master/class.ws.html5.links.php b/inc/ws/Util/html5/master/class.ws.html5.links.php index 4942690b4..7b213b3ca 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -198,6 +198,9 @@ class wsHTML5Link return new downloadPortionLink($id, $init, $compiler); case 38: $compiler->addTriggersLink($init['page'], $init['to']); + break; + case 39: + return new layerLink($id, $init, $compiler); default: return null; } @@ -1242,6 +1245,30 @@ class remarkableCartLink extends cartLink } +class layerLink extends imageLink +{ + protected $maxzoom_default = 4; + + public function getCSS() + { + zoomLink::generateImage($this->getZoomAttributes(), $this->compiler, 'layerlink', 'layer'); + return 'background-image:url(../links/layer_' . $this->id . '.jpg);background-size:100% 100%;background-repeat:no-repeat;'; + } + + public function getZoomAttributes() + { + return [ + 'id' => $this->id, + 'page' => $this->page, + 'maxzoom' => $this->maxzoom_default, + 'width' => round($this->width), + 'height' => round($this->height), + 'x' => round($this->left), + 'y' => round($this->top), + ]; + } +} + class colorLink extends contentLink { public function getCSS() diff --git a/swf/_src/WSComposer.as3proj b/swf/_src/WSComposer.as3proj index 9d8d3721a..f0777b735 100644 --- a/swf/_src/WSComposer.as3proj +++ b/swf/_src/WSComposer.as3proj @@ -91,7 +91,7 @@ - "C:\ProgramData\chocolatey\lib\kitty\tools\kscp.exe" -agent -batch "$(OutputDir)\$(OutputName)" extranet@alien.cubedesigners.com:/home/extranet/www/swf + "scp.exe" "/cygdrive/H/Works/cubeExtranet/swf/$(OutputName)" extranet@alien.cubedesigners.com:/home/extranet/www/swf