Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
FZliweiliang opened this issue Dec 7, 2024 · 2 comments
Open

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

FZliweiliang opened this issue Dec 7, 2024 · 2 comments

Comments

@FZliweiliang
Copy link

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

@FZliweiliang
Copy link
Author

代码使用的

 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)

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

@leaferjs
Copy link
Owner

leaferjs commented Dec 7, 2024

收到,谢谢反馈~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants