Fix type errors
This commit is contained in:
parent
77f96e2082
commit
3aa73b66ff
2 changed files with 4 additions and 3 deletions
|
@ -60,6 +60,7 @@ function App() {
|
||||||
<ambientLight intensity={0.75} />
|
<ambientLight intensity={0.75} />
|
||||||
<e.perspectiveCamera
|
<e.perspectiveCamera
|
||||||
uniqueName="Camera"
|
uniqueName="Camera"
|
||||||
|
// @ts-ignore
|
||||||
makeDefault
|
makeDefault
|
||||||
position={[0, 0, 16]}
|
position={[0, 0, 16]}
|
||||||
fov={75}
|
fov={75}
|
||||||
|
|
|
@ -15,10 +15,10 @@ import {drawTurtlePlan, makeTurtlePlan} from './turtle'
|
||||||
|
|
||||||
const objConfig = types.compound({
|
const objConfig = types.compound({
|
||||||
startingPoint: types.compound({
|
startingPoint: types.compound({
|
||||||
x: types.number(0.5, {min: 0, max: 1}),
|
x: types.number(0.5, {range: [0, 1]}),
|
||||||
y: types.number(0.5, {min: 0, max: 1}),
|
y: types.number(0.5, {range: [0, 1]}),
|
||||||
}),
|
}),
|
||||||
scale: types.number(1, {min: 0.1}),
|
scale: types.number(1, {range: [0.1, 1000]}),
|
||||||
})
|
})
|
||||||
|
|
||||||
const TurtleRenderer: React.FC<{
|
const TurtleRenderer: React.FC<{
|
||||||
|
|
Loading…
Reference in a new issue