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

选中多个origin为center的Rect,进行放大缩小等操作时出现位置偏离? #313

Closed
1L2018 opened this issue Dec 30, 2024 · 3 comments

Comments

@1L2018
Copy link

1L2018 commented Dec 30, 2024

import { App, Rect } from 'leafer-editor'

const app = new App({ view: window,editor:{} })
  const rect2 = new Rect({
    origin: 'center',
    x:400,
    y:300,
    width: 100,
    height: 100,
    fill: {
      type: 'image',
      url: '/dog.gif',
      mode: 'stretch',
    },
    editable: true,
  })
  const rect3 = new Rect({
    origin: 'center',
    x:400,
    y:400,
    width: 100,
    height: 100,
    fill: {
      type: 'image',
      url: '/dog.gif',
      mode: 'stretch',
    },
    editable: true,
  })
app.tree.add(rect2)
app.tree.add(rect3)

动画 (4)

@leaferjs
Copy link
Owner

收到,谢谢反馈~

@1L2018
Copy link
Author

1L2018 commented Dec 31, 2024

动画 (5)
这个也是center带来的问题。正常来说应该是左边缘保持位置不变

@leaferjs
Copy link
Owner

已经修复,今天会发个新版本~

@1L2018 1L2018 closed this as completed Dec 31, 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