Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Sep 10, 2024
1 parent 901de64 commit 2caeec4
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions src/viser/client/src/SceneTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,20 +222,16 @@ 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 2caeec4

Please sign in to comment.