@univerjs-pro/engine-pivot 0.10.7-nightly.202509130703 → 0.10.8-nightly.202509200616

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/README.md CHANGED
@@ -37,4 +37,21 @@ Test machine spec: a MacBook Pro with Apple Silicon M2 Pro.
37
37
  | 500k (1 pivot row dimension, 1 pivot col dimension, 2 value dimensions) | 0.252 | 0.040 |
38
38
  | 1M (1 pivot row dimension, 1 pivot col dimension, 2 value dimensions) | 0.376 | 0.078 |
39
39
  | 2M (1 pivot row dimension, 1 pivot col dimension, 2 value dimensions) | 0.732 | 0.140 |
40
- | 5M (1 pivot row dimension, 1 pivot col dimension, 2 value dimensions) | 3.200 | 0.415 |
40
+ | 5M (1 pivot row dimension, 1 pivot col dimension, 2 value dimensions) | 3.200 | 0.415 |
41
+
42
+ ## Custom Parameters
43
+
44
+ The following config is global config for pivot engine.
45
+
46
+ ```js
47
+ import {setMaxLimitItemCount, setDateSystem, PivotDateGroupFieldDateSystemEnum, setDefaultSortType} from "@univerjs-pro/engine-pivot"
48
+
49
+ // use the 1904 date system
50
+ setDateSystem(PivotDateGroupFieldDateSystemEnum.Date1904)
51
+
52
+ // set the max field items count to 200, this case only use for some data has many no repeated items, the performance is bad and human unreadable
53
+ setMaxLimitItemCount(200)
54
+
55
+ // change the default pivot sort type, if the pivot table not set sort info, it will works as default
56
+ setDefaultSortType('ascending')
57
+ ```