@@ -31,9 +31,9 @@ const RegionComponents = {
3131 />
3232 </ g >
3333 ) ) ,
34- polygon : memo ( ( { region, iw, ih, fullImageSegmentationMode } ) => {
34+ polygon : memo ( ( { region, iw, ih, fullSegmentationMode } ) => {
3535 const Component = region . open ? "polyline" : "polygon"
36- const alphaBase = fullImageSegmentationMode ? 0.5 : 1
36+ const alphaBase = fullSegmentationMode ? 0.5 : 1
3737 return (
3838 < Component
3939 points = { region . points
@@ -113,7 +113,7 @@ const RegionComponents = {
113113}
114114
115115export const WrappedRegionList = memo (
116- ( { regions, iw, ih, fullImageSegmentationMode } ) => {
116+ ( { regions, iw, ih, fullSegmentationMode } ) => {
117117 return regions
118118 . filter ( ( r ) => r . visible !== false )
119119 . map ( ( r ) => {
@@ -124,15 +124,20 @@ export const WrappedRegionList = memo(
124124 region = { r }
125125 iw = { iw }
126126 ih = { ih }
127- fullImageSegmentationMode = { fullSegmentationMode }
127+ fullgeSegmentationMode = { fullSegmentationMode }
128128 />
129129 )
130130 } )
131131 } ,
132132 ( n , p ) => n . regions === p . regions && n . iw === p . iw && n . ih === p . ih
133133)
134134
135- export const RegionShapes = ( { mat, imagePosition, regions = [ ] } ) => {
135+ export const RegionShapes = ( {
136+ mat,
137+ imagePosition,
138+ regions = [ ] ,
139+ fullSegmentationMode,
140+ } ) => {
136141 const iw = imagePosition . bottomRight . x - imagePosition . topLeft . x
137142 const ih = imagePosition . bottomRight . y - imagePosition . topLeft . y
138143 if ( isNaN ( iw ) || isNaN ( ih ) ) return null
@@ -150,7 +155,12 @@ export const RegionShapes = ({ mat, imagePosition, regions = [] }) => {
150155 height : ih ,
151156 } }
152157 >
153- < WrappedRegionList regions = { regions } iw = { iw } ih = { ih } />
158+ < WrappedRegionList
159+ regions = { regions }
160+ iw = { iw }
161+ ih = { ih }
162+ fullSegmentationMode = { fullSegmentationMode }
163+ />
154164 </ svg >
155165 )
156166}
0 commit comments