UNPKG

lingo3d

Version:

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

24 lines 1.39 kB
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "preact/jsx-runtime"; import { sceneGraphContextMenuSignal } from "."; import MenuButton from "../../component/MenuButton"; import createJoint from "./createJoint"; const CreateJointItems = () => { return (_jsxs(_Fragment, { children: [_jsx(MenuButton, { onClick: () => { createJoint("fixedJoint"); sceneGraphContextMenuSignal.value = undefined; }, children: "Fixed joint" }), _jsx(MenuButton, { onClick: () => { createJoint("sphericalJoint"); sceneGraphContextMenuSignal.value = undefined; }, children: "Spherical joint" }), _jsx(MenuButton, { onClick: () => { createJoint("revoluteJoint"); sceneGraphContextMenuSignal.value = undefined; }, children: "Revolute joint" }), _jsx(MenuButton, { onClick: () => { createJoint("prismaticJoint"); sceneGraphContextMenuSignal.value = undefined; }, children: "Prismatic joint" }), _jsx(MenuButton, { onClick: () => { createJoint("d6Joint"); sceneGraphContextMenuSignal.value = undefined; }, children: "D6 joint" })] })); }; export default CreateJointItems; //# sourceMappingURL=CreateJointItems.js.map