* Fixed font-size in firefox * Updated versions
@ -1,12 +1,12 @@
{
"name": "cvat-canvas",
"version": "2.10.1",
"version": "2.10.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"license": "MIT",
"dependencies": {
"@types/polylabel": "^1.0.5",
@ -1,6 +1,6 @@
"description": "Part of Computer Vision Annotation Tool which presents its canvas library",
"main": "src/canvas.ts",
"scripts": {
@ -2075,7 +2075,7 @@ export class CanvasViewImpl implements CanvasView, Listener {
const textPosition = this.configuration.textPosition || 'auto';
text.untransform();
text.style({ 'font-size': textFontSize });
text.style({ 'font-size': `${textFontSize}px` });
const { rotation } = shape.transform();
// Find the best place for a text