UNPKG

mylingo3d

Version:

Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor

13 lines (10 loc) 406 B
import store from "@lincode/reactivity" import Appendable from "../api/core/Appendable" import { getSelectionLocked } from "./useSelectionLocked" const [_setSelectionTarget, getSelectionTarget] = store<Appendable | undefined>( undefined ) export { getSelectionTarget } export const setSelectionTarget = (target: Appendable | undefined) => { !getSelectionLocked() && _setSelectionTarget(target) }