我正在使用arbor.js在 iPhone/iPad 页面上创建文本节点。
我想为每个文本节点添加浮动效果,文本节点对象不断移动,而不像jqFloat那样触摸显示。(arbor.js 重力参数在没有触摸事件的情况下不起作用)
我的文本节点的格式如下所示,
var data = {
nodes: {
node1: {
'color': 'red',
'shape': 'dot',
'label': 'test1'
},
node2: {
'color': 'green',
'shape': 'dot',
'label': 'test2'
},
node3: {
'color': 'blue',
'shape': 'dot',
'label': 'test3'
}
},
edges: {
threadstarter: {
node1: {},
node3: {}
}
}
};
var sys = arbor.ParticleSystem();
sys.parameters({
stiffness: 900,
repulsion: 2000,
gravity: true,
dt: 0.015
});
sys.graft(data);
非常感谢您在回答这个问题时提供的帮助。