We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
createNode({ shape: "rect", x: 100, y: 100, width: 60, height: 40, angle: 90, label: "text", attrs: { }, ports: [ ] })
添加 x ,y angle 属性后 g 标签 现在可以自动添加transform = 'translate(x ,y ), rotate(angle, ...)',暂时无法自定义修改g 标签上的 tranform 属性。
当前我想变换整个组的时候,只能通过给g下面的图形添每个都添加一个相同的transform来达到相同效果 示例:
无
想在createNode 时候,能添加一个自定义的transform 属性,这样整个group 组我只需要添加一次我需要的变换了。
No response
The text was updated successfully, but these errors were encountered:
不支持在节点最外层 g 上直接修改 transform,因为内部在实现节点尺寸、位置修改就是通过修改最外层 transform 属性来实现的,如果你手动修改,很可能出现冲突。
Sorry, something went wrong.
This thread has been automatically locked because it has not had recent activity.
Please open a new issue for related bugs and link to relevant comments in this thread.
No branches or pull requests
问题描述
添加 x ,y angle 属性后 g 标签 现在可以自动添加transform = 'translate(x ,y ), rotate(angle, ...)',暂时无法自定义修改g 标签上的 tranform 属性。
当前我想变换整个组的时候,只能通过给g下面的图形添每个都添加一个相同的transform来达到相同效果
示例:
重现链接
无
重现步骤
无
预期行为
想在createNode 时候,能添加一个自定义的transform 属性,这样整个group 组我只需要添加一次我需要的变换了。
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: