2021-07-14 18:37:32 +02:00
|
|
|
import SnapshotEditor from './components/SnapshotEditor'
|
2021-07-31 15:10:08 +02:00
|
|
|
import studio from '@theatre/studio'
|
|
|
|
import Toolbar from './components/Toolbar/Toolbar'
|
|
|
|
import {types} from '@theatre/core'
|
2021-06-18 13:05:06 +02:00
|
|
|
|
|
|
|
export {default as EditorHelper} from './components/EditorHelper'
|
|
|
|
export type {EditorHelperProps} from './components/EditorHelper'
|
|
|
|
export {default as editable} from './components/editable'
|
|
|
|
export type {EditableState, BindFunction} from './store'
|
2021-07-31 15:10:08 +02:00
|
|
|
export {default as Wrapper} from './Wrapper'
|
2021-06-18 13:05:06 +02:00
|
|
|
|
|
|
|
if (process.env.NODE_ENV === 'development') {
|
2021-07-13 16:13:15 +02:00
|
|
|
studio.extend({
|
|
|
|
id: '@theatre/plugin-r3f',
|
|
|
|
globalToolbar: {
|
|
|
|
component: Toolbar,
|
|
|
|
},
|
2021-07-14 18:37:32 +02:00
|
|
|
panes: [
|
|
|
|
{
|
|
|
|
class: 'snapshotEditor',
|
|
|
|
dataType: types.compound({
|
|
|
|
grosse: types.number(20),
|
|
|
|
}),
|
|
|
|
component: SnapshotEditor,
|
|
|
|
},
|
|
|
|
],
|
2021-07-13 16:13:15 +02:00
|
|
|
})
|
2021-06-18 13:05:06 +02:00
|
|
|
}
|