Flex中重叠的Flare画布,如何将其夹到容器上?

发布于 2024-11-06 06:40:27 字数 671 浏览 0 评论 0原文

当我尝试在我的应用程序中显示 FlareCanvas 时遇到严重问题。它根本不尊重边界(参见此处的图像

我尝试过“clipContent”和有很多替代方案,但似乎没有什么可以阻止画布“通过”其容器。我应该怎么办?我花了好几个星期的时间!

在 Flex main.mxml 中:

<flexvis:FlareCanvas id="graph" width="800" height="600" verticalScrollPolicy="on" clipContent="true" horizontalScrollPolicy="on"  />

FCACanvas 扩展的完整类 FlareCanvas 位于: https://github.com/prefuse/Flare/blob/master/flare/src-flex-integration/flare/flex/vis/FlareCanvas.as

I'm having a serious issue when trying to display a FlareCanvas within my application. It simply doesn't respect the bounds (see image here)

I've tried "clipContent" and a bunch of alternatives but nothing seems to prevent the canvas of being "passing" over its container. What should I do? It is taking me several weeks!

In Flex main.mxml:

<flexvis:FlareCanvas id="graph" width="800" height="600" verticalScrollPolicy="on" clipContent="true" horizontalScrollPolicy="on"  />

The full class FlareCanvas which FCACanvas extends is in: https://github.com/prefuse/Flare/blob/master/flare/src-flex-integration/flare/flex/vis/FlareCanvas.as

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

翻身的咸鱼 2024-11-13 06:40:27

是的,用于 FlareCanvas 的代码并不完全是最好的。如果我是您,我只需将 FlareCanvas 包装到另一个容器中,该容器会剪辑内容来解决您的问题。

Yeah, the code used for FlareCanvas isn't exactly the best. If I were you, I'd just wrap the FlareCanvas into another container that would clip the contents to solve your problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文