code
stringlengths
28
313k
docstring
stringlengths
25
85.3k
func_name
stringlengths
1
74
language
stringclasses
1 value
repo
stringlengths
5
60
path
stringlengths
4
172
url
stringlengths
44
218
license
stringclasses
7 values
sync(synced, position) { if (isUnd(synced) || synced && isUnd(synced.pause)) return this; synced.pause(); const duration = +(/** @type {globalThis.Animation} */(synced).effect ? /** @type {globalThis.Animation} */(synced).effect.getTiming().duration : /** @type {Tickable} */(synced).duration); return th...
@overload @param {Tickable} [synced] @param {TimePosition} [position] @return {this} @overload @param {globalThis.Animation} [synced] @param {TimePosition} [position] @return {this} @overload @param {WAAPIAnimation} [synced] @param {TimePosition} [position] @return {this} @param {Tickable|WAAPIAnimation|globalThis.A...
sync
javascript
juliangarnier/anime
lib/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/lib/anime.esm.js
MIT
set(targets, parameters, position) { if (isUnd(parameters)) return this; parameters.duration = minValue; parameters.composition = compositionTypes.replace; return this.add(targets, parameters, position); }
@param {TargetsParam} targets @param {AnimationParams} parameters @param {TimePosition} [position] @return {this}
set
javascript
juliangarnier/anime
lib/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/lib/anime.esm.js
MIT
call(callback, position) { if (isUnd(callback) || callback && !isFnc(callback)) return this; return this.add({ duration: 0, onComplete: () => callback(this) }, position); }
@param {Callback<Timer>} callback @param {TimePosition} [position] @return {this}
call
javascript
juliangarnier/anime
lib/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/lib/anime.esm.js
MIT
label(labelName, position) { if (isUnd(labelName) || labelName && !isStr(labelName)) return this; this.labels[labelName] = parseTimelinePosition(this,/** @type TimePosition */(position)); return this; }
@param {String} labelName @param {TimePosition} [position] @return {this}
label
javascript
juliangarnier/anime
lib/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/lib/anime.esm.js
MIT
remove(targets, propertyName) { remove(targets, this, propertyName); return this; }
@param {TargetsParam} targets @param {String} [propertyName] @return {this}
remove
javascript
juliangarnier/anime
lib/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/lib/anime.esm.js
MIT
constructor(targets, parameters) { if (globals.scope) globals.scope.revertibles.push(this); /** @type {AnimationParams} */ const globalParams = {}; const properties = {}; this.targets = []; this.animations = {}; if (isUnd(targets) || isUnd(parameters)) return; for (let propName in parame...
@param {TargetsParam} targets @param {AnimatableParams} parameters
constructor
javascript
juliangarnier/anime
lib/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/lib/anime.esm.js
MIT
normalizePoint(x, y) { this.point.x = x; this.point.y = y; return this.point.matrixTransform(this.inversedMatrix); }
@param {Number} x @param {Number} y @return {DOMPoint}
normalizePoint
javascript
juliangarnier/anime
lib/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/lib/anime.esm.js
MIT
constructor(target, parameters = {}) { if (!target) return; if (globals.scope) globals.scope.revertibles.push(this); const paramX = parameters.x; const paramY = parameters.y; const trigger = parameters.trigger; const modifier = parameters.modifier; const ease = parameters.releaseEase; co...
@param {TargetsParam} target @param {DraggableParams} [parameters]
constructor
javascript
juliangarnier/anime
lib/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/lib/anime.esm.js
MIT
computeVelocity(dx, dy) { const prevTime = this.velocityTime; const curTime = now(); const elapsed = curTime - prevTime; if (elapsed < 17) return this.velocity; this.velocityTime = curTime; const velocityStack = this.velocityStack; const vMul = this.velocityMultiplier; const minV = this....
@param {Number} dx @param {Number} dy @return {Number}
computeVelocity
javascript
juliangarnier/anime
lib/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/lib/anime.esm.js
MIT
setX(x, muteUpdateCallback = false) { if (this.disabled[0]) return; const v = round(x, 5); this.overshootXTicker.pause(); this.manual = true; this.updated = !muteUpdateCallback; this.destX = v; this.snapped[0] = snap(v, this.snapX); this.animate[this.xProp](v, 0); this.manual = false...
@param {Number} x @param {Boolean} [muteUpdateCallback] @return {this}
setX
javascript
juliangarnier/anime
lib/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/lib/anime.esm.js
MIT
setY(y, muteUpdateCallback = false) { if (this.disabled[1]) return; const v = round(y, 5); this.overshootYTicker.pause(); this.manual = true; this.updated = !muteUpdateCallback; this.destY = v; this.snapped[1] = snap(v, this.snapY); this.animate[this.yProp](v, 0); this.manual = false...
@param {Number} y @param {Boolean} [muteUpdateCallback] @return {this}
setY
javascript
juliangarnier/anime
lib/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/lib/anime.esm.js
MIT
isOutOfBounds(bounds, x, y) { if (!this.contained) return 0; const [ bt, br, bb, bl ] = bounds; const [ dx, dy ] = this.disabled; const obx = !dx && x < bl || !dx && x > br; const oby = !dy && y < bt || !dy && y > bb; return obx && !oby ? 1 : !obx && oby ? 2 : obx && oby ? 3 : 0; }
Returns 0 if not OB, 1 if x is OB, 2 if y is OB, 3 if both x and y are OB @param {Array} bounds @param {Number} x @param {Number} y @return {Number}
isOutOfBounds
javascript
juliangarnier/anime
lib/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/lib/anime.esm.js
MIT
scrollInView(duration, gap = 0, ease = eases.inOutQuad) { this.updateScrollCoords(); const x = this.destX; const y = this.destY; const scroll = this.scroll; const scrollBounds = this.scrollBounds; const canScroll = this.canScroll; if (!this.containerArray && this.isOutOfBounds(scrollBounds, ...
@param {Number} [duration] @param {Number} [gap] @param {EasingParam} [ease] @return {this}
scrollInView
javascript
juliangarnier/anime
lib/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/lib/anime.esm.js
MIT
animateInView(duration, gap = 0, ease = eases.inOutQuad) { this.stop(); this.updateBoundingValues(); const x = this.x; const y = this.y; const [ cpt, cpr, cpb, cpl ] = this.containerPadding; const bt = this.scroll.y - this.targetBounds[0] + cpt + gap; const br = this.scroll.x - this.targetBo...
@param {Number} [duration] @param {Number} [gap] @param {EasingParam} [ease] @return {this}
animateInView
javascript
juliangarnier/anime
lib/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/lib/anime.esm.js
MIT
execute(cb) { let activeScope = globals.scope; let activeRoot = globals.root; let activeDefaults = globals.defaults; globals.scope = this; globals.root = this.root; globals.defaults = this.defaults; const mqs = this.mediaQueryLists; for (let mq in mqs) this.matches[mq] = mqs[mq].matches;...
@callback ScoppedCallback @param {this} scope @return {any} @param {ScoppedCallback} cb @return {this}
execute
javascript
juliangarnier/anime
lib/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/lib/anime.esm.js
MIT
add(a1, a2) { if (isFnc(a1)) { const constructor = /** @type {contructorCallback} */(a1); this.constructors.push(constructor); this.execute(() => { const revertConstructor = constructor(this); if (revertConstructor) { this.revertConstructors.push(revertConstructor); ...
@callback contructorCallback @param {this} self @overload @param {String} a1 @param {ScopeMethod} a2 @return {this} @overload @param {contructorCallback} a1 @return {this} @param {String|contructorCallback} a1 @param {ScopeMethod} [a2]
add
javascript
juliangarnier/anime
lib/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/lib/anime.esm.js
MIT
convertValueToPx = ($el, v, size, under, over) => { const clampMin = v === 'min'; const clampMax = v === 'max'; const value = v === 'top' || v === 'left' || v === 'start' || clampMin ? 0 : v === 'bottom' || v === 'right' || v === 'end' || clampMax ? '100%' : v === 'center' ? '50%' ...
@param {HTMLElement} $el @param {Number|string} v @param {Number} size @param {Number} [under] @param {Number} [over] @return {Number}
convertValueToPx
javascript
juliangarnier/anime
lib/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/lib/anime.esm.js
MIT
parseBoundValue = ($el, v, size, under, over) => { /** @type {Number} */ let value; if (isStr(v)) { const matchedOperator = relativeValuesExecRgx.exec(/** @type {String} */(v)); if (matchedOperator) { const splitter = matchedOperator[0]; const operator = splitter[0]; const splitted = /**...
@param {HTMLElement} $el @param {ScrollThresholdValue} v @param {Number} size @param {Number} [under] @param {Number} [over] @return {Number}
parseBoundValue
javascript
juliangarnier/anime
lib/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/lib/anime.esm.js
MIT
updateBounds() { if (this._debug) { this.removeDebug(); } let stickys; const $target = this.target; const container = this.container; const isHori = this.horizontal; const linked = this.linked; let linkedTime; let $el = $target; let offsetX = 0; let offsetY = 0; /**...
@param {String} p @param {Number} l @param {Number} t @param {Number} w @param {Number} h @return {String}
updateBounds
javascript
juliangarnier/anime
lib/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/lib/anime.esm.js
MIT
stagger = (val, params = {}) => { let values = []; let maxValue = 0; const from = params.from; const reversed = params.reversed; const ease = params.ease; const hasEasing = !isUnd(ease); const hasSpring = hasEasing && !isUnd(/** @type {Spring} */(ease).ease); const staggerEase = hasSpring ? /** @type {S...
@param {Number|String|[Number|String,Number|String]} val @param {StaggerParameters} params @return {StaggerFunction}
stagger
javascript
juliangarnier/anime
lib/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/lib/anime.esm.js
MIT
function createDrawableProxy($el, start, end) { const strokeLineCap = getComputedStyle($el).strokeLinecap; const pathLength = 100000; let currentCap = strokeLineCap; const proxy = new Proxy($el, { get(target, property) { const value = target[property]; if (property === proxyTargetSymbol) return ...
@param {SVGGeometryElement} $el @param {Number} start @param {Number} end @return {Proxy}
createDrawableProxy
javascript
juliangarnier/anime
tests/playground/assets/js/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/tests/playground/assets/js/anime.esm.js
MIT
createDrawable = (selector, start = 0, end = 0) => { const els = /** @type {Array.<Proxy>} */((/** @type {unknown} */(parseTargets(selector)))); els.forEach(($el, i) => els[i] = createDrawableProxy(/** @type {SVGGeometryElement} */(/** @type {unknown} */($el)), start, end)); return els; }
@param {TargetsParam} selector @param {Number} [start=0] @param {Number} [end=0] @return {Array.<Proxy>}
createDrawable
javascript
juliangarnier/anime
tests/playground/assets/js/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/tests/playground/assets/js/anime.esm.js
MIT
revert() { tick(this, 0, 1, 0, tickModes.FORCE); // this.cancel(); return this.cancel(); }
Cancel the timer by seeking it back to 0 and reverting the attached scroller if necessary @return {this}
revert
javascript
juliangarnier/anime
tests/playground/assets/js/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/tests/playground/assets/js/anime.esm.js
MIT
setTargetValues = (targets, parameters) => { if (isUnd(parameters)) return; parameters.duration = minValue; // Do not overrides currently active tweens by default parameters.composition = setValue(parameters.composition, compositionTypes.none); // Skip init() and force rendering by playing the animation ret...
@param {TargetsParam} targets @param {AnimationParams} parameters @return {Animation}
setTargetValues
javascript
juliangarnier/anime
tests/playground/assets/js/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/tests/playground/assets/js/anime.esm.js
MIT
removeTargetsFromAnimation = (targetsArray, animation, propertyName) => { let tweensMatchesTargets = false; forEachChildren(animation, (/**@type {Tween} */tween) => { const tweenTarget = tween.target; if (targetsArray.includes(tweenTarget)) { const tweenName = tween.property; const tweenType = t...
@param {TargetsArray} targetsArray @param {Animation} animation @param {String} [propertyName] @return {Boolean}
removeTargetsFromAnimation
javascript
juliangarnier/anime
tests/playground/assets/js/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/tests/playground/assets/js/anime.esm.js
MIT
remove = (targets, renderable, propertyName) => { const targetsArray = parseTargets(targets); const parent = renderable ? renderable : engine; let removeMatches; if (parent._hasChildren) { forEachChildren(parent, (/** @type {Renderable} */child) => { if (!child._hasChildren) { removeMatches = ...
@param {TargetsParam} targets @param {Renderable} [renderable] @param {String} [propertyName] @return {TargetsArray}
remove
javascript
juliangarnier/anime
tests/playground/assets/js/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/tests/playground/assets/js/anime.esm.js
MIT
function addTlChild(childParams, tl, parsedTLPosition, targets, index, length) { // Offset the tl position with -minValue for 0 duration animations or .set() calls in order to align their end value with the defined position const TLPosition = isNum(childParams.duration) && /** @type {Number} */(childParams.duration...
@overload @param {TimerParams} childParams @param {Timeline} tl @param {Number} parsedTLPosition @return {Timeline} @overload @param {AnimationParams} childParams @param {Timeline} tl @param {Number} parsedTLPosition @param {TargetsParam} targets @param {Number} [index] @param {Number} [length] @return {Timel...
addTlChild
javascript
juliangarnier/anime
tests/playground/assets/js/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/tests/playground/assets/js/anime.esm.js
MIT
add(a1, a2, a3) { const isAnim = isObj(a2); const isTimer = isObj(a1); const isFunc = isFnc(a1); if (isAnim || isTimer || isFunc) { this._hasChildren = true; if (isAnim) { const childParams = /** @type {AnimationParams} */(a2); // Check for function for children stagger posit...
@overload @param {TargetsParam} a1 @param {AnimationParams} a2 @param {TimePosition} [a3] @return {this} @overload @param {TimerParams} a1 @param {TimePosition} [a2] @return {this} @overload @param {String} a1 @param {TimePosition} [a2] @return {this} @overload @param {TimerCallback} a1 @param {TimePosition} [a2] @r...
add
javascript
juliangarnier/anime
tests/playground/assets/js/anime.esm.js
https://github.com/juliangarnier/anime/blob/master/tests/playground/assets/js/anime.esm.js
MIT
constructor(request, response, jobs, config) { const tokens = Object.keys(jobs); this.config = config; this.plugins = config.plugins; this.error = null; this.statusCode = 200; // An object that all of the contexts will inherit from... one per instance. this.baseContext = { request, ...
The BatchManager is a class that is instantiated once per batch, and holds a lot of the key data needed throughout the life of the request. This ends up cleaning up some of the management needed for plugin lifecycle, and the handling of rendering multiple jobs in a batch. @param {express.Request} req @param {express.R...
constructor
javascript
airbnb/hypernova
src/utils/BatchManager.js
https://github.com/airbnb/hypernova/blob/master/src/utils/BatchManager.js
MIT
getRequestContext(plugin, token) { return { ...this.baseContext, ...this.jobContexts[token], ...this.pluginContexts.get(plugin), }; }
Returns a context object scoped to a specific plugin and job (based on the plugin and job token passed in).
getRequestContext
javascript
airbnb/hypernova
src/utils/BatchManager.js
https://github.com/airbnb/hypernova/blob/master/src/utils/BatchManager.js
MIT
getBatchContext(plugin) { return { ...this.baseContext, ...this.batchContext, ...this.pluginContexts.get(plugin), }; }
Returns a context object scoped to a specific plugin and batch.
getBatchContext
javascript
airbnb/hypernova
src/utils/BatchManager.js
https://github.com/airbnb/hypernova/blob/master/src/utils/BatchManager.js
MIT
render(token) { const start = now(); const context = this.jobContexts[token]; const { name } = context; const { getComponent } = this.config; const result = getComponent(name, context); return Promise.resolve(result).then((renderFn) => { // ensure that we have this component registered ...
Renders a specific job (from a job token). The end result is applied to the corresponding job context. Additionally, duration is calculated.
render
javascript
airbnb/hypernova
src/utils/BatchManager.js
https://github.com/airbnb/hypernova/blob/master/src/utils/BatchManager.js
MIT
function hasMethod(name) { return (obj) => typeof obj[name] === 'function'; }
Returns a predicate function to filter objects based on whether a method of the provided name is present. @param {String} name - the method name to find @returns {Function} - the resulting predicate function
hasMethod
javascript
airbnb/hypernova
src/utils/lifecycle.js
https://github.com/airbnb/hypernova/blob/master/src/utils/lifecycle.js
MIT
function raceTo(promise, ms, msg) { let timeout; return Promise.race([ promise, new Promise((resolve) => { timeout = setTimeout(() => resolve(PROMISE_TIMEOUT), ms); }), ]).then((res) => { if (res === PROMISE_TIMEOUT) logger.info(msg, { timeout: ms }); if (timeout) clearTimeout(timeout);...
Creates a promise that resolves at the specified number of ms. @param ms @returns {Promise}
raceTo
javascript
airbnb/hypernova
src/utils/lifecycle.js
https://github.com/airbnb/hypernova/blob/master/src/utils/lifecycle.js
MIT
function runAppLifecycle(lifecycle, plugins, config, error, ...args) { try { const promise = Promise.all( plugins.filter(hasMethod(lifecycle)).map((plugin) => plugin[lifecycle](config, error, ...args)), ); return raceTo( promise, MAX_LIFECYCLE_EXECUTION_TIME_IN_MS, `App lifecycle ...
Iterates through the plugins and calls the specified asynchronous lifecycle event, returning a promise that resolves when they all are completed, or rejects if one of them fails. The third `config` param gets passed into the lifecycle methods as the first argument. In this case, the app lifecycle events expect the con...
runAppLifecycle
javascript
airbnb/hypernova
src/utils/lifecycle.js
https://github.com/airbnb/hypernova/blob/master/src/utils/lifecycle.js
MIT
function runLifecycle(lifecycle, plugins, manager, token) { try { const promise = Promise.all( plugins .filter(hasMethod(lifecycle)) .map((plugin) => plugin[lifecycle](manager.contextFor(plugin, token))), ); return raceTo( promise, MAX_LIFECYCLE_EXECUTION_TIME_IN_MS, ...
Iterates through the plugins and calls the specified asynchronous lifecycle event, returning a promise that resolves when they are all completed, or rejects if one of them fails. This is meant to be used on lifecycle events both at the batch level and the job level. The passed in BatchManager is used to get the corres...
runLifecycle
javascript
airbnb/hypernova
src/utils/lifecycle.js
https://github.com/airbnb/hypernova/blob/master/src/utils/lifecycle.js
MIT
function runLifecycleSync(lifecycle, plugins, manager, token) { plugins .filter(hasMethod(lifecycle)) .forEach((plugin) => plugin[lifecycle](manager.contextFor(plugin, token))); }
Iterates through the plugins and calls the specified synchronous lifecycle event (when present). Passes in the appropriate context object for the plugin/job. This function is currently being used for `afterRender` and `beforeRender`. @param {String} lifecycle @param {Array<HypernovaPlugin>} plugins @param {BatchManag...
runLifecycleSync
javascript
airbnb/hypernova
src/utils/lifecycle.js
https://github.com/airbnb/hypernova/blob/master/src/utils/lifecycle.js
MIT
function errorSync(err, plugins, manager, token) { plugins .filter(hasMethod('onError')) .forEach((plugin) => plugin.onError(manager.contextFor(plugin, token), err)); }
Iterates through the plugins and calls the specified synchronous `onError` handler (when present). Passes in the appropriate context object, as well as the error. @param {Error} err @param {Array<HypernovaPlugin>} plugins @param {BatchManager} manager @param {String} [token]
errorSync
javascript
airbnb/hypernova
src/utils/lifecycle.js
https://github.com/airbnb/hypernova/blob/master/src/utils/lifecycle.js
MIT
function processJob(token, plugins, manager) { return ( // jobStart runLifecycle('jobStart', plugins, manager, token) .then(() => { // beforeRender runLifecycleSync('beforeRender', plugins, manager, token); // render return manager.render(token); }) // jobEn...
Runs through the job-level lifecycle events of the job based on the provided token. This includes the actual rendering of the job. Returns a promise resolving when the job completes. @param {String} token @param {Array<HypernovaPlugin>} plugins @param {BatchManager} manager @returns {Promise}
processJob
javascript
airbnb/hypernova
src/utils/lifecycle.js
https://github.com/airbnb/hypernova/blob/master/src/utils/lifecycle.js
MIT
function processBatch(jobs, plugins, manager, concurrent) { return ( // batchStart runLifecycle('batchStart', plugins, manager) // for each job, processJob .then(() => { if (concurrent) { return processJobsConcurrently(jobs, plugins, manager); } return processJo...
Runs through the batch-level lifecycle events of a batch. This includes the processing of each individual job. Returns a promise resolving when all jobs in the batch complete. @param jobs @param {Array<HypernovaPlugin>} plugins @param {BatchManager} manager @returns {Promise}
processBatch
javascript
airbnb/hypernova
src/utils/lifecycle.js
https://github.com/airbnb/hypernova/blob/master/src/utils/lifecycle.js
MIT
function callbackWrapper(error, applicationCache) { if (error) { console.error(error); callback(null); return; } callback(applicationCache); }
@param {string} frameId @param {function(Object)} callback
callbackWrapper
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/ApplicationCacheModel.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ApplicationCacheModel.js
MIT
function evalCallback(styleSheets) { if (progressMonitor.canceled) return; if (!styleSheets.length) return callback(null); var pseudoSelectorRegexp = /:hover|:link|:active|:visited|:focus|:before|:after/; var selectors = []; v...
The reported CSS rule size is incorrect (parsed != original in WebKit), so use percentages instead, which gives a better approximation. @constructor @extends {WebInspector.AuditRule}
evalCallback
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/AuditRules.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/AuditRules.js
MIT
function binarySearch(object, array, comparator) { var first = 0; var last = array.length - 1; while (first <= last) { var mid = (first + last) >> 1; var c = comparator(object, array[mid]); if (c > 0) first = mid + 1; else if (c < 0) last = mid - 1; ...
@param {*} object @param {Array.<*>} array @param {function(*, *)} comparator
binarySearch
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/BinarySearch.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/BinarySearch.js
MIT
function insertionIndexForObjectInListSortedByFunction(anObject, aList, aFunction) { var index = binarySearch(anObject, aList, aFunction); if (index < 0) // See binarySearch implementation. return -index - 1; else { // Return the first occurance of an item in the list. while ...
@param {*} anObject @param {Array.<*>} aList @param {function(*, *)} aFunction
insertionIndexForObjectInListSortedByFunction
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/BinarySearch.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/BinarySearch.js
MIT
function didSetBreakpoint(breakpointId, locations) { if (breakpoint === this._breakpoint(breakpoint.uiSourceCodeId, breakpoint.lineNumber)) { if (!breakpointId) { if (breakpoint.uiBreakpoint) this._removeBreakpointFromUI(breakpoint.uiBreakp...
@this {WebInspector.BreakpointManager} @param {DebuggerAgent.BreakpointId} breakpointId @param {Array.<DebuggerAgent.Location>} locations
didSetBreakpoint
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/BreakpointManager.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/BreakpointManager.js
MIT
function serializePersistent(breakpoint) { if (breakpoint.persistent) serializedBreakpoints.push(breakpoint.serialize()); }
@this {WebInspector.BreakpointManager} @param {WebInspector.Breakpoint} breakpoint
serializePersistent
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/BreakpointManager.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/BreakpointManager.js
MIT
function hueToRGB(p, q, h) { if (h < 0) h += 1; else if (h > 1) h -= 1; if ((h * 6) < 1) return p + (q - p) * h * 6; else if ((h * 2) < 1) return q; else if ((h * 3) < 2) return p...
@param {Array.<number>} hsl @return {Array.<number>}
hueToRGB
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/Color.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/Color.js
MIT
get message() { // force message formatting var formattedMessage = this.formattedMessage; return this._message; }
@constructor @extends {WebInspector.ConsoleMessage} @param {string} source @param {string} level @param {string} message @param {WebInspector.DebuggerPresentationModel.Linkifier} linkifier @param {string=} type @param {string=} url @param {number=} line @param {number=} repeatCount @param {Array.<RuntimeAgent.RemoteOb...
message
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/ConsoleMessage.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ConsoleMessage.js
MIT
function createDividerElement() { var dividerElement = document.createElement("div"); dividerElement.addStyleClass("scope-bar-divider"); this._filterBarElement.appendChild(dividerElement); }
@extends {WebInspector.View} @constructor @param {boolean} hideContextSelector
createDividerElement
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/ConsoleView.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ConsoleView.js
MIT
function evalCallback(error, result, wasThrown) { if (error) { console.error(error); callback(null, false); return; } if (returnByValue) callback(null, wasThrown, wasThrown ? null : result); else ...
@param {string} expression @param {string} objectGroup @param {boolean} includeCommandLineAPI @param {boolean} doNotPauseOnExceptions @param {boolean} returnByValue @param {function(?WebInspector.RemoteObject, boolean, RuntimeAgent.RemoteObject=)} callback
evalCallback
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/ConsoleView.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ConsoleView.js
MIT
function searchCallback(script, searchMatches) { results[script.scriptId] = []; for (var i = 0; i < searchMatches.length; ++i) { var searchMatch = new WebInspector.ContentProvider.SearchMatch(searchMatches[i].lineNumber + script.lineOffset, searchMatches[i].lineContent); ...
@param {WebInspector.Script} script @param {Array.<PageAgent.SearchMatch>} searchMatches
searchCallback
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/ContentProviders.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ContentProviders.js
MIT
function performSearch() { var regex = createSearchRegex(query, caseSensitive, isRegex); var result = []; var lineEndings = this._content.lineEndings(); for (var i = 0; i < lineEndings.length; ++i) { var lineStart = i > 0 ? lineEndings...
@param {string} query @param {boolean} caseSensitive @param {boolean} isRegex @param {function(Array.<WebInspector.ContentProvider.SearchMatch>)} callback
performSearch
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/ContentProviders.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ContentProviders.js
MIT
get selectedCookie() { var node = this._dataGrid.selectedNode; return node ? node.cookie : null; }
@constructor @extends {WebInspector.View} @param {function(PageAgent.Cookie)=} deleteCallback @param {function()=} refreshCallback
selectedCookie
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/CookiesTable.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/CookiesTable.js
MIT
get data() { var data = {}; data.selector = this._data.selector; data.matches = this._data.matchCount; if (this._profileView.showTimeAsPercent.get()) data.time = Number(this._data.timePercent).toFixed(1) + "%"; else data.time = Number.secondsToString(...
@constructor @extends WebInspector.DataGridNode @param {WebInspector.CSSSelectorProfileView} profileView
data
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/CSSSelectorProfileView.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/CSSSelectorProfileView.js
MIT
get statusBarItems() { return [this.percentButton.element]; }
@constructor @extends WebInspector.View @param {CSSAgent.SelectorProfile} profile
statusBarItems
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/CSSSelectorProfileView.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/CSSSelectorProfileView.js
MIT
function callback(userCallback, error, matchedPayload, pseudoPayload, inheritedPayload) { if (error) { if (userCallback) userCallback(null); return; } var result = {}; if (matchedPayload) result....
@param {function(?*)} userCallback @param {?Protocol.Error} error @param {Array.<CSSAgent.CSSRule>=} matchedPayload @param {Array.<CSSAgent.PseudoIdRules>=} pseudoPayload @param {Array.<CSSAgent.InheritedStyleEntry>=} inheritedPayload
callback
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/CSSStyleModel.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/CSSStyleModel.js
MIT
function callback(userCallback, error, inlinePayload, attributesStylePayload) { if (error || !inlinePayload) userCallback(null, null); else userCallback(WebInspector.CSSStyleDeclaration.parsePayload(inlinePayload), attributesStylePayload ? WebInspector.CSS...
@param {function(?WebInspector.CSSStyleDeclaration, ?WebInspector.CSSStyleDeclaration)} userCallback
callback
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/CSSStyleModel.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/CSSStyleModel.js
MIT
function checkAffectsCallback(nodeId, successCallback, rulePayload, selectedNodeIds) { if (!selectedNodeIds) return; var doesAffectSelectedNode = (selectedNodeIds.indexOf(nodeId) >= 0); var rule = WebInspector.CSSRule.parsePayload(rulePayload); suc...
@param {DOMAgent.NodeId} nodeId @param {function(WebInspector.CSSRule, boolean)} successCallback @param {*} rulePayload @param {?Array.<DOMAgent.NodeId>} selectedNodeIds
checkAffectsCallback
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/CSSStyleModel.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/CSSStyleModel.js
MIT
function callback(nodeId, successCallback, failureCallback, newSelector, error, rulePayload) { this._pendingCommandsMajorState.pop(); if (error) failureCallback(); else { WebInspector.domAgent.markUndoableState(); var ownerDocum...
@param {DOMAgent.NodeId} nodeId @param {function(WebInspector.CSSRule, boolean)} successCallback @param {function()} failureCallback @param {?Protocol.Error} error @param {string} newSelector @param {*=} rulePayload
callback
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/CSSStyleModel.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/CSSStyleModel.js
MIT
function checkAffectsCallback(nodeId, successCallback, rulePayload, selectedNodeIds) { if (!selectedNodeIds) return; var doesAffectSelectedNode = (selectedNodeIds.indexOf(nodeId) >= 0); var rule = WebInspector.CSSRule.parsePayload(rulePayload); su...
@param {DOMAgent.NodeId} nodeId @param {string} selector @param {function(WebInspector.CSSRule, boolean)} successCallback @param {function()} failureCallback
checkAffectsCallback
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/CSSStyleModel.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/CSSStyleModel.js
MIT
function callback(successCallback, failureCallback, selector, error, rulePayload) { this._pendingCommandsMajorState.pop(); if (error) { // Invalid syntax for a selector failureCallback(); } else { WebInspector.domAgent.markUndoa...
@param {function(WebInspector.CSSRule, boolean)} successCallback @param {function()} failureCallback @param {string} selector @param {?Protocol.Error} error @param {?CSSAgent.CSSRule} rulePayload
callback
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/CSSStyleModel.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/CSSStyleModel.js
MIT
function enabledCallback(style) { if (userCallback) userCallback(style); }
Replaces "propertyName: propertyValue [!important];" in the stylesheet by an arbitrary propertyText. @param {string} propertyText @param {boolean} majorChange @param {boolean} overwrite @param {Function=} userCallback
enabledCallback
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/CSSStyleModel.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/CSSStyleModel.js
MIT
function callback(error, stylePayload) { WebInspector.cssModel._pendingCommandsMajorState.pop(); if (error) { if (userCallback) userCallback(null); return; } WebInspector.domAgent.markUndoableState(); ...
@param {string} newValue @param {boolean} majorChange @param {boolean} overwrite @param {Function=} userCallback
callback
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/CSSStyleModel.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/CSSStyleModel.js
MIT
function callback(error, success, transactionId) { if (error) { onError(error); return; } if (!success) { onError(WebInspector.UIString("Database not found.")); return; } WebInspector.Data...
@param {string} query @param {function(Array.<string>, Array.<*>)} onSuccess @param {function(DatabaseAgent.Error)} onError
callback
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/Database.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/Database.js
MIT
function sortDataGrid() { var nodes = dataGrid.children.slice(); var sortColumnIdentifier = dataGrid.sortColumnIdentifier; var sortDirection = dataGrid.sortOrder === "ascending" ? 1 : -1; var columnIsNumeric = true; for (var i = 0; i < nodes.length; i++) { if (is...
@param {Array.<string>} columnNames @param {Array.<string>} values
sortDataGrid
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/DataGrid.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/DataGrid.js
MIT
get element() { if (this._element) return this._element; if (!this.dataGrid) return null; this._element = document.createElement("tr"); this._element._dataGridNode = this; if (this.hasChildren) this._element.addStyleClass("parent"); ...
@constructor @extends {WebInspector.Object} @param {boolean=} hasChildren
element
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/DataGrid.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/DataGrid.js
MIT
function callback(error, result) { this._canSetScriptSource = result; }
@constructor @extends {DebuggerAgent.Location} @param {WebInspector.Script} script @param {number} lineNumber @param {number} columnNumber
callback
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/DebuggerModel.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/DebuggerModel.js
MIT
function didSetBreakpoint(error, breakpointId, locations) { if (callback) callback(error ? null : breakpointId, locations); }
@this {WebInspector.DebuggerModel} @param {?Protocol.Error} error @param {DebuggerAgent.BreakpointId} breakpointId @param {Array.<DebuggerAgent.Location>=} locations
didSetBreakpoint
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/DebuggerModel.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/DebuggerModel.js
MIT
function didSetBreakpoint(error, breakpointId, actualLocation) { if (callback) callback(error ? null : breakpointId, [actualLocation]); }
@this {WebInspector.DebuggerModel} @param {?Protocol.Error} error @param {DebuggerAgent.BreakpointId} breakpointId @param {DebuggerAgent.Location} actualLocation
didSetBreakpoint
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/DebuggerModel.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/DebuggerModel.js
MIT
function didEditScriptSource(error) { callback(error); if (error) return; var resource = WebInspector.resourceForURL(script.sourceURL); if (resource) resource.addRevision(newSource); uiSourceCode.contentChanged(newSour...
@this {WebInspector.DebuggerPresentationModel} @param {?Protocol.Error} error
didEditScriptSource
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/DebuggerPresentationModel.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/DebuggerPresentationModel.js
MIT
function updateLocation(uiLocation) { var presentationMessage = new WebInspector.PresentationConsoleMessage(uiLocation.uiSourceCode, uiLocation.lineNumber, message); this._presentationConsoleMessages.push(presentationMessage); this.dispatchEventToListeners(WebInspector.Debugg...
@param {WebInspector.ConsoleMessage} message @param {DebuggerAgent.Location} rawLocation
updateLocation
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/DebuggerPresentationModel.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/DebuggerPresentationModel.js
MIT
get paused() { return !!WebInspector.debuggerModel.debuggerPausedDetails; }
@param {WebInspector.UISourceCode} uiSourceCode @param {number} lineNumber @return {WebInspector.UIBreakpoint|undefined}
paused
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/DebuggerPresentationModel.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/DebuggerPresentationModel.js
MIT
function didEvaluate(result, wasThrown) { if (returnByValue) callback(null, wasThrown, wasThrown ? null : result); else callback(WebInspector.RemoteObject.fromPayload(result), wasThrown); if (objectGroup === "console") this.dis...
@param {?RuntimeAgent.RemoteObject} result @param {boolean} wasThrown
didEvaluate
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/DebuggerPresentationModel.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/DebuggerPresentationModel.js
MIT
function didEvaluateOnCallFrame(error, result, wasThrown) { if (error) { console.error(error); callback(null, false); return; } callback(result, wasThrown); }
@this {WebInspector.PresentationCallFrame} @param {?Protocol.Error} error @param {RuntimeAgent.RemoteObject} result @param {boolean=} wasThrown
didEvaluateOnCallFrame
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/DebuggerPresentationModel.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/DebuggerPresentationModel.js
MIT
function callback(error) { if (userCallback) userCallback(error); if (!error) this._presentationModel._updateBreakpointsAfterLiveEdit(uiSourceCode, oldContent || "", content); }
@this {WebInspector.DebuggerPresentationModelResourceBinding} @param {?string} error
callback
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/DebuggerPresentationModel.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/DebuggerPresentationModel.js
MIT
function mycallback(error, success) { if (!error) { delete this._attributesMap[name]; for (var i = 0; i < this._attributes.length; ++i) { if (this._attributes[i].name === name) { this._attributes.splice(i, 1); ...
@param {string} name @param {function(?Protocol.Error)=} callback
mycallback
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/DOMAgent.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/DOMAgent.js
MIT
function callback(nodeId, error, attributes) { if (error) { console.error("Error during DOMAgent operation: " + error); return; } var node = this._idToDOMNode[nodeId]; if (node) { node._setAttributesPayload(attribute...
@this {WebInspector.DOMAgent} @param {DOMAgent.NodeId} nodeId @param {?Protocol.Error} error @param {Array.<string>} attributes
callback
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/DOMAgent.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/DOMAgent.js
MIT
function mycallback(error, nodeIds) { if (error) { console.error(error); callback(null); return; } if (nodeIds.length != 1) return; callback(this._idToDOMNode[node...
@param {?Protocol.Error} error @param {Array.<number>} nodeIds
mycallback
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/DOMAgent.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/DOMAgent.js
MIT
function selectNode(candidateFocusNode) { if (!candidateFocusNode) candidateFocusNode = inspectedRootDocument.body || inspectedRootDocument.documentElement; if (!candidateFocusNode) return; this.selectDOMNode(candidateFocusNode); ...
@this {WebInspector.ElementsPanel} @param {WebInspector.DOMNode=} candidateFocusNode
selectNode
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/ElementsPanel.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ElementsPanel.js
MIT
function updateEntryShow(entry) { switch (entry.type) { case "added": entry.parent.insertBefore(entry.node, entry.nextSibling); break; case "changed": entry.node.textContent = entry.newText; ...
@constructor @extends {TreeElement} @param {boolean=} elementCloseTag
updateEntryShow
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/ElementsTreeOutline.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ElementsTreeOutline.js
MIT
get toolbarItemLabel() { return this._toolbarItemLabel; }
@constructor @extends {WebInspector.Panel} @param {string} id @param {string} label @param {string} iconURL
toolbarItemLabel
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/ExtensionPanel.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ExtensionPanel.js
MIT
function nextItem(itemElement, isPageScroll, forward) { var scrollItemsLeft = isPageScroll && this._rowsPerViewport ? this._rowsPerViewport : 1; var candidate = itemElement; var lastVisibleCandidate = candidate; do { candidate = forward ? candidate...
@param {string=} query @param {boolean=} isGlobal
nextItem
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/FilteredItemSelectionDialog.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/FilteredItemSelectionDialog.js
MIT
function showJavaScriptOutlineDialog() { var view = viewGetter(); if (view) WebInspector.JavaScriptOutlineDialog._show(panel, view); }
@param {{chunk, index, total, id}} data
showJavaScriptOutlineDialog
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/FilteredItemSelectionDialog.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/FilteredItemSelectionDialog.js
MIT
function filterOutEmptyURLs(uiSourceCode) { return !!uiSourceCode.fileName; }
@constructor @implements {WebInspector.SelectionDialogContentProvider} @param {WebInspector.ScriptsPanel} panel @param {WebInspector.DebuggerPresentationModel} presentationModel
filterOutEmptyURLs
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/FilteredItemSelectionDialog.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/FilteredItemSelectionDialog.js
MIT
function showOpenResourceDialog() { WebInspector.OpenResourceDialog._show(panel, presentationModel, relativeToElement); }
@param {WebInspector.ScriptsPanel} panel @param {WebInspector.DebuggerPresentationModel} presentationModel
showOpenResourceDialog
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/FilteredItemSelectionDialog.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/FilteredItemSelectionDialog.js
MIT
function innerCallback(dataEntries, hasMore) { var entries = []; for (var i = 0; i < dataEntries.length; ++i) { var key = WebInspector.IndexedDBModel.idbKeyFromKey(dataEntries[i].key); var primaryKey = WebInspector.IndexedDBModel.idbKeyFromKey(dataEntries[...
@param {Array.<IndexedDBAgent.DataEntry>} dataEntries @param {boolean} hasMore
innerCallback
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/IndexedDBModel.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/IndexedDBModel.js
MIT
function innerCallback(error) { if (error) { console.error("IndexedDBAgent error: " + error); return; } }
@param {string} frameId @param {function(IndexedDBAgent.SecurityOriginWithDatabaseNames)} callback
innerCallback
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/IndexedDBModel.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/IndexedDBModel.js
MIT
function callback(entries, hasMore) { this.clear(); this._entries = entries; for (var i = 0; i < entries.length; ++i) { var data = {}; data["number"] = i + skipCount; data["key"] = entries[i].key; data["primaryKe...
@param {Array.<WebInspector.IndexedDBModel.Entry>} entries @param {boolean} hasMore
callback
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/IndexedDBViews.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/IndexedDBViews.js
MIT
function isLogAvailable() { return WebInspector.ConsoleMessage && WebInspector.RemoteObject && self.console; }
@param {string=} messageLevel @param {boolean=} showConsole
isLogAvailable
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/inspector.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/inspector.js
MIT
get uiSourceCode() { return this._uiSourceCode; }
@constructor @extends {WebInspector.SourceFrame} @param {WebInspector.ScriptsPanel} scriptsPanel @param {WebInspector.DebuggerPresentationModel} model @param {WebInspector.UISourceCode} uiSourceCode
uiSourceCode
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/JavaScriptSourceFrame.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/JavaScriptSourceFrame.js
MIT
function getDocumentCount(entry) { return entry.documentCount; }
@param {WebInspector.TimelinePanel} timelinePanel @param {number} sidebarWidth @constructor
getDocumentCount
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/MemoryStatistics.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/MemoryStatistics.js
MIT
function callbackWrapper(error, content, contentEncoded) { if (error) callback(null, false); else callback(content, content && contentEncoded); }
@param {WebInspector.Resource} resource @param {function(?string, boolean)} callback
callbackWrapper
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/NetworkManager.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/NetworkManager.js
MIT
function showObjectPopover(result, wasThrown, anchorOverride) { if (popover.disposed) return; if (wasThrown) { this.hidePopover(); return; } var anchorElement = anchorOverride || element; var popoverCon...
@param {WebInspector.RemoteObject} result @param {boolean} wasThrown @param {Element=} anchorOverride
showObjectPopover
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/ObjectPopoverHelper.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ObjectPopoverHelper.js
MIT
function callback(properties) { if (!properties) return; this.updateProperties(properties); }
@constructor @extends {WebInspector.PropertiesSection} @param {WebInspector.RemoteObject=} object @param {string=} title @param {string=} subtitle @param {string=} emptyPlaceholder @param {boolean=} ignoreHasOwnProperty @param {Array.<WebInspector.RemoteObjectProperty>=} extraProperties @param {function()=} treeElement...
callback
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/ObjectPropertiesSection.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ObjectPropertiesSection.js
MIT
function callback(properties) { this.removeChildren(); if (!properties) return; properties.sort(WebInspector.ObjectPropertiesSection.CompareProperties); for (var i = 0; i < properties.length; ++i) { if (this.treeOutline.section.ski...
@constructor @extends {TreeElement} @param {WebInspector.RemoteObjectProperty} property
callback
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/ObjectPropertiesSection.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ObjectPropertiesSection.js
MIT
get visible() { return this._visible; }
@param {number=} preferredWidth @param {number=} preferredHeight
visible
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/Popover.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/Popover.js
MIT
function doHide() { self._hidePopover(); delete self._hidePopoverTimer; }
@constructor @param {Element} panelElement @param {function(Element, Event):Element|undefined} getAnchor @param {function(Element, WebInspector.Popover):undefined} showPopover @param {function()=} onHide @param {boolean=} disableOnClick
doHide
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/Popover.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/Popover.js
MIT
function didCreateSourceMapping(sourceMapping) { this._updatingSourceMapping = false; if (sourceMapping && !this._updateNeeded) this._saveSourceMapping(sourceMapping); else this._updateSourceMapping(); }
@this {WebInspector.RawSourceCode} @param {WebInspector.RawSourceCode.SourceMapping} sourceMapping
didCreateSourceMapping
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/RawSourceCode.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/RawSourceCode.js
MIT
function didRequestContent(mimeType, content) { /** * @this {WebInspector.RawSourceCode} * @param {string} formattedContent * @param {WebInspector.FormattedSourceMapping} mapping */ function didFormatContent(formattedContent, mapping) ...
@this {WebInspector.RawSourceCode} @param {string} mimeType @param {string} content
didRequestContent
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/RawSourceCode.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/RawSourceCode.js
MIT
function didFormatContent(formattedContent, mapping) { var contentProvider = new WebInspector.StaticContentProvider(mimeType, formattedContent) var uiSourceCode = this._createUISourceCode("deobfuscated:" + this.url, this.url, contentProvider); var sourceMappin...
@this {WebInspector.RawSourceCode} @param {string} formattedContent @param {WebInspector.FormattedSourceMapping} mapping
didFormatContent
javascript
node-pinus/pinus
tools/pinus-admin-web/public/front/RawSourceCode.js
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/RawSourceCode.js
MIT