@libs-ui/utils 0.2.281 → 0.2.282

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.
@@ -1,9 +1,23 @@
1
+ /**
2
+ * Hàm có thể trả về lỗi nếu:
3
+ * - maxData < 0 và acceptNegative là false
4
+ * - minNegative là undefined và acceptNegative là true
5
+ * - maxData < minNegative (chỉ xảy ra khi acceptNegative là true)
6
+ * - minNegative > 0 (chỉ xảy ra khi acceptNegative là true)
7
+ * @throws {Error}
8
+ * @required luôn đặt hàm này trong try catch và xử lý ngoại lệ
9
+ * @hint Truyền 3 tham số: min,max và tick
10
+ */
1
11
  export declare const getSmartAxisScale: (maxData: number, options?: {
2
12
  minTickCount?: number;
3
13
  maxTickCount?: number;
4
14
  stepCandidates?: Array<number>;
15
+ acceptNegative?: boolean;
16
+ minNegative?: number;
17
+ acceptStepIsTypeFloat?: boolean;
5
18
  }) => {
6
- step: number;
7
- maxY: number;
8
- ticks: number;
19
+ stepSize: number;
20
+ max: number;
21
+ min: number;
22
+ tickAmount: number;
9
23
  };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@libs-ui/utils",
3
- "version": "0.2.281",
3
+ "version": "0.2.282",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.0",
6
6
  "@angular/core": "^18.2.0",
7
7
  "crypto-es": "^2.1.0",
8
8
  "dayjs": "1.11.5",
9
- "@libs-ui/interfaces-types": "0.2.281",
9
+ "@libs-ui/interfaces-types": "0.2.282",
10
10
  "rxjs": "~7.8.0"
11
11
  },
12
12
  "sideEffects": false,