Adjusts small example, makes inputs unique to each instance

This commit is contained in:
Steve Ruiz 2021-09-08 17:18:43 +01:00
parent 2653f396bf
commit 8154ed5a2a
25 changed files with 190 additions and 81 deletions

View file

@ -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 (