diff --git a/src/components/floor-plan/modal/eavesGable/type/Eaves.jsx b/src/components/floor-plan/modal/eavesGable/type/Eaves.jsx
index f9548dad..fb4db8cd 100644
--- a/src/components/floor-plan/modal/eavesGable/type/Eaves.jsx
+++ b/src/components/floor-plan/modal/eavesGable/type/Eaves.jsx
@@ -4,6 +4,7 @@ import { useState } from 'react'
import { useRecoilValue } from 'recoil'
import { ANGLE_TYPE, currentAngleTypeSelector } from '@/store/canvasAtom'
import { normalizeDecimalLimit, normalizeDigits } from '@/util/input-utils'
+import { CalculatorInput } from '@/components/common/input/CalcInput'
export default function Eaves({ pitchRef, offsetRef, widthRef, radioTypeRef, pitchText }) {
const { getMessage } = useMessage()
@@ -21,17 +22,32 @@ export default function Eaves({ pitchRef, offsetRef, widthRef, radioTypeRef, pit
{getMessage('slope')}
- {*/}
+ {/* const v = normalizeDecimalLimit(e.target.value, 2)*/}
+ {/* e.target.value = v*/}
+ {/* if (pitchRef?.current) pitchRef.current.value = v*/}
+ {/* }}*/}
+ {/*/>*/}
+ {
- const v = normalizeDecimalLimit(e.target.value, 2)
- e.target.value = v
- if (pitchRef?.current) pitchRef.current.value = v
+ value={currentAngleType === ANGLE_TYPE.SLOPE ? 4 : 21.8}
+ onChange={(value) => {
+ if (pitchRef?.current) pitchRef.current.value = value
}}
- />
+ options={{
+ allowNegative: false,
+ allowDecimal: true //(index !== 0),
+ }}
+ >
{pitchText}
@@ -40,17 +56,32 @@ export default function Eaves({ pitchRef, offsetRef, widthRef, radioTypeRef, pit
{getMessage('offset')}
- {*/}
+ {/* const v = normalizeDigits(e.target.value)*/}
+ {/* e.target.value = v*/}
+ {/* if (offsetRef?.current) offsetRef.current.value = v*/}
+ {/* }}*/}
+ {/*/>*/}
+ {
- const v = normalizeDigits(e.target.value)
- e.target.value = v
- if (offsetRef?.current) offsetRef.current.value = v
+ value={500}
+ onChange={(value) => {
+ if (offsetRef?.current) offsetRef.current.value = value
}}
- />
+ options={{
+ allowNegative: false,
+ allowDecimal: false //(index !== 0),
+ }}
+ >
mm
@@ -91,18 +122,33 @@ export default function Eaves({ pitchRef, offsetRef, widthRef, radioTypeRef, pit
diff --git a/src/components/floor-plan/modal/eavesGable/type/Gable.jsx b/src/components/floor-plan/modal/eavesGable/type/Gable.jsx
index 7dd21539..c5496a1e 100644
--- a/src/components/floor-plan/modal/eavesGable/type/Gable.jsx
+++ b/src/components/floor-plan/modal/eavesGable/type/Gable.jsx
@@ -3,6 +3,7 @@ import Image from 'next/image'
import { useState } from 'react'
import { useRecoilValue } from 'recoil'
import { ANGLE_TYPE, currentAngleTypeSelector } from '@/store/canvasAtom'
+import { CalculatorInput } from '@/components/common/input/CalcInput'
export default function Gable({ pitchRef, offsetRef, widthRef, radioTypeRef, pitchText }) {
const { getMessage } = useMessage()
@@ -21,7 +22,19 @@ export default function Gable({ pitchRef, offsetRef, widthRef, radioTypeRef, pit
{getMessage('offset')}
-
+ {/**/}
+
mm
@@ -65,13 +78,29 @@ export default function Gable({ pitchRef, offsetRef, widthRef, radioTypeRef, pit
{getMessage('slope')}
- */}
+
+ onChange={(value) => {
+ if (pitchRef?.current) pitchRef.current.value = value
+ }}
+ options={{
+ allowNegative: false,
+ allowDecimal: false //(index !== 0),
+ }}
+ >
{pitchText}
@@ -91,7 +120,20 @@ export default function Gable({ pitchRef, offsetRef, widthRef, radioTypeRef, pit
{getMessage('offset')}
-
+ {/**/}
+
mm
diff --git a/src/components/floor-plan/modal/eavesGable/type/Shed.jsx b/src/components/floor-plan/modal/eavesGable/type/Shed.jsx
index 436316a3..8ce6038a 100644
--- a/src/components/floor-plan/modal/eavesGable/type/Shed.jsx
+++ b/src/components/floor-plan/modal/eavesGable/type/Shed.jsx
@@ -1,4 +1,5 @@
import { useMessage } from '@/hooks/useMessage'
+import { CalculatorInput } from '@/components/common/input/CalcInput'
export default function Shed({ offsetRef }) {
const { getMessage } = useMessage()
@@ -10,7 +11,19 @@ export default function Shed({ offsetRef }) {
{getMessage('offset')}
-
+ {/**/}
+
mm
diff --git a/src/components/floor-plan/modal/eavesGable/type/WallMerge.jsx b/src/components/floor-plan/modal/eavesGable/type/WallMerge.jsx
index 0ed01ede..e398a2f1 100644
--- a/src/components/floor-plan/modal/eavesGable/type/WallMerge.jsx
+++ b/src/components/floor-plan/modal/eavesGable/type/WallMerge.jsx
@@ -1,6 +1,7 @@
import { useMessage } from '@/hooks/useMessage'
import Image from 'next/image'
import { useState } from 'react'
+import { CalculatorInput } from '@/components/common/input/CalcInput'
export default function WallMerge({ offsetRef, radioTypeRef }) {
const { getMessage } = useMessage()
@@ -51,7 +52,20 @@ export default function WallMerge({ offsetRef, radioTypeRef }) {
{getMessage('offset')}
-
+ {/**/}
+
mm