Tuesday, August 22, 2017

Debugging the window thing in sigma.js

document.getElementById('graph-container').offsetWidth

...width of the svg....  821

document.getElementById('graph-container').offSetHeight






... height of the svg ....   256

document.getElementById('graph-container').clientWidth


... some other width ... 811

document.getElementById('graph-container').clientHeight

... some other height ... 247


++++++++++++++++++++++++++++++++++

./node_modules/grunt-zip/test/expected/nested_unzip/bootstrap/css/bootstrap.css:.container,
./node_modules/grunt-zip/test/expected/nested_unzip/bootstrap/css/bootstrap.css:.navbar-static-top .container,
./node_modules/grunt-zip/test/expected/nested_unzip/bootstrap/css/bootstrap.css:.navbar-fixed-top .container,
./node_modules/grunt-zip/test/expected/nested_unzip/bootstrap/css/bootstrap.css:.navbar-fixed-bottom .container {
./node_modules/grunt-zip/test/expected/nested_unzip/bootstrap/css/bootstrap.css:.container {
./node_modules/grunt-zip/test/expected/nested_unzip/bootstrap/css/bootstrap.css:.container:before,
./node_modules/grunt-zip/test/expected/nested_unzip/bootstrap/css/bootstrap.css:.container:after {
./node_modules/grunt-zip/test/expected/nested_unzip/bootstrap/css/bootstrap.css:.container:after {
./node_modules/grunt-zip/test/expected/nested_unzip/bootstrap/css/bootstrap.css:.container-fluid {
./node_modules/grunt-zip/test/expected/nested_unzip/bootstrap/css/bootstrap.css:.container-fluid:before,
./node_modules/grunt-zip/test/expected/nested_unzip/bootstrap/css/bootstrap.css:.container-fluid:after {
./node_modules/grunt-zip/test/expected/nested_unzip/bootstrap/css/bootstrap.css:.container-fluid:after {
./node_modules/grunt-zip/test/expected/nested_unzip/bootstrap/css/bootstrap.css:.navbar .container {
./node_modules/grunt-zip/test/expected/nested_unzip/bootstrap/css/bootstrap.css:.navbar-static-top .container,
./node_modules/grunt-zip/test/expected/nested_unzip/bootstrap/css/bootstrap.css:.navbar-fixed-top .container,
./node_modules/grunt-zip/test/expected/nested_unzip/bootstrap/css/bootstrap.css:.navbar-fixed-bottom .container {
./plugins/sigma.layout.noverlap/README.md:  container: 'graph-container'
./plugins/sigma.parsers.json/README.md:  { container: 'myContainer' }
./plugins/sigma.exporters.svg/sigma.exporters.svg.js:    // Creating a dummy container
./plugins/sigma.exporters.svg/sigma.exporters.svg.js:    var container = document.createElement('div');
./plugins/sigma.exporters.svg/sigma.exporters.svg.js:    container.setAttribute('width', w);
./plugins/sigma.exporters.svg/sigma.exporters.svg.js:    container.setAttribute('height', h);
./plugins/sigma.exporters.svg/sigma.exporters.svg.js:    container.setAttribute('style', 'position:absolute; top: 0px; left:0px; width: ' + w + 'px; height: ' + h + 'px;');
./plugins/sigma.exporters.svg/sigma.exporters.svg.js:      container: container,
./plugins/sigma.exporters.svg/sigma.exporters.svg.js:    var svg = container.querySelector('svg');
./plugins/sigma.exporters.svg/sigma.exporters.svg.js:    container = null;
./plugins/sigma.renderers.edgeLabels/README.md:  container: 'graph-container',
./plugins/sigma.plugins.dragNodes/sigma.plugins.dragNodes.js:   * the real container, not in canvas.
./plugins/sigma.plugins.dragNodes/sigma.plugins.dragNodes.js:      _mouse = renderer.container.lastChild,
./plugins/sigma.plugins.dragNodes/sigma.plugins.dragNodes.js:        _mouse = renderer.container.firstChild;
./plugins/sigma.plugins.dragNodes/sigma.plugins.dragNodes.js:        var offset = calculateOffset(_renderer.container),
./plugins/sigma.neo4j.cypher/README.md:  { container: 'myContainer' }
./plugins/sigma.neo4j.cypher/README.md:  { container: 'myContainer' }
./plugins/sigma.parsers.gexf/README.md:  { container: 'myContainer' }
./src/sigma.settings.js:    // {string} Indicates of to scale the graph relatively to its container.
./src/misc/sigma.misc.bindDOMEvents.js:  sigma.misc.bindDOMEvents = function(container) {
./src/misc/sigma.misc.bindDOMEvents.js:    container.addEventListener('click', click, false);
./src/misc/sigma.misc.bindDOMEvents.js:    sigma.utils.doubleClick(container, 'click', doubleClick);
./src/misc/sigma.misc.bindDOMEvents.js:    container.addEventListener('touchstart', click, false);
./src/misc/sigma.misc.bindDOMEvents.js:    sigma.utils.doubleClick(container, 'touchstart', doubleClick);
./src/misc/sigma.misc.bindDOMEvents.js:    container.addEventListener('mouseover', onOver, true);
./src/misc/sigma.misc.bindDOMEvents.js:    container.addEventListener('mouseout', onOut, true);
./src/sigma.core.js:   * polyfill) will be used as the only renderer, with the container specified
./src/sigma.core.js:   *  >   container: 'my-container-id'
./src/sigma.core.js:   * Then, since the only required parameter is the DOM container, there are
./src/sigma.core.js:   *  > s1 = new sigma('my-container-id');
./src/sigma.core.js:   *  > s2 = new sigma(document.getElementById('my-container-id'));
./src/sigma.core.js:   *  >   container: document.getElementById('my-container-id')
./src/sigma.core.js:   *  >     container: document.getElementById('my-container-id')
./src/sigma.core.js:    //  - If there are no renderer list nor "container" object, it will be
./src/sigma.core.js:    //    considered as the container itself (a DOM element).
./src/sigma.core.js:    //    as the ID of the DOM container.
./src/sigma.core.js:    // Also check "renderer" and "container" keys:
./src/sigma.core.js:    o = _conf.renderers || _conf.renderer || _conf.container;
./src/sigma.core.js:        (typeof o === 'object' && 'container' in o)
./src/sigma.core.js:        container: document.getElementById(o)
./src/sigma.core.js:        container: o
./src/sigma.core.js:    // If the container still is a string, we get it by id
./src/sigma.core.js:    if (typeof o.container === 'string')
./src/sigma.core.js:      o.container = document.getElementById(o.container);
./src/renderers/sigma.renderers.webgl.js:    if (!(options.container instanceof HTMLElement))
./src/renderers/sigma.renderers.webgl.js:    this.container = this.options.container;
./src/renderers/sigma.renderers.webgl.js:   * finally appends it to the container.
./src/renderers/sigma.renderers.webgl.js:    this.container.appendChild(dom);
./src/renderers/sigma.renderers.webgl.js:   * This method resizes each DOM elements in the container and stores the new
./src/renderers/sigma.renderers.webgl.js:   * @param  {?number}               width  The new width of the container.
./src/renderers/sigma.renderers.webgl.js:   * @param  {?number}               height The new height of the container.
./src/renderers/sigma.renderers.webgl.js:      this.width = this.container.offsetWidth;
./src/renderers/sigma.renderers.webgl.js:      this.height = this.container.offsetHeight;
./src/renderers/sigma.renderers.canvas.js:    if (!(options.container instanceof HTMLElement))
./src/renderers/sigma.renderers.canvas.js:    this.container = this.options.container;
./src/renderers/sigma.renderers.canvas.js:   * finally appends it to the container.
./src/renderers/sigma.renderers.canvas.js:    this.container.appendChild(dom);
./src/renderers/sigma.renderers.canvas.js:   * This method resizes each DOM elements in the container and stores the new
./src/renderers/sigma.renderers.canvas.js:   * @param  {?number}                width  The new width of the container.
./src/renderers/sigma.renderers.canvas.js:   * @param  {?number}                height The new height of the container.
./src/renderers/sigma.renderers.canvas.js:      this.width = this.container.offsetWidth;
./src/renderers/sigma.renderers.canvas.js:      this.height = this.container.offsetHeight;
./src/renderers/sigma.renderers.svg.js:    if (!(options.container instanceof HTMLElement))
./src/renderers/sigma.renderers.svg.js:    this.container = this.options.container;
./src/renderers/sigma.renderers.svg.js:   * finally appends it to the container.
./src/renderers/sigma.renderers.svg.js:    this.domElements.graph = this.container.appendChild(dom);
./src/renderers/sigma.renderers.svg.js:    this.container.appendChild(canvas);
./src/renderers/sigma.renderers.svg.js:   * This method resizes each DOM elements in the container and stores the new
./src/renderers/sigma.renderers.svg.js:   * @param  {?number}                width  The new width of the container.
./src/renderers/sigma.renderers.svg.js:   * @param  {?number}                height The new height of the container.
./src/renderers/sigma.renderers.svg.js:      this.width = this.container.offsetWidth;
./src/renderers/sigma.renderers.svg.js:      this.height = this.container.offsetHeight;
./src/renderers/webgl/sigma.webgl.edges.def.js:            // Scale from [[-1 1] [-1 1]] to the container:
./src/renderers/webgl/sigma.webgl.edges.arrow.js:            // Scale from [[-1 1] [-1 1]] to the container:
./src/renderers/webgl/sigma.webgl.nodes.fast.js:            // Scale from [[-1 1] [-1 1]] to the container:
./src/renderers/webgl/sigma.webgl.edges.thickLine.js:            // Scale from [[-1 1] [-1 1]] to the container:
./src/renderers/webgl/sigma.webgl.edges.fast.js:            // Scale from [[-1 1] [-1 1]] to the container:
./src/renderers/webgl/sigma.webgl.nodes.def.js:            // Scale from [[-1 1] [-1 1]] to the container:
./src/renderers/webgl/sigma.webgl.edges.thickLineCPU.js:            // Scale from [[-1 1] [-1 1]] to the container:
./src/renderers/webgl/sigma.webgl.edges.thickLineGPU.js:            // Scale from [[-1 1] [-1 1]] to the container:
./src/classes/sigma.classes.graph.js:    // Add empty containers for edges indexes:
./test/qunit/qunit.css:#qunit-modulefilter-container {
./test/qunit/qunit.js:        // * Add handlers to the individual elements instead of the container
./test/qunit/qunit.js:            moduleFilter.setAttribute( "id", "qunit-modulefilter-container" );
./test/unit.core.js:  // Let's add a temporary container:
./test/unit.core.js:    container: dom
./test/unit.core.js:    container: dom
./test/unit.core.js:    container: dom
./test/unit.core.js:    container: 'abc'
./test/unit.core.js:    container: dom
./test/unit.core.js:  }, '"new sigma({ container: "abc" })" instantiate the default renderer in the div #abc.');
./test/unit.core.js:    container: document.getElementById('abc')
./test/unit.core.js:    container: dom
./test/unit.core.js:  }, '"new sigma({ container: document.getElementById("abc") })" instantiate the default renderer in the div #abc.');
./test/unit.core.js:    { container: dom },
./test/unit.core.js:    { container: dom }
./test/unit.core.js:      container: document.getElementById('abc')
./test/unit.core.js:    container: dom
./test/unit.core.js:  }, '"new sigma({ renderers: [{ container: document.getElementById("abc") }] })" instantiate the default renderer in the div #abc.');
./test/unit.core.js:  // Let's add a temporary container:
./test/unit.core.js:      r1 = s.addRenderer({ container: dom, camera: c1, id: '0' }),
./test/unit.core.js:      r2 = s.addRenderer({ container: dom, camera: c2, id: '1' }),
./test/unit.core.js:      r3 = s.addRenderer({ container: dom, camera: c2, id: '2' });
./test/unit.core.js:      r = s.addRenderer({ camera: c, container: dom, id: 'myRenderer' });
./test/unit.core.js:    s.addRenderer({ camera: c, container: dom, id: 'myRenderer' });
./test/unit.core.js:    s.addRenderer({ camera: c, container: dom });

No comments:

Post a Comment