{"_id":"@arutaka1220/mc-graph","name":"@arutaka1220/mc-graph","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@arutaka1220/mc-graph","version":"0.1.0","repository":{"type":"git","url":"git+https://github.com/arutaka1220/mc-graph.git"},"publishConfig":{"access":"public"},"type":"module","scripts":{"build":"scriptup build --release","watch":"scriptup build --watch","test":"node --experimental-strip-types package/main.test.ts","typecheck":"tsc --noEmit","prepublishOnly":"npm test && npm run typecheck && npm run build"},"devDependencies":{"@bedrock-apis/env-types":"^1.0.0-beta.6","@minecraft/debug-utilities":"1.0.0-beta.1.26.44-stable","@minecraft/server":"2.10.0-beta.1.26.44-stable","@nano191225/scriptup":"^1.6.0","tsdown":"^0.21.10","typescript":"^5.9.3"},"keywords":["minecraft","minecraft-bedrock","minecraft-script-api","script-api"],"main":"./dist/main.js","types":"./dist/main.d.ts","exports":{".":{"types":"./dist/main.d.ts","import":"./dist/main.js"}},"peerDependencies":{"@minecraft/debug-utilities":"1.0.0-beta.1.26.44-stable","@minecraft/server":"2.10.0-beta.1.26.44-stable"},"gitHead":"e180b5a1fec02fe4ce6d87731b1c6786aea2e404","_id":"@arutaka1220/mc-graph@0.1.0","description":"Minecraft Bedrock 1.26.44 debug-utilities line graphs for Behavior Packs.","bugs":{"url":"https://github.com/arutaka1220/mc-graph/issues"},"homepage":"https://github.com/arutaka1220/mc-graph#readme","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-XbOajb84NNjrUZTUmWcU1a+NaRkm2goI+s1SzY2qzMkMT702sByh64ui97fwQfgsZ95chUDYVXxFBW+N1ZgVFg==","shasum":"10094ad52a7945aa05d1f4d082fd15cfcc81e216","tarball":"https://registry.npmjs.org/@arutaka1220/mc-graph/-/mc-graph-0.1.0.tgz","fileCount":5,"unpackedSize":11368,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCx59vm4L8Gm/kjIZOALFQhCVLP3BNvOHiaJsP4fpbVqQIhAMo3cXzdjMuzkMb03F7WaI12yRbXv/My0Z2d3xypEfMU"}]},"_npmUser":{"name":"arutaka1220","email":"contact@arutaka.com"},"directories":{},"maintainers":[{"name":"arutaka1220","email":"contact@arutaka.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mc-graph_0.1.0_1787204607153_0.061108654867185974"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-20T05:43:26.983Z","0.1.0":"2026-08-20T05:43:27.306Z","modified":"2026-08-20T05:43:27.471Z"},"maintainers":[{"name":"arutaka1220","email":"contact@arutaka.com"}],"description":"Minecraft Bedrock 1.26.44 debug-utilities line graphs for Behavior Packs.","homepage":"https://github.com/arutaka1220/mc-graph#readme","keywords":["minecraft","minecraft-bedrock","minecraft-script-api","script-api"],"repository":{"type":"git","url":"git+https://github.com/arutaka1220/mc-graph.git"},"bugs":{"url":"https://github.com/arutaka1220/mc-graph/issues"},"readme":"# @arutaka1220/mc-graph\n\nMinecraft Bedrock 1.26.44 debug-utilities line graphs for Behavior Packs.\n\n```ts\nimport { drawLineGraph } from \"@arutaka1220/mc-graph\";\nconst series = [{ name: \"ore\", values: [10, 20, 15], color: { red: 0.2, green: 0.6, blue: 1, alpha: 1 } }];\nconst shapes = drawLineGraph(series, {\n  origin: { dimension: player.dimension, x: 0, y: 64, z: 0 },\n  width: 10, height: 5, markerScale: 0.04,\n  title: \"Ore\", xAxisLabel: \"Time\", yAxisLabel: \"Price\",\n});\n// Remove only this graph later; duration is optional and omitted means manual removal.\nshapes.forEach((shape) => shape.remove());\n```\n\nInstall the matching Minecraft 1.26.44 peer packages `@minecraft/server` and\n`@minecraft/debug-utilities` (`2.10.0-beta.1.26.44-stable` and\n`1.0.0-beta.1.26.44-stable`). `showPointValues` defaults to `false`.\n`markerScale` optionally controls marker size; when omitted it is derived from\nthe graph spacing so dense graphs remain readable.\nText labels are automatically scaled with the graph (`4x2` uses `0.5`, while\ngraphs at least `8x4` keep scale `1`); set `textScale` to override it.\n\nFor periodic data, `createLineGraph` keeps the options fixed and replaces the\nwhole graph safely on each update. Use the Minecraft timer from the caller:\n\n```ts\nimport { system } from \"@minecraft/server\";\nimport { createLineGraph } from \"@arutaka1220/mc-graph\";\nconst graph = createLineGraph(series, { ...options }); // omit duration for manual control\nconst timer = system.runInterval(() => graph.update(getLatestSeries()), 20 * 60 * 10);\n// Later:\nsystem.clearRun(timer);\ngraph.remove();\n```\n","readmeFilename":"README.md","_rev":"1-b6400c3da135865ec0d5df5f0b0ea799"}