UNPKG

lingo3d

Version:

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

20 lines 695 B
import { jsx as _jsx } from "preact/jsx-runtime"; import { memo } from "preact/compat"; import { FRAME_HEIGHT, FRAME_WIDTH } from "../../globals"; import { frameIndicatorSignal } from "./frameIndicatorSignal"; const FrameIndicator = () => { const pt = frameIndicatorSignal.value; if (!pt) return null; return (_jsx("div", { style: { position: "absolute", pointerEvents: "none", width: FRAME_WIDTH, height: FRAME_HEIGHT, background: "rgba(255, 255, 255, 0.1)", left: pt.x, top: pt.y } })); }; export default memo(FrameIndicator, () => true); //# sourceMappingURL=FrameIndicator.js.map