Raphael 有跟踪或故障排除插件吗?

发布于 2024-10-07 20:09:17 字数 182 浏览 0 评论 0原文

我是拉斐尔的新手,正在探索一些动画功能。我想在动画的每个阶段获取例如 animateAlong() 的跟踪信息。

我已经设置了自己的跟踪画布对象,我可以在其中放置有用的消息,但我确信有人一定已经创建了一个比我的尝试更好的跟踪插件。我已经搜索过但没有找到任何东西。

非常感谢任何帮助。

莱昂

I'm new to Raphael and exploring some of the animation features. I'd like to get trace info of, for example, animateAlong() at each stage of animation.

I've setup my own trace canvas object that I can put messages in which helps, but I'm sure someone must have created a trace plugin that's better than my attempt. I've searched but not found anything.

Much appreciate any help.

Leon

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

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

发布评论

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

评论(1

予囚 2024-10-14 20:09:17

我意识到我可以使用自己的跟踪机制进行管理。这是拉斐尔:

var traceX = 5;
var traceY = 5;
var tracer = Raphael("trace");
function T(s) {
    traceY+=10;
    tracer.text(traceX,traceY,s).attr({
        'text-anchor': 'start'
    });
} // T()
T("TRACE");

// 后续调用采用以下形式:
T(s); // 其中 s 是消息,

这是 HTML:

这是 CSS:
痕迹 {
背景颜色:#cdc;
边框:双2px蓝色;
高度:5000px;
宽度:300px;
职位:亲属;
保证金:0;
}

I've realised that I can manage with my own trace mechanism. Here's the Raphael:

var traceX = 5;
var traceY = 5;
var tracer = Raphael("trace");
function T(s) {
    traceY+=10;
    tracer.text(traceX,traceY,s).attr({
        'text-anchor': 'start'
    });
} // T()
T("TRACE");

// subsequent calls take the form:
T(s); // where s is the message

here's the HTML:
<div id="trace"></div>

and here's the css:
trace {
background-color: #cdc;
border: double 2px blue;
height: 5000px;
width: 300px;
position: relativee;
margin: 0;
}

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