배치면 개구, 그림자 크기조절 추가
This commit is contained in:
parent
00418f5071
commit
57157bb82f
@ -859,11 +859,7 @@ export function useObjectBatch({ isHidden, setIsHidden }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const reSizeObjectBatch = (side, target, width, height) => {
|
const reSizeObjectBatch = (side, target, width, height) => {
|
||||||
console.log('reSizeTarget', target)
|
const targetObj = canvas.getActiveObject()
|
||||||
|
|
||||||
target.getObjects().forEach((obj) => {
|
|
||||||
console.log('obj', obj.type)
|
|
||||||
})
|
|
||||||
|
|
||||||
const objectWidth = target.width
|
const objectWidth = target.width
|
||||||
const objectHeight = target.height
|
const objectHeight = target.height
|
||||||
@ -921,7 +917,7 @@ export function useObjectBatch({ isHidden, setIsHidden }) {
|
|||||||
// target.setCoords()
|
// target.setCoords()
|
||||||
canvas.renderAll()
|
canvas.renderAll()
|
||||||
|
|
||||||
reGroupObject(target)
|
if (target.type === 'group') reGroupObject(target)
|
||||||
}
|
}
|
||||||
|
|
||||||
const reGroupObject = (groupObj) => {
|
const reGroupObject = (groupObj) => {
|
||||||
|
|||||||
@ -350,6 +350,7 @@ export function useContextMenu() {
|
|||||||
{
|
{
|
||||||
id: 'sizeEdit',
|
id: 'sizeEdit',
|
||||||
name: getMessage('contextmenu.size.edit'),
|
name: getMessage('contextmenu.size.edit'),
|
||||||
|
component: <SizeSetting id={popupId} target={currentObject} />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'openingRemove',
|
id: 'openingRemove',
|
||||||
@ -487,7 +488,7 @@ export function useContextMenu() {
|
|||||||
{
|
{
|
||||||
id: 'sizeEdit',
|
id: 'sizeEdit',
|
||||||
name: getMessage('contextmenu.size.edit'),
|
name: getMessage('contextmenu.size.edit'),
|
||||||
component: <SizeSetting id={popupId} />,
|
component: <SizeSetting id={popupId} target={currentObject} />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'remove',
|
id: 'remove',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user