{"_id":"@xyflow/system@0.0.83","bugs":{"url":"https://github.com/xyflow/xyflow/issues"},"dist":{"shasum":"d3db1b082c364c07402fe3a3a21de1665447bf66","tarball":"http://registry-npm.ywwl.com/@xyflow/system/download/@xyflow/system-0.0.83.tgz","fileCount":186,"integrity":"sha512-a//eDjez3WZF47aaPTfVUDD0OINOq+WVwBZCRTqG+m0a5euX8EwlJ4jMY1Wxz0Ocj4xOeekJ70V22Pq0ll8RJw==","signatures":[{"sig":"MEUCIQDerM1FhnKHits+4zdpWnIc0uuUY5OLiF3a4aLskMVL9AIgballIRQeYs+PTv7ImWGFUBpsD+ceMDLx6wXGmXR2GAY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCID6AcXEJtJd7lkUuvbPgBcZHwaKNEnwGXObPTo0LJUihAiEA3gVIpBMHGvMcjm3AVbwVKG03LPLcPXJcyN+q+NWZNQY="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@xyflow%2fsystem@0.0.83","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":694317,"size":145564,"noattachment":false,"key":"/@xyflow/system/-/@xyflow/system-0.0.83.tgz"},"main":"dist/umd/index.js","name":"@xyflow/system","_from":"file:xyflow-system-0.0.83.tgz","types":"dist/esm/index.d.ts","module":"dist/esm/index.js","rollup":{"name":"XYFlowSystem","globals":{"d3-drag":"d3Drag","d3-zoom":"d3Zoom","d3-selection":"d3Selection"},"vanilla":true},"source":"src/index.ts","exports":{".":{"node":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.mjs","module":"./dist/esm/index.js","require":"./dist/umd/index.js"},"browser":{"import":"./dist/esm/index.js","require":"./dist/umd/index.js"},"default":"./dist/esm/index.js"}},"license":"MIT","scripts":{"dev":"concurrently \"rollup --config node:@xyflow/rollup-config --watch\"","lint":"eslint --ext .js,.ts src","build":"rollup --config node:@xyflow/rollup-config --environment NODE_ENV:production","typecheck":"tsc --noEmit"},"version":"0.0.83","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d9bd70a7-8ba4-4e49-b9c9-92217f11a3cf"}},"homepage":"https://github.com/xyflow/xyflow#readme","keywords":["node-based UI","graph","diagram","workflow","reactflow","svelteflow","xyflow"],"_resolved":"/tmp/7f52a8caacf97ff3f11011b031d61805/xyflow-system-0.0.83.tgz","_integrity":"sha512-a//eDjez3WZF47aaPTfVUDD0OINOq+WVwBZCRTqG+m0a5euX8EwlJ4jMY1Wxz0Ocj4xOeekJ70V22Pq0ll8RJw==","repository":{"url":"git+https://github.com/xyflow/xyflow.git","type":"git","directory":"packages/system"},"_npmVersion":"11.13.0","description":"xyflow core system that powers React Flow and Svelte Flow.","directories":{},"maintainers":[{"name":"peterkogo","email":"peter.gorzo@posteo.net"},{"name":"webk1d","email":"info@webkid.io"}],"sideEffects":false,"_nodeVersion":"24.16.0","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.10","@types/d3-transition":"^3.0.8","@types/d3-interpolate":"^3.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"5.4.5","@types/node":"^18.7.16","@xyflow/tsconfig":"0.0.0","@xyflow/eslint-config":"0.0.1","@xyflow/rollup-config":"0.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/system_0.0.83_1790253781250_0.786505756526021"},"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":1790253781347,"_cnpm_publish_time":1790253781347,"dist-tags":{"latest":"0.0.84","next":"1.0.0-next.7"}}