UNPKG

on-codemerge

Version:

A WYSIWYG editor for on-codemerge is a user-friendly interface that allows users to edit and view their code in real time, exactly as it will appear in the final product

2 lines (1 loc) 604 B
"use strict";var s=Object.defineProperty;var c=(l,e,t)=>e in l?s(l,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[e]=t;var o=(l,e,t)=>c(l,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../services/TableOperations.cjs");class r{constructor(e,t){o(this,"table");o(this,"columnIndex");o(this,"cellsHTML",[]);this.table=e,this.columnIndex=t.cellIndex;for(const n of e.rows)this.cellsHTML.push(n.cells[this.columnIndex].outerHTML)}execute(){u.TableOperations.deleteColumn(this.table,this.columnIndex)}}exports.DeleteColumnCommand=r;