33 * https://api.typingdna.com/scripts/typingdna.js
44 * https://typingdna.com/scripts/typingdna.js (alternative)
55 *
6- * @version 2.10
6+ * @version 2.11
77 * @author Raul Popa
88 * @copyright SC TypingDNA SRL, http://typingdna.com
99 * @license http://www.apache.org/licenses/LICENSE-2.0
@@ -97,7 +97,7 @@ function TypingDNA() {
9797 TypingDNA . prototype . defaultHistoryLength = TypingDNA . defaultHistoryLength ;
9898 TypingDNA . prototype . maxSeekTime = TypingDNA . maxSeekTime ;
9999 TypingDNA . prototype . maxPressTime = TypingDNA . maxPressTime ;
100- TypingDNA . version = 2.10 ;
100+ TypingDNA . version = 2.11 ;
101101 TypingDNA . flags = 0 ;
102102 TypingDNA . instance = this ;
103103 TypingDNA . document = document ;
@@ -648,33 +648,10 @@ function TypingDNA() {
648648 }
649649 }
650650
651- /**
652- * This function outputs the linear diagram typing pattern as a String
653- * @param {String } str Optional: The string represented by the diagram
654- * The function checks for the exact string (with minor typos) in the recorded
655- * history. Any letters that are not included in the string will be ommited from
656- * the output diagram typing pattern.
657- * @return {String } The TypingDNA linear diagram typing pattern, comma separated.
658- * A non-fixed vector of only numeric values separated by commas.
659- * @example var typingPattern = tdna.getDiagram();
660- * @example var typingPattern = tdna.getDiagram("Hello5g21?*");
661- */
662651 TypingDNA . getDiagram = function ( str , textId ) {
663652 return TypingDNA . history . getDiagram ( false , str , textId ) ;
664653 }
665654
666- /**
667- * This function outputs the extended linear diagram typing pattern as a String
668- * Compared to getDiagram, it includes char codes (not safe for storage)
669- * @param {String } str Optional: The string represented by the diagram
670- * The function checks for the exact string (with minor typos) in the recorded
671- * history. Any letters that are not included in the string will be ommited from
672- * the output diagram typing pattern.
673- * @return {String } The TypingDNA linear diagram typing pattern, comma separated.
674- * A non-fixed vector of only numeric values separated by commas.
675- * @example var typingPattern = tdna.getExtendedDiagram();
676- * @example var typingPattern = tdna.getExtendedDiagram("Hello5g21?*");
677- */
678655 TypingDNA . getExtendedDiagram = function ( str , textId ) {
679656 return TypingDNA . history . getDiagram ( true , str , textId ) ;
680657 }
@@ -683,18 +660,6 @@ function TypingDNA() {
683660 return TypingDNA . mouse . history . getDiagram ( ) ;
684661 }
685662
686- /**
687- * This function outputs the typing pattern as a String, in a new basic structure for
688- * easy storage and usage in any kind of keystroke dynamics applications (e.g. typing
689- * pattern matching, user recognition)
690- * @param {Number } length Optional: The amount of history keystrokes to use for the
691- * typing pattern. By default it will use the last 500 recorded keystrokes (or as many
692- * available if less than 500).
693- * @return {String } The TypingDNA typing pattern, comma separated.
694- * A fixed vector of only numeric values separated by commas.
695- * @example var typingPattern = tdna.get();
696- * @example var typingPattern = tdna.get(200);
697- */
698663 TypingDNA . get = function ( length ) {
699664 var historyTotalLength = TypingDNA . history . stack . length ;
700665 if ( length == undefined ) {
0 commit comments