如图,希望1、右击的时候,不显示这个菜单 或者 这个菜单的按钮是禁用状态。
2、ctrl+x 和 ctrl+c 时,不剪切复制这个红框。
红框由以下代码生成
let groupShapes = [
{
flag:"_top",
params:[left, top, right, top]
},
{
flag:"_bottom",
params:[left, bottom, right, bottom]
},
{
flag:"_left",
params:[left, top, left, bottom]
},
{
flag:"_right",
params:[right, top, right, bottom]
}
].map(item=>{
let tempShape = sheet.shapes.addConnector(shapeName + item.flag,
GC.Spread.Sheets.Shapes.ConnectorType.straight, ...item.params);
let oldStyle = tempShape.style();
oldStyle.line.color = shapeColor;
tempShape.style(oldStyle);
return tempShape;
})
|