planetaryjs.loadPlugin(plugin)

Planetary.js uses a plugin architecture for all its functionality. Calling planetaryjs.loadPlugin will cause that plugin to be loaded in all planets created from this library. If you only want to use a plugin in some of your planets, use the planet.loadPlugin method (from the Planet API) instead.

Planetary.js的所有功能都由插件进行架构。
调用planetaryjs.loadPlugin将会在这个库中加载创建该插件的所有Planet。如果你想单独在Planet中使用一个插件,那就在已经加载的Planet API中使用planet.loadPlugin函数API

planetaryjs.loadPlugin(somePlugin);
planetaryjs.loadPlugin(somePluginGenerator());

更多关于插件系统的API,请访问插件文档