Explorar el Código

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 hace 7 años
padre
commit
a1f54aafdb
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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.
     };