Make editable
schema-based and add default schemas (#139)
* Make editable schema based and fix a couple UX issues * Refactor the icons a bit * Add support for points, lines, line segments, and line loops * Adjust nudge multipliers * Fix types * Fix helpers not showing on hover in some cases
This commit is contained in:
parent
6caf8267c5
commit
dceb3965d6
10 changed files with 503 additions and 559 deletions
|
@ -1,5 +1,5 @@
|
|||
import {editable as e, RefreshSnapshot, SheetProvider} from '@theatre/r3f'
|
||||
import {OrbitControls, Stars} from '@react-three/drei'
|
||||
import { Stars} from '@react-three/drei'
|
||||
import {getProject} from '@theatre/core'
|
||||
import React, {Suspense, useState} from 'react'
|
||||
import {Canvas} from '@react-three/fiber'
|
||||
|
@ -85,12 +85,6 @@ function App() {
|
|||
<RefreshSnapshot />
|
||||
<Model url={sceneGLB} />
|
||||
</Suspense>
|
||||
<OrbitControls
|
||||
enablePan={false}
|
||||
enableZoom={true}
|
||||
maxPolarAngle={Math.PI / 2}
|
||||
minPolarAngle={Math.PI / 2}
|
||||
/>
|
||||
<Stars radius={500} depth={50} count={1000} factor={10} />
|
||||
</SheetProvider>
|
||||
</Canvas>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue