v0.4.17

bytedance/flowgram.aiv0.4.17Sep 18, 2025by xiamidaxia

AI Summary

This release adds new node API properties (form, lines, ports, scope, privateScope) for accessing node data and includes bug fixes for drag functionality and demo components.

Key Highlights

  • Added node.form API to replace getNodeForm(node) function
  • Added node.lines and node.ports for FreeLayout editor data access
  • Added node.scope and node.privateScope for variable scope management
  • Fixed drag container position reset on drag end
  • Fixed node menu popover container in demo

New Features

  • node.form: Get the node's form data (replaces getNodeForm(node))
  • node.lines: Get the node's lines data for FreeLayout editor
  • node.ports: Get the node's ports data for FreeLayout editor
  • node.scope: Get the node's variable public scope
  • node.privateScope: Get the node's variable private scope

Full Release Notes

## What's Changed
* fix(drag): reset container internal position when drag end by @louisyoungx in https://github.com/bytedance/flowgram.ai/pull/847
* fix(demo): node menu popover container by @louisyoungx in https://github.com/bytedance/flowgram.ai/pull/848
* chore: Update README.md Adoption by @luics in https://github.com/bytedance/flowgram.ai/pull/849
* chore: docs add ref by @dragooncjw in https://github.com/bytedance/flowgram.ai/pull/850
* feat(editor): add node.form instead of getNodeForm(node) by @xiamidaxia in https://github.com/bytedance/flowgram.ai/pull/846
* feat(editor): node.scope by @sanmaopep in https://github.com/bytedance/flowgram.ai/pull/851
* feat(free-layout-editor): add node.ports and node.lines by @xiamidaxia in https://github.com/bytedance/flowgram.ai/pull/852

# New API
- node.form:  Get the node's form data, like `getNodeForm(node)`
- node.lines:  Get the node's lines data (Only FreeLayout), like `node.getData(WorkflowNodeLinesData) `
- node.ports: Get the node's ports data (Only FreeLayout), like `node.getData(WorkflowPortsData) `
- node.scope: Get the node's variable public scope, like `getNodeScope(node) `
- node.privateScope: Get the node's variable private scope, like `getNodePrivateScope(node) `

## New Contributors
* @luics made their first contribution in https://github.com/bytedance/flowgram.ai/pull/849

**Full Changelog**: https://github.com/bytedance/flowgram.ai/compare/v0.4.16...v0.4.17