Преглед на файлове

Allow to define payload instead of file url in the configuration
Using this method you can define your mapper, provide a different JSON structure and the mapper will convert it to the correct JSON structure for the viewer

Raanan Weber преди 7 години
родител
ревизия
a1f54aafdb
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      Viewer/src/configuration/configuration.ts

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

@@ -9,7 +9,8 @@ export interface ViewerConfiguration {
     pageUrl?: string; // will be used for sharing and other fun stuff. This is the page showing the model (not the model's url!)
 
     configuration?: string | {
-        url: string;
+        url?: string;
+        payload?: any;
         mapper?: string; // json (default), html, yaml, xml, etc'. if not provided, file extension will be used.
     };