@trebco/treb 29.8.3 → 29.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
IsArea,
|
|
49
49
|
} from 'treb-base-types';
|
|
50
50
|
|
|
51
|
-
import type { ExpressionUnit, UnitAddress } from 'treb-parser';
|
|
51
|
+
import type { ExpressionUnit, RenderOptions, UnitAddress } from 'treb-parser';
|
|
52
52
|
import {
|
|
53
53
|
DecimalMarkType,
|
|
54
54
|
ArgumentSeparatorType,
|
|
@@ -4614,9 +4614,17 @@ export class Grid extends GridBase {
|
|
|
4614
4614
|
}
|
|
4615
4615
|
|
|
4616
4616
|
for (let row = start; row >= 0 && row < target_rows; row += step, offset += step, pattern_increment += pattern) {
|
|
4617
|
+
|
|
4618
|
+
const render_options: Partial<RenderOptions> = {
|
|
4619
|
+
offset: transposed ? {
|
|
4620
|
+
rows: 0, columns: offset,
|
|
4621
|
+
} : {
|
|
4622
|
+
rows: offset, columns: 0,
|
|
4623
|
+
}
|
|
4624
|
+
};
|
|
4625
|
+
|
|
4617
4626
|
if (translate) {
|
|
4618
|
-
data[row][column] = '=' + this.parser.Render(translate,
|
|
4619
|
-
offset: { rows: offset, columns: 0 }});
|
|
4627
|
+
data[row][column] = '=' + this.parser.Render(translate, render_options);
|
|
4620
4628
|
}
|
|
4621
4629
|
else {
|
|
4622
4630
|
const cell = cells[source_row][column];
|