Просмотр исходного кода

only optional parameters in config

Raanan Weber 7 лет назад
Родитель
Сommit
e2d57e763a
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      Viewer/src/configuration/configuration.ts

+ 2 - 2
Viewer/src/configuration/configuration.ts

@@ -67,7 +67,7 @@ export interface ViewerConfiguration {
 }
 
 export interface IModelConfiguration {
-    url: string;
+    url?: string;
     loader?: string; // obj, gltf?
     position?: { x: number, y: number, z: number };
     rotation?: { x: number, y: number, z: number, w?: number };
@@ -81,7 +81,7 @@ export interface IModelConfiguration {
         parentIndex?: number;
     }; // shoud the model be scaled to unit-size
 
-    title: string;
+    title?: string;
     subtitle?: string;
     thumbnail?: string; // URL or data-url