@leankylin-sheet/react 3.1.13 → 3.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defaultContext, defaultSettings, getSheetIndex, colLocationByIndex, fixPositionOnFrozenCells, colLocation, getFlowdata, isAllowEdit, handleColumnHeaderMouseDown, handleColSizeHandleMouseDown, handleColFreezeHandleMouseDown, handleContextMenu, selectTitlesMap, selectTitlesRange, fixColumnStyleOverflowInFreeze, rowLocationByIndex, rowLocation, handleRowHeaderMouseDown, handleRowSizeHandleMouseDown, handleRowFreezeHandleMouseDown, fixRowStyleOverflowInFreeze, functionHTMLGenerate, locale, getStyleByCell, getCellValue, createRangeHightlight, isInlineStringCell, getInlineStringHTML, valueShowEs, escapeHTMLTag, escapeScriptTag, moveToEnd, isShowHidenCR, cancelNormalSelected, moveHighlightCell, updateCell, israngeseleciton, handleFormulaInput, onSearchDialogMoveStart, replaceAll, replace, searchAll, searchNext, normalizeSelection, scrollToHighlightCell, isLinkValid, getRangetxt, goToLink, replaceHtml, removeHyperlink, onRangeSelectionModalMoveStart, saveHyperlink, createFilterOptions, onImageMoveStart, onImageResizeStart, showComments, setEditingComment, onCommentBoxMoveStart, onCommentBoxResizeStart, confirmMessage, getRangeByTxt, getDropdownList, setCellValue, setConditionRules, mergeBorder, setDropcownValue, handleCellAreaMouseDown, handleCellAreaMouseMove, handleCellAreaDragOver, handleCellDrop, handleCellAreaDoubleClick, selectAll, showLinkCard, getCellRowColumn, getCellHyperlink, handleOverlayMouseMove, handleOverlayMouseUp, handleKeydownForZoom, handleOverlayTouchStart, handleOverlayTouchMove, handleOverlayTouchEnd, drawArrow, onCellsMoveStart, createDropCellRange, updateContextWithSheetData, updateContextWithCanvas, initFreeze, Canvas, handleGlobalWheel, setCaretPosition, getDataArr, updateMoreCell, getRegStr, getOptionValue, getSelectRange, applyLocation, updateItem, update, normalizedCellAttr, updateFormat, handleTextSize, handleHorizontalAlign, handleVerticalAlign, handleScreenShot, showImgChooser, insertImage, editComment, deleteComment, showHideComment, showHideAllComments, newComment, handleSum, autoSelectionFormula, handleMerge, handleBorder, handleFreeze, handleSort, createFilter, clearFilter, toolbarItemSelectedFunc, toolbarItemClickHandler, handleTextColor, handleTextBackground, getDataBySelectionNoCopy, getInlineStringNoStyle, rangeHightlightselected, editSheetName, cancelActiveImgItem, MAX_ZOOM_RATIO, MIN_ZOOM_RATIO, addSheet, indexToColumnChar, sortSelection, handleCopy, insertRowCol, deleteRowCol, hideSelected, showSelected, api, removeActiveImage, deleteSelectedCellText, jfrefreshgrid, handleLink, deleteSheet, opToPatch, orderbydatafiler, getFilterColumnValues, getFilterColumnColors, saveFilter, patchToOp, filterPatch, inverseRowColOptions, ensureSheetIndex, initSheetIndex, handleGlobalKeyDown, handlePasteByLeanklin, groupValuesRefresh } from '@leankylin-sheet/core';
1
+ import { defaultContext, defaultSettings, getSheetIndex, colLocationByIndex, fixPositionOnFrozenCells, colLocation, getFlowdata, isAllowEdit, handleColumnHeaderMouseDown, handleColSizeHandleMouseDown, handleColFreezeHandleMouseDown, handleContextMenu, selectTitlesMap, selectTitlesRange, fixColumnStyleOverflowInFreeze, rowLocationByIndex, rowLocation, handleRowHeaderMouseDown, handleRowSizeHandleMouseDown, handleRowFreezeHandleMouseDown, fixRowStyleOverflowInFreeze, functionHTMLGenerate, locale, getStyleByCell, getCellValue, createRangeHightlight, isInlineStringCell, getInlineStringHTML, valueShowEs, escapeHTMLTag, escapeScriptTag, moveToEnd, isShowHidenCR, cancelNormalSelected, moveHighlightCell, updateCell, israngeseleciton, handleFormulaInput, onSearchDialogMoveStart, replaceAll, replace, searchAll, searchNext, normalizeSelection, scrollToHighlightCell, isLinkValid, getRangetxt, goToLink, replaceHtml, removeHyperlink, onRangeSelectionModalMoveStart, saveHyperlink, createFilterOptions, onImageMoveStart, onImageResizeStart, showComments, setEditingComment, onCommentBoxMoveStart, onCommentBoxResizeStart, confirmMessage, getRangeByTxt, getDropdownList, setCellValue, setConditionRules, mergeBorder, setDropcownValue, handleCellAreaMouseDown, handleCellAreaMouseMove, handleCellAreaDragOver, handleCellDrop, handleCellAreaDoubleClick, selectAll, showLinkCard, getCellRowColumn, getCellHyperlink, handleOverlayMouseMove, handleOverlayMouseUp, handleKeydownForZoom, handleOverlayTouchStart, handleOverlayTouchMove, handleOverlayTouchEnd, onCellsMoveStart, createDropCellRange, updateContextWithSheetData, updateContextWithCanvas, initFreeze, Canvas, handleGlobalWheel, setCaretPosition, getDataArr, updateMoreCell, getRegStr, getOptionValue, getSelectRange, applyLocation, updateItem, update, normalizedCellAttr, updateFormat, handleTextSize, handleHorizontalAlign, handleVerticalAlign, handleScreenShot, showImgChooser, insertImage, editComment, deleteComment, showHideComment, showHideAllComments, newComment, handleSum, autoSelectionFormula, handleMerge, handleBorder, handleFreeze, handleSort, createFilter, clearFilter, toolbarItemSelectedFunc, toolbarItemClickHandler, handleTextColor, handleTextBackground, getDataBySelectionNoCopy, getInlineStringNoStyle, rangeHightlightselected, editSheetName, cancelActiveImgItem, MAX_ZOOM_RATIO, MIN_ZOOM_RATIO, addSheet, indexToColumnChar, sortSelection, handleCopy, insertRowCol, deleteRowCol, hideSelected, showSelected, api, removeActiveImage, deleteSelectedCellText, jfrefreshgrid, handleLink, deleteSheet, opToPatch, orderbydatafiler, getFilterColumnValues, getFilterColumnColors, saveFilter, patchToOp, filterPatch, inverseRowColOptions, ensureSheetIndex, initSheetIndex, handleGlobalKeyDown, handlePasteByLeanklin, groupValuesRefresh } from '@leankylin-sheet/core';
2
2
  import React, { useContext, useRef, useState, useMemo, useCallback, useEffect, useLayoutEffect, useImperativeHandle } from 'react';
