{"_id":"@ellementul/ui-game-grid","_rev":"2-2503a5a2d1bca56454cc90a2ba1165c9","name":"@ellementul/ui-game-grid","dist-tags":{"latest":"0.4.1"},"versions":{"0.3.0":{"name":"@ellementul/ui-game-grid","version":"0.3.0","description":"Interface Grid for games","main":"index.js","scripts":{"test":"node ./test.js"},"repository":{"type":"git","url":"git+https://github.com/ellementul/UIGameGrid.git"},"keywords":["UI","Game"],"author":{"name":"Ellementul"},"license":"ISC","bugs":{"url":"https://github.com/ellementul/UIGameGrid/issues"},"homepage":"https://github.com/ellementul/UIGameGrid#readme","devDependencies":{"node-static":"^0.7.11"},"_id":"@ellementul/ui-game-grid@0.3.0","gitHead":"548246c176e649846af0efbc1ee9c52f7d72e4f8","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-BbBSxY3BaQneTMlDn3mImpJ27wATkDLM08wdtrP+zP2jAJEEp+VTc67IyN8dK8iMbemD9YIBxdTvElk1Yqvxiw==","shasum":"fe04349fbf4dd608db8c588f07a5b3cce356e1ce","tarball":"https://registry.npmjs.org/@ellementul/ui-game-grid/-/ui-game-grid-0.3.0.tgz","fileCount":5,"unpackedSize":5956,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1ZtK7AgePopxi/kgkxsLfjAQ9jdjCRuWNMKnGRU+SfAIgN+YOjK9ngv5vj7WNVpXY2jSEg4ECNfVC8dwuckV0swM="}]},"_npmUser":{"name":"ellementul","email":"ivanzamkov2014@gmail.com"},"directories":{},"maintainers":[{"name":"ellementul","email":"ivanzamkov2014@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ui-game-grid_0.3.0_1711706543008_0.7695081609791137"},"_hasShrinkwrap":false},"0.4.0":{"name":"@ellementul/ui-game-grid","version":"0.4.0","description":"Interface Grid for games","main":"index.js","scripts":{"test":"node ./test.js"},"repository":{"type":"git","url":"git+https://github.com/ellementul/UIGameGrid.git"},"keywords":["UI","Game"],"author":{"name":"Ellementul"},"license":"ISC","bugs":{"url":"https://github.com/ellementul/UIGameGrid/issues"},"homepage":"https://github.com/ellementul/UIGameGrid#readme","devDependencies":{"node-static":"^0.7.11"},"_id":"@ellementul/ui-game-grid@0.4.0","gitHead":"575dc2e2693d4f829f1ec7089c2385cde709d5af","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-8U/JllFrBoFw7xoalt8ZlWikguzb7W1kZ+WqVEuw2622Ze6bsCwm0xpE2c8o1Z24LsGqjoBdCvPiRwocvtYz+A==","shasum":"569a6a6ef46659bb8dd9c072f04c30e5aade5339","tarball":"https://registry.npmjs.org/@ellementul/ui-game-grid/-/ui-game-grid-0.4.0.tgz","fileCount":5,"unpackedSize":5951,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAknV6lFTXRhPPGImhluUjeGZjh/QSAGzKih1RHydCFqAiAPBKpESVQdtO1yngXXAxEhIgUpURgBEEKbSyDngPfJvg=="}]},"_npmUser":{"name":"ellementul","email":"ivanzamkov2014@gmail.com"},"directories":{},"maintainers":[{"name":"ellementul","email":"ivanzamkov2014@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ui-game-grid_0.4.0_1711717593298_0.6722623707739352"},"_hasShrinkwrap":false},"0.4.1":{"name":"@ellementul/ui-game-grid","version":"0.4.1","description":"Interface Grid for games","main":"index.js","scripts":{"test":"node ./test.js"},"repository":{"type":"git","url":"git+https://github.com/ellementul/UIGameGrid.git"},"keywords":["UI","Game"],"author":{"name":"Ellementul"},"license":"ISC","bugs":{"url":"https://github.com/ellementul/UIGameGrid/issues"},"homepage":"https://github.com/ellementul/UIGameGrid#readme","devDependencies":{"node-static":"^0.7.11"},"_id":"@ellementul/ui-game-grid@0.4.1","gitHead":"1308e85778116812f035b5add6e6b2f7ca0c8d0e","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-E/kMFsnMlDPZSNJlIgc35e96Il53337/EpGJkcy1Twigoh9OLbbeVoowseveng8iCjG0Zjq8wnPpg+6kcNIlIA==","shasum":"033bc6fabdf80db8562c445b2c29438f920fc69b","tarball":"https://registry.npmjs.org/@ellementul/ui-game-grid/-/ui-game-grid-0.4.1.tgz","fileCount":5,"unpackedSize":6261,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA0IlOnGPvFd+y+sRXU4J6TEAj1koaq3nueH6zHjwccXAiAtnlrqAyZyIWUBjWE6jMg9ppuelycmwTOhCxWFXvd/1w=="}]},"_npmUser":{"name":"ellementul","email":"ivanzamkov2014@gmail.com"},"directories":{},"maintainers":[{"name":"ellementul","email":"ivanzamkov2014@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ui-game-grid_0.4.1_1711720519118_0.4196253854267298"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-29T10:02:22.884Z","0.3.0":"2024-03-29T10:02:23.148Z","modified":"2024-03-29T13:55:19.487Z","0.4.0":"2024-03-29T13:06:33.468Z","0.4.1":"2024-03-29T13:55:19.315Z"},"maintainers":[{"name":"ellementul","email":"ivanzamkov2014@gmail.com"}],"description":"Interface Grid for games","homepage":"https://github.com/ellementul/UIGameGrid#readme","keywords":["UI","Game"],"repository":{"type":"git","url":"git+https://github.com/ellementul/UIGameGrid.git"},"author":{"name":"Ellementul"},"bugs":{"url":"https://github.com/ellementul/UIGameGrid/issues"},"license":"ISC","readme":"# UIGameGrid\n\n## Description\nGrid for postion of boxes.\n\nMinimal side of grid is base side.\n\nBase side can be 20 cells or 30 cells of lenght.\n\nEach side of box has fixed distance from side of window.\n\nDistance has to be Integer type.\n\nNegative distance from opposite side.\n\nExample:\n\n    Left: 5 = 5 cells from left side of window for left side of box\n  \n    Left: -5 = 5 cells from right side of window for left side of box\n\nWith \"Centred\" option you can use only positive distance.\n\n## Use\n### Create grid\n```js\nconst grid = new Grid() // Default 20 cells on base side\nconst grid = new Grid(30) // 30 cells on base side\n```\n\n### Top-left angle 4x4\n```js\ngrid.createBox({\n  name: \"Name_your_Block\", //Optional, setting as id of HTML element\n  top: 0,\n  left: 0,\n  right: -4,\n  bottom: -4\n})\n```\n### Bottom-left angle 4x4\n```js\ngrid.createBox({\n  top: -4,\n  left: 0,\n  right: -4,\n  bottom: 0\n})\n```\n\n### Centered box 6x6\n```js\ngrid.createBox({\n  top: 3,\n  left: 3,\n  right: 3,\n  bottom: 3,\n  centred: true\n})\n```\n\n### Get Top-left angle\n```js\nconst box = grid.get(\"Name_your_Block\")\n```\n","readmeFilename":"README.md"}