Explorar o código

Small configuration change.
now accepting thumbnail title and subtitle. Templates coming next.

Raanan Weber %!s(int64=7) %!d(string=hai) anos
pai
achega
0e27b4c9ae
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      Viewer/src/configuration/configuration.ts

+ 7 - 0
Viewer/src/configuration/configuration.ts

@@ -34,6 +34,13 @@ export interface ViewerConfiguration {
         scaling?: { x: number, y: number, z: number };
         parentObjectIndex?: number; // the index of the parent object of the model in the loaded meshes array.
     } | string,
+
+    description?: string | {
+        title: string;
+        subtitle?: string;
+        thumbnail?: string; // URL or data-url
+    };
+
     scene?: {
         autoRotate?: boolean;
         rotationSpeed?: number;