3
3
  import produce, { applyPatches, enablePatches, produceWithPatches } from 'immer';
4
4
  import _ from 'lodash';
@@ -2056,12 +2056,13 @@ var ImgBoxs = function ImgBoxs() {
2056
2056
  };
2057
2057
 
2058
2058
  var NotationBoxes = function NotationBoxes() {
2059
- var _context$commentBoxes;
2059
+ var _context$visibledatac, _context$commentBoxes;
2060
2060
  var _useContext = useContext(WorkbookContext),
2061
2061
  context = _useContext.context,
2062
2062
  setContext = _useContext.setContext,
2063
2063
  refs = _useContext.refs;
2064
2064
  var flowdata = getFlowdata(context);
2065
+ var length = (_context$visibledatac = context.visibledatacolumn) === null || _context$visibledatac === void 0 ? void 0 : _context$visibledatac.length;
2065
2066
  useEffect(function () {
2066
2067
  if (flowdata) {
2067
2068
  var psShownCells = [];
@@ -2082,7 +2083,7 @@ var NotationBoxes = function NotationBoxes() {
2082
2083
  return showComments(ctx, psShownCells);
2083
2084
  });
2084
2085
  }
2085
- }, [flowdata, setContext]);
2086
+ }, [flowdata, setContext, length]);
2086
2087
  return /*#__PURE__*/React.createElement("div", {
2087
2088
  id: "luckysheet-postil-showBoxs"
2088
2089
  }, _.concat((_context$commentBoxes = context.commentBoxes) === null || _context$commentBoxes === void 0 ? void 0 : _context$commentBoxes.filter(function (v) {
@@ -2105,19 +2106,36 @@ var NotationBoxes = function NotationBoxes() {
2105
2106
  var commentId = "comment-box-".concat(rc);
2106
2107
  return /*#__PURE__*/React.createElement("div", {
2107
2108
  key: rc
2108
- }, /*#__PURE__*/React.createElement("canvas", {
2109
- id: "arrowCanvas-".concat(rc),
2110
- className: "arrowCanvas",
2111
- width: size.width,
2112
- height: size.height,
2109
+ }, /*#__PURE__*/React.createElement("svg", {
2110
+ xmlns: "http://www.w3.org/2000/svg",
2113
2111
  style: {
2114
2112
  position: "absolute",
2115
2113
  left: size.left,
2116
2114
  top: size.top,
2115
+ width: size.width,
2116
+ height: size.height,
2117
2117
  zIndex: 100,
2118
2118
  pointerEvents: "none"
2119
2119
  }
2120
- }), /*#__PURE__*/React.createElement("div", {
2120
+ }, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("marker", {
2121
+ id: "arrowhead",
2122
+ markerWidth: "10",
2123
+ markerHeight: "7",
2124
+ refX: "9",
2125
+ refY: "3.5",
2126
+ orient: "auto"
2127
+ }, /*#__PURE__*/React.createElement("polygon", {
2128
+ points: "0 0, 10 3.5, 0 7",
2129
+ fill: "#333"
2130
+ }))), /*#__PURE__*/React.createElement("line", {
2131
+ x1: size.fromX,
2132
+ y1: size.fromY,
2133
+ x2: size.toX,
2134
+ y2: size.toY,
2135
+ stroke: "#333",
2136
+ strokeWidth: "1",
2137
+ markerEnd: "url(#arrowhead)"
2138
+ })), /*#__PURE__*/React.createElement("div", {
2121
2139
  id: commentId,
2122
2140
  className: "luckysheet-postil-show-main",
2123
2141
  style: {
@@ -3399,19 +3417,6 @@ var SheetOverlay = function SheetOverlay() {
3399
3417
  refs.cellArea.current.scrollLeft = context.scrollLeft;
3400
3418
  refs.cellArea.current.scrollTop = context.scrollTop;
3401
3419
  }, [context.scrollLeft, context.scrollTop, refs.cellArea, (_refs$cellArea$curren = refs.cellArea.current) === null || _refs$cellArea$curren === void 0 ? void 0 : _refs$cellArea$curren.scrollLeft, (_refs$cellArea$curren2 = refs.cellArea.current) === null || _refs$cellArea$curren2 === void 0 ? void 0 : _refs$cellArea$curren2.scrollTop]);
3402
- useLayoutEffect(function () {
3403
- if (context.commentBoxes || context.hoveredCommentBox || context.editingCommentBox) {
3404
- var _context$commentBoxes;
3405
- _.concat((_context$commentBoxes = context.commentBoxes) === null || _context$commentBoxes === void 0 ? void 0 : _context$commentBoxes.filter(function (v) {
3406
- var _context$editingComme;
3407
- return v.rc !== ((_context$editingComme = context.editingCommentBox) === null || _context$editingComme === void 0 ? void 0 : _context$editingComme.rc);
3408
- }), [context.hoveredCommentBox, context.editingCommentBox]).forEach(function (box) {
3409
- if (box) {
3410
- drawArrow(box.rc, box.size);
3411
- }
3412
- });
3413
- }
3414
- }, [context.commentBoxes, context.hoveredCommentBox, context.editingCommentBox]);
3415
3420
  useEffect(function () {
3416
3421
  document.addEventListener("mousemove", onMouseMove);
3417
3422
  return function () {
package/dist/index.js CHANGED
@@ -2066,12 +2066,13 @@ var ImgBoxs = function ImgBoxs() {
2066
2066
  };
2067
2067
 
2068
2068
  var NotationBoxes = function NotationBoxes() {
2069
- var _context$commentBoxes;
2069
+ var _context$visibledatac, _context$commentBoxes;
2070
2070
  var _useContext = React.useContext(WorkbookContext),
2071
2071
  context = _useContext.context,
2072
2072
  setContext = _useContext.setContext,
2073
2073
  refs = _useContext.refs;
2074
2074
  var flowdata = core.getFlowdata(context);
2075
+ var length = (_context$visibledatac = context.visibledatacolumn) === null || _context$visibledatac === void 0 ? void 0 : _context$visibledatac.length;
2075
2076
  React.useEffect(function () {
2076
2077
  if (flowdata) {
2077
2078
  var psShownCells = [];
@@ -2092,7 +2093,7 @@ var NotationBoxes = function NotationBoxes() {
2092
2093
  return core.showComments(ctx, psShownCells);
2093
2094
  });
2094
2095
  }
2095
- }, [flowdata, setContext]);
2096
+ }, [flowdata, setContext, length]);
2096
2097
  return /*#__PURE__*/React__default['default'].createElement("div", {
2097
2098
  id: "luckysheet-postil-showBoxs"
2098
2099
  }, ___default['default'].concat((_context$commentBoxes = context.commentBoxes) === null || _context$commentBoxes === void 0 ? void 0 : _context$commentBoxes.filter(function (v) {
@@ -2115,19 +2116,36 @@ var NotationBoxes = function NotationBoxes() {
2115
2116
  var commentId = "comment-box-".concat(rc);
2116
2117
  return /*#__PURE__*/React__default['default'].createElement("div", {
2117
2118
  key: rc
2118
- }, /*#__PURE__*/React__default['default'].createElement("canvas", {
2119
- id: "arrowCanvas-".concat(rc),
2120
- className: "arrowCanvas",
2121
- width: size.width,
2122
- height: size.height,
2119
+ }, /*#__PURE__*/React__default['default'].createElement("svg", {
2120
+ xmlns: "http://www.w3.org/2000/svg",
2123
2121
  style: {
2124
2122
  position: "absolute",
2125
2123
  left: size.left,
2126
2124
  top: size.top,
2125
+ width: size.width,
2126
+ height: size.height,
2127
2127
  zIndex: 100,
2128
2128
  pointerEvents: "none"
2129
2129
  }
2130
- }), /*#__PURE__*/React__default['default'].createElement("div", {
2130
+ }, /*#__PURE__*/React__default['default'].createElement("defs", null, /*#__PURE__*/React__default['default'].createElement("marker", {
2131
+ id: "arrowhead",
2132
+ markerWidth: "10",
2133
+ markerHeight: "7",
2134
+ refX: "9",
2135
+ refY: "3.5",
2136
+ orient: "auto"
2137
+ }, /*#__PURE__*/React__default['default'].createElement("polygon", {
2138
+ points: "0 0, 10 3.5, 0 7",
2139
+ fill: "#333"
2140
+ }))), /*#__PURE__*/React__default['default'].createElement("line", {
2141
+ x1: size.fromX,
2142
+ y1: size.fromY,
2143
+ x2: size.toX,
2144
+ y2: size.toY,
2145
+ stroke: "#333",
2146
+ strokeWidth: "1",
2147
+ markerEnd: "url(#arrowhead)"
2148
+ })), /*#__PURE__*/React__default['default'].createElement("div", {
2131
2149
  id: commentId,
2132
2150
  className: "luckysheet-postil-show-main",
2133
2151
  style: {
@@ -3409,19 +3427,6 @@ var SheetOverlay = function SheetOverlay() {
3409
3427
  refs.cellArea.current.scrollLeft = context.scrollLeft;
3410
3428
  refs.cellArea.current.scrollTop = context.scrollTop;
3411
3429
  }, [context.scrollLeft, context.scrollTop, refs.cellArea, (_refs$cellArea$curren = refs.cellArea.current) === null || _refs$cellArea$curren === void 0 ? void 0 : _refs$cellArea$curren.scrollLeft, (_refs$cellArea$curren2 = refs.cellArea.current) === null || _refs$cellArea$curren2 === void 0 ? void 0 : _refs$cellArea$curren2.scrollTop]);
3412
- React.useLayoutEffect(function () {
3413
- if (context.commentBoxes || context.hoveredCommentBox || context.editingCommentBox) {
3414
- var _context$commentBoxes;
3415
- ___default['default'].concat((_context$commentBoxes = context.commentBoxes) === null || _context$commentBoxes === void 0 ? void 0 : _context$commentBoxes.filter(function (v) {
3416
- var _context$editingComme;
3417
- return v.rc !== ((_context$editingComme = context.editingCommentBox) === null || _context$editingComme === void 0 ? void 0 : _context$editingComme.rc);
3418
- }), [context.hoveredCommentBox, context.editingCommentBox]).forEach(function (box) {
3419
- if (box) {
3420
- core.drawArrow(box.rc, box.size);
3421
- }
3422
- });
3423
- }
3424
- }, [context.commentBoxes, context.hoveredCommentBox, context.editingCommentBox]);
3425
3430
  React.useEffect(function () {
3426
3431
  document.addEventListener("mousemove", onMouseMove);
3427
3432
  return function () {
package/dist/index.umd.js CHANGED
@@ -92908,60 +92908,6 @@
92908
92908
  toY: y2
92909
92909
  };
92910
92910
  }
92911
- function drawArrow(rc, _ref, color, theta, headlen) {
92912
- var left = _ref.left,
92913
- top = _ref.top,
92914
- width = _ref.width,
92915
- height = _ref.height,
92916
- fromX = _ref.fromX,
92917
- fromY = _ref.fromY,
92918
- toX = _ref.toX,
92919
- toY = _ref.toY;
92920
- var canvas = document.getElementById("arrowCanvas-".concat(rc));
92921
- var ctx = canvas.getContext("2d");
92922
- if (!canvas || !ctx) return;
92923
- canvas.style.width = "".concat(width, "px");
92924
- canvas.style.height = "".concat(height, "px");
92925
- canvas.width = width;
92926
- canvas.height = height;
92927
- canvas.style.left = "".concat(left, "px");
92928
- canvas.style.top = "".concat(top, "px");
92929
- var _canvas$getBoundingCl = canvas.getBoundingClientRect(),
92930
- canvasWidth = _canvas$getBoundingCl.width,
92931
- canvasHeight = _canvas$getBoundingCl.height;
92932
- ctx.clearRect(0, 0, canvasWidth, canvasHeight);
92933
- theta = theta || 30;
92934
- headlen = headlen || 6;
92935
- var arrowWidth = 1;
92936
- color = color || "#000";
92937
- var angle = Math.atan2(fromY - toY, fromX - toX) * 180 / Math.PI;
92938
- var angle1 = (angle + theta) * Math.PI / 180;
92939
- var angle2 = (angle - theta) * Math.PI / 180;
92940
- var topX = headlen * Math.cos(angle1);
92941
- var topY = headlen * Math.sin(angle1);
92942
- var botX = headlen * Math.cos(angle2);
92943
- var botY = headlen * Math.sin(angle2);
92944
- ctx.save();
92945
- ctx.beginPath();
92946
- var arrowX = fromX - topX;
92947
- var arrowY = fromY - topY;
92948
- ctx.moveTo(arrowX, arrowY);
92949
- ctx.moveTo(fromX, fromY);
92950
- ctx.lineTo(toX, toY);
92951
- ctx.lineWidth = arrowWidth;
92952
- ctx.strokeStyle = color;
92953
- ctx.stroke();
92954
- arrowX = toX + topX;
92955
- arrowY = toY + topY;
92956
- ctx.moveTo(arrowX, arrowY);
92957
- ctx.lineTo(toX, toY);
92958
- arrowX = toX + botX;
92959
- arrowY = toY + botY;
92960
- ctx.lineTo(arrowX, arrowY);
92961
- ctx.fillStyle = color;
92962
- ctx.fill();
92963
- ctx.restore();
92964
- }
92965
92911
  var commentBoxProps = {
92966
92912
  defaultWidth: 144,
92967
92913
  defaultHeight: 84,
@@ -105156,12 +105102,13 @@
105156
105102
  };
105157
105103
 
105158
105104
  var NotationBoxes = function NotationBoxes() {
105159
- var _context$commentBoxes;
105105
+ var _context$visibledatac, _context$commentBoxes;
105160
105106
  var _useContext = React.useContext(WorkbookContext),
105161
105107
  context = _useContext.context,
105162
105108
  setContext = _useContext.setContext,
105163
105109
  refs = _useContext.refs;
105164
105110
  var flowdata = getFlowdata(context);
105111
+ var length = (_context$visibledatac = context.visibledatacolumn) === null || _context$visibledatac === void 0 ? void 0 : _context$visibledatac.length;
105165
105112
  React.useEffect(function () {
105166
105113
  if (flowdata) {
105167
105114
  var psShownCells = [];
@@ -105182,7 +105129,7 @@
105182
105129
  return showComments(ctx, psShownCells);
105183
105130
  });
105184
105131
  }
105185
- }, [flowdata, setContext]);
105132
+ }, [flowdata, setContext, length]);
105186
105133
  return /*#__PURE__*/React__default['default'].createElement("div", {
105187
105134
  id: "luckysheet-postil-showBoxs"
105188
105135
  }, lodash.concat((_context$commentBoxes = context.commentBoxes) === null || _context$commentBoxes === void 0 ? void 0 : _context$commentBoxes.filter(function (v) {
@@ -105205,19 +105152,36 @@
105205
105152
  var commentId = "comment-box-".concat(rc);
105206
105153
  return /*#__PURE__*/React__default['default'].createElement("div", {
105207
105154
  key: rc
105208
- }, /*#__PURE__*/React__default['default'].createElement("canvas", {
105209
- id: "arrowCanvas-".concat(rc),
105210
- className: "arrowCanvas",
105211
- width: size.width,
105212
- height: size.height,
105155
+ }, /*#__PURE__*/React__default['default'].createElement("svg", {
105156
+ xmlns: "http://www.w3.org/2000/svg",
105213
105157
  style: {
105214
105158
  position: "absolute",
105215
105159
  left: size.left,
105216
105160
  top: size.top,
105161
+ width: size.width,
105162
+ height: size.height,
105217
105163
  zIndex: 100,
105218
105164
  pointerEvents: "none"
105219
105165
  }
105220
- }), /*#__PURE__*/React__default['default'].createElement("div", {
105166
+ }, /*#__PURE__*/React__default['default'].createElement("defs", null, /*#__PURE__*/React__default['default'].createElement("marker", {
105167
+ id: "arrowhead",
105168
+ markerWidth: "10",
105169
+ markerHeight: "7",
105170
+ refX: "9",
105171
+ refY: "3.5",
105172
+ orient: "auto"
105173
+ }, /*#__PURE__*/React__default['default'].createElement("polygon", {
105174
+ points: "0 0, 10 3.5, 0 7",
105175
+ fill: "#333"
105176
+ }))), /*#__PURE__*/React__default['default'].createElement("line", {
105177
+ x1: size.fromX,
105178
+ y1: size.fromY,
105179
+ x2: size.toX,
105180
+ y2: size.toY,
105181
+ stroke: "#333",
105182
+ strokeWidth: "1",
105183
+ markerEnd: "url(#arrowhead)"
105184
+ })), /*#__PURE__*/React__default['default'].createElement("div", {
105221
105185
  id: commentId,
105222
105186
  className: "luckysheet-postil-show-main",
105223
105187
  style: {
@@ -106499,19 +106463,6 @@
106499
106463
  refs.cellArea.current.scrollLeft = context.scrollLeft;
106500
106464
  refs.cellArea.current.scrollTop = context.scrollTop;
106501
106465
  }, [context.scrollLeft, context.scrollTop, refs.cellArea, (_refs$cellArea$curren = refs.cellArea.current) === null || _refs$cellArea$curren === void 0 ? void 0 : _refs$cellArea$curren.scrollLeft, (_refs$cellArea$curren2 = refs.cellArea.current) === null || _refs$cellArea$curren2 === void 0 ? void 0 : _refs$cellArea$curren2.scrollTop]);
106502
- React.useLayoutEffect(function () {
106503
- if (context.commentBoxes || context.hoveredCommentBox || context.editingCommentBox) {
106504
- var _context$commentBoxes;
106505
- lodash.concat((_context$commentBoxes = context.commentBoxes) === null || _context$commentBoxes === void 0 ? void 0 : _context$commentBoxes.filter(function (v) {
106506
- var _context$editingComme;
106507
- return v.rc !== ((_context$editingComme = context.editingCommentBox) === null || _context$editingComme === void 0 ? void 0 : _context$editingComme.rc);
106508
- }), [context.hoveredCommentBox, context.editingCommentBox]).forEach(function (box) {
106509
- if (box) {
106510
- drawArrow(box.rc, box.size);
106511
- }
106512
- });
106513
- }
106514
- }, [context.commentBoxes, context.hoveredCommentBox, context.editingCommentBox]);
106515
106466
  React.useEffect(function () {
106516
106467
  document.addEventListener("mousemove", onMouseMove);
106517
106468
  return function () {