Dev.js 699 B

12345678910111213141516
  1. import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
  2. import { useEffect } from "react";
  3. import { Action } from ".";
  4. export const Dev = () => {
  5. useEffect(() => {
  6. window._devUpdateHotspotAthAtv = function (ath, atv) {
  7. console.log("Updated ath: " + ath + ", atv: " + atv);
  8. };
  9. }, []);
  10. return (_jsxs("div", { children: [_jsx(Action, { name: "dev_draggable_hotspot", content: `
  11. asyncloop(pressed, dev_update_hotspot());
  12. ` }), _jsx(Action, { name: "dev_update_hotspot", content: `
  13. screentosphere(mouse.stagex, mouse.stagey, ath, atv);
  14. js(_devUpdateHotspotAthAtv(get(ath), get(atv)));
  15. ` })] }));
  16. };