From 2ecf690a66c4f3006bab87dccbc188985ecd85d6 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Sun, 5 Sep 2021 22:16:14 +0200 Subject: [PATCH] Fixed the dom playground --- packages/playground/src/dom/Scene.tsx | 15 ++- packages/playground/src/dom/useDrag.ts | 150 +++++++++++++++++++++++++ 2 files changed, 160 insertions(+), 5 deletions(-) create mode 100644 packages/playground/src/dom/useDrag.ts diff --git a/packages/playground/src/dom/Scene.tsx b/packages/playground/src/dom/Scene.tsx index e75392b..9bee6e5 100644 --- a/packages/playground/src/dom/Scene.tsx +++ b/packages/playground/src/dom/Scene.tsx @@ -1,6 +1,6 @@ import studio from '@theatre/studio' -import type {UseDragOpts} from '@theatre/studio/uiComponents/useDrag' -import useDrag from '@theatre/studio/uiComponents/useDrag' +import type {UseDragOpts} from './useDrag' +import useDrag from './useDrag' import React, {useLayoutEffect, useMemo, useState} from 'react' import type {IProject, ISheet} from '@theatre/core' import {types as t} from '@theatre/core' @@ -105,14 +105,19 @@ export const Scene: React.FC<{project: IProject}> = ({project}) => {