File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1616,7 +1616,7 @@ var UMAP = (function () {
1616
1616
shouldStop = epochCallback ( epochCompleted ) === false ;
1617
1617
isFinished = epochCompleted === nEpochs ;
1618
1618
if ( ! shouldStop && ! isFinished ) {
1619
- step ( ) ;
1619
+ setTimeout ( function ( ) { return step ( ) ; } , 0 ) ;
1620
1620
}
1621
1621
else {
1622
1622
return [ 2 , resolve ( isFinished ) ] ;
@@ -1628,7 +1628,7 @@ var UMAP = (function () {
1628
1628
return [ 2 ] ;
1629
1629
} ) ;
1630
1630
} ) ; } ;
1631
- step ( ) ;
1631
+ setTimeout ( function ( ) { return step ( ) ; } , 0 ) ;
1632
1632
} ) ;
1633
1633
} ;
1634
1634
UMAP . prototype . optimizeLayout = function ( epochCallback ) {
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ export interface UMAPParameters {
83
83
* The distance function with which to assess nearest neighbors, defaults
84
84
* to euclidean distance.
85
85
*/
86
- distanceFn ?: DistanceFn
86
+ distanceFn ?: DistanceFn ;
87
87
/**
88
88
* The initial learning rate for the embedding optimization.
89
89
*/
@@ -1023,15 +1023,15 @@ export class UMAP {
1023
1023
const shouldStop = epochCallback ( epochCompleted ) === false ;
1024
1024
const isFinished = epochCompleted === nEpochs ;
1025
1025
if ( ! shouldStop && ! isFinished ) {
1026
- step ( ) ;
1026
+ setTimeout ( ( ) => step ( ) , 0 ) ;
1027
1027
} else {
1028
1028
return resolve ( isFinished ) ;
1029
1029
}
1030
1030
} catch ( err ) {
1031
1031
reject ( err ) ;
1032
1032
}
1033
1033
} ;
1034
- step ( ) ;
1034
+ setTimeout ( ( ) => step ( ) , 0 ) ;
1035
1035
} ) ;
1036
1036
}
1037
1037
You can’t perform that action at this time.
0 commit comments