]> _ Git - cubeextranet.git/commitdiff
wip #3785 @4
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 20 Aug 2020 16:09:44 +0000 (16:09 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 20 Aug 2020 16:09:44 +0000 (16:09 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php
swf/_src/WSComposer.as3proj

index 4942690b4f3a3b5a530002965112b12b663b9b1c..7b213b3ca2e56110051247e5b6f2f2acaaa05731 100644 (file)
@@ -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()
index 9d8d3721abd5c2ee8f2b804ee648025fa7afddfc..f0777b7350f8fbf1cb4f831787e98e86e5f77914 100644 (file)
@@ -91,7 +91,7 @@
   <!-- Executed before build -->\r
   <preBuildCommand />\r
   <!-- Executed after build -->\r
-  <postBuildCommand alwaysRun="False">"C:\ProgramData\chocolatey\lib\kitty\tools\kscp.exe" -agent -batch "$(OutputDir)\$(OutputName)" extranet@alien.cubedesigners.com:/home/extranet/www/swf</postBuildCommand>\r
+  <postBuildCommand alwaysRun="False">"scp.exe" "/cygdrive/H/Works/cubeExtranet/swf/$(OutputName)" extranet@alien.cubedesigners.com:/home/extranet/www/swf</postBuildCommand>\r
   <!-- Other project options -->\r
   <options>\r
     <option showHiddenPaths="False" />\r