You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is getValues method currently but we should extend this API to support both values and formulas like we did with getCellValue and getCellFormula.
Both methods are necessary to export the data: file export, server-side save, copy & paste.
API proposal
publicgetRangeValues(sheet: number: range: Range=/* default to everything */): CellValue[][];publicgetRangeFormulas(sheet,number,range: Range=/* default to everything */): CellValue[][];
This issue is about API that allows getting a fragment of a worksheet. Two methods were proposed getRangeValues and getRangeFormulas where one is already implemented as getValuesInRange.
We can add getFormulasInRange or (better) rename getValuesInRange to getRangeValues to be consistent with getSheetValues.
API of getValuesInRange looks good. So my new proposal is:
This issue is about API that allows getting a fragment of a worksheet. Two methods were proposed getRangeValues and getRangeFormulas where one is already implemented as getValuesInRange.
We can add getFormulasInRange or (better) rename getValuesInRange to getRangeValues to be consistent with getSheetValues.
API of getValuesInRange looks good. So my new proposal is:
has an incorrect return type. As the "INTERNAL" name suggests, it should not be used in a public method. Could you fix it while we're at it?
Do you really mean the DependencyGraph package, which is our internal part (and changing is going to be a huge pain), or do you mean API methods that return InternalCellValue and should return CellValue? I assume you meant the latter and proceed to fix it :)
Activity
wojciechczerniak commentedon Jan 31, 2020
Looks like @voodoo11 already added one of the methods:
hyperformula/src/HyperFormula.ts
Lines 478 to 489 in 68f68cf
izulin commentedon Mar 10, 2020
#236 covers what was needed, or is there anything else left to be implemented?
wojciechczerniak commentedon Mar 11, 2020
#236 does not allow to ask for a Cell Range, they always return complete sheet data
izulin commentedon Mar 11, 2020
are you referring to
getValuesInRange()method?izulin commentedon Mar 11, 2020
if not, then what would be the specific API proposal for getCellRange()?
wojciechczerniak commentedon Mar 11, 2020
This issue is about API that allows getting a fragment of a worksheet. Two methods were proposed
getRangeValuesandgetRangeFormulaswhere one is already implemented asgetValuesInRange.We can add
getFormulasInRangeor (better) renamegetValuesInRangetogetRangeValuesto be consistent withgetSheetValues.API of
getValuesInRangelooks good. So my new proposal is:We can extend the
genericSheetGetterfrom #236 that would accept range or return all cells.izulin commentedon Mar 11, 2020
ok, great, I'll implement that
wojciechczerniak commentedon Mar 11, 2020
@izulin @swistak35 mentioned in #206 comment that method
hyperformula/src/DependencyGraph/DependencyGraph.ts
Line 539 in b9284aa
has an incorrect return type. As the "INTERNAL" name suggests, it should not be used in a public method. Could you fix it while we're at it?
izulin commentedon Mar 11, 2020
Do you really mean the
DependencyGraphpackage, which is our internal part (and changing is going to be a huge pain), or do you mean API methods that returnInternalCellValueand should returnCellValue? I assume you meant the latter and proceed to fix it :)wojciechczerniak commentedon Mar 12, 2020
Oh, I've found the wrong file. The method is called the same.
Of course I had in mind the public methods. Good catch 👍
wojciechczerniak commentedon Mar 12, 2020
Done in #245