More progress on shorthand types
This commit is contained in:
parent
aefb769855
commit
f6cf3711f4
14 changed files with 109 additions and 103 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue