Sidebar.Properties.js 778 B

1234567891011121314151617181920212223
  1. import { UITabbedPanel } from './libs/ui.js';
  2. import { SidebarObject } from './Sidebar.Object.js';
  3. import { SidebarGeometry } from './Sidebar.Geometry.js';
  4. import { SidebarMaterial } from './Sidebar.Material.js';
  5. function SidebarProperties( editor ) {
  6. var strings = editor.strings;
  7. var container = new UITabbedPanel();
  8. container.setId( 'properties' );
  9. container.addTab( 'object', strings.getKey( 'sidebar/properties/object' ), new SidebarObject( editor ) );
  10. container.addTab( 'geometry', strings.getKey( 'sidebar/properties/geometry' ), new SidebarGeometry( editor ) );
  11. container.addTab( 'material', strings.getKey( 'sidebar/properties/material' ), new SidebarMaterial( editor ) );
  12. container.select( 'object' );
  13. return container;
  14. }
  15. export { SidebarProperties };