{"_id":"@2flexible/2flex","_rev":"3-d1aa6a6789f240d77fa67a5ddb758248","name":"@2flexible/2flex","dist-tags":{"latest":"1.1.2"},"versions":{"1.1.0":{"name":"@2flexible/2flex","version":"1.1.0","author":{"name":"nazarovabuzar"},"license":"MIT","_id":"@2flexible/2flex@1.1.0","maintainers":[{"name":"nzrv","email":"2flexible@2flexible.com"}],"homepage":"https://2flexible/2flex","bugs":{"url":"https://github.com/2flexible/2flex/issues"},"dist":{"shasum":"95a85b9aa77db5fe4a2588b16d8c547c46354596","tarball":"https://registry.npmjs.org/@2flexible/2flex/-/2flex-1.1.0.tgz","fileCount":27,"integrity":"sha512-8Da0SYxA1VVDLNrtdwBYvw+tUrsnZaGNZt3nI7gmyvW/UNaG07byoPLNhfNVAJp8Qll2rKYi0egEg/MdiXGlUw==","signatures":[{"sig":"MEUCIQDV1h/rDjgoVoS0rvfkZCLGyrF1gwmA0eTcqb33dV0fNwIgKpnsdB9y/5cb9Z5wezLdBWBMdX09vS/K9WymZeZvnlc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@2flexible%2f2flex@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1986350},"main":"lib/index.cjs","type":"module","types":"lib/index.d.ts","module":"lib/index.js","exports":{".":{"import":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"require":{"types":"./lib/index.d.cts","default":"./lib/index.cjs"}},"./package.json":"./package.json"},"gitHead":"a357ffa09833bbf48e85139525f306f3b67cb686","scripts":{"test":"vitest","build":"tsup --tsconfig tsconfig.json","clean":"premove ./lib ./tsbuild ./coverage","compile":"tsc --build"},"_npmUser":{"name":"nzrv","email":"2flexible@2flexible.com"},"repository":{"url":"git+https://github.com/2flexible/2flex.git","type":"git","directory":"packages/2flex"},"_npmVersion":"11.9.0","description":"Too flexible infinite canvas library.","directories":{},"_nodeVersion":"24.14.0","_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/2flex_1.1.0_1775036534978_0.546737608392249","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@2flexible/2flex","version":"1.1.1","keywords":["2flexible","too flexible","2flex","canvas","infinite canvas","draw"],"author":{"name":"nazarovabuzar"},"license":"MIT","_id":"@2flexible/2flex@1.1.1","maintainers":[{"name":"nzrv","email":"2flexible@2flexible.com"}],"homepage":"https://2flexible/2flex","bugs":{"url":"https://github.com/2flexible/2flex/issues"},"dist":{"shasum":"11ee8b0259191fbd9f749f87c46eb563366daaf0","tarball":"https://registry.npmjs.org/@2flexible/2flex/-/2flex-1.1.1.tgz","fileCount":27,"integrity":"sha512-18HA5UB3Mb9UmpSYuwoxP+4JMOV6PJ0KySVvjliXWbFXCYIdTfTBCCqxsjyS8pFWcYmjL+KTO49KehF2jJGkdQ==","signatures":[{"sig":"MEUCIA3Fv3NSy+8ofhI8oCUSHt6AYxm0iExr/VHZSVqhlfnWAiEA079a408H3LkjIN1TPPdZiKZ8w5nqXFKjrdJOPv9N1ZI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@2flexible%2f2flex@1.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2016452},"main":"lib/index.cjs","type":"module","types":"lib/index.d.ts","module":"lib/index.js","exports":{".":{"import":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"require":{"types":"./lib/index.d.cts","default":"./lib/index.cjs"}},"./package.json":"./package.json"},"gitHead":"6f0604099b47ef2dad7e64fdc6e8044e1c4b0b65","scripts":{"test":"vitest","build":"tsup --tsconfig tsconfig.json","clean":"premove ./lib ./tsbuild ./coverage","watch":"tsup --tsconfig tsconfig.json --watch","compile":"tsc --build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:5db16277-d36e-421f-938e-1f4672ce6e1f"}},"repository":{"url":"git+https://github.com/2flexible/2flex.git","type":"git","directory":"packages/2flex"},"_npmVersion":"11.11.0","description":"Too flexible infinite canvas library.","directories":{},"_nodeVersion":"24.14.1","_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/2flex_1.1.1_1775564487186_0.9868884699493068","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@2flexible/2flex","version":"1.1.2","description":"Too flexible infinite canvas library.","author":{"name":"nazarovabuzar"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/2flexible/2flex.git","directory":"packages/2flex"},"homepage":"https://2flexible/2flex","type":"module","types":"lib/index.d.ts","main":"lib/index.cjs","module":"lib/index.js","exports":{".":{"import":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"require":{"types":"./lib/index.d.cts","default":"./lib/index.cjs"}},"./package.json":"./package.json"},"keywords":["2flexible","too flexible","2flex","canvas","infinite canvas","draw"],"scripts":{"clean":"premove ./lib ./tsbuild ./coverage","build":"tsup --tsconfig tsconfig.json","watch":"tsup --tsconfig tsconfig.json --watch","compile":"tsc --build","test":"vitest"},"devDependencies":{},"gitHead":"4291ffa3fa1ef8922b7aa9dddc3800ae85d2f9a9","_id":"@2flexible/2flex@1.1.2","bugs":{"url":"https://github.com/2flexible/2flex/issues"},"_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-RqY9uWfrgqOR0J+NARELmULx6khVB7VFg+h41P+Wu1sBT9vpWlsUzqw+BoyXG6fHEp/lDcp1lqbqslkLj27P+w==","shasum":"c77ee239f82ec57c0080bfe5c0723389bbc9987c","tarball":"https://registry.npmjs.org/@2flexible/2flex/-/2flex-1.1.2.tgz","fileCount":27,"unpackedSize":2025635,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@2flexible%2f2flex@1.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEm2vsZWoE3GaRKCDYM2zUjk3+UKMf0Kbo9arCbjLH9gAiEArwaiS/LIsiQL4zJ9KPlDgS+nsJdU7Nh8pWr7tS1qw7c="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:5db16277-d36e-421f-938e-1f4672ce6e1f"}},"directories":{},"maintainers":[{"name":"nzrv","email":"2flexible@2flexible.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/2flex_1.1.2_1775585574504_0.16138648462554905"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-01T09:42:14.897Z","modified":"2026-04-07T18:12:54.992Z","1.1.0":"2026-04-01T09:42:15.200Z","1.1.1":"2026-04-07T12:21:27.361Z","1.1.2":"2026-04-07T18:12:54.700Z"},"bugs":{"url":"https://github.com/2flexible/2flex/issues"},"author":{"name":"nazarovabuzar"},"license":"MIT","homepage":"https://2flexible/2flex","keywords":["2flexible","too flexible","2flex","canvas","infinite canvas","draw"],"repository":{"type":"git","url":"git+https://github.com/2flexible/2flex.git","directory":"packages/2flex"},"description":"Too flexible infinite canvas library.","maintainers":[{"name":"nzrv","email":"2flexible@2flexible.com"}],"readme":"<p align=\"center\">\n  <a href=\"https://2flexible.com/2flex\" target=\"_blank\" rel=\"noopener noreferrer\">\n    <img height=\"150\" src=\"../../assets/logo.svg\" alt=\"2flex logo\">\n  </a>\n</p>\n<br/>\n<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/@2flexible/2flex\"><img src=\"https://img.shields.io/npm/v/@2flexible/2flex.svg\" alt=\"npm package\"></a>\n  <a href=\"https://www.npmjs.com/package/@2flexible/2flex\"><img src=\"https://img.shields.io/npm/dm/@2flexible/2flex\" alt=\"npm downloads\"></a>\n  <a href=\"https://github.com/2flexible/2flex/graphs/contributors\">\n<img alt=\"GitHub contributors\" src=\"https://img.shields.io/github/contributors/2flexible/2flex\">\n  </a>\n</p>\n<p align=\"center\">\n <a href=\"https://2flexible/2flex/docs/documentation/introduction\">Introduction</a> | <a href=\"https://2flexible/2flex/docs/documentation/installation\">Installation</a> | <a href=\"https://2flexible/2flex/docs/documentation/guide/the-block\">Guide</a> | <a href=\"https://2flexible/2flex/docs/api/Canvas\">API Docs</a> | <a href=\"https://x.com/2flexiible\">𝕏</a>\n</p>\n\n# 2flex\nToo flexible canvas library.\n\n## Quick Start\nInstall the 2flex package:\n\n```bash\nnpm i @2flexible/2flex\n```\n\nInitialize your canvas, then create a block to add your canvas. That’s it.\n```ts\nimport { RectangleBlock, Canvas } from \"@2flexible/2flex\";\n\nconst initCanvas = new Canvas(\"canvas\", 600, 400, {\n    \"background-color\": \"black\",\n});\n\nconst block = new RectangleBlock({\n    x: 0,\n    y: 0,\n    width: 40,\n    height: 40,\n    backgroundColor: \"red\",\n});\n\ninitCanvas.add(block);\n```\n\n## Contribute\nSee [contributing guide](https://github.com/2flexible/2flex/blob/main/CONTRIBUTING.md) to learn about contributing to 2flex.\n\n## License\nThis content is released under the [MIT License](http://opensource.org/licenses/MIT).\n\n## Change Log\n[Releases](https://github.com/2flexible/2flex/releases)\n","readmeFilename":"README.md"}