深度画布细节调整
This commit is contained in:
@@ -101,12 +101,15 @@ export class AISelectboxToolManager {
|
||||
}
|
||||
createIndicatorObject() {
|
||||
this.clearIndicatorObject()
|
||||
var color = 'rgba(0, 255, 0, 0.5)'
|
||||
if (this.toolManager.currentTool.value === OperationType.AISELECT_REMOVE) {
|
||||
color = 'rgba(255, 0, 0, 0.5)'
|
||||
}
|
||||
const rect = new fabric.Rect({
|
||||
left: this.startX,
|
||||
top: this.startY,
|
||||
width: 0,
|
||||
height: 0,
|
||||
fill: 'transparent',
|
||||
fill: color,
|
||||
stroke: '#000',
|
||||
strokeWidth: 1,
|
||||
evented: false,
|
||||
|
||||
@@ -101,8 +101,6 @@ export class CanvasManager {
|
||||
})
|
||||
}
|
||||
this.canvas = createCanvas(options.canvasRef.value, {
|
||||
preserveObjectStacking: true,
|
||||
enableRetinaScaling: true,
|
||||
backgroundColor: '#fff',
|
||||
})
|
||||
if (image) {
|
||||
|
||||
Reference in New Issue
Block a user