Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
tooltipSeriesColor: { (): string; (_: string): WordCloud };
tooltipSeriesColor_exists: () => boolean;
tooltipLabelColor: { (): string; (_: string): WordCloud };
tooltipLabelColor_exists: () => boolean;
tooltipValueColor: { (): string; (_: string): WordCloud };
tooltipValueColor_exists: () => boolean;
tooltipTick: { (): boolean; (_: boolean): WordCloud };
tooltipTick_exists: () => boolean;
tooltipOffset: { (): number; (_: number): WordCloud };
tooltipOffset_exists: () => boolean;
// SimpleSelectionMixin
_selection: Utility.SimpleSelection;
}
WordCloud.prototype._class += " chart_WordCloud";
WordCloud.prototype.implements(I2DChart.prototype);
WordCloud.prototype.implements(ITooltip.prototype);
WordCloud.prototype.mixin(Utility.SimpleSelectionMixin);
WordCloud.prototype.publish("paletteID", "default", "set", "Palette ID", WordCloud.prototype._palette.switch(), { tags: ["Basic", "Shared"] });
WordCloud.prototype.publish("useClonedPalette", false, "boolean", "Enable or disable using a cloned palette", null, { tags: ["Intermediate", "Shared"] });
WordCloud.prototype.publish("fontFamily", "Impact", "string", "Font Name", null, { tags: ["Basic"] });
WordCloud.prototype.publish("fontSizeFrom", 6, "number", "Font Size From", null, { tags: ["Basic"] });
WordCloud.prototype.publish("fontSizeTo", 48, "number", "Font Size To", null, { tags: ["Basic"] });
WordCloud.prototype.publish("angleFrom", -60, "number", "Angle From", null, { tags: ["Basic"] });
WordCloud.prototype.publish("angleTo", 60, "number", "Angle To", null, { tags: ["Basic"] });
WordCloud.prototype.publish("angleCount", 5, "number", "Angle Count", null, { tags: ["Basic"] });
WordCloud.prototype.publish("padding", 0, "number", "Padding", null, { tags: ["Intermediate"] });
WordCloud.prototype.publish("scaleMode", "linear", "set", "Text scaling mode", ["linear", "log", "sqrt", "pow"], { tags: ["Intermediate"] });
WordCloud.prototype.publish("spiral", "archimedean", "set", "Text scaling mode", ["archimedean", "rectangular"], { tags: ["Intermediate"] });
WordCloud.prototype.publish("offsetX", 0, "number", "X offset", null, { tags: ["Advanced"] });
// ITooltip
tooltip;
tooltipHTML: (_) => string;
tooltipFormat: (_) => string;
tooltipTick: { (): boolean; (_: boolean): Pie; };
tooltipTick_default: { (): boolean; (_: boolean): Pie; };
tooltipOffset: { (): number; (_: number): Pie; };
tooltipOffset_default: { (): number; (_: number): Pie; };
// SimpleSelectionMixin
_selection: Utility.SimpleSelection;
}
Pie.prototype._class += " chart_Pie";
Pie.prototype.implements(I2DChart.prototype);
Pie.prototype.implements(ITooltip.prototype);
Pie.prototype.mixin(Utility.SimpleSelectionMixin);
Pie.prototype.publish("paletteID", "default", "set", "Palette ID", Pie.prototype._palette.switch(), { tags: ["Basic", "Shared"] });
Pie.prototype.publish("useClonedPalette", false, "boolean", "Enable or disable using a cloned palette", null, { tags: ["Intermediate", "Shared"] });
Pie.prototype.publish("innerRadius", 0, "number", "Sets inner pie hole radius as a percentage of the radius of the pie chart", null, { tags: ["Basic"], range: { min: 0, step: 1, max: 100 } });
tooltipSeriesColor: { (): string; (_: string): WordCloud };
tooltipSeriesColor_exists: () => boolean;
tooltipLabelColor: { (): string; (_: string): WordCloud };
tooltipLabelColor_exists: () => boolean;
tooltipValueColor: { (): string; (_: string): WordCloud };
tooltipValueColor_exists: () => boolean;
tooltipTick: { (): boolean; (_: boolean): WordCloud };
tooltipTick_exists: () => boolean;
tooltipOffset: { (): number; (_: number): WordCloud };
tooltipOffset_exists: () => boolean;
// SimpleSelectionMixin
_selection: Utility.SimpleSelection;
}
WordCloud.prototype._class += " chart_WordCloud";
WordCloud.prototype.implements(I2DChart.prototype);
WordCloud.prototype.implements(ITooltip.prototype);
WordCloud.prototype.mixin(Utility.SimpleSelectionMixin);
WordCloud.prototype.publish("paletteID", "default", "set", "Color palette for this widget", WordCloud.prototype._palette.switch(), { tags: ["Basic", "Shared"] });
WordCloud.prototype.publish("useClonedPalette", false, "boolean", "Enable or disable using a cloned palette", null, { tags: ["Intermediate", "Shared"] });
WordCloud.prototype.publish("fontFamily", "Impact", "string", "Font Name", null, { tags: ["Basic"] });
WordCloud.prototype.publish("fontSizeFrom", 6, "number", "Minimum font size (pixels)", null, { tags: ["Basic"] });
WordCloud.prototype.publish("fontSizeTo", 48, "number", "Maximum font size (pixels)", null, { tags: ["Basic"] });
WordCloud.prototype.publish("angleFrom", -60, "number", "Minimum angle (degrees)", null, { tags: ["Basic"] });
WordCloud.prototype.publish("angleTo", 60, "number", "Maximum angle (degrees)", null, { tags: ["Basic"] });
WordCloud.prototype.publish("angleCount", 5, "number", "Number of different angles", null, { tags: ["Basic"] });
WordCloud.prototype.publish("padding", 0, "number", "Padding between words (pixels)", null, { tags: ["Intermediate"] });
WordCloud.prototype.publish("scaleMode", "linear", "set", "Text scaling mode", ["linear", "log", "sqrt", "pow"], { tags: ["Intermediate"] });
WordCloud.prototype.publish("spiral", "archimedean", "set", "Text scaling mode", ["archimedean", "rectangular"], { tags: ["Intermediate"] });
WordCloud.prototype.publish("offsetX", 0, "number", "X offset", null, { tags: ["Advanced"] });
moreDivsUpdate.select("span")
.each(function(d) {
this.innerHTML = d.moreText;
});
} else {
moreDivsUpdate.select("span").text(d => d.moreText);
}
moreDivs.exit().remove();
}
exit(domNode, element) {
super.exit(domNode, element);
}
}
Summary.prototype._class += " chart_Summary";
Summary.prototype.implements(I2DChart.prototype);
export interface Summary {
iconColumn(): string;
iconColumn(_: string): this;
iconColumn_exists(): boolean;
icon(): string;
icon(_: string): this;
icon_exists(): boolean;
headerFontSize(): number;
headerFontSize(_: number): this;
textFontSize(): number;
textFontSize(_: number): this;
moreFontSize(): number;
moreFontSize(_: number): this;
iconFontSize(): number;
}
}
function getTextOffsetY(anchorMode) {
switch (anchorMode) {
case "top":
return p;
case "middle":
return size.height / 2;
case "bottom":
return size.height - p;
}
}
}
}
SummaryC.prototype._class += " chart_SummaryC";
SummaryC.prototype.implements(I2DChart.prototype);
export interface SummaryC {
iconColumn(): string;
iconColumn(_: string): this;
iconColumn_exists(): boolean;
icon(): string;
icon(_: string): this;
icon_exists(): boolean;
iconOpacity(): number;
iconOpacity(_: number): this;
fontFamily(): string;
fontFamily(_: string): this;
labelColumn(): string;
labelColumn(_: string): this;
update(domNode, element) {
this._palette = this._palette.switch(this.paletteID());
if (this.useClonedPalette()) {
this._palette = this._palette.cloneNotExists(this.paletteID() + "_" + this.id());
}
Common.prototype.update.apply(this, arguments);
}
paletteID: { (): string; (_: string): Common2D };
paletteID_exists: () => boolean;
useClonedPalette: { (): boolean; (_: boolean): Common2D };
useClonedPalette_exists: () => boolean;
}
Common2D.prototype._class += " google_Common2D";
Common2D.prototype.implements(I2DChart.prototype);
Common2D.prototype.publish("paletteID", "default", "set", "Palette ID", Common2D.prototype._palette.switch(), { tags: ["Basic", "Shared"] });
Common2D.prototype.publish("useClonedPalette", false, "boolean", "Enable or disable using a cloned palette", null, { tags: ["Intermediate", "Shared"] });
function initSeries(num) {
const series = [];
for (let i = 0; i < num; i++) {
series.push({});
}
return series;
}