-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: add plane-node for v5 #5189
Conversation
有变更的 API 麻烦更新下对应的文档呢,位于 |
packages/g6/src/util/shape3d.ts
Outdated
@@ -104,7 +106,7 @@ export const createShape3D = ( | |||
]); | |||
break; | |||
case 'plane': | |||
shape.scale([style.width / GEOMETRY_SIZE, style.depth / GEOMETRY_SIZE]); | |||
shape.scale(style.width / GEOMETRY_SIZE, style.depth / GEOMETRY_SIZE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scale(scaling: vec3 | vec2 | number, y?: number, z?: number): this;
scale 第二个参数是 y 值,确认下是否正确呢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
改好啦
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
改好啦
如果有参加 IssueHunt 计划,请将相关的 Issue 回复到下面哦~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌🏻
#5094 添加三层拓扑-demo案例 |
Checklist
npm test
passesDescription of change
feat: 新增plane平面节点
feat: 添加demo案例
screenity.webm