Sidebar.Properties.js 834 B

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