默认的
修改后的:
全局代码:
canvas = new fa.Canvas('cabox', { backgroundColor: "transparent", selection: true // 保持默认选择功能 }); fabric.InteractiveFabricObject.ownDefaults = { ...fabric.InteractiveFabricObject.ownDefaults, // cornerStyle: 'round', cornerStrokeColor: 'blue', cornerColor: 'lightblue', cornerStyle: 'circle', padding: 10, transparentCorners: false, cornerDashArray: [2, 2], borderColor: 'orange', borderDashArray: [3, 1, 3], borderScaleFactor: 2, }