JavaScript的基于約束的圖形布局:WebCola

jopen 9年前發布 | 12K 次閱讀 WebCola JavaScript開發工具包

JavaScript的基于約束的布局使用D3.js和其他基于Web的圖形庫實現高品質的圖形可視化和瀏覽。

Installation

A version suitable for browsers can be found here (minified).

You can also install it through npm by first adding it topackage.json:

"dependencies": {
  "cola": "tgdwyer/WebCola#master"
}

Then by runningnpm install.

If you use TypeScript, you can get complete TypeScript definitions by installing tsd 0.6 and runningtsd link.

Building

Linux/Mac/Windows Command Line:

  • install node.js
  • install grunt from the command line using npm (comes with node.js):

npm install -g grunt-cli

  • from the WebCola directory:

npm install grunt

npm install

  • build, minify and test:

grunt

This creates the cola.v3.min.js file in the WebCola directory.

grunt commonjs

This creates index.js for npm.

Visual Studio:

Running

Linux/Mac/Windows Command Line:

Install the Node.js http-server module:

npm install -g http-server

After installing http-server, we can serve out the example content in the WebCola directory.

http-server WebCola

The default configuration of http-server will serve the exampes on http://localhost:8080.

JavaScript的基于約束的圖形布局:WebCola

JavaScript的基于約束的圖形布局:WebCola

項目主頁:http://www.baiduhome.net/lib/view/home/1436252117770

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!