Chore: Simplified ISheet's signature
This commit is contained in:
parent
d161703c20
commit
2a671b129d
11 changed files with 125 additions and 138 deletions
|
@ -13,15 +13,13 @@ import {types} from '@theatre/core'
|
|||
import type {ITurtle} from './turtle'
|
||||
import {drawTurtlePlan, makeTurtlePlan} from './turtle'
|
||||
|
||||
const objConfig = {
|
||||
props: types.compound({
|
||||
startingPoint: types.compound({
|
||||
x: types.number(0.5, {min: 0, max: 1}),
|
||||
y: types.number(0.5, {min: 0, max: 1}),
|
||||
}),
|
||||
scale: types.number(1, {min: 0.1}),
|
||||
const objConfig = types.compound({
|
||||
startingPoint: types.compound({
|
||||
x: types.number(0.5, {min: 0, max: 1}),
|
||||
y: types.number(0.5, {min: 0, max: 1}),
|
||||
}),
|
||||
}
|
||||
scale: types.number(1, {min: 0.1}),
|
||||
})
|
||||
|
||||
const TurtleRenderer: React.FC<{
|
||||
sheet: ISheet
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue