-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
group分组,缩放后坐标发生偏差 #1417
Labels
bug
Something isn't working
Comments
去掉网格试试 |
一样的效果 还是错位的 |
从表现看,缩放节点的缩放没有步长限制,调整之后缩放节点的位置和组内节点都会有0.5的偏差,重新渲染的时候四舍五入了,导致位置有偏差。建议你自己处理一下graphData再渲染,短期内可能不会处理缩放节点相关的问题 |
请问啥时候会解决呢,缩放是很常见的功能的吧。分组 、泳道图都会用到这个功能的哎 |
您好,辛苦升级到1.2.26版本试一下呢 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
发生了什么?
import { GroupNode } from '@logicflow/extension'; class WhenGroup extends GroupNode.view {} class WhenGroupModel extends GroupNode.model { getNodeStyle() { // const style = super.getNodeStyle(); // style.stroke = '#AEAFAE'; // style.strokeDasharray = '33'; // style.strokeWidth = 1; const style = super.getNodeStyle(); style.stroke = '#989891'; style.strokeWidth = 1; style.strokeDasharray = '3 3'; if (this.isSelected) { style.stroke = 'rgb(124, 15, 255)'; } if (this.isFolded) { style.fill = '#47C769'; } return style; } initNodeData(data) { super.initNodeData(data); this.text.editable = false; this.isRestrict = true; this.resizable = true; this.foldable = true; this.width = 500; this.height = 300; this.foldedWidth = 50; this.foldedHeight = 50; this.setProperties({ nodeType: 'WHEN', }); const rule = { message: '不能连接自己', validate: (sourceNode, targetNode) => { return sourceNode.id !== targetNode.id; }, }; this.sourceRules.push(rule); } getAnchorStyle(anchorInfo) { const style = super.getAnchorStyle(anchorInfo); style.stroke = '#666'; style.fill = '#fff'; style.hover.fill = 'transparent'; style.hover.stroke = 'transparent'; return style; } } export default { type: 'WhenGroupNode', view: WhenGroup, model: WhenGroupModel, };
logicflow/core版本
^1.2.3
logicflow/extension版本
^1.2.3
logicflow/engine版本
No response
浏览器&环境
Chrome
The text was updated successfully, but these errors were encountered: