From 65463dfdc6307c1c39b0d9dd7966fb25dbd22ce2 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Fri, 30 Jul 2021 16:31:18 +0200 Subject: [PATCH] deprecate bindToCanvas() in favor of --- packages/playground/src/r3f/App.tsx | 95 ++++++++++--------- .../playground/src/space-exploration/App.tsx | 85 ++++++++--------- packages/plugin-r3f/src/index.tsx | 23 ++++- 3 files changed, 111 insertions(+), 92 deletions(-) diff --git a/packages/playground/src/r3f/App.tsx b/packages/playground/src/r3f/App.tsx index bdb19b6..05eb7d1 100644 --- a/packages/playground/src/r3f/App.tsx +++ b/packages/playground/src/r3f/App.tsx @@ -1,4 +1,4 @@ -import {editable as e, bindToCanvas} from '@theatre/plugin-r3f' +import {editable as e, Wrapper} from '@theatre/plugin-r3f' import {PerspectiveCamera} from '@react-three/drei' import {getProject} from '@theatre/core' import * as THREE from 'three' @@ -97,56 +97,57 @@ function App() { - - - - - - getProject('Example project').sheet('R3F-Canvas')} + > + + + - - - - -