Adjusts small example, makes inputs unique to each instance
This commit is contained in:
parent
2653f396bf
commit
8154ed5a2a
25 changed files with 190 additions and 81 deletions
|
@ -10,6 +10,7 @@ import type {
|
|||
TLBinding,
|
||||
} from '../../types'
|
||||
import { Canvas } from '../canvas'
|
||||
import { Inputs } from '../../inputs'
|
||||
import { useTLTheme, TLContext, TLContextType } from '../../hooks'
|
||||
|
||||
export interface RendererProps<T extends TLShape, M extends Record<string, unknown>>
|
||||
|
@ -87,6 +88,7 @@ export function Renderer<T extends TLShape, M extends Record<string, unknown>>({
|
|||
shapeUtils,
|
||||
rScreenBounds,
|
||||
rPageState,
|
||||
inputs: new Inputs(),
|
||||
}))
|
||||
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue