0

当前版本的 JsPlumb 位于 Jquery、YUI 或 MooTools 之上。我有一个要求,我需要编写用于将 jsPlumb 与 Dojo gfx 连接的适配器。

我检查了jsPlumb的源代码,找到了所有三个(Jquery、YUI 和 MooTools)的适配器

Jquery 的示例适配器,列出以下详细信息,

the library specific functions, such as find offset, get id, get attribute, extend etc.  
 * the full list is:
 * 
 * addClass             adds a class to the given element
 * animate              calls the underlying library's animate functionality
 * appendElement        appends a child element to a parent element.
 * bind                 binds some event to an element
 ...
 ...

有人可以指出,用特定于dojo的方法调用替换所有列出的调用有多难?在编写这些方法时我需要考虑什么?

4

2 回答 2

0

我有兴趣做一个 jsplumb 到 dojo 的端口。我什至不认为道场的 gfx 在这里发挥作用。它主要是需要移植的核心功能。有点像 jquery 中的大多数核心函数(例如常见的 jquery $() 函数)。

让我知道你是否仍然感兴趣,或者已经开始研究它。谢谢!

于 2014-02-03T03:49:08.680 回答
0

我们已经为 jsPlumb 编写了 dojo 适配器(它适用于大部分功能),您可以在github上获取源代码

于 2014-02-14T16:19:56.977 回答