Skip to content

编辑控件 editor.around ="top-left" 时,拖拽改变尺寸时不跟随鼠标,幅度过大 #856

@bgyh2003

Description

@bgyh2003
// #图形编辑器 [按中心点缩放]
import { App, Rect } from 'leafer-ui'
import '@leafer-in/editor' // 导入图形编辑器插件  
import '@leafer-in/viewport' // 导入视口插件 (可选)

const app = new App({
    view: window,
    editor: {
        around: 'top-left'
    }
})

const rect = Rect.one({
    editable: true,
    fill: '#32cd79',
    cornerRadius: 30
}, 50, 50)

app.tree.add(rect)

app.editor.select(rect)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions