Fixed font-size in firefox (#4026)

* Fixed font-size in firefox

* Updated versions
main
Boris Sekachev 4 years ago committed by GitHub
parent 23c80c4cfe
commit 6b5cfc14be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,12 +1,12 @@
{ {
"name": "cvat-canvas", "name": "cvat-canvas",
"version": "2.10.1", "version": "2.10.2",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "cvat-canvas", "name": "cvat-canvas",
"version": "2.10.1", "version": "2.10.2",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@types/polylabel": "^1.0.5", "@types/polylabel": "^1.0.5",

@ -1,6 +1,6 @@
{ {
"name": "cvat-canvas", "name": "cvat-canvas",
"version": "2.10.1", "version": "2.10.2",
"description": "Part of Computer Vision Annotation Tool which presents its canvas library", "description": "Part of Computer Vision Annotation Tool which presents its canvas library",
"main": "src/canvas.ts", "main": "src/canvas.ts",
"scripts": { "scripts": {

@ -2075,7 +2075,7 @@ export class CanvasViewImpl implements CanvasView, Listener {
const textPosition = this.configuration.textPosition || 'auto'; const textPosition = this.configuration.textPosition || 'auto';
text.untransform(); text.untransform();
text.style({ 'font-size': textFontSize }); text.style({ 'font-size': `${textFontSize}px` });
const { rotation } = shape.transform(); const { rotation } = shape.transform();
// Find the best place for a text // Find the best place for a text

Loading…
Cancel
Save