Skip to content

Commit

Permalink
fix: types generation
Browse files Browse the repository at this point in the history
  • Loading branch information
sk-at-work committed Oct 16, 2023
1 parent 249d32f commit 919e5bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions types/graph.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@ export default class Graph {
* @param {String} wf - the wordform or Word for the current constellation
* @param {Object} stage - the createjs.Stage instance created during the Wordmap _buildStage() call
* @param {String} mode - used to determine the constellaton mode, defaults to 'word' which is used for WordPage
* @param {String} operation - used to determine the constellaton operation in case of question mode, defaults to 'view' which is used in questions page and 'edit' to shows tooltip on synset nodes
* @param {Boolean} animate - Used to turn animation on/off. Default is on
* @param {Function} fetchConstellationData - The method for fetching constellation data used in the Constellation component. Used as a CB in the classes
* @param {Object} wordmap - The instance of the Wordmap class that instantiates this graph
*/
constructor(wordForm: any, stage: any, mode: string, animate: boolean, fetchConstellationData: Function, wordmap: any);
constructor(wordForm: any, stage: any, mode: string, animate: boolean, fetchConstellationData: Function, wordmap: any, operation: string);
ANIMATION_DURATION: number;
CHANGE_GRAPH_ANIMATION_DURATION: number;
CURRENT: any;
wordForm: any;
stage: any;
mode: string;
operation: string;
animate: boolean;
nodes: any[];
links: any[];
Expand Down Expand Up @@ -52,7 +54,7 @@ export default class Graph {
*/
_buildLayout(rootNode: any): any;
_drawRings(): any[];
show(): number | any[];
show(): any[] | NodeJS.Timeout;
_jitter(): any[];
_labelNodesByLevel(): {};
_coordinatesFromAngle(l: any, theta: any): {
Expand Down
4 changes: 3 additions & 1 deletion types/synsetnode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ export default class SynsetNode extends Node {
* @param {Object} stage - A reference to the Stage object that Nodes are drawn on
* @param {String} type - either 'label' or 'ss' (synset) to signify what type of node this is
* @param {String} mode - used to determine the constellaton mode, defaults to 'word' which is used for WordPage
* @param {String} operation - used to determine operation like read or edit use in case of mode as question to show the tooltip on synsetnode.
*/
constructor(id: string, defn: string, partOfSpeech: string, graph: any, stage: any, type: string, l: any, mode: string);
constructor(id: string, defn: string, partOfSpeech: string, graph: any, stage: any, type: string, l: any, mode: string, operation: string);
l: any;
defn: string;
partOfSpeech: string;
bubbleRadius: number;
color: string;
mode: string;
operation: string;
_stage: any;
distance_from_center(): any;
setupAnimation(): any;
Expand Down

0 comments on commit 919e5bc

Please sign in to comment.