Przeglądaj źródła

Non-standard params check in viewer.toJSON

master
Palash Bansal 11 miesięcy temu
rodzic
commit
9fa02f41a2
No account linked to committer's email address
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2
    0
      src/viewer/ThreeViewer.ts

+ 2
- 0
src/viewer/ThreeViewer.ts Wyświetl plik

@@ -1164,6 +1164,8 @@ export class ThreeViewer extends EventDispatcher<Record<IViewerEventTypes, IView
* @returns {any} - Serializable JSON object.
*/
toJSON(binary = true, pluginFilter?: string[]): ISerializedViewerConfig {
if (typeof binary !== 'boolean') binary = true // its a meta, ignore it
if (pluginFilter !== undefined && !Array.isArray(pluginFilter)) pluginFilter = undefined // non standard param.
const meta = getEmptyMeta()
const data: ISerializedViewerConfig = Object.assign({
...this._defaultConfig,

Ładowanie…
Anuluj
Zapisz