0
我想使hasControls邊框半徑匹配被選中的對象,所以我嘗試添加rx
和ry
直接,但它似乎沒有影響hasControls對象。FabricJS hasControls邊框半徑定製
var group = new fabric.Group([item, text], <any> {
left: params.x,
top: params.y,
transparentCorners: false,
lockRotation: true,
hasRotatingPoint: false,
borderColor: "yellow",
cornerColor: "yellow",
borderScaleFactor: .4,
rx: 4,
ry: 4
});