배치면 개구, 그림자 크기조절 추가

This commit is contained in:
yjnoh 2024-11-04 09:16:33 +09:00
parent 00418f5071
commit 57157bb82f
2 changed files with 4 additions and 7 deletions

View File

@ -859,11 +859,7 @@ export function useObjectBatch({ isHidden, setIsHidden }) {
}
const reSizeObjectBatch = (side, target, width, height) => {
console.log('reSizeTarget', target)
target.getObjects().forEach((obj) => {
console.log('obj', obj.type)
})
const targetObj = canvas.getActiveObject()
const objectWidth = target.width
const objectHeight = target.height
@ -921,7 +917,7 @@ export function useObjectBatch({ isHidden, setIsHidden }) {
// target.setCoords()
canvas.renderAll()
reGroupObject(target)
if (target.type === 'group') reGroupObject(target)
}
const reGroupObject = (groupObj) => {

View File

@ -350,6 +350,7 @@ export function useContextMenu() {
{
id: 'sizeEdit',
name: getMessage('contextmenu.size.edit'),
component: <SizeSetting id={popupId} target={currentObject} />,
},
{
id: 'openingRemove',
@ -487,7 +488,7 @@ export function useContextMenu() {
{
id: 'sizeEdit',
name: getMessage('contextmenu.size.edit'),
component: <SizeSetting id={popupId} />,
component: <SizeSetting id={popupId} target={currentObject} />,
},
{
id: 'remove',