Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Sep 25, 2024
1 parent f0a6dc1 commit e128b58
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
8 changes: 4 additions & 4 deletions src/viser/client/src/ControlPanel/ControlPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ export default function ControlPanel(props: {
controlWidthString == "small"
? "16em"
: controlWidthString == "medium"
? "20em"
: controlWidthString == "large"
? "24em"
: null
? "20em"
: controlWidthString == "large"
? "24em"
: null
)!;

const generatedServerToggleButton = (
Expand Down
24 changes: 14 additions & 10 deletions src/viser/client/src/SceneTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,16 +222,20 @@ function useObjectFactory(message: SceneNodeMessage | undefined): {
message.props.plane == "xz"
? new THREE.Euler(0.0, 0.0, 0.0)
: message.props.plane == "xy"
? new THREE.Euler(Math.PI / 2.0, 0.0, 0.0)
: message.props.plane == "yx"
? new THREE.Euler(0.0, Math.PI / 2.0, Math.PI / 2.0)
: message.props.plane == "yz"
? new THREE.Euler(0.0, 0.0, Math.PI / 2.0)
: message.props.plane == "zx"
? new THREE.Euler(0.0, Math.PI / 2.0, 0.0)
: message.props.plane == "zy"
? new THREE.Euler(-Math.PI / 2.0, 0.0, -Math.PI / 2.0)
: undefined
? new THREE.Euler(Math.PI / 2.0, 0.0, 0.0)
: message.props.plane == "yx"
? new THREE.Euler(0.0, Math.PI / 2.0, Math.PI / 2.0)
: message.props.plane == "yz"
? new THREE.Euler(0.0, 0.0, Math.PI / 2.0)
: message.props.plane == "zx"
? new THREE.Euler(0.0, Math.PI / 2.0, 0.0)
: message.props.plane == "zy"
? new THREE.Euler(
-Math.PI / 2.0,
0.0,
-Math.PI / 2.0,
)
: undefined
}
/>
</group>
Expand Down

0 comments on commit e128b58

Please sign in to comment.