visualize/d3Renderer.js
function D3Renderer(view, graphData, options) {

        /**
         * View stack
         *
         * @property view
         * @param Array
         */
        this.view = view;

        /**
         * graph Data
         *
         * @property graph
         * @param Object
         */
        this.graph = graphData;

        /**
         * (Default merged) option
         *
         * @property option
         * @type Object
         */
        this.option = mixin(defaultOptions, options || {});

        /**
         * Canvas container
         *
         * @property container
         * @type d3-element-array
         */
        this.container = null;

        /**
         * SVG container
         *
         * @property svg
         * @type d3-element-array
         */
        this.svg = null;

        /**
         * force reloader
         *
         * @property force
         * @type d3-element-array
         */
        this.force = null;

        /**
         * link elements
         *
         * @property link
         * @type d3-element-array
         */
        this.link = null;

        /**
         * Node elements
         *
         * @property node
         * @type d3-element-array
         */
        this.node = null;

        /**
         * test elements
         *
         * @property text
         * @type d3-element-array
         */
        this.text = null;

        /**
         * d3 color object
         *
         * @property color
         * @type Object
         */
        this.color = d3.scale.category20();

        /**
         * selected index
         *
         * @property selectedIdx
         * @type Number
         * @default -1
         */
        this.selectedIdx = -1;

        /**
         * selected type
         *
         * @property selectedType
         * @type String
         * @default "normal"
         */
        this.selectedType = 'normal';

        /**
         * selected object
         *
         * @property selectedObject
         * @type Object
         */
        this.selectedObject = {};


        // Scope trick
        this.radius   = this.radius();
        this.linkLine = this.linkLine();
    }
function D3Renderer(view, graphData, options) {

        /**
         * View stack
         *
         * @property view
         * @param Array
         */
        this.view = view;

        /**
         * graph Data
         *
         * @property graph
         * @param Object
         */
        this.graph = graphData;

        /**
         * (Default merged) option
         *
         * @property option
         * @type Object
         */
        this.option = mixin(defaultOptions, options || {});

        /**
         * Canvas container
         *
         * @property container
         * @type d3-element-array
         */
        this.container = null;

        /**
         * SVG container
         *
         * @property svg
         * @type d3-element-array
         */
        this.svg = null;

        /**
         * force reloader
         *
         * @property force
         * @type d3-element-array
         */
        this.force = null;

        /**
         * link elements
         *
         * @property link
         * @type d3-element-array
         */
        this.link = null;

        /**
         * Node elements
         *
         * @property node
         * @type d3-element-array
         */
        this.node = null;

        /**
         * test elements
         *
         * @property text
         * @type d3-element-array
         */
        this.text = null;

        /**
         * d3 color object
         *
         * @property color
         * @type Object
         */
        this.color = d3.scale.category20();

        /**
         * selected index
         *
         * @property selectedIdx
         * @type Number
         * @default -1
         */
        this.selectedIdx = -1;

        /**
         * selected type
         *
         * @property selectedType
         * @type String
         * @default "normal"
         */
        this.selectedType = 'normal';

        /**
         * selected object
         *
         * @property selectedObject
         * @type Object
         */
        this.selectedObject = {};


        // Scope trick
        this.radius   = this.radius();
        this.linkLine = this.linkLine();
    }
function D3Renderer ( view , graphData , options ) { /**
         * View stack
         *
         * @property view
         * @param Array
         */ this . view = view ; /**
         * graph Data
         *
         * @property graph
         * @param Object
         */ this . graph = graphData ; /**
         * (Default merged) option
         *
         * @property option
         * @type Object
         */ this . option = mixin ( defaultOptions , options || { } ) ; /**
         * Canvas container
         *
         * @property container
         * @type d3-element-array
         */ this . container = null ; /**
         * SVG container
         *
         * @property svg
         * @type d3-element-array
         */ this . svg = null ; /**
         * force reloader
         *
         * @property force
         * @type d3-element-array
         */ this . force = null ; /**
         * link elements
         *
         * @property link
         * @type d3-element-array
         */ this . link = null ; /**
         * Node elements
         *
         * @property node
         * @type d3-element-array
         */ this . node = null ; /**
         * test elements
         *
         * @property text
         * @type d3-element-array
         */ this . text = null ; /**
         * d3 color object
         *
         * @property color
         * @type Object
         */ this . color = d3 . scale . category20 ( ) ; /**
         * selected index
         *
         * @property selectedIdx
         * @type Number
         * @default -1
         */ this . selectedIdx = - 1 ; /**
         * selected type
         *
         * @property selectedType
         * @type String
         * @default "normal"
         */ this . selectedType = 'normal' ; /**
         * selected object
         *
         * @property selectedObject
         * @type Object
         */ this . selectedObject = { } ; // Scope trick this . radius = this . radius ( ) ; this . linkLine = this . linkLine ( ) ; }
D3Render main class

@class D3Renderer
@constructor
@param {Array} view : d3.select() returns
@param {Object} graphData : DependencyParser::parse() returns
@param {Object} options
D3Render main class