ソースを参照

Non-standard params check in viewer.toJSON

master
Palash Bansal 11ヶ月前
コミット
9fa02f41a2
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更2行の追加0行の削除
  1. 2
    0
      src/viewer/ThreeViewer.ts

+ 2
- 0
src/viewer/ThreeViewer.ts ファイルの表示

@@ -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,

読み込み中…
キャンセル
保存