-
COLOR PICKER
From e0219bf2ecf8679aa5e03aa71dc7aed099b09717 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=EA=B9=80=EB=AF=BC=EC=8B=9D?=
<43837214+Minsiki@users.noreply.github.com>
Date: Wed, 5 Mar 2025 14:28:06 +0900
Subject: [PATCH 6/7] =?UTF-8?q?=EB=B0=B0=EC=B9=98=EB=A9=B4=20=EC=B4=88?=
=?UTF-8?q?=EA=B8=B0=EC=84=A4=EC=A0=95=EC=97=90=EC=84=9C=20=EA=B7=B8?=
=?UTF-8?q?=EB=A6=AC=EB=93=9C=20=EA=B4=80=EB=A0=A8=20contextmenu=20?=
=?UTF-8?q?=EB=82=98=EC=98=A4=EB=8A=94=20=EB=B2=84=EA=B7=B8=20=EC=88=98?=
=?UTF-8?q?=EC=A0=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/hooks/useContextMenu.js | 43 -------------------------------------
1 file changed, 43 deletions(-)
diff --git a/src/hooks/useContextMenu.js b/src/hooks/useContextMenu.js
index 97e9cf6c..144272f8 100644
--- a/src/hooks/useContextMenu.js
+++ b/src/hooks/useContextMenu.js
@@ -76,50 +76,7 @@ export function useContextMenu() {
const currentMenuSetting = () => {
switch (selectedMenu) {
- case 'placement':
- setContextMenu([
- [
- {
- id: 'gridMove',
- name: getMessage('modal.grid.move'),
- component: ,
- },
- {
- id: 'gridCopy',
- name: getMessage('modal.grid.copy'),
- component: ,
- },
- {
- id: 'gridColorEdit',
- name: getMessage('modal.grid.color.edit'),
- component: (
-
- ),
- },
- {
- id: 'remove',
- name: getMessage('delete'),
- },
- {
- id: 'removeAll',
- name: getMessage('delete.all'),
- fn: () => {
- removeGrid()
- removeAdsorptionPoint()
- },
- },
- ],
- ])
- break
case 'outline':
- if (['roof', 'auxiliaryLine'].includes(currentObject?.name)) {
- }
break
default:
setContextMenu([])
From d6031ccb98baa93af0ee179ae1ad327a78de8e2f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=EA=B9=80=EB=AF=BC=EC=8B=9D?=
<43837214+Minsiki@users.noreply.github.com>
Date: Wed, 5 Mar 2025 14:30:21 +0900
Subject: [PATCH 7/7] =?UTF-8?q?module=20copy=20=EB=B2=84=EA=B7=B8=20?=
=?UTF-8?q?=EC=88=98=EC=A0=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/hooks/module/useModule.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/hooks/module/useModule.js b/src/hooks/module/useModule.js
index c6ca9ba3..e4e783e9 100644
--- a/src/hooks/module/useModule.js
+++ b/src/hooks/module/useModule.js
@@ -362,7 +362,7 @@ export function useModule() {
}
modules.forEach((module) => {
- const { top, left } = getPosotion(module, direction, Number(length) + Number(moduleLength), false)
+ const { top, left } = getPosotion(module, direction, Number(length) + Number(moduleLength), true)
module.clone((obj) => {
obj.set({
parentId: module.parentId,
@@ -689,7 +689,7 @@ export function useModule() {
targetModules.forEach((module) => {
if (width === -1)
width = type === MODULE_INSERT_TYPE.LEFT ? Number(activeModule.left) - Number(module.left) : Number(module.left) - Number(activeModule.left)
- const { top, left } = getPosotion(module, type, module.width, false)
+ const { top, left } = getPosotion(module, type, module.width, true)
module.originPos = {
left: module.left,
top: module.top,
@@ -706,7 +706,7 @@ export function useModule() {
canvas.renderAll()
otherModules = getOtherModules(columnModules)
columnModules.forEach((module) => {
- const { top, left } = getPosotion(module, type, module.width, false)
+ const { top, left } = getPosotion(module, type, module.width, true)
let copyModule = null
module.clone((obj) => {
obj.set({
@@ -807,7 +807,7 @@ export function useModule() {
targetModules.forEach((module) => {
if (height === -1)
height = type === MODULE_INSERT_TYPE.TOP ? Number(activeModule.top) - Number(module.top) : Number(module.top) - Number(activeModule.top)
- const { top, left } = getPosotion(module, type, activeModule.height, false)
+ const { top, left } = getPosotion(module, type, activeModule.height, true)
module.originPos = {
left: module.left,
top: module.top,
@@ -823,7 +823,7 @@ export function useModule() {
canvas.renderAll()
otherModules = getOtherModules(rowModules)
rowModules.forEach((module) => {
- const { top, left } = getPosotion(module, type, activeModule.height, false)
+ const { top, left } = getPosotion(module, type, activeModule.height, true)
let copyModule = null
module.clone((obj) => {
obj.set({