Javascript 如何用JSPM加载RaphaelJS?

Javascript 如何用JSPM加载RaphaelJS?,javascript,raphael,jspm,systemjs,Javascript,Raphael,Jspm,Systemjs,用JSPM加载RaphaelJS的最佳方式是什么?它似乎以一种正常的方式输出东西 jspm install raphael 与 从“Raphael”导入Raphael; 不起作用 Uncaught TypeError: Multiple defines for anonymous module 使用JSPM/SystemJS安装和导入RaphaelJS的正确方法是什么?到目前为止,这似乎是唯一的解决方案: 从命令行: jspm install raphael@master 在你的资料中:

用JSPM加载RaphaelJS的最佳方式是什么?它似乎以一种正常的方式输出东西

jspm install raphael

从“Raphael”导入Raphael;
不起作用

Uncaught TypeError: Multiple defines for anonymous module

使用JSPM/SystemJS安装和导入RaphaelJS的正确方法是什么?

到目前为止,这似乎是唯一的解决方案:

从命令行:

jspm install raphael@master
在你的资料中:

导入“raphael/dev/eve”;
导入“raphael/dev/raphael.core”;
导入“raphael/dev/raphael.svg”;
输入'raphael/dev/raphael.vml';
从“Raphael/dev/Raphael.amd”导入Raphael;
var paper=Raphael(10,50,320,200);
var循环=纸张循环(50,40,10);
本质上,我们从github的主分支上获取最新的源代码。但是,即使这样,一些模块路径仍然存在问题,因此我选择按顺序手动导入所有依赖项。在那之后,它看起来很开心

导入的前4行应该放在应用程序引导中的某个位置。实际导入
Raphael
的最后一行应该放在您想要实际使用
Raphael
的本地模块中