mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
perf(ui): disable stroke, perfect draw on compositing rect
This commit is contained in:
parent
f9bc96e497
commit
5a98d7a1f6
@ -8,7 +8,11 @@ import type { CanvasLayerAdapter } from 'features/controlLayers/konva/CanvasLaye
|
|||||||
import type { CanvasManager } from 'features/controlLayers/konva/CanvasManager';
|
import type { CanvasManager } from 'features/controlLayers/konva/CanvasManager';
|
||||||
import type { CanvasMaskAdapter } from 'features/controlLayers/konva/CanvasMaskAdapter';
|
import type { CanvasMaskAdapter } from 'features/controlLayers/konva/CanvasMaskAdapter';
|
||||||
import { CanvasRectRenderer } from 'features/controlLayers/konva/CanvasRect';
|
import { CanvasRectRenderer } from 'features/controlLayers/konva/CanvasRect';
|
||||||
import { getPrefixedId, konvaNodeToBlob, previewBlob } from 'features/controlLayers/konva/util';
|
import {
|
||||||
|
getPrefixedId,
|
||||||
|
konvaNodeToBlob,
|
||||||
|
previewBlob,
|
||||||
|
} from 'features/controlLayers/konva/util';
|
||||||
import {
|
import {
|
||||||
type CanvasBrushLineState,
|
type CanvasBrushLineState,
|
||||||
type CanvasEraserLineState,
|
type CanvasEraserLineState,
|
||||||
@ -105,8 +109,10 @@ export class CanvasObjectRenderer {
|
|||||||
if (this.parent.type === 'inpaint_mask' || this.parent.type === 'regional_guidance') {
|
if (this.parent.type === 'inpaint_mask' || this.parent.type === 'regional_guidance') {
|
||||||
this.konva.compositingRect = new Konva.Rect({
|
this.konva.compositingRect = new Konva.Rect({
|
||||||
name: CanvasObjectRenderer.KONVA_COMPOSITING_RECT_NAME,
|
name: CanvasObjectRenderer.KONVA_COMPOSITING_RECT_NAME,
|
||||||
listening: false,
|
|
||||||
globalCompositeOperation: 'source-in',
|
globalCompositeOperation: 'source-in',
|
||||||
|
listening: false,
|
||||||
|
strokeEnabled: false,
|
||||||
|
perfectDrawEnabled: false,
|
||||||
});
|
});
|
||||||
this.parent.konva.layer.add(this.konva.compositingRect);
|
this.parent.konva.layer.add(this.konva.compositingRect);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user