未验证 提交 6b5cfc14 编写于 作者: B Boris Sekachev 提交者: GitHub

Fixed font-size in firefox (#4026)

* Fixed font-size in firefox

* Updated versions
上级 23c80c4c
{
"name": "cvat-canvas",
"version": "2.10.1",
"version": "2.10.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "cvat-canvas",
"version": "2.10.1",
"version": "2.10.2",
"license": "MIT",
"dependencies": {
"@types/polylabel": "^1.0.5",
......
{
"name": "cvat-canvas",
"version": "2.10.1",
"version": "2.10.2",
"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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册