Skip to content

Commit

Permalink
Merge pull request 'feature/shapes-merge' (#411) from feature/shapes-…
Browse files Browse the repository at this point in the history
…merge into release/v8.3.0
  • Loading branch information
SergeyLuzyanin committed Dec 12, 2024
2 parents c144b80 + 4a64883 commit 6adfea7
Show file tree
Hide file tree
Showing 13 changed files with 5,541 additions and 6 deletions.
1 change: 1 addition & 0 deletions build/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ module.exports = function(grunt) {
{
cwd: '../common/',
src: [
'Drawings/Format/Path.Boolean.min.js',
'Charts/ChartStyles.js',
'SmartArts/SmartArtData/*',
'SmartArts/SmartArtDrawing/*',
Expand Down
18 changes: 18 additions & 0 deletions cell/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -5275,6 +5275,22 @@ var editor;
ws.objectRender.unGroupGraphicObjects();
};

spreadsheet_api.prototype.asc_canMergeSelectedShapes = function (operation) {
return AscFormat.canMergeSelectedShapes(operation);
};
spreadsheet_api.prototype.asc_mergeSelectedShapes = function (operation) {
const controller = this.wb.getWorksheet().objectRender.controller;
if (controller.checkSelectedObjectsProtection())
return;

if (this.asc_canMergeSelectedShapes(operation)) {
controller.checkSelectedObjectsAndCallback(
AscFormat.mergeSelectedShapes, [operation], false,
AscDFH.historydescription_Presentation_MergeSelectedShapes
);
}
};

spreadsheet_api.prototype.asc_changeShapeType = function(value) {
this.asc_setGraphicObjectProps(new Asc.asc_CImgProperty({ShapeProperties: {type: value}}));
};
Expand Down Expand Up @@ -9879,6 +9895,8 @@ var editor;
prot["asc_groupGraphicsObjects"] = prot.asc_groupGraphicsObjects;
prot["asc_canUnGroupGraphicsObjects"] = prot.asc_canUnGroupGraphicsObjects;
prot["asc_unGroupGraphicsObjects"] = prot.asc_unGroupGraphicsObjects;
prot["asc_canMergeSelectedShapes"] = prot.asc_canMergeSelectedShapes;
prot["asc_mergeSelectedShapes"] = prot.asc_mergeSelectedShapes;
prot["asc_getGraphicObjectProps"] = prot.asc_getGraphicObjectProps;
prot["asc_GetSelectedText"] = prot.asc_GetSelectedText;
prot["asc_setGraphicObjectProps"] = prot.asc_setGraphicObjectProps;
Expand Down
Loading

0 comments on commit 6adfea7

Please sign in to comment.