{"_id":"@curtishughes/rubiks-cube","_rev":"5-6c0882a47d09e7f8069810495feda425","name":"@curtishughes/rubiks-cube","dist-tags":{"latest":"2.0.2"},"versions":{"1.0.0":{"name":"@curtishughes/rubiks-cube","version":"1.0.0","module":"dist/index.js","types":"dist/index.d.ts","license":"MIT","author":{"name":"Curtis Hughes"},"scripts":{"build":"tsc","watch":"tsc -w","lint:write":"eslint src/** --fix","lint:check":"eslint src/**","document":"typedoc src --mode file --readme none","format:write":"prettier --write \"**/*.{ts,json}\"","format:check":"prettier --check \"**/*.{ts,json}\"","prepare":"yarn build","prepublishOnly":"yarn lint:check && yarn format:check","release":"semantic-release","commit":"commit"},"devDependencies":{"@commitlint/cli":"^11.0.0","@commitlint/config-conventional":"^11.0.0","@commitlint/prompt-cli":"^11.0.0","@typescript-eslint/eslint-plugin":"^4.1.0","@typescript-eslint/parser":"^4.1.0","eslint":"^7.8.1","eslint-config-google":"^0.14.0","eslint-config-prettier":"^7.2.0","husky":"^4.3.8","lint-staged":"^10.5.4","prettier":"2.2.1","semantic-release":"^17.3.9","typedoc":"^0.19.1","typescript":"^4.0.2"},"dependencies":{"three":"^0.124.0"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/CurtisHughes/rubiks-cube.git"},"keywords":["rubiks cube","rubiks","cube","3D","threejs","web","canvas","mobile","browser"],"gitHead":"6c72a4d4670aee26bedcfa3bf31f8fbddf55004e","description":"A web based Rubik's Cube implementation. The goal of this package was to provide a minimal interface to the rendered Rubik's cube that would allow consumers to implement custom UI elements and build upon the provided functionality.","bugs":{"url":"https://github.com/CurtisHughes/rubiks-cube/issues"},"homepage":"https://github.com/CurtisHughes/rubiks-cube#readme","_id":"@curtishughes/rubiks-cube@1.0.0","_nodeVersion":"12.20.1","_npmVersion":"6.14.11","dist":{"integrity":"sha512-JohqtoewlvorAXcQXJA65ffma7aYAmTnhyeMGAn/hZw4gDQZhVCNwRiBzE+EkQf5LL2rBdJk65/3uLRwjLFvhg==","shasum":"a51ed2bfe87e08819194fda25c43494ff18a04d1","tarball":"https://registry.npmjs.org/@curtishughes/rubiks-cube/-/rubiks-cube-1.0.0.tgz","fileCount":10,"unpackedSize":18002,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgKbKyCRA9TVsSAnZWagAAqGYP/3Kd0Xa3aCswFrh3ad3j\nPenP77xIjmZw8J3HjH2OjpZ3ermWl2ppQtSaserq4DFBwhluZkWeamGKWT4n\nXyCoeUKmbhZSw1jaDgq4101PoZIJappED3rjvskNx4RNo8W7NDa1LP1ISWfG\nUOyLHgsEvo7Sxo4Zz37ZrsT36qxgcEMH1NRJsjKSnCG0EAz5NJrrBMw955uy\nKiFxwxwtoN7va+TdipgRQnosBGMNfJmmX9gzqeDxAJHrnqoWT9mbvJcen13P\nbkEaPC7YjGsNsc20fbEyNj2VyPww8qT7mhSpuhCXRDobWuRdMmNwTvyp5jOM\n+VeZ5DQM4TdOSS4dXN8o7rvpC1zfTbkLxF7nZxSXJGbhTjE+vogrK2rdf0GT\npr21WctW4aZKEvm1aVH7giWty2aa+UyqySFCPwMu4rfe6qWArL1XqDdRauPO\nIHIjzgpaSSJs5iUmsHpde7i3th6g1zgqcEllQWt+Zp868Fj+sJDVh40lNzP3\nyF15BT1l/SrgC4r3f3NSJ/yRV7gZwYwud+2Z3wlmCgDLxeJqorhZZ3EO1PFp\na5kVrONdiE1Ae7/L+dTKp4lWIo7Cff1eDiPiG4q3TeKiLlc7pYCxZv0rxIiN\n7XOYk4GN5WBdUKKt1F8HWVc3fGg7iXZ3NveMyVq2ETocmcD+n/1/tNeFIr+3\nWWkQ\r\n=HBzP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDTkBhzZOcNmBn0EPMr74V0rhbGX6PE9Fxpm91kCv0tWAiAY1hECM0FZHIvR2PoscakMJYiaoaNlMdFMNG/Cv6ly8A=="}]},"_npmUser":{"name":"curtishughes","email":"development.curtis.hughes@gmail.com"},"directories":{},"maintainers":[{"name":"curtishughes","email":"development.curtis.hughes@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rubiks-cube_1.0.0_1613345457905_0.21618526548197492"},"_hasShrinkwrap":false},"1.1.2":{"name":"@curtishughes/rubiks-cube","version":"1.1.2","main":"index.js","sideEffects":false,"license":"MIT","author":{"name":"Curtis Hughes"},"scripts":{"build":"webpack --mode production","watch":"webpack --watch --mode production","lint:write":"eslint ./src/**/*.ts --fix","lint:check":"eslint ./src/**/*.ts","document":"typedoc src --mode file --readme none","format:write":"prettier --write \"**/*.{ts,json}\"","format:check":"prettier --check \"**/*.{ts,json}\"","release":"semantic-release","commit":"commit"},"devDependencies":{"@commitlint/cli":"^11.0.0","@commitlint/config-conventional":"^11.0.0","@commitlint/prompt-cli":"^11.0.0","@semantic-release/npm":"^7.0.10","@typescript-eslint/eslint-plugin":"^4.1.0","@typescript-eslint/parser":"^4.1.0","clean-webpack-plugin":"^3.0.0","copy-webpack-plugin":"^7.0.0","eslint":"^7.8.1","eslint-config-google":"^0.14.0","eslint-config-prettier":"^7.2.0","husky":"^4.3.8","lint-staged":"^10.5.4","prettier":"2.2.1","semantic-release":"^17.3.9","three":"^0.124.0","ts-loader":"^8.0.17","typedoc":"^0.19.1","typescript":"^4.0.2","url-loader":"^4.1.1","webpack":"^5.24.2","webpack-cli":"^4.5.0"},"peerDependencies":{"three":"^0.124.0"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/CurtisHughes/rubiks-cube.git"},"keywords":["rubiks cube","rubiks","cube","3D","threejs","web","canvas","mobile","browser"],"bugs":{"url":"https://github.com/CurtisHughes/rubiks-cube/issues"},"homepage":"https://github.com/CurtisHughes/rubiks-cube#readme","_id":"@curtishughes/rubiks-cube@1.1.2","_nodeVersion":"12.20.2","_npmVersion":"6.14.11","dist":{"integrity":"sha512-q7TQDGY/Jh7kUrVyhPX00ilD7ul0H9dmTro2gepuJkzUYeHX8lzyThuo5R9BHcKMm3KhEhPNS07HQ2jGRF9d6Q==","shasum":"83eb878021f2afcda5d7c200e9c7ee78fff7f646","tarball":"https://registry.npmjs.org/@curtishughes/rubiks-cube/-/rubiks-cube-1.1.2.tgz","fileCount":15,"unpackedSize":567226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPFfICRA9TVsSAnZWagAA1z0P/iSS+vOzbbTpWqTLH/lA\ntPYx1u9ke/OOV31QurmZPAse6eet4vqqVf2/9Iw2p9TDflxnwUNzE5kkrdh4\nQHsUT++rZ32/zPgnqP+CxAi5ZyK2zWzRspygqi5vZEZ9cOyHW+arJyxa8KL4\nx/iDvN59LHCI5dN2sEkfG6+EysyoHBLY11D9xFNQXYnCoLUTtfXN58uNkXYk\noMdUjMSh9x9HyHzCGOR6qUT0VI+LarUrR/cYUAN599XkFC8xJdDK+tN7un0L\nmzjYs/cfGDQDmHBzXXXfIoqF/Y8N7kH78+V90+uQJjeEBwJj2OaPPMXxMtno\n9FjpvYwQ1LhsOGlGqD4eWCdZYGebXlMFq/6abZkgI5Oncjk4h8V/HO4V7N+L\nbLXxvFAK1g9ppEQjnArLnN4aeGGbfepH0PFxbpkzpMFLASZaC5mWueebm6tE\n8Dlc3LEgpZfuQf9vKFObffLpIDM4H88js+rupyn0JoedSmkb3wZdWhJZMbbo\nZHds6pgF+aMmSeie1GvGiZRcUX2TMNe/Nl34wZ9CPmks7pSzeC/3HTflqb6h\nUc7H0K6mFwpr6IJPadmbdmsLEZz0PZhpooRU2FWgx1xVySWu3CMdAUKD9bfV\nUChSPzqNXCQ+h1n5P/Fk65X9X6K5cND3HdXCTRN+e/y+hmAZt068wWllodCa\n0JfJ\r\n=mS+X\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7J5/qVskyU2i3mHHjsc24JAJiuvRuCjLqZQQBPx3N/QIhALt747yufnudmw0S1wh3Ym0SKA8BrdgHL1jlvMBhrXW0"}]},"_npmUser":{"name":"curtishughes","email":"development.curtis.hughes@gmail.com"},"directories":{},"maintainers":[{"name":"curtishughes","email":"development.curtis.hughes@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rubiks-cube_1.1.2_1614567367893_0.026551171784748417"},"_hasShrinkwrap":false},"2.0.0":{"name":"@curtishughes/rubiks-cube","version":"2.0.0","main":"index.js","sideEffects":false,"license":"MIT","author":{"name":"Curtis Hughes"},"scripts":{"build":"webpack --mode production","watch":"webpack --watch --mode production","lint:write":"eslint ./src/**/*.ts --fix","lint:check":"eslint ./src/**/*.ts","format:write":"prettier --write \"**/*.{ts,json}\"","format:check":"prettier --check \"**/*.{ts,json}\"","release":"semantic-release","commit":"commit"},"devDependencies":{"@commitlint/cli":"^11.0.0","@commitlint/config-conventional":"^11.0.0","@commitlint/prompt-cli":"^11.0.0","@semantic-release/npm":"^7.0.10","@typescript-eslint/eslint-plugin":"^4.1.0","@typescript-eslint/parser":"^4.1.0","clean-webpack-plugin":"^3.0.0","copy-webpack-plugin":"^7.0.0","eslint":"^7.8.1","eslint-config-google":"^0.14.0","eslint-config-prettier":"^7.2.0","husky":"^4.3.8","lint-staged":"^10.5.4","prettier":"2.2.1","semantic-release":"^17.3.9","three":"^0.124.0","ts-loader":"^8.0.17","typescript":"^4.0.2","url-loader":"^4.1.1","webpack":"^5.24.2","webpack-cli":"^4.5.0"},"peerDependencies":{"three":"^0.124.0"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/CurtisHughes/rubiks-cube.git"},"keywords":["rubiks cube","rubiks","cube","3D","threejs","web","canvas","mobile","browser"],"bugs":{"url":"https://github.com/CurtisHughes/rubiks-cube/issues"},"homepage":"https://github.com/CurtisHughes/rubiks-cube#readme","_id":"@curtishughes/rubiks-cube@2.0.0","_nodeVersion":"12.20.2","_npmVersion":"6.14.11","dist":{"integrity":"sha512-uN/knmwEy8mba25l+iCw2JwJB8TRpClz11gZGu7OnH4dYi4wr+QJBqTnB+3G10f1Vhy5d5gNAfP4D9zuibE1KQ==","shasum":"8cc876b8b35264f8b912d91eb0144cee965807a8","tarball":"https://registry.npmjs.org/@curtishughes/rubiks-cube/-/rubiks-cube-2.0.0.tgz","fileCount":15,"unpackedSize":567263,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPGhCCRA9TVsSAnZWagAAduEP+QBXOntMDMdeC9e2FN0h\n2/Lp1ypilYCOC8tqR6b9LNdNZHr36d2KK8TgyBiKsMznmU+tyyajjP7i0HVd\nxFUiDrTt9zBDqipzfgZxnUn3WdEfa7jwYJ8pPHdPCms9ShGCOk0DTOjVhinD\nlRXVfrrVXNka16rCZOuvieGPafVJysDzFLdcmPeGW5Gcb7IdK+c+lO4VenY7\nfGJ6yV9/tTHFxdBAjfJMRiQ6NnJ43XyZLBmHYZsoIG4uVdWjUL6Vpr7mGMGe\nyoGBA5NZgG/jj9kDMPUutdX1xPa81yUXOMSlRg62JFKRe+vJO79tav9dfHwc\nwNiy7rE857gD/8YLulqI2H+n/P1T2BZeJLhzNyFfXlHT3WnB/XqzpI0WyoB3\nBhgsceerDarlchsVxhtHISlYXbxnWe9lgAuiO9EB9+cweCRw7Gc1gdogE0HH\nFy/56xB9ZNS97qlCoS/FV0OtMUyOO8urXNInV1dhiH6EpFVza/LFEMXgPPA5\n6iz536vDhl2AzIT6PU+FOPqZ4ZGmn3X0lAJyCL4ockIBw6AUJhEL2PGNJpUM\nDKRX/dd8jWEeid0reCHXBTTXSrntRQ+1psQiuwfQSWf6tx/iDdJC48gHxueh\nN/cVxCjsXxXZpWweNrTGPF+WKqzZmhMYho1twlrIsQkn2sk/CH9weixQrWGZ\n+Kln\r\n=Mu5j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzGHx81GToaVyRR4TFA4LKxY4ob0eZxRlUwmeSyTPBHAIgCc4HuPE0l8TwLCekSFul8ForufzXQXI1B8+DVhJKIAk="}]},"_npmUser":{"name":"curtishughes","email":"development.curtis.hughes@gmail.com"},"directories":{},"maintainers":[{"name":"curtishughes","email":"development.curtis.hughes@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rubiks-cube_2.0.0_1614571585515_0.8520676282320048"},"_hasShrinkwrap":false},"2.0.1":{"name":"@curtishughes/rubiks-cube","version":"2.0.1","main":"index.js","sideEffects":false,"license":"MIT","author":{"name":"Curtis Hughes"},"scripts":{"build":"webpack --mode production","watch":"webpack --watch --mode production","lint:write":"eslint ./src/**/*.ts --fix","lint:check":"eslint ./src/**/*.ts","format:write":"prettier --write \"**/*.{ts,json}\"","format:check":"prettier --check \"**/*.{ts,json}\"","release":"semantic-release","commit":"commit"},"devDependencies":{"@commitlint/cli":"^11.0.0","@commitlint/config-conventional":"^11.0.0","@commitlint/prompt-cli":"^11.0.0","@semantic-release/npm":"^7.0.10","@typescript-eslint/eslint-plugin":"^4.1.0","@typescript-eslint/parser":"^4.1.0","clean-webpack-plugin":"^3.0.0","copy-webpack-plugin":"^7.0.0","eslint":"^7.8.1","eslint-config-google":"^0.14.0","eslint-config-prettier":"^7.2.0","husky":"^4.3.8","lint-staged":"^10.5.4","prettier":"2.2.1","semantic-release":"^17.3.9","three":"^0.124.0","ts-loader":"^8.0.17","typescript":"^4.0.2","url-loader":"^4.1.1","webpack":"^5.24.2","webpack-cli":"^4.5.0"},"peerDependencies":{"three":"^0.124.0"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/CurtisHughes/rubiks-cube.git"},"keywords":["rubiks cube","rubiks","cube","3D","threejs","web","canvas","mobile","browser"],"bugs":{"url":"https://github.com/CurtisHughes/rubiks-cube/issues"},"homepage":"https://github.com/CurtisHughes/rubiks-cube#readme","_id":"@curtishughes/rubiks-cube@2.0.1","_nodeVersion":"12.20.2","_npmVersion":"6.14.11","dist":{"integrity":"sha512-sty0P6VpmbcTTEjjG+zSgnX2vzc8vtSKHCc8v//0OVd9iplPMymOz+lq/stx5Aw1wMHuYQjG2R3YmoISPr77rw==","shasum":"812110f861e10a85ba61aec78b2801f9ba4ed413","tarball":"https://registry.npmjs.org/@curtishughes/rubiks-cube/-/rubiks-cube-2.0.1.tgz","fileCount":15,"unpackedSize":567263,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPG6vCRA9TVsSAnZWagAAV6YP/2LMbUIv5jSeNpgbZoDL\nvhCne7Dx/3gcHXMYqSMmd3TwwMhrfBPq+gqV948LZFVRiZUmxFrQW96VupXz\nBsB4B8GPOt55smZhB0gOzVk5zN3+fM5qI05TalEr5OApHgHRN0WyA2V7zCi1\nW3obLmG+qESx+7CuuKYO7qLMHFJ5BXAJKZXEDuRGbdGmM9ZGbuWmfb4/ZHgV\nOVt1sh66elaLFz2ffj45Ae9uJ4vTkHAzM4quzncDuiQnSz6y4wMw5coWYIP/\nF1oSI5IHY3pGAyyPoi5HSusSqkHAGpPJLjAtjOQRhZ4P92hjzu9x5JeI/Qyr\n/8jN2azQEvkKiFEowVBmcdnMYaOU6c3qOBoPUgE8BRUBls6KsZs9eAAFLEsK\n+WCjs0nHUNvy1rmChHa1pE6veHn/ToFgLLunT4smFKzx9kHC3D9SwK3aaYNs\ncQ7EtdK67XbEqTdtgEgXAmUHCHuXkh6Vb5OkcysNPpvPIf0Rt4MaWMpFHAPL\nxLS09yOnpLYNwRv6InMDSfMNe+uu6jC05vRFfTIWCXmQZj6k6MXV9WrxdOGB\nSKp/0/NHMg7wm3k9xg19yxEYPmCMaHC+jNUydkxsVxSe70tWPb46kbToRUx+\nGZC0ZNN0D9OFulKO5+VJj8V7n5Fu1LmWz7PdOyEiAc52N+0N0afxhLbhjVWH\n4kap\r\n=xupx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDfPDpGLVoRoAFnM951CjUrFMJBVhGWpuawP63CJEyyogIgKCQ/Rt7ZZbetAkg9VjdGYWveRL9Vwl0NBA+51F/H56c="}]},"_npmUser":{"name":"curtishughes","email":"development.curtis.hughes@gmail.com"},"directories":{},"maintainers":[{"name":"curtishughes","email":"development.curtis.hughes@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rubiks-cube_2.0.1_1614573231031_0.7708969639288203"},"_hasShrinkwrap":false},"2.0.2":{"name":"@curtishughes/rubiks-cube","version":"2.0.2","main":"index.js","sideEffects":false,"license":"MIT","author":{"name":"Curtis Hughes"},"scripts":{"build":"webpack --mode production","watch":"webpack --watch --mode production","lint:write":"eslint ./src/**/*.ts --fix","lint:check":"eslint ./src/**/*.ts","format:write":"prettier --write \"**/*.{ts,json}\"","format:check":"prettier --check \"**/*.{ts,json}\"","release":"semantic-release","commit":"commit"},"devDependencies":{"@commitlint/cli":"^11.0.0","@commitlint/config-conventional":"^11.0.0","@commitlint/prompt-cli":"^11.0.0","@semantic-release/npm":"^7.0.10","@typescript-eslint/eslint-plugin":"^4.1.0","@typescript-eslint/parser":"^4.1.0","clean-webpack-plugin":"^3.0.0","copy-webpack-plugin":"^7.0.0","eslint":"^7.8.1","eslint-config-google":"^0.14.0","eslint-config-prettier":"^7.2.0","husky":"^4.3.8","lint-staged":"^10.5.4","prettier":"2.2.1","semantic-release":"^17.3.9","three":"^0.124.0","ts-loader":"^8.0.17","typescript":"^4.0.2","url-loader":"^4.1.1","webpack":"^5.24.2","webpack-cli":"^4.5.0"},"peerDependencies":{"three":"^0.124.0"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/CurtisHughes/rubiks-cube.git"},"keywords":["rubiks cube","rubiks","cube","3D","threejs","web","canvas","mobile","browser"],"description":"<img src=\"assets/classic.gif\" height=\"150px\" />","bugs":{"url":"https://github.com/CurtisHughes/rubiks-cube/issues"},"homepage":"https://github.com/CurtisHughes/rubiks-cube#readme","_id":"@curtishughes/rubiks-cube@2.0.2","_nodeVersion":"12.20.2","_npmVersion":"6.14.11","dist":{"integrity":"sha512-Y2+wUO9gqIx5IH/hU0JPylHahPvUZd5SuB29VXfGyiVVB3oGK/vKQdgf/9BZGdxJSMYXUnJU/81gwTaKiFiVtg==","shasum":"01fcac736f2a2809d098b1108bd5d700b5e9caa8","tarball":"https://registry.npmjs.org/@curtishughes/rubiks-cube/-/rubiks-cube-2.0.2.tgz","fileCount":16,"unpackedSize":573246,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPG9jCRA9TVsSAnZWagAAi1QP/1UiiYnbcOlMpUqeUEzU\nyEJ1fdKAwsRzweKjzI/GZoXegMLcEajI0aNWWzAh6JcHlAO0duRBGVmRkgny\nMoz3ihwZxbCLD12IYwV5XuYLAtfIvx7DzpJN0hnucPWvy3t5f7POp1tuBGr8\n4lbzxtmUglijzh9+G9wkCrc6XfIWS39yIRAWo3bfcDvGaYnFeffPmZntwZkX\nZQb0cIDxjJiqmh8A8TwSn50p7NHDfjryrBAPIA7Yq+afXB8ZjfU4vzZkls9B\nKuUb0z01hB9WR/5aWmlCLDyOPcs1MS4FE4el2LFhLN4hvriUvQyjl8AWWDd/\nTe8A+xjgV4NH5ZMeDtVpCZljVFJOe93Bhsg6+98hYfn2t4BK6OX5xyHGvRfO\nRpaNw7hu1xo8Td1l3sH0X01nooZLRcW9tByTzSrHOf3Roeedn1OkBkerpA1M\nbonmQ7dXb08BQZbAoG1bgFBdsx2AQflULdy/0vF3UfYIgZXACq/EXTChaGYN\nu/9wpOcGvm2KBKPxh2NFaMBeAb9qyzh9Xi2NCMT/t26Mlqo8t50T3fJ1Gm3z\n8FGu4wUwhxTQ0VL6//jsbn8zNVYTYIubK6imHJjPNX2rlM2U5jJfQ56+XhzR\nN38PtnVZLKSAmYxedb8RBz+5+9KpD7WbXjtElzkvAcE1YDeh4E23jTgHpuEH\nwHgt\r\n=7oHA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8BBwWcbbgTyU9GdL2xHBFCbAIEvK1ufeaoBMbX0tydwIhAKrMBzBT/R8FOQUkApB21GQSiUkfBxncYQHOBSqEjUks"}]},"_npmUser":{"name":"curtishughes","email":"development.curtis.hughes@gmail.com"},"directories":{},"maintainers":[{"name":"curtishughes","email":"development.curtis.hughes@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rubiks-cube_2.0.2_1614573410928_0.6671420216255126"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-14T23:30:57.873Z","1.0.0":"2021-02-14T23:30:58.030Z","modified":"2022-04-05T02:20:46.369Z","1.1.2":"2021-03-01T02:56:08.151Z","2.0.0":"2021-03-01T04:06:25.762Z","2.0.1":"2021-03-01T04:33:51.281Z","2.0.2":"2021-03-01T04:36:51.120Z"},"maintainers":[{"name":"curtishughes","email":"development.curtis.hughes@gmail.com"}],"homepage":"https://github.com/CurtisHughes/rubiks-cube#readme","keywords":["rubiks cube","rubiks","cube","3D","threejs","web","canvas","mobile","browser"],"repository":{"type":"git","url":"git+https://github.com/CurtisHughes/rubiks-cube.git"},"author":{"name":"Curtis Hughes"},"bugs":{"url":"https://github.com/CurtisHughes/rubiks-cube/issues"},"license":"MIT","readme":"<img src=\"assets/classic.gif\" height=\"150px\" />\n\n# Rubik's Cube\nA web based Rubik's Cube implementation. The goal of this package was to provide a minimal interface to the rendered Rubik's cube that would allow consumers to implement custom UI elements and build upon the provided functionality.\n\n## Features\n* 3D rendered Rubik's Cube\n* Customizable material and textures\n* Exposed [Singmaster notation](https://en.wikipedia.org/wiki/Rubik%27s_Cube#Solutions) methods\n* Configurable rotation speed\n* Responsive canvas\n\n## Installation\nNOTE: [Three.js](https://threejs.org/) is a *required* peer dependency of this package. It has purposefully been excluded in order to reduce bundle size and allow the consumer to use their preferred version. \n\n```bash\nyarn add @curtishughes/rubiks-cube three\n```\n\n```bash\nnpm install @curtishughes/rubiks-cube three\n```\n\n## Exports\nDefault:\n- `RubiksCube(canvas: HTMLCanvasElement, materials: THREE.MeshBasicMaterial[], speed?: number, width?: string, height?: string)`\n  * `F (clockwise?: boolean, duration?: number)`: rotate the side currently facing the solver\n  * `B (clockwise?: boolean, duration?: number)`: rotate the side opposite the front\n  * `U (clockwise?: boolean, duration?: number)`: rotate the side above or on top of the front side\n  * `D (clockwise?: boolean, duration?: number)`: rotate the side opposite the top, underneath the Cube\n  * `L (clockwise?: boolean, duration?: number)`: rotate the side directly to the left of the front\n  * `R (clockwise?: boolean, duration?: number)`: rotate the side directly to the right of the front\n  * `f (clockwise?: boolean, duration?: number)`: rotate the side facing the solver and the corresponding middle layer\n  * `b (clockwise?: boolean, duration?: number)`: rotate the side opposite the front and the corresponding middle layer\n  * `u (clockwise?: boolean, duration?: number)`: rotate the top side and the corresponding middle layer\n  * `d (clockwise?: boolean, duration?: number)`: rotate the bottom layer and the corresponding middle layer\n  * `l (clockwise?: boolean, duration?: number)`: rotate the side to the left of the front and the corresponding middle layer\n  * `r (clockwise?: boolean, duration?: number)`: rotate the side to the right of the front and the corresponding middle layer\n  * `x (clockwise?: boolean, duration?: number)`: rotate the entire Cube on R\n  * `y (clockwise?: boolean, duration?: number)`: rotate the entire Cube on U\n  * `z (clockwise?: boolean, duration?: number)`: rotate the entire Cube on F\n\nNamed:\n- `materials`\n  * `classic: THREE.MeshBasicMaterial[]`: the classic Rubik's Cube material (shown in above gif)\n\n## Usage\n*Rubik's Cube* is not coupled with any specific framework. However, I have included some examples of how it can be used with a few of the popular frontend frameworks:\n\n### React\n```tsx\nimport React, { useRef, useEffect, useState } from 'react';\nimport RubiksCube, { materials } from '@curtishughes/rubiks-cube';\n\nfunction App() {\n  const canvasRef = useRef<HTMLCanvasElement>(null);\n  const [cube, setCube] = useState<RubiksCube>();\n\n  useEffect(() => {\n    if (canvasRef.current) {\n      setCube(new RubiksCube(canvasRef.current, materials.classic, 100));\n    }\n  }, []);\n\n  return (\n    <>\n      <canvas width=\"200px\" height=\"200px\" ref={canvasRef} />\n      <button onClick={() => { if (cube) cube.F() }}>F</button>\n      <button onClick={() => { if (cube) cube.F(false) }}>F'</button>\n      {/** ... **/}\n    </>\n  );\n}\n\nexport default App;\n```\n\n### Vue\n```vue\n<template>\n  <div>\n    <canvas ref=\"cube\" />\n    <button @click=\"() => cube.F()\">F</button>\n    <button @click=\"() => cube.F(false)\">F'</button>\n  </div>\n</template>\n\n<script lang=\"ts\">\nimport { Component, Vue } from 'vue-property-decorator';\nimport RubiksCube, { materials } from '@curtishughes/rubiks-cube';\n\n@Component\nexport default class Editor extends Vue {\n  private cube!: RubiksCube;\n\n  mounted() {\n    const canvas = this.$refs.cube as HTMLCanvasElement;\n    this.cube = new RubiksCube(canvas, materials.classic, 100);\n  }\n}\n</script>\n```\n\n### Customize material/textures\n```ts\nimport * as THREE from 'three';\n/* IMPORTANT: Load RubiksCube from the 'core' sub-module to avoid loading unnecessary material assets */\nimport RubiksCube from '@curtishughes/rubiks-cube/core';\n\nnew RubiksCube(canvas,  [\n  new THREE.MeshBasicMaterial({ map: new THREE.TextureLoader().load('path/to/texture1') }),\n  new THREE.MeshBasicMaterial({ map: new THREE.TextureLoader().load('path/to/texture2') }),\n  new THREE.MeshBasicMaterial({ map: new THREE.TextureLoader().load('path/to/texture3') }),\n  new THREE.MeshBasicMaterial({ map: new THREE.TextureLoader().load('path/to/texture4') }),\n  new THREE.MeshBasicMaterial({ map: new THREE.TextureLoader().load('path/to/texture5') }),\n  new THREE.MeshBasicMaterial({ map: new THREE.TextureLoader().load('path/to/texture6') }),\n], 100);\n```\n\n## License\nMIT License\n\nCopyright (c) [2021] [Curtis Hughes]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","readmeFilename":"README.md","description":"<img src=\"assets/classic.gif\" height=\"150px\" />"}