leafer-ui icon indicating copy to clipboard operation
leafer-ui copied to clipboard

缩小画布编辑文字 文字大小计算错误

Open FZliweiliang opened this issue 1 year ago • 2 comments

"leafer-editor": "^1.1.0" 缩小画布的时候小文字会出现问题,大文字没问题 如果画布放得比较大小文字没有问题 希望给出解决方案或修复 截屏2024-12-07 20 46 13 截屏2024-12-07 20 46 08

FZliweiliang avatar Dec 07 '24 12:12 FZliweiliang

代码使用的

 this.app = new App({
            view: viewId,
            editor: {
                stroke: '#33ad98',
                point: { cornerRadius: 0 },
                rect: { dashPattern: [3, 2] },
                buttonsFixed: true
            },
            sky: { type: 'block', usePartRender: false }
});
this.frame = new Frame({
            id: 'main',
            width:1000,
            height:1000,
            shadow: {
                x: 5,
                y: 5,
                blur: 10,
                color: 'rgba(0,0,0,0.05)',
                box: true
            }
});
this.app.tree.add(this.frame);
const text = new Text({ y: 200, x: 200, fill: 'rgb(50,205,121)', text: 'Welcome to LeaferJS', editable: true });
this.frame.add(text);

this.app.tree.zoom(0.3)

画布缩得比较小的时候 出现

FZliweiliang avatar Dec 07 '24 13:12 FZliweiliang

收到,谢谢反馈~

leaferjs avatar Dec 07 '24 13:12 leaferjs