Advertisement
yskang

adsk-forge-LevelSectionPanel-step14~16

Apr 29th, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Step 14 inside the class of the LevelSectionPanel
  2. onToolbarCreated() {
  3.     this.viewer.removeEventListener(
  4.         Autodesk.Viewing.TOOLBAR_CREATED_EVENT,
  5.         this.onToolbarCreated
  6.     );
  7.  
  8.     this.createUI();
  9. }
  10.  
  11. // Step 15 Outside the class of the LevelSectionPanel
  12. Autodesk.Viewing.theExtensionManager.registerExtension(
  13.     'Autodesk.ADN.LevelSection',
  14.     LevelSectionPanelExtension
  15. );
  16.  
  17.  
  18. // Step 16 inside panel.css
  19. .adn-docking-panel {
  20.     top: 10px;
  21.     left: 10px;
  22. }
  23.  
  24. .adn-lvl-section-panel .docking-panel-scroll {
  25.     width: 370px;
  26.     height: 112px;
  27.     min-width: 370px;
  28.     max-height: 112px;
  29. }
  30.  
  31. .adn-lvl-section-panel .docking-panel-scroll table {
  32.     width: 100%;
  33.     height: 100%;
  34. }
  35.  
  36. /* ... */
  37.  
  38. .adn-lvl-section-panel table td:first-child {
  39.     width: 30px;
  40.     color: #f3f7fb;
  41. }
  42.  
  43. .adn-lvl-section-panel table td:last-child {
  44.     color: #bec8d2;
  45. }
  46.  
  47. .adn-lvl-section-panel table tr:last-child {
  48.     text-align: center;
  49. }
  50.  
  51. .adn-lvl-section-panel table tr:last-child button {
  52.     width: calc(100% - 50px);
  53.     height: 30px;
  54. }
  55.  
  56. .adn-lvl-selector {
  57.     width: 100%;
  58.     height: 25px;
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement