-
-
Notifications
You must be signed in to change notification settings - Fork 558
Label assignment mechanism refactor #65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
import {saveAs} from "file-saver"; | ||
import {ImageRepository} from "../imageRepository/ImageRepository"; | ||
import {LabelsSelector} from "../../store/selectors/LabelsSelector"; | ||
import {ExporterUtil} from "../../utils/ExporterUtil"; | ||
import * as _ from "lodash"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tak nie importuj bo Ci się cały lodash dołącza do bundla
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
w innych plikach też popraw
}; | ||
const labelName: LabelName = _.findLast(labelNames, {id: label.labelId}); | ||
if (!!labelName) { | ||
data[`${index}`] = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
skoro index
jest typu number
, to dlaczego robisz to w taki sposób z backtickami?
const image: HTMLImageElement = ImageRepository.getById(imageData.id); | ||
const labelRectsString: string[] = imageData.labelRects.map((labelRect: LabelRect) => { | ||
const labelFields = [ | ||
labelRect.labelIndex + "", | ||
_.findIndex(labelNames, {id: labelRect.labelId}) + "", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dodajesz pustego stringa po co? żeby skonwertowało do stringa? jeśli tak to nie lepiej .toString()
?
} | ||
|
||
&:not(.disabled):hover { | ||
filter: brightness(35%) sepia(100%) hue-rotate(172deg) saturate(2000%); // fallback if new css variables are not supported by browser |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ostatnio Ci powiedziałem że to jest fallback i to powinno działać xD ale chyba mi nie działało ostatnio xD
to tylko tak informacyjnie :)
No description provided.