code
stringlengths
24
2.07M
docstring
stringlengths
25
85.3k
func_name
stringlengths
1
92
language
stringclasses
1 value
repo
stringlengths
5
64
path
stringlengths
4
172
url
stringlengths
44
218
license
stringclasses
7 values
function returnFalse() { return false; }
Returns whether the query matches for the element @param query The `{ type, value, ... }` query object @param ele The element to compare against
returnFalse
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function returnTrue() { return true; } // http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
Returns whether the query matches for the element @param query The `{ type, value, ... }` query object @param ele The element to compare against
returnTrue
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function Emitter() { var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : emptyOpts; var context = arguments.length > 1 ? arguments[1] : undefined; // micro-optimisation vs Object.assign() -- reduces Element instantiation time for (var i = 0; i < defaultsKeys.length; i++) { var ke...
Returns whether the query matches for the element @param query The `{ type, value, ... }` query object @param ele The element to compare against
Emitter
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
forEachEvent = function forEachEvent(self, handler, events, qualifier, callback, conf, confOverrides) { if (fn(qualifier)) { callback = qualifier; qualifier = null; } if (confOverrides) { if (conf == null) { conf = confOverrides; } else { conf = extend({}, conf, confOverrides); } ...
Returns whether the query matches for the element @param query The `{ type, value, ... }` query object @param ele The element to compare against
forEachEvent
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
makeEventObj = function makeEventObj(self, obj) { self.addEventFields(self.context, obj); return new Event(obj.type, obj); }
Returns whether the query matches for the element @param query The `{ type, value, ... }` query object @param ele The element to compare against
makeEventObj
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
forEachEventObj = function forEachEventObj(self, handler, events) { if (event(events)) { handler(self, events); return; } else if (plainObject(events)) { handler(self, makeEventObj(self, events)); return; } var eventList = array(events) ? events : events.split(/\s+/); for (var i = 0; i < eve...
Returns whether the query matches for the element @param query The `{ type, value, ... }` query object @param ele The element to compare against
forEachEventObj
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
_loop = function _loop(i) { var listener = listeners[i]; forEachEvent(_this, function (self, event, type, namespace, qualifier, callback /*, conf*/ ) { if ((listener.type === type || events === '*') && (!namespace && listener.namespace !== '.*' || listener.namespace === namespace) && (!qualifier |...
Returns whether the query matches for the element @param query The `{ type, value, ... }` query object @param ele The element to compare against
_loop
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
_loop2 = function _loop2(i) { var listener = listeners[i]; if (listener.type === eventObj.type && (!listener.namespace || listener.namespace === eventObj.namespace || listener.namespace === universalNamespace) && self.eventMatches(self.context, listener, eventObj)) { var args = [eventObj]; ...
Returns whether the query matches for the element @param query The `{ type, value, ... }` query object @param ele The element to compare against
_loop2
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
argSelector = function argSelector(arg) { if (string(arg)) { return new Selector(arg); } else { return arg; } }
Returns whether the query matches for the element @param query The `{ type, value, ... }` query object @param ele The element to compare against
argSelector
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
add = function add(col, other) { for (var i = 0; i < col.length; i++) { var ele = col[i]; var id = ele._private.data.id; var inOther = other.hasElementWithId(id); if (!inOther) { elements.push(ele); } } }
Returns whether the query matches for the element @param query The `{ type, value, ... }` query object @param ele The element to compare against
add
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
add = function add(col, other, retEles) { for (var i = 0; i < col.length; i++) { var ele = col[i]; var id = ele._private.data.id; var inOther = other.hasElementWithId(id); if (inOther) { both.merge(ele); } else { retEles.push(ele); } } ...
Returns whether the query matches for the element @param query The `{ type, value, ... }` query object @param ele The element to compare against
add
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
zIndexSort = function zIndexSort(a, b) { var cy = a.cy(); var hasCompoundNodes = cy.hasCompoundNodes(); function getDepth(ele) { var style = ele.pstyle('z-compound-depth'); if (style.value === 'auto') { return hasCompoundNodes ? ele.zDepth() : 0; } else if (style.value === 'bottom') { re...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
zIndexSort
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function getDepth(ele) { var style = ele.pstyle('z-compound-depth'); if (style.value === 'auto') { return hasCompoundNodes ? ele.zDepth() : 0; } else if (style.value === 'bottom') { return -1; } else if (style.value === 'top') { return MAX_INT; } // 'orphan' return 0; }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
getDepth
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function getEleDepth(ele) { var style = ele.pstyle('z-index-compare'); if (style.value === 'auto') { return ele.isNode() ? 1 : 0; } // 'manual' return 0; }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
getEleDepth
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
defineSymbolIterator = function defineSymbolIterator() { var typeofUndef = "undefined" ; var isIteratorSupported = (typeof Symbol === "undefined" ? "undefined" : _typeof(Symbol)) != typeofUndef && _typeof(Symbol.iterator) != typeofUndef; // eslint-disable-line no-undef if (isIteratorSupported) { elesfn$p[Sy...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
defineSymbolIterator
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
getMemoizeKey = function getMemoizeKey(node) { return node.id(); }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
getMemoizeKey
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
calculateSpacing = function calculateSpacing(spacing, nodesBb, pos) { var center = { x: nodesBb.x1 + nodesBb.w / 2, y: nodesBb.y1 + nodesBb.h / 2 }; var spacingVector = { // scale from center of bounding box (not necessarily 0,0) x: (pos.x - center.x) * spacing, ...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
calculateSpacing
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
spacingBb = function spacingBb() { if (!useSpacingFactor) { return null; } var bb = makeBoundingBox(); for (var i = 0; i < nodes.length; i++) { var node = nodes[i]; var pos = fnMem(node, i); expandBoundingBoxByPoint(bb, pos.x, pos.y); } return bb; ...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
spacingBb
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function styleCache(key, fn, ele) { var _p = ele._private; var cache = _p.styleCache = _p.styleCache || []; var val; if ((val = cache[key]) != null) { return val; } else { val = cache[key] = fn(ele); return val; } }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
styleCache
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function cacheStyleFunction(key, fn) { key = hashString(key); return function cachedStyleFunction(ele) { return styleCache(key, fn, ele); }; }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
cacheStyleFunction
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function cachePrototypeStyleFunction(key, fn) { key = hashString(key); var selfFn = function selfFn(ele) { return fn.call(ele); }; return function cachedPrototypeStyleFunction() { var ele = this[0]; if (ele) { return styleCache(key, selfFn, ele); } }; }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
cachePrototypeStyleFunction
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
selfFn = function selfFn(ele) { return fn.call(ele); }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
selfFn
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
dirty = function dirty(ele) { return ele._private.styleCache = null; }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
dirty
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function checkCompound(ele, parentOk) { var _p = ele._private; var parents = _p.data.parent ? ele.parents() : null; if (parents) { for (var i = 0; i < parents.length; i++) { var parent = parents[i]; if (!parentOk(parent)) { return false; } } } return true; }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
checkCompound
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function defineDerivedStateFunction(specs) { var ok = specs.ok; var edgeOkViaNode = specs.edgeOkViaNode || specs.ok; var parentOk = specs.parentOk || specs.ok; return function () { var cy = this.cy(); if (!cy.styleEnabled()) { return true; } var ele = this[0]; var hasCompoundNodes = ...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
defineDerivedStateFunction
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function defineSwitchFunction(params) { return function () { var args = arguments; var changedEles = []; // e.g. cy.nodes().select( data, handler ) if (args.length === 2) { var data = args[0]; var handler = args[1]; this.on(params.event, data, handler); } // e.g. cy.nodes().select( ...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
defineSwitchFunction
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function defineSwitchSet(params) { elesfn$s[params.field] = function () { var ele = this[0]; if (ele) { if (params.overrideField) { var val = params.overrideField(ele); if (val !== undefined) { return val; } } return ele._private[params.field]; } };...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
defineSwitchSet
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
defineDagExtremity = function defineDagExtremity(params) { return function dagExtremityImpl(selector) { var eles = this; var ret = []; for (var i = 0; i < eles.length; i++) { var ele = eles[i]; if (!ele.isNode()) { continue; } var disqualified = false; var edges = ...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
defineDagExtremity
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
defineDagOneHop = function defineDagOneHop(params) { return function (selector) { var eles = this; var oEles = []; for (var i = 0; i < eles.length; i++) { var ele = eles[i]; if (!ele.isNode()) { continue; } var edges = ele.connectedEdges(); for (var j = 0; j < edg...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
defineDagOneHop
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
defineDagAllHops = function defineDagAllHops(params) { return function (selector) { var eles = this; var sEles = []; var sElesIds = {}; for (;;) { var next = params.outgoing ? eles.outgoers() : eles.incomers(); if (next.length === 0) { break; } // done if none left ...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
defineDagAllHops
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function defineSourceFunction(params) { return function sourceImpl(selector) { var sources = []; for (var i = 0; i < this.length; i++) { var ele = this[i]; var src = ele._private[params.attr]; if (src) { sources.push(src); } } return this.spawn(sources, true).filter(...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
defineSourceFunction
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function defineEdgesWithFunction(params) { return function edgesWithImpl(otherNodes) { var elements = []; var cy = this._private.cy; var p = params || {}; // get elements if a selector is specified if (string(otherNodes)) { otherNodes = cy.$(otherNodes); } for (var h = 0; h < otherNode...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
defineEdgesWithFunction
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function defineParallelEdgesFunction(params) { var defaults = { codirected: false }; params = extend({}, defaults, params); return function parallelEdgesImpl(selector) { // micro-optimised for renderer var elements = []; var edges = this.edges(); var p = params; // look at all the edges in t...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
defineParallelEdgesFunction
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
visitInComponent = function visitInComponent(node, component) { visited.merge(node); unvisited.unmerge(node); component.merge(node); }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
visitInComponent
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
_loop = function _loop() { // each iteration yields a component var cmpt = cy.collection(); components.push(cmpt); var root = unvisited[0]; visitInComponent(root, cmpt); self.bfs({ directed: false, roots: root, visit: function visit(v) { return visit...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
_loop
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
Collection = function Collection(cy, elements) { var unique = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; if (cy === undefined) { error('A collection must have a reference to the core'); return; } var map = new Map$1(); var createdElements = false; if (!elements) { ...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
Collection
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
get map() { if (this.lazyMap == null) { this.rebuildMap(); } return this.lazyMap; }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
map
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
set map(m) { this.lazyMap = m; }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
map
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
checkSwitch = function checkSwitch(k, trueFnName, falseFnName) { var obj_k = obj[k]; if (obj_k != null && obj_k !== p[k]) { if (obj_k) { ele[trueFnName](); } else { ele[falseFnName](); } } }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
checkSwitch
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
removeFromElements = function removeFromElements() { elements.splice(i, 1); i--; }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
removeFromElements
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function addConnectedEdges(node) { var edges = node._private.edges; for (var i = 0; i < edges.length; i++) { add(edges[i]); } } // add descendant nodes
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
addConnectedEdges
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function addChildren(node) { var children = node._private.children; for (var i = 0; i < children.length; i++) { add(children[i]); } }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
addChildren
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function add(ele) { var alreadyAdded = elesToRemoveIds[ele.id()]; if (removeFromPool && ele.removed() || alreadyAdded) { return; } else { elesToRemoveIds[ele.id()] = true; } if (ele.isNode()) { elesToRemove.push(ele); // nodes are removed last addConnectedEdges(ele); ...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
add
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function removeEdgeRef(node, edge) { var connectedEdges = node._private.edges; removeFromArray(connectedEdges, edge); // removing an edges invalidates the traversal cache for its nodes node.clearTraversalCache(); }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
removeEdgeRef
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function removeParallelRef(pllEdge) { // removing an edge invalidates the traversal caches for the parallel edges pllEdge.clearTraversalCache(); }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
removeParallelRef
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function removeChildRef(parent, ele) { ele = ele[0]; parent = parent[0]; var children = parent._private.children; var pid = parent.id(); removeFromArray(children, ele); // remove parent => child ref ele._private.parent = null; // remove child => parent ref if (!alteredParents.ids[pid]) { ...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
removeChildRef
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
toString = function toString(id) { return id == null ? id : '' + id; }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
toString
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function generateCubicBezier(mX1, mY1, mX2, mY2) { var NEWTON_ITERATIONS = 4, NEWTON_MIN_SLOPE = 0.001, SUBDIVISION_PRECISION = 0.0000001, SUBDIVISION_MAX_ITERATIONS = 10, kSplineTableSize = 11, kSampleStepSize = 1.0 / (kSplineTableSize - 1.0), float32ArraySupported = typeof Float3...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
generateCubicBezier
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function A(aA1, aA2) { return 1.0 - 3.0 * aA2 + 3.0 * aA1; }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
A
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function B(aA1, aA2) { return 3.0 * aA2 - 6.0 * aA1; }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
B
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function C(aA1) { return 3.0 * aA1; }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
C
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function calcBezier(aT, aA1, aA2) { return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT; }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
calcBezier
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function getSlope(aT, aA1, aA2) { return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1); }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
getSlope
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function newtonRaphsonIterate(aX, aGuessT) { for (var _i = 0; _i < NEWTON_ITERATIONS; ++_i) { var currentSlope = getSlope(aGuessT, mX1, mX2); if (currentSlope === 0.0) { return aGuessT; } var currentX = calcBezier(aGuessT, mX1, mX2) - aX; aGuessT -= currentX / currentSlope; ...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
newtonRaphsonIterate
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function calcSampleValues() { for (var _i2 = 0; _i2 < kSplineTableSize; ++_i2) { mSampleValues[_i2] = calcBezier(_i2 * kSampleStepSize, mX1, mX2); } }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
calcSampleValues
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function binarySubdivide(aX, aA, aB) { var currentX, currentT, i = 0; do { currentT = aA + (aB - aA) / 2.0; currentX = calcBezier(currentT, mX1, mX2) - aX; if (currentX > 0.0) { aB = currentT; } else { aA = currentT; } } while (Math.abs(current...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
binarySubdivide
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function getTForX(aX) { var intervalStart = 0.0, currentSample = 1, lastSample = kSplineTableSize - 1; for (; currentSample !== lastSample && mSampleValues[currentSample] <= aX; ++currentSample) { intervalStart += kSampleStepSize; } --currentSample; var dist = (aX - mSampleVa...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
getTForX
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function precompute() { _precomputed = true; if (mX1 !== mY1 || mX2 !== mY2) { calcSampleValues(); } }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
precompute
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
f = function f(aX) { if (!_precomputed) { precompute(); } if (mX1 === mY1 && mX2 === mY2) { return aX; } if (aX === 0) { return 0; } if (aX === 1) { return 1; } return calcBezier(getTForX(aX), mY1, mY2); }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
f
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function springAccelerationForState(state) { return -state.tension * state.x - state.friction * state.v; }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
springAccelerationForState
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function springEvaluateStateWithDerivative(initialState, dt, derivative) { var state = { x: initialState.x + derivative.dx * dt, v: initialState.v + derivative.dv * dt, tension: initialState.tension, friction: initialState.friction }; return { dx: state.v, dv: springAccel...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
springEvaluateStateWithDerivative
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function springIntegrateState(state, dt) { var a = { dx: state.v, dv: springAccelerationForState(state) }, b = springEvaluateStateWithDerivative(state, dt * 0.5, a), c = springEvaluateStateWithDerivative(state, dt * 0.5, b), d = springEvaluateStateWithDerivative(state, dt, c)...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
springIntegrateState
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
cubicBezier = function cubicBezier(t1, p1, t2, p2) { var bezier = generateCubicBezier(t1, p1, t2, p2); return function (start, end, percent) { return start + (end - start) * bezier(percent); }; }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
cubicBezier
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function getEasedValue(type, start, end, percent, easingFn) { if (percent === 1) { return end; } if (start === end) { return end; } var val = easingFn(start, end, percent); if (type == null) { return val; } if (type.roundValue || type.color) { val = Math.round(val); } if (type.m...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
getEasedValue
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function getValue(prop, spec) { if (prop.pfValue != null || prop.value != null) { if (prop.pfValue != null && (spec == null || spec.type.units !== '%')) { return prop.pfValue; } else { return prop.value; } } else { return prop; } }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
getValue
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function ease(startProp, endProp, percent, easingFn, propSpec) { var type = propSpec != null ? propSpec.type : null; if (percent < 0) { percent = 0; } else if (percent > 1) { percent = 1; } var start = getValue(startProp, propSpec); var end = getValue(endProp, propSpec); if (number(start) && nu...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
ease
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function step(self, ani, now, isCore) { var isEles = !isCore; var _p = self._private; var ani_p = ani._private; var pEasing = ani_p.easing; var startTime = ani_p.startTime; var cy = isCore ? self : self.cy(); var style = cy.style(); if (!ani_p.easingImpl) { if (pEasing == null) { // use defau...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
step
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function valid(start, end) { if (start == null || end == null) { return false; } if (number(start) && number(end)) { return true; } else if (start && end) { return true; } return false; }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
valid
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function startAnimation(self, ani, now, isCore) { var ani_p = ani._private; ani_p.started = true; ani_p.startTime = now - ani_p.progress * ani_p.duration; }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
startAnimation
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function stepAll(now, cy) { var eles = cy._private.aniEles; var doneEles = []; function stepOne(ele, isCore) { var _p = ele._private; var current = _p.animation.current; var queue = _p.animation.queue; var ranAnis = false; // if nothing currently animating, get something from the queue if (c...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
stepAll
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function stepOne(ele, isCore) { var _p = ele._private; var current = _p.animation.current; var queue = _p.animation.queue; var ranAnis = false; // if nothing currently animating, get something from the queue if (current.length === 0) { var next = queue.shift(); if (next) { curr...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
stepOne
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
callbacks = function callbacks(_callbacks) { for (var j = _callbacks.length - 1; j >= 0; j--) { var cb = _callbacks[j]; cb(); } _callbacks.splice(0, _callbacks.length); }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
callbacks
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function headlessStep() { if (!cy._private.animationsRunning) { return; } requestAnimationFrame(function animationStep(now) { stepAll(now, cy); headlessStep(); }); }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
headlessStep
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
argSelector$1 = function argSelector(arg) { if (string(arg)) { return new Selector(arg); } else { return arg; } }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
argSelector$1
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
propHash = function propHash(ele, propNames, seedKey) { return self.getPropertiesHash(ele, propNames, seedKey); }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
propHash
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
updateGrKey1 = function updateGrKey1(val, grKey) { return _p.styleKeys[grKey][0] = hashInt(val, _p.styleKeys[grKey][0]); }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
updateGrKey1
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
updateGrKey2 = function updateGrKey2(val, grKey) { return _p.styleKeys[grKey][1] = hashIntAlt(val, _p.styleKeys[grKey][1]); }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
updateGrKey2
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
updateGrKey = function updateGrKey(val, grKey) { updateGrKey1(val, grKey); updateGrKey2(val, grKey); }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
updateGrKey
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
updateGrKeyWStr = function updateGrKeyWStr(strVal, grKey) { for (var j = 0; j < strVal.length; j++) { var ch = strVal.charCodeAt(j); updateGrKey1(ch, grKey); updateGrKey2(ch, grKey); } }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
updateGrKeyWStr
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
cleanNum = function cleanNum(val) { return -128 < val && val < 128 && Math.floor(val) !== val ? N - (val * 1024 | 0) : val; }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
cleanNum
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
getVal = function getVal(p) { if (p == null) { return null; } else if (p.pfValue != null) { return p.pfValue; } else { return p.value; } }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
getVal
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
checkTriggers = function checkTriggers() { var fromVal = getVal(origProp); var toVal = getVal(prop); self.checkTriggers(ele, prop.name, fromVal, toVal); }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
checkTriggers
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
printMappingErr = function printMappingErr() { warn('Do not assign mappings to elements without corresponding data (i.e. ele `' + ele.id() + '` has no mapping for property `' + prop.name + '` with data field `' + prop.field + '`); try a `[' + prop.field + ']` selector to limit scope to elements with `' + prop.field...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
printMappingErr
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
getRenderedValue = function getRenderedValue(val) { return val * zoom; }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
getRenderedValue
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
getValueStringWithUnits = function getValueStringWithUnits(val, units) { return getRenderedValue(val) + units; }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
getValueStringWithUnits
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function removeSelAndBlockFromRemaining() { // remove the parsed selector and block from the remaining text to parse if (remaining.length > selAndBlockStr.length) { remaining = remaining.substr(selAndBlockStr.length); } else { remaining = ''; } }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
removeSelAndBlockFromRemaining
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
function removePropAndValFromRem() { // remove the parsed property and value from the remaining block text to parse if (blockRem.length > propAndValStr.length) { blockRem = blockRem.substr(propAndValStr.length); } else { blockRem = ''; } }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
removePropAndValFromRem
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
data = function data(prefix) { return '^' + prefix + '\\s*\\(\\s*([\\w\\.]+)\\s*\\)$'; }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
data
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
mapData = function mapData(prefix) { var mapArg = number + '|\\w+|' + rgba + '|' + hsla + '|' + hex3$1 + '|' + hex6$1; return '^' + prefix + '\\s*\\(([\\w\\.]+)\\s*\\,\\s*(' + number + ')\\s*\\,\\s*(' + number + ')\\s*,\\s*(' + mapArg + ')\\s*\\,\\s*(' + mapArg + ')\\)$'; }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
mapData
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
nodeSizeHashOverride = function nodeSizeHashOverride(ele, parsedProp) { if (parsedProp.value === 'label') { return -ele.poolIndex(); // no hash key hits is using label size (hitrate for perf probably low anyway) } else { return parsedProp.pfValue; } }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
nodeSizeHashOverride
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
checkEnums = function checkEnums() { for (var _i = 0; _i < type.enums.length; _i++) { var en = type.enums[_i]; if (en === value) { return { name: name, value: value, strValue: '' + value, bypass: propIsBypass }; } } return null; }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
checkEnums
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
Style = function Style(cy) { if (!(this instanceof Style)) { return new Style(cy); } if (!core(cy)) { error('A style must have a core reference'); return; } this._private = { cy: cy, coreStyle: {} }; this.length = 0; this.resetToDefault(); }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
Style
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
val = function val(name) { return parseFloat(style.getPropertyValue(name)); }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
val
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
Core = function Core(opts) { var cy = this; opts = extend({}, opts); var container = opts.container; // allow for passing a wrapped jquery object // e.g. cytoscape({ container: $('#cy') }) if (container && !htmlElement(container) && htmlElement(container[0])) { container = container[0]; } var reg = ...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
Core
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
defVal = function defVal(def, val, altVal) { if (val !== undefined) { return val; } else if (altVal !== undefined) { return altVal; } else { return def; } }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
defVal
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
loadExtData = function loadExtData(extData, next) { var anyIsPromise = extData.some(promise); if (anyIsPromise) { return Promise$1.all(extData).then(next); // load all data asynchronously, then exec rest of init } else { next(extData); // exec synchronously for convenience } }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
loadExtData
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
setElesAndLayout = function setElesAndLayout(elements, onload, ondone) { cy.notifications(false); // remove old elements var oldEles = cy.mutableElements(); if (oldEles.length > 0) { oldEles.remove(); } if (elements != null) { if (plainObject(elements) || array(elements)) { cy...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
setElesAndLayout
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
getFreshRef = function getFreshRef(ele) { return cy.getElementById(ele.id()); }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
getFreshRef
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
updateEles = function updateEles(jsons, gr) { var toAdd = []; var toMod = []; for (var i = 0; i < jsons.length; i++) { var json = jsons[i]; if (!json.data.id) { warn('cy.json() cannot handle elements without an ID attribute'); continue;...
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
updateEles
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT
getInfo = function getInfo(ele) { return ele.scratch('breadthfirst'); }
Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), and z-index (low to high). These styles affect how this applies: z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the same depth as th...
getInfo
javascript
pistazie/cdk-dia
src/render/cytoscape/base/js/app.8e9fe77f.js
https://github.com/pistazie/cdk-dia/blob/master/src/render/cytoscape/base/js/app.8e9fe77f.js
MIT