38 lines
834 B
JavaScript
38 lines
834 B
JavaScript
"use strict";
|
|||
|
|
|
||
|
|
exports.__esModule = true;
|
||
|
|
exports.ValueCellVertex = void 0;
|
||
|
|
/**
|
||
|
|
* @license
|
||
|
|
* Copyright (c) 2024 Handsoncode. All rights reserved.
|
||
|
|
*/
|
||
|
|
/**
|
||
|
|
* Represents vertex which keeps static cell value
|
||
|
|
*/
|
||
|
|
class ValueCellVertex {
|
||
|
|
/** Static cell value. */
|
||
|
|
constructor(parsedValue, rawValue) {
|
||
|
|
this.parsedValue = parsedValue;
|
||
|
|
this.rawValue = rawValue;
|
||
|
|
}
|
||
|
|
getValues() {
|
||
|
|
return {
|
||
|
|
parsedValue: this.parsedValue,
|
||
|
|
rawValue: this.rawValue
|
||
|
|
};
|
||
|
|
}
|
||
|
|
setValues(values) {
|
||
|
|
this.parsedValue = values.parsedValue;
|
||
|
|
this.rawValue = values.rawValue;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* Returns cell value stored in vertex
|
||
|
|
*/
|
||
|
|
getCellValue() {
|
||
|
|
return this.parsedValue;
|
||
|
|
}
|
||
|
|
setCellValue(_cellValue) {
|
||
|
|
throw Error('SetCellValue is deprecated for ValueCellVertex');
|
||
|
|
}
|
||
|
|
}
|
||
|
|
exports.ValueCellVertex = ValueCellVertex;
|