CVAT UI: batch of fixes (#1952)

main
Dmitry Kalinin 6 years ago committed by GitHub
parent 1d17647658
commit 94f58a505b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,6 +11,10 @@
"selector-type-no-unknown": [true, { "selector-type-no-unknown": [true, {
"ignoreTypes": ["first-child"] "ignoreTypes": ["first-child"]
}] }]
} },
"ignoreFiles": [
"**/*.js",
"**/*.ts",
"**/*.py"
]
} }

@ -33,7 +33,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Points are dublicated during polygon interpolation sometimes (<https://github.com/opencv/cvat/pull/1892>) - Points are dublicated during polygon interpolation sometimes (<https://github.com/opencv/cvat/pull/1892>)
- When redraw a shape with activated autobordering, previous points are visible (<https://github.com/opencv/cvat/pull/1892>) - When redraw a shape with activated autobordering, previous points are visible (<https://github.com/opencv/cvat/pull/1892>)
- No mapping between side object element and context menu in some attributes (<https://github.com/opencv/cvat/pull/1923>) - No mapping between side object element and context menu in some attributes (<https://github.com/opencv/cvat/pull/1923>)
- Interpolated shapes exported as `keyframe = True` (https://github.com/opencv/cvat/pull/1937) - Interpolated shapes exported as `keyframe = True` (<https://github.com/opencv/cvat/pull/1937>)
- Stylelint filetype scans (<https://github.com/opencv/cvat/pull/1952>)
### Security ### Security
- -

@ -189,7 +189,7 @@ export class CanvasViewImpl implements CanvasView, Listener {
} }
private onEditDone(state: any, points: number[]): void { private onEditDone(state: any, points: number[]): void {
if (state && points) { if (state && points) {
const event: CustomEvent = new CustomEvent('canvas.edited', { const event: CustomEvent = new CustomEvent('canvas.edited', {
bubbles: false, bubbles: false,
cancelable: true, cancelable: true,
@ -1732,7 +1732,12 @@ export class CanvasViewImpl implements CanvasView, Listener {
private addText(state: any): SVG.Text { private addText(state: any): SVG.Text {
const { undefinedAttrValue } = this.configuration; const { undefinedAttrValue } = this.configuration;
const { label, clientID, attributes, source } = state; const {
label,
clientID,
attributes,
source,
} = state;
const attrNames = label.attributes.reduce((acc: any, val: any): void => { const attrNames = label.attributes.reduce((acc: any, val: any): void => {
acc[val.id] = val.name; acc[val.id] = val.name;
return acc; return acc;

Loading…
Cancel
Save