zrender icon indicating copy to clipboard operation
zrender copied to clipboard

是否可把像LineProps、PathStyleProps等Type给expose出来, 方便基于Ts的二次封装

Open bdwenxi opened this issue 4 years ago • 6 comments

是否可把像LineProps、PathStyleProps等Type给expose出来, 方便基于Ts的二次封装?

bdwenxi avatar Dec 18 '20 05:12 bdwenxi

如果确定可以的话,我可以贡献一下这方面的。

lzxb avatar Mar 05 '21 08:03 lzxb

@lzxb 可以,非常感谢

pissang avatar Mar 08 '21 04:03 pissang

我也基于zRender进行了二次开发,你可以自己手动写,类似于这样: shape?: Partial<typeof Rect.prototype.shape>; style?: Partial<typeof Image.prototype.style>;

Yang2007 avatar Mar 12 '21 05:03 Yang2007

不好意思,最近两周工作比较忙。今天才抽时间处理一下。可以看看有哪些类型是缺少的。

lzxb avatar Mar 21 '21 06:03 lzxb

有计划什么时候发布一个版本吗?

lzxb avatar Mar 24 '21 02:03 lzxb

@lzxb 下个月初会发布一个新版本

pissang avatar Mar 24 '21 03:03 pissang