]> _ Git - fluidbook-toolbox.git/commitdiff
wait #7347
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 4 Mar 2025 16:42:18 +0000 (17:42 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 4 Mar 2025 16:42:18 +0000 (17:42 +0100)
app/Fluidbook/Link/LinksData.php
app/SubForms/Link/Object3D.php

index dd439c752019f8ec4af991d3bba33952e50e46f0..a542bd139f1937cc7dd65c59860f00e9a229ebc8 100644 (file)
@@ -56,6 +56,7 @@ class LinksData
             'zindex' => __('Profondeur'),
             'pdfjs' => __('Mode PDFJS'),
             'polygon' => __('TracĂ© du polygone'),
+            'background_color' => __('Couleur de fond'),
         );
 
         $comments = array();
@@ -703,7 +704,9 @@ class LinksData
                     'tooltip' => '',
                     'numerotation' => 'physical',
                     "inline" => 'inline',
-                    'pdfjs' => 'normal'];
+                    'pdfjs' => 'normal',
+                    'background_color' => '',
+                ];
 
                 $k = 0;
                 foreach ($cols as $col => $default) {
@@ -741,8 +744,8 @@ class LinksData
             }
             fclose($fp);
         }
-       // throw new \Exception(":/ " . count($links) . ' // ' . json_encode($book->getComposition()));
-        self::saveLinksInFile($book_id, backpack_user() ? backpack_user()->id : 0, 'Links imported from PDF (Documents ' . implode(', ', $docs).')', $links);
+        // throw new \Exception(":/ " . count($links) . ' // ' . json_encode($book->getComposition()));
+        self::saveLinksInFile($book_id, backpack_user() ? backpack_user()->id : 0, 'Links imported from PDF (Documents ' . implode(', ', $docs) . ')', $links);
         return true;
     }
 
index a85f0ca6bc10af850a332303914175b27d3bbc13..9767aa8c86eb08c414e0e2aa05ff10c9d82bb134 100644 (file)
@@ -15,5 +15,6 @@ class Object3D extends Base
     public function addDestinationField()
     {
         $this->addField('to', FilesOrURL::class, __('Fichier 3D'), $this->getFilesOrURLEntry() + ['accept' => self::$_accept3D]);
+        $this->addField('background_color', \Cubist\Backpack\Magic\Fields\Color::class, __('Couleur de fond'), ['default' => '#ffffff']);
     }
 }