tree_sheet_helper.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  1. /**
  2. * Created by Mai on 2017/4/1.
  3. */
  4. var TREE_SHEET_HELPER = {
  5. getObjPos: function (obj) {
  6. let target = obj;
  7. let pos = {x: obj.offsetLeft, y: obj.offsetTop};
  8. target = obj.offsetParent;
  9. while (target) {
  10. pos.x += target.offsetLeft;
  11. pos.y += target.offsetTop;
  12. target = target.offsetParent;
  13. }
  14. return pos;
  15. },
  16. /**
  17. * 初始化setting,需要提示单元格text时,必须先初始化setting
  18. * @param obj
  19. * @param setting
  20. */
  21. /*initSetting: function (obj, setting) {
  22. setting.pos = this.getObjPos(obj);
  23. },*/
  24. initSetting: function (obj, setting) {
  25. setting.pos = this.getObjPos(obj);
  26. },
  27. createNewSpread: function (obj) {
  28. var spread = new GC.Spread.Sheets.Workbook(obj, {sheetCount: 1});
  29. spread.options.tabStripVisible = false;
  30. spread.options.scrollbarMaxAlign = true;
  31. spread.options.cutCopyIndicatorVisible = false;
  32. spread.options.allowCopyPasteExcelStyle = false;
  33. spread.options.allowUserDragDrop = false;
  34. spread.getActiveSheet().setRowCount(3);
  35. return spread;
  36. },
  37. getSheetCellStyle: function (setting) {
  38. var style = new GC.Spread.Sheets.Style();
  39. //style.locked = setting.readOnly ? true : false;
  40. style.name = setting.id;
  41. style.font = setting.data.font;
  42. style.hAlign = setting.data.hAlign;
  43. style.vAlign = setting.data.vAlign;
  44. style.wordWrap = setting.data.wordWrap;
  45. if (setting.data.formatter) {
  46. style.formatter = setting.data.formatter;
  47. }
  48. return style;
  49. },
  50. loadSheetHeader: function (setting, sheet) {
  51. this.massOperationSheet(sheet, function () {
  52. if (setting.frozenCols) {
  53. sheet.frozenColumnCount(setting.frozenCols);
  54. }
  55. sheet.setColumnCount(setting.cols.length);
  56. sheet.setRowCount(setting.headRows, GC.Spread.Sheets.SheetArea.colHeader);
  57. setting.headRowHeight.forEach(function (rowHeight, index) {
  58. sheet.setRowHeight(index, rowHeight, GC.Spread.Sheets.SheetArea.colHeader);
  59. });
  60. setting.cols.forEach(function (col, index) {
  61. var i, iRow = 0, cell;
  62. for (i = 0; i < col.head.spanCols.length; i++) {
  63. if (col.head.spanCols[i] !== 0) {
  64. cell = sheet.getCell(iRow, index, GC.Spread.Sheets.SheetArea.colHeader);
  65. cell.value(col.head.titleNames[i]).font(col.head.font).hAlign(col.head.hAlign[i]).vAlign(col.head.vAlign[i]).wordWrap(true);
  66. }
  67. if (col.head.spanCols[i] > 1 || col.head.spanRows[i] > 1) {
  68. sheet.addSpan(iRow, index, col.head.spanRows[i], col.head.spanCols[i], GC.Spread.Sheets.SheetArea.colHeader);
  69. }
  70. iRow += col.head.spanRows[i];
  71. };
  72. sheet.setColumnWidth(index, col.width);
  73. sheet.setColumnVisible(index, col.visible && true);
  74. });
  75. });
  76. },
  77. protectdSheet: function (sheet) {
  78. var option = {
  79. allowSelectLockedCells: true,
  80. allowSelectUnlockedCells: true,
  81. allowResizeRows: true,
  82. allowResizeColumns: true
  83. };
  84. sheet.options.protectionOptions = option;
  85. sheet.options.isProtected = true;
  86. sheet.options.allowCellOverflow = false;
  87. },
  88. massOperationSheet: function (sheet, Operation) {
  89. sheet.suspendPaint();
  90. sheet.suspendEvent();
  91. Operation();
  92. sheet.resumeEvent();
  93. sheet.resumePaint();
  94. },
  95. refreshNodesVisible: function (nodes, sheet, recursive) {
  96. nodes.forEach(function (node) {
  97. var iRow;
  98. iRow = node.serialNo();
  99. sheet.setRowVisible(iRow, node.visible, GC.Spread.Sheets.SheetArea.viewport);
  100. if (recursive) {
  101. TREE_SHEET_HELPER.refreshNodesVisible(node.children, sheet, recursive);
  102. }
  103. })
  104. },
  105. refreshTreeNodeData: function (setting, sheet, nodes, recursive) {
  106. nodes.forEach(function (node) {
  107. let iRow = node.serialNo();
  108. if(typeof projectObj !== 'undefined'){
  109. let nodeStyle = projectObj.getNodeColorStyle(sheet, node);
  110. if(node.data.bgColour){
  111. nodeStyle.backColor = node.data.bgColour;
  112. }
  113. if(nodeStyle){
  114. sheet.setStyle(iRow, -1, nodeStyle);
  115. }
  116. }
  117. setting.cols.forEach(function (colSetting, iCol) {
  118. var cell = sheet.getCell(iRow, iCol, GC.Spread.Sheets.SheetArea.viewport);
  119. if(typeof projectObj !== 'undefined'){
  120. let boldFontStyle = projectObj.getBoldFontStyle(node, colSetting);
  121. sheet.setStyle(iRow, iCol, boldFontStyle);
  122. }
  123. // var getFieldText = function () {
  124. // var fields = colSetting.data.field.split('.');
  125. // var validField = fields.reduce(function (field1, field2) {
  126. // if (eval('node.data.' + field1)) {
  127. // return field1 + '.' + field2
  128. // } else {
  129. // return field1;
  130. // }
  131. // });
  132. // if (eval('node.data.' + validField)) {
  133. // return eval('node.data.' + validField);
  134. // } else {
  135. // return '';
  136. // }
  137. // };
  138. var getFieldText2 = function () {
  139. var fields = colSetting.data.field.split('.'), iField, data = node.data;
  140. for (iField = 0; iField < fields.length; iField++) {
  141. if (data[fields[iField]] && data[fields[iField]]!='0') {
  142. data = data[fields[iField]];
  143. } else {
  144. return '';
  145. }
  146. }
  147. return data;
  148. };
  149. if(sheet.name()=="mainSheet"){
  150. if(colSetting.data.field=="quantity"){
  151. let tag = node.data.quantityEXP?node.data.quantityEXP:'';
  152. sheet.setTag(iRow, iCol,tag);
  153. }
  154. if(colSetting.data.field=="code"){
  155. let tag = node.data.adjustState?node.data.adjustState:'';
  156. sheet.setTag(iRow, iCol,tag);
  157. }
  158. if(colSetting.data.field=="name"){
  159. let tag = node.data.itemCharacterText?node.data.itemCharacterText:'';
  160. sheet.setTag(iRow, iCol,tag);
  161. }
  162. }
  163. if (colSetting.data.getText && Object.prototype.toString.apply(colSetting.data.getText) === "[object Function]") {
  164. cell.value(colSetting.data.getText(node));
  165. } else {
  166. cell.value(getFieldText2());
  167. }
  168. if (colSetting.data.cellType && Object.prototype.toString.apply(colSetting.data.cellType) !== "[object String]") {
  169. cell.cellType(colSetting.data.cellType(node));
  170. }
  171. if(colSetting.data.autoHeight == true){
  172. colSetting.setAutoHeight(cell,node);
  173. }
  174. if(colSetting.editChecking&&colSetting.editChecking(node)){
  175. cell.locked(true);
  176. }else if (colSetting.readOnly) {
  177. if(typeof projectReadOnly !== 'undefined' && projectReadOnly){
  178. cell.locked(true);
  179. }else {
  180. if (Object.prototype.toString.apply(colSetting.readOnly) === "[object Function]") {
  181. cell.locked(colSetting.readOnly(node));
  182. } else {
  183. cell.locked(true);
  184. }
  185. }
  186. } else {
  187. cell.locked(typeof projectReadOnly !== 'undefined' && projectReadOnly ? true : false);
  188. }
  189. });
  190. if(setting.setAutoFitRow){
  191. setting.setAutoFitRow(sheet,node)
  192. }
  193. if (recursive) {
  194. TREE_SHEET_HELPER.refreshTreeNodeData(setting, sheet, node.children, recursive);
  195. }
  196. });
  197. },
  198. refreshChildrenVisiable:function(sheet,tree,node,row,visiable){
  199. let iCount = node.posterityCount(), i, child;
  200. for (i = 0; i < iCount; i++) {
  201. child = tree.items[row + i +1];
  202. sheet.setRowVisible(row + i + 1, visiable?visiable:child.visible, GC.Spread.Sheets.SheetArea.viewport);
  203. }
  204. sheet.invalidateLayout();
  205. },
  206. showTreeData: function (setting, sheet, tree) {
  207. let indent = 20;
  208. let levelIndent = -5;
  209. let halfBoxLength = 5;
  210. let halfExpandLength = 3;
  211. let TreeNodeCellType = function () {
  212. };
  213. TreeNodeCellType.prototype = new GC.Spread.Sheets.CellTypes.Text();
  214. TreeNodeCellType.prototype.paint = function (ctx, value, x, y, w, h, style, options) {
  215. if (style.backColor) {
  216. ctx.save();
  217. ctx.fillStyle = style.backColor;
  218. ctx.fillRect(x, y, w, h);
  219. ctx.restore();
  220. } else {
  221. ctx.clearRect(x, y, w, h);
  222. }
  223. // ������(x1, y1)���(��, ��), (x2, y2)�յ�(��, ��), ��ɫ
  224. let drawLine = function (canvas, x1, y1, x2, y2, color) {
  225. ctx.save();
  226. // ����ƫ����
  227. ctx.translate(0.5, 0.5);
  228. ctx.beginPath();
  229. ctx.moveTo(x1, y1);
  230. ctx.lineTo(x2, y2);
  231. ctx.strokeStyle = color;
  232. ctx.stroke();
  233. ctx.restore();
  234. };
  235. let drawExpandBox = function (ctx, x, y, w, h, centerX, centerY, expanded) {
  236. let rect = {}, h1, h2, offset = 1;
  237. rect.top = centerY - halfBoxLength;
  238. rect.bottom = centerY + halfBoxLength;
  239. rect.left = centerX - halfBoxLength;
  240. rect.right = centerX + halfBoxLength;
  241. if (rect.left < x + w) {
  242. rect.right = Math.min(rect.right, x + w);
  243. ctx.save();
  244. // ����ƫ����
  245. ctx.translate(0.5, 0.5);
  246. ctx.strokeStyle = 'black';
  247. ctx.beginPath();
  248. ctx.moveTo(rect.left, rect.top);
  249. ctx.lineTo(rect.left, rect.bottom);
  250. ctx.lineTo(rect.right, rect.bottom);
  251. ctx.lineTo(rect.right, rect.top);
  252. ctx.lineTo(rect.left, rect.top);
  253. ctx.stroke();
  254. ctx.fillStyle = 'white';
  255. ctx.fill();
  256. ctx.restore();
  257. // Draw Horizontal Line
  258. h1 = centerX - halfExpandLength;
  259. h2 = Math.min(centerX + halfExpandLength, x + w);
  260. if (h2 > h1) {
  261. drawLine(ctx, h1, centerY, h2, centerY, 'black');
  262. }
  263. // Draw Vertical Line
  264. if (!expanded && (centerX < x + w)) {
  265. drawLine(ctx, centerX, centerY - halfExpandLength, centerX, centerY + halfExpandLength, 'black');
  266. }
  267. }
  268. }
  269. let node = tree.items[options.row];
  270. let showTreeLine = true;
  271. if (!node) { return; }
  272. let centerX = Math.floor(x) + node.depth() * indent + node.depth() * levelIndent + indent / 2;
  273. let x1 = centerX + indent / 2;
  274. let centerY = Math.floor((y + (y + h)) / 2);
  275. let y1;
  276. // Draw Sibling Line
  277. if (showTreeLine) {
  278. // Draw Horizontal Line
  279. if (centerX < x + w) {
  280. drawLine(ctx, centerX, centerY, Math.min(x1, x + w), centerY, 'gray');
  281. }
  282. // Draw Vertical Line
  283. if (centerX < x + w) {
  284. y1 = node.isLast() ? centerY : y + h;
  285. if (node.isFirst() && !node.parent) {
  286. drawLine(ctx, centerX, centerY, centerX, y1, 'gray');
  287. } else {
  288. drawLine(ctx, centerX, y, centerX, y1, 'gray');
  289. }
  290. }
  291. }
  292. // Draw Expand Box
  293. if (node.children.length > 0) {
  294. drawExpandBox(ctx, x, y, w, h, centerX, centerY, node.expanded);
  295. }
  296. // Draw Parent Line
  297. if (showTreeLine) {
  298. var parent = node.parent, parentCenterX = centerX - indent - levelIndent;
  299. while (parent) {
  300. if (!parent.isLast()) {
  301. if (parentCenterX < x + w) {
  302. drawLine(ctx, parentCenterX, y, parentCenterX, y + h, 'gray');
  303. }
  304. }
  305. parent = parent.parent;
  306. parentCenterX -= (indent + levelIndent);
  307. }
  308. };
  309. // Draw Text
  310. x = x + (node.depth() + 1) * indent + node.depth() * levelIndent;
  311. w = w - (node.depth() + 1) * indent - node.depth() * levelIndent;
  312. GC.Spread.Sheets.CellTypes.Text.prototype.paint.apply(this, arguments);
  313. };
  314. TreeNodeCellType.prototype.getHitInfo = function (x, y, cellStyle, cellRect, context) {
  315. return {
  316. x: x,
  317. y: y,
  318. row: context.row,
  319. col: context.col,
  320. cellStyle: cellStyle,
  321. cellRect: cellRect,
  322. sheetArea: context.sheetArea
  323. };
  324. };
  325. TreeNodeCellType.prototype.processMouseDown = function (hitinfo) {
  326. let offset = -1;
  327. let node = tree.items[hitinfo.row];
  328. tree.selected = node;
  329. if (!node || node.children.length === 0) { return; }
  330. let centerX = hitinfo.cellRect.x + offset + node.depth() * indent + node.depth() * levelIndent + indent / 2;
  331. let centerY = (hitinfo.cellRect.y + offset + (hitinfo.cellRect.y + offset + hitinfo.cellRect.height)) / 2;
  332. if (hitinfo.x > centerX - halfBoxLength && hitinfo.x < centerX + halfBoxLength && hitinfo.y > centerY - halfBoxLength && hitinfo.y < centerY + halfBoxLength) {
  333. node.setExpanded(!node.expanded);
  334. let sheetName = hitinfo.sheet.name();
  335. if(sheetName === 'stdBillsLib_bills'){
  336. sessionStorage.setItem('stdBillsLibExpState', billsLibObj.stdBillsTree.getExpState(billsLibObj.stdBillsTree.items));
  337. }
  338. else if(sheetName === 'stdRationLib_chapter'){
  339. sessionStorage.setItem('stdRationLibExpState', rationLibObj.tree.getExpState(rationLibObj.tree.items));
  340. }
  341. else if(sheetName === 'stdBillsGuidance_bills'){
  342. sessionStorage.setItem('stdBillsGuidanceExpState', billsGuidance.bills.tree.getExpState(billsGuidance.bills.tree.items));
  343. }
  344. TREE_SHEET_HELPER.massOperationSheet(hitinfo.sheet, function () {
  345. let iCount = node.posterityCount(), i, child;
  346. for (i = 0; i < iCount; i++) {
  347. child = tree.items[hitinfo.row + i + 1];
  348. hitinfo.sheet.setRowVisible(hitinfo.row + i + 1, child.visible, hitinfo.sheetArea);
  349. //hitinfo.sheet.setRowVisible(hitinfo.row + i + 1, child.vis(), hitinfo.sheetArea);
  350. }
  351. hitinfo.sheet.invalidateLayout();
  352. });
  353. hitinfo.sheet.repaint();
  354. }
  355. };
  356. TreeNodeCellType.prototype.processMouseEnter = function(hitinfo){
  357. let text = hitinfo.sheet.getText(hitinfo.row, hitinfo.col);
  358. let tag = hitinfo.sheet.getTag(hitinfo.row, hitinfo.col);
  359. if(tag){
  360. TREE_SHEET_HELPER.showTipsDiv(tag,setting,hitinfo);
  361. }
  362. };
  363. TreeNodeCellType.prototype.processMouseLeave = function (hitinfo) {
  364. let me = this;
  365. TREE_SHEET_HELPER.tipDiv = 'hide';
  366. if (me._toolTipElement) {
  367. $(me._toolTipElement).hide();
  368. me._toolTipElement = null;
  369. };
  370. TREE_SHEET_HELPER.tipDivCheck();//延时检查:当tips正在show的时候,就调用了hide方法,会导致tips一直存在,所以设置一个超时处理
  371. };
  372. let TipCellType = function () {};
  373. TipCellType.prototype = new GC.Spread.Sheets.CellTypes.Text();
  374. TipCellType.prototype.getHitInfo = function (x, y, cellStyle, cellRect, context) {
  375. return {
  376. x: x,
  377. y: y,
  378. row: context.row,
  379. col: context.col,
  380. cellStyle: cellStyle,
  381. cellRect: cellRect,
  382. sheet: context.sheet,
  383. sheetArea: context.sheetArea
  384. };
  385. };
  386. TipCellType.prototype.processMouseEnter = function (hitinfo) {
  387. let text = hitinfo.sheet.getText(hitinfo.row, hitinfo.col);
  388. let value = hitinfo.sheet.getValue(hitinfo.row, hitinfo.col);
  389. let tag = hitinfo.sheet.getTag(hitinfo.row, hitinfo.col);
  390. let acStyle = hitinfo.sheet.getActualStyle(hitinfo.row, hitinfo.col),
  391. zoom = hitinfo.sheet.zoom();
  392. let textLength = this.getAutoFitWidth(value, text, acStyle, zoom, {sheet: hitinfo.sheet, row: hitinfo.row, col: hitinfo.col, sheetArea: GC.Spread.Sheets.SheetArea.viewport});
  393. let cellWidth = hitinfo.sheet.getCell(-1, hitinfo.col).width();
  394. let dataField = setting.cols[hitinfo.col].data.field;
  395. if(hitinfo.sheet.getCell(hitinfo.row,hitinfo.col).wordWrap()==true){
  396. return;
  397. }
  398. if(dataField === 'itemCharacterText' || dataField === 'jobContentText' || dataField === 'adjustState'){
  399. if((hitinfo.sheet.getParent() === projectObj.mainSpread||hitinfo.sheet.getParent() === tender_obj.tenderSpread) && textLength <= cellWidth)
  400. return;
  401. }
  402. if(hitinfo.sheet.name()=="mainSheet"){
  403. if(dataField=="quantity"){//显示工程量明细
  404. text = tag;
  405. }if(dataField=="name"){//项目特征及内容隐藏时,显示特征及内容
  406. if(projectObj.ifItemCharHiden(setting)&&tag!=''){
  407. text = tag;
  408. }else if(textLength <= cellWidth){
  409. return;
  410. }
  411. }
  412. else if(tag !== undefined && tag) {
  413. text = tag;
  414. }
  415. }
  416. TREE_SHEET_HELPER.showTipsDiv(text,setting,hitinfo);
  417. };
  418. TipCellType.prototype.processMouseLeave = function (hitinfo) {
  419. let me = this;
  420. TREE_SHEET_HELPER.tipDiv = 'hide';
  421. if (me._toolTipElement) {
  422. $(me._toolTipElement).hide();
  423. me._toolTipElement = null;
  424. };
  425. TREE_SHEET_HELPER.tipDivCheck();//延时检查:当tips正在show的时候,就调用了hide方法,会导致tips一直存在,所以设置一个超时处理
  426. }
  427. TREE_SHEET_HELPER.protectdSheet(sheet);
  428. TREE_SHEET_HELPER.massOperationSheet(sheet, function () {
  429. sheet.rowOutlines.direction(GC.Spread.Sheets.Outlines.OutlineDirection.backward);
  430. sheet.showRowOutline(false);
  431. if (setting.defaultRowHeight) {
  432. sheet.defaults.rowHeight = setting.defaultRowHeight;
  433. }
  434. sheet.setRowCount(tree.count() + setting.emptyRows, GC.Spread.Sheets.SheetArea.viewport);
  435. sheet.getRange(tree.count(), -1, setting.emptyRows, -1).locked(true);
  436. setting.cols.forEach(function (colSetting, iCol) {
  437. sheet.setStyle(-1, iCol, TREE_SHEET_HELPER.getSheetCellStyle(colSetting));
  438. if (colSetting.showHint) {
  439. sheet.getRange(-1, iCol, -1, 1).cellType(new TipCellType());
  440. }
  441. if(colSetting.formatter){
  442. sheet.setFormatter(-1, iCol, colSetting.formatter, GC.Spread.Sheets.SheetArea.viewport);
  443. }
  444. });
  445. sheet.getRange(-1, setting.treeCol, -1, 1).cellType(new TreeNodeCellType());
  446. TREE_SHEET_HELPER.refreshTreeNodeData(setting, sheet, tree.roots, true);
  447. TREE_SHEET_HELPER.refreshNodesVisible(tree.roots, sheet, true);
  448. });
  449. },
  450. showTipsDiv:function (text,setting,hitinfo) {
  451. if (setting.pos && text && text !== '') {
  452. if (!this._toolTipElement) {
  453. let div = $('#autoTip')[0];
  454. if (!div) {
  455. div = document.createElement("div");
  456. $(div).css("position", "absolute")
  457. .css("border", "1px #C0C0C0 solid")
  458. .css("box-shadow", "1px 2px 5px rgba(0,0,0,0.4)")
  459. .css("font", "9pt Arial")
  460. .css("background", "white")
  461. .css("padding", 5)
  462. .attr("id", 'autoTip');
  463. $(div).hide();
  464. document.body.insertBefore(div, null);
  465. }
  466. this._toolTipElement = div;
  467. //实时读取位置信息
  468. if(hitinfo.sheet && hitinfo.sheet.getParent().qo){
  469. setting.pos = SheetDataHelper.getObjPos(hitinfo.sheet.getParent().qo);
  470. }
  471. $(this._toolTipElement).text(text);
  472. //清单指引、清单库做特殊处理
  473. if($(hitinfo.sheet.getParent().qo).attr('id') === 'stdBillsSpread' || $(hitinfo.sheet.getParent().qo).attr('id') === 'billsGuidance_bills'){
  474. $(this._toolTipElement).css('top', '').css('left', '').css('width', '');
  475. let marginLeftMouse;
  476. if($(this._toolTipElement).width() < hitinfo.x){
  477. marginLeftMouse = hitinfo.x - $(this._toolTipElement).width();
  478. }
  479. $(this._toolTipElement).css("top", setting.pos.y + hitinfo.y + 15).css("left", marginLeftMouse ? setting.pos.x + marginLeftMouse : setting.pos.x);
  480. }
  481. else {
  482. $(this._toolTipElement).css("top", setting.pos.y + hitinfo.y + 15).css("left", setting.pos.x + hitinfo.x + 15);
  483. }
  484. $(this._toolTipElement).show("fast");
  485. TREE_SHEET_HELPER.tipDiv = 'show';//做个标记
  486. }
  487. }
  488. },
  489. tipDivCheck(){
  490. setTimeout(function () {
  491. let tips = $('#autoTip');
  492. if(TREE_SHEET_HELPER.tipDiv == 'show'){
  493. return;
  494. } else if(TREE_SHEET_HELPER.tipDiv == 'hide'&&tips){
  495. tips.hide();
  496. TREE_SHEET_HELPER._toolTipElement = null;
  497. }
  498. },600)
  499. }
  500. };