added gcode viewer in macros (maded it editable ),
This commit is contained in:
@@ -72,7 +72,7 @@ module.exports = {
|
||||
} else {
|
||||
const lines = escapeHTML(text.trimRight())
|
||||
.split(/[\r\n]/)
|
||||
.map((line, i) => `<li class="ln${i + 1}"><b>${i + 1}</b>${line}</li>`);
|
||||
.map((line, i) => `<li class="ln${i + 1}" contenteditable="true"><b>${i + 1}</b>${line}</li>`);
|
||||
|
||||
this.clusterize.update(lines);
|
||||
}
|
||||
|
||||
@@ -39,22 +39,9 @@ module.exports = {
|
||||
},
|
||||
load: function () {
|
||||
const file_time = this.state.selected_time;
|
||||
console.log("file_time", file_time);
|
||||
const file = this.state.selected;
|
||||
console.log("file: ", file);
|
||||
// console.log("last_file: ", this.last_file);
|
||||
// console.log("last_file_time: ", this.last_file_time);
|
||||
// if (this.last_file == file && this.last_file_time == file_time) {
|
||||
// return;
|
||||
// }
|
||||
|
||||
// this.last_file = file;
|
||||
// this.last_file_time = file_time;
|
||||
|
||||
this.$broadcast("gcode-load", file);
|
||||
this.$broadcast("gcode-line", this.state.line);
|
||||
// this.toolpath_progress = 0;
|
||||
// this.load_toolpath(file, file_time);
|
||||
},
|
||||
upload: function (e) {
|
||||
const files = e.target.files || e.dataTransfer.files;
|
||||
|
||||
Reference in New Issue
Block a user