{“ast”:null,“code”:“function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }nnfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }nnfunction _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr(), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i != null) _i(); } finally { if (_d) throw _e; } } return _arr; }nnfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }nnvar character3dAssetId = 4;nvar brick3dAssetId = 6;nvar electricShelf3dAssetId = 7;nimport EZIIBrickLayerGameMain from './eZii-bricklayer-game/main.js';nimport * as THREE from 'three';nimport EZII3DStickMan from './eZii-bricklayer-game/3d-stick-man.js';nvar eZii3dStickMan;n$(function () {n var piemenu = new wheelnav('piemenu');n piemenu.sliceInitPathFunction = piemenu.slicePathFunction;n piemenu.initPercent = 0.1;n piemenu.wheelRadius = piemenu.wheelRadius * 0.83;n piemenu.createWheel();n var main = new EZIIBrickLayerGameMain();n var playerWalkingDirection = [0, 0, 0];n main.findDomDockingPoint().then(function () {n main.init();n main.moveObjectZAxis(main.cubes);n window.threeJsScene = main.scene;n eZii3dStickMan = new EZII3DStickMan();n main.addObject(character3dAssetId).then(function (_ref) {n var _ref2 = _slicedToArray(_ref, 3),n object = _ref2,n mixer = _ref2,n id = _ref2;nn window.mainObject = object;n main.mixers = mixer;n main.animate(id);n window.mainObject.position.z = 20;n main.every10MilliSeconds(function () {n window.mainObject.position.z += playerWalkingDirection / 5;n window.mainObject.position.y += playerWalkingDirection / 5;n window.mainObject.position.x += playerWalkingDirection / 5;n });n main.every10MilliSeconds(function () {n if (window.positionWanted === undefined) return;nn if (window.mainObject.position.z < window.positionWanted.z + 0.10 && window.mainObject.position.z > window.positionWanted.z - 0.10 && window.mainObject.position.x < window.positionWanted.x + 0.10 && window.mainObject.position.x > window.positionWanted.x - 0.10) {n window.positionWanted = undefined;n playerWalkingDirection = [0, 0, 0];n main.stopAnimation(character3dAssetId);nn while (main.stoppedMixers.time > 0.3) {n main.stoppedMixers.update(-0.1);n }n }n });n main.every10MilliSeconds(function () {n if (main.stoppedMixers !== undefined && main.stoppedMixers.time > 0.2) {n main.stoppedMixers.update(-0.001);n }n });n });n main.addObject(brick3dAssetId).then(function (_ref3) {n var _ref4 = _slicedToArray(_ref3, 3),n object = _ref4,n mixer = _ref4,n id = _ref4;nn window.mainObject2 = object;n main.mixers = mixer; // main.animate(id);nn window.mainObject2.position.z = 20;n });n main.addObject(electricShelf3dAssetId).then(function (_ref5) {n var _ref6 = _slicedToArray(_ref5, 3),n object = _ref6,n mixer = _ref6,n id = _ref6;nn window.mainObject3 = object;n main.mixers = mixer;n main.animate(id);n window.mainObject3.position.z = 20;n window.mainObject3.position.x = 20;n });n main.grid.on('click', function (ev) {n console.log(ev);n main.startAnimation(character3dAssetId);n var dir = new THREE.Vector3();n var position = new THREE.Vector3(window.mainObject.position.x, 0, window.mainObject.position.z);n var positionWanted = new THREE.Vector3(ev.intersects.point.x, 0, ev.intersects.point.z);n window.positionWanted = positionWanted;n dir.subVectors(positionWanted, position).normalize();n playerWalkingDirection = dir.x;n playerWalkingDirection = dir.z;n window.lastUpdateForMainObjectLookAt = positionWanted;n window.mainObject.lookAt(positionWanted);n });n $(document).on('keydown', function (evt) {n console.log(evt.which);nn switch (evt.which) {n case 77:n main.addObject(brick3dAssetId).then(function (_ref7) {n var _ref8 = _slicedToArray(_ref7, 3),n object = _ref8,n mixer = _ref8,n id = _ref8;nn main.mixers = mixer;n main.animate(id);n object.position.z = window.mainObject.position.z;n object.position.x = window.mainObject.position.x;n });n break;nn case 38:n main.tiltCurrentlySelectedObjectUpwards();n break;nn case 40:n main.tiltCurrentlySelectedObjectDownwards();n break;nn default:n console.log(evt.which, 'not handled');n }n });nn window.letStickManAppear = function () {n eZii3dStickMan.show(window.mainObject.position); // should be pass by value, not by reference to value (default in ruby and js), ideally this would be a deepCopy or a native javascript passByValue that is not implemented via reference passing (as in an array is passed and argument receiver function can alter the array). IMMPORTANT FOR IT PEOPLE: Don't confuse "pass by reference" (refernece to variable holder), "passy by value via referencee" (reference to value) and "pass by value", ok? We all learn all our life long, just because on doesn't understand something, it doesn't mean the person who designed it is "imbecile" (medium.com/@manu_78098/im-quite-aware-of-the-concept-of-optimistic-locking-d633fc28ce6c).nn eZii3dStickMan.eZii3dStickManThreeJsGroup.lookAt(window.lastUpdateForMainObjectLookAt);n };nn $(document).on('contextmenu', function (evt) {n console.log(evt); // $("#contextmenu-eZii-brick-game-3").remove();n // let div = $('<div id="contextmenu-eZii-brick-game-3" style="background-color: white;">TEST</div>');n // $(document.body).append(div);nn $('#piemenu').css('position', 'fixed');n $('#piemenu').css('top', evt.clientY);n $('#piemenu').css('left', evt.clientX);n });n });n});”,“map”:{“version”:3,“sources”:[“/Users/lemonandroid/Banal Dropbox/random/redux-os/app/javascript/packs/eZii-bricklayer-game-3.js.erb”],“names”:,“mappings”:“;;;;;;;;AAAA,IAAMA,kBAAkB,GAAG,CAA3B;AACA,IAAMC,cAAc,GAAG,CAAvB;AACA,IAAMC,sBAAsB,GAAG,CAA/B;AAKA,OAAOC,sBAAP,MAAmC,gCAAnC;AACA,OAAO,KAAKC,KAAZ,MAAuB,OAAvB;AAGA,OAAOC,cAAP,MAA2B,wCAA3B;AAEA,IAAIC,cAAJ;AACAC,CAAC,CAAC,YAAW;AAEZ,MAAIC,OAAO,GAAG,IAAIC,QAAJ,CAAa,SAAb,CAAd;AACAD,EAAAA,OAAO,CAACE,qBAAR,GAAgCF,OAAO,CAACG,iBAAxC;AACAH,EAAAA,OAAO,CAACI,WAAR,GAAsB,GAAtB;AACAJ,EAAAA,OAAO,CAACK,WAAR,GAAsBL,OAAO,CAACK,WAAR,GAAsB,IAA5C;AAEAL,EAAAA,OAAO,CAACM,WAAR;AAGA,MAAIC,I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M,QAAP,CAAgBI,CAAhB,GAAoBd,MAAM,CAACO,UAAP,CAAkBG,QAAlB,CAA2BI,CAA/C;AACA,WAPD;AAQA;;AACD,aAAK,EAAL;AACCrB,UAAAA,IAAI,CAAC+C,kCAAL;AACC;;AACF,aAAK,EAAL;AACC/C,UAAAA,IAAI,CAACgD,oCAAL;AACC;;AACF;AACDf,UAAAA,OAAO,CAACC,GAAR,CAAYW,GAAG,CAACC,KAAhB,EAAuB,aAAvB;AAlBD;AAoBA,KAvBD;;AA0BAvC,IAAAA,MAAM,CAAC0C,iBAAP,GAA2B,YAAW;AACrC1D,MAAAA,cAAc,CAAC2D,IAAf,CAAoB3C,MAAM,CAACO,UAAP,CAAkBG,QAAtC,EADqC,CACY;;AAEhD1B,MAAAA,cAAc,CAAC4D,0BAAf,CAA0CR,MAA1C,CAAiDpC,MAAM,CAACmC,6BAAxD;AACD,KAJD;;AAOAlD,IAAAA,CAAC,CAACoD,QAAD,CAAD,CAAYb,EAAZ,CAAe,aAAf,EAA8B,UAASc,GAAT,EAAc;AAE3CZ,MAAAA,OAAO,CAACC,GAAR,CAAYW,GAAZ,EAF2C,CAI3C;AAEA;AAGA;;AACArD,MAAAA,CAAC,CAAC,UAAD,CAAD,CAAc4D,GAAd,CAAkB,UAAlB,EAA8B,OAA9B;AAEA5D,MAAAA,CAAC,CAAC,UAAD,CAAD,CAAc4D,GAAd,CAAkB,KAAlB,EAAyBP,GAAG,CAACQ,OAA7B;AACA7D,MAAAA,CAAC,CAAC,UAAD,CAAD,CAAc4D,GAAd,CAAkB,MAAlB,EAA0BP,GAAG,CAACS,OAA9B;AAEA,KAfD;AAgBA,GA9ID;AA+IA,CA5JA,CAAD”,“sourcesContent”:[“const character3dAssetId = 4;nconst brick3dAssetId = 6;nconst electricShelf3dAssetId = 7;nnnnnimport EZIIBrickLayerGameMain from './eZii-bricklayer-game/main.js';nimport * as THREE from 'three';nnnimport EZII3DStickMan from './eZii-bricklayer-game/3d-stick-man.js'nnvar eZii3dStickMan;n$(function() {ntntvar piemenu = new wheelnav('piemenu');ntpiemenu.sliceInitPathFunction = piemenu.slicePathFunction;ntpiemenu.initPercent = 0.1;ntpiemenu.wheelRadius = piemenu.wheelRadius * 0.83;ntntpiemenu.createWheel();tntntntvar main = new EZIIBrickLayerGameMain();ntntvar playerWalkingDirection = [0, 0, 0];ntmain.findDomDockingPoint().then(function() {nttmain.init();nttmain.moveObjectZAxis(main.cubes);nttnttnttwindow.threeJsScene = main.scene;nttnttntteZii3dStickMan = new EZII3DStickMan();nttntnttmain.addObject(character3dAssetId).then(function([object, mixer, id]) {ntttwindow.mainObject = object;ntttmain.mixers = mixer;nttntttmain.animate(id);nttntttwindow.mainObject.position.z = 20;ntttntttntttmain.every10MilliSeconds(function() {nttttwindow.mainObject.position.z += playerWalkingDirection / 5;nttttwindow.mainObject.position.y += playerWalkingDirection / 5;nttttwindow.mainObject.position.x += playerWalkingDirection / 5;nttt})ntttntttmain.every10MilliSeconds(function() {nttttif (window.positionWanted === undefined) return;nttttnttttif ((window.mainObject.position.z < window.positionWanted.z + 0.10) && (window.mainObject.positiont.z > window.positionWanted.z - 0.10) && (window.mainObject.positiont.x < window.positionWanted.x + 0.10) && (window.mainObject.positiont.x > window.positionWanted.x - 0.10)) {ntttttwindow.positionWanted = undefined;ntttttplayerWalkingDirection = [0,0,0]ntttttntttttmain.stopAnimation(character3dAssetId);ntttttntttttwhile(main.stoppedMixers.time > 0.3) {nttttttmain.stoppedMixers.update(-0.1);nttttt}ttntttt}nttt})ntttntttmain.every10MilliSeconds(function() {nttttif(main.stoppedMixers !== undefined && main.stoppedMixers.time > 0.2) {ntttttmain.stoppedMixers.update(-0.001);ntttt}nttt})ntt});nttnttnttmain.addObject(brick3dAssetId).then(function([object, mixer, id]) {ntttwindow.mainObject2 = object;ntttntttmain.mixers = mixer;nttnttt// main.animate(id);nttntttwindow.mainObject2.position.z = 20;ntt});nttnttmain.addObject(electricShelf3dAssetId).then(function([object, mixer, id]) {ntttwindow.mainObject3 = object;ntttntttmain.mixers = mixer;nttntttmain.animate(id);nttntttwindow.mainObject3.position.z = 20;ntttwindow.mainObject3.position.x = 20;tntt});nttnttnttmain.grid.on('click', function(ev) {ntttconsole.log(ev);ntttntttmain.startAnimation(character3dAssetId);ntttntttlet dir = new THREE.Vector3();ntttntttlet position = new THREE.Vector3(window.mainObject.position.x, 0, window.mainObject.position.z);ntttlet positionWanted = new THREE.Vector3(ev.intersects.point.x, 0, ev.intersects.point.z);ntttwindow.positionWanted = positionWanted;ntttdir.subVectors( positionWanted, position).normalize();ntttntttplayerWalkingDirection = dir.x;ntttplayerWalkingDirection = dir.z;ntttntttwindow.lastUpdateForMainObjectLookAt = positionWanted;ntttwindow.mainObject.lookAt(positionWanted);ntt});nttntttnttnttntt$(document).on('keydown', function(evt) {ntttconsole.log(evt.which);ntttntttswitch(evt.which) {nttt case 77:n ttttmain.addObject(brick3dAssetId).then(function([object, mixer, id]) {n tttttmain.mixers[id] = mixer;nttn tttttmain.animate(id);ntttttn tttttobject.position.z = window.mainObject.position.z;n tttttobject.position.x = window.mainObject.position.x;n tttt});nttt break;nttt case 38:ntttt main.tiltCurrentlySelectedObjectUpwards();nttt break;nttt case 40:ntttt main.tiltCurrentlySelectedObjectDownwards();nttt break;nttt default:nttttconsole.log(evt.which, 'not handled');nttt}ntt});nttnttnttwindow.letStickManAppear = function() {nttteZii3dStickMan.show(window.mainObject.position); // should be pass by value, not by reference to value (default in ruby and js), ideally this would be a deepCopy or a native javascript passByValue that is not implemented via reference passing (as in an array is passed and argument receiver function can alter the array). IMMPORTANT FOR IT PEOPLE: Don't confuse "pass by reference" (refernece to variable holder), "passy by value via referencee" (reference to value) and "pass by value", ok? We all learn all our life long, just because on doesn't understand something, it doesn't mean the person who designed it is "imbecile" (medium.com/@manu_78098/im-quite-aware-of-the-concept-of-optimistic-locking-d633fc28ce6c).nttttntttteZii3dStickMan.eZii3dStickManThreeJsGroup.lookAt(window.lastUpdateForMainObjectLookAt);ntt}nttnttntt$(document).on(‘contextmenu', function(evt) {ntttntttconsole.log(evt);ntttnttt// $("#contextmenu-eZii-brick-game-3").remove();ntttnttt// let div = $('<div id="contextmenu-eZii-brick-game-3" style="background-color: white;">TEST</div>');ntttntttnttt// $(document.body).append(div);nttt$('#piemenu').css('position', 'fixed');ntttnttt$('#piemenu').css('top', evt.clientY);nttt$('#piemenu').css('left', evt.clientX);ntttntt});nt})n});n”]},“metadata”:{},“sourceType”:“module”}