Skip to content

在编辑器中,当rect的移动范围为parent时,如果缩放后, rect拖动变形的时候 会超出父级 #825

@zmb95

Description

@zmb95

// #图形编辑器 [手动选择元素]
import { App, Rect , Frame} from 'leafer-ui'
import '@leafer-in/editor' // 导入图形编辑器插件
import '@leafer-in/viewport' // 导入视口插件 (可选)

const app = new App({
view: window,
editor: {},
})
const frame = new Frame({
width:300,
height:300,
fill:'#EEE'
})
app.tree.add(frame)
frame.add(Rect.one({ editable: true,dragBounds:'parent', fill: '#FEB027', cornerRadius: [20, 0, 0, 20] }, 100, 100))

Image

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