Made signature of types.stringLiteral() a bit more ergonomic
This commit is contained in:
parent
deb1ad8793
commit
97ce94d52a
3 changed files with 24 additions and 23 deletions
|
@ -293,20 +293,21 @@ const editorSheetObjectConfig = types.compound({
|
|||
showAxes: types.boolean(true),
|
||||
showGrid: types.boolean(true),
|
||||
showOverlayIcons: types.boolean(false),
|
||||
transformControlsMode: types.stringLiteral<TransformControlsMode>(
|
||||
'translate',
|
||||
['translate', 'rotate', 'scale'],
|
||||
),
|
||||
transformControlsSpace: types.stringLiteral<TransformControlsSpace>('world', [
|
||||
'local',
|
||||
'world',
|
||||
]),
|
||||
viewportShading: types.stringLiteral<ViewportShading>('rendered', [
|
||||
'flat',
|
||||
'rendered',
|
||||
'solid',
|
||||
'wireframe',
|
||||
]),
|
||||
transformControlsMode: types.stringLiteral('translate', {
|
||||
translate: 'Translate',
|
||||
rotate: 'Rotate',
|
||||
scale: 'Scale',
|
||||
}),
|
||||
transformControlsSpace: types.stringLiteral('world', {
|
||||
local: 'Local',
|
||||
world: 'World',
|
||||
}),
|
||||
viewportShading: types.stringLiteral('rendered', {
|
||||
flat: 'Flat',
|
||||
rendered: 'Rendered',
|
||||
solid: 'Solid',
|
||||
wireframe: 'Wireframe',
|
||||
}),
|
||||
})
|
||||
|
||||
export const bindToCanvas: BindFunction = ({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue