File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
invokeai/frontend/web/src/features/controlLayers/konva Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ export class CanvasStagingAreaModule extends CanvasModuleBase {
48
48
group : Konva . Group ;
49
49
placeholder : {
50
50
group : Konva . Group ;
51
- rect : Konva . Rect ;
52
51
badgeBg : Konva . Rect ;
53
52
text : Konva . Text ;
54
53
} ;
@@ -71,8 +70,6 @@ export class CanvasStagingAreaModule extends CanvasModuleBase {
71
70
72
71
this . log . debug ( 'Creating module' ) ;
73
72
74
- const { width, height } = this . manager . stateApi . getBbox ( ) . rect ;
75
-
76
73
this . konva = {
77
74
group : new Konva . Group ( {
78
75
name : `${ this . type } :group` ,
@@ -84,14 +81,6 @@ export class CanvasStagingAreaModule extends CanvasModuleBase {
84
81
listening : false ,
85
82
visible : false ,
86
83
} ) ,
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
- } ) ,
95
84
badgeBg : new Konva . Rect ( {
96
85
name : `${ this . type } :placeholder_badge_bg` ,
97
86
fill : 'hsl(220 12% 10% / 0.8)' , // 'base.900' with opacity
@@ -124,7 +113,6 @@ export class CanvasStagingAreaModule extends CanvasModuleBase {
124
113
} ,
125
114
} ;
126
115
127
- this . konva . placeholder . group . add ( this . konva . placeholder . rect ) ;
128
116
this . konva . placeholder . group . add ( this . konva . placeholder . badgeBg ) ;
129
117
this . konva . placeholder . group . add ( this . konva . placeholder . text ) ;
130
118
this . konva . group . add ( this . konva . placeholder . group ) ;
You can’t perform that action at this time.
0 commit comments