Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(tabbar: TabBar, inspector: Inspector) {
super(tabbar, 'GLTF');
this._inspector = inspector;
this._panel = Helpers.CreateDiv('tab-panel') as HTMLDivElement;
this._actions = Helpers.CreateDiv('gltf-actions', this._panel) as HTMLDivElement;
this._actions.addEventListener('click', event => {
this._closeDetailsPanel();
});
if (SceneLoader && GLTFFileLoader && GLTF2.GLTFLoader) {
this._addImport();
}
if (GLTF2Export) {
this._addExport();
}
}
public static get IsSupported(): boolean {
return !!(SceneLoader && GLTFFileLoader && GLTF2.GLTFLoader) || !!GLTF2Export;
}