{"_id":"@carefree0910/cfb-core","_rev":"4-aa3510c2bbac11211602753fa8b5af2f","name":"@carefree0910/cfb-core","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.2":{"name":"@carefree0910/cfb-core","version":"0.0.2","license":"MIT","_id":"@carefree0910/cfb-core@0.0.2","maintainers":[{"name":"carefree0910","email":"syameimaru.saki@gmail.com"}],"homepage":"https://github.com/carefree0910/carefree-board#readme","bugs":{"url":"https://github.com/carefree0910/carefree-board/issues"},"dist":{"shasum":"0ddb0fdfcb3626a85dacb0dde79dc8b6a922a1ef","tarball":"https://registry.npmjs.org/@carefree0910/cfb-core/-/cfb-core-0.0.2.tgz","fileCount":281,"integrity":"sha512-NN+PT8gYlah0G85bS2KZA9OZyn6q+a9Frfgyz8xRwJJlxYPtO1cyFBej97W/hELFD5y0H+WbieP3mBICIV6VnA==","signatures":[{"sig":"MEQCIDJxAwoHNST7Uzi/rOkEGhsXpI3UY1Q4/gKq8dwvpOCjAiBDviZ4seDtR7L+XqCoUAllldIy4lyb5zA1i1m+NGWj8Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":401816},"main":"./script/mod.js","types":"./script/mod.d.ts","module":"./esm/mod.js","exports":{".":{"import":"./esm/mod.js","require":"./script/mod.js"}},"gitHead":"2c76e83a25cf001214d3a14a4bf2053bf673e690","scripts":{"test":"node test_runner.js"},"_npmUser":{"name":"carefree0910","email":"syameimaru.saki@gmail.com"},"repository":{"url":"git+https://github.com/carefree0910/carefree-board.git","type":"git"},"_npmVersion":"10.8.2","description":"Core components of the `carefree-board` project.","directories":{},"_nodeVersion":"20.18.0","dependencies":{"@deno/shim-timers":"~0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"picocolors":"^1.0.0","@types/node":"^20.9.0","@deno/shim-deno-test":"~0.5.0"},"_npmOperationalInternal":{"tmp":"tmp/cfb-core_0.0.2_1730543048646_0.2822674801120073","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@carefree0910/cfb-core","version":"0.0.3","license":"MIT","_id":"@carefree0910/cfb-core@0.0.3","maintainers":[{"name":"carefree0910","email":"syameimaru.saki@gmail.com"}],"homepage":"https://github.com/carefree0910/carefree-board#readme","bugs":{"url":"https://github.com/carefree0910/carefree-board/issues"},"dist":{"shasum":"f1017c3d04b59dde53ac0229591b3089906502fd","tarball":"https://registry.npmjs.org/@carefree0910/cfb-core/-/cfb-core-0.0.3.tgz","fileCount":275,"integrity":"sha512-WtuXoqEfG4Q6ms6jLQbeZdLLuuCMRs6Wq0jd+VaZXq0MaXUpjN0Ls0KlYLbH8Riwknud72kA4VB+S+0EEACbeQ==","signatures":[{"sig":"MEUCIQCZcl8nizdFVuzSsgYUGcEs5s8UQ9TQuMs4/ap1Zay/RgIgW/2Qv5msD0elMUvtZkqR549k7AFKGCQbT6VTa1cUxcs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":396267},"main":"./script/mod.js","types":"./script/mod.d.ts","module":"./esm/mod.js","exports":{".":{"import":"./esm/mod.js","require":"./script/mod.js"}},"gitHead":"bbfe6666a105eab8cc269338151a2a7aa8a135c6","scripts":{"test":"node test_runner.js"},"_npmUser":{"name":"carefree0910","email":"syameimaru.saki@gmail.com"},"repository":{"url":"git+https://github.com/carefree0910/carefree-board.git","type":"git"},"_npmVersion":"10.8.2","description":"Core components of the `carefree-board` project.","directories":{},"_nodeVersion":"20.18.0","dependencies":{"uuid":"^11.0.2"},"_hasShrinkwrap":false,"devDependencies":{"picocolors":"^1.0.0","@types/node":"^20.9.0","@deno/shim-deno-test":"~0.5.0"},"_npmOperationalInternal":{"tmp":"tmp/cfb-core_0.0.3_1730552757859_0.0686856381455101","host":"s3://npm-registry-packages"}},"0.0.4":{"name":"@carefree0910/cfb-core","version":"0.0.4","license":"MIT","_id":"@carefree0910/cfb-core@0.0.4","maintainers":[{"name":"carefree0910","email":"syameimaru.saki@gmail.com"}],"homepage":"https://github.com/carefree0910/carefree-board#readme","bugs":{"url":"https://github.com/carefree0910/carefree-board/issues"},"dist":{"shasum":"0482241b2d3f5dd8a9f0b9346e460b70e4b7fc7b","tarball":"https://registry.npmjs.org/@carefree0910/cfb-core/-/cfb-core-0.0.4.tgz","fileCount":287,"integrity":"sha512-oAXDek99K0hT0e5SPpMIyW8YomwBVep0LtgGMT5nIAC8el94Ic/bjmdcSHDTV8qiim84iXY4N0+QpcdS6EU1QQ==","signatures":[{"sig":"MEUCIQC/KuF+hSHa08/IivX6FBkwFVL+28HFa9y5U33Lcuo/egIgTaeBB6Pg+smltcN81hp7TBKlpUMIXfai7YRJ+iBcOhQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":425982},"main":"./script/mod.js","types":"./script/mod.d.ts","module":"./esm/mod.js","exports":{".":{"import":"./esm/mod.js","require":"./script/mod.js"}},"gitHead":"75bd6a6f8055286707e85ec46a04304c3046da07","scripts":{"test":"node test_runner.js"},"_npmUser":{"name":"carefree0910","email":"syameimaru.saki@gmail.com"},"repository":{"url":"git+https://github.com/carefree0910/carefree-board.git","type":"git"},"_npmVersion":"10.8.2","description":"Core components of the `carefree-board` project.","directories":{},"_nodeVersion":"20.18.0","dependencies":{"uuid":"^11.0.2"},"_hasShrinkwrap":false,"devDependencies":{"picocolors":"^1.0.0","@types/node":"^20.9.0","@deno/shim-deno-test":"~0.5.0"},"_npmOperationalInternal":{"tmp":"tmp/cfb-core_0.0.4_1730646198912_0.45884323728098275","host":"s3://npm-registry-packages"}},"0.0.5":{"name":"@carefree0910/cfb-core","version":"0.0.5","license":"MIT","_id":"@carefree0910/cfb-core@0.0.5","maintainers":[{"name":"carefree0910","email":"syameimaru.saki@gmail.com"}],"homepage":"https://github.com/carefree0910/carefree-board#readme","bugs":{"url":"https://github.com/carefree0910/carefree-board/issues"},"dist":{"shasum":"bcec36f8de77a7d7641ccae98564316ef7a21397","tarball":"https://registry.npmjs.org/@carefree0910/cfb-core/-/cfb-core-0.0.5.tgz","fileCount":353,"integrity":"sha512-8tyfM6Ms/wWEidxEp+CbRGzmVpsdvkGtnzMJz/88qdADK67crERe5kJtmwHsOHx02O0PQwb7kodjNTGtPHFRuA==","signatures":[{"sig":"MEYCIQC6pwJg208uV99xcplvpi49njj6GZravJ2zcDbif0cE5QIhAPqMaF3oVRIiZK3iFIFlHstRPm4sGIcSehxoM4h8t4G7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":516684},"main":"./script/mod.js","types":"./script/mod.d.ts","module":"./esm/mod.js","exports":{".":{"import":"./esm/mod.js","require":"./script/mod.js"}},"gitHead":"eeb6b12ddd8a405f6e66e280c79eec67098ac9dc","scripts":{"test":"node test_runner.js"},"_npmUser":{"name":"carefree0910","email":"syameimaru.saki@gmail.com"},"repository":{"url":"git+https://github.com/carefree0910/carefree-board.git","type":"git"},"_npmVersion":"10.8.2","description":"Core components of the `carefree-board` project.","directories":{},"_nodeVersion":"20.18.0","dependencies":{"uuid":"^11.0.2"},"_hasShrinkwrap":false,"devDependencies":{"picocolors":"^1.0.0","@types/node":"^20.9.0","@deno/shim-deno-test":"~0.5.0"},"_npmOperationalInternal":{"tmp":"tmp/cfb-core_0.0.5_1730718844997_0.9468703482158087","host":"s3://npm-registry-packages"}},"0.0.6":{"name":"@carefree0910/cfb-core","version":"0.0.6","description":"Core components of the `carefree-board` project.","repository":{"type":"git","url":"git+https://github.com/carefree0910/carefree-board.git"},"license":"MIT","bugs":{"url":"https://github.com/carefree0910/carefree-board/issues"},"main":"./script/mod.js","module":"./esm/mod.js","exports":{".":{"import":"./esm/mod.js","require":"./script/mod.js"}},"scripts":{"test":"node test_runner.js"},"dependencies":{"uuid":"^11.0.2"},"devDependencies":{"@types/node":"^20.9.0","picocolors":"^1.0.0","@deno/shim-deno-test":"~0.5.0"},"_id":"@carefree0910/cfb-core@0.0.6","gitHead":"6326547d32671f84b16590e52fb328520d11de64","types":"./script/mod.d.ts","homepage":"https://github.com/carefree0910/carefree-board#readme","_nodeVersion":"20.18.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-OvEtpG1yhtYwrRFtWMrVU121lKHaKKtvfoLo8qNC1slQ3H4xqoomDFz4zAKAJVC2FO1DHZuvNCGzwYqCn1F91w==","shasum":"7efd827b20784062671b5695adc05814fdac6f34","tarball":"https://registry.npmjs.org/@carefree0910/cfb-core/-/cfb-core-0.0.6.tgz","fileCount":371,"unpackedSize":626544,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHrFhsZF7Tc0eXAWxRcEOI6uXBHHQmSkX7qObKDFvRvhAiEA15L8ZhD3iB2g3pkXV8r1NwBqZfx5M5r71O8jPjoOHkU="}]},"_npmUser":{"name":"carefree0910","email":"syameimaru.saki@gmail.com"},"directories":{},"maintainers":[{"name":"carefree0910","email":"syameimaru.saki@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cfb-core_0.0.6_1730969156276_0.8073148763429008"},"_hasShrinkwrap":false}},"time":{"created":"2024-11-02T10:24:08.560Z","modified":"2024-11-07T08:45:56.625Z","0.0.2":"2024-11-02T10:24:08.879Z","0.0.3":"2024-11-02T13:05:58.082Z","0.0.4":"2024-11-03T15:03:19.355Z","0.0.5":"2024-11-04T11:14:05.145Z","0.0.6":"2024-11-07T08:45:56.462Z"},"bugs":{"url":"https://github.com/carefree0910/carefree-board/issues"},"license":"MIT","homepage":"https://github.com/carefree0910/carefree-board#readme","repository":{"type":"git","url":"git+https://github.com/carefree0910/carefree-board.git"},"description":"Core components of the `carefree-board` project.","maintainers":[{"name":"carefree0910","email":"syameimaru.saki@gmail.com"}],"readme":"# `cfb-core`\n\nThis module implements the core components of the `carefree-board` project, it contains\nsome data structures and algorithms to handle the `graph` and the `node`s. It also\nimplements high level abstractions of event handling, rendering, etc.\n\n## Usage\n\n`cfb-core` only provides the very fundamental stuffs. For more concrete / practical\nusages, you may want to check out `cfb-svg` / `cfb-web` modules.\n\nAnyway, here's how you can create a `node` for downstream tasks:\n\n```ts\nimport { makeSingleNode, Matrix2D, NODE_FACTORY } from \"@carefree0910/cfb-core\";\n\nconst rectangle = makeSingleNode({\n  type: \"rectangle\",\n  alias: \"rect\",\n  transform: Matrix2D.from(100, 100, 50, 50),\n  params: {\n    fillParamsList: [{ type: \"color\", color: \"#ff0000\", opacity: 0.25 }],\n  },\n  z: 0,\n});\n\nconst json = rectangle.toJson();\nconst loaded = NODE_FACTORY.fromJson(json);\nconsole.log(rectangle.uuid === loaded.uuid); // true\n```\n","readmeFilename":"README.md"}