{"_id":"@basementuniverse/freactal","_rev":"2-d277f1959a6c006c190ae245219a80bc","name":"@basementuniverse/freactal","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@basementuniverse/freactal","version":"1.0.0","keywords":["react","fractal","mandelbrot","julia"],"author":{"url":"https://gordonlarrigan.com","name":"Gordon Larrigan","email":"gordonlarrigan@gmail.com"},"license":"MIT","_id":"@basementuniverse/freactal@1.0.0","maintainers":[{"name":"basementuniverse","email":"gordonlarrigan@gmail.com"}],"homepage":"https://github.com/basementuniverse/freactal#readme","bugs":{"url":"https://github.com/basementuniverse/freactal/issues"},"dist":{"shasum":"ee9831de6d37cfe36fbe2e7833016228e0ea726c","tarball":"https://registry.npmjs.org/@basementuniverse/freactal/-/freactal-1.0.0.tgz","fileCount":7,"integrity":"sha512-kLgfnxStkO2uhsB6x5StoXg/HR3lfj7nNQtsHyEcUuMcgOUgm4NX0vEcnng0D4tM8PA1jE2IOHoFqh9TuSyg0A==","signatures":[{"sig":"MEYCIQC10bnQMbvnd0KiwPIWdq8osCn+RTi29ZBatKxG4blz5QIhAOcn0qkoIcSino9KmWGNF6JA9eDO2s95rWkQJ5pPs5ZD","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17704},"main":"lib/index.js","types":"lib/index.d.ts","gitHead":"9c6fa9052dc76f1c9701cc934b1112950d6a74a0","scripts":{"build":"npm run clean && tsc","clean":"rimraf lib/"},"_npmUser":{"name":"basementuniverse","email":"gordonlarrigan@gmail.com"},"repository":{"url":"git+https://github.com/basementuniverse/freactal.git","type":"git"},"_npmVersion":"10.9.2","description":"Display a fractal on your page.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"@basementuniverse/vec":"^2.2.1","react-resize-detector":"^12.0.2","@basementuniverse/utils":"^1.7.0"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.0.0","rimraf":"^3.0.2","react-dom":"^19.0.0","typescript":"^5.7.3","@types/react":"^19.0.8","@types/react-dom":"^19.0.3"},"_npmOperationalInternal":{"tmp":"tmp/freactal_1.0.0_1738293941971_0.5342942382919191","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@basementuniverse/freactal","version":"1.0.1","keywords":["react","fractal","mandelbrot","julia"],"author":{"url":"https://gordonlarrigan.com","name":"Gordon Larrigan","email":"gordonlarrigan@gmail.com"},"license":"MIT","_id":"@basementuniverse/freactal@1.0.1","maintainers":[{"name":"basementuniverse","email":"gordonlarrigan@gmail.com"}],"homepage":"https://github.com/basementuniverse/freactal#readme","bugs":{"url":"https://github.com/basementuniverse/freactal/issues"},"dist":{"shasum":"8b1042cf4d2daf377e2cb9ab6f22ffdeaeed9f86","tarball":"https://registry.npmjs.org/@basementuniverse/freactal/-/freactal-1.0.1.tgz","fileCount":8,"integrity":"sha512-duegOAyVcaRm25U+m+0nVgRRFILnxxKqjHP4o35jfHhH5sTSAzFXVUQxH/ml5ZGfAi1WzpwjdhpnSNkoa06fbg==","signatures":[{"sig":"MEUCICMRGAL5zUooRJ6v4lIkiK3JTkEpZZbq1BGuS3kkP/cSAiEAvazTygGqInUhw94+bZL3477lnfksTtTr1OEuUPrIOnQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":316991},"main":"lib/index.js","types":"lib/index.d.ts","gitHead":"381316a32e7e3f18a680d8a929304d4db2d2cdc1","scripts":{"build":"npm run clean && tsc","clean":"rimraf lib/"},"_npmUser":{"name":"basementuniverse","email":"gordonlarrigan@gmail.com"},"repository":{"url":"git+https://github.com/basementuniverse/freactal.git","type":"git"},"_npmVersion":"10.9.2","description":"Display a fractal on your page.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"@basementuniverse/vec":"^2.2.1","react-resize-detector":"^12.0.2","@basementuniverse/utils":"^1.7.0"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.0.0","rimraf":"^3.0.2","react-dom":"^19.0.0","typescript":"^5.7.3","@types/react":"^19.0.8","@types/react-dom":"^19.0.3"},"_npmOperationalInternal":{"tmp":"tmp/freactal_1.0.1_1738294931838_0.007584932969900704","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@basementuniverse/freactal","version":"1.0.2","description":"Display a fractal on your page.","scripts":{"clean":"rimraf lib/","build":"npm run clean && tsc"},"main":"lib/index.js","types":"lib/index.d.ts","author":{"name":"Gordon Larrigan","email":"gordonlarrigan@gmail.com","url":"https://gordonlarrigan.com"},"homepage":"https://github.com/basementuniverse/freactal#readme","repository":{"type":"git","url":"git+https://github.com/basementuniverse/freactal.git"},"license":"MIT","keywords":["react","fractal","mandelbrot","julia"],"devDependencies":{"@types/react":"^19.0.8","@types/react-dom":"^19.0.3","react":"^19.0.0","react-dom":"^19.0.0","rimraf":"^3.0.2","typescript":"^5.7.3"},"dependencies":{"@basementuniverse/utils":"^1.7.0","@basementuniverse/vec":"^2.2.1","react-resize-detector":"^12.0.2"},"_id":"@basementuniverse/freactal@1.0.2","gitHead":"b07de6adf3361342587861edf1c1c36c71e6236a","bugs":{"url":"https://github.com/basementuniverse/freactal/issues"},"_nodeVersion":"18.17.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-Ay9j0Mx6YHHaz0nBD74BPcJJv+b4l7eayPAd0zz6FFH76A+43mhgQGUxJvYE9PEjJ6TAz5NBTDjLJzqjyGQ1WA==","shasum":"d2e6c7fcc963dba9b1866e3eedb22cd99753e707","tarball":"https://registry.npmjs.org/@basementuniverse/freactal/-/freactal-1.0.2.tgz","fileCount":8,"unpackedSize":317036,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDuZiEl/yEvDZ8YcvgqKe1wPfdA8pG3dcalYgaOppYFNAIgbT2aqvfMPlr31xc7JFoCYZjdrSfMDMu5U2Xo1Qa15HQ="}]},"_npmUser":{"name":"basementuniverse","email":"gordonlarrigan@gmail.com"},"directories":{},"maintainers":[{"name":"basementuniverse","email":"gordonlarrigan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/freactal_1.0.2_1738444423445_0.014035451748842354"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-31T03:25:41.810Z","modified":"2025-02-01T21:13:43.891Z","1.0.0":"2025-01-31T03:25:42.167Z","1.0.1":"2025-01-31T03:42:12.073Z","1.0.2":"2025-02-01T21:13:43.718Z"},"bugs":{"url":"https://github.com/basementuniverse/freactal/issues"},"author":{"name":"Gordon Larrigan","email":"gordonlarrigan@gmail.com","url":"https://gordonlarrigan.com"},"license":"MIT","homepage":"https://github.com/basementuniverse/freactal#readme","keywords":["react","fractal","mandelbrot","julia"],"repository":{"type":"git","url":"git+https://github.com/basementuniverse/freactal.git"},"description":"Display a fractal on your page.","maintainers":[{"name":"basementuniverse","email":"gordonlarrigan@gmail.com"}],"readme":"# Freactal: React Fractal\n\nSomeone mention fractals? Everyone should have pretty fractals on their website.\n\nHere you go, have a fractal.\n\n![preview](preview.png \"Preview\")\n\nDemo: http://freactal.basementuniverse.com/\n\n## Installation\n\n```bash\nnpm install @basementuniverse/freactal\n```\n```bash\nyarn add @basementuniverse/freactal\n```\n\n## How to use\n\n```typescript\nimport { Fractal } from '@basementuniverse/freactal';\n```\n\n```jsx\n<Fractal\n  scale={4}\n  offset={{ x: 0, y: 0 }}\n/>\n```\n\n### Props\n\n```typescript\ntype FractalProps = {\n  /**\n   * The class name to apply to the fractal container\n   */\n  className?: string;\n\n  /**\n   * The style to apply to the fractal container\n   */\n  style: CSSProperties;\n\n  /**\n   * The fractal canvas background colour\n   */\n  backgroundColour?: {\n    x: number;\n    y: number;\n    z: number;\n  };\n\n  /**\n   * An array of fractal canvas foreground colours\n   */\n  foregroundColours?: {\n    x: number;\n    y: number;\n    z: number;\n  }[];\n\n  /**\n   * The fractal scale\n   */\n  scale?: number;\n\n  /**\n   * The fractal offset\n   */\n  offset?: {\n    x: number;\n    y: number;\n  };\n\n  /**\n   * If true, render a Julia set instead of a Mandelbrot set\n   */\n  julia?: boolean;\n\n  /**\n   * The Julia set preset to use\n   */\n  juliaPreset?:\n    | 'a'\n    | 'b'\n    | 'c'\n    | 'd'\n    | 'e'\n    | 'f'\n    | 'g'\n    | 'h'\n    | 'i';\n\n  /**\n   * The real component of the fractal constant\n   */\n  a?: number;\n\n  /**\n   * The imaginary component of the fractal constant\n   */\n  b?: number;\n}\n```\n","readmeFilename":"README.md"}