Skip to content

Commit d44b83b

Browse files
committed
Fix typos
Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
1 parent f0cb8df commit d44b83b

File tree

14 files changed

+29
-29
lines changed

14 files changed

+29
-29
lines changed

label_studio/feature_flags.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
"version": 2,
5656
"deleted": false
5757
},
58-
"feat_front_dev_3260_alternative_shortcuts_for_video_naviagtion": {
59-
"key": "feat_front_dev_3260_alternative_shortcuts_for_video_naviagtion",
58+
"feat_front_dev_3260_alternative_shortcuts_for_video_navigation": {
59+
"key": "feat_front_dev_3260_alternative_shortcuts_for_video_navigation",
6060
"on": false,
6161
"prerequisites": [],
6262
"targets": [],

web/libs/editor/LSF.init.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# LSF init
22

3-
Different thoughts and investingations related to LSF init.
3+
Different thoughts and investigations related to LSF init.
44

55
## App render
66

@@ -136,7 +136,7 @@ prepareAnnotation -> fixBrokenAnnotation -> some changes on result json
136136

137137
deserializeSingleResult for every result in JSON — some area/result/state manipulations,
138138
should be no side effects.
139-
it calls `updateAppearenceFromState` for merged labels and results (only Video tag regions),
139+
it calls `updateAppearanceFromState` for merged labels and results (only Video tag regions),
140140
but this should only be called on selected annotation.
141141

142142
cleanClassificationAreas — WUT???
@@ -180,7 +180,7 @@ can be changed to usual method called only once.
180180

181181
We have the concept of selecting annotation, when we not just assign it as current one, but also update data in tags, trigger external event, load annotation history, setup hotkeys, set initial values.
182182

183-
Previosly it was required to select every annotation to do some extra work in regions/tags inside it because of some quirky legacy code. I fixed what I found so far and ran all possible tests — they all are green, so consider this change mostly safe.
183+
Previously it was required to select every annotation to do some extra work in regions/tags inside it because of some quirky legacy code. I fixed what I found so far and ran all possible tests — they all are green, so consider this change mostly safe.
184184

185185
Benefits:
186186
- improved performance as only one annotation is selected, reducing number of calculations and renders

web/libs/editor/src/components/InteractiveOverlays/BoundingBox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class BoundingBox {
1919
}
2020

2121
/**
22-
* Contructor
22+
* Constructor
2323
*
2424
* _source_ might be any object that provides its dimensions and position
2525
*

web/libs/editor/src/examples/taxonomy_large_inline/config.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@
245245
</Choice>
246246
<Choice value="corpgov-fiduciaryduty-other">
247247
</Choice>
248-
<Choice value="corpgov-fiduciaryduty-responsibilites">
249-
<Choice value="corpgov-fiduciaryduty-responsibilites-stakeholders">
248+
<Choice value="corpgov-fiduciaryduty-responsibilities">
249+
<Choice value="corpgov-fiduciaryduty-responsibilities-stakeholders">
250250
</Choice>
251251
</Choice>
252252
<Choice value="corpgov-fiduciaryduty-seniormanagement">
@@ -548,7 +548,7 @@
548548
<Choice value="corpgov-shareholderrights-other">
549549
</Choice>
550550
<Choice value="corpgov-shareholderrights-ownership">
551-
<Choice value="corpgov-shareholderrights-ownership-registeration">
551+
<Choice value="corpgov-shareholderrights-ownership-registration">
552552
</Choice>
553553
</Choice>
554554
<Choice value="corpgov-shareholderrights-participate">

web/libs/editor/src/mixins/AreaMixin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const AreaMixinBase = types
1616
parentID: types.maybeNull(types.string),
1717
})
1818
.views((self) => ({
19-
// self id without annotation id added to uniquiness across all the tree
19+
// self id without annotation id added to uniqueness across all the tree
2020
get cleanId() {
2121
return self.id.replace(/#.*/, "");
2222
},
@@ -170,7 +170,7 @@ export const AreaMixinBase = types
170170
self.results.forEach((r) => destroy(r));
171171

172172
// Some region indexes have to be recalculated after destroying regions
173-
self.annotation?.updateAppearenceFromState?.();
173+
self.annotation?.updateAppearanceFromState?.();
174174
},
175175

176176
setSelected(value) {
@@ -234,7 +234,7 @@ export const AreaMixinBase = types
234234
},
235235
});
236236
}
237-
self.updateAppearenceFromState && self.updateAppearenceFromState();
237+
self.updateAppearanceFromState && self.updateAppearanceFromState();
238238
},
239239
}));
240240

web/libs/editor/src/mixins/HighlightMixin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export const HighlightMixin = types
138138
/**
139139
* Update region's appearance if the label was changed
140140
*/
141-
updateAppearenceFromState() {
141+
updateAppearanceFromState() {
142142
if (!self._spans?.length) return;
143143

144144
// Update label visibility based on settings
@@ -271,7 +271,7 @@ export const HighlightMixin = types
271271
);
272272
// Extended/reduced parts of the region should be colored differently in a lighter color.
273273
// With extension it's simple, because it's the browser selection, so we just set a different color to it.
274-
// But to color the reduced part we use opacity of overlayed blocks — region hightlight and browser selection,
274+
// But to color the reduced part we use opacity of overlaid blocks — region highlight and browser selection,
275275
// and multiplication of them should be the same as original activeBackground.
276276
// Region color should also be different from the original one, and for simplicity we use just one color.
277277
// So this color should have an opacity twice closer to 1 than the original one: 1 - (1 - alpha) * 2

web/libs/editor/src/mixins/Regions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,10 @@ const RegionsMixin = types
181181
return (vd * (self.scaleY || 1) * RELATIVE_STAGE_HEIGHT) / self.currentImageEntity.stageHeight;
182182
},
183183

184-
// update region appearence based on it's current states, for
184+
// update region appearance based on it's current states, for
185185
// example bbox needs to update its colors when you change the
186-
// label, becuase it takes color from the label
187-
updateAppearenceFromState() {},
186+
// label, because it takes color from the label
187+
updateAppearanceFromState() {},
188188

189189
serialize() {
190190
console.error("Region class needs to implement serialize");

web/libs/editor/src/mixins/SpanText.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default types
2222
}
2323
},
2424

25-
updateAppearenceFromState() {
25+
updateAppearanceFromState() {
2626
const labelColor = self.getLabelColor();
2727

2828
self.updateSpansColor(labelColor, self.selected ? 0.8 : 0.3);
@@ -187,7 +187,7 @@ export default types
187187
});
188188
}
189189
} else {
190-
self.updateAppearenceFromState();
190+
self.updateAppearanceFromState();
191191
}
192192
e?.stopPropagation();
193193
},

web/libs/editor/src/regions/EllipseRegion.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const EllipseRegionAbsoluteCoordsDEV3793 = types
5858
}
5959
}
6060
self.checkSizes();
61-
self.updateAppearenceFromState();
61+
self.updateAppearanceFromState();
6262
},
6363
setPosition(x, y, radiusX, radiusY, rotation) {
6464
self.x = x;

web/libs/editor/src/regions/RectRegion.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const RectRegionAbsoluteCoordsDEV3793 = types
5252
}
5353
}
5454
self.checkSizes();
55-
self.updateAppearenceFromState();
55+
self.updateAppearanceFromState();
5656
},
5757
setPosition(x, y, width, height, rotation) {
5858
[x, y, width, height, rotation] = self.beforeSetPosition(x, y, width, height, rotation);

0 commit comments

Comments
 (0)