More progress on shorthand types

This commit is contained in:
Aria Minaei 2021-09-06 11:26:00 +02:00
parent aefb769855
commit f6cf3711f4
14 changed files with 109 additions and 103 deletions

View file

@ -15,13 +15,13 @@ import {drawTurtlePlan, makeTurtlePlan} from './turtle'
studio.initialize()
const objConfig = types.compound({
startingPoint: types.compound({
const objConfig = {
startingPoint: {
x: types.number(0.5, {range: [0, 1]}),
y: types.number(0.5, {range: [0, 1]}),
}),
},
scale: types.number(1, {range: [0.1, 1000]}),
})
}
const TurtleRenderer: React.FC<{
sheet: ISheet