Skip to content

Commit df8751b

Browse files
fix(ui): remove extraneous rect in stagingareamodule
1 parent 651b80b commit df8751b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

invokeai/frontend/web/src/features/controlLayers/konva/CanvasStagingAreaModule.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ export class CanvasStagingAreaModule extends CanvasModuleBase {
4848
group: Konva.Group;
4949
placeholder: {
5050
group: Konva.Group;
51-
rect: Konva.Rect;
5251
badgeBg: Konva.Rect;
5352
text: Konva.Text;
5453
};
@@ -71,8 +70,6 @@ export class CanvasStagingAreaModule extends CanvasModuleBase {
7170

7271
this.log.debug('Creating module');
7372

74-
const { width, height } = this.manager.stateApi.getBbox().rect;
75-
7673
this.konva = {
7774
group: new Konva.Group({
7875
name: `${this.type}:group`,
@@ -84,14 +81,6 @@ export class CanvasStagingAreaModule extends CanvasModuleBase {
8481
listening: false,
8582
visible: false,
8683
}),
87-
rect: new Konva.Rect({
88-
name: `${this.type}:placeholder_rect`,
89-
fill: 'transparent',
90-
width,
91-
height,
92-
listening: false,
93-
perfectDrawEnabled: false,
94-
}),
9584
badgeBg: new Konva.Rect({
9685
name: `${this.type}:placeholder_badge_bg`,
9786
fill: 'hsl(220 12% 10% / 0.8)', // 'base.900' with opacity
@@ -124,7 +113,6 @@ export class CanvasStagingAreaModule extends CanvasModuleBase {
124113
},
125114
};
126115

127-
this.konva.placeholder.group.add(this.konva.placeholder.rect);
128116
this.konva.placeholder.group.add(this.konva.placeholder.badgeBg);
129117
this.konva.placeholder.group.add(this.konva.placeholder.text);
130118
this.konva.group.add(this.konva.placeholder.group);

0 commit comments

Comments
 (0)