-
Notifications
You must be signed in to change notification settings - Fork 193
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
初始化加载的时候部分 Group 不展示 #1636
Comments
#1325 修复了 Canvas 渲染下 Image 加载配合 ClipPath 展示不全的 bug,此时传入 Image 的是字符串,G 内部负责请求加载。 但如果使用 const rect = new Rect({
style: {
x: 0,
y: 0,
width: 400,
height: 400,
},
});
const group = new Group({
style: {
clipPath: rect,
},
});
canvas.appendChild(group);
const image = new Image({
style: {
x: 0,
y: 0,
width: 100,
height: 100,
},
});
const image2 = new Image({
style: {
x: 50,
y: 0,
width: 100,
height: 100,
},
});
const img = new window.Image();
img.onload = () => {
image.style.img = img;
image2.style.img = img;
group.appendChild(image);
group.appendChild(image2);
};
img.src =
'https://gw.alipayobjects.com/mdn/rms_6ae20b/afts/img/A*_aqoS73Se3sAAAAAAAAAAAAAARQnAQ';
img.crossOrigin = 'anonymous';
// 这样就不会有问题
const img = 'https://gw.alipayobjects.com/mdn/rms_6ae20b/afts/img/A*_aqoS73Se3sAAAAAAAAAAAAAARQnAQ';
image.style.img = img;
image2.style.img = img;
group.appendChild(image);
group.appendChild(image2); |
xiaoiver
added a commit
that referenced
this issue
Mar 18, 2024
14 tasks
xiaoiver
added a commit
that referenced
this issue
Mar 18, 2024
) * fix: clippath's bounds should be copied before intersection #1636 * chore: commit changeset * chore: update playwright * chore: update playwright * chore: update playwright * chore: install deps first * chore: install deps first
14 tasks
xiaoiver
added a commit
that referenced
this issue
Mar 18, 2024
* fix: clippath's bounds should be copied before intersection #1636 (#1637) * fix: clippath's bounds should be copied before intersection #1636 * chore: commit changeset * chore: update playwright * chore: update playwright * chore: update playwright * chore: install deps first * chore: install deps first * chore(release): bump version (#1639) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
表现很奇怪, S2 的 Icon 继承的 Group, 然后通过常规
appendChild
的方式添加到表格上, 但在初始化渲染时, 部分 icon 不展示, 重新渲染一次则正常, 怀疑是 G 的问题. 复现地址 和 相关 Issue版本信息:
The text was updated successfully, but these errors were encountered: