Lines Matching refs:vs

628 Graph.prototype.saveViewState = function(vs, node, ignoreTransient, resolveReferences)  argument
632 node.setAttribute('grid', (vs == null || vs.gridEnabled) ? '1' : '0');
633 node.setAttribute('gridSize', (vs != null) ? vs.gridSize : mxGraph.prototype.gridSize);
634 node.setAttribute('guides', (vs == null || vs.guidesEnabled) ? '1' : '0');
635 node.setAttribute('tooltips', (vs == null || vs.tooltips) ? '1' : '0');
636 node.setAttribute('connect', (vs == null || vs.connect) ? '1' : '0');
637 node.setAttribute('arrows', (vs == null || vs.arrows) ? '1' : '0');
638 node.setAttribute('page', ((vs == null && this.defaultPageVisible ) ||
639 (vs != null && vs.pageVisible)) ? '1' : '0');
642 node.setAttribute('fold', (vs == null || vs.foldingEnabled) ? '1' : '0');
645 node.setAttribute('pageScale', (vs != null && vs.pageScale != null) ?
646 vs.pageScale : mxGraph.prototype.pageScale);
648 var pf = (vs != null) ? vs.pageFormat : (typeof mxSettings === 'undefined' ||
658 if (vs != null)
660 if (vs.background != null)
662 node.setAttribute('background', vs.background);
665 var bgImg = this.getBackgroundImageObject(vs.backgroundImage, resolveReferences);
673 node.setAttribute('math', (vs != null && vs.mathEnabled) ? '1' : '0');
674 node.setAttribute('shadow', (vs != null && vs.shadowVisible) ? '1' : '0');
676 if (vs != null && vs.extFonts != null && vs.extFonts.length > 0)
678 node.setAttribute('extFonts', vs.extFonts.map(function(ef)
1937 var vs = node.getAttribute('viewState');
1939 if (vs != null)
1941 obj.relatedPage.viewState = JSON.parse(vs);