@pixwel/pixwel-sdk 1.1.7 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,157 +0,0 @@
1
- import { Asset, Filename, Order, Ingest, IngestFile } from "@pixwel/pixwel-sdk";
2
-
3
- /**
4
- * Collects file handles from HTML5, full paths from Aspera, inspects
5
- * the dropped file using mediainfo, then renames the file according to
6
- * the data from Mediainfo and the Order and submits it for upload.
7
- * @type {Object}
8
- */
9
- export default class IngestFileDrop {
10
- /**
11
- * Map that contains data from HTML5 file drop and Aspera file drop
12
- * @type {Object}
13
- */
14
- constructor(scope, Mediainfo, IngestUpload) {
15
- this.map = {};
16
- this.scope = scope;
17
- this.IngestUpload = IngestUpload;
18
- this.Mediainfo = Mediainfo;
19
- this.asperaDropHandler = this.asperaDropHandler.bind(this);
20
- this.htmlDropHandler = this.htmlDropHandler.bind(this);
21
- }
22
- /**
23
- * HTML file drop handler
24
- * @param {[type]} e [description]
25
- * @return {[type]} [description]
26
- */
27
- htmlDropHandler(e) {
28
- let files = e.dataTransfer.files;
29
- for (var i = 0; i < files.length; i++) {
30
- this.registerHtmlFile(files[i]);
31
- }
32
- }
33
- /**
34
- * Aspera drop handler
35
- * @param {[type]} data [description]
36
- * @return {[type]} [description]
37
- */
38
- asperaDropHandler(data) {
39
- var that = this;
40
- let files = data.files.dataTransfer.files;
41
- if (!files.length) {
42
- return;
43
- }
44
- for (var i = 0; i < files.length; i++) {
45
- this.registerAsperaFile(files[i]);
46
- }
47
- return Promise.all(this.export()).then(renamed => {
48
- that.IngestUpload.uploadFiles(renamed, {}).then(() => {
49
- that.map = {};
50
- });
51
- });
52
- }
53
- /**
54
- * Registers and HTML file drop
55
- * @param {[type]} file [description]
56
- * @return {[type]} [description]
57
- */
58
- registerHtmlFile(file) {
59
- this.map[file.name] = file;
60
- }
61
- /**
62
- * Registers and Aspera file drop
63
- * @param {[type]} file [description]
64
- * @return {[type]} [description]
65
- */
66
- registerAsperaFile(file) {
67
- let basename = this.getBasename(file);
68
- this.map[basename]["path"] = file.name;
69
- }
70
- /**
71
- * Gets correct basename for MacOS and Windows
72
- * @param {[type]} file [description]
73
- * @return {[type]} [description]
74
- */
75
- getBasename(file) {
76
- return file.name[0] === "/"
77
- ? file.name.split("/").pop()
78
- : file.name.split("\\").pop();
79
- }
80
- /**
81
- * Renames and generates ingest record for internal filemap
82
- * @return {[type]} [description]
83
- */
84
- export() {
85
- var that = this;
86
- return Object.values(this.map).map(file => {
87
- return that.rename(file);
88
- });
89
- }
90
- /**
91
- * Renames the file and decorates it with ingest data using data from
92
- * mediainfo and the Order
93
- * @param {[type]} file [description]
94
- * @return {[type]} [description]
95
- */
96
- rename(file) {
97
- var that = this;
98
- return this.Mediainfo.inform(file).then(meta => {
99
- let order;
100
- let asset;
101
- let mediaType = file.type.split("/")[0];
102
-
103
- let tags = Ingest.mapMetaToTags(meta, mediaType);
104
-
105
- if (!that.scope.workRequest) {
106
- order = new Order();
107
- asset = new Asset();
108
- tags.Text = "txtd";
109
- file.ingest = Ingest.mapFromKnownData(
110
- that.scope.context,
111
- order,
112
- tags,
113
- that.scope.watermarks
114
- );
115
- return file;
116
- }
117
-
118
- order = new Order(that.scope.workRequest);
119
- asset = Asset.mapFromOrder(order);
120
-
121
- let options = {
122
- tags: tags,
123
- country: order.country,
124
- language: order.language
125
- };
126
-
127
- if (that.scope.request && that.scope.request.tag) {
128
- options.tags.Extra = [that.scope.request.tag.replace(" ", "-")];
129
- }
130
-
131
- options.tags.SubDub = {
132
- sub: order.isSub(),
133
- dub: order.isDub()
134
- };
135
- if (!order.isSub() && !order.isDub()) {
136
- options.tags.Text = "txtd";
137
- }
138
-
139
- let basename = Filename.render(
140
- that.scope.tags,
141
- that.scope.assetTypes,
142
- asset,
143
- options,
144
- mediaType
145
- );
146
- let extension = file.name.split(".").pop();
147
- file.renderedName = `${basename}.${extension}`;
148
- file.ingest = Ingest.mapFromKnownData(
149
- that.scope.context,
150
- order,
151
- tags,
152
- that.scope.watermarks
153
- );
154
- return file;
155
- });
156
- }
157
- }
package/src/docs.json DELETED
@@ -1 +0,0 @@
1
- {"language":"javascript","client_name":"inchjs","args":[],"client_version":"0.4.1","git_repo_url":"git@github.com:Pixwel/platform.git","branch_name":"599-alt","objects":[{"comment":"","meta":{"range":[64,128],"filename":"Ass.js","lineno":4,"columnno":0,"path":"","code":{"id":"astnode100000010","name":"trim","type":"FunctionDeclaration","paramnames":["str"]}},"undocumented":true,"name":"trim","longname":"trim","kind":"function","scope":"global","params":[]},{"comment":"","meta":{"range":[130,410],"filename":"Ass.js","lineno":8,"columnno":0,"path":"","code":{"id":"astnode100000021","name":"searchIndex","type":"FunctionDeclaration","paramnames":["lines","pattern","startIndex"]},"vars":{"len":"searchIndex~len","startIndex":"searchIndex~startIndex","i":"searchIndex~i","line":"searchIndex~line"}},"undocumented":true,"name":"searchIndex","longname":"searchIndex","kind":"function","scope":"global","params":[]},{"comment":"","meta":{"range":[412,1818],"filename":"Ass.js","lineno":21,"columnno":0,"path":"","code":{"id":"astnode100000067","name":"extractStyles","type":"FunctionDeclaration","paramnames":["lines"]},"vars":{"line":"extractStyles~line","styles":"extractStyles~styles","currentIndex":"extractStyles~currentIndex","fields":"extractStyles~fields","nameIndex":"extractStyles~nameIndex","alignmentIndex":"extractStyles~alignmentIndex","pattern":"extractStyles~pattern","parts":"extractStyles~parts","style":"extractStyles~style","alignmentNumber":"extractStyles~alignmentNumber","style.alignment":"extractStyles~style.alignment","styles[undefined]":"extractStyles~styles.undefined]"}},"undocumented":true,"name":"extractStyles","longname":"extractStyles","kind":"function","scope":"global","params":[]},{"comment":"","meta":{"range":[1841,4468],"filename":"Ass.js","lineno":70,"columnno":4,"path":"","code":{"id":"astnode100000270","name":"parse","type":"FunctionExpression"},"vars":{"line":"module.exports.parse~line","currentIndex":"module.exports.parse~currentIndex","normalizeTime":"module.exports.parse~normalizeTime","normalizeText":"module.exports.parse~normalizeText","styles":"module.exports.parse~styles","fields":"module.exports.parse~fields","startIndex":"module.exports.parse~startIndex","endIndex":"module.exports.parse~endIndex","styleIndex":"module.exports.parse~styleIndex","textIndex":"module.exports.parse~textIndex","result":"module.exports.parse~result","pattern":"module.exports.parse~pattern","parts":"module.exports.parse~parts","entry":"module.exports.parse~entry","style":"module.exports.parse~style","entry.alignment":"module.exports.parse~entry.alignment"}},"undocumented":true,"name":"parse","longname":"module.exports.parse","kind":"function","memberof":"module.exports","scope":"static"},{"comment":"","meta":{"range":[4474,6251],"filename":"Ass.js","lineno":143,"columnno":4,"path":"","code":{"id":"astnode100000604","name":"export","type":"FunctionExpression"},"vars":{"result":"module.exports.export~result","options":"module.exports.export~options","font":"module.exports.export~font","normalizeTime":"module.exports.export~normalizeTime","normalizeText":"module.exports.export~normalizeText","":null}},"undocumented":true,"name":"export","longname":"module.exports.export","kind":"function","memberof":"module.exports","scope":"static"},{"comment":"","meta":{"range":[0,598],"filename":"Asset.js","lineno":1,"columnno":0,"path":"","code":{"id":"astnode100000842","name":"module.exports","type":"ClassDeclaration"}},"undocumented":true,"name":"exports","longname":"module.exports","kind":"class","memberof":"module","scope":"static"},{"comment":"","meta":{"range":[15,598],"filename":"Asset.js","lineno":1,"columnno":15,"path":"","code":{"id":"astnode100000843","name":"module.exports","type":"ClassDeclaration","paramnames":[]}},"undocumented":true,"name":"exports","longname":"module.exports","kind":"class","memberof":"module","scope":"static"},{"comment":"","meta":{"range":[33,596],"filename":"Asset.js","lineno":2,"columnno":4,"path":"","code":{"id":"astnode100000846","name":"mapFromOrder","type":"MethodDefinition","paramnames":["order"]},"vars":{"":null}},"undocumented":true,"name":"mapFromOrder","longname":"mapFromOrder","kind":"function","scope":"global","params":[]},{"comment":"/**\n* The Filename class parses a filename into tokens, and can also take a set of\n* tokens and create a valid Pixwel filename.\n* @type class\n*/","meta":{"range":[174,7418],"filename":"Filename.js","lineno":8,"columnno":0,"path":"","code":{"id":"astnode100000928","name":"module.exports","type":"ClassDeclaration"}},"undocumented":true,"name":"exports","longname":"module.exports","kind":"class","memberof":"module","scope":"static"},{"comment":"/**\n* The Filename class parses a filename into tokens, and can also take a set of\n* tokens and create a valid Pixwel filename.\n* @type class\n*/","meta":{"range":[189,7418],"filename":"Filename.js","lineno":8,"columnno":15,"path":"","code":{"id":"astnode100000929","name":"module.exports","type":"ClassDeclaration","paramnames":[]}},"classdesc":"The Filename class parses a filename into tokens, and can also take a set of\ntokens and create a valid Pixwel filename.","type":{"names":["class"]},"name":"exports","longname":"module.exports","kind":"class","memberof":"module","scope":"static"},{"comment":"/**\n* Renders a valid filename given all tags, all types, an asset, and metadata\n* options likely parsed from the file itself.\n* @param {Array} [allTags=[]] Collection of all known tags\n* @param {Array} [allTypes=[]] Collection of all known types\n* @param {Object} [asset={}] A Platform Asset\n* @param {Object} [options={}] options containing metadata about file\n* @return {String} A valid filename\n*/","meta":{"range":[680,7416],"filename":"Filename.js","lineno":18,"columnno":4,"path":"","code":{"id":"astnode100000932","name":"render","type":"MethodDefinition","paramnames":["allTags","allTypes","asset","options"]},"vars":{"":null}},"description":"Renders a valid filename given all tags, all types, an asset, and metadata\noptions likely parsed from the file itself.","params":[{"type":{"names":["Array"]},"optional":true,"defaultvalue":"[]","description":"Collection of all known tags","name":"allTags"},{"type":{"names":["Array"]},"optional":true,"defaultvalue":"[]","description":"Collection of all known types","name":"allTypes"},{"type":{"names":["Object"]},"optional":true,"defaultvalue":"{}","description":"A Platform Asset","name":"asset"},{"type":{"names":["Object"]},"optional":true,"defaultvalue":"{}","description":"options containing metadata about file","name":"options"}],"returns":[{"type":{"names":["String"]},"description":"A valid filename"}],"name":"render","longname":"render","kind":"function","scope":"global"},{"comment":"/**\n* [video description]\n* @type {[type]}\n*/","meta":{"range":[74,4621],"filename":"Ingest.js","lineno":7,"columnno":0,"path":"","code":{"id":"astnode100001807","name":"module.exports","type":"ClassDeclaration"}},"undocumented":true,"name":"exports","longname":"module.exports","kind":"class","memberof":"module","scope":"static"},{"comment":"/**\n* [video description]\n* @type {[type]}\n*/","meta":{"range":[89,4621],"filename":"Ingest.js","lineno":7,"columnno":15,"path":"","code":{"id":"astnode100001808","name":"module.exports","type":"ClassDeclaration","paramnames":[]}},"classdesc":"[video description]","name":"exports","longname":"module.exports","kind":"class","memberof":"module","scope":"static"},{"comment":"/**\n* [mapMetaToTags description]\n* @param {[type]} info [description]\n* @return {[type]} [description]\n*/","meta":{"range":[245,3023],"filename":"Ingest.js","lineno":13,"columnno":4,"path":"","code":{"id":"astnode100001811","name":"mapMetaToTags","type":"MethodDefinition","paramnames":["info"]},"vars":{"":null}},"description":"[mapMetaToTags description]","params":[{"name":"info"}],"returns":[{}],"name":"mapMetaToTags","longname":"mapMetaToTags","kind":"function","scope":"global"},{"comment":"","meta":{"range":[3028,4618],"filename":"Ingest.js","lineno":114,"columnno":4,"path":"","code":{"id":"astnode100002176","name":"mapFromOrder","type":"MethodDefinition","paramnames":["order","tags","watermarks"]},"vars":{"":null}},"undocumented":true,"name":"mapFromOrder","longname":"mapFromOrder","kind":"function","scope":"global","params":[]},{"comment":"","meta":{"range":[0,120],"filename":"IngestFile.js","lineno":1,"columnno":0,"path":"","code":{"id":"astnode100002336","name":"module.exports","type":"ClassDeclaration"}},"undocumented":true,"name":"exports","longname":"module.exports","kind":"class","memberof":"module","scope":"static"},{"comment":"","meta":{"range":[15,120],"filename":"IngestFile.js","lineno":1,"columnno":15,"path":"","code":{"id":"astnode100002337","name":"module.exports","type":"ClassDeclaration","paramnames":["file","order"]}},"undocumented":true,"name":"exports","longname":"module.exports","kind":"class","memberof":"module","scope":"static"},{"comment":"","meta":{"range":[35,84],"filename":"IngestFile.js","lineno":2,"columnno":1,"path":"","code":{"id":"astnode100002340","name":"module.exports","type":"MethodDefinition","paramnames":["file","order"]},"vars":{"":null}},"undocumented":true,"name":"exports","longname":"module.exports#module.exports","kind":"class","memberof":"module.exports#module","scope":"static","params":[]},{"comment":"/**\n* Collects file handles from HTML5, full paths from Aspera, inspects\n* the dropped file using mediainfo, then renames the file according to\n* the data from Mediainfo and the Order and submits it for upload.\n* @type {Object}\n*/","meta":{"range":[318,4278],"filename":"IngestFileDrop.js","lineno":9,"columnno":0,"path":"","code":{"id":"astnode100002366","name":"module.exports","type":"ClassDeclaration"}},"undocumented":true,"name":"exports","longname":"module.exports","kind":"class","memberof":"module","scope":"static"},{"comment":"/**\n* Collects file handles from HTML5, full paths from Aspera, inspects\n* the dropped file using mediainfo, then renames the file according to\n* the data from Mediainfo and the Order and submits it for upload.\n* @type {Object}\n*/","meta":{"range":[333,4278],"filename":"IngestFileDrop.js","lineno":9,"columnno":15,"path":"","code":{"id":"astnode100002367","name":"module.exports","type":"ClassDeclaration","paramnames":["scope","Mediainfo","IngestUpload"]}},"classdesc":"Collects file handles from HTML5, full paths from Aspera, inspects\nthe dropped file using mediainfo, then renames the file according to\nthe data from Mediainfo and the Order and submits it for upload.","type":{"names":["Object"]},"name":"exports","longname":"module.exports","kind":"class","memberof":"module","scope":"static","description":"Map that contains data from HTML5 file drop and Aspera file drop","params":[]},{"comment":"/**\n* Map that contains data from HTML5 file drop and Aspera file drop\n* @type {Object}\n*/","meta":{"range":[470,810],"filename":"IngestFileDrop.js","lineno":14,"columnno":4,"path":"","code":{"id":"astnode100002370","name":"module.exports","type":"MethodDefinition","paramnames":["scope","Mediainfo","IngestUpload"]},"vars":{"":null}},"description":"Map that contains data from HTML5 file drop and Aspera file drop","type":{"names":["Object"]},"name":"exports","longname":"module.exports#module.exports","kind":"class","memberof":"module.exports#module","scope":"static","params":[],"undocumented":true},{"comment":"/**\n* HTML file drop handler\n* @param {[type]} e [description]\n* @return {[type]} [description]\n*/","meta":{"range":[961,1153],"filename":"IngestFileDrop.js","lineno":27,"columnno":4,"path":"","code":{"id":"astnode100002425","name":"htmlDropHandler","type":"MethodDefinition","paramnames":["e"]},"vars":{"":null}},"description":"HTML file drop handler","params":[{"name":"e"}],"returns":[{}],"name":"htmlDropHandler","longname":"htmlDropHandler","kind":"function","scope":"global"},{"comment":"/**\n* Aspera drop handler\n* @param {[type]} data [description]\n* @return {[type]} [description]\n*/","meta":{"range":[1307,1815],"filename":"IngestFileDrop.js","lineno":38,"columnno":4,"path":"","code":{"id":"astnode100002459","name":"asperaDropHandler","type":"MethodDefinition","paramnames":["data"]},"vars":{"":null}},"description":"Aspera drop handler","params":[{"name":"data"}],"returns":[{}],"name":"asperaDropHandler","longname":"asperaDropHandler","kind":"function","scope":"global"},{"comment":"/**\n* Registers and HTML file drop\n* @param {[type]} file [description]\n* @return {[type]} [description]\n*/","meta":{"range":[1978,2052],"filename":"IngestFileDrop.js","lineno":58,"columnno":4,"path":"","code":{"id":"astnode100002535","name":"registerHtmlFile","type":"MethodDefinition","paramnames":["file"]},"vars":{"":null}},"description":"Registers and HTML file drop","params":[{"name":"file"}],"returns":[{}],"name":"registerHtmlFile","longname":"registerHtmlFile","kind":"function","scope":"global"},{"comment":"/**\n* Registers and Aspera file drop\n* @param {[type]} file [description]\n* @return {[type]} [description]\n*/","meta":{"range":[2217,2356],"filename":"IngestFileDrop.js","lineno":66,"columnno":4,"path":"","code":{"id":"astnode100002550","name":"registerAsperaFile","type":"MethodDefinition","paramnames":["file"]},"vars":{"":null}},"description":"Registers and Aspera file drop","params":[{"name":"file"}],"returns":[{}],"name":"registerAsperaFile","longname":"registerAsperaFile","kind":"function","scope":"global"},{"comment":"/**\n* Gets correct basename for MacOS and Windows\n* @param {[type]} file [description]\n* @return {[type]} [description]\n*/","meta":{"range":[2534,2665],"filename":"IngestFileDrop.js","lineno":75,"columnno":4,"path":"","code":{"id":"astnode100002575","name":"getBasename","type":"MethodDefinition","paramnames":["file"]},"vars":{"":null}},"description":"Gets correct basename for MacOS and Windows","params":[{"name":"file"}],"returns":[{}],"name":"getBasename","longname":"getBasename","kind":"function","scope":"global"},{"comment":"/**\n* Renames and generates ingest record for internal filemap\n* @return {[type]} [description]\n*/","meta":{"range":[2804,2948],"filename":"IngestFileDrop.js","lineno":82,"columnno":4,"path":"","code":{"id":"astnode100002609","name":"export","type":"MethodDefinition","paramnames":[]},"vars":{"":null}},"description":"Renames and generates ingest record for internal filemap","returns":[{}],"name":"export","longname":"export","kind":"function","scope":"global","params":[]},{"comment":"/**\n* Renames the file and decorates it with ingest data using data from\n* mediainfo and the Order\n* @param {[type]} file [description]\n* @return {[type]} [description]\n*/","meta":{"range":[3160,4276],"filename":"IngestFileDrop.js","lineno":94,"columnno":4,"path":"","code":{"id":"astnode100002637","name":"rename","type":"MethodDefinition","paramnames":["file"]},"vars":{"":null}},"description":"Renames the file and decorates it with ingest data using data from\nmediainfo and the Order","params":[{"name":"file"}],"returns":[{}],"name":"rename","longname":"rename","kind":"function","scope":"global"},{"comment":"","meta":{"range":[63,589],"filename":"Order.js","lineno":4,"columnno":0,"path":"","code":{"id":"astnode100002819","name":"module.exports","type":"ClassDeclaration"}},"undocumented":true,"name":"exports","longname":"module.exports","kind":"class","memberof":"module","scope":"static"},{"comment":"","meta":{"range":[78,589],"filename":"Order.js","lineno":4,"columnno":15,"path":"","code":{"id":"astnode100002820","name":"module.exports","type":"ClassDeclaration","paramnames":["data"]}},"undocumented":true,"name":"exports","longname":"module.exports","kind":"class","memberof":"module","scope":"static"},{"comment":"","meta":{"range":[96,379],"filename":"Order.js","lineno":5,"columnno":4,"path":"","code":{"id":"astnode100002823","name":"module.exports","type":"MethodDefinition","paramnames":["data"]},"vars":{"":null}},"undocumented":true,"name":"exports","longname":"module.exports#module.exports","kind":"class","memberof":"module.exports#module","scope":"static","params":[]},{"comment":"","meta":{"range":[384,489],"filename":"Order.js","lineno":17,"columnno":4,"path":"","code":{"id":"astnode100002854","name":"isDub","type":"MethodDefinition","paramnames":[]},"vars":{"":null}},"undocumented":true,"name":"isDub","longname":"isDub","kind":"function","scope":"global","params":[]},{"comment":"","meta":{"range":[494,587],"filename":"Order.js","lineno":20,"columnno":4,"path":"","code":{"id":"astnode100002874","name":"isSub","type":"MethodDefinition","paramnames":[]},"vars":{"":null}},"undocumented":true,"name":"isSub","longname":"isSub","kind":"function","scope":"global","params":[]},{"comment":"","meta":{"range":[64,482],"filename":"Srt.js","lineno":4,"columnno":0,"path":"","code":{"id":"astnode100002904","name":"stripTags","type":"FunctionDeclaration","paramnames":["input","allowed"]},"vars":{"allowed":"stripTags~allowed","tags":"stripTags~tags","commentsAndPhpTags":"stripTags~commentsAndPhpTags","":null}},"undocumented":true,"name":"stripTags","longname":"stripTags","kind":"function","scope":"global","params":[]},{"comment":"","meta":{"range":[608,1980],"filename":"Srt.js","lineno":19,"columnno":4,"path":"","code":{"id":"astnode100002987","name":"parse","type":"FunctionExpression"},"vars":{"result":"module.exports.parse~result","state":"module.exports.parse~state","subText":"module.exports.parse~subText","subTime":"module.exports.parse~subTime","time":"module.exports.parse~time","":null}},"undocumented":true,"name":"parse","longname":"module.exports.parse","kind":"function","memberof":"module.exports","scope":"static"},{"comment":"","meta":{"range":[1986,2787],"filename":"Srt.js","lineno":67,"columnno":4,"path":"","code":{"id":"astnode100003129","name":"export","type":"FunctionExpression"},"vars":{"result":"module.exports.export~result","i":"module.exports.export~i","":null}},"undocumented":true,"name":"export","longname":"module.exports.export","kind":"function","memberof":"module.exports","scope":"static"},{"comment":"","meta":{"range":[21,1005],"filename":"Sub.js","lineno":2,"columnno":4,"path":"","code":{"id":"astnode100003215","name":"parse","type":"FunctionExpression"},"vars":{"result":"module.exports.parse~result","current":"module.exports.parse~current","":null}},"undocumented":true,"name":"parse","longname":"module.exports.parse","kind":"function","memberof":"module.exports","scope":"static"},{"comment":"","meta":{"range":[78,155],"filename":"TimeFormat.js","lineno":4,"columnno":4,"path":"","code":{"id":"astnode100003336","name":"isValidTime","type":"FunctionExpression"}},"undocumented":true,"name":"isValidTime","longname":"module.exports.isValidTime","kind":"function","memberof":"module.exports","scope":"static"},{"comment":"","meta":{"range":[161,566],"filename":"TimeFormat.js","lineno":7,"columnno":4,"path":"","code":{"id":"astnode100003348","name":"timeToTimestamp","type":"FunctionExpression"},"vars":{"match":"module.exports.timeToTimestamp~match","precision":"module.exports.timeToTimestamp~precision"}},"undocumented":true,"name":"timeToTimestamp","longname":"module.exports.timeToTimestamp","kind":"function","memberof":"module.exports","scope":"static"},{"comment":"","meta":{"range":[572,956],"filename":"TimeFormat.js","lineno":20,"columnno":4,"path":"","code":{"id":"astnode100003415","name":"timestampToTime","type":"FunctionExpression"},"vars":{"hours":"module.exports.timestampToTime~hours","min":"module.exports.timestampToTime~min","sec":"module.exports.timestampToTime~sec","fixedSec":"module.exports.timestampToTime~fixedSec"}},"undocumented":true,"name":"timestampToTime","longname":"module.exports.timestampToTime","kind":"function","memberof":"module.exports","scope":"static"},{"comment":"","meta":{"range":[962,1185],"filename":"TimeFormat.js","lineno":27,"columnno":4,"path":"","code":{"id":"astnode100003491","name":"timeDiff","type":"FunctionExpression"}},"undocumented":true,"name":"timeDiff","longname":"module.exports.timeDiff","kind":"function","memberof":"module.exports","scope":"static"},{"comment":"","meta":{"range":[1191,1449],"filename":"TimeFormat.js","lineno":33,"columnno":4,"path":"","code":{"id":"astnode100003522","name":"timestampDiff","type":"FunctionExpression"},"vars":{"diff":"module.exports.timestampDiff~diff"}},"undocumented":true,"name":"timestampDiff","longname":"module.exports.timestampDiff","kind":"function","memberof":"module.exports","scope":"static"},{"comment":"","meta":{"range":[1455,1621],"filename":"TimeFormat.js","lineno":40,"columnno":4,"path":"","code":{"id":"astnode100003569","name":"startTime","type":"FunctionExpression"},"vars":{"timestamp":"module.exports.startTime~timestamp"}},"undocumented":true,"name":"startTime","longname":"module.exports.startTime","kind":"function","memberof":"module.exports","scope":"static"},{"comment":"","meta":{"range":[1627,1792],"filename":"TimeFormat.js","lineno":44,"columnno":4,"path":"","code":{"id":"astnode100003595","name":"stopTime","type":"FunctionExpression"},"vars":{"timestamp":"module.exports.stopTime~timestamp"}},"undocumented":true,"name":"stopTime","longname":"module.exports.stopTime","kind":"function","memberof":"module.exports","scope":"static"}]}