Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): 将节点 Resize 能力内置,并支持节点通过 properties 传入节点大小信息用于初始化节点 #1645

Closed
wants to merge 10 commits into from

Conversation

boyongjiong
Copy link
Collaborator

No description provided.

 - 新增 Control 组件,用于控制节点放大缩小,并在 BaseNodeModel 中增加 resize 方法
 - 更新 GitHub Actions 任务名
 - 重命名 allowRotation -> allowRotate;后续增加 allowResize 选项,保持命名一致性
 - add ResizeControl and ResizeControlGroup into project, and use them in NodeView
 - add defaultTheme and other options, such as allowResize (default to be false)
 - add allowResize options
 - test resize function in BaseNodeModel and Control
 - DefaultAnimation.ts -> defaultAnimation.ts
 - DefatultTheme.ts -> defaultTheme.ts
 - history/History.ts -> history/index.ts
 - 并更新项目中各个文件的引用地址
 - 移除目前系统中无用的 defaultTheme 和 defaultAnimation 文件
 - 通过 points 置原点并基于设定的 width 和 height 缩放的方法,解决多边形形状与边框定位异常的问题
 - Control.tsx 中 new StepDrag 参数中 step 传入 graphModel.gridSize,保证调整时拖拽以 gridSize 为步长移动
… in the same tree」错误

 - 节点定义写法有问题,observer 属性赋值给另一个 observer 属性,导致触发上面错误
 - 更新包版本
 - DEFAULT_GRID_SIZE 将默认的 gridSize 值提成常量值,放在 constant 中,方便修改
 - history 功能需要测试一下 cloneDeep(model) 的部分
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant