]> _ Git - fluidbook-toolbox.git/commitdiff
wip #7347 @2
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 28 Feb 2025 16:32:14 +0000 (17:32 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 28 Feb 2025 16:32:14 +0000 (17:32 +0100)
app/Fluidbook/Compiler/Compiler.php
app/SubForms/Link/Base.php

index 16bfef22f2a7137df66d83b54951455d4ce61d4a..04bffdc845bfc98715bc97b7e4e26726186adb2a 100644 (file)
@@ -633,6 +633,7 @@ class Compiler extends Base implements CompilerInterface, IVirtualDirectoryError
         }
     }
 
+
     protected function checkConfig()
     {
         if ($this->isMobileFirst() && $this->fluidbookSettings->mobilefirstFluidbookId) {
@@ -1550,6 +1551,13 @@ class Compiler extends Base implements CompilerInterface, IVirtualDirectoryError
         $this->config->content_lock = $this->content_lock;
     }
 
+    public function add3DViewer()
+    {
+        $this->addJsLib(
+            'o3dv', ['js/libs/o3dv/o3dv.min.js']
+        );
+    }
+
     public function addPDFJSPageRenderer()
     {
         $this->vdir->copyDirectory(resource_path('pdfjs/dist-min'), 'pdfjs');
index 337f8849e5ea0919664d8fcd84ad2a175aa6fdff..9f5b3533a752e0f7a4b901238499db13315cc353 100644 (file)
@@ -61,7 +61,7 @@ class Base extends Form
     protected static $_acceptLottie = ['.zip', '.html', '.json', '.lottie'];
     protected static $_acceptSlideshow = ['.jpg', '.jpeg', '.png', '.svg', '.gif', '.zip'];
     protected static $_acceptPDF = ['.pdf'];
-    protected static $_accept3D = ['.3ds', '.fbx'];
+    protected static $_accept3D = ['.3ds', '.fbx', '.3dm', '.3ds', '.3mf', '.amf', '.bim', '.brep', '.dae', '.fbx', '.fcstd', '.gltf', '.ifc', '.iges', '.step', '.stl', '.obj', '.off', '.ply', '.wrl'];
 
     /**
      * @return array[]