new improvements

This commit is contained in:
Murod Khaydarov 2017-12-27 01:55:44 +03:00
commit 3d06bb95ce
5 changed files with 12 additions and 15 deletions

View file

@ -500,7 +500,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
*/
/**
* @classdesc Abstract Block class that contains block information, tool and tool class instance
* @classdesc Abstract Block class that contains Block information, Tool name and Tool class instance
*
* @property tool - Tool instance
* @property html - Returns HTML content of plugin
@ -600,11 +600,9 @@ var Block = function () {
measuringEnd = window.performance.now();
return {
tool: _this.name,
data: finishedExtraction,
processInfo: {
tool: _this.name,
time: measuringEnd - measuringStart
}
time: measuringEnd - measuringStart
};
}).catch(function (error) {
@ -2647,8 +2645,8 @@ var Saver = function (_Module) {
allExtractedData.forEach(function (extraction, index) {
/** Group process info */
console.log('"' + extraction.processInfo.tool + '" extraction info', extraction);
totalTime += extraction.processInfo.time;
console.log('\xAB' + extraction.tool + '\xBB saving info', extraction);
totalTime += extraction.time;
items.push(extraction.data);
});

File diff suppressed because one or more lines are too long

View file

@ -103,6 +103,7 @@ class Text {
/**
* Get plugin`s element HTMLDivElement
* @param {HTMLDivElement} block - returned self content
* @returns {HTMLDivElement} Plugin`s element
*/
save(block) {

View file

@ -9,7 +9,7 @@
*/
/**
* @classdesc Abstract Block class that contains block information, tool and tool class instance
* @classdesc Abstract Block class that contains Block information, Tool name and Tool class instance
*
* @property tool - Tool instance
* @property html - Returns HTML content of plugin
@ -124,11 +124,9 @@ export default class Block {
measuringEnd = window.performance.now();
return {
tool: this.name,
data: finishedExtraction,
processInfo : {
tool : this.name,
time : measuringEnd - measuringStart
}
time : measuringEnd - measuringStart
};
})

View file

@ -76,8 +76,8 @@ export default class Saver extends Module {
allExtractedData.forEach((extraction, index) => {
/** Group process info */
console.log(`\"${extraction.processInfo.tool}\" extraction info`, extraction);
totalTime += extraction.processInfo.time;
console.log(`«${extraction.tool}» saving info`, extraction);
totalTime += extraction.time;
items.push(extraction.data);
});