@hpcc-js/api 2.14.3 → 2.14.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/__package__.ts","../src/I1DChart.ts","../src/I2DChart.ts","../src/I2DAggrChart.ts","../src/IGraph.ts","../src/IHighlight.ts","../src/IInput.ts","../src/INDChart.ts","../src/Tooltip.ts","../../../node_modules/style-inject/dist/style-inject.es.js","../src/ITooltip.ts","../src/ITree.ts"],"sourcesContent":["export const PKG_NAME = \"@hpcc-js/api\";\r\nexport const PKG_VERSION = \"2.14.2\";\r\nexport const BUILD_VERSION = \"2.108.6\";\r\n","import { Palette } from \"@hpcc-js/common\";\r\n\r\nexport function I1DChart() {\r\n}\r\nI1DChart.prototype._dataFamily = \"1D\";\r\nI1DChart.prototype._palette = Palette.rainbow(\"default\");\r\n\r\n// Events ---\r\nI1DChart.prototype.click = function (row, column, selected) {\r\n};\r\n\r\nI1DChart.prototype.dblclick = function (row, column, selected) {\r\n};\r\n","import { Palette } from \"@hpcc-js/common\";\r\nimport { hsl as d3Hsl } from \"d3-color\";\r\n\r\nexport function I2DChart() {\r\n}\r\nI2DChart.prototype._dataFamily = \"2D\";\r\nI2DChart.prototype._palette = Palette.ordinal(\"default\");\r\n\r\nI2DChart.prototype.fillColor = function (row: any[], column, value, origRow): string {\r\n return this._palette(row[0]);\r\n};\r\n\r\nI2DChart.prototype.strokeColor = function (row: any[], column, value, origRow): string {\r\n return d3Hsl(this.fillColor(row, column, value, origRow)).darker().toString();\r\n};\r\n\r\nI2DChart.prototype.textColor = function (row: any[], column, value, origRow): string {\r\n return Palette.textColor(this.fillColor(row, column, value, origRow));\r\n};\r\n\r\n// Events ---\r\nI2DChart.prototype.click = function (row: object, column, selected) {\r\n};\r\n\r\nI2DChart.prototype.dblclick = function (row: object, column, selected) {\r\n};\r\n","import { Palette } from \"@hpcc-js/common\";\r\nimport { hsl as d3Hsl } from \"d3-color\";\r\n\r\nexport function I2DAggrChart() {\r\n}\r\nI2DAggrChart.prototype._palette = Palette.rainbow(\"default\");\r\n\r\nI2DAggrChart.prototype.fillColor = function (row: any[][], column, value): string {\r\n return this._palette(row.length);\r\n};\r\n\r\nI2DAggrChart.prototype.strokeColor = function (row: any[][], column, value): string {\r\n return d3Hsl(this.fillColor(row, column, value)).darker().toString();\r\n};\r\n\r\nI2DAggrChart.prototype.textColor = function (row: any[][], column, value): string {\r\n return Palette.textColor(this.fillColor(row, column, value));\r\n};\r\n\r\n// Events ---\r\nI2DAggrChart.prototype.click = function (row: object[], column, selected) {\r\n};\r\n\r\nI2DAggrChart.prototype.dblclick = function (row: object[], column, selected) {\r\n};\r\n","export function IGraph() {\r\n}\r\nIGraph.prototype._dataFamily = \"graph\";\r\n\r\n// Events ---\r\nIGraph.prototype.vertex_click = function (_row, _col, _sel, more) {\r\n if (more && more.vertex) {\r\n }\r\n};\r\n\r\nIGraph.prototype.vertex_dblclick = function (_row, _col, _sel, more) {\r\n if (more && more.vertex) {\r\n }\r\n};\r\n\r\nIGraph.prototype.edge_click = function (_row, _col, _sel, more) {\r\n if (more && more.edge) {\r\n }\r\n};\r\n\r\nIGraph.prototype.edge_dblclick = function (_row, _col, _sel, more) {\r\n if (more && more.edge) {\r\n }\r\n};\r\n","export interface IHighlight {\r\n highlightColumn(column: string): this;\r\n}\r\n\r\nexport function instanceOfIHighlight(w: any): w is IHighlight {\r\n return typeof (w as any).highlightColumn === \"function\";\r\n}\r\n","import { Widget } from \"@hpcc-js/common\";\r\n\r\n// Use old school class declaration as this is a mixin ---\r\nexport function IInput() {\r\n}\r\nIInput.prototype = Object.create(Widget.prototype);\r\nIInput.prototype.constructor = IInput;\r\n\r\n// abstract target(): any;\r\n// abstract target(_: any): this;\r\n\r\n// Implementation ---\r\nIInput.prototype.isValid = function () {\r\n if (this.validate()) {\r\n const re = new RegExp(this.validate());\r\n if (!re.test(this.value())) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n};\r\n\r\nIInput.prototype.hasValue = function () {\r\n if (typeof (this as any).type === \"function\") {\r\n switch ((this as any).type()) {\r\n case \"radio\":\r\n /* falls through */\r\n case \"checkbox\":\r\n if (this.value() && this.value() !== \"false\") {\r\n return true;\r\n }\r\n break;\r\n default:\r\n if (this.value()) {\r\n return true;\r\n }\r\n break;\r\n }\r\n return false;\r\n }\r\n return this.value() !== \"\";\r\n};\r\n\r\n// Events ---\r\nIInput.prototype.blur = function (_w) {\r\n};\r\nIInput.prototype.keyup = function (_w) {\r\n};\r\nIInput.prototype.focus = function (_w) {\r\n};\r\nIInput.prototype.click = function (_w) {\r\n};\r\nIInput.prototype.dblclick = function (_w) {\r\n};\r\nIInput.prototype.change = function (_w, complete: boolean) {\r\n};\r\n\r\nIInput.prototype.resetValue = function (w) {\r\n w.value(w._inputElement[0].node().value);\r\n};\r\n\r\nIInput.prototype.disable = function (disable) {\r\n this._inputElement.forEach(function (e, idx) {\r\n e.attr(\"disabled\", disable ? \"disabled\" : null);\r\n });\r\n};\r\n\r\nIInput.prototype.setFocus = function () {\r\n if (this._inputElement.length) {\r\n this._inputElement[0].node().focus();\r\n }\r\n};\r\n\r\nexport interface IInput {\r\n name: { (): string; (_: string): IInput };\r\n name_exists: () => boolean;\r\n label: { (): string; (_: string): IInput };\r\n label_exists: () => boolean;\r\n value: { (): any; (_: any): IInput };\r\n value_exists: () => boolean;\r\n validate: { (): string; (_: string): IInput };\r\n validate_exists: () => boolean;\r\n}\r\nIInput.prototype.publish(\"name\", \"\", \"string\", \"HTML name for the input\");\r\nIInput.prototype.publish(\"label\", \"\", \"string\", \"Descriptive label\");\r\nIInput.prototype.publish(\"value\", \"\", \"string\", \"Input Current Value\");\r\nIInput.prototype.publish(\"validate\", null, \"string\", \"Input Validation\");\r\n","import { Palette } from \"@hpcc-js/common\";\r\nimport { hsl as d3Hsl } from \"d3-color\";\r\n\r\nexport function INDChart() {\r\n}\r\nINDChart.prototype._dataFamily = \"ND\";\r\nINDChart.prototype._palette = Palette.ordinal(\"default\");\r\n\r\nINDChart.prototype.fillColor = function (row: any[], column: string, value: number, origRow: any): string {\r\n return this._palette(column);\r\n};\r\n\r\nINDChart.prototype.strokeColor = function (row: any[], column: string, value: number, origRow: any): string {\r\n return d3Hsl(this.fillColor(row, column, value, origRow)).darker().toString();\r\n};\r\n\r\nINDChart.prototype.textColor = function (row: any[], column: string, value: number, origRow: any): string {\r\n return Palette.textColor(this.fillColor(row, column, value, origRow));\r\n};\r\n\r\n// Events ---\r\nINDChart.prototype.click = function (row, column, selected) {\r\n};\r\n\r\nINDChart.prototype.dblclick = function (row, column, selected) {\r\n};\r\n","// Based on https://github.com/GordonSmith/d3-tip forked from https://github.com/Caged/d3-tip\r\n\r\nimport { map } from \"d3-collection\";\r\nimport { select, selection } from \"d3-selection\";\r\n\r\nexport function tip() {\r\n let direction = d3TipDirection;\r\n let offset = d3TipOffset;\r\n let html = d3TipHTML;\r\n let rootElement = functor(document.body);\r\n let node = initNode();\r\n let svg = null;\r\n let point = null;\r\n let target = null;\r\n\r\n const tip: any = function (vis) {\r\n svg = getSVGNode(vis);\r\n if (!svg) return;\r\n point = svg.createSVGPoint();\r\n const re = rootElement();\r\n if (!re) return;\r\n if (!node) return;\r\n re.appendChild(node);\r\n };\r\n\r\n // Public - show the tooltip on the screen\r\n //\r\n // Returns a tip\r\n tip.show = function (d, idx, arr) {\r\n target = arr[idx];\r\n const args = Array.prototype.slice.call(arguments);\r\n const content = html.apply(this, args);\r\n if (content === null) {\r\n return tip;\r\n }\r\n const poffset = offset.apply(this, args);\r\n const nodel = getNodeEl();\r\n let i = directions.length;\r\n let coords;\r\n const root_bbox = rootElement().getBoundingClientRect();\r\n nodel.html(content)\r\n .style(\"opacity\", 1).style(\"pointer-events\", \"all\");\r\n\r\n while (i--) nodel.classed(directions[i], false);\r\n let placement_success = false;\r\n const placement_overflow = {};\r\n let least_overflow_direction = directions[0];\r\n for (let i = 0; i < directions.length; i++) {\r\n placement_success = _placement_attempt(directions[i]);\r\n if (placement_success) break;\r\n }\r\n if (!placement_success) {\r\n nodel.classed(\"notick\", true);\r\n const top_offset = _vertical_adjustment(placement_overflow[least_overflow_direction]);\r\n const left_offset = _horizontal_adjustment(placement_overflow[least_overflow_direction]);\r\n _placement_attempt(least_overflow_direction, top_offset, left_offset);\r\n } else {\r\n nodel.classed(\"notick\", false);\r\n }\r\n return tip;\r\n\r\n function _horizontal_adjustment(overflow_obj) {\r\n if (overflow_obj.left > overflow_obj.right) {\r\n return overflow_obj.left > 0 ? -overflow_obj.left : 0;\r\n } else {\r\n return overflow_obj.right > 0 ? overflow_obj.right : 0;\r\n }\r\n }\r\n function _vertical_adjustment(overflow_obj) {\r\n if (overflow_obj.top > overflow_obj.bottom) {\r\n return overflow_obj.top > 0 ? -overflow_obj.top : 0;\r\n } else {\r\n return overflow_obj.bottom;\r\n }\r\n }\r\n\r\n function _placement_attempt(_dir, _top_offset?, _left_offset?) {\r\n _top_offset = _top_offset ? _top_offset : 0;\r\n _left_offset = _left_offset ? _left_offset : 0;\r\n nodel.style(\"white-space\", \"nowrap\");\r\n coords = directionCallbacks.get(_dir).apply(this);\r\n nodel.classed(_dir, true)\r\n .style(\"top\", (coords.top + poffset[0] - _top_offset) + \"px\")\r\n .style(\"left\", (coords.left + poffset[1] - _left_offset) + \"px\");\r\n const nodel_bbox = nodel.node().getBoundingClientRect();\r\n const ret = nodel_bbox.top > root_bbox.top\r\n && nodel_bbox.left > root_bbox.left\r\n && nodel_bbox.bottom < root_bbox.bottom\r\n && nodel_bbox.right < root_bbox.right\r\n ;\r\n placement_overflow[_dir] = {\r\n top: root_bbox.top - nodel_bbox.top,\r\n right: nodel_bbox.right - root_bbox.right,\r\n bottom: nodel_bbox.bottom - root_bbox.bottom,\r\n left: root_bbox.left - nodel_bbox.left\r\n };\r\n nodel.style(\"white-space\", \"normal\");\r\n placement_overflow[_dir].total_overflow = Object.keys(placement_overflow[_dir])\r\n .filter(side => placement_overflow[_dir][side] > 0)\r\n .reduce((sum, side) => {\r\n const side_overflow = placement_overflow[_dir][side];\r\n return sum + side_overflow;\r\n }, 0);\r\n if (placement_overflow[least_overflow_direction].total_overflow > placement_overflow[_dir].total_overflow) {\r\n least_overflow_direction = _dir;\r\n }\r\n if (!ret) {\r\n nodel.classed(_dir, false);\r\n }\r\n return ret;\r\n }\r\n };\r\n\r\n // Public - hide the tooltip\r\n //\r\n // Returns a tip\r\n tip.hide = function () {\r\n const nodel = getNodeEl();\r\n nodel.style(\"opacity\", 0).style(\"pointer-events\", \"none\");\r\n return tip;\r\n };\r\n\r\n // Public: Proxy attr calls to the d3 tip container.\r\n // Sets or gets attribute value.\r\n //\r\n // n - name of the attribute\r\n // v - value of the attribute\r\n //\r\n // Returns tip or attribute value\r\n // eslint-disable-next-line no-unused-vars\r\n tip.attr = function (n, v) {\r\n if (arguments.length < 2 && typeof n === \"string\") {\r\n return getNodeEl().attr(n);\r\n }\r\n\r\n const args = Array.prototype.slice.call(arguments);\r\n selection.prototype.attr.apply(getNodeEl(), args);\r\n return tip;\r\n };\r\n\r\n // Public: Proxy style calls to the d3 tip container.\r\n // Sets or gets a style value.\r\n //\r\n // n - name of the property\r\n // v - value of the property\r\n //\r\n // Returns tip or style property value\r\n // eslint-disable-next-line no-unused-vars\r\n tip.style = function (n, v) {\r\n if (arguments.length < 2 && typeof n === \"string\") {\r\n return getNodeEl().style(n);\r\n }\r\n\r\n const args = Array.prototype.slice.call(arguments);\r\n selection.prototype.style.apply(getNodeEl(), args);\r\n return tip;\r\n };\r\n\r\n // Public: Set or get the direction of the tooltip\r\n //\r\n // v - One of n(north), s(south), e(east), or w(west), nw(northwest),\r\n // sw(southwest), ne(northeast) or se(southeast)\r\n //\r\n // Returns tip or direction\r\n tip.direction = function (v) {\r\n if (!arguments.length) return direction;\r\n direction = v == null ? v : functor(v);\r\n\r\n return tip;\r\n };\r\n\r\n // Public: Sets or gets the offset of the tip\r\n //\r\n // v - Array of [x, y] offset\r\n //\r\n // Returns offset or\r\n tip.offset = function (v) {\r\n if (!arguments.length) return offset;\r\n offset = v == null ? v : functor(v);\r\n\r\n return tip;\r\n };\r\n\r\n // Public: sets or gets the html value of the tooltip\r\n //\r\n // v - String value of the tip\r\n //\r\n // Returns html value or tip\r\n tip.html = function (v) {\r\n if (!arguments.length) return html;\r\n html = v == null ? v : functor(v);\r\n\r\n return tip;\r\n };\r\n\r\n // Public: sets or gets the root element anchor of the tooltip\r\n //\r\n // v - root element of the tooltip\r\n //\r\n // Returns root node of tip\r\n tip.rootElement = function (v) {\r\n if (!arguments.length) return rootElement;\r\n rootElement = functor(v);\r\n\r\n return tip;\r\n };\r\n\r\n // Public: destroys the tooltip and removes it from the DOM\r\n //\r\n // Returns a tip\r\n tip.destroy = function () {\r\n if (node) {\r\n getNodeEl().remove();\r\n node = null;\r\n }\r\n return tip;\r\n };\r\n\r\n function d3TipDirection() { return \"n\"; }\r\n function d3TipOffset() { return [0, 0]; }\r\n function d3TipHTML() { return \" \"; }\r\n\r\n const directionCallbacks = map({\r\n n: directionNorth,\r\n s: directionSouth,\r\n e: directionEast,\r\n w: directionWest,\r\n nw: directionNorthWest,\r\n ne: directionNorthEast,\r\n sw: directionSouthWest,\r\n se: directionSouthEast\r\n });\r\n const directions = directionCallbacks.keys();\r\n\r\n function directionNorth() {\r\n const bbox = getScreenBBox(window);\r\n return {\r\n top: bbox.n.y - node.offsetHeight,\r\n left: bbox.n.x - node.offsetWidth / 2\r\n };\r\n }\r\n\r\n function directionSouth() {\r\n const bbox = getScreenBBox(window);\r\n return {\r\n top: bbox.s.y + 8,\r\n left: bbox.s.x - node.offsetWidth / 2\r\n };\r\n }\r\n\r\n function directionEast() {\r\n const bbox = getScreenBBox(window);\r\n return {\r\n top: bbox.e.y - node.offsetHeight / 2,\r\n left: bbox.e.x + 8\r\n };\r\n }\r\n\r\n function directionWest() {\r\n const bbox = getScreenBBox(window);\r\n return {\r\n top: bbox.w.y - node.offsetHeight / 2,\r\n left: bbox.w.x - node.offsetWidth - 8\r\n };\r\n }\r\n\r\n function directionNorthWest() {\r\n const bbox = getScreenBBox(window);\r\n return {\r\n top: bbox.nw.y - node.offsetHeight,\r\n left: bbox.nw.x - node.offsetWidth\r\n };\r\n }\r\n\r\n function directionNorthEast() {\r\n const bbox = getScreenBBox(window);\r\n return {\r\n top: bbox.ne.y - node.offsetHeight,\r\n left: bbox.ne.x\r\n };\r\n }\r\n\r\n function directionSouthWest() {\r\n const bbox = getScreenBBox(window);\r\n return {\r\n top: bbox.sw.y,\r\n left: bbox.sw.x - node.offsetWidth\r\n };\r\n }\r\n\r\n function directionSouthEast() {\r\n const bbox = getScreenBBox(window);\r\n return {\r\n top: bbox.se.y,\r\n left: bbox.se.x\r\n };\r\n }\r\n\r\n function initNode() {\r\n const div = select(document.createElement(\"div\"));\r\n div\r\n .attr(\"class\", \"d3-tip\")\r\n .style(\"position\", \"absolute\")\r\n .style(\"top\", \"0px\")\r\n .style(\"opacity\", 0)\r\n .style(\"pointer-events\", \"none\")\r\n .style(\"box-sizing\", \"border-box\");\r\n\r\n return div.node();\r\n }\r\n\r\n function getSVGNode(element) {\r\n const svgNode = element.node();\r\n if (!svgNode) return null;\r\n if (svgNode.tagName.toLowerCase() === \"svg\") return svgNode;\r\n return svgNode.ownerSVGElement;\r\n }\r\n\r\n function getNodeEl() {\r\n if (node == null) {\r\n node = initNode();\r\n // re-add node to DOM\r\n rootElement().appendChild(node);\r\n }\r\n return select(node);\r\n }\r\n\r\n // Private - gets the screen coordinates of a shape\r\n //\r\n // Given a shape on the screen, will return an SVGPoint for the directions\r\n // n(north), s(south), e(east), w(west), ne(northeast), se(southeast),\r\n // nw(northwest), sw(southwest).\r\n //\r\n // +-+-+\r\n // | |\r\n // + +\r\n // | |\r\n // +-+-+\r\n //\r\n // Returns an Object {n, s, e, w, nw, sw, ne, se}\r\n function getScreenBBox(targetShape) {\r\n let targetel = target || targetShape;\r\n\r\n while (targetel.getCTM == null && targetel.parentNode != null) {\r\n targetel = targetel.parentNode;\r\n }\r\n\r\n const bbox: any = {};\r\n const matrix = targetel.getCTM();\r\n const tbbox = targetel.getBBox();\r\n const width = tbbox.width;\r\n const height = tbbox.height;\r\n const x = tbbox.x;\r\n const y = tbbox.y;\r\n\r\n point.x = x;\r\n point.y = y;\r\n bbox.nw = point.matrixTransform(matrix);\r\n point.x += width;\r\n bbox.ne = point.matrixTransform(matrix);\r\n point.y += height;\r\n bbox.se = point.matrixTransform(matrix);\r\n point.x -= width;\r\n bbox.sw = point.matrixTransform(matrix);\r\n point.y -= height / 2;\r\n bbox.w = point.matrixTransform(matrix);\r\n point.x += width;\r\n bbox.e = point.matrixTransform(matrix);\r\n point.x -= width / 2;\r\n point.y -= height / 2;\r\n bbox.n = point.matrixTransform(matrix);\r\n point.y += height;\r\n bbox.s = point.matrixTransform(matrix);\r\n\r\n return bbox;\r\n }\r\n\r\n // Private - replace D3JS 3.X d3.functor() function\r\n function functor(v) {\r\n return typeof v === \"function\" ? v : function () {\r\n return v;\r\n };\r\n }\r\n\r\n return tip;\r\n}\r\n","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import { Widget } from \"@hpcc-js/common\";\r\nimport { format as d3Format } from \"d3-format\";\r\nimport { tip } from \"./Tooltip\";\r\n\r\nimport \"../src/ITooltip.css\";\r\n\r\ndeclare const event: object;\r\n\r\n// Use old school class declaration as this is a mixin ---\r\nexport function ITooltip() {\r\n this.tooltip = tip();\r\n\r\n if (this.tooltipLabelFormat_exists()) {\r\n this._labelFormatter = d3Format(this.tooltipLabelFormat() as string);\r\n }\r\n\r\n if (this.tooltipValueFormat_exists()) {\r\n this._valueFormatter = d3Format(this.tooltipValueFormat() as string);\r\n }\r\n\r\n if (this.layerEnter) {\r\n const layerEnter = this.layerEnter;\r\n this.layerEnter = function (_base, svgElement, _domElement) {\r\n if (!this._parentOverlay) {\r\n this._parentOverlay = _base._parentOverlay;\r\n }\r\n this.tooltipEnter(svgElement);\r\n layerEnter.apply(this, arguments);\r\n };\r\n const layerUpdate = this.layerUpdate;\r\n this.layerUpdate = function (_base) {\r\n layerUpdate.apply(this, arguments);\r\n this.tooltipUpdate();\r\n };\r\n const layerExit = this.layerExit;\r\n this.layerExit = function (_base) {\r\n this.tooltipExit();\r\n layerExit.apply(this, arguments);\r\n };\r\n } else {\r\n const enter = this.enter;\r\n this.enter = function (_domNode, element) {\r\n this.tooltipEnter(element);\r\n enter.apply(this, arguments);\r\n };\r\n const update = this.update;\r\n this.update = function (_domNode, _element) {\r\n update.apply(this, arguments);\r\n this.tooltipUpdate();\r\n };\r\n const exit = this.exit;\r\n this.exit = function (_domNode, _element) {\r\n this.tooltipExit();\r\n exit.apply(this, arguments);\r\n };\r\n }\r\n}\r\nITooltip.prototype = Object.create(Widget.prototype);\r\nITooltip.prototype.constructor = ITooltip;\r\n\r\n// abstract target(): any;\r\n// abstract target(_: any): this;\r\n\r\nITooltip.prototype.tooltipEnter = function (element) {\r\n const overlayElement = this.parentOverlay();\r\n if (!overlayElement.empty()) {\r\n this.tooltip.rootElement(overlayElement.node().parentNode);\r\n }\r\n element.call(this.tooltip);\r\n};\r\n\r\nITooltip.prototype.tooltipUpdate = function () {\r\n this.tooltip.offset(() => {\r\n if (event && this.tooltipFollowMouse()) {\r\n const d3tipElement: HTMLDivElement = document.querySelector(\".d3-tip\"); // d3Tip offers no reference to the '.d3-tip' element...?\r\n d3tipElement.style.display = \"block\";\r\n d3tipElement.style.left = this.tooltipOffset() + ((event as any).clientX) + \"px\";\r\n d3tipElement.style.top = (event as any).clientY + \"px\";\r\n return [];\r\n }\r\n switch (this.tooltip.direction()()) {\r\n case \"e\":\r\n return [0, this.tooltipOffset()];\r\n default:\r\n return [-this.tooltipOffset(), 0];\r\n }\r\n });\r\n\r\n let classed = this.tooltip.attr(\"class\");\r\n if (classed) {\r\n classed = classed.split(\" notick\").join(\"\") + (this.tooltipTick() ? \"\" : \" notick\") + (this.tooltipStyle() === \"none\" ? \" hidden\" : \"\");\r\n classed = classed.split(\" \")\r\n .filter(function (_class) {\r\n return _class.indexOf(\"ITooltip-tooltipStyle-\") !== 0;\r\n })\r\n .join(\" \")\r\n ;\r\n classed += \" ITooltip-tooltipStyle-\" + this.tooltipStyle();\r\n this.tooltip\r\n .attr(\"class\", classed)\r\n ;\r\n }\r\n};\r\n\r\nITooltip.prototype.tooltipExit = function () {\r\n if (this.tooltip) {\r\n this.tooltip.destroy();\r\n }\r\n};\r\n\r\nITooltip.prototype._tooltipHTML = function (d) {\r\n return d;\r\n};\r\n\r\nITooltip.prototype.tooltipHTML = function (_) {\r\n return this.tooltip.html(_);\r\n};\r\n\r\nITooltip.prototype.tooltipFormat = function (opts: { label?: string | number, series?: string | number, value?: Date | string | number, arr?: Array<{ color: string, label: string, value: string }> } = {}) {\r\n opts.label = opts.label === undefined ? \"\" : opts.label;\r\n if (this._labelFormatter) {\r\n opts.label = this._labelFormatter(opts.label) || \"\";\r\n } else if (this.formatData && this.parseData) {\r\n opts.label = this.formatData(this.parseData(opts.label));\r\n }\r\n opts.series = opts.series || \"\";\r\n if (opts.value instanceof Date) {\r\n opts.value = opts.value || \"\";\r\n } else if (this._valueFormatter) {\r\n opts.value = this._valueFormatter(opts.value) || \"\";\r\n } else if (this.formatValue && this.parseValue) {\r\n opts.value = this.formatValue(this.parseValue(opts.value));\r\n }\r\n switch (this.tooltipStyle()) {\r\n case \"none\":\r\n break;\r\n case \"series-table\":\r\n let html = '<table class=\"ITooltip-series-table\">'\r\n + \"<thead>\"\r\n + '<tr><th colspan=\"2\">' + opts.label + \"</th></tr>\"\r\n + \"</thead>\"\r\n + \"<tbody>\";\r\n opts.arr.forEach(function (row) {\r\n html += \"<tr>\";\r\n html += \"<td>\";\r\n html += '<div class=\"series-table-row-color\" style=\"background-color:' + row.color + '\"></div>';\r\n html += '<div class=\"series-table-row-label\">' + row.label + \"</div>\";\r\n html += \"</td>\";\r\n html += '<td><div class=\"series-table-row-value\">' + row.value + \"</div></td>\";\r\n html += \"</tr>\";\r\n });\r\n html += \"</tbody>\";\r\n html += \"</table>\";\r\n return html;\r\n default:\r\n if (opts.series) {\r\n return \"<span style='color:\" + this.tooltipSeriesColor() + \"'>\" + opts.series + \"</span> / <span style='color:\" + this.tooltipLabelColor() + \"'>\" + opts.label + \"</span>: <span style='color:\" + this.tooltipValueColor() + \"'>\" + opts.value + \"</span>\";\r\n }\r\n if (opts.label !== \"\") {\r\n return \"<span style='color:\" + this.tooltipLabelColor() + \"'>\" + opts.label + \"</span>: <span style='color:\" + this.tooltipValueColor() + \"'>\" + opts.value + \"</span>\";\r\n }\r\n return \"<span style='color:\" + this.tooltipValueColor() + \"'>\" + opts.value + \"</span>\";\r\n }\r\n};\r\n\r\nITooltip.prototype.tooltipKeyValueFormat = function (titleKey: string, obj: object): string {\r\n let body = \"\";\r\n for (const key in obj) {\r\n if (key !== titleKey) {\r\n const value = obj && obj[key] ? obj[key] : \"\";\r\n body += `<tr><td style=\"${this.tooltipLabelColor_exists() ? \"color:\" + this.tooltipLabelColor() : \"\"}\">${key}</td><td style=\"font-weight:normal\">${value}</td></tr>`;\r\n }\r\n }\r\n return `<table>\r\n <thead>\r\n <tr><th colspan=\"2\" style=\"font-weight:bold;font-size:16px\">${obj[titleKey]}</th></tr>\r\n </thead>\r\n <tbody>\r\n ${body}\r\n </tbody>\r\n </table>`;\r\n};\r\n\r\nexport interface ITooltip {\r\n tooltipStyle: { (): \"default\" | \"none\" | \"series-table\"; (_: \"default\" | \"none\" | \"series-table\"): ITooltip; };\r\n tooltipFollowMouse: { (): boolean; (_: boolean): ITooltip; };\r\n tooltipLabelFormat: (_?) => string | ITooltip;\r\n tooltipLabelFormat_exists: () => boolean;\r\n tooltipValueFormat: (_?) => string | ITooltip;\r\n tooltipValueFormat_exists: () => boolean;\r\n tooltipSeriesColor: { (): string; (_: string): ITooltip; };\r\n tooltipLabelColor: { (): string; (_: string): ITooltip; };\r\n tooltipLabelColor_exists: () => boolean;\r\n tooltipValueColor: { (): string; (_: string): ITooltip; };\r\n tooltipTick: { (): boolean; (_: boolean): ITooltip; };\r\n tooltipOffset: { (): number; (_: number): ITooltip; };\r\n tooltipOffset_default: { (): number; (_: number): ITooltip; };\r\n}\r\nITooltip.prototype.publish(\"tooltipStyle\", \"default\", \"set\", \"Style mode\", [\"default\", \"none\", \"series-table\"], {});\r\nITooltip.prototype.publish(\"tooltipFollowMouse\", false, \"boolean\", \"If true, the tooltip will follow mouse movement\", null, {});\r\nITooltip.prototype.publish(\"tooltipLabelFormat\", undefined, \"string\", \"Format of tooltip label(s) (the domain axis)\", null, {});\r\nITooltip.prototype.publish(\"tooltipValueFormat\", undefined, \"string\", \"Number format of tooltip value(s)\", null, {});\r\nITooltip.prototype.publish(\"tooltipSeriesColor\", \"#EAFFFF\", \"html-color\", \"Color of tooltip series text\", null, {});\r\nITooltip.prototype.publish(\"tooltipLabelColor\", \"#CCFFFF\", \"html-color\", \"Color of tooltip label text (the domain axis)\", null, {});\r\nITooltip.prototype.publish(\"tooltipValueColor\", \"white\", \"html-color\", \"Color of tooltip value(s)\", null, {});\r\nITooltip.prototype.publish(\"tooltipTick\", true, \"boolean\", \"Show tooltip tick\", null, {});\r\nITooltip.prototype.publish(\"tooltipOffset\", 8, \"number\", \"Offset from the cursor\", null, {});\r\n\r\nconst tooltipLabelFormat = ITooltip.prototype.tooltipLabelFormat;\r\nITooltip.prototype.tooltipLabelFormat = function (_?): string | ITooltip {\r\n const retVal = tooltipLabelFormat.apply(this, arguments);\r\n if (arguments.length) {\r\n this._labelFormatter = d3Format(_);\r\n }\r\n return retVal;\r\n};\r\n\r\nconst tooltipValueFormat = ITooltip.prototype.tooltipValueFormat;\r\nITooltip.prototype.tooltipValueFormat = function (_?): string | ITooltip {\r\n const retVal = tooltipValueFormat.apply(this, arguments);\r\n if (arguments.length) {\r\n this._valueFormatter = d3Format(_);\r\n }\r\n return retVal;\r\n};\r\n","import { Palette } from \"@hpcc-js/common\";\r\n\r\n// Use old school class declaration as this is a mixin ---\r\nexport function ITree() {\r\n}\r\nITree.prototype.constructor = ITree;\r\n\r\n// Events ---\r\nITree.prototype.click = function (row, column, selected) {\r\n};\r\n\r\nITree.prototype.dblclick = function (row, column, selected) {\r\n};\r\n\r\nITree.prototype._palette = Palette.ordinal(\"default\");\r\n"],"names":["Palette","d3Hsl","Widget","selection","map","select","d3Format"],"mappings":";;;;;;AAAO,QAAM,QAAQ,GAAG;AACjB,QAAM,WAAW,GAAG;AACpB,QAAM,aAAa,GAAG;;aCAb,QAAQ,GAAA;IACxB;IACA,QAAQ,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI;IACrC,QAAQ,CAAC,SAAS,CAAC,QAAQ,GAAGA,cAAO,CAAC,OAAO,CAAC,SAAS,CAAC;IAExD;IACA,QAAQ,CAAC,SAAS,CAAC,KAAK,GAAG,UAAU,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAA;IAC1D,CAAC;IAED,QAAQ,CAAC,SAAS,CAAC,QAAQ,GAAG,UAAU,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAA;IAC7D,CAAC;;aCTe,QAAQ,GAAA;IACxB;IACA,QAAQ,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI;IACrC,QAAQ,CAAC,SAAS,CAAC,QAAQ,GAAGA,cAAO,CAAC,OAAO,CAAC,SAAS,CAAC;IAExD,QAAQ,CAAC,SAAS,CAAC,SAAS,GAAG,UAAU,GAAU,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAA;QACvE,OAAO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AK,GAAA;IACrB;IACA,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,KAAK;IAEnC;IACA,KAAK,CAAC,SAAS,CAAC,KAAK,GAAG,UAAU,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAA;IACvD,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,QAAQ,GAAG,UAAU,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAA;IAC1D,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,QAAQ,GAAGN,cAAO,CAAC,OAAO,CAAC,SAAS,CAAC;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[9]}
1
+ {"version":3,"file":"index.js","sources":["../src/__package__.ts","../src/I1DChart.ts","../src/I2DChart.ts","../src/I2DAggrChart.ts","../src/IGraph.ts","../src/IHighlight.ts","../src/IInput.ts","../src/INDChart.ts","../src/Tooltip.ts","../../../node_modules/style-inject/dist/style-inject.es.js","../src/ITooltip.ts","../src/ITree.ts"],"sourcesContent":["export const PKG_NAME = \"@hpcc-js/api\";\nexport const PKG_VERSION = \"2.14.4\";\nexport const BUILD_VERSION = \"2.108.8\";\n","import { Palette } from \"@hpcc-js/common\";\n\nexport function I1DChart() {\n}\nI1DChart.prototype._dataFamily = \"1D\";\nI1DChart.prototype._palette = Palette.rainbow(\"default\");\n\n// Events ---\nI1DChart.prototype.click = function (row, column, selected) {\n};\n\nI1DChart.prototype.dblclick = function (row, column, selected) {\n};\n","import { Palette } from \"@hpcc-js/common\";\nimport { hsl as d3Hsl } from \"d3-color\";\n\nexport function I2DChart() {\n}\nI2DChart.prototype._dataFamily = \"2D\";\nI2DChart.prototype._palette = Palette.ordinal(\"default\");\n\nI2DChart.prototype.fillColor = function (row: any[], column, value, origRow): string {\n return this._palette(row[0]);\n};\n\nI2DChart.prototype.strokeColor = function (row: any[], column, value, origRow): string {\n return d3Hsl(this.fillColor(row, column, value, origRow)).darker().toString();\n};\n\nI2DChart.prototype.textColor = function (row: any[], column, value, origRow): string {\n return Palette.textColor(this.fillColor(row, column, value, origRow));\n};\n\n// Events ---\nI2DChart.prototype.click = function (row: object, column, selected) {\n};\n\nI2DChart.prototype.dblclick = function (row: object, column, selected) {\n};\n","import { Palette } from \"@hpcc-js/common\";\nimport { hsl as d3Hsl } from \"d3-color\";\n\nexport function I2DAggrChart() {\n}\nI2DAggrChart.prototype._palette = Palette.rainbow(\"default\");\n\nI2DAggrChart.prototype.fillColor = function (row: any[][], column, value): string {\n return this._palette(row.length);\n};\n\nI2DAggrChart.prototype.strokeColor = function (row: any[][], column, value): string {\n return d3Hsl(this.fillColor(row, column, value)).darker().toString();\n};\n\nI2DAggrChart.prototype.textColor = function (row: any[][], column, value): string {\n return Palette.textColor(this.fillColor(row, column, value));\n};\n\n// Events ---\nI2DAggrChart.prototype.click = function (row: object[], column, selected) {\n};\n\nI2DAggrChart.prototype.dblclick = function (row: object[], column, selected) {\n};\n","export function IGraph() {\n}\nIGraph.prototype._dataFamily = \"graph\";\n\n// Events ---\nIGraph.prototype.vertex_click = function (_row, _col, _sel, more) {\n if (more && more.vertex) {\n }\n};\n\nIGraph.prototype.vertex_dblclick = function (_row, _col, _sel, more) {\n if (more && more.vertex) {\n }\n};\n\nIGraph.prototype.edge_click = function (_row, _col, _sel, more) {\n if (more && more.edge) {\n }\n};\n\nIGraph.prototype.edge_dblclick = function (_row, _col, _sel, more) {\n if (more && more.edge) {\n }\n};\n","export interface IHighlight {\n highlightColumn(column: string): this;\n}\n\nexport function instanceOfIHighlight(w: any): w is IHighlight {\n return typeof (w as any).highlightColumn === \"function\";\n}\n","import { Widget } from \"@hpcc-js/common\";\n\n// Use old school class declaration as this is a mixin ---\nexport function IInput() {\n}\nIInput.prototype = Object.create(Widget.prototype);\nIInput.prototype.constructor = IInput;\n\n// abstract target(): any;\n// abstract target(_: any): this;\n\n// Implementation ---\nIInput.prototype.isValid = function () {\n if (this.validate()) {\n const re = new RegExp(this.validate());\n if (!re.test(this.value())) {\n return false;\n }\n }\n return true;\n};\n\nIInput.prototype.hasValue = function () {\n if (typeof (this as any).type === \"function\") {\n switch ((this as any).type()) {\n case \"radio\":\n /* falls through */\n case \"checkbox\":\n if (this.value() && this.value() !== \"false\") {\n return true;\n }\n break;\n default:\n if (this.value()) {\n return true;\n }\n break;\n }\n return false;\n }\n return this.value() !== \"\";\n};\n\n// Events ---\nIInput.prototype.blur = function (_w) {\n};\nIInput.prototype.keyup = function (_w) {\n};\nIInput.prototype.focus = function (_w) {\n};\nIInput.prototype.click = function (_w) {\n};\nIInput.prototype.dblclick = function (_w) {\n};\nIInput.prototype.change = function (_w, complete: boolean) {\n};\n\nIInput.prototype.resetValue = function (w) {\n w.value(w._inputElement[0].node().value);\n};\n\nIInput.prototype.disable = function (disable) {\n this._inputElement.forEach(function (e, idx) {\n e.attr(\"disabled\", disable ? \"disabled\" : null);\n });\n};\n\nIInput.prototype.setFocus = function () {\n if (this._inputElement.length) {\n this._inputElement[0].node().focus();\n }\n};\n\nexport interface IInput {\n name: { (): string; (_: string): IInput };\n name_exists: () => boolean;\n label: { (): string; (_: string): IInput };\n label_exists: () => boolean;\n value: { (): any; (_: any): IInput };\n value_exists: () => boolean;\n validate: { (): string; (_: string): IInput };\n validate_exists: () => boolean;\n}\nIInput.prototype.publish(\"name\", \"\", \"string\", \"HTML name for the input\");\nIInput.prototype.publish(\"label\", \"\", \"string\", \"Descriptive label\");\nIInput.prototype.publish(\"value\", \"\", \"string\", \"Input Current Value\");\nIInput.prototype.publish(\"validate\", null, \"string\", \"Input Validation\");\n","import { Palette } from \"@hpcc-js/common\";\nimport { hsl as d3Hsl } from \"d3-color\";\n\nexport function INDChart() {\n}\nINDChart.prototype._dataFamily = \"ND\";\nINDChart.prototype._palette = Palette.ordinal(\"default\");\n\nINDChart.prototype.fillColor = function (row: any[], column: string, value: number, origRow: any): string {\n return this._palette(column);\n};\n\nINDChart.prototype.strokeColor = function (row: any[], column: string, value: number, origRow: any): string {\n return d3Hsl(this.fillColor(row, column, value, origRow)).darker().toString();\n};\n\nINDChart.prototype.textColor = function (row: any[], column: string, value: number, origRow: any): string {\n return Palette.textColor(this.fillColor(row, column, value, origRow));\n};\n\n// Events ---\nINDChart.prototype.click = function (row, column, selected) {\n};\n\nINDChart.prototype.dblclick = function (row, column, selected) {\n};\n","// Based on https://github.com/GordonSmith/d3-tip forked from https://github.com/Caged/d3-tip\n\nimport { map } from \"d3-collection\";\nimport { select, selection } from \"d3-selection\";\n\nexport function tip() {\n let direction = d3TipDirection;\n let offset = d3TipOffset;\n let html = d3TipHTML;\n let rootElement = functor(document.body);\n let node = initNode();\n let svg = null;\n let point = null;\n let target = null;\n\n const tip: any = function (vis) {\n svg = getSVGNode(vis);\n if (!svg) return;\n point = svg.createSVGPoint();\n const re = rootElement();\n if (!re) return;\n if (!node) return;\n re.appendChild(node);\n };\n\n // Public - show the tooltip on the screen\n //\n // Returns a tip\n tip.show = function (d, idx, arr) {\n target = arr[idx];\n const args = Array.prototype.slice.call(arguments);\n const content = html.apply(this, args);\n if (content === null) {\n return tip;\n }\n const poffset = offset.apply(this, args);\n const nodel = getNodeEl();\n let i = directions.length;\n let coords;\n const root_bbox = rootElement().getBoundingClientRect();\n nodel.html(content)\n .style(\"opacity\", 1).style(\"pointer-events\", \"all\");\n\n while (i--) nodel.classed(directions[i], false);\n let placement_success = false;\n const placement_overflow = {};\n let least_overflow_direction = directions[0];\n for (let i = 0; i < directions.length; i++) {\n placement_success = _placement_attempt(directions[i]);\n if (placement_success) break;\n }\n if (!placement_success) {\n nodel.classed(\"notick\", true);\n const top_offset = _vertical_adjustment(placement_overflow[least_overflow_direction]);\n const left_offset = _horizontal_adjustment(placement_overflow[least_overflow_direction]);\n _placement_attempt(least_overflow_direction, top_offset, left_offset);\n } else {\n nodel.classed(\"notick\", false);\n }\n return tip;\n\n function _horizontal_adjustment(overflow_obj) {\n if (overflow_obj.left > overflow_obj.right) {\n return overflow_obj.left > 0 ? -overflow_obj.left : 0;\n } else {\n return overflow_obj.right > 0 ? overflow_obj.right : 0;\n }\n }\n function _vertical_adjustment(overflow_obj) {\n if (overflow_obj.top > overflow_obj.bottom) {\n return overflow_obj.top > 0 ? -overflow_obj.top : 0;\n } else {\n return overflow_obj.bottom;\n }\n }\n\n function _placement_attempt(_dir, _top_offset?, _left_offset?) {\n _top_offset = _top_offset ? _top_offset : 0;\n _left_offset = _left_offset ? _left_offset : 0;\n nodel.style(\"white-space\", \"nowrap\");\n coords = directionCallbacks.get(_dir).apply(this);\n nodel.classed(_dir, true)\n .style(\"top\", (coords.top + poffset[0] - _top_offset) + \"px\")\n .style(\"left\", (coords.left + poffset[1] - _left_offset) + \"px\");\n const nodel_bbox = nodel.node().getBoundingClientRect();\n const ret = nodel_bbox.top > root_bbox.top\n && nodel_bbox.left > root_bbox.left\n && nodel_bbox.bottom < root_bbox.bottom\n && nodel_bbox.right < root_bbox.right\n ;\n placement_overflow[_dir] = {\n top: root_bbox.top - nodel_bbox.top,\n right: nodel_bbox.right - root_bbox.right,\n bottom: nodel_bbox.bottom - root_bbox.bottom,\n left: root_bbox.left - nodel_bbox.left\n };\n nodel.style(\"white-space\", \"normal\");\n placement_overflow[_dir].total_overflow = Object.keys(placement_overflow[_dir])\n .filter(side => placement_overflow[_dir][side] > 0)\n .reduce((sum, side) => {\n const side_overflow = placement_overflow[_dir][side];\n return sum + side_overflow;\n }, 0);\n if (placement_overflow[least_overflow_direction].total_overflow > placement_overflow[_dir].total_overflow) {\n least_overflow_direction = _dir;\n }\n if (!ret) {\n nodel.classed(_dir, false);\n }\n return ret;\n }\n };\n\n // Public - hide the tooltip\n //\n // Returns a tip\n tip.hide = function () {\n const nodel = getNodeEl();\n nodel.style(\"opacity\", 0).style(\"pointer-events\", \"none\");\n return tip;\n };\n\n // Public: Proxy attr calls to the d3 tip container.\n // Sets or gets attribute value.\n //\n // n - name of the attribute\n // v - value of the attribute\n //\n // Returns tip or attribute value\n // eslint-disable-next-line no-unused-vars\n tip.attr = function (n, v) {\n if (arguments.length < 2 && typeof n === \"string\") {\n return getNodeEl().attr(n);\n }\n\n const args = Array.prototype.slice.call(arguments);\n selection.prototype.attr.apply(getNodeEl(), args);\n return tip;\n };\n\n // Public: Proxy style calls to the d3 tip container.\n // Sets or gets a style value.\n //\n // n - name of the property\n // v - value of the property\n //\n // Returns tip or style property value\n // eslint-disable-next-line no-unused-vars\n tip.style = function (n, v) {\n if (arguments.length < 2 && typeof n === \"string\") {\n return getNodeEl().style(n);\n }\n\n const args = Array.prototype.slice.call(arguments);\n selection.prototype.style.apply(getNodeEl(), args);\n return tip;\n };\n\n // Public: Set or get the direction of the tooltip\n //\n // v - One of n(north), s(south), e(east), or w(west), nw(northwest),\n // sw(southwest), ne(northeast) or se(southeast)\n //\n // Returns tip or direction\n tip.direction = function (v) {\n if (!arguments.length) return direction;\n direction = v == null ? v : functor(v);\n\n return tip;\n };\n\n // Public: Sets or gets the offset of the tip\n //\n // v - Array of [x, y] offset\n //\n // Returns offset or\n tip.offset = function (v) {\n if (!arguments.length) return offset;\n offset = v == null ? v : functor(v);\n\n return tip;\n };\n\n // Public: sets or gets the html value of the tooltip\n //\n // v - String value of the tip\n //\n // Returns html value or tip\n tip.html = function (v) {\n if (!arguments.length) return html;\n html = v == null ? v : functor(v);\n\n return tip;\n };\n\n // Public: sets or gets the root element anchor of the tooltip\n //\n // v - root element of the tooltip\n //\n // Returns root node of tip\n tip.rootElement = function (v) {\n if (!arguments.length) return rootElement;\n rootElement = functor(v);\n\n return tip;\n };\n\n // Public: destroys the tooltip and removes it from the DOM\n //\n // Returns a tip\n tip.destroy = function () {\n if (node) {\n getNodeEl().remove();\n node = null;\n }\n return tip;\n };\n\n function d3TipDirection() { return \"n\"; }\n function d3TipOffset() { return [0, 0]; }\n function d3TipHTML() { return \" \"; }\n\n const directionCallbacks = map({\n n: directionNorth,\n s: directionSouth,\n e: directionEast,\n w: directionWest,\n nw: directionNorthWest,\n ne: directionNorthEast,\n sw: directionSouthWest,\n se: directionSouthEast\n });\n const directions = directionCallbacks.keys();\n\n function directionNorth() {\n const bbox = getScreenBBox(window);\n return {\n top: bbox.n.y - node.offsetHeight,\n left: bbox.n.x - node.offsetWidth / 2\n };\n }\n\n function directionSouth() {\n const bbox = getScreenBBox(window);\n return {\n top: bbox.s.y + 8,\n left: bbox.s.x - node.offsetWidth / 2\n };\n }\n\n function directionEast() {\n const bbox = getScreenBBox(window);\n return {\n top: bbox.e.y - node.offsetHeight / 2,\n left: bbox.e.x + 8\n };\n }\n\n function directionWest() {\n const bbox = getScreenBBox(window);\n return {\n top: bbox.w.y - node.offsetHeight / 2,\n left: bbox.w.x - node.offsetWidth - 8\n };\n }\n\n function directionNorthWest() {\n const bbox = getScreenBBox(window);\n return {\n top: bbox.nw.y - node.offsetHeight,\n left: bbox.nw.x - node.offsetWidth\n };\n }\n\n function directionNorthEast() {\n const bbox = getScreenBBox(window);\n return {\n top: bbox.ne.y - node.offsetHeight,\n left: bbox.ne.x\n };\n }\n\n function directionSouthWest() {\n const bbox = getScreenBBox(window);\n return {\n top: bbox.sw.y,\n left: bbox.sw.x - node.offsetWidth\n };\n }\n\n function directionSouthEast() {\n const bbox = getScreenBBox(window);\n return {\n top: bbox.se.y,\n left: bbox.se.x\n };\n }\n\n function initNode() {\n const div = select(document.createElement(\"div\"));\n div\n .attr(\"class\", \"d3-tip\")\n .style(\"position\", \"absolute\")\n .style(\"top\", \"0px\")\n .style(\"opacity\", 0)\n .style(\"pointer-events\", \"none\")\n .style(\"box-sizing\", \"border-box\");\n\n return div.node();\n }\n\n function getSVGNode(element) {\n const svgNode = element.node();\n if (!svgNode) return null;\n if (svgNode.tagName.toLowerCase() === \"svg\") return svgNode;\n return svgNode.ownerSVGElement;\n }\n\n function getNodeEl() {\n if (node == null) {\n node = initNode();\n // re-add node to DOM\n rootElement().appendChild(node);\n }\n return select(node);\n }\n\n // Private - gets the screen coordinates of a shape\n //\n // Given a shape on the screen, will return an SVGPoint for the directions\n // n(north), s(south), e(east), w(west), ne(northeast), se(southeast),\n // nw(northwest), sw(southwest).\n //\n // +-+-+\n // | |\n // + +\n // | |\n // +-+-+\n //\n // Returns an Object {n, s, e, w, nw, sw, ne, se}\n function getScreenBBox(targetShape) {\n let targetel = target || targetShape;\n\n while (targetel.getCTM == null && targetel.parentNode != null) {\n targetel = targetel.parentNode;\n }\n\n const bbox: any = {};\n const matrix = targetel.getCTM();\n const tbbox = targetel.getBBox();\n const width = tbbox.width;\n const height = tbbox.height;\n const x = tbbox.x;\n const y = tbbox.y;\n\n point.x = x;\n point.y = y;\n bbox.nw = point.matrixTransform(matrix);\n point.x += width;\n bbox.ne = point.matrixTransform(matrix);\n point.y += height;\n bbox.se = point.matrixTransform(matrix);\n point.x -= width;\n bbox.sw = point.matrixTransform(matrix);\n point.y -= height / 2;\n bbox.w = point.matrixTransform(matrix);\n point.x += width;\n bbox.e = point.matrixTransform(matrix);\n point.x -= width / 2;\n point.y -= height / 2;\n bbox.n = point.matrixTransform(matrix);\n point.y += height;\n bbox.s = point.matrixTransform(matrix);\n\n return bbox;\n }\n\n // Private - replace D3JS 3.X d3.functor() function\n function functor(v) {\n return typeof v === \"function\" ? v : function () {\n return v;\n };\n }\n\n return tip;\n}\n","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import { Widget } from \"@hpcc-js/common\";\nimport { format as d3Format } from \"d3-format\";\nimport { tip } from \"./Tooltip\";\n\nimport \"../src/ITooltip.css\";\n\ndeclare const event: object;\n\n// Use old school class declaration as this is a mixin ---\nexport function ITooltip() {\n this.tooltip = tip();\n\n if (this.tooltipLabelFormat_exists()) {\n this._labelFormatter = d3Format(this.tooltipLabelFormat() as string);\n }\n\n if (this.tooltipValueFormat_exists()) {\n this._valueFormatter = d3Format(this.tooltipValueFormat() as string);\n }\n\n if (this.layerEnter) {\n const layerEnter = this.layerEnter;\n this.layerEnter = function (_base, svgElement, _domElement) {\n if (!this._parentOverlay) {\n this._parentOverlay = _base._parentOverlay;\n }\n this.tooltipEnter(svgElement);\n layerEnter.apply(this, arguments);\n };\n const layerUpdate = this.layerUpdate;\n this.layerUpdate = function (_base) {\n layerUpdate.apply(this, arguments);\n this.tooltipUpdate();\n };\n const layerExit = this.layerExit;\n this.layerExit = function (_base) {\n this.tooltipExit();\n layerExit.apply(this, arguments);\n };\n } else {\n const enter = this.enter;\n this.enter = function (_domNode, element) {\n this.tooltipEnter(element);\n enter.apply(this, arguments);\n };\n const update = this.update;\n this.update = function (_domNode, _element) {\n update.apply(this, arguments);\n this.tooltipUpdate();\n };\n const exit = this.exit;\n this.exit = function (_domNode, _element) {\n this.tooltipExit();\n exit.apply(this, arguments);\n };\n }\n}\nITooltip.prototype = Object.create(Widget.prototype);\nITooltip.prototype.constructor = ITooltip;\n\n// abstract target(): any;\n// abstract target(_: any): this;\n\nITooltip.prototype.tooltipEnter = function (element) {\n const overlayElement = this.parentOverlay();\n if (!overlayElement.empty()) {\n this.tooltip.rootElement(overlayElement.node().parentNode);\n }\n element.call(this.tooltip);\n};\n\nITooltip.prototype.tooltipUpdate = function () {\n this.tooltip.offset(() => {\n if (event && this.tooltipFollowMouse()) {\n const d3tipElement: HTMLDivElement = document.querySelector(\".d3-tip\"); // d3Tip offers no reference to the '.d3-tip' element...?\n d3tipElement.style.display = \"block\";\n d3tipElement.style.left = this.tooltipOffset() + ((event as any).clientX) + \"px\";\n d3tipElement.style.top = (event as any).clientY + \"px\";\n return [];\n }\n switch (this.tooltip.direction()()) {\n case \"e\":\n return [0, this.tooltipOffset()];\n default:\n return [-this.tooltipOffset(), 0];\n }\n });\n\n let classed = this.tooltip.attr(\"class\");\n if (classed) {\n classed = classed.split(\" notick\").join(\"\") + (this.tooltipTick() ? \"\" : \" notick\") + (this.tooltipStyle() === \"none\" ? \" hidden\" : \"\");\n classed = classed.split(\" \")\n .filter(function (_class) {\n return _class.indexOf(\"ITooltip-tooltipStyle-\") !== 0;\n })\n .join(\" \")\n ;\n classed += \" ITooltip-tooltipStyle-\" + this.tooltipStyle();\n this.tooltip\n .attr(\"class\", classed)\n ;\n }\n};\n\nITooltip.prototype.tooltipExit = function () {\n if (this.tooltip) {\n this.tooltip.destroy();\n }\n};\n\nITooltip.prototype._tooltipHTML = function (d) {\n return d;\n};\n\nITooltip.prototype.tooltipHTML = function (_) {\n return this.tooltip.html(_);\n};\n\nITooltip.prototype.tooltipFormat = function (opts: { label?: string | number, series?: string | number, value?: Date | string | number, arr?: Array<{ color: string, label: string, value: string }> } = {}) {\n opts.label = opts.label === undefined ? \"\" : opts.label;\n if (this._labelFormatter) {\n opts.label = this._labelFormatter(opts.label) || \"\";\n } else if (this.formatData && this.parseData) {\n opts.label = this.formatData(this.parseData(opts.label));\n }\n opts.series = opts.series || \"\";\n if (opts.value instanceof Date) {\n opts.value = opts.value || \"\";\n } else if (this._valueFormatter) {\n opts.value = this._valueFormatter(opts.value) || \"\";\n } else if (this.formatValue && this.parseValue) {\n opts.value = this.formatValue(this.parseValue(opts.value));\n }\n switch (this.tooltipStyle()) {\n case \"none\":\n break;\n case \"series-table\":\n let html = '<table class=\"ITooltip-series-table\">'\n + \"<thead>\"\n + '<tr><th colspan=\"2\">' + opts.label + \"</th></tr>\"\n + \"</thead>\"\n + \"<tbody>\";\n opts.arr.forEach(function (row) {\n html += \"<tr>\";\n html += \"<td>\";\n html += '<div class=\"series-table-row-color\" style=\"background-color:' + row.color + '\"></div>';\n html += '<div class=\"series-table-row-label\">' + row.label + \"</div>\";\n html += \"</td>\";\n html += '<td><div class=\"series-table-row-value\">' + row.value + \"</div></td>\";\n html += \"</tr>\";\n });\n html += \"</tbody>\";\n html += \"</table>\";\n return html;\n default:\n if (opts.series) {\n return \"<span style='color:\" + this.tooltipSeriesColor() + \"'>\" + opts.series + \"</span> / <span style='color:\" + this.tooltipLabelColor() + \"'>\" + opts.label + \"</span>: <span style='color:\" + this.tooltipValueColor() + \"'>\" + opts.value + \"</span>\";\n }\n if (opts.label !== \"\") {\n return \"<span style='color:\" + this.tooltipLabelColor() + \"'>\" + opts.label + \"</span>: <span style='color:\" + this.tooltipValueColor() + \"'>\" + opts.value + \"</span>\";\n }\n return \"<span style='color:\" + this.tooltipValueColor() + \"'>\" + opts.value + \"</span>\";\n }\n};\n\nITooltip.prototype.tooltipKeyValueFormat = function (titleKey: string, obj: object): string {\n let body = \"\";\n for (const key in obj) {\n if (key !== titleKey) {\n const value = obj && obj[key] ? obj[key] : \"\";\n body += `<tr><td style=\"${this.tooltipLabelColor_exists() ? \"color:\" + this.tooltipLabelColor() : \"\"}\">${key}</td><td style=\"font-weight:normal\">${value}</td></tr>`;\n }\n }\n return `<table>\n <thead>\n <tr><th colspan=\"2\" style=\"font-weight:bold;font-size:16px\">${obj[titleKey]}</th></tr>\n </thead>\n <tbody>\n ${body}\n </tbody>\n </table>`;\n};\n\nexport interface ITooltip {\n tooltipStyle: { (): \"default\" | \"none\" | \"series-table\"; (_: \"default\" | \"none\" | \"series-table\"): ITooltip; };\n tooltipFollowMouse: { (): boolean; (_: boolean): ITooltip; };\n tooltipLabelFormat: (_?) => string | ITooltip;\n tooltipLabelFormat_exists: () => boolean;\n tooltipValueFormat: (_?) => string | ITooltip;\n tooltipValueFormat_exists: () => boolean;\n tooltipSeriesColor: { (): string; (_: string): ITooltip; };\n tooltipLabelColor: { (): string; (_: string): ITooltip; };\n tooltipLabelColor_exists: () => boolean;\n tooltipValueColor: { (): string; (_: string): ITooltip; };\n tooltipTick: { (): boolean; (_: boolean): ITooltip; };\n tooltipOffset: { (): number; (_: number): ITooltip; };\n tooltipOffset_default: { (): number; (_: number): ITooltip; };\n}\nITooltip.prototype.publish(\"tooltipStyle\", \"default\", \"set\", \"Style mode\", [\"default\", \"none\", \"series-table\"], {});\nITooltip.prototype.publish(\"tooltipFollowMouse\", false, \"boolean\", \"If true, the tooltip will follow mouse movement\", null, {});\nITooltip.prototype.publish(\"tooltipLabelFormat\", undefined, \"string\", \"Format of tooltip label(s) (the domain axis)\", null, {});\nITooltip.prototype.publish(\"tooltipValueFormat\", undefined, \"string\", \"Number format of tooltip value(s)\", null, {});\nITooltip.prototype.publish(\"tooltipSeriesColor\", \"#EAFFFF\", \"html-color\", \"Color of tooltip series text\", null, {});\nITooltip.prototype.publish(\"tooltipLabelColor\", \"#CCFFFF\", \"html-color\", \"Color of tooltip label text (the domain axis)\", null, {});\nITooltip.prototype.publish(\"tooltipValueColor\", \"white\", \"html-color\", \"Color of tooltip value(s)\", null, {});\nITooltip.prototype.publish(\"tooltipTick\", true, \"boolean\", \"Show tooltip tick\", null, {});\nITooltip.prototype.publish(\"tooltipOffset\", 8, \"number\", \"Offset from the cursor\", null, {});\n\nconst tooltipLabelFormat = ITooltip.prototype.tooltipLabelFormat;\nITooltip.prototype.tooltipLabelFormat = function (_?): string | ITooltip {\n const retVal = tooltipLabelFormat.apply(this, arguments);\n if (arguments.length) {\n this._labelFormatter = d3Format(_);\n }\n return retVal;\n};\n\nconst tooltipValueFormat = ITooltip.prototype.tooltipValueFormat;\nITooltip.prototype.tooltipValueFormat = function (_?): string | ITooltip {\n const retVal = tooltipValueFormat.apply(this, arguments);\n if (arguments.length) {\n this._valueFormatter = d3Format(_);\n }\n return retVal;\n};\n","import { Palette } from \"@hpcc-js/common\";\n\n// Use old school class declaration as this is a mixin ---\nexport function ITree() {\n}\nITree.prototype.constructor = ITree;\n\n// Events ---\nITree.prototype.click = function (row, column, selected) {\n};\n\nITree.prototype.dblclick = function (row, column, selected) {\n};\n\nITree.prototype._palette = Palette.ordinal(\"default\");\n"],"names":["Palette","d3Hsl","Widget","selection","map","select","d3Format"],"mappings":";;;;;;AAAO,QA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BAAkB,GAAG,QAAQ,CAAC,SAAS,CAAC,kBAAkB;IAChE,QAAQ,CAAC,SAAS,CAAC,kBAAkB,GAAG,UAAU,CAAE,EAAA;QAChD,IAAM,MAAM,GAAG,kBAAkB,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC;IACxD,IAAA,IAAI,SAAS,CAAC,MAAM,EAAE;IAClB,QAAA,IAAI,CAAC,eAAe,GAAGI,aAAQ,CAAC,CAAC,CAAC;QACtC;IACA,IAAA,OAAO,MAAM;IACjB,CAAC;IAED,IAAM,kBAAkB,GAAG,QAAQ,CAAC,SAAS,CAAC,kBAAkB;IAChE,QAAQ,CAAC,SAAS,CAAC,kBAAkB,GAAG,UAAU,CAAE,EAAA;QAChD,IAAM,MAAM,GAAG,kBAAkB,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC;IACxD,IAAA,IAAI,SAAS,CAAC,MAAM,EAAE;IAClB,QAAA,IAAI,CAAC,eAAe,GAAGA,aAAQ,CAAC,CAAC,CAAC;QACtC;IACA,IAAA,OAAO,MAAM;IACjB,CAAC;;IC9ND;aACgB,KAAK,GAAA;IACrB;IACA,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,KAAK;IAEnC;IACA,KAAK,CAAC,SAAS,CAAC,KAAK,GAAG,UAAU,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAA;IACvD,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,QAAQ,GAAG,UAAU,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAA;IAC1D,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,QAAQ,GAAGN,cAAO,CAAC,OAAO,CAAC,SAAS,CAAC;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[9]}
package/dist/index.min.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(t,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],o):o((t="undefined"!=typeof globalThis?globalThis:t||self)["@hpcc-js/api"]={},t["@hpcc-js/common"])}(this,function(t,o){"use strict";function e(){}function r(){}function l(){}function i(){}function n(){}function p(){}e.prototype._dataFamily="1D",e.prototype._palette=o.Palette.rainbow("default"),e.prototype.click=function(t,o,e){},e.prototype.dblclick=function(t,o,e){},r.prototype._dataFamily="2D",r.prototype._palette=o.Palette.ordinal("default"),r.prototype.fillColor=function(t,o,e,r){return this._palette(t[0])},r.prototype.strokeColor=function(t,e,r,l){return o.hsl(this.fillColor(t,e,r,l)).darker().toString()},r.prototype.textColor=function(t,e,r,l){return o.Palette.textColor(this.fillColor(t,e,r,l))},r.prototype.click=function(t,o,e){},r.prototype.dblclick=function(t,o,e){},l.prototype._palette=o.Palette.rainbow("default"),l.prototype.fillColor=function(t,o,e){return this._palette(t.length)},l.prototype.strokeColor=function(t,e,r){return o.hsl(this.fillColor(t,e,r)).darker().toString()},l.prototype.textColor=function(t,e,r){return o.Palette.textColor(this.fillColor(t,e,r))},l.prototype.click=function(t,o,e){},l.prototype.dblclick=function(t,o,e){},i.prototype._dataFamily="graph",i.prototype.vertex_click=function(t,o,e,r){r&&r.vertex},i.prototype.vertex_dblclick=function(t,o,e,r){r&&r.vertex},i.prototype.edge_click=function(t,o,e,r){r&&r.edge},i.prototype.edge_dblclick=function(t,o,e,r){r&&r.edge},n.prototype=Object.create(o.Widget.prototype),n.prototype.constructor=n,n.prototype.isValid=function(){if(this.validate()&&!new RegExp(this.validate()).test(this.value()))return!1;return!0},n.prototype.hasValue=function(){if("function"==typeof this.type){switch(this.type()){case"radio":case"checkbox":if(this.value()&&"false"!==this.value())return!0;break;default:if(this.value())return!0}return!1}return""!==this.value()},n.prototype.blur=function(t){},n.prototype.keyup=function(t){},n.prototype.focus=function(t){},n.prototype.click=function(t){},n.prototype.dblclick=function(t){},n.prototype.change=function(t,o){},n.prototype.resetValue=function(t){t.value(t._inputElement[0].node().value)},n.prototype.disable=function(t){this._inputElement.forEach(function(o,e){o.attr("disabled",t?"disabled":null)})},n.prototype.setFocus=function(){this._inputElement.length&&this._inputElement[0].node().focus()},n.prototype.publish("name","","string","HTML name for the input"),n.prototype.publish("label","","string","Descriptive label"),n.prototype.publish("value","","string","Input Current Value"),n.prototype.publish("validate",null,"string","Input Validation"),p.prototype._dataFamily="ND",p.prototype._palette=o.Palette.ordinal("default"),p.prototype.fillColor=function(t,o,e,r){return this._palette(o)},p.prototype.strokeColor=function(t,e,r,l){return o.hsl(this.fillColor(t,e,r,l)).darker().toString()},p.prototype.textColor=function(t,e,r,l){return o.Palette.textColor(this.fillColor(t,e,r,l))},p.prototype.click=function(t,o,e){},p.prototype.dblclick=function(t,o,e){};function a(){if(this.tooltip=function(){var t=function(){return"n"},e=function(){return[0,0]},r=function(){return" "},l=y(document.body),i=f(),n=null,p=null,a=null,s=function(t){var o;if(o=t.node(),n=o?"svg"===o.tagName.toLowerCase()?o:o.ownerSVGElement:null){p=n.createSVGPoint();var e=l();e&&i&&e.appendChild(i)}};s.show=function(t,o,i){a=i[o];var n=Array.prototype.slice.call(arguments),p=r.apply(this,n);if(null===p)return s;var f,h=e.apply(this,n),y=d(),b=u.length,m=l().getBoundingClientRect();for(y.html(p).style("opacity",1).style("pointer-events","all");b--;)y.classed(u[b],!1);for(var v,g=!1,x={},w=u[0],C=0;C<u.length&&!(g=F(u[C]));C++);if(g)y.classed("notick",!1);else{y.classed("notick",!0);var k=(v=x[w]).top>v.bottom?v.top>0?-v.top:0:v.bottom,_=function(t){return t.left>t.right?t.left>0?-t.left:0:t.right>0?t.right:0}(x[w]);F(w,k,_)}return s;function F(t,o,e){o=o||0,e=e||0,y.style("white-space","nowrap"),f=c.get(t).apply(this),y.classed(t,!0).style("top",f.top+h[0]-o+"px").style("left",f.left+h[1]-e+"px");var r=y.node().getBoundingClientRect(),l=r.top>m.top&&r.left>m.left&&r.bottom<m.bottom&&r.right<m.right;return x[t]={top:m.top-r.top,right:r.right-m.right,bottom:r.bottom-m.bottom,left:m.left-r.left},y.style("white-space","normal"),x[t].total_overflow=Object.keys(x[t]).filter(function(o){return x[t][o]>0}).reduce(function(o,e){return o+x[t][e]},0),x[w].total_overflow>x[t].total_overflow&&(w=t),l||y.classed(t,!1),l}},s.hide=function(){return d().style("opacity",0).style("pointer-events","none"),s},s.attr=function(t,e){if(arguments.length<2&&"string"==typeof t)return d().attr(t);var r=Array.prototype.slice.call(arguments);return o.selection.prototype.attr.apply(d(),r),s},s.style=function(t,e){if(arguments.length<2&&"string"==typeof t)return d().style(t);var r=Array.prototype.slice.call(arguments);return o.selection.prototype.style.apply(d(),r),s},s.direction=function(o){return arguments.length?(t=null==o?o:y(o),s):t},s.offset=function(t){return arguments.length?(e=null==t?t:y(t),s):e},s.html=function(t){return arguments.length?(r=null==t?t:y(t),s):r},s.rootElement=function(t){return arguments.length?(l=y(t),s):l},s.destroy=function(){return i&&(d().remove(),i=null),s};var c=o.map({n:function(){var t=h(window);return{top:t.n.y-i.offsetHeight,left:t.n.x-i.offsetWidth/2}},s:function(){var t=h(window);return{top:t.s.y+8,left:t.s.x-i.offsetWidth/2}},e:function(){var t=h(window);return{top:t.e.y-i.offsetHeight/2,left:t.e.x+8}},w:function(){var t=h(window);return{top:t.w.y-i.offsetHeight/2,left:t.w.x-i.offsetWidth-8}},nw:function(){var t=h(window);return{top:t.nw.y-i.offsetHeight,left:t.nw.x-i.offsetWidth}},ne:function(){var t=h(window);return{top:t.ne.y-i.offsetHeight,left:t.ne.x}},sw:function(){var t=h(window);return{top:t.sw.y,left:t.sw.x-i.offsetWidth}},se:function(){var t=h(window);return{top:t.se.y,left:t.se.x}}}),u=c.keys();function f(){var t=o.select(document.createElement("div"));return t.attr("class","d3-tip").style("position","absolute").style("top","0px").style("opacity",0).style("pointer-events","none").style("box-sizing","border-box"),t.node()}function d(){return null==i&&(i=f(),l().appendChild(i)),o.select(i)}function h(t){for(var o=a||t;null==o.getCTM&&null!=o.parentNode;)o=o.parentNode;var e={},r=o.getCTM(),l=o.getBBox(),i=l.width,n=l.height,s=l.x,c=l.y;return p.x=s,p.y=c,e.nw=p.matrixTransform(r),p.x+=i,e.ne=p.matrixTransform(r),p.y+=n,e.se=p.matrixTransform(r),p.x-=i,e.sw=p.matrixTransform(r),p.y-=n/2,e.w=p.matrixTransform(r),p.x+=i,e.e=p.matrixTransform(r),p.x-=i/2,p.y-=n/2,e.n=p.matrixTransform(r),p.y+=n,e.s=p.matrixTransform(r),e}function y(t){return"function"==typeof t?t:function(){return t}}return s}(),this.tooltipLabelFormat_exists()&&(this._labelFormatter=o.format(this.tooltipLabelFormat())),this.tooltipValueFormat_exists()&&(this._valueFormatter=o.format(this.tooltipValueFormat())),this.layerEnter){var t=this.layerEnter;this.layerEnter=function(o,e,r){this._parentOverlay||(this._parentOverlay=o._parentOverlay),this.tooltipEnter(e),t.apply(this,arguments)};var e=this.layerUpdate;this.layerUpdate=function(t){e.apply(this,arguments),this.tooltipUpdate()};var r=this.layerExit;this.layerExit=function(t){this.tooltipExit(),r.apply(this,arguments)}}else{var l=this.enter;this.enter=function(t,o){this.tooltipEnter(o),l.apply(this,arguments)};var i=this.update;this.update=function(t,o){i.apply(this,arguments),this.tooltipUpdate()};var n=this.exit;this.exit=function(t,o){this.tooltipExit(),n.apply(this,arguments)}}}!function(t,o){void 0===o&&(o={});var e=o.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===e&&r.firstChild?r.insertBefore(l,r.firstChild):r.appendChild(l),l.styleSheet?l.styleSheet.cssText=t:l.appendChild(document.createTextNode(t))}}('.d3-tip{background:rgba(0,0,0,.66);border-radius:2px;color:#fff;font-weight:700;line-height:1;padding:12px;pointer-events:none!important;z-index:10}.d3-tip.hidden{visibility:hidden}.d3-tip:after{border:4px solid rgba(0,0,0,.66);box-sizing:border-box;content:" ";display:inline-block;height:8px;margin:0;pointer-events:none!important;position:absolute;width:8px}.d3-tip.n:after{border-bottom-color:transparent;border-left-color:transparent;border-right-color:transparent;border-top-width:8px;left:calc(50% - 4px);top:100%}.d3-tip.e:after{border-bottom-color:transparent;border-left-color:transparent;border-right-width:8px;border-top-color:transparent;left:-12px;top:calc(50% - 4px)}.d3-tip.s{margin-top:8px}.d3-tip.s:after{border-bottom-width:8px;border-left-color:transparent;border-right-color:transparent;border-top-color:transparent;left:calc(50% - 4px);top:-12px}.d3-tip.w:after{border-bottom-color:transparent;border-left-width:8px;border-right-color:transparent;border-top-color:transparent;left:100%;top:calc(50% - 4px)}.d3-tip.notick:after{border-color:transparent!important}.common_Widget .over{stroke:rgba(0,0,0,.66);opacity:.66}.d3-tip.ITooltip-tooltipStyle-series-table{padding:0}.d3-tip .ITooltip-series-table td,.d3-tip .ITooltip-series-table th{border:1px solid #d1d1d1;padding:6px;text-align:left}.d3-tip .ITooltip-series-table .series-table-row-color{display:inline-block;height:10px;margin-right:10px;width:10px}.d3-tip .ITooltip-series-table .series-table-row-label{display:inline-block}.d3-tip .ITooltip-series-table th{background-color:#b3b3b3}.d3-tip .ITooltip-series-table td{background-color:#fff;color:#555;font-weight:400}.d3-tip .ITooltip-series-table td:first-child{border-right:0}table.ITooltip-series-table td:last-child{border-left:1px dotted #a3a3a3}'),a.prototype=Object.create(o.Widget.prototype),a.prototype.constructor=a,a.prototype.tooltipEnter=function(t){var o=this.parentOverlay();o.empty()||this.tooltip.rootElement(o.node().parentNode),t.call(this.tooltip)},a.prototype.tooltipUpdate=function(){var t=this;this.tooltip.offset(function(){if(event&&t.tooltipFollowMouse()){var o=document.querySelector(".d3-tip");return o.style.display="block",o.style.left=t.tooltipOffset()+event.clientX+"px",o.style.top=event.clientY+"px",[]}return"e"===t.tooltip.direction()()?[0,t.tooltipOffset()]:[-t.tooltipOffset(),0]});var o=this.tooltip.attr("class");o&&(o=(o=o.split(" notick").join("")+(this.tooltipTick()?"":" notick")+("none"===this.tooltipStyle()?" hidden":"")).split(" ").filter(function(t){return 0!==t.indexOf("ITooltip-tooltipStyle-")}).join(" "),o+=" ITooltip-tooltipStyle-"+this.tooltipStyle(),this.tooltip.attr("class",o))},a.prototype.tooltipExit=function(){this.tooltip&&this.tooltip.destroy()},a.prototype._tooltipHTML=function(t){return t},a.prototype.tooltipHTML=function(t){return this.tooltip.html(t)},a.prototype.tooltipFormat=function(t){switch(void 0===t&&(t={}),t.label=void 0===t.label?"":t.label,this._labelFormatter?t.label=this._labelFormatter(t.label)||"":this.formatData&&this.parseData&&(t.label=this.formatData(this.parseData(t.label))),t.series=t.series||"",t.value instanceof Date?t.value=t.value||"":this._valueFormatter?t.value=this._valueFormatter(t.value)||"":this.formatValue&&this.parseValue&&(t.value=this.formatValue(this.parseValue(t.value))),this.tooltipStyle()){case"none":break;case"series-table":var o='<table class="ITooltip-series-table"><thead><tr><th colspan="2">'+t.label+"</th></tr></thead><tbody>";return t.arr.forEach(function(t){o+="<tr>",o+="<td>",o+='<div class="series-table-row-color" style="background-color:'+t.color+'"></div>',o+='<div class="series-table-row-label">'+t.label+"</div>",o+="</td>",o+='<td><div class="series-table-row-value">'+t.value+"</div></td>",o+="</tr>"}),o+="</tbody>",o+="</table>";default:return t.series?"<span style='color:"+this.tooltipSeriesColor()+"'>"+t.series+"</span> / <span style='color:"+this.tooltipLabelColor()+"'>"+t.label+"</span>: <span style='color:"+this.tooltipValueColor()+"'>"+t.value+"</span>":""!==t.label?"<span style='color:"+this.tooltipLabelColor()+"'>"+t.label+"</span>: <span style='color:"+this.tooltipValueColor()+"'>"+t.value+"</span>":"<span style='color:"+this.tooltipValueColor()+"'>"+t.value+"</span>"}},a.prototype.tooltipKeyValueFormat=function(t,o){var e="";for(var r in o)if(r!==t){var l=o&&o[r]?o[r]:"";e+='<tr><td style="'.concat(this.tooltipLabelColor_exists()?"color:"+this.tooltipLabelColor():"",'">').concat(r,'</td><td style="font-weight:normal">').concat(l,"</td></tr>")}return'<table>\n <thead>\n <tr><th colspan="2" style="font-weight:bold;font-size:16px">'.concat(o[t],"</th></tr>\n </thead>\n <tbody>\n ").concat(e,"\n </tbody>\n </table>")},a.prototype.publish("tooltipStyle","default","set","Style mode",["default","none","series-table"],{}),a.prototype.publish("tooltipFollowMouse",!1,"boolean","If true, the tooltip will follow mouse movement",null,{}),a.prototype.publish("tooltipLabelFormat",void 0,"string","Format of tooltip label(s) (the domain axis)",null,{}),a.prototype.publish("tooltipValueFormat",void 0,"string","Number format of tooltip value(s)",null,{}),a.prototype.publish("tooltipSeriesColor","#EAFFFF","html-color","Color of tooltip series text",null,{}),a.prototype.publish("tooltipLabelColor","#CCFFFF","html-color","Color of tooltip label text (the domain axis)",null,{}),a.prototype.publish("tooltipValueColor","white","html-color","Color of tooltip value(s)",null,{}),a.prototype.publish("tooltipTick",!0,"boolean","Show tooltip tick",null,{}),a.prototype.publish("tooltipOffset",8,"number","Offset from the cursor",null,{});var s=a.prototype.tooltipLabelFormat;a.prototype.tooltipLabelFormat=function(t){var e=s.apply(this,arguments);return arguments.length&&(this._labelFormatter=o.format(t)),e};var c=a.prototype.tooltipValueFormat;function u(){}a.prototype.tooltipValueFormat=function(t){var e=c.apply(this,arguments);return arguments.length&&(this._valueFormatter=o.format(t)),e},u.prototype.constructor=u,u.prototype.click=function(t,o,e){},u.prototype.dblclick=function(t,o,e){},u.prototype._palette=o.Palette.ordinal("default"),t.BUILD_VERSION="2.108.6",t.I1DChart=e,t.I2DAggrChart=l,t.I2DChart=r,t.IGraph=i,t.IInput=n,t.INDChart=p,t.ITooltip=a,t.ITree=u,t.PKG_NAME="@hpcc-js/api",t.PKG_VERSION="2.14.2",t.instanceOfIHighlight=function(t){return"function"==typeof t.highlightColumn}});
1
+ !function(t,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],o):o((t="undefined"!=typeof globalThis?globalThis:t||self)["@hpcc-js/api"]={},t["@hpcc-js/common"])}(this,function(t,o){"use strict";function e(){}function r(){}function l(){}function i(){}function n(){}function p(){}e.prototype._dataFamily="1D",e.prototype._palette=o.Palette.rainbow("default"),e.prototype.click=function(t,o,e){},e.prototype.dblclick=function(t,o,e){},r.prototype._dataFamily="2D",r.prototype._palette=o.Palette.ordinal("default"),r.prototype.fillColor=function(t,o,e,r){return this._palette(t[0])},r.prototype.strokeColor=function(t,e,r,l){return o.hsl(this.fillColor(t,e,r,l)).darker().toString()},r.prototype.textColor=function(t,e,r,l){return o.Palette.textColor(this.fillColor(t,e,r,l))},r.prototype.click=function(t,o,e){},r.prototype.dblclick=function(t,o,e){},l.prototype._palette=o.Palette.rainbow("default"),l.prototype.fillColor=function(t,o,e){return this._palette(t.length)},l.prototype.strokeColor=function(t,e,r){return o.hsl(this.fillColor(t,e,r)).darker().toString()},l.prototype.textColor=function(t,e,r){return o.Palette.textColor(this.fillColor(t,e,r))},l.prototype.click=function(t,o,e){},l.prototype.dblclick=function(t,o,e){},i.prototype._dataFamily="graph",i.prototype.vertex_click=function(t,o,e,r){r&&r.vertex},i.prototype.vertex_dblclick=function(t,o,e,r){r&&r.vertex},i.prototype.edge_click=function(t,o,e,r){r&&r.edge},i.prototype.edge_dblclick=function(t,o,e,r){r&&r.edge},n.prototype=Object.create(o.Widget.prototype),n.prototype.constructor=n,n.prototype.isValid=function(){if(this.validate()&&!new RegExp(this.validate()).test(this.value()))return!1;return!0},n.prototype.hasValue=function(){if("function"==typeof this.type){switch(this.type()){case"radio":case"checkbox":if(this.value()&&"false"!==this.value())return!0;break;default:if(this.value())return!0}return!1}return""!==this.value()},n.prototype.blur=function(t){},n.prototype.keyup=function(t){},n.prototype.focus=function(t){},n.prototype.click=function(t){},n.prototype.dblclick=function(t){},n.prototype.change=function(t,o){},n.prototype.resetValue=function(t){t.value(t._inputElement[0].node().value)},n.prototype.disable=function(t){this._inputElement.forEach(function(o,e){o.attr("disabled",t?"disabled":null)})},n.prototype.setFocus=function(){this._inputElement.length&&this._inputElement[0].node().focus()},n.prototype.publish("name","","string","HTML name for the input"),n.prototype.publish("label","","string","Descriptive label"),n.prototype.publish("value","","string","Input Current Value"),n.prototype.publish("validate",null,"string","Input Validation"),p.prototype._dataFamily="ND",p.prototype._palette=o.Palette.ordinal("default"),p.prototype.fillColor=function(t,o,e,r){return this._palette(o)},p.prototype.strokeColor=function(t,e,r,l){return o.hsl(this.fillColor(t,e,r,l)).darker().toString()},p.prototype.textColor=function(t,e,r,l){return o.Palette.textColor(this.fillColor(t,e,r,l))},p.prototype.click=function(t,o,e){},p.prototype.dblclick=function(t,o,e){};function a(){if(this.tooltip=function(){var t=function(){return"n"},e=function(){return[0,0]},r=function(){return" "},l=y(document.body),i=f(),n=null,p=null,a=null,s=function(t){var o;if(o=t.node(),n=o?"svg"===o.tagName.toLowerCase()?o:o.ownerSVGElement:null){p=n.createSVGPoint();var e=l();e&&i&&e.appendChild(i)}};s.show=function(t,o,i){a=i[o];var n=Array.prototype.slice.call(arguments),p=r.apply(this,n);if(null===p)return s;var f,h=e.apply(this,n),y=d(),b=u.length,m=l().getBoundingClientRect();for(y.html(p).style("opacity",1).style("pointer-events","all");b--;)y.classed(u[b],!1);for(var v,g=!1,x={},w=u[0],C=0;C<u.length&&!(g=F(u[C]));C++);if(g)y.classed("notick",!1);else{y.classed("notick",!0);var k=(v=x[w]).top>v.bottom?v.top>0?-v.top:0:v.bottom,_=function(t){return t.left>t.right?t.left>0?-t.left:0:t.right>0?t.right:0}(x[w]);F(w,k,_)}return s;function F(t,o,e){o=o||0,e=e||0,y.style("white-space","nowrap"),f=c.get(t).apply(this),y.classed(t,!0).style("top",f.top+h[0]-o+"px").style("left",f.left+h[1]-e+"px");var r=y.node().getBoundingClientRect(),l=r.top>m.top&&r.left>m.left&&r.bottom<m.bottom&&r.right<m.right;return x[t]={top:m.top-r.top,right:r.right-m.right,bottom:r.bottom-m.bottom,left:m.left-r.left},y.style("white-space","normal"),x[t].total_overflow=Object.keys(x[t]).filter(function(o){return x[t][o]>0}).reduce(function(o,e){return o+x[t][e]},0),x[w].total_overflow>x[t].total_overflow&&(w=t),l||y.classed(t,!1),l}},s.hide=function(){return d().style("opacity",0).style("pointer-events","none"),s},s.attr=function(t,e){if(arguments.length<2&&"string"==typeof t)return d().attr(t);var r=Array.prototype.slice.call(arguments);return o.selection.prototype.attr.apply(d(),r),s},s.style=function(t,e){if(arguments.length<2&&"string"==typeof t)return d().style(t);var r=Array.prototype.slice.call(arguments);return o.selection.prototype.style.apply(d(),r),s},s.direction=function(o){return arguments.length?(t=null==o?o:y(o),s):t},s.offset=function(t){return arguments.length?(e=null==t?t:y(t),s):e},s.html=function(t){return arguments.length?(r=null==t?t:y(t),s):r},s.rootElement=function(t){return arguments.length?(l=y(t),s):l},s.destroy=function(){return i&&(d().remove(),i=null),s};var c=o.map({n:function(){var t=h(window);return{top:t.n.y-i.offsetHeight,left:t.n.x-i.offsetWidth/2}},s:function(){var t=h(window);return{top:t.s.y+8,left:t.s.x-i.offsetWidth/2}},e:function(){var t=h(window);return{top:t.e.y-i.offsetHeight/2,left:t.e.x+8}},w:function(){var t=h(window);return{top:t.w.y-i.offsetHeight/2,left:t.w.x-i.offsetWidth-8}},nw:function(){var t=h(window);return{top:t.nw.y-i.offsetHeight,left:t.nw.x-i.offsetWidth}},ne:function(){var t=h(window);return{top:t.ne.y-i.offsetHeight,left:t.ne.x}},sw:function(){var t=h(window);return{top:t.sw.y,left:t.sw.x-i.offsetWidth}},se:function(){var t=h(window);return{top:t.se.y,left:t.se.x}}}),u=c.keys();function f(){var t=o.select(document.createElement("div"));return t.attr("class","d3-tip").style("position","absolute").style("top","0px").style("opacity",0).style("pointer-events","none").style("box-sizing","border-box"),t.node()}function d(){return null==i&&(i=f(),l().appendChild(i)),o.select(i)}function h(t){for(var o=a||t;null==o.getCTM&&null!=o.parentNode;)o=o.parentNode;var e={},r=o.getCTM(),l=o.getBBox(),i=l.width,n=l.height,s=l.x,c=l.y;return p.x=s,p.y=c,e.nw=p.matrixTransform(r),p.x+=i,e.ne=p.matrixTransform(r),p.y+=n,e.se=p.matrixTransform(r),p.x-=i,e.sw=p.matrixTransform(r),p.y-=n/2,e.w=p.matrixTransform(r),p.x+=i,e.e=p.matrixTransform(r),p.x-=i/2,p.y-=n/2,e.n=p.matrixTransform(r),p.y+=n,e.s=p.matrixTransform(r),e}function y(t){return"function"==typeof t?t:function(){return t}}return s}(),this.tooltipLabelFormat_exists()&&(this._labelFormatter=o.format(this.tooltipLabelFormat())),this.tooltipValueFormat_exists()&&(this._valueFormatter=o.format(this.tooltipValueFormat())),this.layerEnter){var t=this.layerEnter;this.layerEnter=function(o,e,r){this._parentOverlay||(this._parentOverlay=o._parentOverlay),this.tooltipEnter(e),t.apply(this,arguments)};var e=this.layerUpdate;this.layerUpdate=function(t){e.apply(this,arguments),this.tooltipUpdate()};var r=this.layerExit;this.layerExit=function(t){this.tooltipExit(),r.apply(this,arguments)}}else{var l=this.enter;this.enter=function(t,o){this.tooltipEnter(o),l.apply(this,arguments)};var i=this.update;this.update=function(t,o){i.apply(this,arguments),this.tooltipUpdate()};var n=this.exit;this.exit=function(t,o){this.tooltipExit(),n.apply(this,arguments)}}}!function(t,o){void 0===o&&(o={});var e=o.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===e&&r.firstChild?r.insertBefore(l,r.firstChild):r.appendChild(l),l.styleSheet?l.styleSheet.cssText=t:l.appendChild(document.createTextNode(t))}}('.d3-tip{background:rgba(0,0,0,.66);border-radius:2px;color:#fff;font-weight:700;line-height:1;padding:12px;pointer-events:none!important;z-index:10}.d3-tip.hidden{visibility:hidden}.d3-tip:after{border:4px solid rgba(0,0,0,.66);box-sizing:border-box;content:" ";display:inline-block;height:8px;margin:0;pointer-events:none!important;position:absolute;width:8px}.d3-tip.n:after{border-bottom-color:transparent;border-left-color:transparent;border-right-color:transparent;border-top-width:8px;left:calc(50% - 4px);top:100%}.d3-tip.e:after{border-bottom-color:transparent;border-left-color:transparent;border-right-width:8px;border-top-color:transparent;left:-12px;top:calc(50% - 4px)}.d3-tip.s{margin-top:8px}.d3-tip.s:after{border-bottom-width:8px;border-left-color:transparent;border-right-color:transparent;border-top-color:transparent;left:calc(50% - 4px);top:-12px}.d3-tip.w:after{border-bottom-color:transparent;border-left-width:8px;border-right-color:transparent;border-top-color:transparent;left:100%;top:calc(50% - 4px)}.d3-tip.notick:after{border-color:transparent!important}.common_Widget .over{stroke:rgba(0,0,0,.66);opacity:.66}.d3-tip.ITooltip-tooltipStyle-series-table{padding:0}.d3-tip .ITooltip-series-table td,.d3-tip .ITooltip-series-table th{border:1px solid #d1d1d1;padding:6px;text-align:left}.d3-tip .ITooltip-series-table .series-table-row-color{display:inline-block;height:10px;margin-right:10px;width:10px}.d3-tip .ITooltip-series-table .series-table-row-label{display:inline-block}.d3-tip .ITooltip-series-table th{background-color:#b3b3b3}.d3-tip .ITooltip-series-table td{background-color:#fff;color:#555;font-weight:400}.d3-tip .ITooltip-series-table td:first-child{border-right:0}table.ITooltip-series-table td:last-child{border-left:1px dotted #a3a3a3}'),a.prototype=Object.create(o.Widget.prototype),a.prototype.constructor=a,a.prototype.tooltipEnter=function(t){var o=this.parentOverlay();o.empty()||this.tooltip.rootElement(o.node().parentNode),t.call(this.tooltip)},a.prototype.tooltipUpdate=function(){var t=this;this.tooltip.offset(function(){if(event&&t.tooltipFollowMouse()){var o=document.querySelector(".d3-tip");return o.style.display="block",o.style.left=t.tooltipOffset()+event.clientX+"px",o.style.top=event.clientY+"px",[]}return"e"===t.tooltip.direction()()?[0,t.tooltipOffset()]:[-t.tooltipOffset(),0]});var o=this.tooltip.attr("class");o&&(o=(o=o.split(" notick").join("")+(this.tooltipTick()?"":" notick")+("none"===this.tooltipStyle()?" hidden":"")).split(" ").filter(function(t){return 0!==t.indexOf("ITooltip-tooltipStyle-")}).join(" "),o+=" ITooltip-tooltipStyle-"+this.tooltipStyle(),this.tooltip.attr("class",o))},a.prototype.tooltipExit=function(){this.tooltip&&this.tooltip.destroy()},a.prototype._tooltipHTML=function(t){return t},a.prototype.tooltipHTML=function(t){return this.tooltip.html(t)},a.prototype.tooltipFormat=function(t){switch(void 0===t&&(t={}),t.label=void 0===t.label?"":t.label,this._labelFormatter?t.label=this._labelFormatter(t.label)||"":this.formatData&&this.parseData&&(t.label=this.formatData(this.parseData(t.label))),t.series=t.series||"",t.value instanceof Date?t.value=t.value||"":this._valueFormatter?t.value=this._valueFormatter(t.value)||"":this.formatValue&&this.parseValue&&(t.value=this.formatValue(this.parseValue(t.value))),this.tooltipStyle()){case"none":break;case"series-table":var o='<table class="ITooltip-series-table"><thead><tr><th colspan="2">'+t.label+"</th></tr></thead><tbody>";return t.arr.forEach(function(t){o+="<tr>",o+="<td>",o+='<div class="series-table-row-color" style="background-color:'+t.color+'"></div>',o+='<div class="series-table-row-label">'+t.label+"</div>",o+="</td>",o+='<td><div class="series-table-row-value">'+t.value+"</div></td>",o+="</tr>"}),o+="</tbody>",o+="</table>";default:return t.series?"<span style='color:"+this.tooltipSeriesColor()+"'>"+t.series+"</span> / <span style='color:"+this.tooltipLabelColor()+"'>"+t.label+"</span>: <span style='color:"+this.tooltipValueColor()+"'>"+t.value+"</span>":""!==t.label?"<span style='color:"+this.tooltipLabelColor()+"'>"+t.label+"</span>: <span style='color:"+this.tooltipValueColor()+"'>"+t.value+"</span>":"<span style='color:"+this.tooltipValueColor()+"'>"+t.value+"</span>"}},a.prototype.tooltipKeyValueFormat=function(t,o){var e="";for(var r in o)if(r!==t){var l=o&&o[r]?o[r]:"";e+='<tr><td style="'.concat(this.tooltipLabelColor_exists()?"color:"+this.tooltipLabelColor():"",'">').concat(r,'</td><td style="font-weight:normal">').concat(l,"</td></tr>")}return'<table>\n <thead>\n <tr><th colspan="2" style="font-weight:bold;font-size:16px">'.concat(o[t],"</th></tr>\n </thead>\n <tbody>\n ").concat(e,"\n </tbody>\n </table>")},a.prototype.publish("tooltipStyle","default","set","Style mode",["default","none","series-table"],{}),a.prototype.publish("tooltipFollowMouse",!1,"boolean","If true, the tooltip will follow mouse movement",null,{}),a.prototype.publish("tooltipLabelFormat",void 0,"string","Format of tooltip label(s) (the domain axis)",null,{}),a.prototype.publish("tooltipValueFormat",void 0,"string","Number format of tooltip value(s)",null,{}),a.prototype.publish("tooltipSeriesColor","#EAFFFF","html-color","Color of tooltip series text",null,{}),a.prototype.publish("tooltipLabelColor","#CCFFFF","html-color","Color of tooltip label text (the domain axis)",null,{}),a.prototype.publish("tooltipValueColor","white","html-color","Color of tooltip value(s)",null,{}),a.prototype.publish("tooltipTick",!0,"boolean","Show tooltip tick",null,{}),a.prototype.publish("tooltipOffset",8,"number","Offset from the cursor",null,{});var s=a.prototype.tooltipLabelFormat;a.prototype.tooltipLabelFormat=function(t){var e=s.apply(this,arguments);return arguments.length&&(this._labelFormatter=o.format(t)),e};var c=a.prototype.tooltipValueFormat;function u(){}a.prototype.tooltipValueFormat=function(t){var e=c.apply(this,arguments);return arguments.length&&(this._valueFormatter=o.format(t)),e},u.prototype.constructor=u,u.prototype.click=function(t,o,e){},u.prototype.dblclick=function(t,o,e){},u.prototype._palette=o.Palette.ordinal("default"),t.BUILD_VERSION="2.108.8",t.I1DChart=e,t.I2DAggrChart=l,t.I2DChart=r,t.IGraph=i,t.IInput=n,t.INDChart=p,t.ITooltip=a,t.ITree=u,t.PKG_NAME="@hpcc-js/api",t.PKG_VERSION="2.14.4",t.instanceOfIHighlight=function(t){return"function"==typeof t.highlightColumn}});
2
2
  //# sourceMappingURL=index.min.js.map