修改library里面的sketch的generate

This commit is contained in:
X1627315083
2024-10-18 11:36:19 +08:00
parent f606a192d1
commit c14e72efb2
7 changed files with 168 additions and 76 deletions

View File

@@ -82,6 +82,9 @@ class myCanvas {
width: val.width?val.width:this.canvasDomParent.getBoundingClientRect().width,
height: val.height?val.height:this.canvasDomParent.getBoundingClientRect().height,
isDrawingMode: val.isDrawingMode, // 开启绘图模式
selectionFullyContained: true,
selectionKey:'ctrlKey',
includeDefaultValues: false,//尚未测试 精简导出JSON
});
if(!fabric.Object.prototype.controls.deleteControl){//设置元素删除