antvis/G6

The issue has been closed
jsx 渲染 image 支持 clipCfg #3056
EliazTray posted onGitHub
- I have searched the issues of this repository and believe that this is not a duplicate.
What problem does this feature solve?
在 jsx 渲染时,image 支持裁剪。
What does the proposed API look like?
<Group>
<Image
style={{
img: 'https://gw.alipayobjects.com/zos/antfincdn/aPkFc8Sj7n/method-draw-image.svg',
width: 200,
height: 200,
margin: [24, 'auto'],
// 新增!
clipCfg: {...}
}}
/>
</Group>
<!-- generated by antv-issue-helper. DO NOT REMOVE -->