SelectionInspector.ts 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871
  1. //
  2. // Copyright (c) 2014-2016 THUNDERBEAST GAMES LLC
  3. //
  4. // Permission is hereby granted, free of charge, to any person obtaining a copy
  5. // of this software and associated documentation files (the "Software"), to deal
  6. // in the Software without restriction, including without limitation the rights
  7. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8. // copies of the Software, and to permit persons to whom the Software is
  9. // furnished to do so, subject to the following conditions:
  10. //
  11. // The above copyright notice and this permission notice shall be included in
  12. // all copies or substantial portions of the Software.
  13. //
  14. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  19. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  20. // THE SOFTWARE.
  21. //
  22. import EditorUI = require("../../EditorUI");
  23. import CreateComponentButton = require("./CreateComponentButton");
  24. import ScriptWidget = require("ui/ScriptWidget");
  25. import EditorEvents = require("editor/EditorEvents");
  26. import SerializableEditType = require("./SerializableEditType");
  27. import SelectionSection = require("./SelectionSection");
  28. import SelectionPrefabWidget = require("./SelectionPrefabWidget");
  29. import AttributeInfoEdit = require("./AttributeInfoEdit");
  30. class NodeSection extends SelectionSection {
  31. prefabWidget: SelectionPrefabWidget;
  32. transformEdits: AttributeInfoEdit[] = [];
  33. updateDelta: number = 0.0;
  34. constructor(editType: SerializableEditType) {
  35. super(editType);
  36. this.prefabWidget = new SelectionPrefabWidget();
  37. this.attrLayout.addChild(this.prefabWidget);
  38. this.transformEdits.push(this.attrEdits["Position"]);
  39. this.transformEdits.push(this.attrEdits["Rotation"]);
  40. this.transformEdits.push(this.attrEdits["Scale"]);
  41. this.subscribeToEvent("Update", (ev) => this.handleUpdate(ev));
  42. }
  43. handleUpdate(ev) {
  44. this.updateDelta -= ev.timeStep;
  45. if (this.updateDelta < 0.0) {
  46. this.updateDelta = 0.1;
  47. Atomic.ui.blockChangedEvents = true;
  48. for (var i in this.transformEdits) {
  49. this.transformEdits[i].refresh();
  50. }
  51. Atomic.ui.blockChangedEvents = false;
  52. }
  53. }
  54. }
  55. class ComponentSection extends SelectionSection {
  56. constructor(editType: SerializableEditType, inspector: SelectionInspector) {
  57. super(editType);
  58. var deleteButton = new Atomic.UIButton();
  59. deleteButton.text = "Delete Component";
  60. deleteButton.fontDescription = SelectionSection.fontDesc;
  61. deleteButton.onClick = () => {
  62. inspector.onComponentDelete(editType);
  63. return true;
  64. };
  65. var copyButton = new Atomic.UIButton();
  66. copyButton.text = "Copy Settings";
  67. copyButton.onClick = () => {
  68. inspector.onComponentCopy(editType);
  69. return true;
  70. };
  71. var pasteButton = new Atomic.UIButton();
  72. pasteButton.text = "Paste Settings";
  73. pasteButton.onClick = () => {
  74. inspector.onComponentPaste(editType);
  75. return true;
  76. };
  77. this.attrLayout.addChild(deleteButton);
  78. this.attrLayout.addChild(copyButton);
  79. this.attrLayout.addChild(pasteButton);
  80. }
  81. }
  82. class SceneSection extends SelectionSection {
  83. constructor(editType: SerializableEditType) {
  84. super(editType);
  85. }
  86. }
  87. interface AttributeEditResourceChangedEvent {
  88. attrInfoEdit: AttributeInfoEdit;
  89. resource: Atomic.Resource;
  90. }
  91. class JSComponentSection extends ComponentSection {
  92. constructor(editType: SerializableEditType, inspector: SelectionInspector) {
  93. super(editType, inspector);
  94. this.hasDynamicAttr = true;
  95. this.subscribeToEvent(this, "AttributeEditResourceChanged", (ev) => this.handleAttributeEditResourceChanged(ev));
  96. }
  97. private handleAttributeEditResourceChanged(ev: AttributeEditResourceChangedEvent) {
  98. var jsc = <Atomic.JSComponent>this.editType.getFirstObject();
  99. if (!jsc)
  100. return;
  101. var attrInfos = jsc.getAttributes();
  102. this.updateDynamicAttrInfos(attrInfos);
  103. }
  104. }
  105. class CSComponentSection extends ComponentSection {
  106. constructor(editType: SerializableEditType, inspector: SelectionInspector) {
  107. super(editType, inspector);
  108. this.updateTextFromClassAttr();
  109. this.hasDynamicAttr = true;
  110. this.subscribeToEvent(this, "AttributeEditResourceChanged", (ev) => this.handleAttributeEditResourceChanged(ev));
  111. this.subscribeToEvent("CSComponentAssemblyChanged", (ev) => this.handleCSComponentAssemblyChanged(ev));
  112. }
  113. private handleCSComponentAssemblyChanged(ev) {
  114. var csc = <AtomicNETScript.CSComponent>this.editType.getFirstObject();
  115. if (!csc)
  116. return;
  117. if (csc.assemblyFile == <AtomicNETScript.CSComponentAssembly> ev.resource) {
  118. var attrInfos = csc.getAttributes();
  119. this.updateDynamicAttrInfos(attrInfos);
  120. this.updateTextFromClassAttr();
  121. }
  122. }
  123. private handleAttributeEditResourceChanged(ev: AttributeEditResourceChangedEvent) {
  124. var csc = <AtomicNETScript.CSComponent>this.editType.getFirstObject();
  125. if (!csc)
  126. return;
  127. var attrInfos = csc.getAttributes();
  128. this.updateDynamicAttrInfos(attrInfos);
  129. }
  130. private updateTextFromClassAttr() {
  131. this.text = this.editType.typeName;
  132. var object = this.editType.getFirstObject();
  133. if (object) {
  134. var value = object.getAttribute("Class");
  135. if (value)
  136. this.text = value;
  137. }
  138. }
  139. }
  140. // Node Inspector + Component Inspectors
  141. class SelectionInspector extends ScriptWidget {
  142. component: Atomic.Component;
  143. constructor(sceneEditor: Editor.SceneEditor3D) {
  144. super();
  145. this.sceneEditor = sceneEditor;
  146. var mainLayout = this.mainLayout = new Atomic.UILayout();
  147. mainLayout.spacing = 4;
  148. var lp = new Atomic.UILayoutParams();
  149. lp.width = 304;
  150. mainLayout.layoutDistribution = Atomic.UI_LAYOUT_DISTRIBUTION_GRAVITY;
  151. mainLayout.layoutPosition = Atomic.UI_LAYOUT_POSITION_LEFT_TOP;
  152. mainLayout.layoutParams = lp;
  153. mainLayout.axis = Atomic.UI_AXIS_Y;
  154. this.addChild(mainLayout);
  155. var noticeLayout = this.multipleSelectNotice = new Atomic.UILayout();
  156. noticeLayout.axis = Atomic.UI_AXIS_Y;
  157. noticeLayout.layoutParams = lp;
  158. var noticeText = new Atomic.UITextField();
  159. noticeText.textAlign = Atomic.UI_TEXT_ALIGN_CENTER;
  160. noticeText.skinBg = "InspectorTextAttrName";
  161. noticeText.text = "Multiple Selection - Some components are hidden";
  162. noticeText.fontDescription = SelectionSection.fontDesc;
  163. noticeText.gravity = Atomic.UI_GRAVITY_LEFT_RIGHT;
  164. noticeText.layoutParams = lp;
  165. noticeLayout.addChild(noticeText);
  166. noticeLayout.visibility = Atomic.UI_WIDGET_VISIBILITY_GONE;
  167. mainLayout.addChild(noticeLayout);
  168. this.createComponentButton = new CreateComponentButton();
  169. mainLayout.addChild(this.createComponentButton);
  170. this.subscribeToEvent(sceneEditor.scene, "SceneEditStateChangesBegin", (data) => this.handleSceneEditStateChangesBeginEvent());
  171. this.subscribeToEvent("SceneEditStateChange", (data) => this.handleSceneEditStateChangeEvent(data));
  172. this.subscribeToEvent(sceneEditor.scene, "SceneEditStateChangesEnd", (data) => this.handleSceneEditStateChangesEndEvent());
  173. this.subscribeToEvent(sceneEditor.scene, "SceneEditNodeRemoved", (ev: Editor.SceneEditNodeRemovedEvent) => this.handleSceneEditNodeRemoved(ev));
  174. this.subscribeToEvent(sceneEditor.scene, "SceneEditComponentAddedRemoved", (ev) => this.handleSceneEditComponentAddedRemovedEvent(ev));
  175. this.subscribeToEvent(this.createComponentButton, "SelectionCreateComponent", (data) => this.handleSelectionCreateComponent(data));
  176. }
  177. pruneSections() {
  178. var remove: SelectionSection[] = [];
  179. for (var i in this.sections) {
  180. var section = this.sections[i];
  181. var editType = section.editType;
  182. if (editType.typeName == "Node") {
  183. continue;
  184. }
  185. if (editType.typeName == "Scene") {
  186. var gotone = false;
  187. for (var j in this.nodes) {
  188. if (this.nodes[j].typeName == "Scene") {
  189. gotone = true;
  190. break;
  191. }
  192. }
  193. if (gotone)
  194. continue;
  195. }
  196. if (!editType.nodes.length) {
  197. remove.push(section);
  198. }
  199. }
  200. if (remove.length) {
  201. for (var i in remove) {
  202. var section = remove[i];
  203. this.removeSection(section);
  204. }
  205. this.suppressSections();
  206. }
  207. }
  208. suppressSections() {
  209. this.multipleSelectNotice.visibility = Atomic.UI_WIDGET_VISIBILITY_GONE;
  210. for (var i in this.sections) {
  211. var section = this.sections[i];
  212. var editType = section.editType;
  213. if (editType.typeName == "Node" || editType.typeName == "Scene") {
  214. continue;
  215. }
  216. var suppressed = false;
  217. for (var j in this.nodes) {
  218. if (editType.nodes.indexOf(this.nodes[j]) == -1) {
  219. suppressed = true;
  220. break;
  221. }
  222. }
  223. if (suppressed)
  224. this.multipleSelectNotice.visibility = Atomic.UI_WIDGET_VISIBILITY_VISIBLE;
  225. section.suppress(suppressed);
  226. }
  227. }
  228. refresh() {
  229. Atomic.ui.blockChangedEvents = true;
  230. this.pruneSections();
  231. this.suppressSections();
  232. for (var i in this.sections) {
  233. this.sections[i].refresh();
  234. }
  235. if (this.nodeSection) {
  236. this.nodeSection.prefabWidget.updateSelection(this.nodes);
  237. }
  238. Atomic.ui.blockChangedEvents = false;
  239. }
  240. addSection(editType: SerializableEditType) {
  241. var section: SelectionSection;
  242. if (editType.typeName == "Node") {
  243. this.nodeSection = new NodeSection(editType);
  244. section = this.nodeSection;
  245. } else if (editType.typeName == "Scene") {
  246. section = new SceneSection(editType);
  247. } else if (editType.typeName == "JSComponent") {
  248. section = new JSComponentSection(editType, this);
  249. } else if (editType.typeName == "CSComponent") {
  250. section = new CSComponentSection(editType, this);
  251. }
  252. else {
  253. section = new ComponentSection(editType, this);
  254. }
  255. section.value = SelectionInspector.sectionStates[editType.typeName] ? 1 : 0;
  256. this.mainLayout.removeChild(this.createComponentButton, false);
  257. this.mainLayout.removeChild(this.multipleSelectNotice, false);
  258. // sort it in alphabetically
  259. this.sections.push(section);
  260. this.sections.sort(function(a, b) {
  261. if (a.editType.typeName == "Node" && b.editType.typeName == "Scene")
  262. return -1;
  263. if (a.editType.typeName == "Scene" && b.editType.typeName == "Node")
  264. return 1;
  265. if (a.editType.typeName == "Node" || a.editType.typeName == "Scene")
  266. return -1;
  267. if (b.editType.typeName == "Node" || b.editType.typeName == "Scene")
  268. return 1;
  269. return a.editType.typeName.localeCompare(b.editType.typeName);
  270. });
  271. var idx = this.sections.indexOf(section);
  272. if (idx == 0) {
  273. if (this.sections.length == 1) {
  274. this.mainLayout.addChild(section);
  275. } else {
  276. this.mainLayout.addChildBefore(section, this.sections[1]);
  277. }
  278. }
  279. else if (idx == this.sections.length - 1) {
  280. this.mainLayout.addChild(section);
  281. }
  282. else {
  283. this.mainLayout.addChildAfter(section, this.sections[idx - 1]);
  284. }
  285. // move the create component button down
  286. this.mainLayout.addChild(this.multipleSelectNotice);
  287. this.mainLayout.addChild(this.createComponentButton);
  288. }
  289. removeSection(section: SelectionSection) {
  290. SelectionInspector.sectionStates[section.editType.typeName] = section.value ? true : false;
  291. var index = this.sections.indexOf(section);
  292. this.sections.splice(index, 1);
  293. this.mainLayout.removeChild(section);
  294. }
  295. removeSerializable(serial: Atomic.Serializable) {
  296. for (var i in this.sections) {
  297. var section = this.sections[i];
  298. var e = section.editType;
  299. var index = e.objects.indexOf(serial);
  300. if (index != -1) {
  301. e.objects.splice(index, 1);
  302. }
  303. if (serial.typeName == "Node") {
  304. index = e.nodes.indexOf(<Atomic.Node>serial);
  305. if (index != -1) {
  306. e.nodes.splice(index, 1);
  307. }
  308. }
  309. }
  310. }
  311. addSerializable(serial: Atomic.Serializable): SerializableEditType {
  312. var editType = this.getEditType(serial);
  313. // does it already exist?
  314. for (var i in this.sections) {
  315. var section = this.sections[i];
  316. var e = section.editType;
  317. if (e.compareTypes(editType, this.nodes.length > 1)) {
  318. e.addSerializable(serial);
  319. return e;
  320. }
  321. }
  322. this.addSection(editType);
  323. return editType;
  324. }
  325. getEditType(serial: Atomic.Serializable): SerializableEditType {
  326. var typeName = serial.typeName;
  327. if (SelectionInspector._editTypes[typeName]) {
  328. return new SelectionInspector._editTypes[typeName](serial);
  329. }
  330. return new SerializableEditType(serial);
  331. }
  332. addNode(node: Atomic.Node) {
  333. var index = this.nodes.indexOf(node);
  334. if (index == -1) {
  335. this.nodes.push(node);
  336. this.addSerializable(node);
  337. var components = node.getComponents();
  338. for (var i in components) {
  339. if (this.filterComponent(components[i]))
  340. continue;
  341. var editType = this.addSerializable(components[i]);
  342. editType.addNode(node);
  343. }
  344. this.refresh();
  345. }
  346. }
  347. removeNode(node: Atomic.Node) {
  348. var index = this.nodes.indexOf(node);
  349. if (index != -1) {
  350. this.nodes.splice(index, 1);
  351. this.removeSerializable(node);
  352. var components = node.getComponents();
  353. for (var i in components) {
  354. if (this.filterComponent(components[i]))
  355. continue;
  356. this.removeSerializable(components[i]);
  357. }
  358. this.refresh();
  359. }
  360. // save node section state
  361. if (!this.nodes.length && this.nodeSection)
  362. SelectionInspector.sectionStates["Node"] = this.nodeSection.value ? true : false;
  363. }
  364. handleSceneEditStateChangesBeginEvent() {
  365. this.stateChangesInProgress = true;
  366. }
  367. handleSceneEditNodeRemoved(ev: Editor.SceneEditNodeRemovedEvent) {
  368. this.removeNode(ev.node);
  369. }
  370. handleSceneEditComponentAddedRemovedEvent(ev: Editor.SceneEditComponentAddedRemovedEvent) {
  371. if (this.filterComponent(ev.component)) {
  372. // still refresh as may affect UI (for example PrefabComponents)
  373. this.refresh();
  374. return;
  375. }
  376. var editType;
  377. if (!ev.removed) {
  378. editType = this.addSerializable(ev.component);
  379. editType.addNode(ev.node);
  380. } else {
  381. for (var i in this.sections) {
  382. var section = this.sections[i];
  383. editType = section.editType;
  384. var index = editType.objects.indexOf(ev.component);
  385. if (index != -1) {
  386. editType.objects.splice(index, 1);
  387. index = editType.nodes.indexOf(ev.node);
  388. if (index != -1) {
  389. editType.nodes.splice(index, 1);
  390. }
  391. break;
  392. }
  393. }
  394. }
  395. this.refresh();
  396. }
  397. onComponentDelete(editType: SerializableEditType) {
  398. var removed: Atomic.Component[] = [];
  399. for (var i in editType.objects) {
  400. var c = <Atomic.Component>editType.objects[i];
  401. removed.push(c);
  402. }
  403. for (var i in removed) {
  404. var c = removed[i];
  405. var node = c.node;
  406. c.remove();
  407. this.removeSerializable(removed[i]);
  408. var index = editType.nodes.indexOf(node);
  409. if (index != -1) {
  410. editType.nodes.splice(index, 1);
  411. }
  412. }
  413. if (removed.length) {
  414. this.sceneEditor.scene.sendEvent("SceneEditEnd");
  415. this.refresh();
  416. }
  417. }
  418. onComponentCopy(editType: SerializableEditType) {
  419. var copy: Atomic.Component[] = [];
  420. for (var i in editType.objects) {
  421. var c = <Atomic.Component>editType.objects[i];
  422. copy.push(c);
  423. }
  424. for (var i in copy) {
  425. var c = copy[i];
  426. this.component = c;
  427. this.sceneEditor.scene.sendEvent("SceneEditComponentCopy", { component: this.component });
  428. this.refresh();
  429. }
  430. }
  431. onComponentPaste(editType: SerializableEditType) {
  432. var paste: Atomic.Component[] = [];
  433. for (var i in editType.objects) {
  434. var c = <Atomic.Component>editType.objects[i];
  435. paste.push(c);
  436. }
  437. for (var i in paste) {
  438. var c = paste[i];
  439. this.component = c;
  440. this.sceneEditor.scene.sendEvent("SceneEditComponentPaste", { component: this.component });
  441. this.refresh();
  442. }
  443. }
  444. handleSelectionCreateComponent(ev) {
  445. var valid = true;
  446. if (ev.componentTypeName != "JSComponent" && ev.componentTypeName != "CSComponent") {
  447. for (var i in this.nodes) {
  448. var node = this.nodes[i];
  449. if (node.getComponent(ev.componentTypeName, false)) {
  450. valid = false;
  451. break;
  452. }
  453. }
  454. }
  455. if (!valid) {
  456. EditorUI.showModalError("Component Create", "Unable to create component, a node with an existing " + ev.componentTypeName + " component is selected");
  457. return;
  458. }
  459. for (var i in this.nodes) {
  460. var node = this.nodes[i];
  461. var c = node.createComponent(ev.componentTypeName);
  462. if (!c) {
  463. console.log("ERROR: unable to create component ", ev.componentTypeName);
  464. return;
  465. }
  466. var editType = this.addSerializable(c);
  467. editType.addNode(node);
  468. for (var i in this.sections) {
  469. if (this.sections[i].editType == editType) {
  470. this.sections[i].value = 1;
  471. break;
  472. }
  473. }
  474. }
  475. this.refresh();
  476. }
  477. handleSceneEditStateChangeEvent(ev: Editor.SceneEditStateChangeEvent) {
  478. if (!this.stateChangesInProgress)
  479. return;
  480. if (this.stateChanges.indexOf(ev.serializable) == -1) {
  481. this.stateChanges.push(ev.serializable);
  482. }
  483. }
  484. getPrefabComponent(node: Atomic.Node): Atomic.PrefabComponent {
  485. if (node.getComponent("PrefabComponent"))
  486. return <Atomic.PrefabComponent>node.getComponent("PrefabComponent");
  487. if (node.parent)
  488. return this.getPrefabComponent(node.parent);
  489. return null;
  490. }
  491. filterComponent(component: Atomic.Component): boolean {
  492. if (component.typeName == "PrefabComponent") {
  493. return true;
  494. }
  495. return false;
  496. }
  497. handleSceneEditStateChangesEndEvent() {
  498. Atomic.ui.blockChangedEvents = true;
  499. var sections: SelectionSection[] = [];
  500. for (var i in this.stateChanges) {
  501. var serial = this.stateChanges[i];
  502. for (var j in this.sections) {
  503. var section = this.sections[j];
  504. if (sections.indexOf(section) != -1)
  505. continue;
  506. if (section.editType.objects.indexOf(serial) != -1) {
  507. sections.push(section);
  508. if (section.hasDynamicAttr) {
  509. var object = section.editType.getFirstObject();
  510. if (object) {
  511. var attrInfos = object.getAttributes();
  512. section.updateDynamicAttrInfos(attrInfos);
  513. }
  514. }
  515. section.refresh();
  516. }
  517. }
  518. }
  519. Atomic.ui.blockChangedEvents = false;
  520. this.stateChanges = [];
  521. this.stateChangesInProgress = false;
  522. }
  523. mainLayout: Atomic.UILayout;
  524. multipleSelectNotice: Atomic.UILayout;
  525. sceneEditor: Editor.SceneEditor3D;
  526. nodes: Atomic.Node[] = [];
  527. sections: SelectionSection[] = [];
  528. createComponentButton: CreateComponentButton;
  529. nodeSection: NodeSection;
  530. stateChangesInProgress: boolean = false;
  531. stateChanges: Atomic.Serializable[] = [];
  532. // ------------------------------------
  533. static registerEditType(typeName: string, type: typeof SerializableEditType) {
  534. SelectionInspector._editTypes[typeName] = type;
  535. }
  536. private static sectionStates: { [typeName: string]: boolean } = {};
  537. private static _editTypes: { [typeName: string]: typeof SerializableEditType } = {};
  538. private static Ctor = (() => {
  539. SelectionInspector.sectionStates["Node"] = true;
  540. })();
  541. }
  542. export = SelectionInspector;