feat:修改topology设置渐变的逻辑

This commit is contained in:
zhangyu
2021-02-26 14:49:32 +08:00
parent 94d4654c4b
commit 71254a3fce
4 changed files with 105 additions and 25 deletions

View File

@@ -254,7 +254,8 @@ export function myTextRect(node) {
/*自定义图片组件*/
/*自定义立方体*/
export function myCubec(ctx, node) {//立方体
export function myCubec(ctx, node) {
//立方体
// ctx.rect(node.rect.x,node.rect.y,node.rect.width,node.rect.height);
let x=node.rect.x+10,y=node.rect.y+10,w=node.rect.width-20,h=node.rect.height-20;