UNPKG

hyperformula

Version:

HyperFormula is a JavaScript engine for efficient processing of spreadsheet-like data and formulas

38 lines (36 loc) 822 B
"use strict"; exports.__esModule = true; exports.ValueCellVertex = void 0; var _CellVertex = require("./CellVertex"); /** * @license * Copyright (c) 2025 Handsoncode. All rights reserved. */ /** * Represents vertex which keeps static cell value */ class ValueCellVertex extends _CellVertex.CellVertex { /** Static cell value. */ constructor(parsedValue, rawValue) { super(); 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; } } exports.ValueCellVertex = ValueCellVertex;