@hpcc-js/api
Advanced tools
Comparing version 0.0.14 to 0.0.17
@@ -1,15 +0,25 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var common_1 = require("@hpcc-js/common"); | ||
function I1DChart() { | ||
} | ||
exports.I1DChart = I1DChart; | ||
I1DChart.prototype._palette = common_1.Palette.rainbow("default"); | ||
// Events --- | ||
I1DChart.prototype.click = function (row, column, selected) { | ||
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected); | ||
}; | ||
I1DChart.prototype.dblclick = function (row, column, selected) { | ||
console.log("Double click: " + JSON.stringify(row) + ", " + column + ", " + selected); | ||
}; | ||
(function (factory) { | ||
if (typeof module === "object" && typeof module.exports === "object") { | ||
var v = factory(require, exports); | ||
if (v !== undefined) module.exports = v; | ||
} | ||
else if (typeof define === "function" && define.amd) { | ||
define(["require", "exports", "@hpcc-js/common"], factory); | ||
} | ||
})(function (require, exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var common_1 = require("@hpcc-js/common"); | ||
function I1DChart() { | ||
} | ||
exports.I1DChart = I1DChart; | ||
I1DChart.prototype._palette = common_1.Palette.rainbow("default"); | ||
// Events --- | ||
I1DChart.prototype.click = function (row, column, selected) { | ||
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected); | ||
}; | ||
I1DChart.prototype.dblclick = function (row, column, selected) { | ||
console.log("Double click: " + JSON.stringify(row) + ", " + column + ", " + selected); | ||
}; | ||
}); | ||
//# sourceMappingURL=I1DChart.js.map |
@@ -1,15 +0,25 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var common_1 = require("@hpcc-js/common"); | ||
function I2DChart() { | ||
} | ||
exports.I2DChart = I2DChart; | ||
I2DChart.prototype._palette = common_1.Palette.ordinal("default"); | ||
// Events --- | ||
I2DChart.prototype.click = function (row, column, selected) { | ||
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected); | ||
}; | ||
I2DChart.prototype.dblclick = function (row, column, selected) { | ||
console.log("Double click: " + JSON.stringify(row) + ", " + column + ", " + selected); | ||
}; | ||
(function (factory) { | ||
if (typeof module === "object" && typeof module.exports === "object") { | ||
var v = factory(require, exports); | ||
if (v !== undefined) module.exports = v; | ||
} | ||
else if (typeof define === "function" && define.amd) { | ||
define(["require", "exports", "@hpcc-js/common"], factory); | ||
} | ||
})(function (require, exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var common_1 = require("@hpcc-js/common"); | ||
function I2DChart() { | ||
} | ||
exports.I2DChart = I2DChart; | ||
I2DChart.prototype._palette = common_1.Palette.ordinal("default"); | ||
// Events --- | ||
I2DChart.prototype.click = function (row, column, selected) { | ||
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected); | ||
}; | ||
I2DChart.prototype.dblclick = function (row, column, selected) { | ||
console.log("Double click: " + JSON.stringify(row) + ", " + column + ", " + selected); | ||
}; | ||
}); | ||
//# sourceMappingURL=I2DChart.js.map |
@@ -1,27 +0,37 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
function IGraph() { | ||
} | ||
exports.IGraph = IGraph; | ||
// Events --- | ||
IGraph.prototype.vertex_click = function (_row, _col, _sel, more) { | ||
if (more && more.vertex) { | ||
console.log("Vertex click: " + more.vertex.id()); | ||
(function (factory) { | ||
if (typeof module === "object" && typeof module.exports === "object") { | ||
var v = factory(require, exports); | ||
if (v !== undefined) module.exports = v; | ||
} | ||
}; | ||
IGraph.prototype.vertex_dblclick = function (_row, _col, _sel, more) { | ||
if (more && more.vertex) { | ||
console.log("Vertex double click: " + more.vertex.id()); | ||
else if (typeof define === "function" && define.amd) { | ||
define(["require", "exports"], factory); | ||
} | ||
}; | ||
IGraph.prototype.edge_click = function (_row, _col, _sel, more) { | ||
if (more && more.edge) { | ||
console.log("Edge click: " + more.edge.id()); | ||
})(function (require, exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
function IGraph() { | ||
} | ||
}; | ||
IGraph.prototype.edge_dblclick = function (_row, _col, _sel, more) { | ||
if (more && more.edge) { | ||
console.log("Edge double click: " + more.edge.id()); | ||
} | ||
}; | ||
exports.IGraph = IGraph; | ||
// Events --- | ||
IGraph.prototype.vertex_click = function (_row, _col, _sel, more) { | ||
if (more && more.vertex) { | ||
console.log("Vertex click: " + more.vertex.id()); | ||
} | ||
}; | ||
IGraph.prototype.vertex_dblclick = function (_row, _col, _sel, more) { | ||
if (more && more.vertex) { | ||
console.log("Vertex double click: " + more.vertex.id()); | ||
} | ||
}; | ||
IGraph.prototype.edge_click = function (_row, _col, _sel, more) { | ||
if (more && more.edge) { | ||
console.log("Edge click: " + more.edge.id()); | ||
} | ||
}; | ||
IGraph.prototype.edge_dblclick = function (_row, _col, _sel, more) { | ||
if (more && more.edge) { | ||
console.log("Edge double click: " + more.edge.id()); | ||
} | ||
}; | ||
}); | ||
//# sourceMappingURL=IGraph.js.map |
@@ -1,64 +0,74 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var common_1 = require("@hpcc-js/common"); | ||
var IInput = (function (_super) { | ||
tslib_1.__extends(IInput, _super); | ||
function IInput() { | ||
return _super.call(this) || this; | ||
(function (factory) { | ||
if (typeof module === "object" && typeof module.exports === "object") { | ||
var v = factory(require, exports); | ||
if (v !== undefined) module.exports = v; | ||
} | ||
// Implementation --- | ||
IInput.prototype.isValid = function () { | ||
if (this.validate()) { | ||
var re = new RegExp(this.validate()); | ||
if (!re.test(this.value())) { | ||
else if (typeof define === "function" && define.amd) { | ||
define(["require", "exports", "tslib", "@hpcc-js/common"], factory); | ||
} | ||
})(function (require, exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var common_1 = require("@hpcc-js/common"); | ||
var IInput = (function (_super) { | ||
tslib_1.__extends(IInput, _super); | ||
function IInput() { | ||
return _super.call(this) || this; | ||
} | ||
// Implementation --- | ||
IInput.prototype.isValid = function () { | ||
if (this.validate()) { | ||
var re = new RegExp(this.validate()); | ||
if (!re.test(this.value())) { | ||
return false; | ||
} | ||
} | ||
return true; | ||
}; | ||
IInput.prototype.hasValue = function () { | ||
if (typeof this.type === "function") { | ||
switch (this.type()) { | ||
case "radio": | ||
/* falls through */ | ||
case "checkbox": | ||
if (this.value() && this.value() !== "false") { | ||
return true; | ||
} | ||
break; | ||
default: | ||
if (this.value()) { | ||
return true; | ||
} | ||
break; | ||
} | ||
return false; | ||
} | ||
} | ||
return true; | ||
}; | ||
IInput.prototype.hasValue = function () { | ||
if (typeof this.type === "function") { | ||
switch (this.type()) { | ||
case "radio": | ||
/* falls through */ | ||
case "checkbox": | ||
if (this.value() && this.value() !== "false") { | ||
return true; | ||
} | ||
break; | ||
default: | ||
if (this.value()) { | ||
return true; | ||
} | ||
break; | ||
} | ||
return false; | ||
} | ||
return this.value() !== ""; | ||
}; | ||
// Events --- | ||
IInput.prototype.blur = function (_w) { | ||
}; | ||
IInput.prototype.click = function (_w) { | ||
}; | ||
IInput.prototype.dblclick = function (_w) { | ||
}; | ||
IInput.prototype.change = function (_w) { | ||
}; | ||
IInput.prototype.resetValue = function (w) { | ||
w.value(w._inputElement[0].node().value); | ||
}; | ||
IInput.prototype.disable = function (disable) { | ||
this._inputElement.forEach(function (e, idx) { | ||
e.attr("disabled", disable ? "disabled" : null); | ||
}); | ||
}; | ||
return IInput; | ||
}(common_1.Widget)); | ||
exports.IInput = IInput; | ||
IInput.prototype.publish("name", "", "string", "HTML name for the input"); | ||
IInput.prototype.publish("label", "", "string", "Descriptive label"); | ||
IInput.prototype.publish("value", "", "string", "Input Current Value"); | ||
IInput.prototype.publish("validate", null, "string", "Input Validation"); | ||
return this.value() !== ""; | ||
}; | ||
// Events --- | ||
IInput.prototype.blur = function (_w) { | ||
}; | ||
IInput.prototype.click = function (_w) { | ||
}; | ||
IInput.prototype.dblclick = function (_w) { | ||
}; | ||
IInput.prototype.change = function (_w) { | ||
}; | ||
IInput.prototype.resetValue = function (w) { | ||
w.value(w._inputElement[0].node().value); | ||
}; | ||
IInput.prototype.disable = function (disable) { | ||
this._inputElement.forEach(function (e, idx) { | ||
e.attr("disabled", disable ? "disabled" : null); | ||
}); | ||
}; | ||
return IInput; | ||
}(common_1.Widget)); | ||
exports.IInput = IInput; | ||
IInput.prototype.publish("name", "", "string", "HTML name for the input"); | ||
IInput.prototype.publish("label", "", "string", "Descriptive label"); | ||
IInput.prototype.publish("value", "", "string", "Input Current Value"); | ||
IInput.prototype.publish("validate", null, "string", "Input Validation"); | ||
}); | ||
//# sourceMappingURL=IInput.js.map |
@@ -1,15 +0,25 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var common_1 = require("@hpcc-js/common"); | ||
function INDChart() { | ||
} | ||
exports.INDChart = INDChart; | ||
INDChart.prototype._palette = common_1.Palette.ordinal("default"); | ||
// Events --- | ||
INDChart.prototype.click = function (row, column, selected) { | ||
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected); | ||
}; | ||
INDChart.prototype.dblclick = function (row, column, selected) { | ||
console.log("Double click: " + JSON.stringify(row) + ", " + column + ", " + selected); | ||
}; | ||
(function (factory) { | ||
if (typeof module === "object" && typeof module.exports === "object") { | ||
var v = factory(require, exports); | ||
if (v !== undefined) module.exports = v; | ||
} | ||
else if (typeof define === "function" && define.amd) { | ||
define(["require", "exports", "@hpcc-js/common"], factory); | ||
} | ||
})(function (require, exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var common_1 = require("@hpcc-js/common"); | ||
function INDChart() { | ||
} | ||
exports.INDChart = INDChart; | ||
INDChart.prototype._palette = common_1.Palette.ordinal("default"); | ||
// Events --- | ||
INDChart.prototype.click = function (row, column, selected) { | ||
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected); | ||
}; | ||
INDChart.prototype.dblclick = function (row, column, selected) { | ||
console.log("Double click: " + JSON.stringify(row) + ", " + column + ", " + selected); | ||
}; | ||
}); | ||
//# sourceMappingURL=INDChart.js.map |
@@ -1,13 +0,23 @@ | ||
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./I1DChart")); | ||
__export(require("./I2DChart")); | ||
__export(require("./IGraph")); | ||
__export(require("./IInput")); | ||
__export(require("./INDChart")); | ||
__export(require("./ITooltip")); | ||
__export(require("./ITree")); | ||
(function (factory) { | ||
if (typeof module === "object" && typeof module.exports === "object") { | ||
var v = factory(require, exports); | ||
if (v !== undefined) module.exports = v; | ||
} | ||
else if (typeof define === "function" && define.amd) { | ||
define(["require", "exports", "./I1DChart", "./I2DChart", "./IGraph", "./IInput", "./INDChart", "./ITooltip", "./ITree"], factory); | ||
} | ||
})(function (require, exports) { | ||
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./I1DChart")); | ||
__export(require("./I2DChart")); | ||
__export(require("./IGraph")); | ||
__export(require("./IInput")); | ||
__export(require("./INDChart")); | ||
__export(require("./ITooltip")); | ||
__export(require("./ITree")); | ||
}); | ||
//# sourceMappingURL=index.js.map |
@@ -1,118 +0,129 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var common_1 = require("@hpcc-js/common"); | ||
var d3_format_1 = require("d3-format"); | ||
var tip = require("d3-tip"); | ||
require("../src/ITooltip.css"); | ||
var ITooltip = (function (_super) { | ||
tslib_1.__extends(ITooltip, _super); | ||
function ITooltip() { | ||
var _this = _super.call(this) || this; | ||
_this._valueFormatter = d3_format_1.format(_this.tooltipValueFormat()); | ||
if (_this.layerEnter) { | ||
var layerEnter_1 = _this.layerEnter; | ||
_this.layerEnter = function (_base, svgElement, _domElement) { | ||
this.tooltipEnter(svgElement); | ||
layerEnter_1.apply(this, arguments); | ||
}; | ||
var layerUpdate_1 = _this.layerUpdate; | ||
_this.layerUpdate = function (_base) { | ||
layerUpdate_1.apply(this, arguments); | ||
this.tooltipUpdate(); | ||
}; | ||
var layerExit_1 = _this.layerExit; | ||
_this.layerExit = function (_base) { | ||
layerExit_1.apply(this, arguments); | ||
this.tooltipExit(); | ||
}; | ||
} | ||
else { | ||
var enter_1 = _this.enter; | ||
_this.enter = function (_domNode, element) { | ||
this.tooltipEnter(element); | ||
enter_1.apply(this, arguments); | ||
}; | ||
var update_1 = _this.update; | ||
_this.update = function (_domNode, _element) { | ||
update_1.apply(this, arguments); | ||
this.tooltipUpdate(); | ||
}; | ||
var exit_1 = _this.exit; | ||
_this.exit = function (_domNode, _element) { | ||
exit_1.apply(this, arguments); | ||
this.tooltipExit(); | ||
}; | ||
} | ||
return _this; | ||
(function (factory) { | ||
if (typeof module === "object" && typeof module.exports === "object") { | ||
var v = factory(require, exports); | ||
if (v !== undefined) module.exports = v; | ||
} | ||
ITooltip.prototype.tooltipEnter = function (element) { | ||
var context = this; | ||
this.tooltip = tip() | ||
.attr("class", "d3-tip") | ||
.offset(function () { | ||
switch (context.tooltip.direction()()) { | ||
case "e": | ||
return [0, context.tooltipOffset()]; | ||
default: | ||
return [-context.tooltipOffset(), 0]; | ||
else if (typeof define === "function" && define.amd) { | ||
define(["require", "exports", "tslib", "@hpcc-js/common", "d3-format", "d3-tip", "../src/ITooltip.css"], factory); | ||
} | ||
})(function (require, exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var common_1 = require("@hpcc-js/common"); | ||
var d3_format_1 = require("d3-format"); | ||
var _tip = require("d3-tip"); | ||
var tip = _tip.tip || _tip.default || _tip; | ||
require("../src/ITooltip.css"); | ||
var ITooltip = (function (_super) { | ||
tslib_1.__extends(ITooltip, _super); | ||
function ITooltip() { | ||
var _this = _super.call(this) || this; | ||
_this._valueFormatter = d3_format_1.format(_this.tooltipValueFormat()); | ||
if (_this.layerEnter) { | ||
var layerEnter_1 = _this.layerEnter; | ||
_this.layerEnter = function (_base, svgElement, _domElement) { | ||
this.tooltipEnter(svgElement); | ||
layerEnter_1.apply(this, arguments); | ||
}; | ||
var layerUpdate_1 = _this.layerUpdate; | ||
_this.layerUpdate = function (_base) { | ||
layerUpdate_1.apply(this, arguments); | ||
this.tooltipUpdate(); | ||
}; | ||
var layerExit_1 = _this.layerExit; | ||
_this.layerExit = function (_base) { | ||
layerExit_1.apply(this, arguments); | ||
this.tooltipExit(); | ||
}; | ||
} | ||
}); | ||
element.call(this.tooltip); | ||
}; | ||
ITooltip.prototype.tooltipUpdate = function () { | ||
var classed = this.tooltip.attr("class"); | ||
classed = classed.split(" notick").join("") + (this.tooltipTick() ? "" : " notick") + (this.tooltipStyle() === "none" ? " hidden" : ""); | ||
this.tooltip | ||
.attr("class", classed); | ||
}; | ||
ITooltip.prototype.tooltipExit = function () { | ||
if (this.tooltip) { | ||
this.tooltip.destroy(); | ||
else { | ||
var enter_1 = _this.enter; | ||
_this.enter = function (_domNode, element) { | ||
this.tooltipEnter(element); | ||
enter_1.apply(this, arguments); | ||
}; | ||
var update_1 = _this.update; | ||
_this.update = function (_domNode, _element) { | ||
update_1.apply(this, arguments); | ||
this.tooltipUpdate(); | ||
}; | ||
var exit_1 = _this.exit; | ||
_this.exit = function (_domNode, _element) { | ||
exit_1.apply(this, arguments); | ||
this.tooltipExit(); | ||
}; | ||
} | ||
return _this; | ||
} | ||
}; | ||
ITooltip.prototype._tooltipHTML = function (d) { | ||
return d; | ||
}; | ||
ITooltip.prototype.tooltipHTML = function (_) { | ||
return this.tooltip.html(_); | ||
}; | ||
ITooltip.prototype.tooltipFormat = function (opts) { | ||
opts = opts || {}; | ||
opts.label = opts.label || ""; | ||
opts.series = opts.series || ""; | ||
if (opts.value instanceof Date) { | ||
opts.value = opts.value || ""; | ||
} | ||
else { | ||
opts.value = this._valueFormatter(opts.value) || ""; | ||
} | ||
switch (this.tooltipStyle()) { | ||
case "none": | ||
break; | ||
default: | ||
if (opts.series) { | ||
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>"; | ||
ITooltip.prototype.tooltipEnter = function (element) { | ||
var context = this; | ||
this.tooltip = tip() | ||
.attr("class", "d3-tip") | ||
.offset(function () { | ||
switch (context.tooltip.direction()()) { | ||
case "e": | ||
return [0, context.tooltipOffset()]; | ||
default: | ||
return [-context.tooltipOffset(), 0]; | ||
} | ||
return "<span style='color:" + this.tooltipLabelColor() + "'>" + opts.label + "</span>: <span style='color:" + this.tooltipValueColor() + "'>" + opts.value + "</span>"; | ||
}); | ||
element.call(this.tooltip); | ||
}; | ||
ITooltip.prototype.tooltipUpdate = function () { | ||
var classed = this.tooltip.attr("class"); | ||
classed = classed.split(" notick").join("") + (this.tooltipTick() ? "" : " notick") + (this.tooltipStyle() === "none" ? " hidden" : ""); | ||
this.tooltip | ||
.attr("class", classed); | ||
}; | ||
ITooltip.prototype.tooltipExit = function () { | ||
if (this.tooltip) { | ||
this.tooltip.destroy(); | ||
} | ||
}; | ||
ITooltip.prototype._tooltipHTML = function (d) { | ||
return d; | ||
}; | ||
ITooltip.prototype.tooltipHTML = function (_) { | ||
return this.tooltip.html(_); | ||
}; | ||
ITooltip.prototype.tooltipFormat = function (opts) { | ||
opts = opts || {}; | ||
opts.label = opts.label || ""; | ||
opts.series = opts.series || ""; | ||
if (opts.value instanceof Date) { | ||
opts.value = opts.value || ""; | ||
} | ||
else { | ||
opts.value = this._valueFormatter(opts.value) || ""; | ||
} | ||
switch (this.tooltipStyle()) { | ||
case "none": | ||
break; | ||
default: | ||
if (opts.series) { | ||
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>"; | ||
} | ||
return "<span style='color:" + this.tooltipLabelColor() + "'>" + opts.label + "</span>: <span style='color:" + this.tooltipValueColor() + "'>" + opts.value + "</span>"; | ||
} | ||
}; | ||
return ITooltip; | ||
}(common_1.Widget)); | ||
exports.ITooltip = ITooltip; | ||
ITooltip.prototype.publish("tooltipStyle", "default", "set", "Style", ["default", "none"], {}); | ||
ITooltip.prototype.publish("tooltipValueFormat", ",.2f", "string", "Value Format", null, {}); | ||
ITooltip.prototype.publish("tooltipSeriesColor", "#EAFFFF", "html-color", "Series Color", null, {}); | ||
ITooltip.prototype.publish("tooltipLabelColor", "#CCFFFF", "html-color", "Label Color", null, {}); | ||
ITooltip.prototype.publish("tooltipValueColor", "white", "html-color", "Value Color", null, {}); | ||
ITooltip.prototype.publish("tooltipTick", true, "boolean", "Show tooltip tick", null, {}); | ||
ITooltip.prototype.publish("tooltipOffset", 8, "number", "Offset from the cursor", null, {}); | ||
var tooltipValueFormat = ITooltip.prototype.tooltipValueFormat; | ||
ITooltip.prototype.tooltipValueFormat = function (_) { | ||
var retVal = tooltipValueFormat.apply(this, arguments); | ||
if (arguments.length) { | ||
this._valueFormatter = d3_format_1.format(_); | ||
} | ||
return retVal; | ||
}; | ||
return ITooltip; | ||
}(common_1.Widget)); | ||
exports.ITooltip = ITooltip; | ||
ITooltip.prototype.publish("tooltipStyle", "default", "set", "Style", ["default", "none"], {}); | ||
ITooltip.prototype.publish("tooltipValueFormat", ",.2f", "string", "Value Format", null, {}); | ||
ITooltip.prototype.publish("tooltipSeriesColor", "#EAFFFF", "html-color", "Series Color", null, {}); | ||
ITooltip.prototype.publish("tooltipLabelColor", "#CCFFFF", "html-color", "Label Color", null, {}); | ||
ITooltip.prototype.publish("tooltipValueColor", "white", "html-color", "Value Color", null, {}); | ||
ITooltip.prototype.publish("tooltipTick", true, "boolean", "Show tooltip tick", null, {}); | ||
ITooltip.prototype.publish("tooltipOffset", 8, "number", "Offset from the cursor", null, {}); | ||
var tooltipValueFormat = ITooltip.prototype.tooltipValueFormat; | ||
ITooltip.prototype.tooltipValueFormat = function (_) { | ||
var retVal = tooltipValueFormat.apply(this, arguments); | ||
if (arguments.length) { | ||
this._valueFormatter = d3_format_1.format(_); | ||
} | ||
return retVal; | ||
}; | ||
}); | ||
//# sourceMappingURL=ITooltip.js.map |
@@ -1,18 +0,28 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var common_1 = require("@hpcc-js/common"); | ||
var ITree = (function () { | ||
function ITree() { | ||
(function (factory) { | ||
if (typeof module === "object" && typeof module.exports === "object") { | ||
var v = factory(require, exports); | ||
if (v !== undefined) module.exports = v; | ||
} | ||
// Events --- | ||
ITree.prototype.click = function (row, column, selected) { | ||
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected); | ||
}; | ||
ITree.prototype.dblclick = function (row, column, selected) { | ||
console.log("Double click: " + JSON.stringify(row) + ", " + column + ", " + selected); | ||
}; | ||
return ITree; | ||
}()); | ||
exports.ITree = ITree; | ||
ITree.prototype._palette = common_1.Palette.ordinal("default"); | ||
else if (typeof define === "function" && define.amd) { | ||
define(["require", "exports", "@hpcc-js/common"], factory); | ||
} | ||
})(function (require, exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var common_1 = require("@hpcc-js/common"); | ||
var ITree = (function () { | ||
function ITree() { | ||
} | ||
// Events --- | ||
ITree.prototype.click = function (row, column, selected) { | ||
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected); | ||
}; | ||
ITree.prototype.dblclick = function (row, column, selected) { | ||
console.log("Double click: " + JSON.stringify(row) + ", " + column + ", " + selected); | ||
}; | ||
return ITree; | ||
}()); | ||
exports.ITree = ITree; | ||
ITree.prototype._palette = common_1.Palette.ordinal("default"); | ||
}); | ||
//# sourceMappingURL=ITree.js.map |
{ | ||
"name": "@hpcc-js/api", | ||
"version": "0.0.14", | ||
"version": "0.0.17", | ||
"description": "hpcc-js - Viz api", | ||
"main": "lib/index.js", | ||
"module": "lib-es6/index.js", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
"lib/**/*.d.ts", | ||
"lib/**/*.js" | ||
"lib/*", | ||
"lib-es6/*", | ||
"dist/*" | ||
], | ||
"directories": { | ||
"lib": "lib/" | ||
}, | ||
"scripts": { | ||
@@ -20,3 +19,3 @@ "build": "tsc", | ||
"dependencies": { | ||
"@hpcc-js/common": "^0.0.14", | ||
"@hpcc-js/common": "^0.0.17", | ||
"d3-format": "^1.2.0", | ||
@@ -23,0 +22,0 @@ "d3-tip": "GordonSmith/d3-tip#vJSNEXT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
304788
57
2281
2
+ Added@hpcc-js/common@0.0.17(transitive)
- Removed@hpcc-js/common@0.0.14(transitive)
Updated@hpcc-js/common@^0.0.17