8000 Label assignment mechanism refactor by SkalskiP · Pull Request #65 · SkalskiP/make-sense · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 7 commits into from
Sep 27, 2019

Conversation

SkalskiP
Copy link
Owner

No description provided.

@SkalskiP SkalskiP requested a review from rootkowsky September 25, 2019 22:32
@SkalskiP SkalskiP self-assigned this Sep 25, 2019
@SkalskiP SkalskiP added new-feature New feature or request improvement Improves or optimizes the code labels Sep 25, 2019
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";
Copy link
Collaborator

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

Copy link
Collaborator

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}`] = {
Copy link
Collaborator

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}) + "",
Copy link
Collaborator

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
Copy link
Collaborator

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 :)

@SkalskiP SkalskiP merged commit e0e6e6b into develop Sep 27, 2019
@SkalskiP SkalskiP deleted the label_assignment_mechanism_refactor branch September 27, 2019 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improves or optimizes the code new-feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0