{"name":"@xyflow/system","version":"1.0.0-next.1","keywords":["node-based UI","graph","diagram","workflow","reactflow","svelteflow","xyflow"],"license":"MIT","_id":"@xyflow/system@1.0.0-next.1","maintainers":[{"name":"peterkogo","email":"peter.gorzo@posteo.net"},{"name":"webk1d","email":"info@webkid.io"}],"homepage":"https://github.com/xyflow/xyflow#readme","bugs":{"url":"https://github.com/xyflow/xyflow/issues"},"dist":{"shasum":"8fb098deebcd31bcec9aae57aca0f4764667644d","tarball":"http://registry-npm.ywwl.com/@xyflow/system/download/@xyflow/system-1.0.0-next.1.tgz","fileCount":240,"integrity":"sha512-A9dNycuBKbTR8/EJu/hBO+0BQqkqIaz0PAAEvHz8+ooSaWovXEddnrC2n40dR5HG5jwii8NBl3PBIUzhCN++jg==","signatures":[{"sig":"MEUCIQDBBbs53tXxHrwVeHd+V955l1p6lL/8tEijRtPHP2jYGgIgOOp5ey4B+EwArG9mWNstd72GRChGJ+oOhqurtLFvLrQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCICwM0SSgbDyHwWj/TyoJwRBXX8xqxuLpIBiFs3Srw6OtAiEA95gQdUxUq/euefOZeJ/ucIQ0J/HK+fACEKsZ7O02KR4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1866092,"size":416367,"noattachment":false,"key":"/@xyflow/system/-/@xyflow/system-1.0.0-next.1.tgz"},"main":"dist/index.js","type":"module","_from":"file:xyflow-system-1.0.0-next.1.tgz","types":"dist/index.d.ts","module":"dist/index.js","source":"src/index.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"dev":"tsdown --watch","lint":"eslint src","build":"tsdown","format":"prettier --write .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"webk1d","email":"info@webkid.io"},"_resolved":"/Users/moritz/xyflow/xyflow/packages/system/xyflow-system-1.0.0-next.1.tgz","_integrity":"sha512-A9dNycuBKbTR8/EJu/hBO+0BQqkqIaz0PAAEvHz8+ooSaWovXEddnrC2n40dR5HG5jwii8NBl3PBIUzhCN++jg==","repository":{"url":"git+https://github.com/xyflow/xyflow.git","type":"git","directory":"packages/system"},"_npmVersion":"10.9.4","description":"xyflow core system that powers React Flow and Svelte Flow.","directories":{},"sideEffects":false,"_nodeVersion":"22.21.1","dependencies":{"d3-drag":"^3.0.0","d3-zoom":"^3.0.0","d3-selection":"^3.0.0","@types/d3-drag":"^3.0.7","@types/d3-zoom":"^3.0.8","d3-interpolate":"^3.0.1","@types/d3-selection":"^3.0.11","@types/d3-transition":"^3.0.9","@types/d3-interpolate":"^3.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^10.2.1","tsdown":"^0.22.0","prettier":"^3.8.3","typescript":"^6.0.3","@types/node":"^20.19.39","@xyflow/eslint":"0.0.1","@xyflow/tsconfig":"0.0.0"},"_npmOperationalInternal":{"tmp":"tmp/system_1.0.0-next.1_1786528652461_0.19498516425786705","host":"s3://npm-registry-packages-npm-production"},"readme":"# @xyflow/system\n\nCore system utilities powering [React Flow](https://reactflow.dev) and [Svelte Flow](https://svelteflow.dev).\n\n> **Note:** This package is designed as a shared vanilla utility layer for React Flow and Svelte Flow. It is not intended for use with unrelated libraries.\n\n## Installation\n\n```sh\npnpm add @xyflow/system\n```\n\n## What is this package?\n\n`@xyflow/system` provides core, framework-agnostic helpers and types for building node-based editors and flow diagrams. It contains the logic and utilities that are shared between React Flow and Svelte Flow, such as edge path calculations, pan/zoom, node dragging, and more.\n\n## Features\n\n- **Pan & Zoom (`XYPanZoom`)**: Utilities for adding interactive pan and zoom to your canvas.\n- **Dragging (`XYDrag`)**: Helpers for node and selection dragging.\n- **Handles/Connections (`XYHandle`)**: Logic for drawing and managing connection lines between nodes.\n- **Minimap (`XYMiniMap`)**: Interactive minimap utilities for overview and navigation.\n- **Edge Utilities**: Functions for SVG edge path creation (bezier, straight, step, smoothstep, etc.).\n- **Store Utilities**: Helpers for managing and updating flow state.\n- **DOM Utilities**: Functions for DOM measurements and interactions.\n- **Marker Utilities**: Helpers for SVG markers on edges.\n- **Graph Utilities**: Functions for working with nodes, edges, and graph structure.\n- **General Utilities**: Miscellaneous helpers used throughout the system.\n- **Types & Constants**: Shared types, enums, and constants for consistent data structures.\n\n## Usage\n\nYou can import any utility, type, or helper directly from the package:\n\n```ts\nimport { getBezierPath, getConnectedEdges, Position, XYPanZoom } from '@xyflow/system';\n```\n\n### Example: Bezier Edge Path Creation\n\n```ts\nimport { getBezierPath, Position } from '@xyflow/system';\n\nconst [path, labelX, labelY] = getBezierPath({\n  sourceX: 0,\n  sourceY: 20,\n  sourcePosition: Position.Right,\n  targetX: 150,\n  targetY: 100,\n  targetPosition: Position.Left,\n});\n```\n\n## API Reference\n\nThere is currently no dedicated API documentation for this package. For details on available utilities, types, and helpers, please refer to the [source code](./src) or check out the [React Flow documentation](https://reactflow.dev/api-reference/) where we are documenting a lot of stuff from this package.\n\n## Contributing\n\nSee the main [xyflow repository](https://github.com/xyflow/xyflow) for contribution guidelines.\n\n\n","publish_time":1786528652560,"_cnpm_publish_time":1786528652560,"dist-tags":{"latest":"0.0.84","next":"1.0.0-next.7"}}