Skip to content

Commit

Permalink
Update bundle and types
Browse files Browse the repository at this point in the history
  • Loading branch information
pverscha committed Feb 22, 2021
1 parent b923170 commit 078ecef
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 15 deletions.
4 changes: 2 additions & 2 deletions dist/unipept-visualizations.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions dist/visualizations/heatmap/HeatmapSettings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,13 @@ export default class HeatmapSettings extends Settings {
* Amount of pixels that can be taken in by the dendrogram
*/
dendrogramWidth: number;
/**
* Width of the lines used to construct a dendrogram (in pixels).
*/
dendrogramLineWidth: number;
/**
* Color of the lines used to construct a dendrogram (must be a valid HTML color string).
*/
dendrogramColor: string;
/**
* Returns the html to use as tooltip for a cell. Is called with a HeatmapValue that represents the current cell and
Expand Down
8 changes: 4 additions & 4 deletions dist/visualizations/sunburst/SunburstSettings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ export default class SunburstSettings extends Settings {
* With how many levels can the user interact in the sunburst visualization?
*/
levels: number;
/**
* Callback that's called whenever the user clicks on a node in the visualization.
*/
rerootCallback: (node: DataNode) => void;
/**
* How long should the sunburst visualization animation take (in milliseconds)?
*/
animationDuration: number;
/**
* Callback that's called whenever the user clicks on a node in the visualization.
*/
rerootCallback: (node: DataNode) => void;
/**
* Returns the hash that's used to determine which color should be assigned to this datanode. The hash should be
* a number. Hash should be the same for all nodes to which the same color should be assigned.
Expand Down
4 changes: 2 additions & 2 deletions dist/visualizations/treeview/TreeviewNode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default class TreeviewNode extends DataNode {
isSelected(): boolean;
getColor(): string;
/**
* Mark this node and all of it's children as (de)selected.
* Mark this node and all of its children as (de)selected.
*
* @param value True if the node should be marked as selected, false otherwise.
*/
Expand All @@ -26,7 +26,7 @@ export default class TreeviewNode extends DataNode {
*/
collapse(): void;
/**
* Expand this node and all of it's children recursively.
* Expand this node and all of its children recursively.
*/
expandAll(): void;
/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unipept-visualizations",
"version": "1.7.3",
"version": "2.0.0",
"description": "Unipept visualisation tools",
"main": "index.js",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions types/visualizations/heatmap/HeatmapSettings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,13 @@ export default class HeatmapSettings extends Settings {
* Amount of pixels that can be taken in by the dendrogram
*/
dendrogramWidth: number;
/**
* Width of the lines used to construct a dendrogram (in pixels).
*/
dendrogramLineWidth: number;
/**
* Color of the lines used to construct a dendrogram (must be a valid HTML color string).
*/
dendrogramColor: string;
/**
* Returns the html to use as tooltip for a cell. Is called with a HeatmapValue that represents the current cell and
Expand Down
8 changes: 4 additions & 4 deletions types/visualizations/sunburst/SunburstSettings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ export default class SunburstSettings extends Settings {
* With how many levels can the user interact in the sunburst visualization?
*/
levels: number;
/**
* Callback that's called whenever the user clicks on a node in the visualization.
*/
rerootCallback: (node: DataNode) => void;
/**
* How long should the sunburst visualization animation take (in milliseconds)?
*/
animationDuration: number;
/**
* Callback that's called whenever the user clicks on a node in the visualization.
*/
rerootCallback: (node: DataNode) => void;
/**
* Returns the hash that's used to determine which color should be assigned to this datanode. The hash should be
* a number. Hash should be the same for all nodes to which the same color should be assigned.
Expand Down
4 changes: 2 additions & 2 deletions types/visualizations/treeview/TreeviewNode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default class TreeviewNode extends DataNode {
isSelected(): boolean;
getColor(): string;
/**
* Mark this node and all of it's children as (de)selected.
* Mark this node and all of its children as (de)selected.
*
* @param value True if the node should be marked as selected, false otherwise.
*/
Expand All @@ -26,7 +26,7 @@ export default class TreeviewNode extends DataNode {
*/
collapse(): void;
/**
* Expand this node and all of it's children recursively.
* Expand this node and all of its children recursively.
*/
expandAll(): void;
/**
Expand Down

0 comments on commit 078ecef

Please sign in to comment.