@leankylin-sheet/core 5.1.15 → 5.1.17
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/events/keyboard.d.ts +2 -2
- package/dist/index.esm.js +464 -407
- package/dist/index.js +464 -406
- package/dist/modules/sheet.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -44664,7 +44664,7 @@ function insertRowCol(ctx, op) {
|
|
|
44664
44664
|
rs: rs,
|
|
44665
44665
|
cs: cs
|
|
44666
44666
|
};
|
|
44667
|
-
} else if (index === c) {
|
|
44667
|
+
} else if (index === c && cs !== 1) {
|
|
44668
44668
|
if (direction === "lefttop") {
|
|
44669
44669
|
merge_new["".concat(r, "_").concat(c + count)] = {
|
|
44670
44670
|
r: r,
|
|
@@ -46696,6 +46696,260 @@ function calculateSheetByCells(ctx, cells) {
|
|
|
46696
46696
|
console.timeEnd("calculateSheetByCellsTime");
|
|
46697
46697
|
}
|
|
46698
46698
|
|
|
46699
|
+
var imageProps = {
|
|
46700
|
+
defaultWidth: 144,
|
|
46701
|
+
defaultHeight: 84,
|
|
46702
|
+
currentObj: null,
|
|
46703
|
+
currentWinW: null,
|
|
46704
|
+
currentWinH: null,
|
|
46705
|
+
resize: null,
|
|
46706
|
+
resizeXY: null,
|
|
46707
|
+
move: false,
|
|
46708
|
+
moveXY: null,
|
|
46709
|
+
cursorStartPosition: null
|
|
46710
|
+
};
|
|
46711
|
+
function generateRandomId(prefix) {
|
|
46712
|
+
if (prefix == null) {
|
|
46713
|
+
prefix = "img";
|
|
46714
|
+
}
|
|
46715
|
+
var userAgent = window.navigator.userAgent.replace(/[^a-zA-Z0-9]/g, "").split("");
|
|
46716
|
+
var mid = "";
|
|
46717
|
+
for (var i = 0; i < 12; i += 1) {
|
|
46718
|
+
mid += userAgent[Math.round(Math.random() * (userAgent.length - 1))];
|
|
46719
|
+
}
|
|
46720
|
+
var time = new Date().getTime();
|
|
46721
|
+
return "".concat(prefix, "_").concat(mid, "_").concat(time);
|
|
46722
|
+
}
|
|
46723
|
+
function showImgChooser() {
|
|
46724
|
+
var chooser = document.getElementById("leankylin-img-upload");
|
|
46725
|
+
if (chooser) chooser.click();
|
|
46726
|
+
}
|
|
46727
|
+
function saveImage(ctx) {
|
|
46728
|
+
var index = getSheetIndex(ctx, ctx.currentSheetId);
|
|
46729
|
+
if (index == null) return;
|
|
46730
|
+
var file = ctx.luckysheetfile[index];
|
|
46731
|
+
file.images = ctx.insertedImgs;
|
|
46732
|
+
}
|
|
46733
|
+
function removeActiveImage(ctx) {
|
|
46734
|
+
ctx.insertedImgs = _.filter(ctx.insertedImgs, function (image) {
|
|
46735
|
+
return image.id !== ctx.activeImg;
|
|
46736
|
+
});
|
|
46737
|
+
ctx.activeImg = undefined;
|
|
46738
|
+
saveImage(ctx);
|
|
46739
|
+
}
|
|
46740
|
+
function insertImage(ctx, image) {
|
|
46741
|
+
try {
|
|
46742
|
+
var _ctx$luckysheet_selec;
|
|
46743
|
+
var last = (_ctx$luckysheet_selec = ctx.luckysheet_select_save) === null || _ctx$luckysheet_selec === void 0 ? void 0 : _ctx$luckysheet_selec[ctx.luckysheet_select_save.length - 1];
|
|
46744
|
+
var rowIndex = last === null || last === void 0 ? void 0 : last.row_focus;
|
|
46745
|
+
var colIndex = last === null || last === void 0 ? void 0 : last.column_focus;
|
|
46746
|
+
if (!last) {
|
|
46747
|
+
rowIndex = 0;
|
|
46748
|
+
colIndex = 0;
|
|
46749
|
+
} else {
|
|
46750
|
+
if (rowIndex == null) {
|
|
46751
|
+
var _last$row = _slicedToArray(last.row, 1);
|
|
46752
|
+
rowIndex = _last$row[0];
|
|
46753
|
+
}
|
|
46754
|
+
if (colIndex == null) {
|
|
46755
|
+
var _last$column = _slicedToArray(last.column, 1);
|
|
46756
|
+
colIndex = _last$column[0];
|
|
46757
|
+
}
|
|
46758
|
+
}
|
|
46759
|
+
var flowdata = getFlowdata(ctx);
|
|
46760
|
+
var left = colIndex === 0 ? 0 : ctx.visibledatacolumn[colIndex - 1];
|
|
46761
|
+
var top = rowIndex === 0 ? 0 : ctx.visibledatarow[rowIndex - 1];
|
|
46762
|
+
if (flowdata) {
|
|
46763
|
+
var margeset = mergeBorder(ctx, flowdata, rowIndex, colIndex);
|
|
46764
|
+
if (margeset) {
|
|
46765
|
+
var _margeset$row = _slicedToArray(margeset.row, 1);
|
|
46766
|
+
top = _margeset$row[0];
|
|
46767
|
+
var _margeset$column = _slicedToArray(margeset.column, 1);
|
|
46768
|
+
left = _margeset$column[0];
|
|
46769
|
+
}
|
|
46770
|
+
}
|
|
46771
|
+
var width = image.width;
|
|
46772
|
+
var height = image.height;
|
|
46773
|
+
var img = {
|
|
46774
|
+
id: generateRandomId("img"),
|
|
46775
|
+
src: image.src,
|
|
46776
|
+
left: left,
|
|
46777
|
+
top: top,
|
|
46778
|
+
width: width * 0.5,
|
|
46779
|
+
height: height * 0.5,
|
|
46780
|
+
originWidth: width,
|
|
46781
|
+
originHeight: height
|
|
46782
|
+
};
|
|
46783
|
+
ctx.insertedImgs = (ctx.insertedImgs || []).concat(img);
|
|
46784
|
+
saveImage(ctx);
|
|
46785
|
+
} catch (err) {
|
|
46786
|
+
console.info(err);
|
|
46787
|
+
}
|
|
46788
|
+
}
|
|
46789
|
+
function getImagePosition() {
|
|
46790
|
+
var box = document.getElementById("luckysheet-modal-dialog-activeImage");
|
|
46791
|
+
if (!box) return undefined;
|
|
46792
|
+
var _box$getBoundingClien = box.getBoundingClientRect(),
|
|
46793
|
+
width = _box$getBoundingClien.width,
|
|
46794
|
+
height = _box$getBoundingClien.height;
|
|
46795
|
+
var left = box.offsetLeft;
|
|
46796
|
+
var top = box.offsetTop;
|
|
46797
|
+
return {
|
|
46798
|
+
left: left,
|
|
46799
|
+
top: top,
|
|
46800
|
+
width: width,
|
|
46801
|
+
height: height
|
|
46802
|
+
};
|
|
46803
|
+
}
|
|
46804
|
+
function cancelActiveImgItem(ctx, globalCache) {
|
|
46805
|
+
ctx.activeImg = undefined;
|
|
46806
|
+
globalCache.image = undefined;
|
|
46807
|
+
}
|
|
46808
|
+
function onImageMoveStart(ctx, globalCache, e) {
|
|
46809
|
+
var position = getImagePosition();
|
|
46810
|
+
if (position) {
|
|
46811
|
+
var top = position.top,
|
|
46812
|
+
left = position.left;
|
|
46813
|
+
_.set(globalCache, "image", {
|
|
46814
|
+
cursorMoveStartPosition: {
|
|
46815
|
+
x: e.pageX,
|
|
46816
|
+
y: e.pageY
|
|
46817
|
+
},
|
|
46818
|
+
imgInitialPosition: {
|
|
46819
|
+
left: left,
|
|
46820
|
+
top: top
|
|
46821
|
+
}
|
|
46822
|
+
});
|
|
46823
|
+
}
|
|
46824
|
+
}
|
|
46825
|
+
function onImageMove(ctx, globalCache, e) {
|
|
46826
|
+
if (ctx.allowEdit === false) return false;
|
|
46827
|
+
var image = globalCache === null || globalCache === void 0 ? void 0 : globalCache.image;
|
|
46828
|
+
var img = document.getElementById("luckysheet-modal-dialog-activeImage");
|
|
46829
|
+
if (img && image && !image.resizingSide) {
|
|
46830
|
+
var _image$cursorMoveStar = image.cursorMoveStartPosition,
|
|
46831
|
+
startX = _image$cursorMoveStar.x,
|
|
46832
|
+
startY = _image$cursorMoveStar.y;
|
|
46833
|
+
var _image$imgInitialPosi = image.imgInitialPosition,
|
|
46834
|
+
top = _image$imgInitialPosi.top,
|
|
46835
|
+
left = _image$imgInitialPosi.left;
|
|
46836
|
+
left += e.pageX - startX;
|
|
46837
|
+
top += e.pageY - startY;
|
|
46838
|
+
if (top < 0) top = 0;
|
|
46839
|
+
img.style.left = "".concat(left, "px");
|
|
46840
|
+
img.style.top = "".concat(top, "px");
|
|
46841
|
+
return true;
|
|
46842
|
+
}
|
|
46843
|
+
return false;
|
|
46844
|
+
}
|
|
46845
|
+
function onImageMoveEnd(ctx, globalCache) {
|
|
46846
|
+
var _globalCache$image;
|
|
46847
|
+
var position = getImagePosition();
|
|
46848
|
+
if (!((_globalCache$image = globalCache.image) === null || _globalCache$image === void 0 ? void 0 : _globalCache$image.resizingSide)) {
|
|
46849
|
+
globalCache.image = undefined;
|
|
46850
|
+
if (position) {
|
|
46851
|
+
var img = _.find(ctx.insertedImgs, function (v) {
|
|
46852
|
+
return v.id === ctx.activeImg;
|
|
46853
|
+
});
|
|
46854
|
+
if (img) {
|
|
46855
|
+
img.left = position.left / ctx.zoomRatio;
|
|
46856
|
+
img.top = position.top / ctx.zoomRatio;
|
|
46857
|
+
saveImage(ctx);
|
|
46858
|
+
}
|
|
46859
|
+
}
|
|
46860
|
+
}
|
|
46861
|
+
}
|
|
46862
|
+
function onImageResizeStart(globalCache, e, resizingSide) {
|
|
46863
|
+
var position = getImagePosition();
|
|
46864
|
+
if (position) {
|
|
46865
|
+
_.set(globalCache, "image", {
|
|
46866
|
+
cursorMoveStartPosition: {
|
|
46867
|
+
x: e.pageX,
|
|
46868
|
+
y: e.pageY
|
|
46869
|
+
},
|
|
46870
|
+
resizingSide: resizingSide,
|
|
46871
|
+
imgInitialPosition: position
|
|
46872
|
+
});
|
|
46873
|
+
}
|
|
46874
|
+
}
|
|
46875
|
+
function onImageResize(ctx, globalCache, e) {
|
|
46876
|
+
if (ctx.allowEdit === false) return false;
|
|
46877
|
+
var image = globalCache === null || globalCache === void 0 ? void 0 : globalCache.image;
|
|
46878
|
+
if (image === null || image === void 0 ? void 0 : image.resizingSide) {
|
|
46879
|
+
var imgContainer = document.getElementById("luckysheet-modal-dialog-activeImage");
|
|
46880
|
+
var img = imgContainer === null || imgContainer === void 0 ? void 0 : imgContainer.querySelector(".luckysheet-modal-dialog-content");
|
|
46881
|
+
if (img == null) return false;
|
|
46882
|
+
var _image$cursorMoveStar2 = image.cursorMoveStartPosition,
|
|
46883
|
+
startX = _image$cursorMoveStar2.x,
|
|
46884
|
+
startY = _image$cursorMoveStar2.y;
|
|
46885
|
+
var _image$imgInitialPosi2 = image.imgInitialPosition,
|
|
46886
|
+
top = _image$imgInitialPosi2.top,
|
|
46887
|
+
left = _image$imgInitialPosi2.left,
|
|
46888
|
+
width = _image$imgInitialPosi2.width,
|
|
46889
|
+
height = _image$imgInitialPosi2.height;
|
|
46890
|
+
var dx = e.pageX - startX;
|
|
46891
|
+
var dy = e.pageY - startY;
|
|
46892
|
+
var minHeight = 60 * ctx.zoomRatio;
|
|
46893
|
+
var minWidth = 1.5 * 60 * ctx.zoomRatio;
|
|
46894
|
+
if (["lm", "lt", "lb"].includes(image.resizingSide)) {
|
|
46895
|
+
if (width - dx < minWidth) {
|
|
46896
|
+
left += width - minWidth;
|
|
46897
|
+
width = minWidth;
|
|
46898
|
+
} else {
|
|
46899
|
+
left += dx;
|
|
46900
|
+
width -= dx;
|
|
46901
|
+
}
|
|
46902
|
+
if (left < 0) left = 0;
|
|
46903
|
+
img.style.left = "".concat(left, "px");
|
|
46904
|
+
imgContainer.style.left = "".concat(left, "px");
|
|
46905
|
+
}
|
|
46906
|
+
if (["rm", "rt", "rb"].includes(image.resizingSide)) {
|
|
46907
|
+
width = width + dx < minWidth ? minWidth : width + dx;
|
|
46908
|
+
}
|
|
46909
|
+
if (["mt", "lt", "rt"].includes(image.resizingSide)) {
|
|
46910
|
+
if (height - dy < minHeight) {
|
|
46911
|
+
top += height - minHeight;
|
|
46912
|
+
height = minHeight;
|
|
46913
|
+
} else {
|
|
46914
|
+
top += dy;
|
|
46915
|
+
height -= dy;
|
|
46916
|
+
}
|
|
46917
|
+
if (top < 0) top = 0;
|
|
46918
|
+
img.style.top = "".concat(top, "px");
|
|
46919
|
+
imgContainer.style.top = "".concat(top, "px");
|
|
46920
|
+
}
|
|
46921
|
+
if (["mb", "lb", "rb"].includes(image.resizingSide)) {
|
|
46922
|
+
height = height + dy < minHeight ? minHeight : height + dy;
|
|
46923
|
+
}
|
|
46924
|
+
img.style.width = "".concat(width, "px");
|
|
46925
|
+
imgContainer.style.width = "".concat(width, "px");
|
|
46926
|
+
img.style.height = "".concat(height, "px");
|
|
46927
|
+
imgContainer.style.height = "".concat(height, "px");
|
|
46928
|
+
img.style.backgroundSize = "".concat(width, "px ").concat(height, "px");
|
|
46929
|
+
return true;
|
|
46930
|
+
}
|
|
46931
|
+
return false;
|
|
46932
|
+
}
|
|
46933
|
+
function onImageResizeEnd(ctx, globalCache) {
|
|
46934
|
+
var _globalCache$image2;
|
|
46935
|
+
if ((_globalCache$image2 = globalCache.image) === null || _globalCache$image2 === void 0 ? void 0 : _globalCache$image2.resizingSide) {
|
|
46936
|
+
globalCache.image = undefined;
|
|
46937
|
+
var position = getImagePosition();
|
|
46938
|
+
if (position) {
|
|
46939
|
+
var img = _.find(ctx.insertedImgs, function (v) {
|
|
46940
|
+
return v.id === ctx.activeImg;
|
|
46941
|
+
});
|
|
46942
|
+
if (img) {
|
|
46943
|
+
img.left = position.left / ctx.zoomRatio;
|
|
46944
|
+
img.top = position.top / ctx.zoomRatio;
|
|
46945
|
+
img.width = position.width / ctx.zoomRatio;
|
|
46946
|
+
img.height = position.height / ctx.zoomRatio;
|
|
46947
|
+
saveImage(ctx);
|
|
46948
|
+
}
|
|
46949
|
+
}
|
|
46950
|
+
}
|
|
46951
|
+
}
|
|
46952
|
+
|
|
46699
46953
|
function storeSheetParam(ctx) {
|
|
46700
46954
|
var index = getSheetIndex(ctx, ctx.currentSheetId);
|
|
46701
46955
|
if (index == null) return;
|
|
@@ -46939,8 +47193,56 @@ function expandRowsAndColumns(data, rowsToAdd, columnsToAdd) {
|
|
|
46939
47193
|
}
|
|
46940
47194
|
return data;
|
|
46941
47195
|
}
|
|
46942
|
-
|
|
46943
|
-
|
|
47196
|
+
function setNextSheet(draftCtx, nextSheetId, refs) {
|
|
47197
|
+
var _draftCtx$luckysheetf, _luckysheetCellUpdate;
|
|
47198
|
+
var sheet = draftCtx.luckysheetfile.find(function (_sheet) {
|
|
47199
|
+
return _sheet.id === nextSheetId;
|
|
47200
|
+
}) || ((_draftCtx$luckysheetf = draftCtx.luckysheetfile) === null || _draftCtx$luckysheetf === void 0 ? void 0 : _draftCtx$luckysheetf[0]);
|
|
47201
|
+
draftCtx.sheetScrollRecord[draftCtx.currentSheetId] = {
|
|
47202
|
+
scrollLeft: draftCtx.scrollLeft,
|
|
47203
|
+
scrollTop: draftCtx.scrollTop,
|
|
47204
|
+
luckysheet_select_status: draftCtx.luckysheet_select_status,
|
|
47205
|
+
luckysheet_select_save: draftCtx.luckysheet_select_save,
|
|
47206
|
+
luckysheet_selection_range: draftCtx.luckysheet_selection_range
|
|
47207
|
+
};
|
|
47208
|
+
var isBack = false;
|
|
47209
|
+
var luckysheetCellUpdate = [];
|
|
47210
|
+
if ((israngeseleciton(draftCtx) || draftCtx.formulaCache.rangestart) && !draftCtx.active_f) {
|
|
47211
|
+
var _refs$fxInput$current, _draftCtx$sheetScroll;
|
|
47212
|
+
draftCtx.active_f = {
|
|
47213
|
+
r: draftCtx.luckysheet_select_save[0].row_focus,
|
|
47214
|
+
c: draftCtx.luckysheet_select_save[0].column_focus,
|
|
47215
|
+
sheetId: draftCtx.currentSheetId,
|
|
47216
|
+
text: (_refs$fxInput$current = refs.fxInput.current) === null || _refs$fxInput$current === void 0 ? void 0 : _refs$fxInput$current.innerText
|
|
47217
|
+
};
|
|
47218
|
+
if ((_draftCtx$sheetScroll = draftCtx.sheetScrollRecord[nextSheetId]) === null || _draftCtx$sheetScroll === void 0 ? void 0 : _draftCtx$sheetScroll.luckysheet_select_save) {
|
|
47219
|
+
draftCtx.sheetScrollRecord[nextSheetId].luckysheet_select_save = undefined;
|
|
47220
|
+
}
|
|
47221
|
+
moveToEnd(refs.fxInput.current);
|
|
47222
|
+
} else if (draftCtx.active_f && draftCtx.active_f.sheetId === nextSheetId) {
|
|
47223
|
+
var _refs$fxInput$current2;
|
|
47224
|
+
luckysheetCellUpdate = [draftCtx.active_f.r, draftCtx.active_f.c];
|
|
47225
|
+
isBack = true;
|
|
47226
|
+
if ((_refs$fxInput$current2 = refs.fxInput.current) === null || _refs$fxInput$current2 === void 0 ? void 0 : _refs$fxInput$current2.innerHTML) {
|
|
47227
|
+
var _refs$fxInput$current3;
|
|
47228
|
+
refs.cellInput.current.innerHTML = ((_refs$fxInput$current3 = refs.fxInput.current) === null || _refs$fxInput$current3 === void 0 ? void 0 : _refs$fxInput$current3.innerHTML) || "";
|
|
47229
|
+
}
|
|
47230
|
+
moveToEnd(refs.cellInput.current);
|
|
47231
|
+
}
|
|
47232
|
+
var _update = ((_luckysheetCellUpdate = luckysheetCellUpdate) === null || _luckysheetCellUpdate === void 0 ? void 0 : _luckysheetCellUpdate.length) > 0 ? luckysheetCellUpdate : draftCtx.luckysheetCellUpdate;
|
|
47233
|
+
draftCtx.currentSheetId = nextSheetId;
|
|
47234
|
+
if ((_update === null || _update === void 0 ? void 0 : _update.length) > 0) ;
|
|
47235
|
+
draftCtx.dataVerificationDropDownList = false;
|
|
47236
|
+
draftCtx.zoomRatio = sheet.zoomRatio || 1;
|
|
47237
|
+
cancelActiveImgItem(draftCtx, refs.globalCache);
|
|
47238
|
+
cancelNormalSelected(draftCtx);
|
|
47239
|
+
if (isBack) {
|
|
47240
|
+
draftCtx.luckysheetCellUpdate = luckysheetCellUpdate;
|
|
47241
|
+
draftCtx.active_f = undefined;
|
|
47242
|
+
}
|
|
47243
|
+
}
|
|
47244
|
+
|
|
47245
|
+
function mergeCells(ctx, sheetId, ranges, type) {
|
|
46944
47246
|
var idx = getSheetIndex(ctx, sheetId);
|
|
46945
47247
|
if (idx == null) return;
|
|
46946
47248
|
var sheet = ctx.luckysheetfile[idx];
|
|
@@ -49335,296 +49637,15 @@ function overShowComment(ctx, e, scrollX, scrollY, container) {
|
|
|
49335
49637
|
rc: rc,
|
|
49336
49638
|
left: left,
|
|
49337
49639
|
top: top,
|
|
49338
|
-
width: width,
|
|
49339
|
-
height: height,
|
|
49340
|
-
size: size,
|
|
49341
|
-
value: value,
|
|
49342
|
-
autoFocus: false
|
|
49343
|
-
};
|
|
49344
|
-
}
|
|
49345
|
-
function getCommentBoxPosition(commentId) {
|
|
49346
|
-
var box = document.getElementById(commentId);
|
|
49347
|
-
if (!box) return undefined;
|
|
49348
|
-
var _box$getBoundingClien = box.getBoundingClientRect(),
|
|
49349
|
-
width = _box$getBoundingClien.width,
|
|
49350
|
-
height = _box$getBoundingClien.height;
|
|
49351
|
-
var left = box.offsetLeft;
|
|
49352
|
-
var top = box.offsetTop;
|
|
49353
|
-
return {
|
|
49354
|
-
left: left,
|
|
49355
|
-
top: top,
|
|
49356
|
-
width: width,
|
|
49357
|
-
height: height
|
|
49358
|
-
};
|
|
49359
|
-
}
|
|
49360
|
-
function onCommentBoxResizeStart(ctx, globalCache, e, _ref3, resizingId, resizingSide) {
|
|
49361
|
-
var r = _ref3.r,
|
|
49362
|
-
c = _ref3.c,
|
|
49363
|
-
rc = _ref3.rc;
|
|
49364
|
-
var position = getCommentBoxPosition(resizingId);
|
|
49365
|
-
if (position) {
|
|
49366
|
-
_.set(globalCache, "commentBox", {
|
|
49367
|
-
cursorMoveStartPosition: {
|
|
49368
|
-
x: e.pageX,
|
|
49369
|
-
y: e.pageY
|
|
49370
|
-
},
|
|
49371
|
-
resizingId: resizingId,
|
|
49372
|
-
resizingSide: resizingSide,
|
|
49373
|
-
commentRC: {
|
|
49374
|
-
r: r,
|
|
49375
|
-
c: c,
|
|
49376
|
-
rc: rc
|
|
49377
|
-
},
|
|
49378
|
-
boxInitialPosition: position
|
|
49379
|
-
});
|
|
49380
|
-
}
|
|
49381
|
-
}
|
|
49382
|
-
function onCommentBoxResize(ctx, globalCache, e) {
|
|
49383
|
-
if (ctx.allowEdit === false) return false;
|
|
49384
|
-
var commentBox = globalCache === null || globalCache === void 0 ? void 0 : globalCache.commentBox;
|
|
49385
|
-
if ((commentBox === null || commentBox === void 0 ? void 0 : commentBox.resizingId) && commentBox.resizingSide) {
|
|
49386
|
-
var box = document.getElementById(commentBox.resizingId);
|
|
49387
|
-
var _commentBox$cursorMov = commentBox.cursorMoveStartPosition,
|
|
49388
|
-
startX = _commentBox$cursorMov.x,
|
|
49389
|
-
startY = _commentBox$cursorMov.y;
|
|
49390
|
-
var _commentBox$boxInitia = commentBox.boxInitialPosition,
|
|
49391
|
-
top = _commentBox$boxInitia.top,
|
|
49392
|
-
left = _commentBox$boxInitia.left,
|
|
49393
|
-
width = _commentBox$boxInitia.width,
|
|
49394
|
-
height = _commentBox$boxInitia.height;
|
|
49395
|
-
var dx = e.pageX - startX;
|
|
49396
|
-
var dy = e.pageY - startY;
|
|
49397
|
-
var minHeight = 60 * ctx.zoomRatio;
|
|
49398
|
-
var minWidth = 1.5 * 60 * ctx.zoomRatio;
|
|
49399
|
-
if (["lm", "lt", "lb"].includes(commentBox.resizingSide)) {
|
|
49400
|
-
if (width - dx < minWidth) {
|
|
49401
|
-
left += width - minWidth;
|
|
49402
|
-
width = minWidth;
|
|
49403
|
-
} else {
|
|
49404
|
-
left += dx;
|
|
49405
|
-
width -= dx;
|
|
49406
|
-
}
|
|
49407
|
-
if (left < 0) left = 0;
|
|
49408
|
-
box.style.left = "".concat(left, "px");
|
|
49409
|
-
}
|
|
49410
|
-
if (["rm", "rt", "rb"].includes(commentBox.resizingSide)) {
|
|
49411
|
-
width = width + dx < minWidth ? minWidth : width + dx;
|
|
49412
|
-
}
|
|
49413
|
-
if (["mt", "lt", "rt"].includes(commentBox.resizingSide)) {
|
|
49414
|
-
if (height - dy < minHeight) {
|
|
49415
|
-
top += height - minHeight;
|
|
49416
|
-
height = minHeight;
|
|
49417
|
-
} else {
|
|
49418
|
-
top += dy;
|
|
49419
|
-
height -= dy;
|
|
49420
|
-
}
|
|
49421
|
-
if (top < 0) top = 0;
|
|
49422
|
-
box.style.top = "".concat(top, "px");
|
|
49423
|
-
}
|
|
49424
|
-
if (["mb", "lb", "rb"].includes(commentBox.resizingSide)) {
|
|
49425
|
-
height = height + dy < minHeight ? minHeight : height + dy;
|
|
49426
|
-
}
|
|
49427
|
-
box.style.width = "".concat(width, "px");
|
|
49428
|
-
box.style.height = "".concat(height, "px");
|
|
49429
|
-
return true;
|
|
49430
|
-
}
|
|
49431
|
-
return false;
|
|
49432
|
-
}
|
|
49433
|
-
function onCommentBoxResizeEnd(ctx, globalCache) {
|
|
49434
|
-
var _globalCache$commentB;
|
|
49435
|
-
if ((_globalCache$commentB = globalCache.commentBox) === null || _globalCache$commentB === void 0 ? void 0 : _globalCache$commentB.resizingId) {
|
|
49436
|
-
var _globalCache$commentB2 = globalCache.commentBox,
|
|
49437
|
-
resizingId = _globalCache$commentB2.resizingId,
|
|
49438
|
-
_globalCache$commentB3 = _globalCache$commentB2.commentRC,
|
|
49439
|
-
r = _globalCache$commentB3.r,
|
|
49440
|
-
c = _globalCache$commentB3.c;
|
|
49441
|
-
globalCache.commentBox.resizingId = undefined;
|
|
49442
|
-
var position = getCommentBoxPosition(resizingId);
|
|
49443
|
-
if (position) {
|
|
49444
|
-
var top = position.top,
|
|
49445
|
-
left = position.left,
|
|
49446
|
-
width = position.width,
|
|
49447
|
-
height = position.height;
|
|
49448
|
-
var flowdata = getFlowdata(ctx);
|
|
49449
|
-
var cell = flowdata === null || flowdata === void 0 ? void 0 : flowdata[r][c];
|
|
49450
|
-
if (!flowdata || !(cell === null || cell === void 0 ? void 0 : cell.ps)) return;
|
|
49451
|
-
cell.ps.left = left / ctx.zoomRatio;
|
|
49452
|
-
cell.ps.top = top / ctx.zoomRatio;
|
|
49453
|
-
cell.ps.width = width / ctx.zoomRatio;
|
|
49454
|
-
cell.ps.height = height / ctx.zoomRatio;
|
|
49455
|
-
setEditingComment(ctx, flowdata, r, c);
|
|
49456
|
-
if (ctx.hooks.afterUpdateComment) {
|
|
49457
|
-
var _ctx$hooks$afterUpdat5, _ctx$hooks10;
|
|
49458
|
-
(_ctx$hooks$afterUpdat5 = (_ctx$hooks10 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat5 === void 0 ? void 0 : _ctx$hooks$afterUpdat5.call(_ctx$hooks10, r, c, _objectSpread2({}, cell.ps), true);
|
|
49459
|
-
}
|
|
49460
|
-
}
|
|
49461
|
-
}
|
|
49462
|
-
}
|
|
49463
|
-
function onCommentBoxMoveStart(ctx, globalCache, e, _ref4, movingId) {
|
|
49464
|
-
var r = _ref4.r,
|
|
49465
|
-
c = _ref4.c,
|
|
49466
|
-
rc = _ref4.rc;
|
|
49467
|
-
var position = getCommentBoxPosition(movingId);
|
|
49468
|
-
if (position) {
|
|
49469
|
-
var top = position.top,
|
|
49470
|
-
left = position.left;
|
|
49471
|
-
_.set(globalCache, "commentBox", {
|
|
49472
|
-
cursorMoveStartPosition: {
|
|
49473
|
-
x: e.pageX,
|
|
49474
|
-
y: e.pageY
|
|
49475
|
-
},
|
|
49476
|
-
movingId: movingId,
|
|
49477
|
-
commentRC: {
|
|
49478
|
-
r: r,
|
|
49479
|
-
c: c,
|
|
49480
|
-
rc: rc
|
|
49481
|
-
},
|
|
49482
|
-
boxInitialPosition: {
|
|
49483
|
-
left: left,
|
|
49484
|
-
top: top
|
|
49485
|
-
}
|
|
49486
|
-
});
|
|
49487
|
-
}
|
|
49488
|
-
}
|
|
49489
|
-
function onCommentBoxMove(ctx, globalCache, e) {
|
|
49490
|
-
var commentBox = globalCache === null || globalCache === void 0 ? void 0 : globalCache.commentBox;
|
|
49491
|
-
if (commentBox === null || commentBox === void 0 ? void 0 : commentBox.movingId) {
|
|
49492
|
-
var box = document.getElementById(commentBox.movingId);
|
|
49493
|
-
var _commentBox$cursorMov2 = commentBox.cursorMoveStartPosition,
|
|
49494
|
-
startX = _commentBox$cursorMov2.x,
|
|
49495
|
-
startY = _commentBox$cursorMov2.y;
|
|
49496
|
-
var _commentBox$boxInitia2 = commentBox.boxInitialPosition,
|
|
49497
|
-
top = _commentBox$boxInitia2.top,
|
|
49498
|
-
left = _commentBox$boxInitia2.left;
|
|
49499
|
-
left += e.pageX - startX;
|
|
49500
|
-
top += e.pageY - startY;
|
|
49501
|
-
if (top < 0) top = 0;
|
|
49502
|
-
if (left < 0) left = 0;
|
|
49503
|
-
box.style.left = "".concat(left, "px");
|
|
49504
|
-
box.style.top = "".concat(top, "px");
|
|
49505
|
-
return true;
|
|
49506
|
-
}
|
|
49507
|
-
return false;
|
|
49508
|
-
}
|
|
49509
|
-
function onCommentBoxMoveEnd(ctx, globalCache) {
|
|
49510
|
-
var _globalCache$commentB4;
|
|
49511
|
-
if ((_globalCache$commentB4 = globalCache.commentBox) === null || _globalCache$commentB4 === void 0 ? void 0 : _globalCache$commentB4.movingId) {
|
|
49512
|
-
var _globalCache$commentB5 = globalCache.commentBox,
|
|
49513
|
-
movingId = _globalCache$commentB5.movingId,
|
|
49514
|
-
_globalCache$commentB6 = _globalCache$commentB5.commentRC,
|
|
49515
|
-
r = _globalCache$commentB6.r,
|
|
49516
|
-
c = _globalCache$commentB6.c;
|
|
49517
|
-
globalCache.commentBox.movingId = undefined;
|
|
49518
|
-
var position = getCommentBoxPosition(movingId);
|
|
49519
|
-
if (position) {
|
|
49520
|
-
var top = position.top,
|
|
49521
|
-
left = position.left;
|
|
49522
|
-
var flowdata = getFlowdata(ctx);
|
|
49523
|
-
var cell = flowdata === null || flowdata === void 0 ? void 0 : flowdata[r][c];
|
|
49524
|
-
if (!flowdata || !(cell === null || cell === void 0 ? void 0 : cell.ps)) return;
|
|
49525
|
-
cell.ps.left = left / ctx.zoomRatio;
|
|
49526
|
-
cell.ps.top = top / ctx.zoomRatio;
|
|
49527
|
-
setEditingComment(ctx, flowdata, r, c);
|
|
49528
|
-
if (ctx.hooks.afterUpdateComment) {
|
|
49529
|
-
var _ctx$hooks$afterUpdat6, _ctx$hooks11;
|
|
49530
|
-
(_ctx$hooks$afterUpdat6 = (_ctx$hooks11 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat6 === void 0 ? void 0 : _ctx$hooks$afterUpdat6.call(_ctx$hooks11, r, c, _objectSpread2({}, cell.ps), true);
|
|
49531
|
-
}
|
|
49532
|
-
}
|
|
49533
|
-
}
|
|
49534
|
-
}
|
|
49535
|
-
|
|
49536
|
-
var imageProps = {
|
|
49537
|
-
defaultWidth: 144,
|
|
49538
|
-
defaultHeight: 84,
|
|
49539
|
-
currentObj: null,
|
|
49540
|
-
currentWinW: null,
|
|
49541
|
-
currentWinH: null,
|
|
49542
|
-
resize: null,
|
|
49543
|
-
resizeXY: null,
|
|
49544
|
-
move: false,
|
|
49545
|
-
moveXY: null,
|
|
49546
|
-
cursorStartPosition: null
|
|
49547
|
-
};
|
|
49548
|
-
function generateRandomId(prefix) {
|
|
49549
|
-
if (prefix == null) {
|
|
49550
|
-
prefix = "img";
|
|
49551
|
-
}
|
|
49552
|
-
var userAgent = window.navigator.userAgent.replace(/[^a-zA-Z0-9]/g, "").split("");
|
|
49553
|
-
var mid = "";
|
|
49554
|
-
for (var i = 0; i < 12; i += 1) {
|
|
49555
|
-
mid += userAgent[Math.round(Math.random() * (userAgent.length - 1))];
|
|
49556
|
-
}
|
|
49557
|
-
var time = new Date().getTime();
|
|
49558
|
-
return "".concat(prefix, "_").concat(mid, "_").concat(time);
|
|
49559
|
-
}
|
|
49560
|
-
function showImgChooser() {
|
|
49561
|
-
var chooser = document.getElementById("leankylin-img-upload");
|
|
49562
|
-
if (chooser) chooser.click();
|
|
49563
|
-
}
|
|
49564
|
-
function saveImage(ctx) {
|
|
49565
|
-
var index = getSheetIndex(ctx, ctx.currentSheetId);
|
|
49566
|
-
if (index == null) return;
|
|
49567
|
-
var file = ctx.luckysheetfile[index];
|
|
49568
|
-
file.images = ctx.insertedImgs;
|
|
49569
|
-
}
|
|
49570
|
-
function removeActiveImage(ctx) {
|
|
49571
|
-
ctx.insertedImgs = _.filter(ctx.insertedImgs, function (image) {
|
|
49572
|
-
return image.id !== ctx.activeImg;
|
|
49573
|
-
});
|
|
49574
|
-
ctx.activeImg = undefined;
|
|
49575
|
-
saveImage(ctx);
|
|
49576
|
-
}
|
|
49577
|
-
function insertImage(ctx, image) {
|
|
49578
|
-
try {
|
|
49579
|
-
var _ctx$luckysheet_selec;
|
|
49580
|
-
var last = (_ctx$luckysheet_selec = ctx.luckysheet_select_save) === null || _ctx$luckysheet_selec === void 0 ? void 0 : _ctx$luckysheet_selec[ctx.luckysheet_select_save.length - 1];
|
|
49581
|
-
var rowIndex = last === null || last === void 0 ? void 0 : last.row_focus;
|
|
49582
|
-
var colIndex = last === null || last === void 0 ? void 0 : last.column_focus;
|
|
49583
|
-
if (!last) {
|
|
49584
|
-
rowIndex = 0;
|
|
49585
|
-
colIndex = 0;
|
|
49586
|
-
} else {
|
|
49587
|
-
if (rowIndex == null) {
|
|
49588
|
-
var _last$row = _slicedToArray(last.row, 1);
|
|
49589
|
-
rowIndex = _last$row[0];
|
|
49590
|
-
}
|
|
49591
|
-
if (colIndex == null) {
|
|
49592
|
-
var _last$column = _slicedToArray(last.column, 1);
|
|
49593
|
-
colIndex = _last$column[0];
|
|
49594
|
-
}
|
|
49595
|
-
}
|
|
49596
|
-
var flowdata = getFlowdata(ctx);
|
|
49597
|
-
var left = colIndex === 0 ? 0 : ctx.visibledatacolumn[colIndex - 1];
|
|
49598
|
-
var top = rowIndex === 0 ? 0 : ctx.visibledatarow[rowIndex - 1];
|
|
49599
|
-
if (flowdata) {
|
|
49600
|
-
var margeset = mergeBorder(ctx, flowdata, rowIndex, colIndex);
|
|
49601
|
-
if (margeset) {
|
|
49602
|
-
var _margeset$row = _slicedToArray(margeset.row, 1);
|
|
49603
|
-
top = _margeset$row[0];
|
|
49604
|
-
var _margeset$column = _slicedToArray(margeset.column, 1);
|
|
49605
|
-
left = _margeset$column[0];
|
|
49606
|
-
}
|
|
49607
|
-
}
|
|
49608
|
-
var width = image.width;
|
|
49609
|
-
var height = image.height;
|
|
49610
|
-
var img = {
|
|
49611
|
-
id: generateRandomId("img"),
|
|
49612
|
-
src: image.src,
|
|
49613
|
-
left: left,
|
|
49614
|
-
top: top,
|
|
49615
|
-
width: width * 0.5,
|
|
49616
|
-
height: height * 0.5,
|
|
49617
|
-
originWidth: width,
|
|
49618
|
-
originHeight: height
|
|
49619
|
-
};
|
|
49620
|
-
ctx.insertedImgs = (ctx.insertedImgs || []).concat(img);
|
|
49621
|
-
saveImage(ctx);
|
|
49622
|
-
} catch (err) {
|
|
49623
|
-
console.info(err);
|
|
49624
|
-
}
|
|
49640
|
+
width: width,
|
|
49641
|
+
height: height,
|
|
49642
|
+
size: size,
|
|
49643
|
+
value: value,
|
|
49644
|
+
autoFocus: false
|
|
49645
|
+
};
|
|
49625
49646
|
}
|
|
49626
|
-
function
|
|
49627
|
-
var box = document.getElementById(
|
|
49647
|
+
function getCommentBoxPosition(commentId) {
|
|
49648
|
+
var box = document.getElementById(commentId);
|
|
49628
49649
|
if (!box) return undefined;
|
|
49629
49650
|
var _box$getBoundingClien = box.getBoundingClientRect(),
|
|
49630
49651
|
width = _box$getBoundingClien.width,
|
|
@@ -49638,97 +49659,46 @@ function getImagePosition() {
|
|
|
49638
49659
|
height: height
|
|
49639
49660
|
};
|
|
49640
49661
|
}
|
|
49641
|
-
function
|
|
49642
|
-
|
|
49643
|
-
|
|
49644
|
-
|
|
49645
|
-
|
|
49646
|
-
var position = getImagePosition();
|
|
49647
|
-
if (position) {
|
|
49648
|
-
var top = position.top,
|
|
49649
|
-
left = position.left;
|
|
49650
|
-
_.set(globalCache, "image", {
|
|
49651
|
-
cursorMoveStartPosition: {
|
|
49652
|
-
x: e.pageX,
|
|
49653
|
-
y: e.pageY
|
|
49654
|
-
},
|
|
49655
|
-
imgInitialPosition: {
|
|
49656
|
-
left: left,
|
|
49657
|
-
top: top
|
|
49658
|
-
}
|
|
49659
|
-
});
|
|
49660
|
-
}
|
|
49661
|
-
}
|
|
49662
|
-
function onImageMove(ctx, globalCache, e) {
|
|
49663
|
-
if (ctx.allowEdit === false) return false;
|
|
49664
|
-
var image = globalCache === null || globalCache === void 0 ? void 0 : globalCache.image;
|
|
49665
|
-
var img = document.getElementById("luckysheet-modal-dialog-activeImage");
|
|
49666
|
-
if (img && image && !image.resizingSide) {
|
|
49667
|
-
var _image$cursorMoveStar = image.cursorMoveStartPosition,
|
|
49668
|
-
startX = _image$cursorMoveStar.x,
|
|
49669
|
-
startY = _image$cursorMoveStar.y;
|
|
49670
|
-
var _image$imgInitialPosi = image.imgInitialPosition,
|
|
49671
|
-
top = _image$imgInitialPosi.top,
|
|
49672
|
-
left = _image$imgInitialPosi.left;
|
|
49673
|
-
left += e.pageX - startX;
|
|
49674
|
-
top += e.pageY - startY;
|
|
49675
|
-
if (top < 0) top = 0;
|
|
49676
|
-
img.style.left = "".concat(left, "px");
|
|
49677
|
-
img.style.top = "".concat(top, "px");
|
|
49678
|
-
return true;
|
|
49679
|
-
}
|
|
49680
|
-
return false;
|
|
49681
|
-
}
|
|
49682
|
-
function onImageMoveEnd(ctx, globalCache) {
|
|
49683
|
-
var _globalCache$image;
|
|
49684
|
-
var position = getImagePosition();
|
|
49685
|
-
if (!((_globalCache$image = globalCache.image) === null || _globalCache$image === void 0 ? void 0 : _globalCache$image.resizingSide)) {
|
|
49686
|
-
globalCache.image = undefined;
|
|
49687
|
-
if (position) {
|
|
49688
|
-
var img = _.find(ctx.insertedImgs, function (v) {
|
|
49689
|
-
return v.id === ctx.activeImg;
|
|
49690
|
-
});
|
|
49691
|
-
if (img) {
|
|
49692
|
-
img.left = position.left / ctx.zoomRatio;
|
|
49693
|
-
img.top = position.top / ctx.zoomRatio;
|
|
49694
|
-
saveImage(ctx);
|
|
49695
|
-
}
|
|
49696
|
-
}
|
|
49697
|
-
}
|
|
49698
|
-
}
|
|
49699
|
-
function onImageResizeStart(globalCache, e, resizingSide) {
|
|
49700
|
-
var position = getImagePosition();
|
|
49662
|
+
function onCommentBoxResizeStart(ctx, globalCache, e, _ref3, resizingId, resizingSide) {
|
|
49663
|
+
var r = _ref3.r,
|
|
49664
|
+
c = _ref3.c,
|
|
49665
|
+
rc = _ref3.rc;
|
|
49666
|
+
var position = getCommentBoxPosition(resizingId);
|
|
49701
49667
|
if (position) {
|
|
49702
|
-
_.set(globalCache, "
|
|
49668
|
+
_.set(globalCache, "commentBox", {
|
|
49703
49669
|
cursorMoveStartPosition: {
|
|
49704
49670
|
x: e.pageX,
|
|
49705
49671
|
y: e.pageY
|
|
49706
49672
|
},
|
|
49673
|
+
resizingId: resizingId,
|
|
49707
49674
|
resizingSide: resizingSide,
|
|
49708
|
-
|
|
49675
|
+
commentRC: {
|
|
49676
|
+
r: r,
|
|
49677
|
+
c: c,
|
|
49678
|
+
rc: rc
|
|
49679
|
+
},
|
|
49680
|
+
boxInitialPosition: position
|
|
49709
49681
|
});
|
|
49710
49682
|
}
|
|
49711
49683
|
}
|
|
49712
|
-
function
|
|
49684
|
+
function onCommentBoxResize(ctx, globalCache, e) {
|
|
49713
49685
|
if (ctx.allowEdit === false) return false;
|
|
49714
|
-
var
|
|
49715
|
-
if (
|
|
49716
|
-
var
|
|
49717
|
-
var
|
|
49718
|
-
|
|
49719
|
-
|
|
49720
|
-
|
|
49721
|
-
|
|
49722
|
-
|
|
49723
|
-
|
|
49724
|
-
|
|
49725
|
-
width = _image$imgInitialPosi2.width,
|
|
49726
|
-
height = _image$imgInitialPosi2.height;
|
|
49686
|
+
var commentBox = globalCache === null || globalCache === void 0 ? void 0 : globalCache.commentBox;
|
|
49687
|
+
if ((commentBox === null || commentBox === void 0 ? void 0 : commentBox.resizingId) && commentBox.resizingSide) {
|
|
49688
|
+
var box = document.getElementById(commentBox.resizingId);
|
|
49689
|
+
var _commentBox$cursorMov = commentBox.cursorMoveStartPosition,
|
|
49690
|
+
startX = _commentBox$cursorMov.x,
|
|
49691
|
+
startY = _commentBox$cursorMov.y;
|
|
49692
|
+
var _commentBox$boxInitia = commentBox.boxInitialPosition,
|
|
49693
|
+
top = _commentBox$boxInitia.top,
|
|
49694
|
+
left = _commentBox$boxInitia.left,
|
|
49695
|
+
width = _commentBox$boxInitia.width,
|
|
49696
|
+
height = _commentBox$boxInitia.height;
|
|
49727
49697
|
var dx = e.pageX - startX;
|
|
49728
49698
|
var dy = e.pageY - startY;
|
|
49729
49699
|
var minHeight = 60 * ctx.zoomRatio;
|
|
49730
49700
|
var minWidth = 1.5 * 60 * ctx.zoomRatio;
|
|
49731
|
-
if (["lm", "lt", "lb"].includes(
|
|
49701
|
+
if (["lm", "lt", "lb"].includes(commentBox.resizingSide)) {
|
|
49732
49702
|
if (width - dx < minWidth) {
|
|
49733
49703
|
left += width - minWidth;
|
|
49734
49704
|
width = minWidth;
|
|
@@ -49737,13 +49707,12 @@ function onImageResize(ctx, globalCache, e) {
|
|
|
49737
49707
|
width -= dx;
|
|
49738
49708
|
}
|
|
49739
49709
|
if (left < 0) left = 0;
|
|
49740
|
-
|
|
49741
|
-
imgContainer.style.left = "".concat(left, "px");
|
|
49710
|
+
box.style.left = "".concat(left, "px");
|
|
49742
49711
|
}
|
|
49743
|
-
if (["rm", "rt", "rb"].includes(
|
|
49712
|
+
if (["rm", "rt", "rb"].includes(commentBox.resizingSide)) {
|
|
49744
49713
|
width = width + dx < minWidth ? minWidth : width + dx;
|
|
49745
49714
|
}
|
|
49746
|
-
if (["mt", "lt", "rt"].includes(
|
|
49715
|
+
if (["mt", "lt", "rt"].includes(commentBox.resizingSide)) {
|
|
49747
49716
|
if (height - dy < minHeight) {
|
|
49748
49717
|
top += height - minHeight;
|
|
49749
49718
|
height = minHeight;
|
|
@@ -49752,36 +49721,115 @@ function onImageResize(ctx, globalCache, e) {
|
|
|
49752
49721
|
height -= dy;
|
|
49753
49722
|
}
|
|
49754
49723
|
if (top < 0) top = 0;
|
|
49755
|
-
|
|
49756
|
-
imgContainer.style.top = "".concat(top, "px");
|
|
49724
|
+
box.style.top = "".concat(top, "px");
|
|
49757
49725
|
}
|
|
49758
|
-
if (["mb", "lb", "rb"].includes(
|
|
49726
|
+
if (["mb", "lb", "rb"].includes(commentBox.resizingSide)) {
|
|
49759
49727
|
height = height + dy < minHeight ? minHeight : height + dy;
|
|
49760
49728
|
}
|
|
49761
|
-
|
|
49762
|
-
|
|
49763
|
-
img.style.height = "".concat(height, "px");
|
|
49764
|
-
imgContainer.style.height = "".concat(height, "px");
|
|
49765
|
-
img.style.backgroundSize = "".concat(width, "px ").concat(height, "px");
|
|
49729
|
+
box.style.width = "".concat(width, "px");
|
|
49730
|
+
box.style.height = "".concat(height, "px");
|
|
49766
49731
|
return true;
|
|
49767
49732
|
}
|
|
49768
49733
|
return false;
|
|
49769
49734
|
}
|
|
49770
|
-
function
|
|
49771
|
-
var _globalCache$
|
|
49772
|
-
if ((_globalCache$
|
|
49773
|
-
|
|
49774
|
-
|
|
49735
|
+
function onCommentBoxResizeEnd(ctx, globalCache) {
|
|
49736
|
+
var _globalCache$commentB;
|
|
49737
|
+
if ((_globalCache$commentB = globalCache.commentBox) === null || _globalCache$commentB === void 0 ? void 0 : _globalCache$commentB.resizingId) {
|
|
49738
|
+
var _globalCache$commentB2 = globalCache.commentBox,
|
|
49739
|
+
resizingId = _globalCache$commentB2.resizingId,
|
|
49740
|
+
_globalCache$commentB3 = _globalCache$commentB2.commentRC,
|
|
49741
|
+
r = _globalCache$commentB3.r,
|
|
49742
|
+
c = _globalCache$commentB3.c;
|
|
49743
|
+
globalCache.commentBox.resizingId = undefined;
|
|
49744
|
+
var position = getCommentBoxPosition(resizingId);
|
|
49775
49745
|
if (position) {
|
|
49776
|
-
var
|
|
49777
|
-
|
|
49778
|
-
|
|
49779
|
-
|
|
49780
|
-
|
|
49781
|
-
|
|
49782
|
-
|
|
49783
|
-
|
|
49784
|
-
|
|
49746
|
+
var top = position.top,
|
|
49747
|
+
left = position.left,
|
|
49748
|
+
width = position.width,
|
|
49749
|
+
height = position.height;
|
|
49750
|
+
var flowdata = getFlowdata(ctx);
|
|
49751
|
+
var cell = flowdata === null || flowdata === void 0 ? void 0 : flowdata[r][c];
|
|
49752
|
+
if (!flowdata || !(cell === null || cell === void 0 ? void 0 : cell.ps)) return;
|
|
49753
|
+
cell.ps.left = left / ctx.zoomRatio;
|
|
49754
|
+
cell.ps.top = top / ctx.zoomRatio;
|
|
49755
|
+
cell.ps.width = width / ctx.zoomRatio;
|
|
49756
|
+
cell.ps.height = height / ctx.zoomRatio;
|
|
49757
|
+
setEditingComment(ctx, flowdata, r, c);
|
|
49758
|
+
if (ctx.hooks.afterUpdateComment) {
|
|
49759
|
+
var _ctx$hooks$afterUpdat5, _ctx$hooks10;
|
|
49760
|
+
(_ctx$hooks$afterUpdat5 = (_ctx$hooks10 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat5 === void 0 ? void 0 : _ctx$hooks$afterUpdat5.call(_ctx$hooks10, r, c, _objectSpread2({}, cell.ps), true);
|
|
49761
|
+
}
|
|
49762
|
+
}
|
|
49763
|
+
}
|
|
49764
|
+
}
|
|
49765
|
+
function onCommentBoxMoveStart(ctx, globalCache, e, _ref4, movingId) {
|
|
49766
|
+
var r = _ref4.r,
|
|
49767
|
+
c = _ref4.c,
|
|
49768
|
+
rc = _ref4.rc;
|
|
49769
|
+
var position = getCommentBoxPosition(movingId);
|
|
49770
|
+
if (position) {
|
|
49771
|
+
var top = position.top,
|
|
49772
|
+
left = position.left;
|
|
49773
|
+
_.set(globalCache, "commentBox", {
|
|
49774
|
+
cursorMoveStartPosition: {
|
|
49775
|
+
x: e.pageX,
|
|
49776
|
+
y: e.pageY
|
|
49777
|
+
},
|
|
49778
|
+
movingId: movingId,
|
|
49779
|
+
commentRC: {
|
|
49780
|
+
r: r,
|
|
49781
|
+
c: c,
|
|
49782
|
+
rc: rc
|
|
49783
|
+
},
|
|
49784
|
+
boxInitialPosition: {
|
|
49785
|
+
left: left,
|
|
49786
|
+
top: top
|
|
49787
|
+
}
|
|
49788
|
+
});
|
|
49789
|
+
}
|
|
49790
|
+
}
|
|
49791
|
+
function onCommentBoxMove(ctx, globalCache, e) {
|
|
49792
|
+
var commentBox = globalCache === null || globalCache === void 0 ? void 0 : globalCache.commentBox;
|
|
49793
|
+
if (commentBox === null || commentBox === void 0 ? void 0 : commentBox.movingId) {
|
|
49794
|
+
var box = document.getElementById(commentBox.movingId);
|
|
49795
|
+
var _commentBox$cursorMov2 = commentBox.cursorMoveStartPosition,
|
|
49796
|
+
startX = _commentBox$cursorMov2.x,
|
|
49797
|
+
startY = _commentBox$cursorMov2.y;
|
|
49798
|
+
var _commentBox$boxInitia2 = commentBox.boxInitialPosition,
|
|
49799
|
+
top = _commentBox$boxInitia2.top,
|
|
49800
|
+
left = _commentBox$boxInitia2.left;
|
|
49801
|
+
left += e.pageX - startX;
|
|
49802
|
+
top += e.pageY - startY;
|
|
49803
|
+
if (top < 0) top = 0;
|
|
49804
|
+
if (left < 0) left = 0;
|
|
49805
|
+
box.style.left = "".concat(left, "px");
|
|
49806
|
+
box.style.top = "".concat(top, "px");
|
|
49807
|
+
return true;
|
|
49808
|
+
}
|
|
49809
|
+
return false;
|
|
49810
|
+
}
|
|
49811
|
+
function onCommentBoxMoveEnd(ctx, globalCache) {
|
|
49812
|
+
var _globalCache$commentB4;
|
|
49813
|
+
if ((_globalCache$commentB4 = globalCache.commentBox) === null || _globalCache$commentB4 === void 0 ? void 0 : _globalCache$commentB4.movingId) {
|
|
49814
|
+
var _globalCache$commentB5 = globalCache.commentBox,
|
|
49815
|
+
movingId = _globalCache$commentB5.movingId,
|
|
49816
|
+
_globalCache$commentB6 = _globalCache$commentB5.commentRC,
|
|
49817
|
+
r = _globalCache$commentB6.r,
|
|
49818
|
+
c = _globalCache$commentB6.c;
|
|
49819
|
+
globalCache.commentBox.movingId = undefined;
|
|
49820
|
+
var position = getCommentBoxPosition(movingId);
|
|
49821
|
+
if (position) {
|
|
49822
|
+
var top = position.top,
|
|
49823
|
+
left = position.left;
|
|
49824
|
+
var flowdata = getFlowdata(ctx);
|
|
49825
|
+
var cell = flowdata === null || flowdata === void 0 ? void 0 : flowdata[r][c];
|
|
49826
|
+
if (!flowdata || !(cell === null || cell === void 0 ? void 0 : cell.ps)) return;
|
|
49827
|
+
cell.ps.left = left / ctx.zoomRatio;
|
|
49828
|
+
cell.ps.top = top / ctx.zoomRatio;
|
|
49829
|
+
setEditingComment(ctx, flowdata, r, c);
|
|
49830
|
+
if (ctx.hooks.afterUpdateComment) {
|
|
49831
|
+
var _ctx$hooks$afterUpdat6, _ctx$hooks11;
|
|
49832
|
+
(_ctx$hooks$afterUpdat6 = (_ctx$hooks11 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat6 === void 0 ? void 0 : _ctx$hooks$afterUpdat6.call(_ctx$hooks11, r, c, _objectSpread2({}, cell.ps), true);
|
|
49785
49833
|
}
|
|
49786
49834
|
}
|
|
49787
49835
|
}
|
|
@@ -56496,13 +56544,9 @@ function handleCopy(ctx) {
|
|
|
56496
56544
|
ctx.luckysheet_paste_iscut = false;
|
|
56497
56545
|
}
|
|
56498
56546
|
|
|
56499
|
-
function handleGlobalEnter(ctx, cellInput, e, canvas) {
|
|
56500
|
-
|
|
56501
|
-
|
|
56502
|
-
var last = (_ctx$luckysheet_selec = ctx.luckysheet_select_save) === null || _ctx$luckysheet_selec === void 0 ? void 0 : _ctx$luckysheet_selec[ctx.luckysheet_select_save.length - 1];
|
|
56503
|
-
if (last && !_.isNil(last.row_focus) && !_.isNil(last.column_focus)) ;
|
|
56504
|
-
e.preventDefault();
|
|
56505
|
-
} else if (ctx.luckysheetCellUpdate.length > 0) {
|
|
56547
|
+
function handleGlobalEnter(ctx, cellInput, e, canvas, refs) {
|
|
56548
|
+
var _ctx$active_f;
|
|
56549
|
+
function setValue() {
|
|
56506
56550
|
var lastCellUpdate = _.clone(ctx.luckysheetCellUpdate);
|
|
56507
56551
|
updateCell(ctx, ctx.luckysheetCellUpdate[0], ctx.luckysheetCellUpdate[1], cellInput, undefined, canvas);
|
|
56508
56552
|
ctx.luckysheet_select_save = [{
|
|
@@ -56513,6 +56557,18 @@ function handleGlobalEnter(ctx, cellInput, e, canvas) {
|
|
|
56513
56557
|
}];
|
|
56514
56558
|
moveHighlightCell(ctx, "down", 1, "rangeOfSelect");
|
|
56515
56559
|
e.preventDefault();
|
|
56560
|
+
}
|
|
56561
|
+
if ((e.altKey || e.metaKey) && ctx.luckysheetCellUpdate.length > 0) {
|
|
56562
|
+
var _ctx$luckysheet_selec;
|
|
56563
|
+
var last = (_ctx$luckysheet_selec = ctx.luckysheet_select_save) === null || _ctx$luckysheet_selec === void 0 ? void 0 : _ctx$luckysheet_selec[ctx.luckysheet_select_save.length - 1];
|
|
56564
|
+
if (last && !_.isNil(last.row_focus) && !_.isNil(last.column_focus)) ;
|
|
56565
|
+
e.preventDefault();
|
|
56566
|
+
} else if (ctx.luckysheetCellUpdate.length > 0) {
|
|
56567
|
+
setValue();
|
|
56568
|
+
} else if ((_ctx$active_f = ctx.active_f) === null || _ctx$active_f === void 0 ? void 0 : _ctx$active_f.sheetId) {
|
|
56569
|
+
var _ctx$active_f2;
|
|
56570
|
+
setNextSheet(ctx, (_ctx$active_f2 = ctx.active_f) === null || _ctx$active_f2 === void 0 ? void 0 : _ctx$active_f2.sheetId, refs);
|
|
56571
|
+
setValue();
|
|
56516
56572
|
} else {
|
|
56517
56573
|
var _ctx$luckysheet_selec2, _ctx$luckysheet_selec3;
|
|
56518
56574
|
if (((_ctx$luckysheet_selec2 = (_ctx$luckysheet_selec3 = ctx.luckysheet_select_save) === null || _ctx$luckysheet_selec3 === void 0 ? void 0 : _ctx$luckysheet_selec3.length) !== null && _ctx$luckysheet_selec2 !== void 0 ? _ctx$luckysheet_selec2 : 0) > 0) {
|
|
@@ -56658,7 +56714,7 @@ function handleArrowKey(ctx, e) {
|
|
|
56658
56714
|
break;
|
|
56659
56715
|
}
|
|
56660
56716
|
}
|
|
56661
|
-
function handleGlobalKeyDown(ctx, cellInput, fxInput, e, cache, handleUndo, handleRedo, canvas) {
|
|
56717
|
+
function handleGlobalKeyDown(ctx, cellInput, fxInput, e, cache, handleUndo, handleRedo, canvas, refs) {
|
|
56662
56718
|
ctx.luckysheet_select_status = false;
|
|
56663
56719
|
var kcode = e.keyCode;
|
|
56664
56720
|
var kstr = e.key;
|
|
@@ -56674,7 +56730,7 @@ function handleGlobalKeyDown(ctx, cellInput, fxInput, e, cache, handleUndo, hand
|
|
|
56674
56730
|
}
|
|
56675
56731
|
if (kstr === "Enter") {
|
|
56676
56732
|
if (!allowEdit) return;
|
|
56677
|
-
handleGlobalEnter(ctx, cellInput, e, canvas);
|
|
56733
|
+
handleGlobalEnter(ctx, cellInput, e, canvas, refs);
|
|
56678
56734
|
} else if (kstr === "Tab") {
|
|
56679
56735
|
if (ctx.luckysheetCellUpdate.length > 0) {
|
|
56680
56736
|
return;
|
|
@@ -57563,7 +57619,7 @@ function handleContextMenu(ctx, settings, e, workbookContainer, container, area)
|
|
|
57563
57619
|
}
|
|
57564
57620
|
}
|
|
57565
57621
|
function mouseRender(ctx, globalCache, e, cellInput, scrollX, scrollY, container, fxInput) {
|
|
57566
|
-
var _ctx$rangeDialog;
|
|
57622
|
+
var _ctx$rangeDialog, _ctx$rangeDialog2;
|
|
57567
57623
|
var rect = container.getBoundingClientRect();
|
|
57568
57624
|
if (ctx.luckysheet_scroll_status && !ctx.luckysheet_cols_change_size && !ctx.luckysheet_rows_change_size) {
|
|
57569
57625
|
var left = ctx.scrollLeft;
|
|
@@ -57591,7 +57647,8 @@ function mouseRender(ctx, globalCache, e, cellInput, scrollX, scrollY, container
|
|
|
57591
57647
|
scrollX.scrollLeft = sleft;
|
|
57592
57648
|
}
|
|
57593
57649
|
}
|
|
57594
|
-
|
|
57650
|
+
console.log('ctx.rangeDialog?.singleSelect', (_ctx$rangeDialog = ctx.rangeDialog) === null || _ctx$rangeDialog === void 0 ? void 0 : _ctx$rangeDialog.singleSelect);
|
|
57651
|
+
if ((_ctx$rangeDialog2 = ctx.rangeDialog) === null || _ctx$rangeDialog2 === void 0 ? void 0 : _ctx$rangeDialog2.singleSelect) {
|
|
57595
57652
|
return;
|
|
57596
57653
|
}
|
|
57597
57654
|
if (ctx.luckysheet_select_status) {
|
|
@@ -60279,4 +60336,4 @@ function handlePasteByClick(ctx, triggerType) {
|
|
|
60279
60336
|
} else if (data.indexOf("leankylin-copy-action-image") > -1) ; else ;
|
|
60280
60337
|
}
|
|
60281
60338
|
|
|
60282
|
-
export { CFSplitRange, Canvas, FormulaCache, MAX_ZOOM_RATIO, MIN_ZOOM_RATIO, addSheet, index as api, applyLocation, attrToCssName, autoSelectionFormula, calcSelectionInfo, cancelActiveImgItem, cancelFunctionrangeSelected, cancelNormalSelected, cancelPaintModel, cellFocus, cfSplitRange, changeSheet, chatatABC, checkCF, checkCellIsLocked, checkProtectionAllSelected, checkProtectionFormatCells, checkProtectionSelectLockedOrUnLockedCells, checkboxChange, clearFilter, clearMeasureTextCache, colHasMerged, colLocation, colLocationByIndex, colors, columnCharToIndex, commentBoxProps, compute, computeRowlenArr, confirmMessage, convertCssToStyleList, convertSpanToShareString, copy, copy2, createDropCellRange, createFilter, createFilterOptions, createFormulaRangeSelect, createRangeHightlight, dataRangeSelection, datenum_local, defaultContext, defaultFont, defaultSettings, defaultStyle, delFunctionGroup, deleteCellInSave, deleteComment, deleteRowCol, deleteSelectedCellText, deleteSheet, diff, drawArrow, drawLineInfo, dropCellCache, editComment, editSheetName, ensureSheetIndex, error, escapeHTMLTag, escapeScriptTag, execFunctionGroup, execfunction, expandRowsAndColumns, extractFormulaCellOps, filterPatch, fixColumnStyleOverflowInFreeze, fixPositionOnFrozenCells, fixRowStyleOverflowInFreeze, functionCopy, functionHTMLGenerate, functionStrChange, genarate, generateRandomId, generateRandomSheetName, getAllFunctionGroup, getArrowCanvasSize, getBorderInfoCompute, getBorderInfoComputeRange, getCellHyperlink, getCellRowColumn, getCellTextInfo, getCellTopRightPostion, getCellValue, getClipboardContent, getColMerge, getColorGradation, getCommentBoxByRC, getCommentBoxPosition, getComputeMap, getCurrentRules, getDataArr, getDataBySelectionNoCopy, getDropdownList, getFailureText, getFilterColumnColors, getFilterColumnValues, getFlattenedRange, getFlowdata, getFontSet, getFontStyleByCell, getFrozenHandleLeft, getFrozenHandleTop, getHLColor, getHintText, getHistoryRules, getInlineStringHTML, getInlineStringNoStyle, getMeasureText, getNowDateTime, getNullData, getOptionValue, getOrigincell, getQKBorder, getRange, getRangeArr, getRangeByTxt, getRangetxt, getRealCellValue, getRegExpStr, getRegStr, getRowMerge, getSearchIndexArr, getSelectRange, getSheetByIndex, getSheetIdByName, getSheetIndex, getStyleByCell, getTypeItemHide, getcellFormula, getcellrange, getdatabyselection, getrangeseleciton, goToLink, groupValuesRefresh, handleArrowKey, handleBold, handleBorder, handleCellAreaDoubleClick, handleCellAreaDragOver, handleCellAreaMouseDown, handleCellAreaMouseMove, handleCellDrop, handleClearFormat, handleColFreezeHandleMouseDown, handleColSizeHandleMouseDown, handleColumnHeaderMouseDown, handleContextMenu, handleCopy, handleCurrencyFormat, handleFormatPainter, handleFormulaInput, handleFreeze, handleGlobalEnter, handleGlobalKeyDown, handleGlobalWheel, handleHorizontalAlign, handleItalic, handleKeydownForZoom, handleLink, handleMerge, handleNumberDecrease, handleNumberIncrease, handleOverlayMouseMove, handleOverlayMouseUp, handleOverlayTouchEnd, handleOverlayTouchMove, handleOverlayTouchStart, handlePaste, handlePasteByClick, handlePasteByLeanklin, handlePercentageFormat, handleRowFreezeHandleMouseDown, handleRowHeaderMouseDown, handleRowSizeHandleMouseDown, handleScreenShot, handleSort, handleStrikeThrough, handleSum, handleTextBackground, handleTextColor, handleTextSize, handleUnderline, handleVerticalAlign, handleWithCtrlOrMetaKey, hasChinaword, hasPartMC, hideCRCount, hideDropCellSelection, hideSelected, imageProps, indexToColumnChar, initFreeze, initSheetIndex, inlineStyleAffectAttribute, inlineStyleAffectCssName, insertImage, insertRowCol, insertUpdateFunctionGroup, inverseRowColOptions, isAllSelectedCellsInStatus, isAllowEdit, isInlineStringCT, isInlineStringCell, isLinkValid, isRealNull, isRealNum, isShowHidenCR, isSupportBoundingBox, is_date, iscelldata, isdatatype, isdatatypemulti, isdatetime, israngeseleciton, jfrefreshgrid, labelFilterOptionState, locale, luckysheetUpdateCell, mergeBorder, mergeCells, mergeMoveMain, mousePosition, moveHighlightCell, moveHighlightRange, moveToEnd, newComment, normalizeSelection, normalizedAttr, normalizedCellAttr, onCellsMove, onCellsMoveEnd, onCellsMoveStart, onCommentBoxMove, onCommentBoxMoveEnd, onCommentBoxMoveStart, onCommentBoxResize, onCommentBoxResizeEnd, onCommentBoxResizeStart, onDropCellSelect, onDropCellSelectEnd, onFormulaRangeDragEnd, onImageMove, onImageMoveEnd, onImageMoveStart, onImageResize, onImageResizeEnd, onImageResizeStart, onRangeSelectionModalMove, onRangeSelectionModalMoveEnd, onRangeSelectionModalMoveStart, onSearchDialogMove, onSearchDialogMoveEnd, onSearchDialogMoveStart, opToPatch, orderbydata, orderbydatafiler, overShowComment, pasteHandlerOfPaintModel, patchToOp, rangeDrag, rangeDragColumn, rangeDragRow, rangeHightlightselected, rangeSetValue, rangeValueToHtml, removeActiveImage, removeEditingComment, removeHyperlink, replace, replaceAll, replaceHtml, rgbToHex, rowHasMerged, rowLocation, rowLocationByIndex, saveFilter, saveHyperlink, saveImage, scrollToFrozenRowCol, scrollToHighlightCell, searchAll, searchNext, selectAll, selectIsOverlap, selectTextContent, selectTextContentCross, selectTitlesMap, selectTitlesRange, selectionCache, selectionCopyShow, seletedHighlistByindex, setCaretPosition, setCellValue, setConditionRules, setDropcownValue, setEditingComment, showComments, showDropCellSelection, showHideAllComments, showHideComment, showImgChooser, showLinkCard, showSelected, sortDataRange, sortSelection, storeSheetParamALL, toolbarItemClickHandler, toolbarItemSelectedFunc, update, updateCell, updateContextWithCanvas, updateContextWithSheetData, updateDropCell, updateFormat, updateFormatCell, updateInlineStringFormat, updateInlineStringFormatOutside, updateItem, updateMoreCell, updateSheet, validateCellData, validateIdCard, valueIsError, valueShowEs };
|
|
60339
|
+
export { CFSplitRange, Canvas, FormulaCache, MAX_ZOOM_RATIO, MIN_ZOOM_RATIO, addSheet, index as api, applyLocation, attrToCssName, autoSelectionFormula, calcSelectionInfo, cancelActiveImgItem, cancelFunctionrangeSelected, cancelNormalSelected, cancelPaintModel, cellFocus, cfSplitRange, changeSheet, chatatABC, checkCF, checkCellIsLocked, checkProtectionAllSelected, checkProtectionFormatCells, checkProtectionSelectLockedOrUnLockedCells, checkboxChange, clearFilter, clearMeasureTextCache, colHasMerged, colLocation, colLocationByIndex, colors, columnCharToIndex, commentBoxProps, compute, computeRowlenArr, confirmMessage, convertCssToStyleList, convertSpanToShareString, copy, copy2, createDropCellRange, createFilter, createFilterOptions, createFormulaRangeSelect, createRangeHightlight, dataRangeSelection, datenum_local, defaultContext, defaultFont, defaultSettings, defaultStyle, delFunctionGroup, deleteCellInSave, deleteComment, deleteRowCol, deleteSelectedCellText, deleteSheet, diff, drawArrow, drawLineInfo, dropCellCache, editComment, editSheetName, ensureSheetIndex, error, escapeHTMLTag, escapeScriptTag, execFunctionGroup, execfunction, expandRowsAndColumns, extractFormulaCellOps, filterPatch, fixColumnStyleOverflowInFreeze, fixPositionOnFrozenCells, fixRowStyleOverflowInFreeze, functionCopy, functionHTMLGenerate, functionStrChange, genarate, generateRandomId, generateRandomSheetName, getAllFunctionGroup, getArrowCanvasSize, getBorderInfoCompute, getBorderInfoComputeRange, getCellHyperlink, getCellRowColumn, getCellTextInfo, getCellTopRightPostion, getCellValue, getClipboardContent, getColMerge, getColorGradation, getCommentBoxByRC, getCommentBoxPosition, getComputeMap, getCurrentRules, getDataArr, getDataBySelectionNoCopy, getDropdownList, getFailureText, getFilterColumnColors, getFilterColumnValues, getFlattenedRange, getFlowdata, getFontSet, getFontStyleByCell, getFrozenHandleLeft, getFrozenHandleTop, getHLColor, getHintText, getHistoryRules, getInlineStringHTML, getInlineStringNoStyle, getMeasureText, getNowDateTime, getNullData, getOptionValue, getOrigincell, getQKBorder, getRange, getRangeArr, getRangeByTxt, getRangetxt, getRealCellValue, getRegExpStr, getRegStr, getRowMerge, getSearchIndexArr, getSelectRange, getSheetByIndex, getSheetIdByName, getSheetIndex, getStyleByCell, getTypeItemHide, getcellFormula, getcellrange, getdatabyselection, getrangeseleciton, goToLink, groupValuesRefresh, handleArrowKey, handleBold, handleBorder, handleCellAreaDoubleClick, handleCellAreaDragOver, handleCellAreaMouseDown, handleCellAreaMouseMove, handleCellDrop, handleClearFormat, handleColFreezeHandleMouseDown, handleColSizeHandleMouseDown, handleColumnHeaderMouseDown, handleContextMenu, handleCopy, handleCurrencyFormat, handleFormatPainter, handleFormulaInput, handleFreeze, handleGlobalEnter, handleGlobalKeyDown, handleGlobalWheel, handleHorizontalAlign, handleItalic, handleKeydownForZoom, handleLink, handleMerge, handleNumberDecrease, handleNumberIncrease, handleOverlayMouseMove, handleOverlayMouseUp, handleOverlayTouchEnd, handleOverlayTouchMove, handleOverlayTouchStart, handlePaste, handlePasteByClick, handlePasteByLeanklin, handlePercentageFormat, handleRowFreezeHandleMouseDown, handleRowHeaderMouseDown, handleRowSizeHandleMouseDown, handleScreenShot, handleSort, handleStrikeThrough, handleSum, handleTextBackground, handleTextColor, handleTextSize, handleUnderline, handleVerticalAlign, handleWithCtrlOrMetaKey, hasChinaword, hasPartMC, hideCRCount, hideDropCellSelection, hideSelected, imageProps, indexToColumnChar, initFreeze, initSheetIndex, inlineStyleAffectAttribute, inlineStyleAffectCssName, insertImage, insertRowCol, insertUpdateFunctionGroup, inverseRowColOptions, isAllSelectedCellsInStatus, isAllowEdit, isInlineStringCT, isInlineStringCell, isLinkValid, isRealNull, isRealNum, isShowHidenCR, isSupportBoundingBox, is_date, iscelldata, isdatatype, isdatatypemulti, isdatetime, israngeseleciton, jfrefreshgrid, labelFilterOptionState, locale, luckysheetUpdateCell, mergeBorder, mergeCells, mergeMoveMain, mousePosition, moveHighlightCell, moveHighlightRange, moveToEnd, newComment, normalizeSelection, normalizedAttr, normalizedCellAttr, onCellsMove, onCellsMoveEnd, onCellsMoveStart, onCommentBoxMove, onCommentBoxMoveEnd, onCommentBoxMoveStart, onCommentBoxResize, onCommentBoxResizeEnd, onCommentBoxResizeStart, onDropCellSelect, onDropCellSelectEnd, onFormulaRangeDragEnd, onImageMove, onImageMoveEnd, onImageMoveStart, onImageResize, onImageResizeEnd, onImageResizeStart, onRangeSelectionModalMove, onRangeSelectionModalMoveEnd, onRangeSelectionModalMoveStart, onSearchDialogMove, onSearchDialogMoveEnd, onSearchDialogMoveStart, opToPatch, orderbydata, orderbydatafiler, overShowComment, pasteHandlerOfPaintModel, patchToOp, rangeDrag, rangeDragColumn, rangeDragRow, rangeHightlightselected, rangeSetValue, rangeValueToHtml, removeActiveImage, removeEditingComment, removeHyperlink, replace, replaceAll, replaceHtml, rgbToHex, rowHasMerged, rowLocation, rowLocationByIndex, saveFilter, saveHyperlink, saveImage, scrollToFrozenRowCol, scrollToHighlightCell, searchAll, searchNext, selectAll, selectIsOverlap, selectTextContent, selectTextContentCross, selectTitlesMap, selectTitlesRange, selectionCache, selectionCopyShow, seletedHighlistByindex, setCaretPosition, setCellValue, setConditionRules, setDropcownValue, setEditingComment, setNextSheet, showComments, showDropCellSelection, showHideAllComments, showHideComment, showImgChooser, showLinkCard, showSelected, sortDataRange, sortSelection, storeSheetParamALL, toolbarItemClickHandler, toolbarItemSelectedFunc, update, updateCell, updateContextWithCanvas, updateContextWithSheetData, updateDropCell, updateFormat, updateFormatCell, updateInlineStringFormat, updateInlineStringFormatOutside, updateItem, updateMoreCell, updateSheet, validateCellData, validateIdCard, valueIsError, valueShowEs };
|