id
int32
0
58k
repo
stringlengths
5
67
path
stringlengths
4
116
func_name
stringlengths
0
58
original_string
stringlengths
52
373k
language
stringclasses
1 value
code
stringlengths
52
373k
code_tokens
list
docstring
stringlengths
4
11.8k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
86
226
23,500
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function (options, isX, redraw, animation) { var key = isX ? 'xAxis' : 'yAxis', chartOptions = this.options, axis; /*jslint unused: false*/ axis = new Axis(this, merge(options, { index: this[key].length, isX: isX })); /*jslint unused: true*/ // Push the new axis options to the chart options ...
javascript
function (options, isX, redraw, animation) { var key = isX ? 'xAxis' : 'yAxis', chartOptions = this.options, axis; /*jslint unused: false*/ axis = new Axis(this, merge(options, { index: this[key].length, isX: isX })); /*jslint unused: true*/ // Push the new axis options to the chart options ...
[ "function", "(", "options", ",", "isX", ",", "redraw", ",", "animation", ")", "{", "var", "key", "=", "isX", "?", "'xAxis'", ":", "'yAxis'", ",", "chartOptions", "=", "this", ".", "options", ",", "axis", ";", "/*jslint unused: false*/", "axis", "=", "new...
Add an axis to the chart @param {Object} options The axis option @param {Boolean} isX Whether it is an X axis or a value axis
[ "Add", "an", "axis", "to", "the", "chart" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L10674-L10693
23,501
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function (plotX, plotY, inverted) { var x = inverted ? plotY : plotX, y = inverted ? plotX : plotY; return x >= 0 && x <= this.plotWidth && y >= 0 && y <= this.plotHeight; }
javascript
function (plotX, plotY, inverted) { var x = inverted ? plotY : plotX, y = inverted ? plotX : plotY; return x >= 0 && x <= this.plotWidth && y >= 0 && y <= this.plotHeight; }
[ "function", "(", "plotX", ",", "plotY", ",", "inverted", ")", "{", "var", "x", "=", "inverted", "?", "plotY", ":", "plotX", ",", "y", "=", "inverted", "?", "plotX", ":", "plotY", ";", "return", "x", ">=", "0", "&&", "x", "<=", "this", ".", "plotW...
Check whether a given point is within the plot area @param {Number} plotX Pixel x relative to the plot area @param {Number} plotY Pixel y relative to the plot area @param {Boolean} inverted Whether the chart is inverted
[ "Check", "whether", "a", "given", "point", "is", "within", "the", "plot", "area" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L10702-L10710
23,502
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function (str) { var chart = this, options = chart.options, loadingDiv = chart.loadingDiv; var loadingOptions = options.loading; // create the layer at the first call if (!loadingDiv) { chart.loadingDiv = loadingDiv = createElement(DIV, { className: PREFIX + 'loading' }, extend(loadingOptions....
javascript
function (str) { var chart = this, options = chart.options, loadingDiv = chart.loadingDiv; var loadingOptions = options.loading; // create the layer at the first call if (!loadingDiv) { chart.loadingDiv = loadingDiv = createElement(DIV, { className: PREFIX + 'loading' }, extend(loadingOptions....
[ "function", "(", "str", ")", "{", "var", "chart", "=", "this", ",", "options", "=", "chart", ".", "options", ",", "loadingDiv", "=", "chart", ".", "loadingDiv", ";", "var", "loadingOptions", "=", "options", ".", "loading", ";", "// create the layer at the fi...
Dim the chart and show a loading text or symbol @param {String} str An optional text to show in the loading label instead of the default one
[ "Dim", "the", "chart", "and", "show", "a", "loading", "text", "or", "symbol" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L10884-L10929
23,503
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { var options = this.options, loadingDiv = this.loadingDiv; if (loadingDiv) { animate(loadingDiv, { opacity: 0 }, { duration: options.loading.hideDuration || 100, complete: function () { css(loadingDiv, { display: NONE }); } }); } this.loadingShown = false; }
javascript
function () { var options = this.options, loadingDiv = this.loadingDiv; if (loadingDiv) { animate(loadingDiv, { opacity: 0 }, { duration: options.loading.hideDuration || 100, complete: function () { css(loadingDiv, { display: NONE }); } }); } this.loadingShown = false; }
[ "function", "(", ")", "{", "var", "options", "=", "this", ".", "options", ",", "loadingDiv", "=", "this", ".", "loadingDiv", ";", "if", "(", "loadingDiv", ")", "{", "animate", "(", "loadingDiv", ",", "{", "opacity", ":", "0", "}", ",", "{", "duration...
Hide the loading layer
[ "Hide", "the", "loading", "layer" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L10934-L10949
23,504
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { var points = []; each(this.series, function (serie) { points = points.concat(grep(serie.points || [], function (point) { return point.selected; })); }); return points; }
javascript
function () { var points = []; each(this.series, function (serie) { points = points.concat(grep(serie.points || [], function (point) { return point.selected; })); }); return points; }
[ "function", "(", ")", "{", "var", "points", "=", "[", "]", ";", "each", "(", "this", ".", "series", ",", "function", "(", "serie", ")", "{", "points", "=", "points", ".", "concat", "(", "grep", "(", "serie", ".", "points", "||", "[", "]", ",", ...
Get the currently selected points from all series
[ "Get", "the", "currently", "selected", "points", "from", "all", "series" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L11025-L11033
23,505
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { var chart = this; // reset stacks for each yAxis each(chart.yAxis, function (axis) { if (axis.stacks && axis.hasVisibleSeries) { axis.oldStacks = axis.stacks; } }); each(chart.series, function (series) { if (series.options.stacking && (series.visible === true || chart.options.char...
javascript
function () { var chart = this; // reset stacks for each yAxis each(chart.yAxis, function (axis) { if (axis.stacks && axis.hasVisibleSeries) { axis.oldStacks = axis.stacks; } }); each(chart.series, function (series) { if (series.options.stacking && (series.visible === true || chart.options.char...
[ "function", "(", ")", "{", "var", "chart", "=", "this", ";", "// reset stacks for each yAxis", "each", "(", "chart", ".", "yAxis", ",", "function", "(", "axis", ")", "{", "if", "(", "axis", ".", "stacks", "&&", "axis", ".", "hasVisibleSeries", ")", "{", ...
Generate stacks for each series and calculate stacks total values
[ "Generate", "stacks", "for", "each", "series", "and", "calculate", "stacks", "total", "values" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L11047-L11062
23,506
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { var chart = this, lang = defaultOptions.lang, btnOptions = chart.options.chart.resetZoomButton, theme = btnOptions.theme, states = theme.states, alignTo = btnOptions.relativeTo === 'chart' ? null : 'plotBox'; this.resetZoomButton = chart.renderer.button(lang.resetZoom, null, null, f...
javascript
function () { var chart = this, lang = defaultOptions.lang, btnOptions = chart.options.chart.resetZoomButton, theme = btnOptions.theme, states = theme.states, alignTo = btnOptions.relativeTo === 'chart' ? null : 'plotBox'; this.resetZoomButton = chart.renderer.button(lang.resetZoom, null, null, f...
[ "function", "(", ")", "{", "var", "chart", "=", "this", ",", "lang", "=", "defaultOptions", ".", "lang", ",", "btnOptions", "=", "chart", ".", "options", ".", "chart", ".", "resetZoomButton", ",", "theme", "=", "btnOptions", ".", "theme", ",", "states", ...
Display the zoom button
[ "Display", "the", "zoom", "button" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L11067-L11083
23,507
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function (event) { var chart = this, hasZoomed, pointer = chart.pointer, displayButton = false, resetZoomButton; // If zoom is called with no arguments, reset the axes if (!event || event.resetSelection) { each(chart.axes, function (axis) { hasZoomed = axis.zoom(); }); } else { // else, z...
javascript
function (event) { var chart = this, hasZoomed, pointer = chart.pointer, displayButton = false, resetZoomButton; // If zoom is called with no arguments, reset the axes if (!event || event.resetSelection) { each(chart.axes, function (axis) { hasZoomed = axis.zoom(); }); } else { // else, z...
[ "function", "(", "event", ")", "{", "var", "chart", "=", "this", ",", "hasZoomed", ",", "pointer", "=", "chart", ".", "pointer", ",", "displayButton", "=", "false", ",", "resetZoomButton", ";", "// If zoom is called with no arguments, reset the axes", "if", "(", ...
Zoom into a given portion of the chart given by axis coordinates @param {Object} event
[ "Zoom", "into", "a", "given", "portion", "of", "the", "chart", "given", "by", "axis", "coordinates" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L11099-L11141
23,508
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function (e, panning) { var chart = this, hoverPoints = chart.hoverPoints, doRedraw; // remove active points for shared tooltip if (hoverPoints) { each(hoverPoints, function (point) { point.setState(); }); } each(panning === 'xy' ? [1, 0] : [1], function (isX) { // xy is used in maps var...
javascript
function (e, panning) { var chart = this, hoverPoints = chart.hoverPoints, doRedraw; // remove active points for shared tooltip if (hoverPoints) { each(hoverPoints, function (point) { point.setState(); }); } each(panning === 'xy' ? [1, 0] : [1], function (isX) { // xy is used in maps var...
[ "function", "(", "e", ",", "panning", ")", "{", "var", "chart", "=", "this", ",", "hoverPoints", "=", "chart", ".", "hoverPoints", ",", "doRedraw", ";", "// remove active points for shared tooltip", "if", "(", "hoverPoints", ")", "{", "each", "(", "hoverPoints...
Pan the chart by dragging the mouse across the pane. This function is called on mouse move, and the distance to pan is computed from chartX compared to the first chartX position in the dragging operation.
[ "Pan", "the", "chart", "by", "dragging", "the", "mouse", "across", "the", "pane", ".", "This", "function", "is", "called", "on", "mouse", "move", "and", "the", "distance", "to", "pan", "is", "computed", "from", "chartX", "compared", "to", "the", "first", ...
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L11148-L11182
23,509
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function (revert) { var clone = this.renderToClone, container = this.container; // Destroy the clone and bring the container back to the real renderTo div if (revert) { if (clone) { this.renderTo.appendChild(container); discardElement(clone); delete this.renderToClone; } // Set up the...
javascript
function (revert) { var clone = this.renderToClone, container = this.container; // Destroy the clone and bring the container back to the real renderTo div if (revert) { if (clone) { this.renderTo.appendChild(container); discardElement(clone); delete this.renderToClone; } // Set up the...
[ "function", "(", "revert", ")", "{", "var", "clone", "=", "this", ".", "renderToClone", ",", "container", "=", "this", ".", "container", ";", "// Destroy the clone and bring the container back to the real renderTo div", "if", "(", "revert", ")", "{", "if", "(", "c...
Create a clone of the chart's renderTo div and place it outside the viewport to allow size computation on chart.render and chart.redraw
[ "Create", "a", "clone", "of", "the", "chart", "s", "renderTo", "div", "and", "place", "it", "outside", "the", "viewport", "to", "allow", "size", "computation", "on", "chart", ".", "render", "and", "chart", ".", "redraw" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L11294-L11322
23,510
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { var chart = this, spacing = chart.spacing, axisOffset, legend = chart.legend, margin = chart.margin, legendOptions = chart.options.legend, legendMargin = pick(legendOptions.margin, 10), legendX = legendOptions.x, legendY = legendOptions.y, align = legendOptions.align, verti...
javascript
function () { var chart = this, spacing = chart.spacing, axisOffset, legend = chart.legend, margin = chart.margin, legendOptions = chart.options.legend, legendMargin = pick(legendOptions.margin, 10), legendX = legendOptions.x, legendY = legendOptions.y, align = legendOptions.align, verti...
[ "function", "(", ")", "{", "var", "chart", "=", "this", ",", "spacing", "=", "chart", ".", "spacing", ",", "axisOffset", ",", "legend", "=", "chart", ".", "legend", ",", "margin", "=", "chart", ".", "margin", ",", "legendOptions", "=", "chart", ".", ...
Calculate margins by rendering axis labels in a preliminary position. Title, subtitle and legend have already been rendered at this stage, but will be moved into their final positions
[ "Calculate", "margins", "by", "rendering", "axis", "labels", "in", "a", "preliminary", "position", ".", "Title", "subtitle", "and", "legend", "have", "already", "been", "rendered", "at", "this", "stage", "but", "will", "be", "moved", "into", "their", "final", ...
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L11415-L11502
23,511
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function (skipAxes) { var chart = this, inverted = chart.inverted, renderer = chart.renderer, chartWidth = chart.chartWidth, chartHeight = chart.chartHeight, optionsChart = chart.options.chart, spacing = chart.spacing, clipOffset = chart.clipOffset, clipX, clipY, plotLeft, plotTop, ...
javascript
function (skipAxes) { var chart = this, inverted = chart.inverted, renderer = chart.renderer, chartWidth = chart.chartWidth, chartHeight = chart.chartHeight, optionsChart = chart.options.chart, spacing = chart.spacing, clipOffset = chart.clipOffset, clipX, clipY, plotLeft, plotTop, ...
[ "function", "(", "skipAxes", ")", "{", "var", "chart", "=", "this", ",", "inverted", "=", "chart", ".", "inverted", ",", "renderer", "=", "chart", ".", "renderer", ",", "chartWidth", "=", "chart", ".", "chartWidth", ",", "chartHeight", "=", "chart", ".",...
Set the public chart properties. This is done before and after the pre-render to determine margin sizes
[ "Set", "the", "public", "chart", "properties", ".", "This", "is", "done", "before", "and", "after", "the", "pre", "-", "render", "to", "determine", "margin", "sizes" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L11621-L11678
23,512
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { var chart = this, spacing = chart.spacing, margin = chart.margin; chart.plotTop = pick(margin[0], spacing[0]); chart.marginRight = pick(margin[1], spacing[1]); chart.marginBottom = pick(margin[2], spacing[2]); chart.plotLeft = pick(margin[3], spacing[3]); chart.axisOffset = [0, 0, 0, 0]...
javascript
function () { var chart = this, spacing = chart.spacing, margin = chart.margin; chart.plotTop = pick(margin[0], spacing[0]); chart.marginRight = pick(margin[1], spacing[1]); chart.marginBottom = pick(margin[2], spacing[2]); chart.plotLeft = pick(margin[3], spacing[3]); chart.axisOffset = [0, 0, 0, 0]...
[ "function", "(", ")", "{", "var", "chart", "=", "this", ",", "spacing", "=", "chart", ".", "spacing", ",", "margin", "=", "chart", ".", "margin", ";", "chart", ".", "plotTop", "=", "pick", "(", "margin", "[", "0", "]", ",", "spacing", "[", "0", "...
Initial margins before auto size margins are applied
[ "Initial", "margins", "before", "auto", "size", "margins", "are", "applied" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L11683-L11694
23,513
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { var chart = this, optionsChart = chart.options.chart, renderer = chart.renderer, chartWidth = chart.chartWidth, chartHeight = chart.chartHeight, chartBackground = chart.chartBackground, plotBackground = chart.plotBackground, plotBorder = chart.plotBorder, plotBGImage = chart.plot...
javascript
function () { var chart = this, optionsChart = chart.options.chart, renderer = chart.renderer, chartWidth = chart.chartWidth, chartHeight = chart.chartHeight, chartBackground = chart.chartBackground, plotBackground = chart.plotBackground, plotBorder = chart.plotBorder, plotBGImage = chart.plot...
[ "function", "(", ")", "{", "var", "chart", "=", "this", ",", "optionsChart", "=", "chart", ".", "options", ".", "chart", ",", "renderer", "=", "chart", ".", "renderer", ",", "chartWidth", "=", "chart", ".", "chartWidth", ",", "chartHeight", "=", "chart",...
Draw the borders and backgrounds for chart and plot area
[ "Draw", "the", "borders", "and", "backgrounds", "for", "chart", "and", "plot", "area" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L11699-L11802
23,514
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { var chart = this, optionsChart = chart.options.chart, klass, seriesOptions = chart.options.series, i, value; each(['inverted', 'angular', 'polar'], function (key) { // The default series type's class klass = seriesTypes[optionsChart.type || optionsChart.defaultSeriesTy...
javascript
function () { var chart = this, optionsChart = chart.options.chart, klass, seriesOptions = chart.options.series, i, value; each(['inverted', 'angular', 'polar'], function (key) { // The default series type's class klass = seriesTypes[optionsChart.type || optionsChart.defaultSeriesTy...
[ "function", "(", ")", "{", "var", "chart", "=", "this", ",", "optionsChart", "=", "chart", ".", "options", ".", "chart", ",", "klass", ",", "seriesOptions", "=", "chart", ".", "options", ".", "series", ",", "i", ",", "value", ";", "each", "(", "[", ...
Detect whether a certain chart property is needed based on inspecting its options and series. This mainly applies to the chart.invert property, and in extensions to the chart.angular and chart.polar properties.
[ "Detect", "whether", "a", "certain", "chart", "property", "is", "needed", "based", "on", "inspecting", "its", "options", "and", "series", ".", "This", "mainly", "applies", "to", "the", "chart", ".", "invert", "property", "and", "in", "extensions", "to", "the...
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L11809-L11843
23,515
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { var chart = this, chartSeries = chart.series; // Reset links each(chartSeries, function (series) { series.linkedSeries.length = 0; }); // Apply new links each(chartSeries, function (series) { var linkedTo = series.options.linkedTo; if (isString(linkedTo)) { if (linkedTo === '...
javascript
function () { var chart = this, chartSeries = chart.series; // Reset links each(chartSeries, function (series) { series.linkedSeries.length = 0; }); // Apply new links each(chartSeries, function (series) { var linkedTo = series.options.linkedTo; if (isString(linkedTo)) { if (linkedTo === '...
[ "function", "(", ")", "{", "var", "chart", "=", "this", ",", "chartSeries", "=", "chart", ".", "series", ";", "// Reset links", "each", "(", "chartSeries", ",", "function", "(", "series", ")", "{", "series", ".", "linkedSeries", ".", "length", "=", "0", ...
Link two or more series together. This is done initially from Chart.render, and after Chart.addSeries and Series.remove.
[ "Link", "two", "or", "more", "series", "together", ".", "This", "is", "done", "initially", "from", "Chart", ".", "render", "and", "after", "Chart", ".", "addSeries", "and", "Series", ".", "remove", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L11849-L11873
23,516
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { var chart = this; // Note: in spite of JSLint's complaints, win == win.top is required /*jslint eqeq: true*/ if ((!hasSVG && (win == win.top && doc.readyState !== 'complete')) || (useCanVG && !win.canvg)) { /*jslint eqeq: false*/ if (useCanVG) { // Delay rendering until canvg library is ...
javascript
function () { var chart = this; // Note: in spite of JSLint's complaints, win == win.top is required /*jslint eqeq: true*/ if ((!hasSVG && (win == win.top && doc.readyState !== 'complete')) || (useCanVG && !win.canvg)) { /*jslint eqeq: false*/ if (useCanVG) { // Delay rendering until canvg library is ...
[ "function", "(", ")", "{", "var", "chart", "=", "this", ";", "// Note: in spite of JSLint's complaints, win == win.top is required", "/*jslint eqeq: true*/", "if", "(", "(", "!", "hasSVG", "&&", "(", "win", "==", "win", ".", "top", "&&", "doc", ".", "readyState", ...
VML namespaces can't be added until after complete. Listening for Perini's doScroll hack is not enough.
[ "VML", "namespaces", "can", "t", "be", "added", "until", "after", "complete", ".", "Listening", "for", "Perini", "s", "doScroll", "hack", "is", "not", "enough", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L12054-L12075
23,517
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function (target, options) { var oVar = options[target], tArray = isObject(oVar) ? oVar : [oVar, oVar, oVar, oVar]; return [pick(options[target + 'Top'], tArray[0]), pick(options[target + 'Right'], tArray[1]), pick(options[target + 'Bottom'], tArray[2]), pick(options[target + 'Left'], tArray[3])]; ...
javascript
function (target, options) { var oVar = options[target], tArray = isObject(oVar) ? oVar : [oVar, oVar, oVar, oVar]; return [pick(options[target + 'Top'], tArray[0]), pick(options[target + 'Right'], tArray[1]), pick(options[target + 'Bottom'], tArray[2]), pick(options[target + 'Left'], tArray[3])]; ...
[ "function", "(", "target", ",", "options", ")", "{", "var", "oVar", "=", "options", "[", "target", "]", ",", "tArray", "=", "isObject", "(", "oVar", ")", "?", "oVar", ":", "[", "oVar", ",", "oVar", ",", "oVar", ",", "oVar", "]", ";", "return", "[...
Creates arrays for spacing and margin from given options.
[ "Creates", "arrays", "for", "spacing", "and", "margin", "from", "given", "options", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L12144-L12152
23,518
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function (options) { var ret, series = this.series, pointArrayMap = series.pointArrayMap || ['y'], valueCount = pointArrayMap.length, firstItemType, i = 0, j = 0; if (typeof options === 'number' || options === null) { ret = { y: options }; } else if (isArray(options)) { ret = {}; // w...
javascript
function (options) { var ret, series = this.series, pointArrayMap = series.pointArrayMap || ['y'], valueCount = pointArrayMap.length, firstItemType, i = 0, j = 0; if (typeof options === 'number' || options === null) { ret = { y: options }; } else if (isArray(options)) { ret = {}; // w...
[ "function", "(", "options", ")", "{", "var", "ret", ",", "series", "=", "this", ".", "series", ",", "pointArrayMap", "=", "series", ".", "pointArrayMap", "||", "[", "'y'", "]", ",", "valueCount", "=", "pointArrayMap", ".", "length", ",", "firstItemType", ...
Transform number or array configs into objects
[ "Transform", "number", "or", "array", "configs", "into", "objects" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L12222-L12264
23,519
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { var point = this, props = ['graphic', 'dataLabel', 'dataLabelUpper', 'group', 'connector', 'shadowGroup'], prop, i = 6; while (i--) { prop = props[i]; if (point[prop]) { point[prop] = point[prop].destroy(); } } }
javascript
function () { var point = this, props = ['graphic', 'dataLabel', 'dataLabelUpper', 'group', 'connector', 'shadowGroup'], prop, i = 6; while (i--) { prop = props[i]; if (point[prop]) { point[prop] = point[prop].destroy(); } } }
[ "function", "(", ")", "{", "var", "point", "=", "this", ",", "props", "=", "[", "'graphic'", ",", "'dataLabel'", ",", "'dataLabelUpper'", ",", "'group'", ",", "'connector'", ",", "'shadowGroup'", "]", ",", "prop", ",", "i", "=", "6", ";", "while", "(",...
Destroy SVG elements associated with the point
[ "Destroy", "SVG", "elements", "associated", "with", "the", "point" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L12310-L12321
23,520
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { var point = this; return { x: point.category, y: point.y, key: point.name || point.category, series: point.series, point: point, percentage: point.percentage, total: point.total || point.stackTotal }; }
javascript
function () { var point = this; return { x: point.category, y: point.y, key: point.name || point.category, series: point.series, point: point, percentage: point.percentage, total: point.total || point.stackTotal }; }
[ "function", "(", ")", "{", "var", "point", "=", "this", ";", "return", "{", "x", ":", "point", ".", "category", ",", "y", ":", "point", ".", "y", ",", "key", ":", "point", ".", "name", "||", "point", ".", "category", ",", "series", ":", "point", ...
Return the configuration hash needed for the data label and tooltip formatters
[ "Return", "the", "configuration", "hash", "needed", "for", "the", "data", "label", "and", "tooltip", "formatters" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L12326-L12337
23,521
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function (eventType, eventArgs, defaultFunction) { var point = this, series = this.series, seriesOptions = series.options; // load event handlers on demand to save time on mouseover/out if (seriesOptions.point.events[eventType] || (point.options && point.options.events && point.options.events[eventType])) ...
javascript
function (eventType, eventArgs, defaultFunction) { var point = this, series = this.series, seriesOptions = series.options; // load event handlers on demand to save time on mouseover/out if (seriesOptions.point.events[eventType] || (point.options && point.options.events && point.options.events[eventType])) ...
[ "function", "(", "eventType", ",", "eventArgs", ",", "defaultFunction", ")", "{", "var", "point", "=", "this", ",", "series", "=", "this", ".", "series", ",", "seriesOptions", "=", "series", ".", "options", ";", "// load event handlers on demand to save time on mo...
Fire an event on the Point object. Must not be renamed to fireEvent, as this causes a name clash in MooTools @param {String} eventType @param {Object} eventArgs Additional event arguments @param {Function} defaultFunction Default event handler
[ "Fire", "an", "event", "on", "the", "Point", "object", ".", "Must", "not", "be", "renamed", "to", "fireEvent", "as", "this", "causes", "a", "name", "clash", "in", "MooTools" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L12556-L12575
23,522
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { var series = this, lastNull = -1, segments = [], i, points = series.points, pointsLength = points.length; if (pointsLength) { // no action required for [] // if connect nulls, just remove null points if (series.options.connectNulls) { i = pointsLength; while (i--) { ...
javascript
function () { var series = this, lastNull = -1, segments = [], i, points = series.points, pointsLength = points.length; if (pointsLength) { // no action required for [] // if connect nulls, just remove null points if (series.options.connectNulls) { i = pointsLength; while (i--) { ...
[ "function", "(", ")", "{", "var", "series", "=", "this", ",", "lastNull", "=", "-", "1", ",", "segments", "=", "[", "]", ",", "i", ",", "points", "=", "series", ".", "points", ",", "pointsLength", "=", "points", ".", "length", ";", "if", "(", "po...
Divide the series data into segments divided by null values.
[ "Divide", "the", "series", "data", "into", "segments", "divided", "by", "null", "values", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L12856-L12895
23,523
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function (redraw, animation) { var series = this, chart = series.chart; redraw = pick(redraw, true); if (!series.isRemoving) { /* prevent triggering native event in jQuery (calling the remove function from the remove event) */ series.isRemoving = true; // fire the event with a default handler of r...
javascript
function (redraw, animation) { var series = this, chart = series.chart; redraw = pick(redraw, true); if (!series.isRemoving) { /* prevent triggering native event in jQuery (calling the remove function from the remove event) */ series.isRemoving = true; // fire the event with a default handler of r...
[ "function", "(", "redraw", ",", "animation", ")", "{", "var", "series", "=", "this", ",", "chart", "=", "series", ".", "chart", ";", "redraw", "=", "pick", "(", "redraw", ",", "true", ")", ";", "if", "(", "!", "series", ".", "isRemoving", ")", "{",...
Remove a series and optionally redraw the chart @param {Boolean} redraw Whether to redraw the chart or wait for an explicit call @param {Boolean|Object} animation Whether to apply animation, and optionally animation configuration
[ "Remove", "a", "series", "and", "optionally", "redraw", "the", "chart" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L13265-L13293
23,524
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { if (!this.options.stacking || (this.visible !== true && this.chart.options.chart.ignoreHiddenSeries !== false)) { return; } var series = this, xData = series.processedXData, yData = series.processedYData, stackedYData = [], yDataLength = yData.length, seriesOptions = series.option...
javascript
function () { if (!this.options.stacking || (this.visible !== true && this.chart.options.chart.ignoreHiddenSeries !== false)) { return; } var series = this, xData = series.processedXData, yData = series.processedYData, stackedYData = [], yDataLength = yData.length, seriesOptions = series.option...
[ "function", "(", ")", "{", "if", "(", "!", "this", ".", "options", ".", "stacking", "||", "(", "this", ".", "visible", "!==", "true", "&&", "this", ".", "chart", ".", "options", ".", "chart", ".", "ignoreHiddenSeries", "!==", "false", ")", ")", "{", ...
Adds series' points value to corresponding stack
[ "Adds", "series", "points", "value", "to", "corresponding", "stack" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L13468-L13557
23,525
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { var xAxis = this.xAxis, yAxis = this.yAxis, xData = this.processedXData, yData = this.stackedYData || this.processedYData, yDataLength = yData.length, activeYData = [], activeCounter = 0, xExtremes = xAxis.getExtremes(), // #2117, need to compensate for log X axis xMin = xExtreme...
javascript
function () { var xAxis = this.xAxis, yAxis = this.yAxis, xData = this.processedXData, yData = this.stackedYData || this.processedYData, yDataLength = yData.length, activeYData = [], activeCounter = 0, xExtremes = xAxis.getExtremes(), // #2117, need to compensate for log X axis xMin = xExtreme...
[ "function", "(", ")", "{", "var", "xAxis", "=", "this", ".", "xAxis", ",", "yAxis", "=", "this", ".", "yAxis", ",", "xData", "=", "this", ".", "processedXData", ",", "yData", "=", "this", ".", "stackedYData", "||", "this", ".", "processedYData", ",", ...
Calculate Y extremes for visible data
[ "Calculate", "Y", "extremes", "for", "visible", "data" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L13591-L13638
23,526
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function (point) { var series = this, tooltipOptions = series.tooltipOptions, xDateFormat = tooltipOptions.xDateFormat, dateTimeLabelFormats = tooltipOptions.dateTimeLabelFormats, xAxis = series.xAxis, isDateTime = xAxis && xAxis.options.type === 'datetime', headerFormat = tooltipOptions.headerForma...
javascript
function (point) { var series = this, tooltipOptions = series.tooltipOptions, xDateFormat = tooltipOptions.xDateFormat, dateTimeLabelFormats = tooltipOptions.dateTimeLabelFormats, xAxis = series.xAxis, isDateTime = xAxis && xAxis.options.type === 'datetime', headerFormat = tooltipOptions.headerForma...
[ "function", "(", "point", ")", "{", "var", "series", "=", "this", ",", "tooltipOptions", "=", "series", ".", "tooltipOptions", ",", "xDateFormat", "=", "tooltipOptions", ".", "xDateFormat", ",", "dateTimeLabelFormats", "=", "tooltipOptions", ".", "dateTimeLabelFor...
Format the header of the tooltip
[ "Format", "the", "header", "of", "the", "tooltip" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L13809-L13843
23,527
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function (point, dataLabel, options, alignTo, isNew) { var chart = this.chart, inverted = chart.inverted, plotX = pick(point.plotX, -999), plotY = pick(point.plotY, -999), bBox = dataLabel.getBBox(), visible = this.visible && chart.isInsidePlot(point.plotX, point.plotY, inverted), alignAttr; // the ...
javascript
function (point, dataLabel, options, alignTo, isNew) { var chart = this.chart, inverted = chart.inverted, plotX = pick(point.plotX, -999), plotY = pick(point.plotY, -999), bBox = dataLabel.getBBox(), visible = this.visible && chart.isInsidePlot(point.plotX, point.plotY, inverted), alignAttr; // the ...
[ "function", "(", "point", ",", "dataLabel", ",", "options", ",", "alignTo", ",", "isNew", ")", "{", "var", "chart", "=", "this", ".", "chart", ",", "inverted", "=", "chart", ".", "inverted", ",", "plotX", "=", "pick", "(", "point", ".", "plotX", ",",...
Align each individual data label
[ "Align", "each", "individual", "data", "label" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L14468-L14522
23,528
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function (dataLabel, options, alignAttr, bBox, alignTo, isNew) { var chart = this.chart, align = options.align, verticalAlign = options.verticalAlign, off, justified; // Off left off = alignAttr.x; if (off < 0) { if (align === 'right') { options.align = 'left'; } else { options.x = -o...
javascript
function (dataLabel, options, alignAttr, bBox, alignTo, isNew) { var chart = this.chart, align = options.align, verticalAlign = options.verticalAlign, off, justified; // Off left off = alignAttr.x; if (off < 0) { if (align === 'right') { options.align = 'left'; } else { options.x = -o...
[ "function", "(", "dataLabel", ",", "options", ",", "alignAttr", ",", "bBox", ",", "alignTo", ",", "isNew", ")", "{", "var", "chart", "=", "this", ".", "chart", ",", "align", "=", "options", ".", "align", ",", "verticalAlign", "=", "options", ".", "vert...
If data labels fall partly outside the plot area, align them back in, in a way that doesn't hide the point.
[ "If", "data", "labels", "fall", "partly", "outside", "the", "plot", "area", "align", "them", "back", "in", "in", "a", "way", "that", "doesn", "t", "hide", "the", "point", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L14528-L14583
23,529
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function (segment) { var series = this, segmentPath = [], step = series.options.step; // build the segment line each(segment, function (point, i) { var plotX = point.plotX, plotY = point.plotY, lastPoint; if (series.getPointSpline) { // generate the spline as defined in the SplineSe...
javascript
function (segment) { var series = this, segmentPath = [], step = series.options.step; // build the segment line each(segment, function (point, i) { var plotX = point.plotX, plotY = point.plotY, lastPoint; if (series.getPointSpline) { // generate the spline as defined in the SplineSe...
[ "function", "(", "segment", ")", "{", "var", "series", "=", "this", ",", "segmentPath", "=", "[", "]", ",", "step", "=", "series", ".", "options", ".", "step", ";", "// build the segment line", "each", "(", "segment", ",", "function", "(", "point", ",", ...
Return the graph path of a segment
[ "Return", "the", "graph", "path", "of", "a", "segment" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L14588-L14642
23,530
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { var series = this, graphPath = [], segmentPath, singlePoints = []; // used in drawTracker // Divide into segments and build graph and area paths each(series.segments, function (segment) { segmentPath = series.getSegmentPath(segment); // add the segment to the graph, or a sing...
javascript
function () { var series = this, graphPath = [], segmentPath, singlePoints = []; // used in drawTracker // Divide into segments and build graph and area paths each(series.segments, function (segment) { segmentPath = series.getSegmentPath(segment); // add the segment to the graph, or a sing...
[ "function", "(", ")", "{", "var", "series", "=", "this", ",", "graphPath", "=", "[", "]", ",", "segmentPath", ",", "singlePoints", "=", "[", "]", ";", "// used in drawTracker", "// Divide into segments and build graph and area paths", "each", "(", "series", ".", ...
Get the graph path
[ "Get", "the", "graph", "path" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L14647-L14672
23,531
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { var options = this.options, chart = this.chart, renderer = chart.renderer, negativeColor = options.negativeColor || options.negativeFillColor, translatedThreshold, posAttr, negAttr, graph = this.graph, area = this.area, posClip = this.posClip, negClip = this.negClip, cha...
javascript
function () { var options = this.options, chart = this.chart, renderer = chart.renderer, negativeColor = options.negativeColor || options.negativeFillColor, translatedThreshold, posAttr, negAttr, graph = this.graph, area = this.area, posClip = this.posClip, negClip = this.negClip, cha...
[ "function", "(", ")", "{", "var", "options", "=", "this", ".", "options", ",", "chart", "=", "this", ".", "chart", ",", "renderer", "=", "chart", ".", "renderer", ",", "negativeColor", "=", "options", ".", "negativeColor", "||", "options", ".", "negative...
Clip the graphs into the positive and negative coloured graphs
[ "Clip", "the", "graphs", "into", "the", "positive", "and", "negative", "coloured", "graphs" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L14723-L14803
23,532
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { var series = this, chart = series.chart; // Pie, go away (#1736) if (!series.xAxis) { return; } // A fixed size is needed for inversion to work function setInvert() { var size = { width: series.yAxis.len, height: series.xAxis.len }; each(['group', 'markerGroup...
javascript
function () { var series = this, chart = series.chart; // Pie, go away (#1736) if (!series.xAxis) { return; } // A fixed size is needed for inversion to work function setInvert() { var size = { width: series.yAxis.len, height: series.xAxis.len }; each(['group', 'markerGroup...
[ "function", "(", ")", "{", "var", "series", "=", "this", ",", "chart", "=", "series", ".", "chart", ";", "// Pie, go away (#1736)", "if", "(", "!", "series", ".", "xAxis", ")", "{", "return", ";", "}", "// A fixed size is needed for inversion to work", "functi...
Initialize and perform group inversion on series.group and series.markerGroup
[ "Initialize", "and", "perform", "group", "inversion", "on", "series", ".", "group", "and", "series", ".", "markerGroup" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L14808-L14841
23,533
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
setInvert
function setInvert() { var size = { width: series.yAxis.len, height: series.xAxis.len }; each(['group', 'markerGroup'], function (groupName) { if (series[groupName]) { series[groupName].attr(size).invert(); } }); }
javascript
function setInvert() { var size = { width: series.yAxis.len, height: series.xAxis.len }; each(['group', 'markerGroup'], function (groupName) { if (series[groupName]) { series[groupName].attr(size).invert(); } }); }
[ "function", "setInvert", "(", ")", "{", "var", "size", "=", "{", "width", ":", "series", ".", "yAxis", ".", "len", ",", "height", ":", "series", ".", "xAxis", ".", "len", "}", ";", "each", "(", "[", "'group'", ",", "'markerGroup'", "]", ",", "funct...
A fixed size is needed for inversion to work
[ "A", "fixed", "size", "is", "needed", "for", "inversion", "to", "work" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L14818-L14829
23,534
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function (prop, name, visibility, zIndex, parent) { var group = this[prop], isNew = !group; // Generate it on first call if (isNew) { this[prop] = group = this.chart.renderer.g(name) .attr({ visibility: visibility, zIndex: zIndex || 0.1 // IE8 needs this }) .add(parent); } // P...
javascript
function (prop, name, visibility, zIndex, parent) { var group = this[prop], isNew = !group; // Generate it on first call if (isNew) { this[prop] = group = this.chart.renderer.g(name) .attr({ visibility: visibility, zIndex: zIndex || 0.1 // IE8 needs this }) .add(parent); } // P...
[ "function", "(", "prop", ",", "name", ",", "visibility", ",", "zIndex", ",", "parent", ")", "{", "var", "group", "=", "this", "[", "prop", "]", ",", "isNew", "=", "!", "group", ";", "// Generate it on first call", "if", "(", "isNew", ")", "{", "this", ...
General abstraction for creating plot groups like series.group, series.dataLabelsGroup and series.markerGroup. On subsequent calls, the group will only be adjusted to the updated plot size.
[ "General", "abstraction", "for", "creating", "plot", "groups", "like", "series", ".", "group", "series", ".", "dataLabelsGroup", "and", "series", ".", "markerGroup", ".", "On", "subsequent", "calls", "the", "group", "will", "only", "be", "adjusted", "to", "the...
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L14847-L14863
23,535
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function (path, segment, translatedThreshold) { path.push( L, segment[segment.length - 1].plotX, translatedThreshold, L, segment[0].plotX, translatedThreshold ); }
javascript
function (path, segment, translatedThreshold) { path.push( L, segment[segment.length - 1].plotX, translatedThreshold, L, segment[0].plotX, translatedThreshold ); }
[ "function", "(", "path", ",", "segment", ",", "translatedThreshold", ")", "{", "path", ".", "push", "(", "L", ",", "segment", "[", "segment", ".", "length", "-", "1", "]", ".", "plotX", ",", "translatedThreshold", ",", "L", ",", "segment", "[", "0", ...
Extendable method to close the segment path of an area. This is overridden in polar charts.
[ "Extendable", "method", "to", "close", "the", "segment", "path", "of", "an", "area", ".", "This", "is", "overridden", "in", "polar", "charts", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L15359-L15368
23,536
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { // Define or reset areaPath this.areaPath = []; // Call the base method Series.prototype.drawGraph.apply(this); // Define local variables var series = this, areaPath = this.areaPath, options = this.options, negativeColor = options.negativeColor, negativeFillColor = options...
javascript
function () { // Define or reset areaPath this.areaPath = []; // Call the base method Series.prototype.drawGraph.apply(this); // Define local variables var series = this, areaPath = this.areaPath, options = this.options, negativeColor = options.negativeColor, negativeFillColor = options...
[ "function", "(", ")", "{", "// Define or reset areaPath", "this", ".", "areaPath", "=", "[", "]", ";", "// Call the base method", "Series", ".", "prototype", ".", "drawGraph", ".", "apply", "(", "this", ")", ";", "// Define local variables", "var", "series", "="...
Draw the graph and the underlying area. This method calls the Series base function and adds the area. The areaPath is calculated in the getSegmentPath method called from Series.prototype.drawGraph.
[ "Draw", "the", "graph", "and", "the", "underlying", "area", ".", "This", "method", "calls", "the", "Series", "base", "function", "and", "adds", "the", "area", ".", "The", "areaPath", "is", "calculated", "in", "the", "getSegmentPath", "method", "called", "fro...
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L15375-L15414
23,537
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { var series = this, options = series.options, xAxis = series.xAxis, yAxis = series.yAxis, reversedXAxis = xAxis.reversed, stackKey, stackGroups = {}, columnIndex, columnCount = 0; // Get the total number of column type series. // This is called on every series. Consider movi...
javascript
function () { var series = this, options = series.options, xAxis = series.xAxis, yAxis = series.yAxis, reversedXAxis = xAxis.reversed, stackKey, stackGroups = {}, columnIndex, columnCount = 0; // Get the total number of column type series. // This is called on every series. Consider movi...
[ "function", "(", ")", "{", "var", "series", "=", "this", ",", "options", "=", "series", ".", "options", ",", "xAxis", "=", "series", ".", "xAxis", ",", "yAxis", "=", "series", ".", "yAxis", ",", "reversedXAxis", "=", "xAxis", ".", "reversed", ",", "s...
Return the width and x offset of the columns adjusted for grouping, groupPadding, pointPadding, pointWidth etc.
[ "Return", "the", "width", "and", "x", "offset", "of", "the", "columns", "adjusted", "for", "grouping", "groupPadding", "pointPadding", "pointWidth", "etc", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L15659-L15720
23,538
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { var series = this, chart = series.chart, pointer = chart.pointer, cursor = series.options.cursor, css = cursor && { cursor: cursor }, onMouseOver = function (e) { var target = e.target, point; if (chart.hoverSeries !== series) { series.onMouseOver(); } while (ta...
javascript
function () { var series = this, chart = series.chart, pointer = chart.pointer, cursor = series.options.cursor, css = cursor && { cursor: cursor }, onMouseOver = function (e) { var target = e.target, point; if (chart.hoverSeries !== series) { series.onMouseOver(); } while (ta...
[ "function", "(", ")", "{", "var", "series", "=", "this", ",", "chart", "=", "series", ".", "chart", ",", "pointer", "=", "chart", ".", "pointer", ",", "cursor", "=", "series", ".", "options", ".", "cursor", ",", "css", "=", "cursor", "&&", "{", "cu...
Add tracking event listener to the series group, so the point graphics themselves act as trackers
[ "Add", "tracking", "event", "listener", "to", "the", "series", "group", "so", "the", "point", "graphics", "themselves", "act", "as", "trackers" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L15863-L15911
23,539
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { var series = this, chart = series.chart; // column and bar series affects other series of the same type // as they are either stacked or grouped if (chart.hasRendered) { each(chart.series, function (otherSeries) { if (otherSeries.type === series.type) { otherSeries.isDirty = true; ...
javascript
function () { var series = this, chart = series.chart; // column and bar series affects other series of the same type // as they are either stacked or grouped if (chart.hasRendered) { each(chart.series, function (otherSeries) { if (otherSeries.type === series.type) { otherSeries.isDirty = true; ...
[ "function", "(", ")", "{", "var", "series", "=", "this", ",", "chart", "=", "series", ".", "chart", ";", "// column and bar series affects other series of the same type", "// as they are either stacked or grouped", "if", "(", "chart", ".", "hasRendered", ")", "{", "ea...
Remove this series from the chart
[ "Remove", "this", "series", "from", "the", "chart" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L16001-L16016
23,540
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function (init) { var series = this, points = series.points, startAngleRad = series.startAngleRad; if (!init) { each(points, function (point) { var graphic = point.graphic, args = point.shapeArgs; if (graphic) { // start values graphic.attr({ r: series.center[3] / 2, // anima...
javascript
function (init) { var series = this, points = series.points, startAngleRad = series.startAngleRad; if (!init) { each(points, function (point) { var graphic = point.graphic, args = point.shapeArgs; if (graphic) { // start values graphic.attr({ r: series.center[3] / 2, // anima...
[ "function", "(", "init", ")", "{", "var", "series", "=", "this", ",", "points", "=", "series", ".", "points", ",", "startAngleRad", "=", "series", ".", "startAngleRad", ";", "if", "(", "!", "init", ")", "{", "each", "(", "points", ",", "function", "(...
Animate the pies in
[ "Animate", "the", "pies", "in" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L16230-L16260
23,541
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function (data, redraw) { Series.prototype.setData.call(this, data, false); this.processData(); this.generatePoints(); if (pick(redraw, true)) { this.chart.redraw(); } }
javascript
function (data, redraw) { Series.prototype.setData.call(this, data, false); this.processData(); this.generatePoints(); if (pick(redraw, true)) { this.chart.redraw(); } }
[ "function", "(", "data", ",", "redraw", ")", "{", "Series", ".", "prototype", ".", "setData", ".", "call", "(", "this", ",", "data", ",", "false", ")", ";", "this", ".", "processData", "(", ")", ";", "this", ".", "generatePoints", "(", ")", ";", "i...
Extend the basic setData method by running processData and generatePoints immediately, in order to access the points from the legend.
[ "Extend", "the", "basic", "setData", "method", "by", "running", "processData", "and", "generatePoints", "immediately", "in", "order", "to", "access", "the", "points", "from", "the", "legend", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L16266-L16273
23,542
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { var i, total = 0, points, len, point, ignoreHiddenPoint = this.options.ignoreHiddenPoint; Series.prototype.generatePoints.call(this); // Populate local vars points = this.points; len = points.length; // Get the total sum for (i = 0; i < len; i++) { point = points[i]; ...
javascript
function () { var i, total = 0, points, len, point, ignoreHiddenPoint = this.options.ignoreHiddenPoint; Series.prototype.generatePoints.call(this); // Populate local vars points = this.points; len = points.length; // Get the total sum for (i = 0; i < len; i++) { point = points[i]; ...
[ "function", "(", ")", "{", "var", "i", ",", "total", "=", "0", ",", "points", ",", "len", ",", "point", ",", "ignoreHiddenPoint", "=", "this", ".", "options", ".", "ignoreHiddenPoint", ";", "Series", ".", "prototype", ".", "generatePoints", ".", "call", ...
Extend the generatePoints method by adding total and percentage properties to each point
[ "Extend", "the", "generatePoints", "method", "by", "adding", "total", "and", "percentage", "properties", "to", "each", "point" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L16278-L16306
23,543
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { var options = this.options, chart = this.chart, slicingRoom = 2 * (options.slicedOffset || 0), handleSlicingRoom, plotWidth = chart.plotWidth - 2 * slicingRoom, plotHeight = chart.plotHeight - 2 * slicingRoom, centerOption = options.center, positions = [pick(centerOption[0], '50%...
javascript
function () { var options = this.options, chart = this.chart, slicingRoom = 2 * (options.slicedOffset || 0), handleSlicingRoom, plotWidth = chart.plotWidth - 2 * slicingRoom, plotHeight = chart.plotHeight - 2 * slicingRoom, centerOption = options.center, positions = [pick(centerOption[0], '50%...
[ "function", "(", ")", "{", "var", "options", "=", "this", ".", "options", ",", "chart", "=", "this", ".", "chart", ",", "slicingRoom", "=", "2", "*", "(", "options", ".", "slicedOffset", "||", "0", ")", ",", "handleSlicingRoom", ",", "plotWidth", "=", ...
Get the center of the pie based on the size and center options relative to the plot area. Borrowed by the polar and gauge series types.
[ "Get", "the", "center", "of", "the", "pie", "based", "on", "the", "size", "and", "center", "options", "relative", "to", "the", "plot", "area", ".", "Borrowed", "by", "the", "polar", "and", "gauge", "series", "types", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L16312-L16337
23,544
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function (points, sign) { points.sort(function (a, b) { return a.angle !== undefined && (b.angle - a.angle) * sign; }); }
javascript
function (points, sign) { points.sort(function (a, b) { return a.angle !== undefined && (b.angle - a.angle) * sign; }); }
[ "function", "(", "points", ",", "sign", ")", "{", "points", ".", "sort", "(", "function", "(", "a", ",", "b", ")", "{", "return", "a", ".", "angle", "!==", "undefined", "&&", "(", "b", ".", "angle", "-", "a", ".", "angle", ")", "*", "sign", ";"...
Utility for sorting data labels
[ "Utility", "for", "sorting", "data", "labels" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L16519-L16523
23,545
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/highcharts.src.js
function () { each(this.points, function (point) { var dataLabel = point.dataLabel, _pos; if (dataLabel) { _pos = dataLabel._pos; if (_pos) { dataLabel.attr(dataLabel._attr); dataLabel[dataLabel.moved ? 'animate' : 'attr'](_pos); dataLabel.moved = true; } else if (dataLabel...
javascript
function () { each(this.points, function (point) { var dataLabel = point.dataLabel, _pos; if (dataLabel) { _pos = dataLabel._pos; if (_pos) { dataLabel.attr(dataLabel._attr); dataLabel[dataLabel.moved ? 'animate' : 'attr'](_pos); dataLabel.moved = true; } else if (dataLabel...
[ "function", "(", ")", "{", "each", "(", "this", ".", "points", ",", "function", "(", "point", ")", "{", "var", "dataLabel", "=", "point", ".", "dataLabel", ",", "_pos", ";", "if", "(", "dataLabel", ")", "{", "_pos", "=", "dataLabel", ".", "_pos", "...
Perform the final placement of the data labels after we have verified that they fall within the plot area.
[ "Perform", "the", "final", "placement", "of", "the", "data", "labels", "after", "we", "have", "verified", "that", "they", "fall", "within", "the", "plot", "area", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/highcharts.src.js#L16884-L16900
23,546
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/modules/canvas-tools.src.js
function(viewPort) { if (!that.hasValue()) return 0; var s = that.value+''; if (s.match(/em$/)) return that.numValue() * this.EM(viewPort); if (s.match(/ex$/)) return that.numValue() * this.EM(viewPort) / 2.0; if (s.match(/px$/)) return that.numValue(); if (s.match(/pt$/)) return that.numV...
javascript
function(viewPort) { if (!that.hasValue()) return 0; var s = that.value+''; if (s.match(/em$/)) return that.numValue() * this.EM(viewPort); if (s.match(/ex$/)) return that.numValue() * this.EM(viewPort) / 2.0; if (s.match(/px$/)) return that.numValue(); if (s.match(/pt$/)) return that.numV...
[ "function", "(", "viewPort", ")", "{", "if", "(", "!", "that", ".", "hasValue", "(", ")", ")", "return", "0", ";", "var", "s", "=", "that", ".", "value", "+", "''", ";", "if", "(", "s", ".", "match", "(", "/", "em$", "/", ")", ")", "return", ...
get the length as pixels
[ "get", "the", "length", "as", "pixels" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/modules/canvas-tools.src.js#L549-L562
23,547
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/modules/canvas-tools.src.js
function (chart) { var renderer = this, options = chart.options.tooltip, borderWidth = options.borderWidth, tooltipDiv = renderer.ttDiv, tooltipDivStyle = options.style, tooltipLine = renderer.ttLine, padding = parseInt(tooltipDivStyle.padding, 10); // Add border styling from options to t...
javascript
function (chart) { var renderer = this, options = chart.options.tooltip, borderWidth = options.borderWidth, tooltipDiv = renderer.ttDiv, tooltipDivStyle = options.style, tooltipLine = renderer.ttLine, padding = parseInt(tooltipDivStyle.padding, 10); // Add border styling from options to t...
[ "function", "(", "chart", ")", "{", "var", "renderer", "=", "this", ",", "options", "=", "chart", ".", "options", ".", "tooltip", ",", "borderWidth", "=", "options", ".", "borderWidth", ",", "tooltipDiv", "=", "renderer", ".", "ttDiv", ",", "tooltipDivStyl...
Configures the renderer with the chart. Attach a listener to the event tooltipRefresh.
[ "Configures", "the", "renderer", "with", "the", "chart", ".", "Attach", "a", "listener", "to", "the", "event", "tooltipRefresh", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/modules/canvas-tools.src.js#L2993-L3065
23,548
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/modules/canvas-tools.src.js
function () { var renderer = this; // Remove the canvas discardElement(renderer.canvas); // Kill the timer if (renderer.ttTimer !== UNDEFINED) { clearTimeout(renderer.ttTimer); } // Remove the divs for tooltip and line discardElement(renderer.ttLine); discardElement(renderer.ttDiv); ...
javascript
function () { var renderer = this; // Remove the canvas discardElement(renderer.canvas); // Kill the timer if (renderer.ttTimer !== UNDEFINED) { clearTimeout(renderer.ttTimer); } // Remove the divs for tooltip and line discardElement(renderer.ttLine); discardElement(renderer.ttDiv); ...
[ "function", "(", ")", "{", "var", "renderer", "=", "this", ";", "// Remove the canvas", "discardElement", "(", "renderer", ".", "canvas", ")", ";", "// Kill the timer", "if", "(", "renderer", ".", "ttTimer", "!==", "UNDEFINED", ")", "{", "clearTimeout", "(", ...
Extend SVGRenderer.destroy to also destroy the elements added by CanVGRenderer.
[ "Extend", "SVGRenderer", ".", "destroy", "to", "also", "destroy", "the", "elements", "added", "by", "CanVGRenderer", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/modules/canvas-tools.src.js#L3070-L3088
23,549
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/adapters/mootools-adapter.src.js
function (pathAnim) { var fxProto = Fx.prototype, fxStart = fxProto.start, morphProto = Fx.Morph.prototype, morphCompute = morphProto.compute; // override Fx.start to allow animation of SVG element wrappers /*jslint unparam: true*//* allow unused parameters in fx functions */ fxProto.start = function ...
javascript
function (pathAnim) { var fxProto = Fx.prototype, fxStart = fxProto.start, morphProto = Fx.Morph.prototype, morphCompute = morphProto.compute; // override Fx.start to allow animation of SVG element wrappers /*jslint unparam: true*//* allow unused parameters in fx functions */ fxProto.start = function ...
[ "function", "(", "pathAnim", ")", "{", "var", "fxProto", "=", "Fx", ".", "prototype", ",", "fxStart", "=", "fxProto", ".", "start", ",", "morphProto", "=", "Fx", ".", "Morph", ".", "prototype", ",", "morphCompute", "=", "morphProto", ".", "compute", ";",...
Initialize the adapter. This is run once as Highcharts is first run. @param {Object} pathAnim The helper object to do animations across adapters.
[ "Initialize", "the", "adapter", ".", "This", "is", "run", "once", "as", "Highcharts", "is", "first", "run", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/adapters/mootools-adapter.src.js#L29-L70
23,550
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/adapters/mootools-adapter.src.js
function (scriptLocation, callback) { // We cannot assume that Assets class from mootools-more is available so instead insert a script tag to download script. var head = doc.getElementsByTagName('head')[0]; var script = doc.createElement('script'); script.type = 'text/javascript'; script.src = scriptLocation...
javascript
function (scriptLocation, callback) { // We cannot assume that Assets class from mootools-more is available so instead insert a script tag to download script. var head = doc.getElementsByTagName('head')[0]; var script = doc.createElement('script'); script.type = 'text/javascript'; script.src = scriptLocation...
[ "function", "(", "scriptLocation", ",", "callback", ")", "{", "// We cannot assume that Assets class from mootools-more is available so instead insert a script tag to download script.", "var", "head", "=", "doc", ".", "getElementsByTagName", "(", "'head'", ")", "[", "0", "]", ...
Downloads a script and executes a callback when done. @param {String} scriptLocation @param {Function} callback
[ "Downloads", "a", "script", "and", "executes", "a", "callback", "when", "done", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/adapters/mootools-adapter.src.js#L91-L101
23,551
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/adapters/mootools-adapter.src.js
function (el) { var offsets = el.getPosition(); // #1496 return { left: offsets.x, top: offsets.y }; }
javascript
function (el) { var offsets = el.getPosition(); // #1496 return { left: offsets.x, top: offsets.y }; }
[ "function", "(", "el", ")", "{", "var", "offsets", "=", "el", ".", "getPosition", "(", ")", ";", "// #1496", "return", "{", "left", ":", "offsets", ".", "x", ",", "top", ":", "offsets", ".", "y", "}", ";", "}" ]
Get the offset of an element relative to the top left corner of the web page
[ "Get", "the", "offset", "of", "an", "element", "relative", "to", "the", "top", "left", "corner", "of", "the", "web", "page" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/adapters/mootools-adapter.src.js#L196-L202
23,552
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/modules/map.src.js
function (e) { var chart = this.chart; e = this.normalize(e); if (chart.isInsidePlot(e.chartX - chart.plotLeft, e.chartY - chart.plotTop)) { chart.mapZoom( 0.5, chart.xAxis[0].toValue(e.chartX), chart.yAxis[0].toValue(e.chartY) ); } }
javascript
function (e) { var chart = this.chart; e = this.normalize(e); if (chart.isInsidePlot(e.chartX - chart.plotLeft, e.chartY - chart.plotTop)) { chart.mapZoom( 0.5, chart.xAxis[0].toValue(e.chartX), chart.yAxis[0].toValue(e.chartY) ); } }
[ "function", "(", "e", ")", "{", "var", "chart", "=", "this", ".", "chart", ";", "e", "=", "this", ".", "normalize", "(", "e", ")", ";", "if", "(", "chart", ".", "isInsidePlot", "(", "e", ".", "chartX", "-", "chart", ".", "plotLeft", ",", "e", "...
The event handler for the doubleclick event
[ "The", "event", "handler", "for", "the", "doubleclick", "event" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/modules/map.src.js#L216-L228
23,553
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/modules/map.src.js
function (inner, outer) { each([['x', 'width'], ['y', 'height']], function (dim) { var pos = dim[0], size = dim[1]; if (inner[pos] + inner[size] > outer[pos] + outer[size]) { // right overflow if (inner[size] > outer[size]) { // the general size is greater, fit fully to outer inner[size] = ou...
javascript
function (inner, outer) { each([['x', 'width'], ['y', 'height']], function (dim) { var pos = dim[0], size = dim[1]; if (inner[pos] + inner[size] > outer[pos] + outer[size]) { // right overflow if (inner[size] > outer[size]) { // the general size is greater, fit fully to outer inner[size] = ou...
[ "function", "(", "inner", ",", "outer", ")", "{", "each", "(", "[", "[", "'x'", ",", "'width'", "]", ",", "[", "'y'", ",", "'height'", "]", "]", ",", "function", "(", "dim", ")", "{", "var", "pos", "=", "dim", "[", "0", "]", ",", "size", "=",...
Fit an inner box to an outer. If the inner box overflows left or right, align it to the sides of the outer. If it overflows both sides, fit it within the outer. This is a pattern that occurs more places in Highcharts, perhaps it should be elevated to a common utility function.
[ "Fit", "an", "inner", "box", "to", "an", "outer", ".", "If", "the", "inner", "box", "overflows", "left", "or", "right", "align", "it", "to", "the", "sides", "of", "the", "outer", ".", "If", "it", "overflows", "both", "sides", "fit", "it", "within", "...
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/modules/map.src.js#L299-L321
23,554
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/modules/map.src.js
function (howMuch, centerXArg, centerYArg) { if (this.isMapZooming) { return; } var chart = this, xAxis = chart.xAxis[0], xRange = xAxis.max - xAxis.min, centerX = pick(centerXArg, xAxis.min + xRange / 2), newXRange = xRange * howMuch, yAxis = chart.yAxis[0], yRange = yAxis.max - ...
javascript
function (howMuch, centerXArg, centerYArg) { if (this.isMapZooming) { return; } var chart = this, xAxis = chart.xAxis[0], xRange = xAxis.max - xAxis.min, centerX = pick(centerXArg, xAxis.min + xRange / 2), newXRange = xRange * howMuch, yAxis = chart.yAxis[0], yRange = yAxis.max - ...
[ "function", "(", "howMuch", ",", "centerXArg", ",", "centerYArg", ")", "{", "if", "(", "this", ".", "isMapZooming", ")", "{", "return", ";", "}", "var", "chart", "=", "this", ",", "xAxis", "=", "chart", ".", "xAxis", "[", "0", "]", ",", "xRange", "...
Zoom the map in or out by a certain amount. Less than 1 zooms in, greater than 1 zooms out.
[ "Zoom", "the", "map", "in", "or", "out", "by", "a", "certain", "amount", ".", "Less", "than", "1", "zooms", "in", "greater", "than", "1", "zooms", "out", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/modules/map.src.js#L326-L370
23,555
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/modules/map.src.js
function (options, x) { var point = Point.prototype.applyOptions.call(this, options, x); if (point.path && typeof point.path === 'string') { point.path = point.options.path = Highcharts.splitPath(point.path); } return point; }
javascript
function (options, x) { var point = Point.prototype.applyOptions.call(this, options, x); if (point.path && typeof point.path === 'string') { point.path = point.options.path = Highcharts.splitPath(point.path); } return point; }
[ "function", "(", "options", ",", "x", ")", "{", "var", "point", "=", "Point", ".", "prototype", ".", "applyOptions", ".", "call", "(", "this", ",", "options", ",", "x", ")", ";", "if", "(", "point", ".", "path", "&&", "typeof", "point", ".", "path"...
Extend the Point object to split paths
[ "Extend", "the", "Point", "object", "to", "split", "paths" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/modules/map.src.js#L402-L411
23,556
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/modules/map.src.js
function () { var point = this, start = +new Date(), normalColor = Color(point.options.color), hoverColor = Color(point.pointAttr.hover.fill), animation = point.series.options.states.normal.animation, duration = animation && (animation.duration || 500); if (duration && normalColor.rgba.length...
javascript
function () { var point = this, start = +new Date(), normalColor = Color(point.options.color), hoverColor = Color(point.pointAttr.hover.fill), animation = point.series.options.states.normal.animation, duration = animation && (animation.duration || 500); if (duration && normalColor.rgba.length...
[ "function", "(", ")", "{", "var", "point", "=", "this", ",", "start", "=", "+", "new", "Date", "(", ")", ",", "normalColor", "=", "Color", "(", "point", ".", "options", ".", "color", ")", ",", "hoverColor", "=", "Color", "(", "point", ".", "pointAt...
Custom animation for tweening out the colors. Animation reduces blinking when hovering over islands and coast lines. We run a custom implementation of animation becuase we need to be able to run this independently from other animations like zoom redraw. Also, adding color animation to the adapters would introduce almos...
[ "Custom", "animation", "for", "tweening", "out", "the", "colors", ".", "Animation", "reduces", "blinking", "when", "hovering", "over", "islands", "and", "coast", "lines", ".", "We", "run", "a", "custom", "implementation", "of", "animation", "becuase", "we", "n...
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/modules/map.src.js#L425-L452
23,557
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/modules/map.src.js
function (chart) { var series = this, valueDecimals = chart.options.legend.valueDecimals, legendItems = [], name, from, to, fromLabel, toLabel, colorRange, valueRanges, gradientColor, grad, tmpLabel, horizontal = chart.options.legend.layout === 'horizontal'; ...
javascript
function (chart) { var series = this, valueDecimals = chart.options.legend.valueDecimals, legendItems = [], name, from, to, fromLabel, toLabel, colorRange, valueRanges, gradientColor, grad, tmpLabel, horizontal = chart.options.legend.layout === 'horizontal'; ...
[ "function", "(", "chart", ")", "{", "var", "series", "=", "this", ",", "valueDecimals", "=", "chart", ".", "options", ".", "legend", ".", "valueDecimals", ",", "legendItems", "=", "[", "]", ",", "name", ",", "from", ",", "to", ",", "fromLabel", ",", ...
get axis extremes from paths, not values
[ "get", "axis", "extremes", "from", "paths", "not", "values" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/modules/map.src.js#L472-L568
23,558
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/modules/map.src.js
function (legend, item) { var spacing = legend.options.symbolPadding, padding = pick(legend.options.padding, 8), positionY, positionX, gradientSize = this.chart.renderer.fontMetrics(legend.options.itemStyle.fontSize).h, horizontal = legend.options.layout === 'horizontal', box1, box2, ...
javascript
function (legend, item) { var spacing = legend.options.symbolPadding, padding = pick(legend.options.padding, 8), positionY, positionX, gradientSize = this.chart.renderer.fontMetrics(legend.options.itemStyle.fontSize).h, horizontal = legend.options.layout === 'horizontal', box1, box2, ...
[ "function", "(", "legend", ",", "item", ")", "{", "var", "spacing", "=", "legend", ".", "options", ".", "symbolPadding", ",", "padding", "=", "pick", "(", "legend", ".", "options", ".", "padding", ",", "8", ")", ",", "positionY", ",", "positionX", ",",...
Gets the series' symbol in the legend and extended legend with more information. @param {Object} legend The legend object @param {Object} item The series (this) or point
[ "Gets", "the", "series", "symbol", "in", "the", "legend", "and", "extended", "legend", "with", "more", "information", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/modules/map.src.js#L581-L645
23,559
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/modules/map.src.js
function (paths) { var maxX = Number.MIN_VALUE, minX = Number.MAX_VALUE, maxY = Number.MIN_VALUE, minY = Number.MAX_VALUE; // Find the bounding box each(paths || this.options.data, function (point) { var path = point.path, i = path.length, even = false, // while loop read...
javascript
function (paths) { var maxX = Number.MIN_VALUE, minX = Number.MAX_VALUE, maxY = Number.MIN_VALUE, minY = Number.MAX_VALUE; // Find the bounding box each(paths || this.options.data, function (point) { var path = point.path, i = path.length, even = false, // while loop read...
[ "function", "(", "paths", ")", "{", "var", "maxX", "=", "Number", ".", "MIN_VALUE", ",", "minX", "=", "Number", ".", "MAX_VALUE", ",", "maxY", "=", "Number", ".", "MIN_VALUE", ",", "minY", "=", "Number", ".", "MAX_VALUE", ";", "// Find the bounding box", ...
Get the bounding box of all paths in the map combined.
[ "Get", "the", "bounding", "box", "of", "all", "paths", "in", "the", "map", "combined", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/modules/map.src.js#L650-L695
23,560
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/modules/map.src.js
function (path) { var series = this, even = false, // while loop reads from the end xAxis = series.xAxis, yAxis = series.yAxis, i; // Preserve the original path = [].concat(path); // Do the translation i = path.length; while (i--) { if (typeof path[i] === 'number') { ...
javascript
function (path) { var series = this, even = false, // while loop reads from the end xAxis = series.xAxis, yAxis = series.yAxis, i; // Preserve the original path = [].concat(path); // Do the translation i = path.length; while (i--) { if (typeof path[i] === 'number') { ...
[ "function", "(", "path", ")", "{", "var", "series", "=", "this", ",", "even", "=", "false", ",", "// while loop reads from the end", "xAxis", "=", "series", ".", "xAxis", ",", "yAxis", "=", "series", ".", "yAxis", ",", "i", ";", "// Preserve the original", ...
Translate the path so that it automatically fits into the plot area box @param {Object} path
[ "Translate", "the", "path", "so", "that", "it", "automatically", "fits", "into", "the", "plot", "area", "box" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/modules/map.src.js#L703-L727
23,561
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/modules/map.src.js
function () { var series = this, dataMin = Number.MAX_VALUE, dataMax = Number.MIN_VALUE; series.generatePoints(); each(series.data, function (point) { point.shapeType = 'path'; point.shapeArgs = { d: series.translatePath(point.path) }; // TODO: do point colors in draw...
javascript
function () { var series = this, dataMin = Number.MAX_VALUE, dataMax = Number.MIN_VALUE; series.generatePoints(); each(series.data, function (point) { point.shapeType = 'path'; point.shapeArgs = { d: series.translatePath(point.path) }; // TODO: do point colors in draw...
[ "function", "(", ")", "{", "var", "series", "=", "this", ",", "dataMin", "=", "Number", ".", "MAX_VALUE", ",", "dataMax", "=", "Number", ".", "MIN_VALUE", ";", "series", ".", "generatePoints", "(", ")", ";", "each", "(", "series", ".", "data", ",", "...
Add the path option for data points. Find the max value for color calculation.
[ "Add", "the", "path", "option", "for", "data", "points", ".", "Find", "the", "max", "value", "for", "color", "calculation", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/modules/map.src.js#L737-L762
23,562
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/modules/map.src.js
function (dataMin, dataMax) { var seriesOptions = this.options, valueRanges = seriesOptions.valueRanges, colorRange = seriesOptions.colorRange, colorKey = this.colorKey, from, to; if (colorRange) { from = Color(colorRange.from); to = Color(colorRange.to); } each(this.dat...
javascript
function (dataMin, dataMax) { var seriesOptions = this.options, valueRanges = seriesOptions.valueRanges, colorRange = seriesOptions.colorRange, colorKey = this.colorKey, from, to; if (colorRange) { from = Color(colorRange.from); to = Color(colorRange.to); } each(this.dat...
[ "function", "(", "dataMin", ",", "dataMax", ")", "{", "var", "seriesOptions", "=", "this", ".", "options", ",", "valueRanges", "=", "seriesOptions", ".", "valueRanges", ",", "colorRange", "=", "seriesOptions", ".", "colorRange", ",", "colorKey", "=", "this", ...
In choropleth maps, the color is a result of the value, so this needs translation too
[ "In", "choropleth", "maps", "the", "color", "is", "a", "result", "of", "the", "value", "so", "this", "needs", "translation", "too" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/modules/map.src.js#L767-L811
23,563
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/modules/map.src.js
function () { var series = this, xAxis = series.xAxis, yAxis = series.yAxis, colorKey = series.colorKey; // Make points pass test in drawing each(series.data, function (point) { point.plotY = 1; // pass null test in column.drawPoints if (point[colorKey] === null) { point[colorKey] ...
javascript
function () { var series = this, xAxis = series.xAxis, yAxis = series.yAxis, colorKey = series.colorKey; // Make points pass test in drawing each(series.data, function (point) { point.plotY = 1; // pass null test in column.drawPoints if (point[colorKey] === null) { point[colorKey] ...
[ "function", "(", ")", "{", "var", "series", "=", "this", ",", "xAxis", "=", "series", ".", "xAxis", ",", "yAxis", "=", "series", ".", "yAxis", ",", "colorKey", "=", "series", ".", "colorKey", ";", "// Make points pass test in drawing", "each", "(", "series...
Use the drawPoints method of column, that is able to handle simple shapeArgs. Extend it by assigning the tooltip position.
[ "Use", "the", "drawPoints", "method", "of", "column", "that", "is", "able", "to", "handle", "simple", "shapeArgs", ".", "Extend", "it", "by", "assigning", "the", "tooltip", "position", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/modules/map.src.js#L825-L864
23,564
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/modules/map.src.js
function (init) { var toBox = this.chart.plotBox, level = this.chart.drilldownLevels[this.chart.drilldownLevels.length - 1], fromBox = level.bBox, animationOptions = this.chart.options.drilldown.animation, scale; if (!init) { scale = Math.min(fromBox.width / toBox.width, fromBox.height /...
javascript
function (init) { var toBox = this.chart.plotBox, level = this.chart.drilldownLevels[this.chart.drilldownLevels.length - 1], fromBox = level.bBox, animationOptions = this.chart.options.drilldown.animation, scale; if (!init) { scale = Math.min(fromBox.width / toBox.width, fromBox.height /...
[ "function", "(", "init", ")", "{", "var", "toBox", "=", "this", ".", "chart", ".", "plotBox", ",", "level", "=", "this", ".", "chart", ".", "drilldownLevels", "[", "this", ".", "chart", ".", "drilldownLevels", ".", "length", "-", "1", "]", ",", "from...
Animate in the new series from the clicked point in the old series. Depends on the drilldown.js module
[ "Animate", "in", "the", "new", "series", "from", "the", "clicked", "point", "in", "the", "old", "series", ".", "Depends", "on", "the", "drilldown", ".", "js", "module" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/modules/map.src.js#L870-L904
23,565
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
function(highlighter) { var html = '<div class="toolbar">', items = sh.toolbar.items, list = items.list ; function defaultGetHtml(highlighter, name) { return sh.toolbar.getButtonH...
javascript
function(highlighter) { var html = '<div class="toolbar">', items = sh.toolbar.items, list = items.list ; function defaultGetHtml(highlighter, name) { return sh.toolbar.getButtonH...
[ "function", "(", "highlighter", ")", "{", "var", "html", "=", "'<div class=\"toolbar\">'", ",", "items", "=", "sh", ".", "toolbar", ".", "items", ",", "list", "=", "items", ".", "list", ";", "function", "defaultGetHtml", "(", "highlighter", ",", "name", ")...
Generates HTML markup for the toolbar. @param {Highlighter} highlighter Highlighter instance. @return {String} Returns HTML markup.
[ "Generates", "HTML", "markup", "for", "the", "toolbar", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L794-L812
23,566
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
function(e) { var target = e.target, className = target.className || '' ; function getValue(name) { var r = new RegExp(name + '_(\\w+)'), match = r.exec(className) ...
javascript
function(e) { var target = e.target, className = target.className || '' ; function getValue(name) { var r = new RegExp(name + '_(\\w+)'), match = r.exec(className) ...
[ "function", "(", "e", ")", "{", "var", "target", "=", "e", ".", "target", ",", "className", "=", "target", ".", "className", "||", "''", ";", "function", "getValue", "(", "name", ")", "{", "var", "r", "=", "new", "RegExp", "(", "name", "+", "'_(\\\...
Event handler for a toolbar anchor.
[ "Event", "handler", "for", "a", "toolbar", "anchor", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L833-L858
23,567
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
function(globalParams, element) { var elements = element ? [element] : toArray(document.getElementsByTagName(sh.config.tagName)), conf = sh.config, result = [] ; // support for <SCRIPT TYPE="syntaxhighlighter" /> feature if (co...
javascript
function(globalParams, element) { var elements = element ? [element] : toArray(document.getElementsByTagName(sh.config.tagName)), conf = sh.config, result = [] ; // support for <SCRIPT TYPE="syntaxhighlighter" /> feature if (co...
[ "function", "(", "globalParams", ",", "element", ")", "{", "var", "elements", "=", "element", "?", "[", "element", "]", ":", "toArray", "(", "document", ".", "getElementsByTagName", "(", "sh", ".", "config", ".", "tagName", ")", ")", ",", "conf", "=", ...
Finds all elements on the page which should be processes by SyntaxHighlighter. @param {Object} globalParams Optional parameters which override element's parameters. Only used if element is specified. @param {Object} element Optional element to highlight. If none is provided, all elements in the current document are ...
[ "Finds", "all", "elements", "on", "the", "page", "which", "should", "be", "processes", "by", "SyntaxHighlighter", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L910-L939
23,568
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
function(globalParams, element) { var elements = this.findElements(globalParams, element), propertyName = 'innerHTML', highlighter = null, conf = sh.config ; if (elements.length === 0) return; f...
javascript
function(globalParams, element) { var elements = this.findElements(globalParams, element), propertyName = 'innerHTML', highlighter = null, conf = sh.config ; if (elements.length === 0) return; f...
[ "function", "(", "globalParams", ",", "element", ")", "{", "var", "elements", "=", "this", ".", "findElements", "(", "globalParams", ",", "element", ")", ",", "propertyName", "=", "'innerHTML'", ",", "highlighter", "=", "null", ",", "conf", "=", "sh", ".",...
Shorthand to highlight all elements on the page that are marked as SyntaxHighlighter source code. @param {Object} globalParams Optional parameters which override element's parameters. Only used if element is specified. @param {Object} element Optional element to highlight. If none is provided, all elements in the cu...
[ "Shorthand", "to", "highlight", "all", "elements", "on", "the", "page", "that", "are", "marked", "as", "SyntaxHighlighter", "source", "code", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L952-L1014
23,569
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
indexOf
function indexOf(array, searchElement, fromIndex) { fromIndex = Math.max(fromIndex || 0, 0); for (var i = fromIndex; i < array.length; i++) if(array[i] == searchElement) return i; return -1; }
javascript
function indexOf(array, searchElement, fromIndex) { fromIndex = Math.max(fromIndex || 0, 0); for (var i = fromIndex; i < array.length; i++) if(array[i] == searchElement) return i; return -1; }
[ "function", "indexOf", "(", "array", ",", "searchElement", ",", "fromIndex", ")", "{", "fromIndex", "=", "Math", ".", "max", "(", "fromIndex", "||", "0", ",", "0", ")", ";", "for", "(", "var", "i", "=", "fromIndex", ";", "i", "<", "array", ".", "le...
Finds an index of element in the array. @ignore @param {Object} searchElement @param {Number} fromIndex @return {Number} Returns index of element if found; -1 otherwise.
[ "Finds", "an", "index", "of", "element", "in", "the", "array", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L1182-L1191
23,570
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
merge
function merge(obj1, obj2) { var result = {}, name; for (name in obj1) result[name] = obj1[name]; for (name in obj2) result[name] = obj2[name]; return result; }
javascript
function merge(obj1, obj2) { var result = {}, name; for (name in obj1) result[name] = obj1[name]; for (name in obj2) result[name] = obj2[name]; return result; }
[ "function", "merge", "(", "obj1", ",", "obj2", ")", "{", "var", "result", "=", "{", "}", ",", "name", ";", "for", "(", "name", "in", "obj1", ")", "result", "[", "name", "]", "=", "obj1", "[", "name", "]", ";", "for", "(", "name", "in", "obj2", ...
Merges two objects. Values from obj2 override values in obj1. Function is NOT recursive and works only for one dimensional objects. @param {Object} obj1 First object. @param {Object} obj2 Second object. @return {Object} Returns combination of both objects.
[ "Merges", "two", "objects", ".", "Values", "from", "obj2", "override", "values", "in", "obj1", ".", "Function", "is", "NOT", "recursive", "and", "works", "only", "for", "one", "dimensional", "objects", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L1208-L1219
23,571
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
toBoolean
function toBoolean(value) { var result = { "true" : true, "false" : false }[value]; return result == null ? value : result; }
javascript
function toBoolean(value) { var result = { "true" : true, "false" : false }[value]; return result == null ? value : result; }
[ "function", "toBoolean", "(", "value", ")", "{", "var", "result", "=", "{", "\"true\"", ":", "true", ",", "\"false\"", ":", "false", "}", "[", "value", "]", ";", "return", "result", "==", "null", "?", "value", ":", "result", ";", "}" ]
Attempts to convert string to boolean. @param {String} value Input string. @return {Boolean} Returns true if input was "true", false if input was "false" and value otherwise.
[ "Attempts", "to", "convert", "string", "to", "boolean", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L1226-L1230
23,572
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
popup
function popup(url, name, width, height, options) { var x = (screen.width - width) / 2, y = (screen.height - height) / 2 ; options += ', left=' + x + ', top=' + y + ', width=' + width + ', height=' + height ; options = opti...
javascript
function popup(url, name, width, height, options) { var x = (screen.width - width) / 2, y = (screen.height - height) / 2 ; options += ', left=' + x + ', top=' + y + ', width=' + width + ', height=' + height ; options = opti...
[ "function", "popup", "(", "url", ",", "name", ",", "width", ",", "height", ",", "options", ")", "{", "var", "x", "=", "(", "screen", ".", "width", "-", "width", ")", "/", "2", ",", "y", "=", "(", "screen", ".", "height", "-", "height", ")", "/"...
Opens up a centered popup window. @param {String} url URL to open in the window. @param {String} name Popup name. @param {int} width Popup width. @param {int} height Popup height. @param {String} options window.open() options. @return {Window} Returns window instance.
[ "Opens", "up", "a", "centered", "popup", "window", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L1241-L1257
23,573
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
attachEvent
function attachEvent(obj, type, func, scope) { function handler(e) { e = e || window.event; if (!e.target) { e.target = e.srcElement; e.preventDefault = function() { this.returnValue = false; ...
javascript
function attachEvent(obj, type, func, scope) { function handler(e) { e = e || window.event; if (!e.target) { e.target = e.srcElement; e.preventDefault = function() { this.returnValue = false; ...
[ "function", "attachEvent", "(", "obj", ",", "type", ",", "func", ",", "scope", ")", "{", "function", "handler", "(", "e", ")", "{", "e", "=", "e", "||", "window", ".", "event", ";", "if", "(", "!", "e", ".", "target", ")", "{", "e", ".", "targe...
Adds event handler to the target object. @param {Object} obj Target object. @param {String} type Name of the event. @param {Function} func Handling function.
[ "Adds", "event", "handler", "to", "the", "target", "object", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L1265-L1291
23,574
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
findBrush
function findBrush(alias, showAlert) { var brushes = sh.vars.discoveredBrushes, result = null ; if (brushes == null) { brushes = {}; // Find all brushes for (var brush in sh.brushes) { var info = sh.bru...
javascript
function findBrush(alias, showAlert) { var brushes = sh.vars.discoveredBrushes, result = null ; if (brushes == null) { brushes = {}; // Find all brushes for (var brush in sh.brushes) { var info = sh.bru...
[ "function", "findBrush", "(", "alias", ",", "showAlert", ")", "{", "var", "brushes", "=", "sh", ".", "vars", ".", "discoveredBrushes", ",", "result", "=", "null", ";", "if", "(", "brushes", "==", "null", ")", "{", "brushes", "=", "{", "}", ";", "// F...
Finds a brush by its alias. @param {String} alias Brush alias. @param {Boolean} showAlert Suppresses the alert if false. @return {Brush} Returns bursh constructor if found, null otherwise.
[ "Finds", "a", "brush", "by", "its", "alias", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L1309-L1345
23,575
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
eachLine
function eachLine(str, callback) { var lines = splitLines(str); for (var i = 0; i < lines.length; i++) lines[i] = callback(lines[i], i); // include \r to enable copy-paste on windows (ie8) without getting everything on one line return lines.join('\r\n'); }
javascript
function eachLine(str, callback) { var lines = splitLines(str); for (var i = 0; i < lines.length; i++) lines[i] = callback(lines[i], i); // include \r to enable copy-paste on windows (ie8) without getting everything on one line return lines.join('\r\n'); }
[ "function", "eachLine", "(", "str", ",", "callback", ")", "{", "var", "lines", "=", "splitLines", "(", "str", ")", ";", "for", "(", "var", "i", "=", "0", ";", "i", "<", "lines", ".", "length", ";", "i", "++", ")", "lines", "[", "i", "]", "=", ...
Executes a callback on each line and replaces each line with result from the callback. @param {Object} str Input string. @param {Object} callback Callback function taking one string argument and returning a string.
[ "Executes", "a", "callback", "on", "each", "line", "and", "replaces", "each", "line", "with", "result", "from", "the", "callback", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L1352-L1361
23,576
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
padNumber
function padNumber(number, length) { var result = number.toString(); while (result.length < length) result = '0' + result; return result; }
javascript
function padNumber(number, length) { var result = number.toString(); while (result.length < length) result = '0' + result; return result; }
[ "function", "padNumber", "(", "number", ",", "length", ")", "{", "var", "result", "=", "number", ".", "toString", "(", ")", ";", "while", "(", "result", ".", "length", "<", "length", ")", "result", "=", "'0'", "+", "result", ";", "return", "result", ...
Pads number with zeros until it's length is the same as given length. @param {Number} number Number to pad. @param {Number} length Max string length with. @return {String} Returns a string padded with proper amount of '0'.
[ "Pads", "number", "with", "zeros", "until", "it", "s", "length", "is", "the", "same", "as", "given", "length", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L1484-L1492
23,577
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
processTabs
function processTabs(code, tabSize) { var tab = ''; for (var i = 0; i < tabSize; i++) tab += ' '; return code.replace(/\t/g, tab); }
javascript
function processTabs(code, tabSize) { var tab = ''; for (var i = 0; i < tabSize; i++) tab += ' '; return code.replace(/\t/g, tab); }
[ "function", "processTabs", "(", "code", ",", "tabSize", ")", "{", "var", "tab", "=", "''", ";", "for", "(", "var", "i", "=", "0", ";", "i", "<", "tabSize", ";", "i", "++", ")", "tab", "+=", "' '", ";", "return", "code", ".", "replace", "(", "/"...
Replaces tabs with spaces. @param {String} code Source code. @param {Number} tabSize Size of the tab. @return {String} Returns code with all tabs replaces by spaces.
[ "Replaces", "tabs", "with", "spaces", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L1501-L1509
23,578
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
processSmartTabs
function processSmartTabs(code, tabSize) { var lines = splitLines(code), tab = '\t', spaces = '' ; // Create a string with 1000 spaces to copy spaces from... // It's assumed that there would be no indentation longer than that. for (var i = 0; i < ...
javascript
function processSmartTabs(code, tabSize) { var lines = splitLines(code), tab = '\t', spaces = '' ; // Create a string with 1000 spaces to copy spaces from... // It's assumed that there would be no indentation longer than that. for (var i = 0; i < ...
[ "function", "processSmartTabs", "(", "code", ",", "tabSize", ")", "{", "var", "lines", "=", "splitLines", "(", "code", ")", ",", "tab", "=", "'\\t'", ",", "spaces", "=", "''", ";", "// Create a string with 1000 spaces to copy spaces from...", "// It's assumed that t...
Replaces tabs with smart spaces. @param {String} code Code to fix the tabs in. @param {Number} tabSize Number of spaces in a column. @return {String} Returns code with all tabs replaces with roper amount of spaces.
[ "Replaces", "tabs", "with", "smart", "spaces", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L1518-L1561
23,579
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
insertSpaces
function insertSpaces(line, pos, count) { return line.substr(0, pos) + spaces.substr(0, count) + line.substr(pos + 1, line.length) // pos + 1 will get rid of the tab ; }
javascript
function insertSpaces(line, pos, count) { return line.substr(0, pos) + spaces.substr(0, count) + line.substr(pos + 1, line.length) // pos + 1 will get rid of the tab ; }
[ "function", "insertSpaces", "(", "line", ",", "pos", ",", "count", ")", "{", "return", "line", ".", "substr", "(", "0", ",", "pos", ")", "+", "spaces", ".", "substr", "(", "0", ",", "count", ")", "+", "line", ".", "substr", "(", "pos", "+", "1", ...
This function inserts specified amount of spaces in the string where a tab is while removing that given tab.
[ "This", "function", "inserts", "specified", "amount", "of", "spaces", "in", "the", "string", "where", "a", "tab", "is", "while", "removing", "that", "given", "tab", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L1532-L1538
23,580
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
fixInputString
function fixInputString(str) { var br = /<br\s*\/?>|&lt;br\s*\/?&gt;/gi; if (sh.config.bloggerMode == true) str = str.replace(br, '\n'); if (sh.config.stripBrs == true) str = str.replace(br, ''); return str; }
javascript
function fixInputString(str) { var br = /<br\s*\/?>|&lt;br\s*\/?&gt;/gi; if (sh.config.bloggerMode == true) str = str.replace(br, '\n'); if (sh.config.stripBrs == true) str = str.replace(br, ''); return str; }
[ "function", "fixInputString", "(", "str", ")", "{", "var", "br", "=", "/", "<br\\s*\\/?>|&lt;br\\s*\\/?&gt;", "/", "gi", ";", "if", "(", "sh", ".", "config", ".", "bloggerMode", "==", "true", ")", "str", "=", "str", ".", "replace", "(", "br", ",", "'\\...
Performs various string fixes based on configuration.
[ "Performs", "various", "string", "fixes", "based", "on", "configuration", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L1566-L1577
23,581
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
unindent
function unindent(str) { var lines = splitLines(fixInputString(str)), indents = new Array(), regex = /^\s*/, min = 1000 ; // go through every line and check for common number of indents for (var i = 0; i < lines.length && min > 0; i++) ...
javascript
function unindent(str) { var lines = splitLines(fixInputString(str)), indents = new Array(), regex = /^\s*/, min = 1000 ; // go through every line and check for common number of indents for (var i = 0; i < lines.length && min > 0; i++) ...
[ "function", "unindent", "(", "str", ")", "{", "var", "lines", "=", "splitLines", "(", "fixInputString", "(", "str", ")", ")", ",", "indents", "=", "new", "Array", "(", ")", ",", "regex", "=", "/", "^\\s*", "/", ",", "min", "=", "1000", ";", "// go ...
Unindents a block of text by the lowest common indent amount. @param {String} str Text to unindent. @return {String} Returns unindented text block.
[ "Unindents", "a", "block", "of", "text", "by", "the", "lowest", "common", "indent", "amount", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L1595-L1627
23,582
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
getMatches
function getMatches(code, regexInfo) { function defaultAdd(match, regexInfo) { return match[0]; }; var index = 0, match = null, matches = [], func = regexInfo.func ? regexInfo.func : defaultAdd ; while((match = reg...
javascript
function getMatches(code, regexInfo) { function defaultAdd(match, regexInfo) { return match[0]; }; var index = 0, match = null, matches = [], func = regexInfo.func ? regexInfo.func : defaultAdd ; while((match = reg...
[ "function", "getMatches", "(", "code", ",", "regexInfo", ")", "{", "function", "defaultAdd", "(", "match", ",", "regexInfo", ")", "{", "return", "match", "[", "0", "]", ";", "}", ";", "var", "index", "=", "0", ",", "match", "=", "null", ",", "matches...
Executes given regular expression on provided code and returns all matches that are found. @param {String} code Code to execute regular expression on. @param {Object} regex Regular expression item info from <code>regexList</code> collection. @return {Array} Returns a list of Match objects.
[ "Executes", "given", "regular", "expression", "on", "provided", "code", "and", "returns", "all", "matches", "that", "are", "found", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L1664-L1688
23,583
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
quickCodeHandler
function quickCodeHandler(e) { var target = e.target, highlighterDiv = findParentElement(target, '.syntaxhighlighter'), container = findParentElement(target, '.container'), textarea = document.createElement('textarea'), highlighter ; if (!...
javascript
function quickCodeHandler(e) { var target = e.target, highlighterDiv = findParentElement(target, '.syntaxhighlighter'), container = findParentElement(target, '.container'), textarea = document.createElement('textarea'), highlighter ; if (!...
[ "function", "quickCodeHandler", "(", "e", ")", "{", "var", "target", "=", "e", ".", "target", ",", "highlighterDiv", "=", "findParentElement", "(", "target", ",", "'.syntaxhighlighter'", ")", ",", "container", "=", "findParentElement", "(", "target", ",", "'.c...
Quick code mouse double click handler.
[ "Quick", "code", "mouse", "double", "click", "handler", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L1774-L1820
23,584
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
function(name, defaultValue) { var result = this.params[name]; return toBoolean(result == null ? defaultValue : result); }
javascript
function(name, defaultValue) { var result = this.params[name]; return toBoolean(result == null ? defaultValue : result); }
[ "function", "(", "name", ",", "defaultValue", ")", "{", "var", "result", "=", "this", ".", "params", "[", "name", "]", ";", "return", "toBoolean", "(", "result", "==", "null", "?", "defaultValue", ":", "result", ")", ";", "}" ]
Returns value of the parameter passed to the highlighter. @param {String} name Name of the parameter. @param {Object} defaultValue Default value. @return {Object} Returns found value or default value otherwise.
[ "Returns", "value", "of", "the", "parameter", "passed", "to", "the", "highlighter", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L1943-L1947
23,585
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
function(regexList, code) { var result = []; if (regexList != null) for (var i = 0; i < regexList.length; i++) // BUG: length returns len+1 for array if methods added to prototype chain (oising@gmail.com) if (typeof (regexList[i]) ...
javascript
function(regexList, code) { var result = []; if (regexList != null) for (var i = 0; i < regexList.length; i++) // BUG: length returns len+1 for array if methods added to prototype chain (oising@gmail.com) if (typeof (regexList[i]) ...
[ "function", "(", "regexList", ",", "code", ")", "{", "var", "result", "=", "[", "]", ";", "if", "(", "regexList", "!=", "null", ")", "for", "(", "var", "i", "=", "0", ";", "i", "<", "regexList", ".", "length", ";", "i", "++", ")", "// BUG: length...
Applies all regular expression to the code and stores all found matches in the `this.matches` array. @param {Array} regexList List of regular expressions. @param {String} code Source code. @return {Array} Returns list of matches.
[ "Applies", "all", "regular", "expression", "to", "the", "code", "and", "stores", "all", "found", "matches", "in", "the", "this", ".", "matches", "array", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L1966-L1978
23,586
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
function(matches) { // Optimized by Jose Prado (http://joseprado.com) for (var i = 0; i < matches.length; i++) { if (matches[i] === null) continue; var itemI = matches[i], itemIEndPos = itemI.index + ite...
javascript
function(matches) { // Optimized by Jose Prado (http://joseprado.com) for (var i = 0; i < matches.length; i++) { if (matches[i] === null) continue; var itemI = matches[i], itemIEndPos = itemI.index + ite...
[ "function", "(", "matches", ")", "{", "// Optimized by Jose Prado (http://joseprado.com)", "for", "(", "var", "i", "=", "0", ";", "i", "<", "matches", ".", "length", ";", "i", "++", ")", "{", "if", "(", "matches", "[", "i", "]", "===", "null", ")", "co...
Checks to see if any of the matches are inside of other matches. This process would get rid of highligted strings inside comments, keywords inside strings and so on.
[ "Checks", "to", "see", "if", "any", "of", "the", "matches", "are", "inside", "of", "other", "matches", ".", "This", "process", "would", "get", "rid", "of", "highligted", "strings", "inside", "comments", "keywords", "inside", "strings", "and", "so", "on", "...
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L1985-L2013
23,587
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
function(lineNumber) { var list = this.getParam('highlight', []); if (typeof(list) != 'object' && list.push == null) list = [ list ]; return indexOf(list, lineNumber.toString()) != -1; }
javascript
function(lineNumber) { var list = this.getParam('highlight', []); if (typeof(list) != 'object' && list.push == null) list = [ list ]; return indexOf(list, lineNumber.toString()) != -1; }
[ "function", "(", "lineNumber", ")", "{", "var", "list", "=", "this", ".", "getParam", "(", "'highlight'", ",", "[", "]", ")", ";", "if", "(", "typeof", "(", "list", ")", "!=", "'object'", "&&", "list", ".", "push", "==", "null", ")", "list", "=", ...
Determines if specified line number is in the highlighted list.
[ "Determines", "if", "specified", "line", "number", "is", "in", "the", "highlighted", "list", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L2036-L2044
23,588
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
function(code) { if (code === null) code = ''; this.code = code; var div = this.create('div'); // create main HTML div.innerHTML = this.getHtml(code); // set up click handlers if (this.getParam('toolbar')) ...
javascript
function(code) { if (code === null) code = ''; this.code = code; var div = this.create('div'); // create main HTML div.innerHTML = this.getHtml(code); // set up click handlers if (this.getParam('toolbar')) ...
[ "function", "(", "code", ")", "{", "if", "(", "code", "===", "null", ")", "code", "=", "''", ";", "this", ".", "code", "=", "code", ";", "var", "div", "=", "this", ".", "create", "(", "'div'", ")", ";", "// create main HTML", "div", ".", "innerHTML...
Highlights the code and returns complete HTML. @param {String} code Code to highlight. @return {Element} Returns container DIV element with all markup.
[ "Highlights", "the", "code", "and", "returns", "complete", "HTML", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L2293-L2313
23,589
sealice/koa2-ueditor
example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
function(regexGroup) { var regex = { 'end' : regexGroup.right.source }; if(regexGroup.eof) regex.end = "(?:(?:" + regex.end + ")|$)"; this.htmlScript = { left : { regex: regexGroup.left, css: 'script' }, right : { regex: regex...
javascript
function(regexGroup) { var regex = { 'end' : regexGroup.right.source }; if(regexGroup.eof) regex.end = "(?:(?:" + regex.end + ")|$)"; this.htmlScript = { left : { regex: regexGroup.left, css: 'script' }, right : { regex: regex...
[ "function", "(", "regexGroup", ")", "{", "var", "regex", "=", "{", "'end'", ":", "regexGroup", ".", "right", ".", "source", "}", ";", "if", "(", "regexGroup", ".", "eof", ")", "regex", ".", "end", "=", "\"(?:(?:\"", "+", "regex", ".", "end", "+", "...
Makes a brush compatible with the `html-script` functionality. @param {Object} regexGroup Object containing `left` and `right` regular expressions.
[ "Makes", "a", "brush", "compatible", "with", "the", "html", "-", "script", "functionality", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/SyntaxHighlighter/shCore.js#L2357-L2374
23,590
sealice/koa2-ueditor
example/public/ueditor/third-party/video-js/video.dev.js
function(id, options, ready){ var tag; // Element of ID // Allow for element or ID to be passed in // String ID if (typeof id === 'string') { // Adjust for jQuery ID syntax if (id.indexOf('#') === 0) { id = id.slice(1); } // If a player instance has already been created for this ID retu...
javascript
function(id, options, ready){ var tag; // Element of ID // Allow for element or ID to be passed in // String ID if (typeof id === 'string') { // Adjust for jQuery ID syntax if (id.indexOf('#') === 0) { id = id.slice(1); } // If a player instance has already been created for this ID retu...
[ "function", "(", "id", ",", "options", ",", "ready", ")", "{", "var", "tag", ";", "// Element of ID", "// Allow for element or ID to be passed in", "// String ID", "if", "(", "typeof", "id", "===", "'string'", ")", "{", "// Adjust for jQuery ID syntax", "if", "(", ...
Doubles as the main function for users to create a player instance and also the main library object. **ALIASES** videojs, _V_ (deprecated) The `vjs` function can be used to initialize or retrieve a player. var myPlayer = vjs('my_video_id'); @param {String|Element} id Video element or video element ID @param ...
[ "Doubles", "as", "the", "main", "function", "for", "users", "to", "create", "a", "player", "instance", "and", "also", "the", "main", "library", "object", "." ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/video-js/video.dev.js#L26-L60
23,591
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/modules/data.src.js
function () { var self = this, options = this.options, csv = options.csv, columns = this.columns, startRow = options.startRow || 0, endRow = options.endRow || Number.MAX_VALUE, startColumn = options.startColumn || 0, endColumn = options.endColumn || Number.MAX_VALUE, lines, activeRowNo = 0;...
javascript
function () { var self = this, options = this.options, csv = options.csv, columns = this.columns, startRow = options.startRow || 0, endRow = options.endRow || Number.MAX_VALUE, startColumn = options.startColumn || 0, endColumn = options.endColumn || Number.MAX_VALUE, lines, activeRowNo = 0;...
[ "function", "(", ")", "{", "var", "self", "=", "this", ",", "options", "=", "this", ".", "options", ",", "csv", "=", "options", ".", "csv", ",", "columns", "=", "this", ".", "columns", ",", "startRow", "=", "options", ".", "startRow", "||", "0", ",...
Parse a CSV input string
[ "Parse", "a", "CSV", "input", "string" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/modules/data.src.js#L166-L208
23,592
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/modules/data.src.js
function () { var options = this.options, table = options.table, columns = this.columns, startRow = options.startRow || 0, endRow = options.endRow || Number.MAX_VALUE, startColumn = options.startColumn || 0, endColumn = options.endColumn || Number.MAX_VALUE, colNo; if (table) { if (t...
javascript
function () { var options = this.options, table = options.table, columns = this.columns, startRow = options.startRow || 0, endRow = options.endRow || Number.MAX_VALUE, startColumn = options.startColumn || 0, endColumn = options.endColumn || Number.MAX_VALUE, colNo; if (table) { if (t...
[ "function", "(", ")", "{", "var", "options", "=", "this", ".", "options", ",", "table", "=", "options", ".", "table", ",", "columns", "=", "this", ".", "columns", ",", "startRow", "=", "options", ".", "startRow", "||", "0", ",", "endRow", "=", "optio...
Parse a HTML table
[ "Parse", "a", "HTML", "table" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/modules/data.src.js#L213-L247
23,593
sealice/koa2-ueditor
example/public/ueditor/third-party/highcharts/modules/data.src.js
function (rows) { var row, rowsLength, col, colsLength, columns; if (rows) { columns = []; rowsLength = rows.length; for (row = 0; row < rowsLength; row++) { colsLength = rows[row].length; for (col = 0; col < colsLength; col++) { if (!columns[col]) { columns[col] = []; ...
javascript
function (rows) { var row, rowsLength, col, colsLength, columns; if (rows) { columns = []; rowsLength = rows.length; for (row = 0; row < rowsLength; row++) { colsLength = rows[row].length; for (col = 0; col < colsLength; col++) { if (!columns[col]) { columns[col] = []; ...
[ "function", "(", "rows", ")", "{", "var", "row", ",", "rowsLength", ",", "col", ",", "colsLength", ",", "columns", ";", "if", "(", "rows", ")", "{", "columns", "=", "[", "]", ";", "rowsLength", "=", "rows", ".", "length", ";", "for", "(", "row", ...
Reorganize rows into columns
[ "Reorganize", "rows", "into", "columns" ]
89fa1cc70f0375fafe023c88692fc27c83f2cd98
https://github.com/sealice/koa2-ueditor/blob/89fa1cc70f0375fafe023c88692fc27c83f2cd98/example/public/ueditor/third-party/highcharts/modules/data.src.js#L425-L446
23,594
anvaka/ngraph.centrality
src/closeness.js
closeness
function closeness(graph, oriented) { var Q = []; // list of predecessors on shortest paths from source // distance from source var dist = Object.create(null); var currentNode; var centrality = Object.create(null); graph.forEachNode(setCentralityToZero); graph.forEachNode(calculateCentrality...
javascript
function closeness(graph, oriented) { var Q = []; // list of predecessors on shortest paths from source // distance from source var dist = Object.create(null); var currentNode; var centrality = Object.create(null); graph.forEachNode(setCentralityToZero); graph.forEachNode(calculateCentrality...
[ "function", "closeness", "(", "graph", ",", "oriented", ")", "{", "var", "Q", "=", "[", "]", ";", "// list of predecessors on shortest paths from source\r", "// distance from source\r", "var", "dist", "=", "Object", ".", "create", "(", "null", ")", ";", "var", "...
In a connected graph, the normalized closeness centrality of a node is the average length of the shortest path between the node and all other nodes in the graph. Thus the more central a node is, the closer it is to all other nodes.
[ "In", "a", "connected", "graph", "the", "normalized", "closeness", "centrality", "of", "a", "node", "is", "the", "average", "length", "of", "the", "shortest", "path", "between", "the", "node", "and", "all", "other", "nodes", "in", "the", "graph", ".", "Thu...
bfec9eb729e5f819490a4421486f6e1ae2232ba0
https://github.com/anvaka/ngraph.centrality/blob/bfec9eb729e5f819490a4421486f6e1ae2232ba0/src/closeness.js#L8-L70
23,595
anvaka/ngraph.centrality
src/eccentricity.js
eccentricity
function eccentricity(graph, oriented) { var Q = []; // distance from source var dist = Object.create(null); var currentNode; var centrality = Object.create(null); graph.forEachNode(setCentralityToZero); graph.forEachNode(calculateCentrality); return centrality; function setCentrality...
javascript
function eccentricity(graph, oriented) { var Q = []; // distance from source var dist = Object.create(null); var currentNode; var centrality = Object.create(null); graph.forEachNode(setCentralityToZero); graph.forEachNode(calculateCentrality); return centrality; function setCentrality...
[ "function", "eccentricity", "(", "graph", ",", "oriented", ")", "{", "var", "Q", "=", "[", "]", ";", "// distance from source\r", "var", "dist", "=", "Object", ".", "create", "(", "null", ")", ";", "var", "currentNode", ";", "var", "centrality", "=", "Ob...
The eccentricity centrality of a node is the greatest distance between that node and any other node in the network.
[ "The", "eccentricity", "centrality", "of", "a", "node", "is", "the", "greatest", "distance", "between", "that", "node", "and", "any", "other", "node", "in", "the", "network", "." ]
bfec9eb729e5f819490a4421486f6e1ae2232ba0
https://github.com/anvaka/ngraph.centrality/blob/bfec9eb729e5f819490a4421486f6e1ae2232ba0/src/eccentricity.js#L7-L64
23,596
anywhichway/tlx
benchmarks/dbmon/lib/monitor.js
initPerfMonitor
function initPerfMonitor(options) { if (!initialized) { if (options.container) { container = options.container; } initialized = true; } }
javascript
function initPerfMonitor(options) { if (!initialized) { if (options.container) { container = options.container; } initialized = true; } }
[ "function", "initPerfMonitor", "(", "options", ")", "{", "if", "(", "!", "initialized", ")", "{", "if", "(", "options", ".", "container", ")", "{", "container", "=", "options", ".", "container", ";", "}", "initialized", "=", "true", ";", "}", "}" ]
Initialize Performance Monitor
[ "Initialize", "Performance", "Monitor" ]
732bc3828d2333ea757b8772e8e6b7a6b4070637
https://github.com/anywhichway/tlx/blob/732bc3828d2333ea757b8772e8e6b7a6b4070637/benchmarks/dbmon/lib/monitor.js#L41-L48
23,597
anywhichway/tlx
benchmarks/dbmon/lib/monitor.js
checkInit
function checkInit() { if (!container) { container = document.createElement("div"); container.style.cssText = "position: fixed;" + "opacity: 0.9;" + "right: 0;" + "bottom: 0"; document.body.appendChild(container); } initialized = true; }
javascript
function checkInit() { if (!container) { container = document.createElement("div"); container.style.cssText = "position: fixed;" + "opacity: 0.9;" + "right: 0;" + "bottom: 0"; document.body.appendChild(container); } initialized = true; }
[ "function", "checkInit", "(", ")", "{", "if", "(", "!", "container", ")", "{", "container", "=", "document", ".", "createElement", "(", "\"div\"", ")", ";", "container", ".", "style", ".", "cssText", "=", "\"position: fixed;\"", "+", "\"opacity: 0.9;\"", "+"...
Check that everything is properly initialized
[ "Check", "that", "everything", "is", "properly", "initialized" ]
732bc3828d2333ea757b8772e8e6b7a6b4070637
https://github.com/anywhichway/tlx/blob/732bc3828d2333ea757b8772e8e6b7a6b4070637/benchmarks/dbmon/lib/monitor.js#L52-L59
23,598
anywhichway/tlx
benchmarks/dbmon/lib/monitor.js
scheduleTask
function scheduleTask(task) { frameTasks.push(task); if (rafId === -1) { requestAnimationFrame(function (t) { rafId = -1; var tasks = frameTasks; frameTasks = []; for (var i = 0; i < tasks.length; i++) { task...
javascript
function scheduleTask(task) { frameTasks.push(task); if (rafId === -1) { requestAnimationFrame(function (t) { rafId = -1; var tasks = frameTasks; frameTasks = []; for (var i = 0; i < tasks.length; i++) { task...
[ "function", "scheduleTask", "(", "task", ")", "{", "frameTasks", ".", "push", "(", "task", ")", ";", "if", "(", "rafId", "===", "-", "1", ")", "{", "requestAnimationFrame", "(", "function", "(", "t", ")", "{", "rafId", "=", "-", "1", ";", "var", "t...
Schedule new task that will be executed on the next frame
[ "Schedule", "new", "task", "that", "will", "be", "executed", "on", "the", "next", "frame" ]
732bc3828d2333ea757b8772e8e6b7a6b4070637
https://github.com/anywhichway/tlx/blob/732bc3828d2333ea757b8772e8e6b7a6b4070637/benchmarks/dbmon/lib/monitor.js#L63-L75
23,599
anywhichway/tlx
benchmarks/dbmon/lib/monitor.js
startFPSMonitor
function startFPSMonitor() { checkInit(); var data = new Data(); var w = new MonitorWidget("FPS", "", 2 /* HideMax */ | 1 /* HideMin */ | 4 /* HideMean */ | 32 /* RoundValues */); container.appendChild(w.element); var samples = []; var last = 0; function update(no...
javascript
function startFPSMonitor() { checkInit(); var data = new Data(); var w = new MonitorWidget("FPS", "", 2 /* HideMax */ | 1 /* HideMin */ | 4 /* HideMean */ | 32 /* RoundValues */); container.appendChild(w.element); var samples = []; var last = 0; function update(no...
[ "function", "startFPSMonitor", "(", ")", "{", "checkInit", "(", ")", ";", "var", "data", "=", "new", "Data", "(", ")", ";", "var", "w", "=", "new", "MonitorWidget", "(", "\"FPS\"", ",", "\"\"", ",", "2", "/* HideMax */", "|", "1", "/* HideMin */", "|",...
Start FPS monitor
[ "Start", "FPS", "monitor" ]
732bc3828d2333ea757b8772e8e6b7a6b4070637
https://github.com/anywhichway/tlx/blob/732bc3828d2333ea757b8772e8e6b7a6b4070637/benchmarks/dbmon/lib/monitor.js#L206-L233