Skip to content

Commit 094dd5e

Browse files
committed
format
1 parent 77ea79c commit 094dd5e

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

lib/components/base-components/NormalComponent/NormalComponent.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,13 +1422,8 @@ export class NormalComponent<
14221422
const rotationOffset = rotation3.parse({
14231423
x: 0,
14241424
y: 0,
1425-
z:
1426-
typeof sourceRotationOffset === "number"
1427-
? sourceRotationOffset
1428-
: 0,
1429-
...(typeof sourceRotationOffset === "object"
1430-
? sourceRotationOffset
1431-
: {}),
1425+
z: typeof sourceRotationOffset === "number" ? sourceRotationOffset : 0,
1426+
...(typeof sourceRotationOffset === "object" ? sourceRotationOffset : {}),
14321427
})
14331428

14341429
const positionOffset = point3.parse({

lib/components/primitive-components/CadModel.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ export class CadModel extends PrimitiveComponent<typeof cadmodelProps> {
4444
const accumulatedRotation =
4545
(decomposedTransform.rotation.angle * 180) / Math.PI
4646

47-
const sourceRotationOffset =
48-
props.pcbRotationOffset ?? props.rotationOffset
47+
const sourceRotationOffset = props.pcbRotationOffset ?? props.rotationOffset
4948
const rotationOffset = rotation3.parse({ x: 0, y: 0, z: 0 })
5049
if (typeof sourceRotationOffset === "number") {
5150
rotationOffset.z = Number(sourceRotationOffset)

0 commit comments

Comments
 (0)